@dcl/shop 1.4.1 → 1.4.2-31312432830.commit-294f554

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 (216) hide show
  1. package/_assets/{Activity-Bp8Sw4qK.js → Activity-NHOQ_W_-.js} +24 -24
  2. package/_assets/{AnimatedBackground-lL_07dfc.js → AnimatedBackground-BuJlRsTt.js} +1 -1
  3. package/_assets/{Assets-IJnjhA4j.js → Assets-DsnrEwvE.js} +7 -7
  4. package/_assets/{Assets.styles-DvKHdPv2.js → Assets.styles-CuWT78zl.js} +1 -1
  5. package/_assets/{Authorizations-Dik9aSxH.js → Authorizations-B4PIyNsB.js} +1 -1
  6. package/_assets/{Cart-pNR-1Udw.js → Cart-CWjD9l0B.js} +1 -1
  7. package/_assets/{CircularProgress-Be3b2-j-.js → CircularProgress-DUq9NPI6.js} +1 -1
  8. package/_assets/{Collection-CC0NQbio.js → Collection-BGucqUBi.js} +1 -1
  9. package/_assets/{CollectionCarousel-CbSaEpnt.js → CollectionCarousel-Cps0wYBU.js} +2 -2
  10. package/_assets/{Confetti-CsLfYVYK.js → Confetti-CBj-mVZI.js} +1 -1
  11. package/_assets/{ConstantsUtil-CtukCvy7.js → ConstantsUtil-Ck3fDr3h.js} +1 -1
  12. package/_assets/{ContentClient-DotLCA-_.js → ContentClient-Cx6YR2x_.js} +1 -1
  13. package/_assets/{Creator-BHrSc3yG.js → Creator-CXw3Kadz.js} +1 -1
  14. package/_assets/{DeploymentBuilder-KjVrn8Wp.js → DeploymentBuilder-8vMsUZ5r.js} +1 -1
  15. package/_assets/{ErrorNotice-85K9YN9v.js → ErrorNotice-C_RVGUzO.js} +1 -1
  16. package/_assets/{ExchangeController-pCPaWVPt.js → ExchangeController-BlbdUNWF.js} +1 -1
  17. package/_assets/{Faq-TM-W-SNb.js → Faq-D0xuEVP5.js} +1 -1
  18. package/_assets/{GetCredits-DdXr31aY.js → GetCredits-DrHn8Lnz.js} +1 -1
  19. package/_assets/{Grow-ChVTGdeq.js → Grow-CU75s2bu.js} +1 -1
  20. package/_assets/{HelpersUtil-Ic5GpN9l.js → HelpersUtil-D6HuwesN.js} +1 -1
  21. package/_assets/{ItemDetail-CyOs-AQj.js → ItemDetail-7FWHJW_E.js} +1 -1
  22. package/_assets/LazyEmoteControls-D_Cuiw7-.js +2 -0
  23. package/_assets/{LoadMore-CZrX5Gv7.js → LoadMore-P_MKAf1K.js} +1 -1
  24. package/_assets/{ManaPricingBanner.styles-BKaFLBUK.js → ManaPricingBanner.styles-CWoDMKMl.js} +1 -1
  25. package/_assets/{MyAssets-BQCzzNvz.js → MyAssets-CUEMlx_o.js} +2 -2
  26. package/_assets/{MyFavorites-BqzCIYTK.js → MyFavorites-BPb8OEVx.js} +1 -1
  27. package/_assets/{NetworkUtil-DXqql1Wz.js → NetworkUtil-tcDS1IIB.js} +1 -1
  28. package/_assets/{NotFound-BHSNy_W9.js → NotFound-tne0tBOa.js} +1 -1
  29. package/_assets/{NotificationsBell-Cayv1bNv.js → NotificationsBell-CmFSFwZP.js} +1 -1
  30. package/_assets/{OutfitDetail-BTWKm6JG.js → OutfitDetail-BT9obLRM.js} +1 -1
  31. package/_assets/{OutfitPreview-D11FWLSw.js → OutfitPreview-CYXMUVw2.js} +1 -1
  32. package/_assets/{OutfitStudio-dGwku2rf.js → OutfitStudio-YBvL5VGl.js} +1 -1
  33. package/_assets/{StoreSettings-CitNcyvk.js → StoreSettings-CZz1NxHF.js} +1 -1
  34. package/_assets/{Success-D4YuNuG8.js → Success-CQKYcWpX.js} +1 -1
  35. package/_assets/{SwapController-C5PTgP9M.js → SwapController-BEVqtoCD.js} +1 -1
  36. package/_assets/{Tooltip-B8fVdcBn.js → Tooltip-sT07OWHO.js} +1 -1
  37. package/_assets/{TradeService-gwq3auT8.js → TradeService-CI3giiHH.js} +1 -1
  38. package/_assets/{W3MFrameProviderSingleton-CpAC0lb5.js → W3MFrameProviderSingleton-CF6uvH5s.js} +3 -3
  39. package/_assets/{WebCryptoP256-BdZ7qw2f.js → WebCryptoP256-BORYCvjs.js} +1 -1
  40. package/_assets/{authorizations-DF77DF8l.js → authorizations-CAFiSVFA.js} +1 -1
  41. package/_assets/{basic-BzrBYDLn.js → basic-C4mQYhuA.js} +1 -1
  42. package/_assets/{biconomy-D0NqkYS4.js → biconomy-CuJVLNp7.js} +1 -1
  43. package/_assets/{builder-NgL-D1DH.js → builder-CkniOHea.js} +1 -1
  44. package/_assets/{buy-BO3reV5y.js → buy-P1ELLgiE.js} +1 -1
  45. package/_assets/{buy-gasless-D-P_OEFk.js → buy-gasless-BHi46MwF.js} +1 -1
  46. package/_assets/{categories-DEDiLarq.js → categories-C3d1csvn.js} +1 -1
  47. package/_assets/{ccip-CKxxDuCA.js → ccip-BuuvnkRx.js} +1 -1
  48. package/_assets/{ccip-CrlybRWE.js → ccip-C2VEvCbm.js} +1 -1
  49. package/_assets/{chains-Dlj4CXzw.js → chains-BIWEr0ij.js} +1 -1
  50. package/_assets/{collectionPage.styles-B7luoUwY.js → collectionPage.styles-CeGOp9uA.js} +1 -1
  51. package/_assets/{common-B0ixkeRu.js → common-DC11HrTT.js} +1 -1
  52. package/_assets/{controller-D-WxJPwg.js → controller-BFSczMkH.js} +2 -2
  53. package/_assets/{core-B2vVQmfh.js → core-BW1P_HvM.js} +4 -4
  54. package/_assets/{createSvgIcon-BpHWx1Ka.js → createSvgIcon-Cv96eCpQ.js} +1 -1
  55. package/_assets/{custom-CxNQPA4R.js → custom-DTSkEq9y.js} +1 -1
  56. package/_assets/{data-capture-COq-EdMa.js → data-capture-CqPKue4D.js} +1 -1
  57. package/_assets/{decimals-CqRsKj6U.js → decimals-Cq50aW31.js} +1 -1
  58. package/_assets/decimals-DUdu01dG.js +1 -0
  59. package/_assets/{detectExtension-DX7grDLh.js → detectExtension-DECAB97m.js} +1 -1
  60. package/_assets/{email-T9V3sqd1.js → email-Y6VS8X-I.js} +1 -1
  61. package/_assets/{embedded-wallet-Dg7uu1gY.js → embedded-wallet-DhCY0HS9.js} +1 -1
  62. package/_assets/{emotion-styled.browser.esm-DGNmaOEg.js → emotion-styled.browser.esm-DS9PERKq.js} +1 -1
  63. package/_assets/{engine-B6OKL1kN.js → engine-C0KKoxYU.js} +1 -1
  64. package/_assets/{errors-ByuDglQO.js → errors-CJ2pCYot.js} +1 -1
  65. package/_assets/{estimate-l1-fee-U77A6DZp.js → estimate-l1-fee-CdSpN9-3.js} +1 -1
  66. package/_assets/{eth_estimateGas-BZtzeL48.js → eth_estimateGas-cxuHKZ6E.js} +1 -1
  67. package/_assets/{eth_getStorageAt-E4OzrSEc.js → eth_getStorageAt-CtArmjiC.js} +1 -1
  68. package/_assets/{eth_getTransactionCount-Ck8bEyl_.js → eth_getTransactionCount-BfjxI2ac.js} +1 -1
  69. package/_assets/{ethereum-CBeS7QFR.js → ethereum-DDjO_s3T.js} +1 -1
  70. package/_assets/{ethers-CFqPm_mN.js → ethers-DfPQ1iPJ.js} +1 -1
  71. package/_assets/{execute-BKGpV3HT.js → execute-D_9LMioQ.js} +2 -2
  72. package/_assets/{extractIPFS-ChPZSPQw.js → extractIPFS-BzqQpbV3.js} +1 -1
  73. package/_assets/{features-B_0m5qAO.js → features-D0XU01_q.js} +1 -1
  74. package/_assets/{fetchTokenMetadata-BLkwh0vx.js → fetchTokenMetadata-3bs5L4Ed.js} +2 -2
  75. package/_assets/{field.styles-Di2XxH4G.js → field.styles-DJeExo1o.js} +1 -1
  76. package/_assets/{get-bytecode-BRKTQsHC.js → get-bytecode-CBzbILdG.js} +1 -1
  77. package/_assets/get-ecosystem-wallet-info-ASLw891I.js +1 -0
  78. package/_assets/{getBalance-XiFtLwlO.js → getBalance-CfTr0idF.js} +2 -2
  79. package/_assets/{getInstalledModules-DbNUTCf0.js → getInstalledModules-CMaA3R_c.js} +1 -1
  80. package/_assets/getNFT-BLfp3o9w.js +1 -0
  81. package/_assets/{getNFT-BywN0Kux.js → getNFT-CpdvnGlo.js} +2 -2
  82. package/_assets/{grid.styles-CHyL7A8J.js → grid.styles-pd8Kimjr.js} +1 -1
  83. package/_assets/{hashTypedData-D6j6Ztal.js → hashTypedData-BznBKEJ4.js} +1 -1
  84. package/_assets/{hashTypedData-CPoOrHdV.js → hashTypedData-DyjRVyiF.js} +1 -1
  85. package/_assets/{in-app-bZq5TT4x.js → in-app-CYmfrim9.js} +1 -1
  86. package/_assets/{in-app-wallet-calls-zHwhzKhq.js → in-app-wallet-calls-CqmNnUJE.js} +1 -1
  87. package/_assets/{index-DPM_2inZ.js → index--7bmhnCr.js} +1 -1
  88. package/_assets/{index-D3IKI6V4.js → index-1UqZYo-x.js} +1 -1
  89. package/_assets/{index-Coy9djZY.js → index-1ioVeg7x.js} +1 -1
  90. package/_assets/{index-C__aQGZ3.js → index-2pZiTD3a.js} +1 -1
  91. package/_assets/{index-DwSMiBZJ.js → index-5g575ePx.js} +1 -1
  92. package/_assets/{index-DF4Ha-75.js → index-B2jn-mld.js} +1 -1
  93. package/_assets/{index-C617s7dD.js → index-B40CqL6J.js} +1 -1
  94. package/_assets/{index-DtzuonLF.js → index-B6lhjXm3.js} +1 -1
  95. package/_assets/{index-w01WQ1OT.js → index-B9uk5-Wa.js} +1 -1
  96. package/_assets/{index-CtQ9l7ML.js → index-BAEUZZ6m.js} +1 -1
  97. package/_assets/{index-ExVTqMiG.js → index-BFG6-uk-.js} +1 -1
  98. package/_assets/{index-CvqOZGzt.js → index-BNzvL79U.js} +1 -1
  99. package/_assets/{index-BZ1hhBx4.js → index-BOFr5q8K.js} +1 -1
  100. package/_assets/{index-ByuFbmZ8.js → index-BZuG0Sc3.js} +1 -1
  101. package/_assets/{index-6jfgxkro.js → index-BdcjNzsb.js} +1 -1
  102. package/_assets/{index-BbJAHpzm.js → index-BeYcw5Co.js} +1 -1
  103. package/_assets/{index-BPlrOFTC.js → index-BkA4dzPp.js} +1 -1
  104. package/_assets/{index-yx-xGak5.js → index-BoVFCbnW.js} +1 -1
  105. package/_assets/{index-Cm_4zTDf.js → index-Bpjughes.js} +3 -3
  106. package/_assets/{index-DIketzHJ.js → index-BspLYzJo.js} +1 -1
  107. package/_assets/{index-drIus9if.js → index-Bt3T1cvz.js} +1 -1
  108. package/_assets/{index-D24PzU1R.js → index-C0FhBugy.js} +3 -3
  109. package/_assets/{index-BsW8Eyey.js → index-C9qn3MDW.js} +1 -1
  110. package/_assets/{index-D7XGzB3c.js → index-CB7o8WQW.js} +1 -1
  111. package/_assets/{index-Xxhqhd7B.js → index-CGQb2ZQU.js} +1 -1
  112. package/_assets/{index-hUIzKCfu.js → index-CU34Q9VB.js} +1 -1
  113. package/_assets/{index-_c5LJlQE.js → index-CVVzw90M.js} +1 -1
  114. package/_assets/{index-V2TPPzBO.js → index-CWAxO3pP.js} +1 -1
  115. package/_assets/{index-dfp4J94C.js → index-CX_8l6aH.js} +1 -1
  116. package/_assets/{index-D4yUYJLc.js → index-CXgpMw_a.js} +1 -1
  117. package/_assets/{index-CxWIzN3m.js → index-C_bUhgEP.js} +1 -1
  118. package/_assets/{index-CteyodZT.js → index-CcCLyIxX.js} +3 -3
  119. package/_assets/{index-Dwdhqx6d.js → index-Cd27zE1I.js} +1 -1
  120. package/_assets/{index-Dp3NEgRA.js → index-ChdPVYi_.js} +2 -2
  121. package/_assets/{index-BHzsqUc8.js → index-CiPrjG5a.js} +1 -1
  122. package/_assets/{index-BcgGNlqh.js → index-CiRq1n15.js} +2 -2
  123. package/_assets/{index-C1iRin0B.js → index-Cn9uLg18.js} +1 -1
  124. package/_assets/{index-CNswf2xV.js → index-CoNQ2sAc.js} +1 -1
  125. package/_assets/{index-uGopMLx_.js → index-Cq8I2bCh.js} +265 -265
  126. package/_assets/{index-DPtintqP.js → index-D-X0uab8.js} +1 -1
  127. package/_assets/{index-Cn8WVps3.js → index-D4Dobs6V.js} +1 -1
  128. package/_assets/{index-2FoefM9Q.js → index-D4I_r7iA.js} +1 -1
  129. package/_assets/{index-5bRECx6a.js → index-DG04DWBB.js} +1 -1
  130. package/_assets/{index-Cine4GAY.js → index-DIZ6Fpja.js} +1 -1
  131. package/_assets/{index-DGZgLX5H.js → index-DMsfjzv3.js} +1 -1
  132. package/_assets/{index-BSn1_2Zj.js → index-DNCRJDU6.js} +1 -1
  133. package/_assets/{index-CuVgNl3Y.js → index-DO1MDP-3.js} +1 -1
  134. package/_assets/{index-DrWafdvv.js → index-D_Xy7OI9.js} +1 -1
  135. package/_assets/{index-CfoYiHeb.js → index-Dbs-O_xu.js} +2 -2
  136. package/_assets/{index-BQn1bLbF.js → index-Domysh9-.js} +1 -1
  137. package/_assets/{index-Di-TSk-N.js → index-DqbRg5LC.js} +2 -2
  138. package/_assets/{index-BZGM9FWk.js → index-DwnMvkbN.js} +1 -1
  139. package/_assets/{index-BFMoyHW0.js → index-HMAhnswt.js} +1 -1
  140. package/_assets/{index-Bzq_e_sg.js → index-HlCcqGG0.js} +1 -1
  141. package/_assets/{index-B1FHWlJe.js → index-SkahHxGM.js} +1 -1
  142. package/_assets/{index-BQ9JyrRe.js → index-YTZYM_mv.js} +1 -1
  143. package/_assets/{index-CS32pIcE.js → index-dFumStoV.js} +1 -1
  144. package/_assets/{index-D00IKQW6.js → index-h9B4YXUq.js} +1 -1
  145. package/_assets/{index-CntdB4i7.js → index-koAbgvGY.js} +1 -1
  146. package/_assets/{index-BFn291Ev.js → index-oyav6SwC.js} +1 -1
  147. package/_assets/{index-C4jkL4id.js → index-sMZT0osM.js} +1 -1
  148. package/_assets/{index-CwklEm59.js → index-zsZ0nIv4.js} +1 -1
  149. package/_assets/{index.es-BFjxQxKe.js → index.es-B088SWVm.js} +1 -1
  150. package/_assets/{index.es-DWauw0u3.js → index.es-BgY67W9o.js} +4 -4
  151. package/_assets/{index.es-7a-YRioH.js → index.es-C5ucclti.js} +1 -1
  152. package/_assets/{linkAccount-BtAQZlYa.js → linkAccount-B2LX6Ayb.js} +1 -1
  153. package/_assets/{localBatchGatewayRequest-0VkJzsEN.js → localBatchGatewayRequest-CrEvGINX.js} +1 -1
  154. package/_assets/{native-CPZ4GKee.js → native-BYuJILVU.js} +1 -1
  155. package/_assets/{networks-DyQsWWgA.js → networks-BgzjLjJ2.js} +1 -1
  156. package/_assets/{onramp-DzK_7EqG.js → onramp-Svn_UmTw.js} +1 -1
  157. package/_assets/{openzeppelin-BtnpZFcF.js → openzeppelin-BPRRVTr1.js} +1 -1
  158. package/_assets/{ownerOf-DmpjD1-R.js → ownerOf-BswBoTM4.js} +1 -1
  159. package/_assets/{parseNft-DVNQcQTW.js → parseNft-CfYOiCXQ.js} +2 -2
  160. package/_assets/{parseSignature-uahxpo6h.js → parseSignature-NfMUgfN4.js} +1 -1
  161. package/_assets/{parseSignature-d_qU1nsa.js → parseSignature-gNg7kA4M.js} +3 -3
  162. package/_assets/{passkeys-DCXgcJ3i.js → passkeys-Bf7HGrQE.js} +1 -1
  163. package/_assets/{pay-with-exchange-BAKpQWUa.js → pay-with-exchange-NpC_jsVL.js} +1 -1
  164. package/_assets/{prepare-contract-call-DDzIRXLv.js → prepare-contract-call-DrM5fnvt.js} +1 -1
  165. package/_assets/{qr-overlay-cF8AYPXz.js → qr-overlay-CX-B0YKk.js} +1 -1
  166. package/_assets/{receive-DKeQiKpb.js → receive-DU_jmquO.js} +1 -1
  167. package/_assets/{resolveImplementation-BbMBWFik.js → resolveImplementation-0bOm_A8l.js} +1 -1
  168. package/_assets/{rpc-B_5Ot3q6.js → rpc-DwUMO0mH.js} +1 -1
  169. package/_assets/{secp256k1-BJ5_5ze6.js → secp256k1-BJWN557q.js} +1 -1
  170. package/_assets/{secp256k1-C2MsrfGW.js → secp256k1-CRg-T_AS.js} +1 -1
  171. package/_assets/{secp256k1-vgDnLeQE.js → secp256k1-NtZ6kHJZ.js} +1 -1
  172. package/_assets/{send-DRkbPGAy.js → send-B6q0W9lI.js} +1 -1
  173. package/_assets/{send-batch-transaction-C98vx0Si.js → send-batch-transaction-Cg-JwW7k.js} +1 -1
  174. package/_assets/{send-eip712-transaction-B9uhwtxq.js → send-eip712-transaction-GrhIPA6L.js} +2 -2
  175. package/_assets/send-gasless-transaction-Dnd0BR62.js +2 -0
  176. package/_assets/{send-transaction-D7omgpzp.js → send-transaction-Aq0ndQmo.js} +2 -2
  177. package/_assets/{sendMetaTransaction-o2u8XwNS.js → sendMetaTransaction-BuEwIAyh.js} +1 -1
  178. package/_assets/{sendRawTransaction-DevIof93.js → sendRawTransaction-JGobH71Z.js} +3 -3
  179. package/_assets/{sentry-Dx-KuLV3.js → sentry-2i8Tr7WR.js} +1 -1
  180. package/_assets/{serializeTransaction-DLeETOYT.js → serializeTransaction-B-NbRyZz.js} +1 -1
  181. package/_assets/{session-proposal-KU3_N1na.js → session-proposal-b3xSScTf.js} +1 -1
  182. package/_assets/{session-request-uPrgrHzK.js → session-request-BhfPcY4l.js} +2 -2
  183. package/_assets/{sha256-CfLwtdyC.js → sha256-BKfXR492.js} +1 -1
  184. package/_assets/{signing-QBKrHvr9.js → signing-CzYSJwB8.js} +3 -3
  185. package/_assets/{skeleton.styles-BC9MqXiU.js → skeleton.styles-BwXvfynq.js} +1 -1
  186. package/_assets/{socials-CoKeQXiF.js → socials-ClkHxAE_.js} +1 -1
  187. package/_assets/{styled-DOIj5nPF.js → styled-jiv5F83t.js} +1 -1
  188. package/_assets/{swaps-CRzxJol6.js → swaps-BwEAGSoG.js} +1 -1
  189. package/_assets/{thirdweb-C12p7UHc.js → thirdweb-BCcw3IiV.js} +3 -3
  190. package/_assets/{to-serializable-transaction-VMfkzTnh.js → to-serializable-transaction-CI-QnODl.js} +2 -2
  191. package/_assets/{totalSupply-DRNaCAzP.js → totalSupply-gVMBAoD-.js} +1 -1
  192. package/_assets/{transaction-Col-q-Ce.js → transaction-7HLCNEOz.js} +1 -1
  193. package/_assets/{transactionReceipt-BD6aaYgU.js → transactionReceipt-a17hpBtt.js} +1 -1
  194. package/_assets/{transactions-eYCJ_4w6.js → transactions-up6hcXnh.js} +1 -1
  195. package/_assets/{useCreditPacks-A5RBl1MB.js → useCreditPacks-CDD4tXAF.js} +1 -1
  196. package/_assets/{useImportable-DsSOJu2h.js → useImportable-BpgbDKEn.js} +1 -1
  197. package/_assets/{useInfiniteGrid-BSzq15pV.js → useInfiniteGrid-CyR838AE.js} +1 -1
  198. package/_assets/{useStore-Cus0x1de.js → useStore-kijFHyHV.js} +2 -2
  199. package/_assets/{useTheme-BRanpp9G.js → useTheme-DIejI6C_.js} +1 -1
  200. package/_assets/{utils-BQF5MiO5.js → utils-BPBPOxKw.js} +1 -1
  201. package/_assets/{verifyHash-B4ZiNM58.js → verifyHash-BqY8uOSx.js} +1 -1
  202. package/_assets/{w3m-modal-CC3uZxtJ.js → w3m-modal-D0vRJJdP.js} +1 -1
  203. package/_assets/{w3m-modal-DjOtYjTK.js → w3m-modal-DWLBXt0Y.js} +1 -1
  204. package/_assets/{wait-for-tx-receipt-BnCyfeD5.js → wait-for-tx-receipt-1xUKRb2m.js} +1 -1
  205. package/_assets/{wallets-HnCmZe2C.js → wallets-B25NNhvI.js} +5 -5
  206. package/_assets/{web-connector-Bx6u3JDC.js → web-connector-N42CiDrd.js} +3 -3
  207. package/_assets/{writeContract-BD-47Gns.js → writeContract-CuegwesU.js} +1 -1
  208. package/_assets/{zora-sepolia-5SAdD430.js → zora-sepolia-ChK9Wob7.js} +1 -1
  209. package/_assets/{zoraTestnet-Uh6KMdOq.js → zoraTestnet-k3Q5cVnd.js} +1 -1
  210. package/index.html +11 -11
  211. package/package.json +2 -2
  212. package/_assets/LazyEmoteControls-CkOxDI6U.js +0 -2
  213. package/_assets/decimals-CMCAWgOh.js +0 -1
  214. package/_assets/get-ecosystem-wallet-info-DcdrlNuu.js +0 -1
  215. package/_assets/getNFT-Bmd84BZn.js +0 -1
  216. package/_assets/send-gasless-transaction-DlAx-hhk.js +0 -2
@@ -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-D24PzU1R.js";import{c as x}from"./index-CvqOZGzt.js";const g=d`
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-C0FhBugy.js";import{c as x}from"./index-BNzvL79U.js";const g=d`
2
2
  :host {
3
3
  display: flex;
4
4
  }
@@ -1 +1 @@
1
- import{r as k}from"./index-BV8s6ez1.js";import{az as w}from"./sendRawTransaction-DevIof93.js";import{c as I,e as q}from"./hashTypedData-CPoOrHdV.js";import"./NetworkUtil-DXqql1Wz.js";import"./sentry-Dx-KuLV3.js";import"./react-BYHuwl8r.js";import"./index-uGopMLx_.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-CFqPm_mN.js";import"./intl-CBcMB1D2.js";const v=()=>"9.1.0",C=t=>t.toString(16).padStart(2,"0"),R=t=>{const e=new Uint8Array(t/2);return window.crypto.getRandomValues(e),Array.from(e,C).join("")},E=()=>typeof window<"u"?R(10):new Date().getTime().toString(36);class g{}g.makeRequest=(t,e)=>({id:E(),method:t,params:e,env:{sdkVersion:v()}});g.makeResponse=(t,e,s)=>({id:t,success:!0,version:s,data:e});g.makeErrorResponse=(t,e,s)=>({id:t,success:!1,error:e,version:s});var r;(function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"})(r||(r={}));var f;(function(t){t.requestAddressBook="requestAddressBook"})(f||(f={}));class H{constructor(e=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:a,data:n,source:i})=>{const o=!n,l=!this.isServer&&i===window.parent,u=typeof n.version<"u"&&parseInt(n.version.split(".")[0]),B=typeof u=="number"&&u>=1;let y=!0;return Array.isArray(this.allowedOrigins)&&(y=this.allowedOrigins.find(P=>P.test(a))!==void 0),!o&&l&&B&&y},this.logIncomingMessage=a=>{console.info(`Safe Apps SDK v1: A message was received from origin ${a.origin}. `,a.data)},this.onParentMessage=a=>{this.isValidMessage(a)&&(this.debugMode&&this.logIncomingMessage(a),this.handleIncomingMessage(a.data))},this.handleIncomingMessage=a=>{const{id:n}=a,i=this.callbacks.get(n);i&&(i(a),this.callbacks.delete(n))},this.send=(a,n)=>{const i=g.makeRequest(a,n);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(i,"*"),new Promise((o,l)=>{this.callbacks.set(i.id,u=>{if(!u.success){l(new Error(u.error));return}o(u)})})},this.allowedOrigins=e,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}const S=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;var m=k();class A{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(r.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const s={message:e};return(await this.communicator.send(r.signMessage,s)).data}async signTypedMessage(e){if(!S(e))throw new Error("Invalid typed data");return(await this.communicator.send(r.signTypedMessage,{typedData:e})).data}async send({txs:e,params:s}){if(!e||!e.length)throw new Error("No transactions were passed");const a={txs:e,params:s};return(await this.communicator.send(r.sendTransactions,a)).data}}const c={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},h={defaultBlockParam:(t="latest")=>t,returnFullTxObjectParam:(t=!1)=>t,blockNumberToHex:t=>Number.isInteger(t)?`0x${t.toString(16)}`:t};class O{constructor(e){this.communicator=e,this.call=this.buildRequest({call:c.eth_call,formatters:[null,h.defaultBlockParam]}),this.getBalance=this.buildRequest({call:c.eth_getBalance,formatters:[null,h.defaultBlockParam]}),this.getCode=this.buildRequest({call:c.eth_getCode,formatters:[null,h.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:c.eth_getStorageAt,formatters:[null,h.blockNumberToHex,h.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:c.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:c.eth_getBlockByHash,formatters:[null,h.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:c.eth_getBlockByNumber,formatters:[h.blockNumberToHex,h.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:c.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:c.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:c.eth_getTransactionCount,formatters:[null,h.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:c.eth_gasPrice}),this.getEstimateGas=s=>this.buildRequest({call:c.eth_estimateGas})([s]),this.setSafeSettings=this.buildRequest({call:c.safe_setSettings})}buildRequest(e){const{call:s,formatters:a}=e;return async n=>{a&&Array.isArray(n)&&a.forEach((l,u)=>{l&&(n[u]=l(n[u]))});const i={call:s,params:n||[]};return(await this.communicator.send(r.rpcCall,i)).data}}}const x="0x1626ba7e",V="0x20c13b0b",p=4001;class d extends Error{constructor(e,s,a){super(e),this.code=s,this.data=a,Object.setPrototypeOf(this,d.prototype)}}class _{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(r.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new d("Permissions request is invalid",p);try{return(await this.communicator.send(r.wallet_requestPermissions,e)).data}catch{throw new d("Permissions rejected",p)}}isPermissionRequestValid(e){return e.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(f).includes(a)):!1)}}const b=(t,e)=>e.some(s=>s.parentCapability===t),M=()=>(t,e,s)=>{const a=s.value;return s.value=async function(){const n=new _(this.communicator);let i=await n.getPermissions();if(b(e,i)||(i=await n.requestPermissions([{[e]:{}}])),!b(e,i))throw new d("Permissions rejected",p);return a.apply(this)},s};var j=function(t,e,s,a){var n=arguments.length,i=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,s):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,s,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,s,i):o(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};class T{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(r.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(r.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(r.getSafeBalances,{currency:e})).data}async check1271Signature(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===x}catch{return!1}}async check1271SignatureBytes(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===V}catch{return!1}}calculateMessageHash(e){return I(e)}calculateTypedMessageHash(e){const s=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let a=e.primaryType;if(!a){const n=Object.values(e.types),i=Object.keys(e.types).filter(o=>n.every(l=>l.every(({type:u})=>u.replace("[","").replace("]","")!==o)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");a=i[0]}return q({message:e.message,domain:{...e.domain,chainId:s,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt},types:e.types,primaryType:a})}async getOffChainSignature(e){return(await this.communicator.send(r.getOffChainSignature,e)).data}async isMessageSigned(e,s="0x"){let a;if(typeof e=="string"&&(a=async()=>{const n=this.calculateMessageHash(e);return await this.isMessageHashSigned(n,s)}),S(e)&&(a=async()=>{const n=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(n,s)}),a)return await a();throw new Error("Invalid message type")}async isMessageHashSigned(e,s="0x"){const a=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const n of a)if(await n(e,s))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(r.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(r.requestAddressBook,void 0)).data}}j([M()],T.prototype,"requestAddressBook",null);class J{constructor(e={}){const{allowedDomains:s=null,debug:a=!1}=e;this.communicator=new H(s,a),this.eth=new O(this.communicator),this.txs=new A(this.communicator),this.safe=new T(this.communicator),this.wallet=new _(this.communicator)}}const Q=m.Operation,X=m.TokenType,Y=m.TransactionStatus,Z=m.TransferDirection;export{g as MessageFormatter,r as Methods,Q as Operation,c as RPC_CALLS,f as RestrictedMethods,X as TokenType,Y as TransactionStatus,Z as TransferDirection,J as default,v as getSDKVersion,S as isObjectEIP712TypedData};
1
+ import{r as k}from"./index-BV8s6ez1.js";import{az as w}from"./sendRawTransaction-JGobH71Z.js";import{c as I,e as q}from"./hashTypedData-DyjRVyiF.js";import"./NetworkUtil-tcDS1IIB.js";import"./sentry-2i8Tr7WR.js";import"./react-BYHuwl8r.js";import"./index-Cq8I2bCh.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-DfPQ1iPJ.js";import"./intl-CBcMB1D2.js";const v=()=>"9.1.0",C=t=>t.toString(16).padStart(2,"0"),R=t=>{const e=new Uint8Array(t/2);return window.crypto.getRandomValues(e),Array.from(e,C).join("")},E=()=>typeof window<"u"?R(10):new Date().getTime().toString(36);class g{}g.makeRequest=(t,e)=>({id:E(),method:t,params:e,env:{sdkVersion:v()}});g.makeResponse=(t,e,s)=>({id:t,success:!0,version:s,data:e});g.makeErrorResponse=(t,e,s)=>({id:t,success:!1,error:e,version:s});var r;(function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"})(r||(r={}));var f;(function(t){t.requestAddressBook="requestAddressBook"})(f||(f={}));class H{constructor(e=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:a,data:n,source:i})=>{const o=!n,l=!this.isServer&&i===window.parent,u=typeof n.version<"u"&&parseInt(n.version.split(".")[0]),B=typeof u=="number"&&u>=1;let y=!0;return Array.isArray(this.allowedOrigins)&&(y=this.allowedOrigins.find(P=>P.test(a))!==void 0),!o&&l&&B&&y},this.logIncomingMessage=a=>{console.info(`Safe Apps SDK v1: A message was received from origin ${a.origin}. `,a.data)},this.onParentMessage=a=>{this.isValidMessage(a)&&(this.debugMode&&this.logIncomingMessage(a),this.handleIncomingMessage(a.data))},this.handleIncomingMessage=a=>{const{id:n}=a,i=this.callbacks.get(n);i&&(i(a),this.callbacks.delete(n))},this.send=(a,n)=>{const i=g.makeRequest(a,n);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(i,"*"),new Promise((o,l)=>{this.callbacks.set(i.id,u=>{if(!u.success){l(new Error(u.error));return}o(u)})})},this.allowedOrigins=e,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}const S=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;var m=k();class A{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(r.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const s={message:e};return(await this.communicator.send(r.signMessage,s)).data}async signTypedMessage(e){if(!S(e))throw new Error("Invalid typed data");return(await this.communicator.send(r.signTypedMessage,{typedData:e})).data}async send({txs:e,params:s}){if(!e||!e.length)throw new Error("No transactions were passed");const a={txs:e,params:s};return(await this.communicator.send(r.sendTransactions,a)).data}}const c={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},h={defaultBlockParam:(t="latest")=>t,returnFullTxObjectParam:(t=!1)=>t,blockNumberToHex:t=>Number.isInteger(t)?`0x${t.toString(16)}`:t};class O{constructor(e){this.communicator=e,this.call=this.buildRequest({call:c.eth_call,formatters:[null,h.defaultBlockParam]}),this.getBalance=this.buildRequest({call:c.eth_getBalance,formatters:[null,h.defaultBlockParam]}),this.getCode=this.buildRequest({call:c.eth_getCode,formatters:[null,h.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:c.eth_getStorageAt,formatters:[null,h.blockNumberToHex,h.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:c.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:c.eth_getBlockByHash,formatters:[null,h.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:c.eth_getBlockByNumber,formatters:[h.blockNumberToHex,h.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:c.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:c.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:c.eth_getTransactionCount,formatters:[null,h.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:c.eth_gasPrice}),this.getEstimateGas=s=>this.buildRequest({call:c.eth_estimateGas})([s]),this.setSafeSettings=this.buildRequest({call:c.safe_setSettings})}buildRequest(e){const{call:s,formatters:a}=e;return async n=>{a&&Array.isArray(n)&&a.forEach((l,u)=>{l&&(n[u]=l(n[u]))});const i={call:s,params:n||[]};return(await this.communicator.send(r.rpcCall,i)).data}}}const x="0x1626ba7e",V="0x20c13b0b",p=4001;class d extends Error{constructor(e,s,a){super(e),this.code=s,this.data=a,Object.setPrototypeOf(this,d.prototype)}}class _{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(r.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new d("Permissions request is invalid",p);try{return(await this.communicator.send(r.wallet_requestPermissions,e)).data}catch{throw new d("Permissions rejected",p)}}isPermissionRequestValid(e){return e.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(f).includes(a)):!1)}}const b=(t,e)=>e.some(s=>s.parentCapability===t),M=()=>(t,e,s)=>{const a=s.value;return s.value=async function(){const n=new _(this.communicator);let i=await n.getPermissions();if(b(e,i)||(i=await n.requestPermissions([{[e]:{}}])),!b(e,i))throw new d("Permissions rejected",p);return a.apply(this)},s};var j=function(t,e,s,a){var n=arguments.length,i=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,s):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,s,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,s,i):o(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};class T{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(r.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(r.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(r.getSafeBalances,{currency:e})).data}async check1271Signature(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===x}catch{return!1}}async check1271SignatureBytes(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===V}catch{return!1}}calculateMessageHash(e){return I(e)}calculateTypedMessageHash(e){const s=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let a=e.primaryType;if(!a){const n=Object.values(e.types),i=Object.keys(e.types).filter(o=>n.every(l=>l.every(({type:u})=>u.replace("[","").replace("]","")!==o)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");a=i[0]}return q({message:e.message,domain:{...e.domain,chainId:s,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt},types:e.types,primaryType:a})}async getOffChainSignature(e){return(await this.communicator.send(r.getOffChainSignature,e)).data}async isMessageSigned(e,s="0x"){let a;if(typeof e=="string"&&(a=async()=>{const n=this.calculateMessageHash(e);return await this.isMessageHashSigned(n,s)}),S(e)&&(a=async()=>{const n=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(n,s)}),a)return await a();throw new Error("Invalid message type")}async isMessageHashSigned(e,s="0x"){const a=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const n of a)if(await n(e,s))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(r.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(r.requestAddressBook,void 0)).data}}j([M()],T.prototype,"requestAddressBook",null);class J{constructor(e={}){const{allowedDomains:s=null,debug:a=!1}=e;this.communicator=new H(s,a),this.eth=new O(this.communicator),this.txs=new A(this.communicator),this.safe=new T(this.communicator),this.wallet=new _(this.communicator)}}const Q=m.Operation,X=m.TokenType,Y=m.TransactionStatus,Z=m.TransferDirection;export{g as MessageFormatter,r as Methods,Q as Operation,c as RPC_CALLS,f as RestrictedMethods,X as TokenType,Y as TransactionStatus,Z as TransferDirection,J as default,v as getSDKVersion,S as isObjectEIP712TypedData};
@@ -1,4 +1,4 @@
1
- import{i as b,b as l}from"./lit-element-B3y9oplH.js";import{n as s}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-CvqOZGzt.js";import{d as m,r as f,e as v}from"./index-D24PzU1R.js";const h=m`
1
+ import{i as b,b as l}from"./lit-element-B3y9oplH.js";import{n as s}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-BNzvL79U.js";import{d as m,r as f,e as v}from"./index-C0FhBugy.js";const h=m`
2
2
  button {
3
3
  border: none;
4
4
  background: transparent;
@@ -1 +1 @@
1
- import{c as r}from"./parseSignature-uahxpo6h.js";import{B as y,E as f,a as v,b as A,F as S,W as I,d as F,e as R,f as x,g as C,p as B,l as N,n as P,p as D,h as U,s as w,z as L}from"./parseSignature-uahxpo6h.js";import{I as H,c as k,a as z,p as q,w as V}from"./custom-CxNQPA4R.js";import{h as s}from"./W3MFrameProviderSingleton-CpAC0lb5.js";import{U as G,c as j,f as W,s as K,w as Z,a as J}from"./W3MFrameProviderSingleton-CpAC0lb5.js";import{A as X,a as Y,B as _,b as $,C as aa,D as ra,E as oa,F as sa,c as ea,H as ta,I as ia,d as na,e as ca,f as da,g as Ea,h as pa,i as ua,j as la,k as ma,l as Ta,J as ga,L as ba,M as ha,m as ya,N as fa,n as va,o as Aa,P as Sa,p as Ia,q as Fa,R as Ra,r as xa,s as Ca,t as Ba,u as Na,S as Pa,v as Da,w as Ua,x as wa,T as La,y as Ma,z as Ha,G as ka,U as za,K as qa,O as Va,Q as Oa,V as Ga,W as ja,X as Wa,Y as Ka,Z as Za,_ as Ja,$ as Qa,a0 as Xa,a1 as Ya,a2 as _a,a3 as $a,a4 as ar,a5 as rr,a6 as or,a7 as sr,a8 as er,a9 as tr,aa as ir,ab as nr,ac as cr,ad as dr,ae as Er,af as pr,ag as ur,ah as lr,ai as mr,aj as Tr,ak as gr,al as br,am as hr,an as yr,ao as fr,ap as vr,a1 as Ar}from"./NetworkUtil-DXqql1Wz.js";import{A as Ir,a as Fr,b as Rr,c as xr,d as Cr,e as Br,f as Nr,g as Pr,h as Dr,i as Ur,j as wr,k as Lr,l as Mr,m as Hr,n as kr,o as zr,p as qr,B as Vr,q as Or,r as Gr,C as jr,s as Wr,t as Kr,u as Zr,v as Jr,w as Qr,x as Xr,y as Yr,z as _r,D as $r,E as ao,F as ro,G as oo,H as so,I as eo,J as to,K as io,L as no,M as co,N as Eo,O as po,P as uo,Q as lo,R as mo,S as To,T as go,U as bo,V as ho,W as yo,X as fo,Y as vo,Z as Ao,_ as So,$ as Io,a0 as Fo,a1 as Ro,a2 as xo,a3 as Co,a4 as Bo,a5 as No,a6 as Po,a7 as Do,a8 as Uo,a9 as wo,aa as Lo,ab as Mo,ac as Ho,ad as ko,ae as zo,af as qo,ag as Vo,ah as Oo,ai as Go,aj as jo,ak as Wo,al as Ko,am as Zo,an as Jo,ao as Qo,ap as Xo,aq as Yo,ar as _o,as as $o,at as as,au as rs,av as os,aw as ss,ax as es,ay as ts,az as is,aA as ns,aB as cs,aC as ds,aD as Es,aE as ps,aF as us,aG as ls,aH as ms,aI as Ts,aJ as gs,aK as bs,aL as hs,aM as ys,aN as fs,aM as vs,aO as As,aP as Ss,aQ as Is,aR as Fs,aS as Rs,aT as xs,aU as Cs,aV as Bs,aW as Ns,aX as Ps,aY as Ds,aZ as Us,a_ as ws,a$ as Ls,b0 as Ms,b1 as Hs,b2 as ks,b3 as zs,b4 as qs,aL as Vs,aM as Os,b4 as Gs,aN as js,aM as Ws,b5 as Ks,b6 as Zs,aA as Js}from"./sendRawTransaction-DevIof93.js";import{I as Xs,a as Ys,b as _s,g as $s,h as ae,c as re,d as oe,e as se,p as ee,t as te,v as ie}from"./hashTypedData-CPoOrHdV.js";import{d as ce,e as de,a as Ee}from"./localBatchGatewayRequest-0VkJzsEN.js";import{ccipRequest as ue,ccipRequest as le,offchainLookup as me,offchainLookupAbiItem as Te,offchainLookupSignature as ge}from"./ccip-CKxxDuCA.js";import{d as t}from"./verifyHash-B4ZiNM58.js";import{e as he,p as ye,a as fe,s as ve,s as Ae}from"./verifyHash-B4ZiNM58.js";import{a as Ie,b as Fe,c as Re,s as xe,d as Ce}from"./serializeTransaction-DLeETOYT.js";import"./secp256k1-vgDnLeQE.js";import"./dcl-schemas-CmtP3U6y.js";import"./index-w01WQ1OT.js";import"./react-BYHuwl8r.js";import"./sentry-Dx-KuLV3.js";import"./index-BcgGNlqh.js";import"./events-DQ172AOg.js";import"./index-uGopMLx_.js";import"./ethers-CFqPm_mN.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-Dj0kiq3a.js";export{Ir as AbiConstructorNotFoundError,Fr as AbiConstructorParamsNotFoundError,Rr as AbiDecodingDataSizeTooSmallError,xr as AbiDecodingZeroDataError,Cr as AbiEncodingArrayLengthMismatchError,Br as AbiEncodingBytesSizeMismatchError,Nr as AbiEncodingLengthMismatchError,Pr as AbiErrorInputsNotFoundError,Dr as AbiErrorNotFoundError,Ur as AbiErrorSignatureNotFoundError,wr as AbiEventNotFoundError,Lr as AbiEventSignatureEmptyTopicsError,Mr as AbiEventSignatureNotFoundError,Hr as AbiFunctionNotFoundError,kr as AbiFunctionOutputsNotFoundError,zr as AbiFunctionSignatureNotFoundError,qr as AccountStateConflictError,X as AtomicReadyWalletRejectedUpgradeError,Y as AtomicityNotSupportedError,_ as BaseError,Vr as BaseFeeScalarError,Or as BlockNotFoundError,y as BundleFailedError,$ as BundleTooLargeError,Gr as BytesSizeMismatchError,jr as CallExecutionError,aa as ChainDisconnectedError,Wr as ChainDoesNotSupportContract,Kr as ChainMismatchError,Zr as ChainNotFoundError,Jr as CircularReferenceError,Qr as ClientChainNotConfiguredError,Xr as ContractFunctionExecutionError,Yr as ContractFunctionRevertedError,_r as ContractFunctionZeroDataError,$r as CounterfactualDeploymentFailedError,ao as DecodeLogDataMismatch,ro as DecodeLogTopicsMismatch,ra as DuplicateIdError,oo as Eip1559FeesNotSupportedError,f as EnsAvatarInvalidNftUriError,v as EnsAvatarUnsupportedNamespaceError,A as EnsAvatarUriResolutionError,so as EstimateGasExecutionError,oa as ExecutionRevertedError,sa as FeeCapTooHighError,ea as FeeCapTooLowError,S as FilterTypeNotSupportedError,ta as HttpRequestError,ia as InsufficientFundsError,na as IntegerOutOfRangeError,ca as InternalRpcError,da as IntrinsicGasTooHighError,Ea as IntrinsicGasTooLowError,eo as InvalidAbiDecodingTypeError,to as InvalidAbiEncodingTypeError,io as InvalidAbiItemError,no as InvalidAbiParametersError,co as InvalidAbiTypeParameterError,Eo as InvalidAddressError,po as InvalidArrayError,pa as InvalidBytesBooleanError,uo as InvalidChainIdError,H as InvalidDecimalNumberError,lo as InvalidDefinitionTypeError,Xs as InvalidDomainError,mo as InvalidFunctionModifierError,ua as InvalidHexBooleanError,la as InvalidInputRpcError,To as InvalidLegacyVError,go as InvalidModifierError,bo as InvalidParameterError,ma as InvalidParamsRpcError,ho as InvalidParenthesisError,Ys as InvalidPrimaryTypeError,Ta as InvalidRequestRpcError,yo as InvalidSerializableTransactionError,fo as InvalidSignatureError,vo as InvalidStorageKeySizeError,Ao as InvalidStructSignatureError,_s as InvalidStructTypeError,ga as JsonRpcVersionUnsupportedError,ba as LimitExceededRpcError,So as MaxFeePerGasTooLowError,ha as MethodNotFoundRpcError,ya as MethodNotSupportedRpcError,fa as NonceMaxValueError,va as NonceTooHighError,Aa as NonceTooLowError,Sa as ParseRpcError,Ia as ProviderDisconnectedError,Fa as ProviderRpcError,Io as RawContractError,Ra as ResourceNotFoundRpcError,xa as ResourceUnavailableRpcError,Ca as ResponseBodyTooLargeError,Ba as RpcError,Na as RpcRequestError,Pa as SizeExceedsPaddingSizeError,Da as SizeOverflowError,Ua as SliceOffsetOutOfBoundsError,Fo as SolidityProtectedKeywordError,Ro as StateAssignmentConflictError,wa as SwitchChainError,La as TimeoutError,Ma as TipAboveFeeCapError,xo as TransactionExecutionError,Co as TransactionNotFoundError,Bo as TransactionReceiptNotFoundError,Ha as TransactionRejectedRpcError,ka as TransactionTypeNotSupportedError,za as UnauthorizedProviderError,qa as UnknownBundleIdError,Va as UnknownNodeError,Oa as UnknownRpcError,No as UnknownSignatureError,Po as UnknownTypeError,Ga as UnsupportedChainIdError,ja as UnsupportedNonOptionalCapabilityError,Do as UnsupportedPackedAbiType,Wa as UnsupportedProviderMethodError,G as UrlRequiredError,Ka as UserRejectedRequestError,I as WaitForCallsStatusTimeoutError,Uo as WaitForTransactionReceiptTimeoutError,wo as assertCurrentChain,Lo as assertRequest,Ie as assertTransactionEIP1559,Fe as assertTransactionEIP2930,Re as assertTransactionLegacy,Mo as blobsToCommitments,Ho as blobsToProofs,Za as boolToBytes,Ja as boolToHex,ko as bytesToBigInt,zo as bytesToBool,Qa as bytesToHex,qo as bytesToNumber,Vo as bytesToString,ue as ccipFetch,le as ccipRequest,Oo as checksumAddress,Go as commitmentToVersionedHash,jo as commitmentsToVersionedHashes,Wo as concat,Ko as concatBytes,Zo as concatHex,k as createClient,F as createNonceManager,r as createPublicClient,j as createTransport,z as custom,Jo as decodeAbiParameters,Qo as decodeErrorResult,Xo as decodeEventLog,ce as decodeFunctionData,Yo as decodeFunctionResult,_o as defineBlock,t as defineChain,$o as defineTransaction,as as defineTransactionReceipt,rs as defineTransactionRequest,os as deploylessCallViaBytecodeBytecode,ss as deploylessCallViaFactoryBytecode,es as encodeAbiParameters,ts as encodeDeployData,de as encodeErrorResult,R as encodeEventTopics,is as encodeFunctionData,Ee as encodeFunctionResult,x as encodePacked,Xa as erc20Abi,Ya as erc6492SignatureValidatorAbi,ns as erc6492SignatureValidatorByteCode,C as ethAddress,_a as etherUnits,he as extendSchema,W as fallback,cs as formatBlock,ds as formatEther,$a as formatGwei,Es as formatLog,ps as formatTransaction,us as formatTransactionReceipt,ls as formatTransactionRequest,ar as formatUnits,rr as fromHex,ms as getAbiItem,Ts as getAddress,gs as getChainContractAddress,bs as getContractError,hs as getEventSelector,ys as getEventSignature,fs as getFunctionSelector,vs as getFunctionSignature,As as getTransactionType,$s as getTypesForEIP712Domain,or as gweiUnits,ae as hashDomain,re as hashMessage,oe as hashStruct,se as hashTypedData,sr as hexToBigInt,er as hexToBool,tr as hexToBytes,ir as hexToNumber,B as hexToSignature,nr as hexToString,s as http,Ss as isAddress,Is as isAddressEqual,cr as isHex,Fs as keccak256,N as labelhash,Rs as maxUint16,xs as maxUint256,dr as multicall3Abi,P as namehash,Er as numberToBytes,pr as numberToHex,me as offchainLookup,Te as offchainLookupAbiItem,ge as offchainLookupSignature,ur as pad,lr as padBytes,mr as padHex,Cs as parseAbi,ye as parseAbiItem,fe as parseAbiParameters,Bs as parseEventLogs,D as parseSignature,q as parseUnits,Ns as prepareEncodeFunctionData,ee as presignMessagePrefix,U as publicActions,Ps as recoverAddress,Ds as recoverPublicKey,Us as rpcTransactionType,xe as serializeAccessList,w as serializeErc6492Signature,ve as serializeSignature,Ce as serializeTransaction,ws as sha256,K as shouldThrow,Ae as signatureToHex,Tr as size,Ls as slice,Ms as sliceBytes,Hs as sliceHex,gr as stringToBytes,br as stringToHex,hr as stringify,ks as toBlobSidecars,zs as toBlobs,yr as toBytes,qs as toEventHash,Vs as toEventSelector,Os as toEventSignature,Gs as toFunctionHash,js as toFunctionSelector,Ws as toFunctionSignature,fr as toHex,te as toPrefixedMessage,Ks as toRlp,Zs as transactionType,vr as trim,Ar as universalSignatureValidatorAbi,Js as universalSignatureValidatorByteCode,ie as validateTypedData,V as withCache,Z as withRetry,J as withTimeout,L as zeroAddress};
1
+ import{c as r}from"./parseSignature-NfMUgfN4.js";import{B as y,E as f,a as v,b as A,F as S,W as I,d as F,e as R,f as x,g as C,p as B,l as N,n as P,p as D,h as U,s as w,z as L}from"./parseSignature-NfMUgfN4.js";import{I as H,c as k,a as z,p as q,w as V}from"./custom-DTSkEq9y.js";import{h as s}from"./W3MFrameProviderSingleton-CF6uvH5s.js";import{U as G,c as j,f as W,s as K,w as Z,a as J}from"./W3MFrameProviderSingleton-CF6uvH5s.js";import{A as X,a as Y,B as _,b as $,C as aa,D as ra,E as oa,F as sa,c as ea,H as ta,I as ia,d as na,e as ca,f as da,g as Ea,h as pa,i as ua,j as la,k as ma,l as Ta,J as ga,L as ba,M as ha,m as ya,N as fa,n as va,o as Aa,P as Sa,p as Ia,q as Fa,R as Ra,r as xa,s as Ca,t as Ba,u as Na,S as Pa,v as Da,w as Ua,x as wa,T as La,y as Ma,z as Ha,G as ka,U as za,K as qa,O as Va,Q as Oa,V as Ga,W as ja,X as Wa,Y as Ka,Z as Za,_ as Ja,$ as Qa,a0 as Xa,a1 as Ya,a2 as _a,a3 as $a,a4 as ar,a5 as rr,a6 as or,a7 as sr,a8 as er,a9 as tr,aa as ir,ab as nr,ac as cr,ad as dr,ae as Er,af as pr,ag as ur,ah as lr,ai as mr,aj as Tr,ak as gr,al as br,am as hr,an as yr,ao as fr,ap as vr,a1 as Ar}from"./NetworkUtil-tcDS1IIB.js";import{A as Ir,a as Fr,b as Rr,c as xr,d as Cr,e as Br,f as Nr,g as Pr,h as Dr,i as Ur,j as wr,k as Lr,l as Mr,m as Hr,n as kr,o as zr,p as qr,B as Vr,q as Or,r as Gr,C as jr,s as Wr,t as Kr,u as Zr,v as Jr,w as Qr,x as Xr,y as Yr,z as _r,D as $r,E as ao,F as ro,G as oo,H as so,I as eo,J as to,K as io,L as no,M as co,N as Eo,O as po,P as uo,Q as lo,R as mo,S as To,T as go,U as bo,V as ho,W as yo,X as fo,Y as vo,Z as Ao,_ as So,$ as Io,a0 as Fo,a1 as Ro,a2 as xo,a3 as Co,a4 as Bo,a5 as No,a6 as Po,a7 as Do,a8 as Uo,a9 as wo,aa as Lo,ab as Mo,ac as Ho,ad as ko,ae as zo,af as qo,ag as Vo,ah as Oo,ai as Go,aj as jo,ak as Wo,al as Ko,am as Zo,an as Jo,ao as Qo,ap as Xo,aq as Yo,ar as _o,as as $o,at as as,au as rs,av as os,aw as ss,ax as es,ay as ts,az as is,aA as ns,aB as cs,aC as ds,aD as Es,aE as ps,aF as us,aG as ls,aH as ms,aI as Ts,aJ as gs,aK as bs,aL as hs,aM as ys,aN as fs,aM as vs,aO as As,aP as Ss,aQ as Is,aR as Fs,aS as Rs,aT as xs,aU as Cs,aV as Bs,aW as Ns,aX as Ps,aY as Ds,aZ as Us,a_ as ws,a$ as Ls,b0 as Ms,b1 as Hs,b2 as ks,b3 as zs,b4 as qs,aL as Vs,aM as Os,b4 as Gs,aN as js,aM as Ws,b5 as Ks,b6 as Zs,aA as Js}from"./sendRawTransaction-JGobH71Z.js";import{I as Xs,a as Ys,b as _s,g as $s,h as ae,c as re,d as oe,e as se,p as ee,t as te,v as ie}from"./hashTypedData-DyjRVyiF.js";import{d as ce,e as de,a as Ee}from"./localBatchGatewayRequest-CrEvGINX.js";import{ccipRequest as ue,ccipRequest as le,offchainLookup as me,offchainLookupAbiItem as Te,offchainLookupSignature as ge}from"./ccip-BuuvnkRx.js";import{d as t}from"./verifyHash-BqY8uOSx.js";import{e as he,p as ye,a as fe,s as ve,s as Ae}from"./verifyHash-BqY8uOSx.js";import{a as Ie,b as Fe,c as Re,s as xe,d as Ce}from"./serializeTransaction-B-NbRyZz.js";import"./secp256k1-NtZ6kHJZ.js";import"./dcl-schemas-CmtP3U6y.js";import"./index-B9uk5-Wa.js";import"./react-BYHuwl8r.js";import"./sentry-2i8Tr7WR.js";import"./index-CiRq1n15.js";import"./events-DQ172AOg.js";import"./index-Cq8I2bCh.js";import"./ethers-DfPQ1iPJ.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-Dj0kiq3a.js";export{Ir as AbiConstructorNotFoundError,Fr as AbiConstructorParamsNotFoundError,Rr as AbiDecodingDataSizeTooSmallError,xr as AbiDecodingZeroDataError,Cr as AbiEncodingArrayLengthMismatchError,Br as AbiEncodingBytesSizeMismatchError,Nr as AbiEncodingLengthMismatchError,Pr as AbiErrorInputsNotFoundError,Dr as AbiErrorNotFoundError,Ur as AbiErrorSignatureNotFoundError,wr as AbiEventNotFoundError,Lr as AbiEventSignatureEmptyTopicsError,Mr as AbiEventSignatureNotFoundError,Hr as AbiFunctionNotFoundError,kr as AbiFunctionOutputsNotFoundError,zr as AbiFunctionSignatureNotFoundError,qr as AccountStateConflictError,X as AtomicReadyWalletRejectedUpgradeError,Y as AtomicityNotSupportedError,_ as BaseError,Vr as BaseFeeScalarError,Or as BlockNotFoundError,y as BundleFailedError,$ as BundleTooLargeError,Gr as BytesSizeMismatchError,jr as CallExecutionError,aa as ChainDisconnectedError,Wr as ChainDoesNotSupportContract,Kr as ChainMismatchError,Zr as ChainNotFoundError,Jr as CircularReferenceError,Qr as ClientChainNotConfiguredError,Xr as ContractFunctionExecutionError,Yr as ContractFunctionRevertedError,_r as ContractFunctionZeroDataError,$r as CounterfactualDeploymentFailedError,ao as DecodeLogDataMismatch,ro as DecodeLogTopicsMismatch,ra as DuplicateIdError,oo as Eip1559FeesNotSupportedError,f as EnsAvatarInvalidNftUriError,v as EnsAvatarUnsupportedNamespaceError,A as EnsAvatarUriResolutionError,so as EstimateGasExecutionError,oa as ExecutionRevertedError,sa as FeeCapTooHighError,ea as FeeCapTooLowError,S as FilterTypeNotSupportedError,ta as HttpRequestError,ia as InsufficientFundsError,na as IntegerOutOfRangeError,ca as InternalRpcError,da as IntrinsicGasTooHighError,Ea as IntrinsicGasTooLowError,eo as InvalidAbiDecodingTypeError,to as InvalidAbiEncodingTypeError,io as InvalidAbiItemError,no as InvalidAbiParametersError,co as InvalidAbiTypeParameterError,Eo as InvalidAddressError,po as InvalidArrayError,pa as InvalidBytesBooleanError,uo as InvalidChainIdError,H as InvalidDecimalNumberError,lo as InvalidDefinitionTypeError,Xs as InvalidDomainError,mo as InvalidFunctionModifierError,ua as InvalidHexBooleanError,la as InvalidInputRpcError,To as InvalidLegacyVError,go as InvalidModifierError,bo as InvalidParameterError,ma as InvalidParamsRpcError,ho as InvalidParenthesisError,Ys as InvalidPrimaryTypeError,Ta as InvalidRequestRpcError,yo as InvalidSerializableTransactionError,fo as InvalidSignatureError,vo as InvalidStorageKeySizeError,Ao as InvalidStructSignatureError,_s as InvalidStructTypeError,ga as JsonRpcVersionUnsupportedError,ba as LimitExceededRpcError,So as MaxFeePerGasTooLowError,ha as MethodNotFoundRpcError,ya as MethodNotSupportedRpcError,fa as NonceMaxValueError,va as NonceTooHighError,Aa as NonceTooLowError,Sa as ParseRpcError,Ia as ProviderDisconnectedError,Fa as ProviderRpcError,Io as RawContractError,Ra as ResourceNotFoundRpcError,xa as ResourceUnavailableRpcError,Ca as ResponseBodyTooLargeError,Ba as RpcError,Na as RpcRequestError,Pa as SizeExceedsPaddingSizeError,Da as SizeOverflowError,Ua as SliceOffsetOutOfBoundsError,Fo as SolidityProtectedKeywordError,Ro as StateAssignmentConflictError,wa as SwitchChainError,La as TimeoutError,Ma as TipAboveFeeCapError,xo as TransactionExecutionError,Co as TransactionNotFoundError,Bo as TransactionReceiptNotFoundError,Ha as TransactionRejectedRpcError,ka as TransactionTypeNotSupportedError,za as UnauthorizedProviderError,qa as UnknownBundleIdError,Va as UnknownNodeError,Oa as UnknownRpcError,No as UnknownSignatureError,Po as UnknownTypeError,Ga as UnsupportedChainIdError,ja as UnsupportedNonOptionalCapabilityError,Do as UnsupportedPackedAbiType,Wa as UnsupportedProviderMethodError,G as UrlRequiredError,Ka as UserRejectedRequestError,I as WaitForCallsStatusTimeoutError,Uo as WaitForTransactionReceiptTimeoutError,wo as assertCurrentChain,Lo as assertRequest,Ie as assertTransactionEIP1559,Fe as assertTransactionEIP2930,Re as assertTransactionLegacy,Mo as blobsToCommitments,Ho as blobsToProofs,Za as boolToBytes,Ja as boolToHex,ko as bytesToBigInt,zo as bytesToBool,Qa as bytesToHex,qo as bytesToNumber,Vo as bytesToString,ue as ccipFetch,le as ccipRequest,Oo as checksumAddress,Go as commitmentToVersionedHash,jo as commitmentsToVersionedHashes,Wo as concat,Ko as concatBytes,Zo as concatHex,k as createClient,F as createNonceManager,r as createPublicClient,j as createTransport,z as custom,Jo as decodeAbiParameters,Qo as decodeErrorResult,Xo as decodeEventLog,ce as decodeFunctionData,Yo as decodeFunctionResult,_o as defineBlock,t as defineChain,$o as defineTransaction,as as defineTransactionReceipt,rs as defineTransactionRequest,os as deploylessCallViaBytecodeBytecode,ss as deploylessCallViaFactoryBytecode,es as encodeAbiParameters,ts as encodeDeployData,de as encodeErrorResult,R as encodeEventTopics,is as encodeFunctionData,Ee as encodeFunctionResult,x as encodePacked,Xa as erc20Abi,Ya as erc6492SignatureValidatorAbi,ns as erc6492SignatureValidatorByteCode,C as ethAddress,_a as etherUnits,he as extendSchema,W as fallback,cs as formatBlock,ds as formatEther,$a as formatGwei,Es as formatLog,ps as formatTransaction,us as formatTransactionReceipt,ls as formatTransactionRequest,ar as formatUnits,rr as fromHex,ms as getAbiItem,Ts as getAddress,gs as getChainContractAddress,bs as getContractError,hs as getEventSelector,ys as getEventSignature,fs as getFunctionSelector,vs as getFunctionSignature,As as getTransactionType,$s as getTypesForEIP712Domain,or as gweiUnits,ae as hashDomain,re as hashMessage,oe as hashStruct,se as hashTypedData,sr as hexToBigInt,er as hexToBool,tr as hexToBytes,ir as hexToNumber,B as hexToSignature,nr as hexToString,s as http,Ss as isAddress,Is as isAddressEqual,cr as isHex,Fs as keccak256,N as labelhash,Rs as maxUint16,xs as maxUint256,dr as multicall3Abi,P as namehash,Er as numberToBytes,pr as numberToHex,me as offchainLookup,Te as offchainLookupAbiItem,ge as offchainLookupSignature,ur as pad,lr as padBytes,mr as padHex,Cs as parseAbi,ye as parseAbiItem,fe as parseAbiParameters,Bs as parseEventLogs,D as parseSignature,q as parseUnits,Ns as prepareEncodeFunctionData,ee as presignMessagePrefix,U as publicActions,Ps as recoverAddress,Ds as recoverPublicKey,Us as rpcTransactionType,xe as serializeAccessList,w as serializeErc6492Signature,ve as serializeSignature,Ce as serializeTransaction,ws as sha256,K as shouldThrow,Ae as signatureToHex,Tr as size,Ls as slice,Ms as sliceBytes,Hs as sliceHex,gr as stringToBytes,br as stringToHex,hr as stringify,ks as toBlobSidecars,zs as toBlobs,yr as toBytes,qs as toEventHash,Vs as toEventSelector,Os as toEventSignature,Gs as toFunctionHash,js as toFunctionSelector,Ws as toFunctionSignature,fr as toHex,te as toPrefixedMessage,Ks as toRlp,Zs as transactionType,vr as trim,Ar as universalSignatureValidatorAbi,Js as universalSignatureValidatorByteCode,ie as validateTypedData,V as withCache,Z as withRetry,J as withTimeout,L as zeroAddress};
@@ -1,4 +1,4 @@
1
- import{p as ut}from"./sentry-Dx-KuLV3.js";var U=(e=>(e.MissingApiKey="MISSING_API_KEY",e.ModalNotReady="MODAL_NOT_READY",e.MalformedResponse="MALFORMED_RESPONSE",e.InvalidArgument="INVALID_ARGUMENT",e.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",e.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",e))(U||{}),j=(e=>(e.SyncWeb3Method="SYNC_WEB3_METHOD",e.DuplicateIframe="DUPLICATE_IFRAME",e.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",e.DeprecationNotice="DEPRECATION_NOTICE",e.ProductAnnouncement="ANNOUNCEMENT",e))(j||{}),_e=(e=>(e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",e[e.MagicLinkExpired=-10001]="MagicLinkExpired",e[e.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",e[e.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",e[e.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",e[e.UpdateEmailFailed=-10004]="UpdateEmailFailed",e[e.UserRequestEditEmail=-10005]="UserRequestEditEmail",e[e.InactiveRecipient=-10010]="InactiveRecipient",e[e.AccessDeniedToUser=-10011]="AccessDeniedToUser",e[e.RedirectLoginComplete=-10015]="RedirectLoginComplete",e))(_e||{}),M=(e=>(e.MetaMask="metamask",e.CoinbaseWallet="coinbase_wallet",e))(M||{}),ae=(e=>(e.WalletSelected="wallet_selected",e.WalletConnected="wallet_connected",e.WalletRejected="wallet_rejected",e))(ae||{}),h=(e=>(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.SetAuthorizationToken="magic_auth_set_authorization_token",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_is_logged_in",e.Logout="magic_auth_logout",e.UpdateEmail="magic_auth_update_email",e.UserSettings="magic_auth_settings",e.UserSettingsTestMode="magic_auth_settings_testing_mode",e.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",e.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",e.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",e.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",e.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",e.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",e.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",e.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",e.LogoutTestMode="magic_auth_logout_testing_mode",e.UpdateEmailTestMode="magic_auth_update_email_testing_mode",e.IntermediaryEvent="magic_intermediary_event",e.RequestAccounts="eth_requestAccounts",e.GetInfo="magic_get_info",e.ShowUI="magic_wallet",e.NFTPurchase="magic_nft_purchase",e.NFTCheckout="magic_nft_checkout",e.NFTTransfer="magic_nft_transfer",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e.MagicBoxHeartBeat="magic_box_heart_beat",e.AutoConnect="mc_auto_connect",e.Login="mc_login",e.EncryptV1="magic_auth_encrypt_v1",e.DecryptV1="magic_auth_decrypt_v1",e.ShowNFTs="magic_show_nfts",e.ShowOnRamp="magic_show_fiat_onramp",e.ShowSendTokensUI="magic_show_send_tokens_ui",e.ShowAddress="magic_show_address",e.ShowBalances="magic_show_balances",e.SendGaslessTransaction="eth_sendGaslessTransaction",e))(h||{}),k=(e=>(e.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",e.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",e.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",e.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",e.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",e.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",e.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",e))(k||{}),ce=(e=>(e.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",e))(ce||{}),dt=(e=>(e.UpdateEmail="update-email",e.MFA="mfa",e.Recovery="recovery",e))(dt||{}),ht=(e=>(e.Retry="retry",e))(ht||{}),pt=(e=>(e.EmailSent="email-sent",e.EmailNotDeliverable="email-not-deliverable",e))(pt||{}),B=(e=>(e.VerifyEmailOtp="verify-email-otp",e.Cancel="cancel",e))(B||{}),mt=(e=>(e.EmailOTPSent="email-otp-sent",e.InvalidEmailOtp="invalid-email-otp",e.ExpiredEmailOtp="expired-email-otp",e))(mt||{}),ge=(e=>(e.Retry="device-retry",e))(ge||{}),Et=(e=>(e.DeviceApproved="device-approved",e.DeviceNeedsApproval="device-needs-approval",e.DeviceVerificationLinkExpired="device-verification-link-expired",e.DeviceVerificationEmailSent="device-verification-email-sent",e))(Et||{}),b=(e=>(e.Retry="Recency/auth-factor-retry",e.Cancel="Recency/auth-factor-verification-cancel",e.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",e))(b||{}),ft=(e=>(e.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",e.PrimaryAuthFactorVerified="Recency/auth-factor-verified",e.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",e.EmailExpired="Recency/auth-factor-verification-email-expired",e.EmailSent="Recency/auth-factor-verification-email-sent",e.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",e))(ft||{}),P=(e=>(e.RetryWithNewEmail="UpdateEmail/retry-with-new-email",e.Cancel="UpdateEmail/new-email-verification-cancel",e.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",e))(P||{}),gt=(e=>(e.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",e.EmailUpdated="UpdateEmail/email-updated",e.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",e.EmailExpired="UpdateEmail/new-email-verification-email-expired",e.EmailSent="UpdateEmail/new-email-verification-email-sent",e.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",e.InvalidEmail="UpdateEmail/new-email-invalid",e.EmailAlreadyExists="UpdateEmail/new-email-already-exists",e))(gt||{}),vt=(e=>(e.Harmony="HARMONY",e))(vt||{}),_t=(e=>(e.PhoneNumber="phone_number",e))(_t||{}),Ee={},It=Object.create,pe=Object.defineProperty,yt=Object.defineProperties,wt=Object.getOwnPropertyDescriptor,Rt=Object.getOwnPropertyDescriptors,$t=Object.getOwnPropertyNames,Te=Object.getOwnPropertySymbols,Nt=Object.getPrototypeOf,He=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Le=(e,t,r)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ie=(e,t)=>{for(var r in t||(t={}))He.call(t,r)&&Le(e,r,t[r]);if(Te)for(var r of Te(t))At.call(t,r)&&Le(e,r,t[r]);return e},ye=(e,t)=>yt(e,Rt(t)),Ot=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Mt=(e,t)=>{for(var r in t)pe(e,r,{get:t[r],enumerable:!0})},Tt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of $t(t))!He.call(e,n)&&n!==r&&pe(e,n,{get:()=>t[n],enumerable:!(i=wt(t,n))||i.enumerable});return e},Lt=(e,t,r)=>(r=e!=null?It(Nt(e)):{},Tt(!e||!e.__esModule?pe(r,"default",{value:e,enumerable:!0}):r,e)),_=(e,t,r)=>new Promise((i,n)=>{var s=u=>{try{o(r.next(u))}catch(l){n(l)}},a=u=>{try{o(r.throw(u))}catch(l){n(l)}},o=u=>u.done?i(u.value):Promise.resolve(u.value).then(s,a);o((r=r.apply(e,t)).next())}),St=Ot((e,t)=>{var r=Object.prototype.hasOwnProperty,i="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(i=!1));function s(l,c,d){this.fn=l,this.context=c,this.once=d||!1}function a(l,c,d,f,v){if(typeof d!="function")throw new TypeError("The listener must be a function");var I=new s(d,f||l,v),$=i?i+c:c;return l._events[$]?l._events[$].fn?l._events[$]=[l._events[$],I]:l._events[$].push(I):(l._events[$]=I,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var l=[],c,d;if(this._eventsCount===0)return l;for(d in c=this._events)r.call(c,d)&&l.push(i?d.slice(1):d);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},u.prototype.listeners=function(l){var c=i?i+l:l,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,v=d.length,I=new Array(v);f<v;f++)I[f]=d[f].fn;return I},u.prototype.listenerCount=function(l){var c=i?i+l:l,d=this._events[c];return d?d.fn?1:d.length:0},u.prototype.emit=function(l,c,d,f,v,I){var $=i?i+l:l;if(!this._events[$])return!1;var p=this._events[$],L=arguments.length,C,y;if(p.fn){switch(p.once&&this.removeListener(l,p.fn,void 0,!0),L){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,c),!0;case 3:return p.fn.call(p.context,c,d),!0;case 4:return p.fn.call(p.context,c,d,f),!0;case 5:return p.fn.call(p.context,c,d,f,v),!0;case 6:return p.fn.call(p.context,c,d,f,v,I),!0}for(y=1,C=new Array(L-1);y<L;y++)C[y-1]=arguments[y];p.fn.apply(p.context,C)}else{var ct=p.length,V;for(y=0;y<ct;y++)switch(p[y].once&&this.removeListener(l,p[y].fn,void 0,!0),L){case 1:p[y].fn.call(p[y].context);break;case 2:p[y].fn.call(p[y].context,c);break;case 3:p[y].fn.call(p[y].context,c,d);break;case 4:p[y].fn.call(p[y].context,c,d,f);break;default:if(!C)for(V=1,C=new Array(L-1);V<L;V++)C[V-1]=arguments[V];p[y].fn.apply(p[y].context,C)}}return!0},u.prototype.on=function(l,c,d){return a(this,l,c,d,!1)},u.prototype.once=function(l,c,d){return a(this,l,c,d,!0)},u.prototype.removeListener=function(l,c,d,f){var v=i?i+l:l;if(!this._events[v])return this;if(!c)return o(this,v),this;var I=this._events[v];if(I.fn)I.fn===c&&(!f||I.once)&&(!d||I.context===d)&&o(this,v);else{for(var $=0,p=[],L=I.length;$<L;$++)(I[$].fn!==c||f&&!I[$].once||d&&I[$].context!==d)&&p.push(I[$]);p.length?this._events[v]=p.length===1?p[0]:p:o(this,v)}return this},u.prototype.removeAllListeners=function(l){var c;return l?(c=i?i+l:l,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=i,u.EventEmitter=u,typeof t<"u"&&(t.exports=u)});function Ct(e){let t={exports:{}};return e(t,t.exports),t.exports}var bt=Number.MAX_SAFE_INTEGER||9007199254740991,we={MAX_LENGTH:256,MAX_SAFE_INTEGER:bt,MAX_SAFE_COMPONENT_LENGTH:16},Pt=typeof ut=="object"&&Ee&&Ee.NODE_DEBUG&&/\bsemver\b/i.test(Ee.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},E=Pt,ee=Ct(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r}=we,i=(t=e.exports={}).re=[],n=t.src=[],s=t.t={},a=0,o=(u,l,c)=>{let d=a++;E(d,l),s[u]=d,n[d]=l,i[d]=new RegExp(l,c?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION",`(${n[s.NUMERICIDENTIFIER]})\\.(${n[s.NUMERICIDENTIFIER]})\\.(${n[s.NUMERICIDENTIFIER]})`),o("MAINVERSIONLOOSE",`(${n[s.NUMERICIDENTIFIERLOOSE]})\\.(${n[s.NUMERICIDENTIFIERLOOSE]})\\.(${n[s.NUMERICIDENTIFIERLOOSE]})`),o("PRERELEASEIDENTIFIER",`(?:${n[s.NUMERICIDENTIFIER]}|${n[s.NONNUMERICIDENTIFIER]})`),o("PRERELEASEIDENTIFIERLOOSE",`(?:${n[s.NUMERICIDENTIFIERLOOSE]}|${n[s.NONNUMERICIDENTIFIER]})`),o("PRERELEASE",`(?:-(${n[s.PRERELEASEIDENTIFIER]}(?:\\.${n[s.PRERELEASEIDENTIFIER]})*))`),o("PRERELEASELOOSE",`(?:-?(${n[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[s.PRERELEASEIDENTIFIERLOOSE]})*))`),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD",`(?:\\+(${n[s.BUILDIDENTIFIER]}(?:\\.${n[s.BUILDIDENTIFIER]})*))`),o("FULLPLAIN",`v?${n[s.MAINVERSION]}${n[s.PRERELEASE]}?${n[s.BUILD]}?`),o("FULL",`^${n[s.FULLPLAIN]}$`),o("LOOSEPLAIN",`[v=\\s]*${n[s.MAINVERSIONLOOSE]}${n[s.PRERELEASELOOSE]}?${n[s.BUILD]}?`),o("LOOSE",`^${n[s.LOOSEPLAIN]}$`),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",`${n[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),o("XRANGEIDENTIFIER",`${n[s.NUMERICIDENTIFIER]}|x|X|\\*`),o("XRANGEPLAIN",`[v=\\s]*(${n[s.XRANGEIDENTIFIER]})(?:\\.(${n[s.XRANGEIDENTIFIER]})(?:\\.(${n[s.XRANGEIDENTIFIER]})(?:${n[s.PRERELEASE]})?${n[s.BUILD]}?)?)?`),o("XRANGEPLAINLOOSE",`[v=\\s]*(${n[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[s.XRANGEIDENTIFIERLOOSE]})(?:${n[s.PRERELEASELOOSE]})?${n[s.BUILD]}?)?)?`),o("XRANGE",`^${n[s.GTLT]}\\s*${n[s.XRANGEPLAIN]}$`),o("XRANGELOOSE",`^${n[s.GTLT]}\\s*${n[s.XRANGEPLAINLOOSE]}$`),o("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),o("COERCERTL",n[s.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM",`(\\s*)${n[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",o("TILDE",`^${n[s.LONETILDE]}${n[s.XRANGEPLAIN]}$`),o("TILDELOOSE",`^${n[s.LONETILDE]}${n[s.XRANGEPLAINLOOSE]}$`),o("LONECARET","(?:\\^)"),o("CARETTRIM",`(\\s*)${n[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",o("CARET",`^${n[s.LONECARET]}${n[s.XRANGEPLAIN]}$`),o("CARETLOOSE",`^${n[s.LONECARET]}${n[s.XRANGEPLAINLOOSE]}$`),o("COMPARATORLOOSE",`^${n[s.GTLT]}\\s*(${n[s.LOOSEPLAIN]})$|^$`),o("COMPARATOR",`^${n[s.GTLT]}\\s*(${n[s.FULLPLAIN]})$|^$`),o("COMPARATORTRIM",`(\\s*)${n[s.GTLT]}\\s*(${n[s.LOOSEPLAIN]}|${n[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE",`^\\s*(${n[s.XRANGEPLAIN]})\\s+-\\s+(${n[s.XRANGEPLAIN]})\\s*$`),o("HYPHENRANGELOOSE",`^\\s*(${n[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[s.XRANGEPLAINLOOSE]})\\s*$`),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0.0.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),Se=/^[0-9]+$/,kt=(e,t)=>{let r=Se.test(e),i=Se.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1},Ut={compareIdentifiers:kt},{MAX_LENGTH:Ce,MAX_SAFE_INTEGER:re}=we,{re:be,t:Pe}=ee,{compareIdentifiers:H}=Ut,w=class{constructor(e,t){if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>Ce)throw new TypeError(`version is longer than ${Ce} characters`);E("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?be[Pe.LOOSE]:be[Pe.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>re||this.major<0)throw new TypeError("Invalid major version");if(this.minor>re||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>re||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let n=+i;if(n>=0&&n<re)return n}return i}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(E("SemVer.compare",this.version,this.options,e),!(e instanceof w)){if(typeof e=="string"&&e===this.version)return 0;e=new w(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof w||(e=new w(e,this.options)),H(this.major,e.major)||H(this.minor,e.minor)||H(this.patch,e.patch)}comparePre(e){if(e instanceof w||(e=new w(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let r=this.prerelease[t],i=e.prerelease[t];if(E("prerelease compare",t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r!==i)return H(r,i)}while(++t)}compareBuild(e){e instanceof w||(e=new w(e,this.options));let t=0;do{let r=this.build[t],i=e.build[t];if(E("prerelease compare",t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r!==i)return H(r,i)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]=="number"&&(this.prerelease[r]++,r=-2);r===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}},Dt=(e,t,r)=>new w(e,r).compare(new w(t,r)),q=Dt,Gt=(e,t,r)=>q(e,t,r)===0,xt=Gt,Ft=(e,t,r)=>q(e,t,r)!==0,Wt=Ft,jt=(e,t,r)=>q(e,t,r)>0,qt=jt,Vt=(e,t,r)=>q(e,t,r)>=0,Ht=Vt,Xt=(e,t,r)=>q(e,t,r)<0,Bt=Xt,Kt=(e,t,r)=>q(e,t,r)<=0,Yt=Kt,zt=(e,t,r,i)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return xt(e,r,i);case"!=":return Wt(e,r,i);case">":return qt(e,r,i);case">=":return Ht(e,r,i);case"<":return Bt(e,r,i);case"<=":return Yt(e,r,i);default:throw new TypeError(`Invalid operator: ${t}`)}},fe=zt,X=Symbol("SemVer ANY"),Q=class{static get ANY(){return X}constructor(e,t){if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),e instanceof Q){if(e.loose===!!t.loose)return e;e=e.value}E("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===X?this.value="":this.value=this.operator+this.semver.version,E("comp",this)}parse(e){let t=this.options.loose?ke[Ue.COMPARATORLOOSE]:ke[Ue.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new w(r[2],this.options.loose):this.semver=X}toString(){return this.value}test(e){if(E("Comparator.test",e,this.options.loose),this.semver===X||e===X)return!0;if(typeof e=="string")try{e=new w(e,this.options)}catch{return!1}return fe(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Q))throw new TypeError("a Comparator is required");if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""||new F(e.value,t).test(this.value);if(e.operator==="")return e.value===""||new F(this.value,t).test(e.semver);let r=!(this.operator!==">="&&this.operator!==">"||e.operator!==">="&&e.operator!==">"),i=!(this.operator!=="<="&&this.operator!=="<"||e.operator!=="<="&&e.operator!=="<"),n=this.semver.version===e.semver.version,s=!(this.operator!==">="&&this.operator!=="<="||e.operator!==">="&&e.operator!=="<="),a=fe(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),o=fe(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return r||i||n&&s||a||o}},{re:ke,t:Ue}=ee,F=class{constructor(e,t){if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),e instanceof F)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new F(e.raw,t);if(e instanceof Q)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let{loose:t}=this.options;e=e.trim();let r=t?N[R.HYPHENRANGELOOSE]:N[R.HYPHENRANGE];e=e.replace(r,cr(this.options.includePrerelease)),E("hyphen replace",e),e=e.replace(N[R.COMPARATORTRIM],Jt),E("comparator trim",e,N[R.COMPARATORTRIM]),e=(e=(e=e.replace(N[R.TILDETRIM],Qt)).replace(N[R.CARETTRIM],Zt)).split(/\s+/).join(" ");let i=t?N[R.COMPARATORLOOSE]:N[R.COMPARATOR];return e.split(" ").map(n=>er(n,this.options)).join(" ").split(/\s+/).map(n=>lr(n,this.options)).filter(this.options.loose?n=>!!n.match(i):()=>!0).map(n=>new Q(n,this.options))}intersects(e,t){if(!(e instanceof F))throw new TypeError("a Range is required");return this.set.some(r=>De(r,t)&&e.set.some(i=>De(i,t)&&r.every(n=>i.every(s=>n.intersects(s,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new w(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(ur(this.set[t],e,this.options))return!0;return!1}},{re:N,t:R,comparatorTrimReplace:Jt,tildeTrimReplace:Qt,caretTrimReplace:Zt}=ee,De=(e,t)=>{let r=!0,i=e.slice(),n=i.pop();for(;r&&i.length;)r=i.every(s=>n.intersects(s,t)),n=i.pop();return r},er=(e,t)=>(E("comp",e,t),e=ir(e,t),E("caret",e),e=tr(e,t),E("tildes",e),e=sr(e,t),E("xrange",e),e=ar(e,t),E("stars",e),e),A=e=>!e||e.toLowerCase()==="x"||e==="*",tr=(e,t)=>e.trim().split(/\s+/).map(r=>rr(r,t)).join(" "),rr=(e,t)=>{let r=t.loose?N[R.TILDELOOSE]:N[R.TILDE];return e.replace(r,(i,n,s,a,o)=>{let u;return E("tilde",e,i,n,s,a,o),A(n)?u="":A(s)?u=`>=${n}.0.0 <${+n+1}.0.0-0`:A(a)?u=`>=${n}.${s}.0 <${n}.${+s+1}.0-0`:o?(E("replaceTilde pr",o),u=`>=${n}.${s}.${a}-${o} <${n}.${+s+1}.0-0`):u=`>=${n}.${s}.${a} <${n}.${+s+1}.0-0`,E("tilde return",u),u})},ir=(e,t)=>e.trim().split(/\s+/).map(r=>nr(r,t)).join(" "),nr=(e,t)=>{E("caret",e,t);let r=t.loose?N[R.CARETLOOSE]:N[R.CARET],i=t.includePrerelease?"-0":"";return e.replace(r,(n,s,a,o,u)=>{let l;return E("caret",e,n,s,a,o,u),A(s)?l="":A(a)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:A(o)?l=s==="0"?`>=${s}.${a}.0${i} <${s}.${+a+1}.0-0`:`>=${s}.${a}.0${i} <${+s+1}.0.0-0`:u?(E("replaceCaret pr",u),l=s==="0"?a==="0"?`>=${s}.${a}.${o}-${u} <${s}.${a}.${+o+1}-0`:`>=${s}.${a}.${o}-${u} <${s}.${+a+1}.0-0`:`>=${s}.${a}.${o}-${u} <${+s+1}.0.0-0`):(E("no pr"),l=s==="0"?a==="0"?`>=${s}.${a}.${o}${i} <${s}.${a}.${+o+1}-0`:`>=${s}.${a}.${o}${i} <${s}.${+a+1}.0-0`:`>=${s}.${a}.${o} <${+s+1}.0.0-0`),E("caret return",l),l})},sr=(e,t)=>(E("replaceXRanges",e,t),e.split(/\s+/).map(r=>or(r,t)).join(" ")),or=(e,t)=>{e=e.trim();let r=t.loose?N[R.XRANGELOOSE]:N[R.XRANGE];return e.replace(r,(i,n,s,a,o,u)=>{E("xRange",e,i,n,s,a,o,u);let l=A(s),c=l||A(a),d=c||A(o),f=d;return n==="="&&f&&(n=""),u=t.includePrerelease?"-0":"",l?i=n===">"||n==="<"?"<0.0.0-0":"*":n&&f?(c&&(a=0),o=0,n===">"?(n=">=",c?(s=+s+1,a=0,o=0):(a=+a+1,o=0)):n==="<="&&(n="<",c?s=+s+1:a=+a+1),n==="<"&&(u="-0"),i=`${n+s}.${a}.${o}${u}`):c?i=`>=${s}.0.0${u} <${+s+1}.0.0-0`:d&&(i=`>=${s}.${a}.0${u} <${s}.${+a+1}.0-0`),E("xRange return",i),i})},ar=(e,t)=>(E("replaceStars",e,t),e.trim().replace(N[R.STAR],"")),lr=(e,t)=>(E("replaceGTE0",e,t),e.trim().replace(N[t.includePrerelease?R.GTE0PRE:R.GTE0],"")),cr=e=>(t,r,i,n,s,a,o,u,l,c,d,f,v)=>`${r=A(i)?"":A(n)?`>=${i}.0.0${e?"-0":""}`:A(s)?`>=${i}.${n}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${u=A(l)?"":A(c)?`<${+l+1}.0.0-0`:A(d)?`<${l}.${+c+1}.0-0`:f?`<=${l}.${c}.${d}-${f}`:e?`<${l}.${c}.${+d+1}-0`:`<=${u}`}`.trim(),ur=(e,t,r)=>{for(let i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let i=0;i<e.length;i++)if(E(e[i].semver),e[i].semver!==Q.ANY&&e[i].semver.prerelease.length>0){let n=e[i].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0},dr=(e,t,r)=>{try{t=new F(t,r)}catch{return!1}return t.test(e)},{MAX_LENGTH:hr}=we,{re:Ge,t:xe}=ee,pr=(e,t)=>{if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),e instanceof w)return e;if(typeof e!="string"||e.length>hr||!(t.loose?Ge[xe.LOOSE]:Ge[xe.FULL]).test(e))return null;try{return new w(e,t)}catch{return null}},mr=pr,{re:ie,t:ne}=ee,Er=(e,t)=>{if(e instanceof w)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;let r=null;if((t=t||{}).rtl){let i;for(;(i=ie[ne.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&i.index+i[0].length===r.index+r[0].length||(r=i),ie[ne.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;ie[ne.COERCERTL].lastIndex=-1}else r=e.match(ie[ne.COERCE]);return r===null?null:mr(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};function fr(e){return String.fromCharCode(parseInt(e.slice(1),16))}function gr(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}function vr(e){return btoa(encodeURIComponent(e).replace(/%[0-9A-F]{2}/g,fr))}function _r(e){return decodeURIComponent(Array.from(atob(e),gr).join(""))}function Xe(e){return vr(JSON.stringify(e))}function Ir(e){return JSON.parse(_r(e))}function K(e){return typeof e>"u"}function yr(e){return e===null}function Be(e){return yr(e)||K(e)}function wr(e){return Be(e)?!1:!K(e.jsonrpc)&&!K(e.id)&&(!K(e.result)||!K(e.error))}function Rr(e){return Be(e)?!1:typeof e=="number"&&Object.values(_e).includes(e)}function ue(e){if(!e)return!0;for(let t in e)if(Object.hasOwnProperty.call(e,t))return!1;return!0}var g={};function _i(e,t){return Object.assign(g,t),e}var $r={"magic-sdk":"magic-sdk","@magic-sdk/react-native":"magic-sdk-rn","@magic-sdk/react-native-bare":"magic-sdk-rn-bare","@magic-sdk/react-native-expo":"magic-sdk-rn-expo"},D=class extends Error{constructor(e,t){super(`Magic SDK Error: [${e}] ${t}`),this.code=e,this.rawMessage=t,this.__proto__=Error,Object.setPrototypeOf(this,D.prototype)}},de=class extends Error{constructor(e){super(),this.__proto__=Error;let t=Number(e==null?void 0:e.code);this.rawMessage=(e==null?void 0:e.message)||"Internal error",this.code=Rr(t)?t:_e.InternalError,this.message=`Magic RPC Error: [${this.code}] ${this.rawMessage}`,this.data=(e==null?void 0:e.data)||void 0,Object.setPrototypeOf(this,de.prototype)}},te=class{constructor(e,t){this.code=e,this.rawMessage=t,this.message=`Magic SDK Warning: [${e}] ${t}`}log(){console.warn(this.message)}},Ke=class extends Error{constructor(e,t,r,i){super(`Magic Extension Error (${e.name}): [${t}] ${r}`),this.code=t,this.rawMessage=r,this.data=i,this.__proto__=Error,Object.setPrototypeOf(this,Ke.prototype)}},Fe=class{constructor(e,t,r){this.code=t,this.rawMessage=r,this.message=`Magic Extension Warning (${e.name}): [${t}] ${r}`}log(){console.warn(this.message)}};function Nr(){return new D(U.MissingApiKey,"Please provide an API key that you acquired from the Magic developer dashboard.")}function Ar(){return new D(U.ModalNotReady,"Modal is not ready.")}function Or(){return new D(U.MalformedResponse,"Response from the Magic iframe is malformed.")}function Mr(e){return new D(U.ExtensionNotInitialized,`Extensions must be initialized with a Magic SDK instance before \`Extension.${e}\` can be accessed. Do not invoke \`Extension.${e}\` inside an extension constructor.`)}function Tr(e){let t=`Some extensions are incompatible with \`${g.sdkName}@${g.version}\`:`;return e.filter(r=>typeof r.compat<"u"&&r.compat!==null).forEach(r=>{let i=r.compat[g.sdkName];typeof i=="string"?t+=`
1
+ import{p as ut}from"./sentry-2i8Tr7WR.js";var U=(e=>(e.MissingApiKey="MISSING_API_KEY",e.ModalNotReady="MODAL_NOT_READY",e.MalformedResponse="MALFORMED_RESPONSE",e.InvalidArgument="INVALID_ARGUMENT",e.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",e.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",e))(U||{}),j=(e=>(e.SyncWeb3Method="SYNC_WEB3_METHOD",e.DuplicateIframe="DUPLICATE_IFRAME",e.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",e.DeprecationNotice="DEPRECATION_NOTICE",e.ProductAnnouncement="ANNOUNCEMENT",e))(j||{}),_e=(e=>(e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",e[e.MagicLinkExpired=-10001]="MagicLinkExpired",e[e.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",e[e.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",e[e.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",e[e.UpdateEmailFailed=-10004]="UpdateEmailFailed",e[e.UserRequestEditEmail=-10005]="UserRequestEditEmail",e[e.InactiveRecipient=-10010]="InactiveRecipient",e[e.AccessDeniedToUser=-10011]="AccessDeniedToUser",e[e.RedirectLoginComplete=-10015]="RedirectLoginComplete",e))(_e||{}),M=(e=>(e.MetaMask="metamask",e.CoinbaseWallet="coinbase_wallet",e))(M||{}),ae=(e=>(e.WalletSelected="wallet_selected",e.WalletConnected="wallet_connected",e.WalletRejected="wallet_rejected",e))(ae||{}),h=(e=>(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.SetAuthorizationToken="magic_auth_set_authorization_token",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_is_logged_in",e.Logout="magic_auth_logout",e.UpdateEmail="magic_auth_update_email",e.UserSettings="magic_auth_settings",e.UserSettingsTestMode="magic_auth_settings_testing_mode",e.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",e.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",e.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",e.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",e.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",e.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",e.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",e.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",e.LogoutTestMode="magic_auth_logout_testing_mode",e.UpdateEmailTestMode="magic_auth_update_email_testing_mode",e.IntermediaryEvent="magic_intermediary_event",e.RequestAccounts="eth_requestAccounts",e.GetInfo="magic_get_info",e.ShowUI="magic_wallet",e.NFTPurchase="magic_nft_purchase",e.NFTCheckout="magic_nft_checkout",e.NFTTransfer="magic_nft_transfer",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e.MagicBoxHeartBeat="magic_box_heart_beat",e.AutoConnect="mc_auto_connect",e.Login="mc_login",e.EncryptV1="magic_auth_encrypt_v1",e.DecryptV1="magic_auth_decrypt_v1",e.ShowNFTs="magic_show_nfts",e.ShowOnRamp="magic_show_fiat_onramp",e.ShowSendTokensUI="magic_show_send_tokens_ui",e.ShowAddress="magic_show_address",e.ShowBalances="magic_show_balances",e.SendGaslessTransaction="eth_sendGaslessTransaction",e))(h||{}),k=(e=>(e.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",e.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",e.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",e.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",e.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",e.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",e.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",e))(k||{}),ce=(e=>(e.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",e))(ce||{}),dt=(e=>(e.UpdateEmail="update-email",e.MFA="mfa",e.Recovery="recovery",e))(dt||{}),ht=(e=>(e.Retry="retry",e))(ht||{}),pt=(e=>(e.EmailSent="email-sent",e.EmailNotDeliverable="email-not-deliverable",e))(pt||{}),B=(e=>(e.VerifyEmailOtp="verify-email-otp",e.Cancel="cancel",e))(B||{}),mt=(e=>(e.EmailOTPSent="email-otp-sent",e.InvalidEmailOtp="invalid-email-otp",e.ExpiredEmailOtp="expired-email-otp",e))(mt||{}),ge=(e=>(e.Retry="device-retry",e))(ge||{}),Et=(e=>(e.DeviceApproved="device-approved",e.DeviceNeedsApproval="device-needs-approval",e.DeviceVerificationLinkExpired="device-verification-link-expired",e.DeviceVerificationEmailSent="device-verification-email-sent",e))(Et||{}),b=(e=>(e.Retry="Recency/auth-factor-retry",e.Cancel="Recency/auth-factor-verification-cancel",e.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",e))(b||{}),ft=(e=>(e.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",e.PrimaryAuthFactorVerified="Recency/auth-factor-verified",e.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",e.EmailExpired="Recency/auth-factor-verification-email-expired",e.EmailSent="Recency/auth-factor-verification-email-sent",e.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",e))(ft||{}),P=(e=>(e.RetryWithNewEmail="UpdateEmail/retry-with-new-email",e.Cancel="UpdateEmail/new-email-verification-cancel",e.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",e))(P||{}),gt=(e=>(e.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",e.EmailUpdated="UpdateEmail/email-updated",e.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",e.EmailExpired="UpdateEmail/new-email-verification-email-expired",e.EmailSent="UpdateEmail/new-email-verification-email-sent",e.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",e.InvalidEmail="UpdateEmail/new-email-invalid",e.EmailAlreadyExists="UpdateEmail/new-email-already-exists",e))(gt||{}),vt=(e=>(e.Harmony="HARMONY",e))(vt||{}),_t=(e=>(e.PhoneNumber="phone_number",e))(_t||{}),Ee={},It=Object.create,pe=Object.defineProperty,yt=Object.defineProperties,wt=Object.getOwnPropertyDescriptor,Rt=Object.getOwnPropertyDescriptors,$t=Object.getOwnPropertyNames,Te=Object.getOwnPropertySymbols,Nt=Object.getPrototypeOf,He=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Le=(e,t,r)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ie=(e,t)=>{for(var r in t||(t={}))He.call(t,r)&&Le(e,r,t[r]);if(Te)for(var r of Te(t))At.call(t,r)&&Le(e,r,t[r]);return e},ye=(e,t)=>yt(e,Rt(t)),Ot=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Mt=(e,t)=>{for(var r in t)pe(e,r,{get:t[r],enumerable:!0})},Tt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of $t(t))!He.call(e,n)&&n!==r&&pe(e,n,{get:()=>t[n],enumerable:!(i=wt(t,n))||i.enumerable});return e},Lt=(e,t,r)=>(r=e!=null?It(Nt(e)):{},Tt(!e||!e.__esModule?pe(r,"default",{value:e,enumerable:!0}):r,e)),_=(e,t,r)=>new Promise((i,n)=>{var s=u=>{try{o(r.next(u))}catch(l){n(l)}},a=u=>{try{o(r.throw(u))}catch(l){n(l)}},o=u=>u.done?i(u.value):Promise.resolve(u.value).then(s,a);o((r=r.apply(e,t)).next())}),St=Ot((e,t)=>{var r=Object.prototype.hasOwnProperty,i="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(i=!1));function s(l,c,d){this.fn=l,this.context=c,this.once=d||!1}function a(l,c,d,f,v){if(typeof d!="function")throw new TypeError("The listener must be a function");var I=new s(d,f||l,v),$=i?i+c:c;return l._events[$]?l._events[$].fn?l._events[$]=[l._events[$],I]:l._events[$].push(I):(l._events[$]=I,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var l=[],c,d;if(this._eventsCount===0)return l;for(d in c=this._events)r.call(c,d)&&l.push(i?d.slice(1):d);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},u.prototype.listeners=function(l){var c=i?i+l:l,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,v=d.length,I=new Array(v);f<v;f++)I[f]=d[f].fn;return I},u.prototype.listenerCount=function(l){var c=i?i+l:l,d=this._events[c];return d?d.fn?1:d.length:0},u.prototype.emit=function(l,c,d,f,v,I){var $=i?i+l:l;if(!this._events[$])return!1;var p=this._events[$],L=arguments.length,C,y;if(p.fn){switch(p.once&&this.removeListener(l,p.fn,void 0,!0),L){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,c),!0;case 3:return p.fn.call(p.context,c,d),!0;case 4:return p.fn.call(p.context,c,d,f),!0;case 5:return p.fn.call(p.context,c,d,f,v),!0;case 6:return p.fn.call(p.context,c,d,f,v,I),!0}for(y=1,C=new Array(L-1);y<L;y++)C[y-1]=arguments[y];p.fn.apply(p.context,C)}else{var ct=p.length,V;for(y=0;y<ct;y++)switch(p[y].once&&this.removeListener(l,p[y].fn,void 0,!0),L){case 1:p[y].fn.call(p[y].context);break;case 2:p[y].fn.call(p[y].context,c);break;case 3:p[y].fn.call(p[y].context,c,d);break;case 4:p[y].fn.call(p[y].context,c,d,f);break;default:if(!C)for(V=1,C=new Array(L-1);V<L;V++)C[V-1]=arguments[V];p[y].fn.apply(p[y].context,C)}}return!0},u.prototype.on=function(l,c,d){return a(this,l,c,d,!1)},u.prototype.once=function(l,c,d){return a(this,l,c,d,!0)},u.prototype.removeListener=function(l,c,d,f){var v=i?i+l:l;if(!this._events[v])return this;if(!c)return o(this,v),this;var I=this._events[v];if(I.fn)I.fn===c&&(!f||I.once)&&(!d||I.context===d)&&o(this,v);else{for(var $=0,p=[],L=I.length;$<L;$++)(I[$].fn!==c||f&&!I[$].once||d&&I[$].context!==d)&&p.push(I[$]);p.length?this._events[v]=p.length===1?p[0]:p:o(this,v)}return this},u.prototype.removeAllListeners=function(l){var c;return l?(c=i?i+l:l,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=i,u.EventEmitter=u,typeof t<"u"&&(t.exports=u)});function Ct(e){let t={exports:{}};return e(t,t.exports),t.exports}var bt=Number.MAX_SAFE_INTEGER||9007199254740991,we={MAX_LENGTH:256,MAX_SAFE_INTEGER:bt,MAX_SAFE_COMPONENT_LENGTH:16},Pt=typeof ut=="object"&&Ee&&Ee.NODE_DEBUG&&/\bsemver\b/i.test(Ee.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},E=Pt,ee=Ct(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r}=we,i=(t=e.exports={}).re=[],n=t.src=[],s=t.t={},a=0,o=(u,l,c)=>{let d=a++;E(d,l),s[u]=d,n[d]=l,i[d]=new RegExp(l,c?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION",`(${n[s.NUMERICIDENTIFIER]})\\.(${n[s.NUMERICIDENTIFIER]})\\.(${n[s.NUMERICIDENTIFIER]})`),o("MAINVERSIONLOOSE",`(${n[s.NUMERICIDENTIFIERLOOSE]})\\.(${n[s.NUMERICIDENTIFIERLOOSE]})\\.(${n[s.NUMERICIDENTIFIERLOOSE]})`),o("PRERELEASEIDENTIFIER",`(?:${n[s.NUMERICIDENTIFIER]}|${n[s.NONNUMERICIDENTIFIER]})`),o("PRERELEASEIDENTIFIERLOOSE",`(?:${n[s.NUMERICIDENTIFIERLOOSE]}|${n[s.NONNUMERICIDENTIFIER]})`),o("PRERELEASE",`(?:-(${n[s.PRERELEASEIDENTIFIER]}(?:\\.${n[s.PRERELEASEIDENTIFIER]})*))`),o("PRERELEASELOOSE",`(?:-?(${n[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[s.PRERELEASEIDENTIFIERLOOSE]})*))`),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD",`(?:\\+(${n[s.BUILDIDENTIFIER]}(?:\\.${n[s.BUILDIDENTIFIER]})*))`),o("FULLPLAIN",`v?${n[s.MAINVERSION]}${n[s.PRERELEASE]}?${n[s.BUILD]}?`),o("FULL",`^${n[s.FULLPLAIN]}$`),o("LOOSEPLAIN",`[v=\\s]*${n[s.MAINVERSIONLOOSE]}${n[s.PRERELEASELOOSE]}?${n[s.BUILD]}?`),o("LOOSE",`^${n[s.LOOSEPLAIN]}$`),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",`${n[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),o("XRANGEIDENTIFIER",`${n[s.NUMERICIDENTIFIER]}|x|X|\\*`),o("XRANGEPLAIN",`[v=\\s]*(${n[s.XRANGEIDENTIFIER]})(?:\\.(${n[s.XRANGEIDENTIFIER]})(?:\\.(${n[s.XRANGEIDENTIFIER]})(?:${n[s.PRERELEASE]})?${n[s.BUILD]}?)?)?`),o("XRANGEPLAINLOOSE",`[v=\\s]*(${n[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[s.XRANGEIDENTIFIERLOOSE]})(?:${n[s.PRERELEASELOOSE]})?${n[s.BUILD]}?)?)?`),o("XRANGE",`^${n[s.GTLT]}\\s*${n[s.XRANGEPLAIN]}$`),o("XRANGELOOSE",`^${n[s.GTLT]}\\s*${n[s.XRANGEPLAINLOOSE]}$`),o("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),o("COERCERTL",n[s.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM",`(\\s*)${n[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",o("TILDE",`^${n[s.LONETILDE]}${n[s.XRANGEPLAIN]}$`),o("TILDELOOSE",`^${n[s.LONETILDE]}${n[s.XRANGEPLAINLOOSE]}$`),o("LONECARET","(?:\\^)"),o("CARETTRIM",`(\\s*)${n[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",o("CARET",`^${n[s.LONECARET]}${n[s.XRANGEPLAIN]}$`),o("CARETLOOSE",`^${n[s.LONECARET]}${n[s.XRANGEPLAINLOOSE]}$`),o("COMPARATORLOOSE",`^${n[s.GTLT]}\\s*(${n[s.LOOSEPLAIN]})$|^$`),o("COMPARATOR",`^${n[s.GTLT]}\\s*(${n[s.FULLPLAIN]})$|^$`),o("COMPARATORTRIM",`(\\s*)${n[s.GTLT]}\\s*(${n[s.LOOSEPLAIN]}|${n[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE",`^\\s*(${n[s.XRANGEPLAIN]})\\s+-\\s+(${n[s.XRANGEPLAIN]})\\s*$`),o("HYPHENRANGELOOSE",`^\\s*(${n[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[s.XRANGEPLAINLOOSE]})\\s*$`),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0.0.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),Se=/^[0-9]+$/,kt=(e,t)=>{let r=Se.test(e),i=Se.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1},Ut={compareIdentifiers:kt},{MAX_LENGTH:Ce,MAX_SAFE_INTEGER:re}=we,{re:be,t:Pe}=ee,{compareIdentifiers:H}=Ut,w=class{constructor(e,t){if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>Ce)throw new TypeError(`version is longer than ${Ce} characters`);E("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?be[Pe.LOOSE]:be[Pe.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>re||this.major<0)throw new TypeError("Invalid major version");if(this.minor>re||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>re||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let n=+i;if(n>=0&&n<re)return n}return i}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(E("SemVer.compare",this.version,this.options,e),!(e instanceof w)){if(typeof e=="string"&&e===this.version)return 0;e=new w(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof w||(e=new w(e,this.options)),H(this.major,e.major)||H(this.minor,e.minor)||H(this.patch,e.patch)}comparePre(e){if(e instanceof w||(e=new w(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let r=this.prerelease[t],i=e.prerelease[t];if(E("prerelease compare",t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r!==i)return H(r,i)}while(++t)}compareBuild(e){e instanceof w||(e=new w(e,this.options));let t=0;do{let r=this.build[t],i=e.build[t];if(E("prerelease compare",t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r!==i)return H(r,i)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]=="number"&&(this.prerelease[r]++,r=-2);r===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}},Dt=(e,t,r)=>new w(e,r).compare(new w(t,r)),q=Dt,Gt=(e,t,r)=>q(e,t,r)===0,xt=Gt,Ft=(e,t,r)=>q(e,t,r)!==0,Wt=Ft,jt=(e,t,r)=>q(e,t,r)>0,qt=jt,Vt=(e,t,r)=>q(e,t,r)>=0,Ht=Vt,Xt=(e,t,r)=>q(e,t,r)<0,Bt=Xt,Kt=(e,t,r)=>q(e,t,r)<=0,Yt=Kt,zt=(e,t,r,i)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return xt(e,r,i);case"!=":return Wt(e,r,i);case">":return qt(e,r,i);case">=":return Ht(e,r,i);case"<":return Bt(e,r,i);case"<=":return Yt(e,r,i);default:throw new TypeError(`Invalid operator: ${t}`)}},fe=zt,X=Symbol("SemVer ANY"),Q=class{static get ANY(){return X}constructor(e,t){if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),e instanceof Q){if(e.loose===!!t.loose)return e;e=e.value}E("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===X?this.value="":this.value=this.operator+this.semver.version,E("comp",this)}parse(e){let t=this.options.loose?ke[Ue.COMPARATORLOOSE]:ke[Ue.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new w(r[2],this.options.loose):this.semver=X}toString(){return this.value}test(e){if(E("Comparator.test",e,this.options.loose),this.semver===X||e===X)return!0;if(typeof e=="string")try{e=new w(e,this.options)}catch{return!1}return fe(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Q))throw new TypeError("a Comparator is required");if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""||new F(e.value,t).test(this.value);if(e.operator==="")return e.value===""||new F(this.value,t).test(e.semver);let r=!(this.operator!==">="&&this.operator!==">"||e.operator!==">="&&e.operator!==">"),i=!(this.operator!=="<="&&this.operator!=="<"||e.operator!=="<="&&e.operator!=="<"),n=this.semver.version===e.semver.version,s=!(this.operator!==">="&&this.operator!=="<="||e.operator!==">="&&e.operator!=="<="),a=fe(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),o=fe(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return r||i||n&&s||a||o}},{re:ke,t:Ue}=ee,F=class{constructor(e,t){if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),e instanceof F)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new F(e.raw,t);if(e instanceof Q)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let{loose:t}=this.options;e=e.trim();let r=t?N[R.HYPHENRANGELOOSE]:N[R.HYPHENRANGE];e=e.replace(r,cr(this.options.includePrerelease)),E("hyphen replace",e),e=e.replace(N[R.COMPARATORTRIM],Jt),E("comparator trim",e,N[R.COMPARATORTRIM]),e=(e=(e=e.replace(N[R.TILDETRIM],Qt)).replace(N[R.CARETTRIM],Zt)).split(/\s+/).join(" ");let i=t?N[R.COMPARATORLOOSE]:N[R.COMPARATOR];return e.split(" ").map(n=>er(n,this.options)).join(" ").split(/\s+/).map(n=>lr(n,this.options)).filter(this.options.loose?n=>!!n.match(i):()=>!0).map(n=>new Q(n,this.options))}intersects(e,t){if(!(e instanceof F))throw new TypeError("a Range is required");return this.set.some(r=>De(r,t)&&e.set.some(i=>De(i,t)&&r.every(n=>i.every(s=>n.intersects(s,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new w(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(ur(this.set[t],e,this.options))return!0;return!1}},{re:N,t:R,comparatorTrimReplace:Jt,tildeTrimReplace:Qt,caretTrimReplace:Zt}=ee,De=(e,t)=>{let r=!0,i=e.slice(),n=i.pop();for(;r&&i.length;)r=i.every(s=>n.intersects(s,t)),n=i.pop();return r},er=(e,t)=>(E("comp",e,t),e=ir(e,t),E("caret",e),e=tr(e,t),E("tildes",e),e=sr(e,t),E("xrange",e),e=ar(e,t),E("stars",e),e),A=e=>!e||e.toLowerCase()==="x"||e==="*",tr=(e,t)=>e.trim().split(/\s+/).map(r=>rr(r,t)).join(" "),rr=(e,t)=>{let r=t.loose?N[R.TILDELOOSE]:N[R.TILDE];return e.replace(r,(i,n,s,a,o)=>{let u;return E("tilde",e,i,n,s,a,o),A(n)?u="":A(s)?u=`>=${n}.0.0 <${+n+1}.0.0-0`:A(a)?u=`>=${n}.${s}.0 <${n}.${+s+1}.0-0`:o?(E("replaceTilde pr",o),u=`>=${n}.${s}.${a}-${o} <${n}.${+s+1}.0-0`):u=`>=${n}.${s}.${a} <${n}.${+s+1}.0-0`,E("tilde return",u),u})},ir=(e,t)=>e.trim().split(/\s+/).map(r=>nr(r,t)).join(" "),nr=(e,t)=>{E("caret",e,t);let r=t.loose?N[R.CARETLOOSE]:N[R.CARET],i=t.includePrerelease?"-0":"";return e.replace(r,(n,s,a,o,u)=>{let l;return E("caret",e,n,s,a,o,u),A(s)?l="":A(a)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:A(o)?l=s==="0"?`>=${s}.${a}.0${i} <${s}.${+a+1}.0-0`:`>=${s}.${a}.0${i} <${+s+1}.0.0-0`:u?(E("replaceCaret pr",u),l=s==="0"?a==="0"?`>=${s}.${a}.${o}-${u} <${s}.${a}.${+o+1}-0`:`>=${s}.${a}.${o}-${u} <${s}.${+a+1}.0-0`:`>=${s}.${a}.${o}-${u} <${+s+1}.0.0-0`):(E("no pr"),l=s==="0"?a==="0"?`>=${s}.${a}.${o}${i} <${s}.${a}.${+o+1}-0`:`>=${s}.${a}.${o}${i} <${s}.${+a+1}.0-0`:`>=${s}.${a}.${o} <${+s+1}.0.0-0`),E("caret return",l),l})},sr=(e,t)=>(E("replaceXRanges",e,t),e.split(/\s+/).map(r=>or(r,t)).join(" ")),or=(e,t)=>{e=e.trim();let r=t.loose?N[R.XRANGELOOSE]:N[R.XRANGE];return e.replace(r,(i,n,s,a,o,u)=>{E("xRange",e,i,n,s,a,o,u);let l=A(s),c=l||A(a),d=c||A(o),f=d;return n==="="&&f&&(n=""),u=t.includePrerelease?"-0":"",l?i=n===">"||n==="<"?"<0.0.0-0":"*":n&&f?(c&&(a=0),o=0,n===">"?(n=">=",c?(s=+s+1,a=0,o=0):(a=+a+1,o=0)):n==="<="&&(n="<",c?s=+s+1:a=+a+1),n==="<"&&(u="-0"),i=`${n+s}.${a}.${o}${u}`):c?i=`>=${s}.0.0${u} <${+s+1}.0.0-0`:d&&(i=`>=${s}.${a}.0${u} <${s}.${+a+1}.0-0`),E("xRange return",i),i})},ar=(e,t)=>(E("replaceStars",e,t),e.trim().replace(N[R.STAR],"")),lr=(e,t)=>(E("replaceGTE0",e,t),e.trim().replace(N[t.includePrerelease?R.GTE0PRE:R.GTE0],"")),cr=e=>(t,r,i,n,s,a,o,u,l,c,d,f,v)=>`${r=A(i)?"":A(n)?`>=${i}.0.0${e?"-0":""}`:A(s)?`>=${i}.${n}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${u=A(l)?"":A(c)?`<${+l+1}.0.0-0`:A(d)?`<${l}.${+c+1}.0-0`:f?`<=${l}.${c}.${d}-${f}`:e?`<${l}.${c}.${+d+1}-0`:`<=${u}`}`.trim(),ur=(e,t,r)=>{for(let i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let i=0;i<e.length;i++)if(E(e[i].semver),e[i].semver!==Q.ANY&&e[i].semver.prerelease.length>0){let n=e[i].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0},dr=(e,t,r)=>{try{t=new F(t,r)}catch{return!1}return t.test(e)},{MAX_LENGTH:hr}=we,{re:Ge,t:xe}=ee,pr=(e,t)=>{if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),e instanceof w)return e;if(typeof e!="string"||e.length>hr||!(t.loose?Ge[xe.LOOSE]:Ge[xe.FULL]).test(e))return null;try{return new w(e,t)}catch{return null}},mr=pr,{re:ie,t:ne}=ee,Er=(e,t)=>{if(e instanceof w)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;let r=null;if((t=t||{}).rtl){let i;for(;(i=ie[ne.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&i.index+i[0].length===r.index+r[0].length||(r=i),ie[ne.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;ie[ne.COERCERTL].lastIndex=-1}else r=e.match(ie[ne.COERCE]);return r===null?null:mr(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};function fr(e){return String.fromCharCode(parseInt(e.slice(1),16))}function gr(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}function vr(e){return btoa(encodeURIComponent(e).replace(/%[0-9A-F]{2}/g,fr))}function _r(e){return decodeURIComponent(Array.from(atob(e),gr).join(""))}function Xe(e){return vr(JSON.stringify(e))}function Ir(e){return JSON.parse(_r(e))}function K(e){return typeof e>"u"}function yr(e){return e===null}function Be(e){return yr(e)||K(e)}function wr(e){return Be(e)?!1:!K(e.jsonrpc)&&!K(e.id)&&(!K(e.result)||!K(e.error))}function Rr(e){return Be(e)?!1:typeof e=="number"&&Object.values(_e).includes(e)}function ue(e){if(!e)return!0;for(let t in e)if(Object.hasOwnProperty.call(e,t))return!1;return!0}var g={};function _i(e,t){return Object.assign(g,t),e}var $r={"magic-sdk":"magic-sdk","@magic-sdk/react-native":"magic-sdk-rn","@magic-sdk/react-native-bare":"magic-sdk-rn-bare","@magic-sdk/react-native-expo":"magic-sdk-rn-expo"},D=class extends Error{constructor(e,t){super(`Magic SDK Error: [${e}] ${t}`),this.code=e,this.rawMessage=t,this.__proto__=Error,Object.setPrototypeOf(this,D.prototype)}},de=class extends Error{constructor(e){super(),this.__proto__=Error;let t=Number(e==null?void 0:e.code);this.rawMessage=(e==null?void 0:e.message)||"Internal error",this.code=Rr(t)?t:_e.InternalError,this.message=`Magic RPC Error: [${this.code}] ${this.rawMessage}`,this.data=(e==null?void 0:e.data)||void 0,Object.setPrototypeOf(this,de.prototype)}},te=class{constructor(e,t){this.code=e,this.rawMessage=t,this.message=`Magic SDK Warning: [${e}] ${t}`}log(){console.warn(this.message)}},Ke=class extends Error{constructor(e,t,r,i){super(`Magic Extension Error (${e.name}): [${t}] ${r}`),this.code=t,this.rawMessage=r,this.data=i,this.__proto__=Error,Object.setPrototypeOf(this,Ke.prototype)}},Fe=class{constructor(e,t,r){this.code=t,this.rawMessage=r,this.message=`Magic Extension Warning (${e.name}): [${t}] ${r}`}log(){console.warn(this.message)}};function Nr(){return new D(U.MissingApiKey,"Please provide an API key that you acquired from the Magic developer dashboard.")}function Ar(){return new D(U.ModalNotReady,"Modal is not ready.")}function Or(){return new D(U.MalformedResponse,"Response from the Magic iframe is malformed.")}function Mr(e){return new D(U.ExtensionNotInitialized,`Extensions must be initialized with a Magic SDK instance before \`Extension.${e}\` can be accessed. Do not invoke \`Extension.${e}\` inside an extension constructor.`)}function Tr(e){let t=`Some extensions are incompatible with \`${g.sdkName}@${g.version}\`:`;return e.filter(r=>typeof r.compat<"u"&&r.compat!==null).forEach(r=>{let i=r.compat[g.sdkName];typeof i=="string"?t+=`
2
2
  - Extension \`${r.name}\` supports version(s) \`${i}\``:i||(t+=`
3
3
  - Extension \`${r.name}\` does not support ${g.platform} environments.`)}),new D(U.IncompatibleExtensions,t)}function Lr(e){let t=r=>{let i=r+1,n=i%10,s=i%100;return n===1&&s!==11?`${i}st`:n===2&&s!==12?`${i}nd`:n===3&&s!==13?`${i}rd`:`${i}th`};return new D(U.InvalidArgument,`Invalid ${t(e.argument)} argument given to \`${e.procedure}\`.
4
4
  Expected: \`${e.expected}\`