@dcl/shop 1.17.2-36417112568.commit-e2afc81 → 1.17.2-36419433889.commit-c47371d

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 (246) hide show
  1. package/_assets/{Activity-ahc1cGJr.js → Activity--jF7es2J.js} +6 -6
  2. package/_assets/{AnimatedBackground-umIp23wl.js → AnimatedBackground-BaVuSIMd.js} +3 -3
  3. package/_assets/{Assets-DwelGvtu.js → Assets-COIFs1NT.js} +9 -9
  4. package/_assets/{Cart-nnTbuXqE.js → Cart-DvVzOKgO.js} +2 -2
  5. package/_assets/{Collection-OO-CXfeg.js → Collection-CVppqIHp.js} +2 -2
  6. package/_assets/{CollectionCarousel-Dg2NBx67.js → CollectionCarousel-C0VmBUir.js} +3 -3
  7. package/_assets/{Confetti-DF67ec9x.js → Confetti-7DM51L3x.js} +4 -4
  8. package/_assets/{ConstantsUtil-C4MAR3n5.js → ConstantsUtil-B8qV5ryI.js} +2 -2
  9. package/_assets/{ContentClient-CeSQQmZ0.js → ContentClient-CJVZK0Cr.js} +2 -2
  10. package/_assets/{Creator-BgQvXwOl.js → Creator-DakK37tb.js} +2 -2
  11. package/_assets/{CreditPackPicker-Cksr3kzu.js → CreditPackPicker-DKAdJoZn.js} +2 -2
  12. package/_assets/{CreditRate-CRu68bxJ.js → CreditRate-Clsik_Aw.js} +2 -2
  13. package/_assets/{DeploymentBuilder-7eFv_frV.js → DeploymentBuilder-DDYyZNs9.js} +2 -2
  14. package/_assets/{EmotePlaybackBar-CdhQyQNk.js → EmotePlaybackBar-B6NX4cF7.js} +3 -3
  15. package/_assets/{ErrorNotice-YylntVIF.js → ErrorNotice-DMbEwZqC.js} +2 -2
  16. package/_assets/{Event-jynjm47j.js → Event-GhJElig7.js} +2 -2
  17. package/_assets/{ExchangeController-BPmmrC-n.js → ExchangeController-E-z4tYPQ.js} +2 -2
  18. package/_assets/{Faq-DuTr6ePB.js → Faq-BvHCrvHQ.js} +2 -2
  19. package/_assets/{Filters-CXCCoPfU.js → Filters-GL_cDsl_.js} +2 -2
  20. package/_assets/{GetCredits-CFErpq-L.js → GetCredits-COQeUyY7.js} +2 -2
  21. package/_assets/{Grow-C46NVYT_.js → Grow-CRLPtKvq.js} +2 -2
  22. package/_assets/{HelpersUtil-CvEYQ_bN.js → HelpersUtil-nw_k4BZg.js} +2 -2
  23. package/_assets/IssueModal-BNUpmm30.js +323 -0
  24. package/_assets/{ItemDetail-D9tzUCK_.js → ItemDetail-CxY1ipnM.js} +2 -2
  25. package/_assets/{LoadMore-1l5kVCpI.js → LoadMore-DWVK0Irj.js} +2 -2
  26. package/_assets/{ManaPricingBanner-Bpt7PE5u.js → ManaPricingBanner-CptM64_P.js} +2 -2
  27. package/_assets/{ManaPricingBanner.styles-DsEi0tgF.js → ManaPricingBanner.styles-GA7vtF8H.js} +2 -2
  28. package/_assets/{MyAssets-BUo6c0_2.js → MyAssets-D0_0QgrK.js} +2 -2
  29. package/_assets/{MyFavorites-C6mXW5Jl.js → MyFavorites-D87VcEg-.js} +2 -2
  30. package/_assets/MyStore-2K66wioE.js +2156 -0
  31. package/_assets/{NetworkUtil-C4JZB8Ae.js → NetworkUtil-n9SKa90y.js} +2 -2
  32. package/_assets/{NotFound-D1YOGdVu.js → NotFound-BQDMK_VE.js} +2 -2
  33. package/_assets/{NotificationsBell-BOYDhVk6.js → NotificationsBell-Dv6Fs3UW.js} +2 -2
  34. package/_assets/{OutfitDetail-BGIocC8Y.js → OutfitDetail-qzi2Ma3-.js} +2 -2
  35. package/_assets/{OutfitPreview-tuw000fG.js → OutfitPreview-C9mANaDF.js} +2 -2
  36. package/_assets/{OutfitStudio-Cyr31rH6.js → OutfitStudio-EPu2sNQ6.js} +2 -2
  37. package/_assets/{PaymentMethodStep-hPpJP-Wl.js → PaymentMethodStep-C2137sMv.js} +5 -5
  38. package/_assets/{SaleCountdown-D75asuMy.js → SaleCountdown-NK6Hu66J.js} +2 -2
  39. package/_assets/{Spinner-BvrhyD7L.js → Spinner-Bv0Wx10Y.js} +2 -2
  40. package/_assets/{StoreSettings-24Sax-kk.js → StoreSettings-vOSmgDdm.js} +2 -2
  41. package/_assets/{Success-BPEXgiYa.js → Success-DmJrHxjh.js} +2 -2
  42. package/_assets/{SwapController-DLrZ30eq.js → SwapController-BPfdoAiC.js} +2 -2
  43. package/_assets/{Tooltip-2to0FtD5.js → Tooltip-CDNhtTHg.js} +2 -2
  44. package/_assets/{TradeService-BroAtYDK.js → TradeService-Dg2k-BXf.js} +2 -2
  45. package/_assets/{W3MFrameProviderSingleton-DtsX-WLb.js → W3MFrameProviderSingleton-D1JIdJYZ.js} +4 -4
  46. package/_assets/{WebCryptoP256-CA91XWV0.js → WebCryptoP256-D2CzaeaF.js} +2 -2
  47. package/_assets/{basic-BRxJpd6n.js → basic-Cu9SpkIp.js} +2 -2
  48. package/_assets/{biconomy-C8WZJfrn.js → biconomy-BdaMF63-.js} +2 -2
  49. package/_assets/{browseLayout.styles-DySdp3ol.js → browseLayout.styles-DC6JaJXR.js} +2 -2
  50. package/_assets/{browser-Bsk1yKVj.js → browser-Bmp3FUrm.js} +2 -2
  51. package/_assets/{browser-gnLUFKwX.js → browser-CRE9R8KO.js} +2 -2
  52. package/_assets/{browser-ponyfill-1RGXVE2_.js → browser-ponyfill-Y5hFnpxX.js} +2 -2
  53. package/_assets/{buy-DY-mMt7w.js → buy-C6hGEUyy.js} +2 -2
  54. package/_assets/{buy-gasless-BLW3WNLa.js → buy-gasless-CaDyfLFu.js} +2 -2
  55. package/_assets/{ccip-Dhy3aii9.js → ccip-CUpA9CBT.js} +2 -2
  56. package/_assets/{ccip-CdHrlR0T.js → ccip-DWrI9moL.js} +2 -2
  57. package/_assets/{chains-w-LqjG8V.js → chains-DziAFFsM.js} +2 -2
  58. package/_assets/collectionPage.styles-BCfEKguF.js +41 -0
  59. package/_assets/{common-ClyopIw2.js → common-BOwDAzhZ.js} +2 -2
  60. package/_assets/{controller-BLFxGiru.js → controller-DLz94ZGB.js} +3 -3
  61. package/_assets/{core-Cgo171jk.js → core-yLoKQ1Yi.js} +5 -5
  62. package/_assets/{createSvgIcon-DFZIXrO2.js → createSvgIcon-CH-dur6U.js} +2 -2
  63. package/_assets/{crumbs.styles-DNbofwyV.js → crumbs.styles-BRdRyQL8.js} +2 -2
  64. package/_assets/{custom-CzL3ZDy6.js → custom-CrYxk3ug.js} +2 -2
  65. package/_assets/{data-capture-oFjjsPXO.js → data-capture-9prdGACd.js} +2 -2
  66. package/_assets/{dcl-schemas-CIgtuOoU.js → dcl-schemas-288R2vaD.js} +2 -2
  67. package/_assets/{decimals-BEHcGzvL.js → decimals-CRcZUoXB.js} +2 -2
  68. package/_assets/{decimals-DAXns5g7.js → decimals-hlFoXYsS.js} +2 -2
  69. package/_assets/{detectExtension-5E6hSqod.js → detectExtension-Dqax3XF8.js} +2 -2
  70. package/_assets/{disposePreview-DmN3QW2F.js → disposePreview-C8qklGhQ.js} +2 -2
  71. package/_assets/{email-Pd0tOznC.js → email-A82V2X36.js} +2 -2
  72. package/_assets/{embedded-wallet-C-nyyiA9.js → embedded-wallet-BsS_Jcou.js} +2 -2
  73. package/_assets/{emotion-styled.browser.esm-C-347kjK.js → emotion-styled.browser.esm-Dqu1faAK.js} +2 -2
  74. package/_assets/{engine-DgLHXCvQ.js → engine-DD9Hb0uV.js} +2 -2
  75. package/_assets/{errors-CGpVjZew.js → errors-htl-Qj1d.js} +2 -2
  76. package/_assets/{estimate-l1-fee-DMNF6VY5.js → estimate-l1-fee-Cta39H3X.js} +2 -2
  77. package/_assets/{eth_estimateGas-DU3yHXo0.js → eth_estimateGas-aeo9AO7G.js} +2 -2
  78. package/_assets/{eth_getStorageAt-CZXlYseH.js → eth_getStorageAt-BihVe53B.js} +2 -2
  79. package/_assets/{eth_getTransactionCount-BPBkSCUe.js → eth_getTransactionCount-fboqsDge.js} +2 -2
  80. package/_assets/{ethereum-BcnV2ali.js → ethereum-CDiNvoBQ.js} +2 -2
  81. package/_assets/{ethers-B_gMX7bu.js → ethers-CQTiErIs.js} +2 -2
  82. package/_assets/{events-Dn3_sDeB.js → events-D_KvByaK.js} +2 -2
  83. package/_assets/{execute-67mwCNiO.js → execute-CfblM85H.js} +3 -3
  84. package/_assets/{extractIPFS--4ktQwdZ.js → extractIPFS-jWSG-kuN.js} +2 -2
  85. package/_assets/{features-xb712O6d.js → features-CL8dozd8.js} +2 -2
  86. package/_assets/{fetchTokenMetadata-CROm5iEy.js → fetchTokenMetadata-DTxZUDGS.js} +3 -3
  87. package/_assets/{field.styles-B7GpVroz.js → field.styles-7dFa9R-o.js} +2 -2
  88. package/_assets/{fortmatic-DxnTmpwf.js → fortmatic-DhGcpyVQ.js} +2 -2
  89. package/_assets/{get-bytecode-Cn7VPjuQ.js → get-bytecode-EWs62-Or.js} +2 -2
  90. package/_assets/{get-ecosystem-wallet-info-CziI2Mp5.js → get-ecosystem-wallet-info-BhYMYuGf.js} +2 -2
  91. package/_assets/{getBalance-CXpOqiRi.js → getBalance-BFc37EhG.js} +3 -3
  92. package/_assets/{getInstalledModules-C97rQKkl.js → getInstalledModules-DpbOLyxK.js} +2 -2
  93. package/_assets/{getNFT-BEDez5yk.js → getNFT-DJ00MP8T.js} +2 -2
  94. package/_assets/{getNFT-CMUK9Jkt.js → getNFT-Dk-ZSqwZ.js} +3 -3
  95. package/_assets/{grid.styles-CTCw781a.js → grid.styles-DFLzsH6r.js} +2 -2
  96. package/_assets/{hashTypedData-DrTnE0Uo.js → hashTypedData-DI0R7T1S.js} +2 -2
  97. package/_assets/{hashTypedData-CkWSwa_M.js → hashTypedData-yUMr_b0S.js} +2 -2
  98. package/_assets/{import-C7TsYQy9.js → import-CRq-JlwZ.js} +2 -2
  99. package/_assets/{in-app-XCTtPdXb.js → in-app-De202LWQ.js} +2 -2
  100. package/_assets/{in-app-wallet-calls-Bf-KUvJ0.js → in-app-wallet-calls-5YDWyHwP.js} +2 -2
  101. package/_assets/{index-DcQgVGCL.js → index-3aHO4zXA.js} +2 -2
  102. package/_assets/{index-DwfqzD3B.js → index-8MKMgnDC.js} +2 -2
  103. package/_assets/{index-lBF5zNbH.js → index-8iZN7sq1.js} +2 -2
  104. package/_assets/{index-BLs6tbd1.js → index-B-53BQ3N.js} +2 -2
  105. package/_assets/{index-rlHJmfTq.js → index-B-iuWYqw.js} +2 -2
  106. package/_assets/{index-Dd-2Y9li.js → index-B1AuoYsP.js} +2 -2
  107. package/_assets/{index-D0bdYV1m.js → index-B7FFTnWE.js} +2 -2
  108. package/_assets/{index-DEhC8LgS.js → index-BClc9M-w.js} +2 -2
  109. package/_assets/{index-pzFHM3no.js → index-BOIZr8nV.js} +2 -2
  110. package/_assets/{index-BiZ6sDat.js → index-BSBWrvNi.js} +2 -2
  111. package/_assets/{index-DglMTc6w.js → index-BTJ8tRIi.js} +2 -2
  112. package/_assets/{index-Cg5J3PHn.js → index-B_GY2Qcr.js} +2 -2
  113. package/_assets/{index-CGXb1e0C.js → index-BiPzSE-b.js} +2 -2
  114. package/_assets/{index-B1mdfGb_.js → index-BirA3nVt.js} +2 -2
  115. package/_assets/{index-nAuGEnGp.js → index-BkiIQHHv.js} +2 -2
  116. package/_assets/{index-ummDM-YW.js → index-Bt5rTtZc.js} +2 -2
  117. package/_assets/{index-3z3h-sWT.js → index-BudY0LKq.js} +2 -2
  118. package/_assets/{index-DBhKJzP1.js → index-C-iGqkET.js} +2 -2
  119. package/_assets/{index-D6bgolKH.js → index-CDYXxn7L.js} +2 -2
  120. package/_assets/{index-Cx-907QR.js → index-CGrsA2r9.js} +2 -2
  121. package/_assets/{index-o1o23ELd.js → index-CI5JBSOY.js} +2 -2
  122. package/_assets/{index-SnM__nMN.js → index-CNdDdbuz.js} +2 -2
  123. package/_assets/{index-DYNUrlyd.js → index-CNdym0N6.js} +2 -2
  124. package/_assets/{index-CUbbKhDQ.js → index-CNim_UlT.js} +2 -2
  125. package/_assets/{index-ByfsdepO.js → index-COKSfVrH.js} +2 -2
  126. package/_assets/{index-VGJY4m72.js → index-CPQhKsf6.js} +3 -3
  127. package/_assets/{index-DJFLeIP8.js → index-CVhChHMI.js} +2 -2
  128. package/_assets/{index-D6RUnASW.js → index-CXz1bkSM.js} +2 -2
  129. package/_assets/{index-BJQicl8s.js → index-CZdsG7uB.js} +266 -266
  130. package/_assets/{index-C6iF-SQS.js → index-CaB0Gxw1.js} +2 -2
  131. package/_assets/{index-B5aKYuFu.js → index-CbvDXjC6.js} +2 -2
  132. package/_assets/{index-DIMycRNk.js → index-ClV4xGeI.js} +2 -2
  133. package/_assets/{index-BNBdrKN8.js → index-CmS8pw_U.js} +2 -2
  134. package/_assets/{index-D0XUi2BW.js → index-Cv9EPKfg.js} +2 -2
  135. package/_assets/{index-BmEcJIFr.js → index-Cw4kbLZu.js} +2 -2
  136. package/_assets/{index-hLobvkDU.js → index-CwXVEa0J.js} +4 -4
  137. package/_assets/{index-DVNQ3djO.js → index-CxfVDLva.js} +2 -2
  138. package/_assets/{index-DlYwkoh9.js → index-D1VoGI3Q.js} +2 -2
  139. package/_assets/{index-CBA4W5FG.css → index-D1mBtRKQ.css} +1 -1
  140. package/_assets/{index-R_74jjrw.js → index-DB0QtCVI.js} +2 -2
  141. package/_assets/{index-CF8SkK1g.js → index-DE7OKU6D.js} +2 -2
  142. package/_assets/{index-Bz5aUY4R.js → index-DFd7oSem.js} +2 -2
  143. package/_assets/{index-BKceaYFO.js → index-DMTzoci8.js} +2 -2
  144. package/_assets/{index-C6lsb53t.js → index-DTAg_ML3.js} +2 -2
  145. package/_assets/{index-KcQBXzUD.js → index-DUnBB5Ti.js} +2 -2
  146. package/_assets/{index-ZWBqYIeK.js → index-Df157jSj.js} +2 -2
  147. package/_assets/{index-Bx_cH1nn.js → index-DftU8aS_.js} +2 -2
  148. package/_assets/{index-Dm73DTNL.js → index-DiMnhlys.js} +2 -2
  149. package/_assets/{index-IS7z8bF7.js → index-DrCCZG-5.js} +2 -2
  150. package/_assets/{index-BxZY3R6O.js → index-DrDb6a0S.js} +3 -3
  151. package/_assets/{index-Baur_xj6.js → index-DuA4n2tZ.js} +2 -2
  152. package/_assets/{index-D_LWbA_T.js → index-DyNxeito.js} +2 -2
  153. package/_assets/{index-CfRRbY4r.js → index-Dz4hT87R.js} +4 -4
  154. package/_assets/{index-B0icZDm6.js → index-ESxBQM6y.js} +2 -2
  155. package/_assets/{index-D_YK6f10.js → index-ElVLN8UU.js} +2 -2
  156. package/_assets/{index-B47x5iYD.js → index-G750rs0y.js} +4 -4
  157. package/_assets/{index-BFiJHg3T.js → index-GzmEi1NW.js} +2 -2
  158. package/_assets/{index-CYZGTT5Q.js → index-IU1TiL0O.js} +2 -2
  159. package/_assets/{index-B3d1HVPO.js → index-Lr7X5ozO.js} +3 -3
  160. package/_assets/{index-BS1m5BmZ.js → index-OYW94Btk.js} +2 -2
  161. package/_assets/{index-Dyai1waz.js → index-PYW8o2Pf.js} +2 -2
  162. package/_assets/{index-Ao40Rh7v.js → index-Rl1A5Ava.js} +2 -2
  163. package/_assets/{index-C8Spvg7F.js → index-VnFVFmKC.js} +2 -2
  164. package/_assets/{index-KtwMZa_D.js → index-_fm-roar.js} +2 -2
  165. package/_assets/{index-srwTpss-.js → index-a8bd0bGc.js} +2 -2
  166. package/_assets/{index-Bx2Yr0I1.js → index-fsPv4K3x.js} +3 -3
  167. package/_assets/{index-Da0OIpMQ.js → index-i-y6H9sC.js} +2 -2
  168. package/_assets/{index-OvP5xDwc.js → index-nHCRhdSA.js} +2 -2
  169. package/_assets/{index.es-D5A8qSvl.js → index.es-BzUTjb2q.js} +2 -2
  170. package/_assets/{index.es-BgDLSDRr.js → index.es-DX8yElai.js} +5 -5
  171. package/_assets/{index.es-DUGjvY5V.js → index.es-DYrhUYMN.js} +2 -2
  172. package/_assets/{index.es-mH1f8Pbn.js → index.es-RbTQXmX2.js} +2 -2
  173. package/_assets/{items-empty-C2mQWlpa.js → items-empty-DB1o3kNX.js} +2 -2
  174. package/_assets/{jump-BKgEW1Uq.js → jump-B4UiXLKV.js} +2 -2
  175. package/_assets/{linkAccount-7AfjwEWc.js → linkAccount-BouaQqzL.js} +2 -2
  176. package/_assets/{loader-logo-B2Di-_Ze.js → loader-logo-DTL7p4TS.js} +2 -2
  177. package/_assets/{localBatchGatewayRequest-Ku83V8tQ.js → localBatchGatewayRequest-BeLoPu1k.js} +2 -2
  178. package/_assets/{modal.styles-DKyrrEDx.js → modal.styles-BkeGXCun.js} +2 -2
  179. package/_assets/{native-CUblzjFD.js → native-B6DvvwV1.js} +2 -2
  180. package/_assets/{networks-CslgB8gK.js → networks-CevPmOrO.js} +2 -2
  181. package/_assets/{onramp-CBYpF4D5.js → onramp-geXLRP35.js} +2 -2
  182. package/_assets/{openzeppelin-V9W06b6g.js → openzeppelin-BypPfQai.js} +2 -2
  183. package/_assets/{ownerOf-CaM3U2UN.js → ownerOf-PbqP39pW.js} +2 -2
  184. package/_assets/{parseNft-CQ5MCToI.js → parseNft-CUTa2r9o.js} +3 -3
  185. package/_assets/{parseSignature-B-1Tq6oP.js → parseSignature-B5AmfqIY.js} +4 -4
  186. package/_assets/{parseSignature-Bq-XGU-C.js → parseSignature-Cu6YgGtz.js} +2 -2
  187. package/_assets/{passkeys-BQJISQgw.js → passkeys-D6WhzF_i.js} +2 -2
  188. package/_assets/{pay-with-exchange-7MLwJdJf.js → pay-with-exchange-DuiIaodv.js} +2 -2
  189. package/_assets/{prepare-contract-call-C2cYOhbO.js → prepare-contract-call-B4wGZ6Tu.js} +2 -2
  190. package/_assets/{qr-overlay-BLml90bO.js → qr-overlay-CnkeeLwe.js} +4 -4
  191. package/_assets/{react-4P5sGbEq.js → react-Cw0C4LRR.js} +2 -2
  192. package/_assets/{receive-D2DHGMs6.js → receive-D05965eJ.js} +2 -2
  193. package/_assets/{resolveImplementation-LR6nB9QW.js → resolveImplementation-CUCajmqV.js} +2 -2
  194. package/_assets/{resume-buy-PRghislR.js → resume-buy-Bacy8y5r.js} +2 -2
  195. package/_assets/{resume-name-bHNOaad3.js → resume-name-rT77ITjb.js} +2 -2
  196. package/_assets/{rpc-Cm-DpE6F.js → rpc-Dw3MrfKR.js} +2 -2
  197. package/_assets/{sales-empty-CkxAX5qQ.js → sales-empty-tOFQagTW.js} +2 -2
  198. package/_assets/{search-empty-CaBq2HkU.js → search-empty-B4sYQE3Q.js} +2 -2
  199. package/_assets/{secp256k1-CKzcFiXH.js → secp256k1-CA3anvYG.js} +2 -2
  200. package/_assets/{secp256k1-Cp0CohWk.js → secp256k1-CExC0sOx.js} +2 -2
  201. package/_assets/{secp256k1-sqPtvBok.js → secp256k1-i2yM1zye.js} +2 -2
  202. package/_assets/{send-DCOMlceB.js → send-C-Cg36S0.js} +2 -2
  203. package/_assets/{send-batch-transaction-BsZh8Uk5.js → send-batch-transaction-BnKQj-Gt.js} +2 -2
  204. package/_assets/{send-eip712-transaction-CzOZcgLd.js → send-eip712-transaction-BzFDZnKg.js} +3 -3
  205. package/_assets/{send-gasless-transaction-B6XUAmSL.js → send-gasless-transaction-CgLzyCTi.js} +3 -3
  206. package/_assets/{send-transaction-D-XocUou.js → send-transaction-9C_p761Q.js} +3 -3
  207. package/_assets/{sendMetaTransaction-B2oQ5eKD.js → sendMetaTransaction-DImbldFL.js} +2 -2
  208. package/_assets/{sendRawTransaction-gnCQ4l70.js → sendRawTransaction-BoToo71k.js} +4 -4
  209. package/_assets/{sentry-BhkK6fEK.js → sentry-D4iytbTq.js} +3 -3
  210. package/_assets/{serializeTransaction-BaK3bRi1.js → serializeTransaction-DtdI7nGB.js} +2 -2
  211. package/_assets/{session-proposal-Dm-Nvcz-.js → session-proposal-DATkPyRr.js} +2 -2
  212. package/_assets/{session-request-CrQTuuP7.js → session-request-D1C-CGsA.js} +3 -3
  213. package/_assets/{sha256-DBJDpCHg.js → sha256-BRUbjjEo.js} +2 -2
  214. package/_assets/{sha3-70hRWHxs.js → sha3-Dtc962Jj.js} +2 -2
  215. package/_assets/signin-empty-BHwLrjwi.js +2 -0
  216. package/_assets/{signing-DCOM6x8H.js → signing-B5MTscRr.js} +4 -4
  217. package/_assets/{skeleton.styles-B8FT4bpt.js → skeleton.styles-D0RTRgQY.js} +2 -2
  218. package/_assets/{socials-BPNH7uMf.js → socials-DbURoV1L.js} +2 -2
  219. package/_assets/{styled-CdX_hwL4.js → styled-BQlW4Pn5.js} +2 -2
  220. package/_assets/{swaps-DRg-0_cj.js → swaps-Bfukpdc5.js} +2 -2
  221. package/_assets/{thirdweb-DhUWHu_Q.js → thirdweb-B6BizECs.js} +4 -4
  222. package/_assets/{to-serializable-transaction-C68Txae9.js → to-serializable-transaction-DeiALAt8.js} +3 -3
  223. package/_assets/{totalSupply-DGM7d1I-.js → totalSupply-BN0h7-P9.js} +2 -2
  224. package/_assets/{trade-encoding-DcVwVU4D.js → trade-encoding-DlOQ-rr4.js} +2 -2
  225. package/_assets/{transaction-DShAG0ei.js → transaction-Bo7HxXV6.js} +2 -2
  226. package/_assets/{transactionReceipt-C7KPa1TY.js → transactionReceipt-M8zodiZ2.js} +2 -2
  227. package/_assets/{transactions-DMCLNnvd.js → transactions-njHzFKvF.js} +2 -2
  228. package/_assets/{useInfiniteGrid-DS-eHJl3.js → useInfiniteGrid-dpAz9UyF.js} +2 -2
  229. package/_assets/{useStore-D4vtf_uM.js → useStore-QHwVTpuR.js} +3 -3
  230. package/_assets/{useTheme-DdgO2k0Y.js → useTheme-B5C4rLFA.js} +2 -2
  231. package/_assets/{utils-Bhk-dfOy.js → utils-VjD_0PlE.js} +2 -2
  232. package/_assets/{verifyHash-COTUPfs3.js → verifyHash-CrqR4h9k.js} +2 -2
  233. package/_assets/{w3m-modal-CO33DEWa.js → w3m-modal-kYAoZnFT.js} +2 -2
  234. package/_assets/{w3m-modal-DI7gA3rB.js → w3m-modal-uaCH-g0f.js} +2 -2
  235. package/_assets/{wait-for-tx-receipt-8S4DlVRa.js → wait-for-tx-receipt-lxaHblpm.js} +2 -2
  236. package/_assets/{wallets-n81pe2QQ.js → wallets-C5_0bJV-.js} +6 -6
  237. package/_assets/{web-connector-Cu8MU84-.js → web-connector-CCIBFAfB.js} +4 -4
  238. package/_assets/{writeContract-LG21efqR.js → writeContract-DIJHMdt2.js} +2 -2
  239. package/_assets/{zora-sepolia-h86d5KkK.js → zora-sepolia-DOPuLX_u.js} +2 -2
  240. package/_assets/{zoraTestnet-V0TYbfom.js → zoraTestnet-DnmtT2wK.js} +2 -2
  241. package/index.html +12 -12
  242. package/package.json +2 -2
  243. package/_assets/IssueModal-CdyJ5U3J.js +0 -323
  244. package/_assets/MyStore-D3H6JCYZ.js +0 -2008
  245. package/_assets/collectionPage.styles-DTKFRnJt.js +0 -41
  246. package/_assets/signin-empty-DoMTaEfj.js +0 -2
@@ -1,4 +1,4 @@
1
- import{h as bo,b as Yo,r as ue,j as E}from"./react-4P5sGbEq.js";import{M as Ko,bb as Zo,c as Cn,h as Eo,j as wo,e1 as Qo,e2 as vo,b as ea,L as ta,a as A,s as Y,I as qe,n as ra,X as na,t as F,d3 as Ze,ce as Ct,z as Jt,F as zn,c9 as Jn,e3 as sa,O as ia,Y as oa,l as aa,Z as ca,w as ua}from"./index-BJQicl8s.js";import{a as So,c as la,i as da,D as Gn}from"./SaleCountdown-D75asuMy.js";import{f as fa}from"./errors-CGpVjZew.js";import{m as Ro}from"./mana-matic-CEqvSwrJ.js";import{T as ha}from"./Tooltip-2to0FtD5.js";import{E as Xn}from"./ErrorNotice-YylntVIF.js";import{f as pa}from"./browseLayout.styles-DySdp3ol.js";import{B as Wn,d as ga}from"./dcl-schemas-CIgtuOoU.js";import{r as ma}from"./sha3-70hRWHxs.js";import{r as ya}from"./browser-gnLUFKwX.js";import{p as ba}from"./sentry-BhkK6fEK.js";import{k as Ea,r as wa,O as Yn}from"./trade-encoding-DcVwVU4D.js";import{a as St,h as _o,r as va,C as Io,k as Sa}from"./ethers-B_gMX7bu.js";import{R as Ra,B as _a,T as Ia,A as $a,a as Aa,C as Ta,D as Ca,M as ja}from"./ManaPricingBanner.styles-DsEi0tgF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ca37e6ef-4ca3-41fa-ab1c-3e3c6a978fdd",e._sentryDebugIdIdentifier="sentry-dbid-ca37e6ef-4ca3-41fa-ab1c-3e3c6a978fdd")}catch{}})();var Gt={},ze={},Je={},Xt={},Ge={},Se={},Xe={},st={},Kn;function $o(){if(Kn)return st;Kn=1,Object.defineProperty(st,"__esModule",{value:!0}),st.StructError=void 0;class e extends TypeError{constructor(n,s){let d;const{message:c,explanation:u,...a}=n,{path:o}=n,f=o.length===0?c:`At path: ${o.join(".")} -- ${c}`;super(u??f),u!=null&&(this.cause=f),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>d??(d=[n,...s()])}}return st.StructError=e,st}var fe={},he={},Zn;function Lt(){if(Zn)return he;Zn=1,Object.defineProperty(he,"__esModule",{value:!0}),he.run=he.toFailures=he.toFailure=he.shiftIterator=he.print=he.isPlainObject=he.isObject=void 0;function e(o){return t(o)&&typeof o[Symbol.iterator]=="function"}function t(o){return typeof o=="object"&&o!==null}he.isObject=t;function n(o){if(Object.prototype.toString.call(o)!=="[object Object]")return!1;const f=Object.getPrototypeOf(o);return f===null||f===Object.prototype}he.isPlainObject=n;function s(o){return typeof o=="symbol"?o.toString():typeof o=="string"?JSON.stringify(o):`${o}`}he.print=s;function d(o){const{done:f,value:r}=o.next();return f?void 0:r}he.shiftIterator=d;function c(o,f,r,i){if(o===!0)return;o===!1?o={}:typeof o=="string"&&(o={message:o});const{path:l,branch:h}=f,{type:b}=r,{refinement:S,message:q=`Expected a value of type \`${b}\`${S?` with refinement \`${S}\``:""}, but received: \`${s(i)}\``}=o;return{value:i,type:b,refinement:S,key:l[l.length-1],path:l,branch:h,...o,message:q}}he.toFailure=c;function*u(o,f,r,i){e(o)||(o=[o]);for(const l of o){const h=c(l,f,r,i);h&&(yield h)}}he.toFailures=u;function*a(o,f,r={}){const{path:i=[],branch:l=[o],coerce:h=!1,mask:b=!1}=r,S={path:i,branch:l};if(h&&(o=f.coercer(o,S),b&&f.type!=="type"&&t(f.schema)&&t(o)&&!Array.isArray(o)))for(const M in o)f.schema[M]===void 0&&delete o[M];let q="valid";for(const M of f.validator(o,S))M.explanation=r.message,q="not_valid",yield[M,void 0];for(let[M,J,W]of f.entries(o,S)){const _=a(J,W,{path:M===void 0?i:[...i,M],branch:M===void 0?l:[...l,J],coerce:h,mask:b,message:r.message});for(const w of _)w[0]?(q=w[0].refinement===null||w[0].refinement===void 0?"not_valid":"not_refined",yield[w[0],void 0]):h&&(J=w[1],M===void 0?o=J:o instanceof Map?o.set(M,J):o instanceof Set?o.add(J):t(o)&&(J!==void 0||M in o)&&(o[M]=J))}if(q!=="not_valid")for(const M of f.refiner(o,S))M.explanation=r.message,q="not_refined",yield[M,void 0];q==="valid"&&(yield[void 0,o])}return he.run=a,he}var Qn;function Rt(){if(Qn)return fe;Qn=1,Object.defineProperty(fe,"__esModule",{value:!0}),fe.validate=fe.is=fe.mask=fe.create=fe.assert=fe.ExactOptionalStruct=fe.Struct=void 0;const e=$o(),t=Lt();class n{constructor(i){const{type:l,schema:h,validator:b,refiner:S,coercer:q=J=>J,entries:M=function*(){}}=i;this.type=l,this.schema=h,this.entries=M,this.coercer=q,b?this.validator=(J,W)=>{const _=b(J,W);return(0,t.toFailures)(_,W,this,J)}:this.validator=()=>[],S?this.refiner=(J,W)=>{const _=S(J,W);return(0,t.toFailures)(_,W,this,J)}:this.refiner=()=>[]}assert(i,l){return c(i,this,l)}create(i,l){return u(i,this,l)}is(i){return o(i,this)}mask(i,l){return a(i,this,l)}validate(i,l={}){return f(i,this,l)}}fe.Struct=n;const s="EXACT_OPTIONAL";class d extends n{constructor(i){super({...i,type:`exact optional ${i.type}`}),this.brand=s}static isExactOptional(i){return(0,t.isObject)(i)&&"brand"in i&&i.brand===s}}fe.ExactOptionalStruct=d;function c(r,i,l){const h=f(r,i,{message:l});if(h[0])throw h[0]}fe.assert=c;function u(r,i,l){const h=f(r,i,{coerce:!0,message:l});if(h[0])throw h[0];return h[1]}fe.create=u;function a(r,i,l){const h=f(r,i,{coerce:!0,mask:!0,message:l});if(h[0])throw h[0];return h[1]}fe.mask=a;function o(r,i){return!f(r,i)[0]}fe.is=o;function f(r,i,l={}){const h=(0,t.run)(r,i,l),b=(0,t.shiftIterator)(h);return b[0]?[new e.StructError(b[0],function*(){for(const M of h)M[0]&&(yield M[0])}),void 0]:[void 0,b[1]]}return fe.validate=f,fe}var Be={},K={},le={},es;function Ao(){if(es)return le;es=1,Object.defineProperty(le,"__esModule",{value:!0}),le.pick=le.partial=le.omit=le.lazy=le.dynamic=le.deprecated=le.define=le.assign=void 0;const e=Rt(),t=jn();function n(...r){var b;const i=((b=r[0])==null?void 0:b.type)==="type",l=r.map(({schema:S})=>S),h=Object.assign({},...l);return i?(0,t.type)(h):(0,t.object)(h)}le.assign=n;function s(r,i){return new e.Struct({type:r,schema:null,validator:i})}le.define=s;function d(r,i){return new e.Struct({...r,refiner:(l,h)=>l===void 0||r.refiner(l,h),validator(l,h){return l===void 0?!0:(i(l,h),r.validator(l,h))}})}le.deprecated=d;function c(r){return new e.Struct({type:"dynamic",schema:null,*entries(i,l){yield*r(i,l).entries(i,l)},validator(i,l){return r(i,l).validator(i,l)},coercer(i,l){return r(i,l).coercer(i,l)},refiner(i,l){return r(i,l).refiner(i,l)}})}le.dynamic=c;function u(r){let i;return new e.Struct({type:"lazy",schema:null,*entries(l,h){i??(i=r()),yield*i.entries(l,h)},validator(l,h){return i??(i=r()),i.validator(l,h)},coercer(l,h){return i??(i=r()),i.coercer(l,h)},refiner(l,h){return i??(i=r()),i.refiner(l,h)}})}le.lazy=u;function a(r,i){const{schema:l}=r,h={...l};for(const b of i)delete h[b];switch(r.type){case"type":return(0,t.type)(h);default:return(0,t.object)(h)}}le.omit=a;function o(r){const i=r instanceof e.Struct,l=i?{...r.schema}:{...r};for(const h in l)l[h]=(0,t.optional)(l[h]);return i&&r.type==="type"?(0,t.type)(l):(0,t.object)(l)}le.partial=o;function f(r,i){const{schema:l}=r,h={};for(const b of i)h[b]=l[b];switch(r.type){case"type":return(0,t.type)(h);default:return(0,t.object)(h)}}return le.pick=f,le}var ts;function jn(){if(ts)return K;ts=1,Object.defineProperty(K,"__esModule",{value:!0}),K.unknown=K.union=K.type=K.tuple=K.string=K.set=K.regexp=K.record=K.exactOptional=K.optional=K.object=K.number=K.nullable=K.never=K.map=K.literal=K.intersection=K.integer=K.instance=K.func=K.enums=K.date=K.boolean=K.bigint=K.array=K.any=void 0;const e=Rt(),t=Lt(),n=Ao();function s(){return(0,n.define)("any",()=>!0)}K.any=s;function d(I){return new e.Struct({type:"array",schema:I,*entries(L){if(I&&Array.isArray(L))for(const[N,G]of L.entries())yield[N,G,I]},coercer(L){return Array.isArray(L)?L.slice():L},validator(L){return Array.isArray(L)||`Expected an array value, but received: ${(0,t.print)(L)}`}})}K.array=d;function c(){return(0,n.define)("bigint",I=>typeof I=="bigint")}K.bigint=c;function u(){return(0,n.define)("boolean",I=>typeof I=="boolean")}K.boolean=u;function a(){return(0,n.define)("date",I=>I instanceof Date&&!isNaN(I.getTime())||`Expected a valid \`Date\` object, but received: ${(0,t.print)(I)}`)}K.date=a;function o(I){const L={},N=I.map(G=>(0,t.print)(G)).join();for(const G of I)L[G]=G;return new e.Struct({type:"enums",schema:L,validator(G){return I.includes(G)||`Expected one of \`${N}\`, but received: ${(0,t.print)(G)}`}})}K.enums=o;function f(){return(0,n.define)("func",I=>typeof I=="function"||`Expected a function, but received: ${(0,t.print)(I)}`)}K.func=f;function r(I){return(0,n.define)("instance",L=>L instanceof I||`Expected a \`${I.name}\` instance, but received: ${(0,t.print)(L)}`)}K.instance=r;function i(){return(0,n.define)("integer",I=>typeof I=="number"&&!isNaN(I)&&Number.isInteger(I)||`Expected an integer, but received: ${(0,t.print)(I)}`)}K.integer=i;function l(I){return new e.Struct({type:"intersection",schema:null,*entries(L,N){for(const{entries:G}of I)yield*G(L,N)},*validator(L,N){for(const{validator:G}of I)yield*G(L,N)},*refiner(L,N){for(const{refiner:G}of I)yield*G(L,N)}})}K.intersection=l;function h(I){const L=(0,t.print)(I),N=typeof I;return new e.Struct({type:"literal",schema:N==="string"||N==="number"||N==="boolean"?I:null,validator(G){return G===I||`Expected the literal \`${L}\`, but received: ${(0,t.print)(G)}`}})}K.literal=h;function b(I,L){return new e.Struct({type:"map",schema:null,*entries(N){if(I&&L&&N instanceof Map)for(const[G,O]of N.entries())yield[G,G,I],yield[G,O,L]},coercer(N){return N instanceof Map?new Map(N):N},validator(N){return N instanceof Map||`Expected a \`Map\` object, but received: ${(0,t.print)(N)}`}})}K.map=b;function S(){return(0,n.define)("never",()=>!1)}K.never=S;function q(I){return new e.Struct({...I,validator:(L,N)=>L===null||I.validator(L,N),refiner:(L,N)=>L===null||I.refiner(L,N)})}K.nullable=q;function M(){return(0,n.define)("number",I=>typeof I=="number"&&!isNaN(I)||`Expected a number, but received: ${(0,t.print)(I)}`)}K.number=M;function J(I){const L=I?Object.keys(I):[],N=S();return new e.Struct({type:"object",schema:I??null,*entries(G){if(I&&(0,t.isObject)(G)){const O=new Set(Object.keys(G));for(const T of L){O.delete(T);const y=I[T];e.ExactOptionalStruct.isExactOptional(y)&&!Object.prototype.hasOwnProperty.call(G,T)||(yield[T,G[T],I[T]])}for(const T of O)yield[T,G[T],N]}},validator(G){return(0,t.isObject)(G)||`Expected an object, but received: ${(0,t.print)(G)}`},coercer(G){return(0,t.isObject)(G)?{...G}:G}})}K.object=J;function W(I){return new e.Struct({...I,validator:(L,N)=>L===void 0||I.validator(L,N),refiner:(L,N)=>L===void 0||I.refiner(L,N)})}K.optional=W;function _(I){return new e.ExactOptionalStruct(I)}K.exactOptional=_;function w(I,L){return new e.Struct({type:"record",schema:null,*entries(N){if((0,t.isObject)(N))for(const G in N){const O=N[G];yield[G,G,I],yield[G,O,L]}},validator(N){return(0,t.isObject)(N)||`Expected an object, but received: ${(0,t.print)(N)}`}})}K.record=w;function j(){return(0,n.define)("regexp",I=>I instanceof RegExp)}K.regexp=j;function H(I){return new e.Struct({type:"set",schema:null,*entries(L){if(I&&L instanceof Set)for(const N of L)yield[N,N,I]},coercer(L){return L instanceof Set?new Set(L):L},validator(L){return L instanceof Set||`Expected a \`Set\` object, but received: ${(0,t.print)(L)}`}})}K.set=H;function k(){return(0,n.define)("string",I=>typeof I=="string"||`Expected a string, but received: ${(0,t.print)(I)}`)}K.string=k;function B(I){const L=S();return new e.Struct({type:"tuple",schema:null,*entries(N){if(Array.isArray(N)){const G=Math.max(I.length,N.length);for(let O=0;O<G;O++)yield[O,N[O],I[O]||L]}},validator(N){return Array.isArray(N)||`Expected an array, but received: ${(0,t.print)(N)}`}})}K.tuple=B;function p(I){const L=Object.keys(I);return new e.Struct({type:"type",schema:I,*entries(N){if((0,t.isObject)(N))for(const G of L)yield[G,N[G],I[G]]},validator(N){return(0,t.isObject)(N)||`Expected an object, but received: ${(0,t.print)(N)}`},coercer(N){return(0,t.isObject)(N)?{...N}:N}})}K.type=p;function R(I){const L=I.map(N=>N.type).join(" | ");return new e.Struct({type:"union",schema:null,coercer(N){for(const G of I){const[O,T]=G.validate(N,{coerce:!0});if(!O)return T}return N},validator(N,G){const O=[];for(const T of I){const[...y]=(0,t.run)(N,T,G),[g]=y;if(!(g!=null&&g[0]))return[];for(const[$]of y)$&&O.push($)}return[`Expected the value to satisfy a union of \`${L}\`, but received: ${(0,t.print)(N)}`,...O]}})}K.union=R;function X(){return(0,n.define)("unknown",()=>!0)}return K.unknown=X,K}var rs;function Pa(){if(rs)return Be;rs=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.trimmed=Be.defaulted=Be.coerce=void 0;const e=Rt(),t=Lt(),n=jn();function s(u,a,o){return new e.Struct({...u,coercer:(f,r)=>(0,e.is)(f,a)?u.coercer(o(f,r),r):u.coercer(f,r)})}Be.coerce=s;function d(u,a,o={}){return s(u,(0,n.unknown)(),f=>{const r=typeof a=="function"?a():a;if(f===void 0)return r;if(!o.strict&&(0,t.isPlainObject)(f)&&(0,t.isPlainObject)(r)){const i={...f};let l=!1;for(const h in r)i[h]===void 0&&(i[h]=r[h],l=!0);if(l)return i}return f})}Be.defaulted=d;function c(u){return s(u,(0,n.string)(),a=>a.trim())}return Be.trimmed=c,Be}var pe={},ns;function Oa(){if(ns)return pe;ns=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.refine=pe.size=pe.pattern=pe.nonempty=pe.min=pe.max=pe.empty=void 0;const e=Rt(),t=Lt();function n(r){return f(r,"empty",i=>{const l=s(i);return l===0||`Expected an empty ${r.type} but received one with a size of \`${l}\``})}pe.empty=n;function s(r){return r instanceof Map||r instanceof Set?r.size:r.length}function d(r,i,l={}){const{exclusive:h}=l;return f(r,"max",b=>h?b<i:b<=i||`Expected a ${r.type} less than ${h?"":"or equal to "}${i} but received \`${b}\``)}pe.max=d;function c(r,i,l={}){const{exclusive:h}=l;return f(r,"min",b=>h?b>i:b>=i||`Expected a ${r.type} greater than ${h?"":"or equal to "}${i} but received \`${b}\``)}pe.min=c;function u(r){return f(r,"nonempty",i=>s(i)>0||`Expected a nonempty ${r.type} but received an empty one`)}pe.nonempty=u;function a(r,i){return f(r,"pattern",l=>i.test(l)||`Expected a ${r.type} matching \`/${i.source}/\` but received "${l}"`)}pe.pattern=a;function o(r,i,l=i){const h=`Expected a ${r.type}`,b=i===l?`of \`${i}\``:`between \`${i}\` and \`${l}\``;return f(r,"size",S=>{if(typeof S=="number"||S instanceof Date)return i<=S&&S<=l||`${h} ${b} but received \`${S}\``;if(S instanceof Map||S instanceof Set){const{size:M}=S;return i<=M&&M<=l||`${h} with a size ${b} but received one with a size of \`${M}\``}const{length:q}=S;return i<=q&&q<=l||`${h} with a length ${b} but received one with a length of \`${q}\``})}pe.size=o;function f(r,i,l){return new e.Struct({...r,*refiner(h,b){yield*r.refiner(h,b);const S=l(h,b),q=(0,t.toFailures)(S,b,r,h);for(const M of q)yield{...M,refinement:i}}})}return pe.refine=f,pe}var ss;function Pe(){return ss||(ss=1,(function(e){var t=Xe&&Xe.__createBinding||(Object.create?(function(s,d,c,u){u===void 0&&(u=c);var a=Object.getOwnPropertyDescriptor(d,c);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[c]}}),Object.defineProperty(s,u,a)}):(function(s,d,c,u){u===void 0&&(u=c),s[u]=d[c]})),n=Xe&&Xe.__exportStar||function(s,d){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(d,c)&&t(d,s,c)};Object.defineProperty(e,"__esModule",{value:!0}),n($o(),e),n(Rt(),e),n(Pa(),e),n(Oa(),e),n(jn(),e),n(Ao(),e)})(Xe)),Xe}var we={};class Pn extends Error{constructor(t,{cause:n}={}){super(t),this.name=Pn.name,n&&(this.cause=n),this.message=t}}const ka=Object.freeze(Object.defineProperty({__proto__:null,ErrorWithCause:Pn},Symbol.toStringTag,{value:"Module"})),xa=bo(ka),Ba=(e,t)=>{if(!e||!t||!(e instanceof Error)||!(t.prototype instanceof Error)&&t!==Error)return;const n=new Set;let s=e;for(;s&&!n.has(s);){if(n.add(s),s instanceof t)return s;s=Nt(s)}},Nt=e=>{if(!(!e||typeof e!="object"||!("cause"in e)))if(typeof e.cause=="function"){const t=e.cause();return t instanceof Error?t:void 0}else return e.cause instanceof Error?e.cause:void 0},To=(e,t)=>{if(!(e instanceof Error))return"";const n=e.stack||"";if(t.has(e))return n+`
1
+ import{h as bo,b as Yo,r as ue,j as E}from"./react-Cw0C4LRR.js";import{M as Ko,bb as Zo,c as Cn,h as Eo,j as wo,e1 as Qo,e2 as vo,b as ea,L as ta,a as A,s as Y,I as qe,n as ra,X as na,t as F,d4 as Ze,ce as Ct,z as Jt,F as zn,c9 as Jn,e3 as sa,O as ia,Y as oa,l as aa,Z as ca,w as ua}from"./index-CZdsG7uB.js";import{a as So,c as la,i as da,D as Gn}from"./SaleCountdown-NK6Hu66J.js";import{f as fa}from"./errors-htl-Qj1d.js";import{m as Ro}from"./mana-matic-CEqvSwrJ.js";import{T as ha}from"./Tooltip-CDNhtTHg.js";import{E as Xn}from"./ErrorNotice-DMbEwZqC.js";import{f as pa}from"./browseLayout.styles-DC6JaJXR.js";import{B as Wn,d as ga}from"./dcl-schemas-288R2vaD.js";import{r as ma}from"./sha3-Dtc962Jj.js";import{r as ya}from"./browser-CRE9R8KO.js";import{p as ba}from"./sentry-D4iytbTq.js";import{k as Ea,r as wa,O as Yn}from"./trade-encoding-DlOQ-rr4.js";import{a as St,h as _o,r as va,C as Io,k as Sa}from"./ethers-CQTiErIs.js";import{R as Ra,B as _a,T as Ia,A as $a,a as Aa,C as Ta,D as Ca,M as ja}from"./ManaPricingBanner.styles-GA7vtF8H.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9cf3207e-1121-47cc-8033-11bbacea40d7",e._sentryDebugIdIdentifier="sentry-dbid-9cf3207e-1121-47cc-8033-11bbacea40d7")}catch{}})();var Gt={},ze={},Je={},Xt={},Ge={},Se={},Xe={},st={},Kn;function $o(){if(Kn)return st;Kn=1,Object.defineProperty(st,"__esModule",{value:!0}),st.StructError=void 0;class e extends TypeError{constructor(n,s){let d;const{message:c,explanation:u,...a}=n,{path:o}=n,f=o.length===0?c:`At path: ${o.join(".")} -- ${c}`;super(u??f),u!=null&&(this.cause=f),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>d??(d=[n,...s()])}}return st.StructError=e,st}var fe={},he={},Zn;function Lt(){if(Zn)return he;Zn=1,Object.defineProperty(he,"__esModule",{value:!0}),he.run=he.toFailures=he.toFailure=he.shiftIterator=he.print=he.isPlainObject=he.isObject=void 0;function e(o){return t(o)&&typeof o[Symbol.iterator]=="function"}function t(o){return typeof o=="object"&&o!==null}he.isObject=t;function n(o){if(Object.prototype.toString.call(o)!=="[object Object]")return!1;const f=Object.getPrototypeOf(o);return f===null||f===Object.prototype}he.isPlainObject=n;function s(o){return typeof o=="symbol"?o.toString():typeof o=="string"?JSON.stringify(o):`${o}`}he.print=s;function d(o){const{done:f,value:r}=o.next();return f?void 0:r}he.shiftIterator=d;function c(o,f,r,i){if(o===!0)return;o===!1?o={}:typeof o=="string"&&(o={message:o});const{path:l,branch:h}=f,{type:b}=r,{refinement:S,message:q=`Expected a value of type \`${b}\`${S?` with refinement \`${S}\``:""}, but received: \`${s(i)}\``}=o;return{value:i,type:b,refinement:S,key:l[l.length-1],path:l,branch:h,...o,message:q}}he.toFailure=c;function*u(o,f,r,i){e(o)||(o=[o]);for(const l of o){const h=c(l,f,r,i);h&&(yield h)}}he.toFailures=u;function*a(o,f,r={}){const{path:i=[],branch:l=[o],coerce:h=!1,mask:b=!1}=r,S={path:i,branch:l};if(h&&(o=f.coercer(o,S),b&&f.type!=="type"&&t(f.schema)&&t(o)&&!Array.isArray(o)))for(const M in o)f.schema[M]===void 0&&delete o[M];let q="valid";for(const M of f.validator(o,S))M.explanation=r.message,q="not_valid",yield[M,void 0];for(let[M,J,W]of f.entries(o,S)){const _=a(J,W,{path:M===void 0?i:[...i,M],branch:M===void 0?l:[...l,J],coerce:h,mask:b,message:r.message});for(const w of _)w[0]?(q=w[0].refinement===null||w[0].refinement===void 0?"not_valid":"not_refined",yield[w[0],void 0]):h&&(J=w[1],M===void 0?o=J:o instanceof Map?o.set(M,J):o instanceof Set?o.add(J):t(o)&&(J!==void 0||M in o)&&(o[M]=J))}if(q!=="not_valid")for(const M of f.refiner(o,S))M.explanation=r.message,q="not_refined",yield[M,void 0];q==="valid"&&(yield[void 0,o])}return he.run=a,he}var Qn;function Rt(){if(Qn)return fe;Qn=1,Object.defineProperty(fe,"__esModule",{value:!0}),fe.validate=fe.is=fe.mask=fe.create=fe.assert=fe.ExactOptionalStruct=fe.Struct=void 0;const e=$o(),t=Lt();class n{constructor(i){const{type:l,schema:h,validator:b,refiner:S,coercer:q=J=>J,entries:M=function*(){}}=i;this.type=l,this.schema=h,this.entries=M,this.coercer=q,b?this.validator=(J,W)=>{const _=b(J,W);return(0,t.toFailures)(_,W,this,J)}:this.validator=()=>[],S?this.refiner=(J,W)=>{const _=S(J,W);return(0,t.toFailures)(_,W,this,J)}:this.refiner=()=>[]}assert(i,l){return c(i,this,l)}create(i,l){return u(i,this,l)}is(i){return o(i,this)}mask(i,l){return a(i,this,l)}validate(i,l={}){return f(i,this,l)}}fe.Struct=n;const s="EXACT_OPTIONAL";class d extends n{constructor(i){super({...i,type:`exact optional ${i.type}`}),this.brand=s}static isExactOptional(i){return(0,t.isObject)(i)&&"brand"in i&&i.brand===s}}fe.ExactOptionalStruct=d;function c(r,i,l){const h=f(r,i,{message:l});if(h[0])throw h[0]}fe.assert=c;function u(r,i,l){const h=f(r,i,{coerce:!0,message:l});if(h[0])throw h[0];return h[1]}fe.create=u;function a(r,i,l){const h=f(r,i,{coerce:!0,mask:!0,message:l});if(h[0])throw h[0];return h[1]}fe.mask=a;function o(r,i){return!f(r,i)[0]}fe.is=o;function f(r,i,l={}){const h=(0,t.run)(r,i,l),b=(0,t.shiftIterator)(h);return b[0]?[new e.StructError(b[0],function*(){for(const M of h)M[0]&&(yield M[0])}),void 0]:[void 0,b[1]]}return fe.validate=f,fe}var Be={},K={},le={},es;function Ao(){if(es)return le;es=1,Object.defineProperty(le,"__esModule",{value:!0}),le.pick=le.partial=le.omit=le.lazy=le.dynamic=le.deprecated=le.define=le.assign=void 0;const e=Rt(),t=jn();function n(...r){var b;const i=((b=r[0])==null?void 0:b.type)==="type",l=r.map(({schema:S})=>S),h=Object.assign({},...l);return i?(0,t.type)(h):(0,t.object)(h)}le.assign=n;function s(r,i){return new e.Struct({type:r,schema:null,validator:i})}le.define=s;function d(r,i){return new e.Struct({...r,refiner:(l,h)=>l===void 0||r.refiner(l,h),validator(l,h){return l===void 0?!0:(i(l,h),r.validator(l,h))}})}le.deprecated=d;function c(r){return new e.Struct({type:"dynamic",schema:null,*entries(i,l){yield*r(i,l).entries(i,l)},validator(i,l){return r(i,l).validator(i,l)},coercer(i,l){return r(i,l).coercer(i,l)},refiner(i,l){return r(i,l).refiner(i,l)}})}le.dynamic=c;function u(r){let i;return new e.Struct({type:"lazy",schema:null,*entries(l,h){i??(i=r()),yield*i.entries(l,h)},validator(l,h){return i??(i=r()),i.validator(l,h)},coercer(l,h){return i??(i=r()),i.coercer(l,h)},refiner(l,h){return i??(i=r()),i.refiner(l,h)}})}le.lazy=u;function a(r,i){const{schema:l}=r,h={...l};for(const b of i)delete h[b];switch(r.type){case"type":return(0,t.type)(h);default:return(0,t.object)(h)}}le.omit=a;function o(r){const i=r instanceof e.Struct,l=i?{...r.schema}:{...r};for(const h in l)l[h]=(0,t.optional)(l[h]);return i&&r.type==="type"?(0,t.type)(l):(0,t.object)(l)}le.partial=o;function f(r,i){const{schema:l}=r,h={};for(const b of i)h[b]=l[b];switch(r.type){case"type":return(0,t.type)(h);default:return(0,t.object)(h)}}return le.pick=f,le}var ts;function jn(){if(ts)return K;ts=1,Object.defineProperty(K,"__esModule",{value:!0}),K.unknown=K.union=K.type=K.tuple=K.string=K.set=K.regexp=K.record=K.exactOptional=K.optional=K.object=K.number=K.nullable=K.never=K.map=K.literal=K.intersection=K.integer=K.instance=K.func=K.enums=K.date=K.boolean=K.bigint=K.array=K.any=void 0;const e=Rt(),t=Lt(),n=Ao();function s(){return(0,n.define)("any",()=>!0)}K.any=s;function d(I){return new e.Struct({type:"array",schema:I,*entries(L){if(I&&Array.isArray(L))for(const[N,G]of L.entries())yield[N,G,I]},coercer(L){return Array.isArray(L)?L.slice():L},validator(L){return Array.isArray(L)||`Expected an array value, but received: ${(0,t.print)(L)}`}})}K.array=d;function c(){return(0,n.define)("bigint",I=>typeof I=="bigint")}K.bigint=c;function u(){return(0,n.define)("boolean",I=>typeof I=="boolean")}K.boolean=u;function a(){return(0,n.define)("date",I=>I instanceof Date&&!isNaN(I.getTime())||`Expected a valid \`Date\` object, but received: ${(0,t.print)(I)}`)}K.date=a;function o(I){const L={},N=I.map(G=>(0,t.print)(G)).join();for(const G of I)L[G]=G;return new e.Struct({type:"enums",schema:L,validator(G){return I.includes(G)||`Expected one of \`${N}\`, but received: ${(0,t.print)(G)}`}})}K.enums=o;function f(){return(0,n.define)("func",I=>typeof I=="function"||`Expected a function, but received: ${(0,t.print)(I)}`)}K.func=f;function r(I){return(0,n.define)("instance",L=>L instanceof I||`Expected a \`${I.name}\` instance, but received: ${(0,t.print)(L)}`)}K.instance=r;function i(){return(0,n.define)("integer",I=>typeof I=="number"&&!isNaN(I)&&Number.isInteger(I)||`Expected an integer, but received: ${(0,t.print)(I)}`)}K.integer=i;function l(I){return new e.Struct({type:"intersection",schema:null,*entries(L,N){for(const{entries:G}of I)yield*G(L,N)},*validator(L,N){for(const{validator:G}of I)yield*G(L,N)},*refiner(L,N){for(const{refiner:G}of I)yield*G(L,N)}})}K.intersection=l;function h(I){const L=(0,t.print)(I),N=typeof I;return new e.Struct({type:"literal",schema:N==="string"||N==="number"||N==="boolean"?I:null,validator(G){return G===I||`Expected the literal \`${L}\`, but received: ${(0,t.print)(G)}`}})}K.literal=h;function b(I,L){return new e.Struct({type:"map",schema:null,*entries(N){if(I&&L&&N instanceof Map)for(const[G,O]of N.entries())yield[G,G,I],yield[G,O,L]},coercer(N){return N instanceof Map?new Map(N):N},validator(N){return N instanceof Map||`Expected a \`Map\` object, but received: ${(0,t.print)(N)}`}})}K.map=b;function S(){return(0,n.define)("never",()=>!1)}K.never=S;function q(I){return new e.Struct({...I,validator:(L,N)=>L===null||I.validator(L,N),refiner:(L,N)=>L===null||I.refiner(L,N)})}K.nullable=q;function M(){return(0,n.define)("number",I=>typeof I=="number"&&!isNaN(I)||`Expected a number, but received: ${(0,t.print)(I)}`)}K.number=M;function J(I){const L=I?Object.keys(I):[],N=S();return new e.Struct({type:"object",schema:I??null,*entries(G){if(I&&(0,t.isObject)(G)){const O=new Set(Object.keys(G));for(const T of L){O.delete(T);const y=I[T];e.ExactOptionalStruct.isExactOptional(y)&&!Object.prototype.hasOwnProperty.call(G,T)||(yield[T,G[T],I[T]])}for(const T of O)yield[T,G[T],N]}},validator(G){return(0,t.isObject)(G)||`Expected an object, but received: ${(0,t.print)(G)}`},coercer(G){return(0,t.isObject)(G)?{...G}:G}})}K.object=J;function W(I){return new e.Struct({...I,validator:(L,N)=>L===void 0||I.validator(L,N),refiner:(L,N)=>L===void 0||I.refiner(L,N)})}K.optional=W;function _(I){return new e.ExactOptionalStruct(I)}K.exactOptional=_;function w(I,L){return new e.Struct({type:"record",schema:null,*entries(N){if((0,t.isObject)(N))for(const G in N){const O=N[G];yield[G,G,I],yield[G,O,L]}},validator(N){return(0,t.isObject)(N)||`Expected an object, but received: ${(0,t.print)(N)}`}})}K.record=w;function j(){return(0,n.define)("regexp",I=>I instanceof RegExp)}K.regexp=j;function H(I){return new e.Struct({type:"set",schema:null,*entries(L){if(I&&L instanceof Set)for(const N of L)yield[N,N,I]},coercer(L){return L instanceof Set?new Set(L):L},validator(L){return L instanceof Set||`Expected a \`Set\` object, but received: ${(0,t.print)(L)}`}})}K.set=H;function k(){return(0,n.define)("string",I=>typeof I=="string"||`Expected a string, but received: ${(0,t.print)(I)}`)}K.string=k;function B(I){const L=S();return new e.Struct({type:"tuple",schema:null,*entries(N){if(Array.isArray(N)){const G=Math.max(I.length,N.length);for(let O=0;O<G;O++)yield[O,N[O],I[O]||L]}},validator(N){return Array.isArray(N)||`Expected an array, but received: ${(0,t.print)(N)}`}})}K.tuple=B;function p(I){const L=Object.keys(I);return new e.Struct({type:"type",schema:I,*entries(N){if((0,t.isObject)(N))for(const G of L)yield[G,N[G],I[G]]},validator(N){return(0,t.isObject)(N)||`Expected an object, but received: ${(0,t.print)(N)}`},coercer(N){return(0,t.isObject)(N)?{...N}:N}})}K.type=p;function R(I){const L=I.map(N=>N.type).join(" | ");return new e.Struct({type:"union",schema:null,coercer(N){for(const G of I){const[O,T]=G.validate(N,{coerce:!0});if(!O)return T}return N},validator(N,G){const O=[];for(const T of I){const[...y]=(0,t.run)(N,T,G),[g]=y;if(!(g!=null&&g[0]))return[];for(const[$]of y)$&&O.push($)}return[`Expected the value to satisfy a union of \`${L}\`, but received: ${(0,t.print)(N)}`,...O]}})}K.union=R;function X(){return(0,n.define)("unknown",()=>!0)}return K.unknown=X,K}var rs;function Pa(){if(rs)return Be;rs=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.trimmed=Be.defaulted=Be.coerce=void 0;const e=Rt(),t=Lt(),n=jn();function s(u,a,o){return new e.Struct({...u,coercer:(f,r)=>(0,e.is)(f,a)?u.coercer(o(f,r),r):u.coercer(f,r)})}Be.coerce=s;function d(u,a,o={}){return s(u,(0,n.unknown)(),f=>{const r=typeof a=="function"?a():a;if(f===void 0)return r;if(!o.strict&&(0,t.isPlainObject)(f)&&(0,t.isPlainObject)(r)){const i={...f};let l=!1;for(const h in r)i[h]===void 0&&(i[h]=r[h],l=!0);if(l)return i}return f})}Be.defaulted=d;function c(u){return s(u,(0,n.string)(),a=>a.trim())}return Be.trimmed=c,Be}var pe={},ns;function Oa(){if(ns)return pe;ns=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.refine=pe.size=pe.pattern=pe.nonempty=pe.min=pe.max=pe.empty=void 0;const e=Rt(),t=Lt();function n(r){return f(r,"empty",i=>{const l=s(i);return l===0||`Expected an empty ${r.type} but received one with a size of \`${l}\``})}pe.empty=n;function s(r){return r instanceof Map||r instanceof Set?r.size:r.length}function d(r,i,l={}){const{exclusive:h}=l;return f(r,"max",b=>h?b<i:b<=i||`Expected a ${r.type} less than ${h?"":"or equal to "}${i} but received \`${b}\``)}pe.max=d;function c(r,i,l={}){const{exclusive:h}=l;return f(r,"min",b=>h?b>i:b>=i||`Expected a ${r.type} greater than ${h?"":"or equal to "}${i} but received \`${b}\``)}pe.min=c;function u(r){return f(r,"nonempty",i=>s(i)>0||`Expected a nonempty ${r.type} but received an empty one`)}pe.nonempty=u;function a(r,i){return f(r,"pattern",l=>i.test(l)||`Expected a ${r.type} matching \`/${i.source}/\` but received "${l}"`)}pe.pattern=a;function o(r,i,l=i){const h=`Expected a ${r.type}`,b=i===l?`of \`${i}\``:`between \`${i}\` and \`${l}\``;return f(r,"size",S=>{if(typeof S=="number"||S instanceof Date)return i<=S&&S<=l||`${h} ${b} but received \`${S}\``;if(S instanceof Map||S instanceof Set){const{size:M}=S;return i<=M&&M<=l||`${h} with a size ${b} but received one with a size of \`${M}\``}const{length:q}=S;return i<=q&&q<=l||`${h} with a length ${b} but received one with a length of \`${q}\``})}pe.size=o;function f(r,i,l){return new e.Struct({...r,*refiner(h,b){yield*r.refiner(h,b);const S=l(h,b),q=(0,t.toFailures)(S,b,r,h);for(const M of q)yield{...M,refinement:i}}})}return pe.refine=f,pe}var ss;function Pe(){return ss||(ss=1,(function(e){var t=Xe&&Xe.__createBinding||(Object.create?(function(s,d,c,u){u===void 0&&(u=c);var a=Object.getOwnPropertyDescriptor(d,c);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[c]}}),Object.defineProperty(s,u,a)}):(function(s,d,c,u){u===void 0&&(u=c),s[u]=d[c]})),n=Xe&&Xe.__exportStar||function(s,d){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(d,c)&&t(d,s,c)};Object.defineProperty(e,"__esModule",{value:!0}),n($o(),e),n(Rt(),e),n(Pa(),e),n(Oa(),e),n(jn(),e),n(Ao(),e)})(Xe)),Xe}var we={};class Pn extends Error{constructor(t,{cause:n}={}){super(t),this.name=Pn.name,n&&(this.cause=n),this.message=t}}const ka=Object.freeze(Object.defineProperty({__proto__:null,ErrorWithCause:Pn},Symbol.toStringTag,{value:"Module"})),xa=bo(ka),Ba=(e,t)=>{if(!e||!t||!(e instanceof Error)||!(t.prototype instanceof Error)&&t!==Error)return;const n=new Set;let s=e;for(;s&&!n.has(s);){if(n.add(s),s instanceof t)return s;s=Nt(s)}},Nt=e=>{if(!(!e||typeof e!="object"||!("cause"in e)))if(typeof e.cause=="function"){const t=e.cause();return t instanceof Error?t:void 0}else return e.cause instanceof Error?e.cause:void 0},To=(e,t)=>{if(!(e instanceof Error))return"";const n=e.stack||"";if(t.has(e))return n+`
2
2
  causes have become circular...`;const s=Nt(e);return s?(t.add(e),n+`
3
3
  caused by: `+To(s,t)):n},La=e=>To(e,new Set),Co=(e,t,n)=>{if(!(e instanceof Error))return"";const s=n?"":e.message||"";if(t.has(e))return s+": ...";const d=Nt(e);if(d){t.add(e);const c="cause"in e&&typeof e.cause=="function";return s+(c?"":": ")+Co(d,t,c)}else return s},Na=e=>Co(e,new Set),Ma=Object.freeze(Object.defineProperty({__proto__:null,findCauseByReference:Ba,getErrorCause:Nt,messageWithCauses:Na,stackWithCauses:La},Symbol.toStringTag,{value:"Module"})),qa=bo(Ma);var Wt,is;function Ha(){if(is)return Wt;is=1;const{ErrorWithCause:e}=xa,{findCauseByReference:t,getErrorCause:n,messageWithCauses:s,stackWithCauses:d}=qa;return Wt={ErrorWithCause:e,findCauseByReference:t,getErrorCause:n,stackWithCauses:d,messageWithCauses:s},Wt}var Yt={},os;function On(){return os||(os=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateNumberSize=e.calculateStringSize=e.isASCII=e.isPlainObject=e.ESCAPE_CHARACTERS_REGEXP=e.JsonSize=e.getKnownPropertyNames=e.hasProperty=e.isObject=e.isNullOrUndefined=e.isNonEmptyArray=void 0;function t(r){return Array.isArray(r)&&r.length>0}e.isNonEmptyArray=t;function n(r){return r==null}e.isNullOrUndefined=n;function s(r){return!!r&&typeof r=="object"&&!Array.isArray(r)}e.isObject=s;const d=(r,i)=>Object.hasOwnProperty.call(r,i);e.hasProperty=d;function c(r){return Object.getOwnPropertyNames(r)}e.getKnownPropertyNames=c,(function(r){r[r.Null=4]="Null",r[r.Comma=1]="Comma",r[r.Wrapper=1]="Wrapper",r[r.True=4]="True",r[r.False=5]="False",r[r.Quote=1]="Quote",r[r.Colon=1]="Colon",r[r.Date=24]="Date"})(e.JsonSize||(e.JsonSize={})),e.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu;function u(r){if(typeof r!="object"||r===null)return!1;try{let i=r;for(;Object.getPrototypeOf(i)!==null;)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(r)===i}catch{return!1}}e.isPlainObject=u;function a(r){return r.charCodeAt(0)<=127}e.isASCII=a;function o(r){return r.split("").reduce((l,h)=>a(h)?l+1:l+2,0)+(r.match(e.ESCAPE_CHARACTERS_REGEXP)??[]).length}e.calculateStringSize=o;function f(r){return r.toString().length}e.calculateNumberSize=f})(Yt)),Yt}var as;function jo(){if(as)return we;as=1,Object.defineProperty(we,"__esModule",{value:!0}),we.wrapError=we.getErrorMessage=we.isErrorWithStack=we.isErrorWithMessage=we.isErrorWithCode=void 0;const e=Ha(),t=On();function n(o){return o instanceof Error||(0,t.isObject)(o)&&o.constructor.name==="Error"}function s(o){return typeof o=="object"&&o!==null&&"code"in o}we.isErrorWithCode=s;function d(o){return typeof o=="object"&&o!==null&&"message"in o}we.isErrorWithMessage=d;function c(o){return typeof o=="object"&&o!==null&&"stack"in o}we.isErrorWithStack=c;function u(o){return d(o)&&typeof o.message=="string"?o.message:(0,t.isNullOrUndefined)(o)?"":String(o)}we.getErrorMessage=u;function a(o,f){if(n(o)){let r;return Error.length===2?r=new Error(f,{cause:o}):r=new e.ErrorWithCause(f,{cause:o}),s(o)&&(r.code=o.code),r}return f.length>0?new Error(`${String(o)}: ${f}`):new Error(String(o))}return we.wrapError=a,we}var cs;function De(){if(cs)return Se;cs=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.assertExhaustive=Se.assertStruct=Se.assert=Se.AssertionError=void 0;const e=Pe(),t=jo();function n(f){var r,i;return typeof((i=(r=f==null?void 0:f.prototype)==null?void 0:r.constructor)==null?void 0:i.name)=="string"}function s(f){return(0,t.getErrorMessage)(f).replace(/\.$/u,"")}function d(f,r){return n(f)?new f({message:r}):f({message:r})}class c extends Error{constructor(r){super(r.message),this.code="ERR_ASSERTION"}}Se.AssertionError=c;function u(f,r="Assertion failed.",i=c){if(!f)throw r instanceof Error?r:d(i,r)}Se.assert=u;function a(f,r,i="Assertion failed",l=c){try{(0,e.assert)(f,r)}catch(h){throw d(l,`${i}: ${s(h)}.`)}}Se.assertStruct=a;function o(f){throw new Error("Invalid branch reached. Should be detected during compilation.")}return Se.assertExhaustive=o,Se}var it={},us;function Po(){if(us)return it;us=1,Object.defineProperty(it,"__esModule",{value:!0}),it.base64=void 0;const e=Pe(),t=De(),n=(s,d={})=>{const c=d.paddingRequired??!1,u=d.characterSet??"base64";let a;u==="base64"?a=String.raw`[A-Za-z0-9+\/]`:((0,t.assert)(u==="base64url"),a=String.raw`[-_A-Za-z0-9]`);let o;return c?o=new RegExp(`^(?:${a}{4})*(?:${a}{3}=|${a}{2}==)?$`,"u"):o=new RegExp(`^(?:${a}{4})*(?:${a}{2,3}|${a}{3}=|${a}{2}==)?$`,"u"),(0,e.pattern)(s,o)};return it.base64=n,it}var ee={},Kt={},ls;function Da(){return ls||(ls=1,(function(e){/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.bytes=e.stringToBytes=e.str=e.bytesToString=e.hex=e.utf8=e.bech32m=e.bech32=e.base58check=e.createBase58check=e.base58xmr=e.base58xrp=e.base58flickr=e.base58=e.base64urlnopad=e.base64url=e.base64nopad=e.base64=e.base32crockford=e.base32hexnopad=e.base32hex=e.base32nopad=e.base32=e.base16=e.utils=void 0;function t(m){return m instanceof Uint8Array||ArrayBuffer.isView(m)&&m.constructor.name==="Uint8Array"}function n(m,...v){if(!t(m))throw new Error("Uint8Array expected");if(v.length>0&&!v.includes(m.length))throw new Error("Uint8Array expected of length "+v+", got length="+m.length)}function s(m,v){return Array.isArray(v)?v.length===0?!0:m?v.every(C=>typeof C=="string"):v.every(C=>Number.isSafeInteger(C)):!1}function d(m){if(typeof m!="function")throw new Error("function expected");return!0}function c(m,v){if(typeof v!="string")throw new Error(`${m}: string expected`);return!0}function u(m){if(!Number.isSafeInteger(m))throw new Error(`invalid integer: ${m}`)}function a(m){if(!Array.isArray(m))throw new Error("array expected")}function o(m,v){if(!s(!0,v))throw new Error(`${m}: array of strings expected`)}function f(m,v){if(!s(!1,v))throw new Error(`${m}: array of numbers expected`)}function r(...m){const v=D=>D,C=(D,re)=>Q=>D(re(Q)),z=m.map(D=>D.encode).reduceRight(C,v),U=m.map(D=>D.decode).reduce(C,v);return{encode:z,decode:U}}function i(m){const v=typeof m=="string"?m.split(""):m,C=v.length;o("alphabet",v);const z=new Map(v.map((U,D)=>[U,D]));return{encode:U=>(a(U),U.map(D=>{if(!Number.isSafeInteger(D)||D<0||D>=C)throw new Error(`alphabet.encode: digit index outside alphabet "${D}". Allowed: ${m}`);return v[D]})),decode:U=>(a(U),U.map(D=>{c("alphabet.decode",D);const re=z.get(D);if(re===void 0)throw new Error(`Unknown letter: "${D}". Allowed: ${m}`);return re}))}}function l(m=""){return c("join",m),{encode:v=>(o("join.decode",v),v.join(m)),decode:v=>(c("join.decode",v),v.split(m))}}function h(m,v="="){return u(m),c("padding",v),{encode(C){for(o("padding.encode",C);C.length*m%8;)C.push(v);return C},decode(C){o("padding.decode",C);let z=C.length;if(z*m%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;z>0&&C[z-1]===v;z--)if((z-1)*m%8===0)throw new Error("padding: invalid, string has too much padding");return C.slice(0,z)}}}function b(m){return d(m),{encode:v=>v,decode:v=>m(v)}}function S(m,v,C){if(v<2)throw new Error(`convertRadix: invalid from=${v}, base cannot be less than 2`);if(C<2)throw new Error(`convertRadix: invalid to=${C}, base cannot be less than 2`);if(a(m),!m.length)return[];let z=0;const U=[],D=Array.from(m,Q=>{if(u(Q),Q<0||Q>=v)throw new Error(`invalid integer: ${Q}`);return Q}),re=D.length;for(;;){let Q=0,ne=!0;for(let ie=z;ie<re;ie++){const ae=D[ie],ce=v*Q,oe=ce+ae;if(!Number.isSafeInteger(oe)||ce/v!==Q||oe-ae!==ce)throw new Error("convertRadix: carry overflow");const be=oe/C;Q=oe%C;const de=Math.floor(be);if(D[ie]=de,!Number.isSafeInteger(de)||de*C+Q!==oe)throw new Error("convertRadix: carry overflow");if(ne)de?ne=!1:z=ie;else continue}if(U.push(Q),ne)break}for(let Q=0;Q<m.length-1&&m[Q]===0;Q++)U.push(0);return U.reverse()}const q=(m,v)=>v===0?m:q(v,m%v),M=(m,v)=>m+(v-q(m,v)),J=(()=>{let m=[];for(let v=0;v<40;v++)m.push(2**v);return m})();function W(m,v,C,z){if(a(m),v<=0||v>32)throw new Error(`convertRadix2: wrong from=${v}`);if(C<=0||C>32)throw new Error(`convertRadix2: wrong to=${C}`);if(M(v,C)>32)throw new Error(`convertRadix2: carry overflow from=${v} to=${C} carryBits=${M(v,C)}`);let U=0,D=0;const re=J[v],Q=J[C]-1,ne=[];for(const ie of m){if(u(ie),ie>=re)throw new Error(`convertRadix2: invalid data word=${ie} from=${v}`);if(U=U<<v|ie,D+v>32)throw new Error(`convertRadix2: carry overflow pos=${D} from=${v}`);for(D+=v;D>=C;D-=C)ne.push((U>>D-C&Q)>>>0);const ae=J[D];if(ae===void 0)throw new Error("invalid carry");U&=ae-1}if(U=U<<C-D&Q,!z&&D>=v)throw new Error("Excess padding");if(!z&&U>0)throw new Error(`Non-zero padding: ${U}`);return z&&D>0&&ne.push(U>>>0),ne}function _(m){u(m);const v=2**8;return{encode:C=>{if(!t(C))throw new Error("radix.encode input should be Uint8Array");return S(Array.from(C),v,m)},decode:C=>(f("radix.decode",C),Uint8Array.from(S(C,m,v)))}}function w(m,v=!1){if(u(m),m<=0||m>32)throw new Error("radix2: bits should be in (0..32]");if(M(8,m)>32||M(m,8)>32)throw new Error("radix2: carry overflow");return{encode:C=>{if(!t(C))throw new Error("radix2.encode input should be Uint8Array");return W(Array.from(C),8,m,!v)},decode:C=>(f("radix2.decode",C),Uint8Array.from(W(C,m,8,v)))}}function j(m){return d(m),function(...v){try{return m.apply(null,v)}catch{}}}function H(m,v){return u(m),d(v),{encode(C){if(!t(C))throw new Error("checksum.encode: input should be Uint8Array");const z=v(C).slice(0,m),U=new Uint8Array(C.length+m);return U.set(C),U.set(z,C.length),U},decode(C){if(!t(C))throw new Error("checksum.decode: input should be Uint8Array");const z=C.slice(0,-m),U=C.slice(-m),D=v(z).slice(0,m);for(let re=0;re<m;re++)if(D[re]!==U[re])throw new Error("Invalid checksum");return z}}}e.utils={alphabet:i,chain:r,checksum:H,convertRadix:S,convertRadix2:W,radix:_,radix2:w,join:l,padding:h},e.base16=r(w(4),i("0123456789ABCDEF"),l("")),e.base32=r(w(5),i("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),h(5),l("")),e.base32nopad=r(w(5),i("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),l("")),e.base32hex=r(w(5),i("0123456789ABCDEFGHIJKLMNOPQRSTUV"),h(5),l("")),e.base32hexnopad=r(w(5),i("0123456789ABCDEFGHIJKLMNOPQRSTUV"),l("")),e.base32crockford=r(w(5),i("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),l(""),b(m=>m.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")));const k=typeof Uint8Array.from([]).toBase64=="function"&&typeof Uint8Array.fromBase64=="function",B=(m,v)=>{c("base64",m);const C=v?/^[A-Za-z0-9=_-]+$/:/^[A-Za-z0-9=+/]+$/,z=v?"base64url":"base64";if(m.length>0&&!C.test(m))throw new Error("invalid base64");return Uint8Array.fromBase64(m,{alphabet:z,lastChunkHandling:"strict"})};e.base64=k?{encode(m){return n(m),m.toBase64()},decode(m){return B(m,!1)}}:r(w(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),h(6),l("")),e.base64nopad=r(w(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),l("")),e.base64url=k?{encode(m){return n(m),m.toBase64({alphabet:"base64url"})},decode(m){return B(m,!0)}}:r(w(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),h(6),l("")),e.base64urlnopad=r(w(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),l(""));const p=m=>r(_(58),i(m),l(""));e.base58=p("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),e.base58flickr=p("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),e.base58xrp=p("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const R=[0,2,3,5,6,7,9,10,11];e.base58xmr={encode(m){let v="";for(let C=0;C<m.length;C+=8){const z=m.subarray(C,C+8);v+=e.base58.encode(z).padStart(R[z.length],"1")}return v},decode(m){let v=[];for(let C=0;C<m.length;C+=11){const z=m.slice(C,C+11),U=R.indexOf(z.length),D=e.base58.decode(z);for(let re=0;re<D.length-U;re++)if(D[re]!==0)throw new Error("base58xmr: wrong padding");v=v.concat(Array.from(D.slice(D.length-U)))}return Uint8Array.from(v)}};const X=m=>r(H(4,v=>m(m(v))),e.base58);e.createBase58check=X,e.base58check=e.createBase58check;const I=r(i("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),l("")),L=[996825010,642813549,513874426,1027748829,705979059];function N(m){const v=m>>25;let C=(m&33554431)<<5;for(let z=0;z<L.length;z++)(v>>z&1)===1&&(C^=L[z]);return C}function G(m,v,C=1){const z=m.length;let U=1;for(let D=0;D<z;D++){const re=m.charCodeAt(D);if(re<33||re>126)throw new Error(`Invalid prefix (${m})`);U=N(U)^re>>5}U=N(U);for(let D=0;D<z;D++)U=N(U)^m.charCodeAt(D)&31;for(let D of v)U=N(U)^D;for(let D=0;D<6;D++)U=N(U);return U^=C,I.encode(W([U%J[30]],30,5,!1))}function O(m){const v=m==="bech32"?1:734539939,C=w(5),z=C.decode,U=C.encode,D=j(z);function re(ce,oe,be=90){c("bech32.encode prefix",ce),t(oe)&&(oe=Array.from(oe)),f("bech32.encode",oe);const de=ce.length;if(de===0)throw new TypeError(`Invalid prefix length ${de}`);const ke=de+7+oe.length;if(be!==!1&&ke>be)throw new TypeError(`Length ${ke} exceeds limit ${be}`);const Ue=ce.toLowerCase(),Ve=G(Ue,oe,v);return`${Ue}1${I.encode(oe)}${Ve}`}function Q(ce,oe=90){c("bech32.decode input",ce);const be=ce.length;if(be<8||oe!==!1&&be>oe)throw new TypeError(`invalid string length: ${be} (${ce}). Expected (8..${oe})`);const de=ce.toLowerCase();if(ce!==de&&ce!==ce.toUpperCase())throw new Error("String must be lowercase or uppercase");const ke=de.lastIndexOf("1");if(ke===0||ke===-1)throw new Error('Letter "1" must be present between prefix and data only');const Ue=de.slice(0,ke),Ve=de.slice(ke+1);if(Ve.length<6)throw new Error("Data must be at least 6 characters long");const et=I.decode(Ve).slice(0,-6),tt=G(Ue,et,v);if(!Ve.endsWith(tt))throw new Error(`Invalid checksum in ${ce}: expected "${tt}"`);return{prefix:Ue,words:et}}const ne=j(Q);function ie(ce){const{prefix:oe,words:be}=Q(ce,!1);return{prefix:oe,words:be,bytes:z(be)}}function ae(ce,oe){return re(ce,U(oe))}return{encode:re,decode:Q,encodeFromBytes:ae,decodeToBytes:ie,decodeUnsafe:ne,fromWords:z,fromWordsUnsafe:D,toWords:U}}e.bech32=O("bech32"),e.bech32m=O("bech32m"),e.utf8={encode:m=>new TextDecoder().decode(m),decode:m=>new TextEncoder().encode(m)};const T=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",y={encode(m){return n(m),m.toHex()},decode(m){return c("hex",m),Uint8Array.fromHex(m)}};e.hex=T?y:r(w(4),i("0123456789abcdef"),l(""),b(m=>{if(typeof m!="string"||m.length%2!==0)throw new TypeError(`hex.decode: expected string, got ${typeof m} with length ${m.length}`);return m.toLowerCase()}));const g={utf8:e.utf8,hex:e.hex,base16:e.base16,base32:e.base32,base64:e.base64,base64url:e.base64url,base58:e.base58,base58xmr:e.base58xmr},$="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr",P=(m,v)=>{if(typeof m!="string"||!g.hasOwnProperty(m))throw new TypeError($);if(!t(v))throw new TypeError("bytesToString() expects Uint8Array");return g[m].encode(v)};e.bytesToString=P,e.str=e.bytesToString;const x=(m,v)=>{if(!g.hasOwnProperty(m))throw new TypeError($);if(typeof v!="string")throw new TypeError("stringToBytes() expects string");return g[m].decode(v)};e.stringToBytes=x,e.bytes=e.stringToBytes})(Kt)),Kt}var Zt={},ds;function Mt(){return ds||(ds=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.remove0x=e.add0x=e.isValidChecksumAddress=e.getChecksumAddress=e.isValidHexAddress=e.assertIsStrictHexString=e.assertIsHexString=e.isStrictHexString=e.isHexString=e.HexChecksumAddressStruct=e.HexAddressStruct=e.StrictHexStruct=e.HexStruct=void 0;const t=Pe(),n=ma(),s=De(),d=kn();e.HexStruct=(0,t.pattern)((0,t.string)(),/^(?:0x)?[0-9a-f]+$/iu),e.StrictHexStruct=(0,t.pattern)((0,t.string)(),/^0x[0-9a-f]+$/iu),e.HexAddressStruct=(0,t.pattern)((0,t.string)(),/^0x[0-9a-f]{40}$/u),e.HexChecksumAddressStruct=(0,t.pattern)((0,t.string)(),/^0x[0-9a-fA-F]{40}$/u);function c(b){return(0,t.is)(b,e.HexStruct)}e.isHexString=c;function u(b){return(0,t.is)(b,e.StrictHexStruct)}e.isStrictHexString=u;function a(b){(0,s.assert)(c(b),"Value must be a hexadecimal string.")}e.assertIsHexString=a;function o(b){(0,s.assert)(u(b),'Value must be a hexadecimal string, starting with "0x".')}e.assertIsStrictHexString=o;function f(b){return(0,t.is)(b,e.HexAddressStruct)||i(b)}e.isValidHexAddress=f;function r(b){(0,s.assert)((0,t.is)(b,e.HexChecksumAddressStruct),"Invalid hex address.");const S=h(b.toLowerCase()),q=h((0,d.bytesToHex)((0,n.keccak_256)(S)));return`0x${S.split("").map((M,J)=>{const W=q[J];return(0,s.assert)((0,t.is)(W,(0,t.string)()),"Hash shorter than address."),parseInt(W,16)>7?M.toUpperCase():M}).join("")}`}e.getChecksumAddress=r;function i(b){return(0,t.is)(b,e.HexChecksumAddressStruct)?r(b)===b:!1}e.isValidChecksumAddress=i;function l(b){return b.startsWith("0x")?b:b.startsWith("0X")?`0x${b.substring(2)}`:`0x${b}`}e.add0x=l;function h(b){return b.startsWith("0x")||b.startsWith("0X")?b.substring(2):b}e.remove0x=h})(Zt)),Zt}var fs;function kn(){if(fs)return ee;fs=1,Object.defineProperty(ee,"__esModule",{value:!0}),ee.createDataView=ee.concatBytes=ee.valueToBytes=ee.base64ToBytes=ee.stringToBytes=ee.numberToBytes=ee.signedBigIntToBytes=ee.bigIntToBytes=ee.hexToBytes=ee.bytesToBase64=ee.bytesToString=ee.bytesToNumber=ee.bytesToSignedBigInt=ee.bytesToBigInt=ee.bytesToHex=ee.assertIsBytes=ee.isBytes=void 0;const e=Da(),t=De(),n=Mt(),s=48,d=58,c=87;function u(){const p=[];return()=>{if(p.length===0)for(let R=0;R<256;R++)p.push(R.toString(16).padStart(2,"0"));return p}}const a=u();function o(p){return p instanceof Uint8Array}ee.isBytes=o;function f(p){(0,t.assert)(o(p),"Value must be a Uint8Array.")}ee.assertIsBytes=f;function r(p){if(f(p),p.length===0)return"0x";const R=a(),X=new Array(p.length);for(let I=0;I<p.length;I++)X[I]=R[p[I]];return(0,n.add0x)(X.join(""))}ee.bytesToHex=r;function i(p){f(p);const R=r(p);return BigInt(R)}ee.bytesToBigInt=i;function l(p){f(p);let R=BigInt(0);for(const X of p)R=(R<<BigInt(8))+BigInt(X);return BigInt.asIntN(p.length*8,R)}ee.bytesToSignedBigInt=l;function h(p){f(p);const R=i(p);return(0,t.assert)(R<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(R)}ee.bytesToNumber=h;function b(p){return f(p),new TextDecoder().decode(p)}ee.bytesToString=b;function S(p){return f(p),e.base64.encode(p)}ee.bytesToBase64=S;function q(p){var L;if(((L=p==null?void 0:p.toLowerCase)==null?void 0:L.call(p))==="0x")return new Uint8Array;(0,n.assertIsHexString)(p);const R=(0,n.remove0x)(p).toLowerCase(),X=R.length%2===0?R:`0${R}`,I=new Uint8Array(X.length/2);for(let N=0;N<I.length;N++){const G=X.charCodeAt(N*2),O=X.charCodeAt(N*2+1),T=G-(G<d?s:c),y=O-(O<d?s:c);I[N]=T*16+y}return I}ee.hexToBytes=q;function M(p){(0,t.assert)(typeof p=="bigint","Value must be a bigint."),(0,t.assert)(p>=BigInt(0),"Value must be a non-negative bigint.");const R=p.toString(16);return q(R)}ee.bigIntToBytes=M;function J(p,R){(0,t.assert)(R>0);const X=p>>BigInt(31);return!((~p&X)+(p&~X)>>BigInt(R*8+-1))}function W(p,R){(0,t.assert)(typeof p=="bigint","Value must be a bigint."),(0,t.assert)(typeof R=="number","Byte length must be a number."),(0,t.assert)(R>0,"Byte length must be greater than 0."),(0,t.assert)(J(p,R),"Byte length is too small to represent the given value.");let X=p;const I=new Uint8Array(R);for(let L=0;L<I.length;L++)I[L]=Number(BigInt.asUintN(8,X)),X>>=BigInt(8);return I.reverse()}ee.signedBigIntToBytes=W;function _(p){(0,t.assert)(typeof p=="number","Value must be a number."),(0,t.assert)(p>=0,"Value must be a non-negative number."),(0,t.assert)(Number.isSafeInteger(p),"Value is not a safe integer. Use `bigIntToBytes` instead.");const R=p.toString(16);return q(R)}ee.numberToBytes=_;function w(p){return(0,t.assert)(typeof p=="string","Value must be a string."),new TextEncoder().encode(p)}ee.stringToBytes=w;function j(p){return(0,t.assert)(typeof p=="string","Value must be a string."),e.base64.decode(p)}ee.base64ToBytes=j;function H(p){if(typeof p=="bigint")return M(p);if(typeof p=="number")return _(p);if(typeof p=="string")return p.startsWith("0x")?q(p):w(p);if(o(p))return p;throw new TypeError(`Unsupported value type: "${typeof p}".`)}ee.valueToBytes=H;function k(p){const R=new Array(p.length);let X=0;for(let L=0;L<p.length;L++){const N=H(p[L]);R[L]=N,X+=N.length}const I=new Uint8Array(X);for(let L=0,N=0;L<R.length;L++)I.set(R[L],N),N+=R[L].length;return I}ee.concatBytes=k;function B(p){if(typeof Wn<"u"&&p instanceof Wn){const R=p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength);return new DataView(R)}return new DataView(p.buffer,p.byteOffset,p.byteLength)}return ee.createDataView=B,ee}var Qt={},hs;function Ua(){return hs||(hs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toCaipChainId=e.parseCaipAccountId=e.parseCaipChainId=e.isCaipAssetId=e.isCaipAssetType=e.isCaipAccountAddress=e.isCaipAccountId=e.isCaipReference=e.isCaipNamespace=e.isCaipChainId=e.KnownCaipNamespace=e.CaipAssetIdStruct=e.CaipAssetTypeStruct=e.CaipAccountAddressStruct=e.CaipAccountIdStruct=e.CaipReferenceStruct=e.CaipNamespaceStruct=e.CaipChainIdStruct=e.CAIP_ASSET_ID_REGEX=e.CAIP_ASSET_TYPE_REGEX=e.CAIP_ACCOUNT_ADDRESS_REGEX=e.CAIP_ACCOUNT_ID_REGEX=e.CAIP_REFERENCE_REGEX=e.CAIP_NAMESPACE_REGEX=e.CAIP_CHAIN_ID_REGEX=void 0;const t=Pe();e.CAIP_CHAIN_ID_REGEX=/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})$/u,e.CAIP_NAMESPACE_REGEX=/^[-a-z0-9]{3,8}$/u,e.CAIP_REFERENCE_REGEX=/^[-_a-zA-Z0-9]{1,32}$/u,e.CAIP_ACCOUNT_ID_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})):(?<accountAddress>[-.%a-zA-Z0-9]{1,128})$/u,e.CAIP_ACCOUNT_ADDRESS_REGEX=/^[-.%a-zA-Z0-9]{1,128}$/u,e.CAIP_ASSET_TYPE_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})$/u,e.CAIP_ASSET_ID_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})\/(?<tokenId>[-.%a-zA-Z0-9]{1,78})$/u,e.CaipChainIdStruct=(0,t.pattern)((0,t.string)(),e.CAIP_CHAIN_ID_REGEX),e.CaipNamespaceStruct=(0,t.pattern)((0,t.string)(),e.CAIP_NAMESPACE_REGEX),e.CaipReferenceStruct=(0,t.pattern)((0,t.string)(),e.CAIP_REFERENCE_REGEX),e.CaipAccountIdStruct=(0,t.pattern)((0,t.string)(),e.CAIP_ACCOUNT_ID_REGEX),e.CaipAccountAddressStruct=(0,t.pattern)((0,t.string)(),e.CAIP_ACCOUNT_ADDRESS_REGEX),e.CaipAssetTypeStruct=(0,t.pattern)((0,t.string)(),e.CAIP_ASSET_TYPE_REGEX),e.CaipAssetIdStruct=(0,t.pattern)((0,t.string)(),e.CAIP_ASSET_ID_REGEX),(function(l){l.Bip122="bip122",l.Eip155="eip155",l.Wallet="wallet"})(e.KnownCaipNamespace||(e.KnownCaipNamespace={}));function n(l){return(0,t.is)(l,e.CaipChainIdStruct)}e.isCaipChainId=n;function s(l){return(0,t.is)(l,e.CaipNamespaceStruct)}e.isCaipNamespace=s;function d(l){return(0,t.is)(l,e.CaipReferenceStruct)}e.isCaipReference=d;function c(l){return(0,t.is)(l,e.CaipAccountIdStruct)}e.isCaipAccountId=c;function u(l){return(0,t.is)(l,e.CaipAccountAddressStruct)}e.isCaipAccountAddress=u;function a(l){return(0,t.is)(l,e.CaipAssetTypeStruct)}e.isCaipAssetType=a;function o(l){return(0,t.is)(l,e.CaipAssetIdStruct)}e.isCaipAssetId=o;function f(l){const h=e.CAIP_CHAIN_ID_REGEX.exec(l);if(!(h!=null&&h.groups))throw new Error("Invalid CAIP chain ID.");return{namespace:h.groups.namespace,reference:h.groups.reference}}e.parseCaipChainId=f;function r(l){const h=e.CAIP_ACCOUNT_ID_REGEX.exec(l);if(!(h!=null&&h.groups))throw new Error("Invalid CAIP account ID.");return{address:h.groups.accountAddress,chainId:h.groups.chainId,chain:{namespace:h.groups.namespace,reference:h.groups.reference}}}e.parseCaipAccountId=r;function i(l,h){if(!s(l))throw new Error(`Invalid "namespace", must match: ${e.CAIP_NAMESPACE_REGEX.toString()}`);if(!d(h))throw new Error(`Invalid "reference", must match: ${e.CAIP_REFERENCE_REGEX.toString()}`);return`${l}:${h}`}e.toCaipChainId=i})(Qt)),Qt}var ot={},ps;function Va(){if(ps)return ot;ps=1,Object.defineProperty(ot,"__esModule",{value:!0}),ot.ChecksumStruct=void 0;const e=Pe(),t=Po();return ot.ChecksumStruct=(0,e.size)((0,t.base64)((0,e.string)(),{paddingRequired:!0}),44,44),ot}var Re={},gs;function Fa(){if(gs)return Re;gs=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.createHex=Re.createBytes=Re.createBigInt=Re.createNumber=void 0;const e=Pe(),t=De(),n=kn(),s=Mt(),d=(0,e.union)([(0,e.number)(),(0,e.bigint)(),(0,e.string)(),s.StrictHexStruct]),c=(0,e.coerce)((0,e.number)(),d,Number),u=(0,e.coerce)((0,e.bigint)(),d,BigInt);(0,e.union)([s.StrictHexStruct,(0,e.instance)(Uint8Array)]);const a=(0,e.coerce)((0,e.instance)(Uint8Array),(0,e.union)([s.StrictHexStruct]),n.hexToBytes),o=(0,e.coerce)(s.StrictHexStruct,(0,e.instance)(Uint8Array),n.bytesToHex);function f(h){try{const b=(0,e.create)(h,c);return(0,t.assert)(Number.isFinite(b),`Expected a number-like value, got "${h}".`),b}catch(b){throw b instanceof e.StructError?new Error(`Expected a number-like value, got "${h}".`):b}}Re.createNumber=f;function r(h){try{return(0,e.create)(h,u)}catch(b){throw b instanceof e.StructError?new Error(`Expected a number-like value, got "${String(b.value)}".`):b}}Re.createBigInt=r;function i(h){if(typeof h=="string"&&h.toLowerCase()==="0x")return new Uint8Array;try{return(0,e.create)(h,a)}catch(b){throw b instanceof e.StructError?new Error(`Expected a bytes-like value, got "${String(b.value)}".`):b}}Re.createBytes=i;function l(h){if(h instanceof Uint8Array&&h.length===0||typeof h=="string"&&h.toLowerCase()==="0x")return"0x";try{return(0,e.create)(h,o)}catch(b){throw b instanceof e.StructError?new Error(`Expected a bytes-like value, got "${String(b.value)}".`):b}}return Re.createHex=l,Re}var _e={},ms;function za(){if(ms)return _e;ms=1;var e=_e&&_e.__classPrivateFieldGet||function(u,a,o,f){if(o==="a"&&!f)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?u!==a||!f:!a.has(u))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?f:o==="a"?f.call(u):f?f.value:a.get(u)},t=_e&&_e.__classPrivateFieldSet||function(u,a,o,f,r){if(f==="m")throw new TypeError("Private method is not writable");if(f==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?u!==a||!r:!a.has(u))throw new TypeError("Cannot write private member to an object whose class did not declare it");return f==="a"?r.call(u,o):r?r.value=o:a.set(u,o),o},n,s;Object.defineProperty(_e,"__esModule",{value:!0}),_e.FrozenSet=_e.FrozenMap=void 0;class d{get size(){return e(this,n,"f").size}[(n=new WeakMap,Symbol.iterator)](){return e(this,n,"f")[Symbol.iterator]()}constructor(a){n.set(this,void 0),t(this,n,new Map(a),"f"),Object.freeze(this)}entries(){return e(this,n,"f").entries()}forEach(a,o){return e(this,n,"f").forEach((f,r,i)=>a.call(o,f,r,this))}get(a){return e(this,n,"f").get(a)}has(a){return e(this,n,"f").has(a)}keys(){return e(this,n,"f").keys()}values(){return e(this,n,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([a,o])=>`${String(a)} => ${String(o)}`).join(", ")} `:""}}`}}_e.FrozenMap=d;class c{get size(){return e(this,s,"f").size}[(s=new WeakMap,Symbol.iterator)](){return e(this,s,"f")[Symbol.iterator]()}constructor(a){s.set(this,void 0),t(this,s,new Set(a),"f"),Object.freeze(this)}entries(){return e(this,s,"f").entries()}forEach(a,o){return e(this,s,"f").forEach((f,r,i)=>a.call(o,f,r,this))}has(a){return e(this,s,"f").has(a)}keys(){return e(this,s,"f").keys()}values(){return e(this,s,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(a=>String(a)).join(", ")} `:""}}`}}return _e.FrozenSet=c,Object.freeze(d),Object.freeze(d.prototype),Object.freeze(c),Object.freeze(c.prototype),_e}var er={},ys;function Ja(){return ys||(ys=1,Object.defineProperty(er,"__esModule",{value:!0})),er}var tr={},bs;function Ga(){return bs||(bs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getJsonRpcIdValidator=e.assertIsJsonRpcError=e.isJsonRpcError=e.assertIsJsonRpcFailure=e.isJsonRpcFailure=e.assertIsJsonRpcSuccess=e.isJsonRpcSuccess=e.assertIsJsonRpcResponse=e.isJsonRpcResponse=e.assertIsPendingJsonRpcResponse=e.isPendingJsonRpcResponse=e.JsonRpcResponseStruct=e.JsonRpcFailureStruct=e.JsonRpcSuccessStruct=e.PendingJsonRpcResponseStruct=e.assertIsJsonRpcRequest=e.isJsonRpcRequest=e.assertIsJsonRpcNotification=e.isJsonRpcNotification=e.JsonRpcNotificationStruct=e.JsonRpcRequestStruct=e.JsonRpcParamsStruct=e.JsonRpcErrorStruct=e.JsonRpcIdStruct=e.JsonRpcVersionStruct=e.jsonrpc2=e.getJsonSize=e.getSafeJson=e.isValidJson=e.JsonStruct=e.UnsafeJsonStruct=e.exactOptional=e.object=void 0;const t=Pe(),n=De(),s=On(),d=p=>(0,t.object)(p);e.object=d;function c({path:p,branch:R}){const X=p[p.length-1];return(0,s.hasProperty)(R[R.length-2],X)}function u(p){return new t.Struct({...p,type:`optional ${p.type}`,validator:(R,X)=>!c(X)||p.validator(R,X),refiner:(R,X)=>!c(X)||p.refiner(R,X)})}e.exactOptional=u;const a=()=>(0,t.define)("finite number",p=>(0,t.is)(p,(0,t.number)())&&Number.isFinite(p));e.UnsafeJsonStruct=(0,t.union)([(0,t.literal)(null),(0,t.boolean)(),a(),(0,t.string)(),(0,t.array)((0,t.lazy)(()=>e.UnsafeJsonStruct)),(0,t.record)((0,t.string)(),(0,t.lazy)(()=>e.UnsafeJsonStruct))]),e.JsonStruct=(0,t.coerce)(e.UnsafeJsonStruct,(0,t.any)(),p=>((0,n.assertStruct)(p,e.UnsafeJsonStruct),JSON.parse(JSON.stringify(p,(R,X)=>{if(!(R==="__proto__"||R==="constructor"))return X}))));function o(p){try{return f(p),!0}catch{return!1}}e.isValidJson=o;function f(p){return(0,t.create)(p,e.JsonStruct)}e.getSafeJson=f;function r(p){(0,n.assertStruct)(p,e.JsonStruct,"Invalid JSON value");const R=JSON.stringify(p);return new TextEncoder().encode(R).byteLength}e.getJsonSize=r,e.jsonrpc2="2.0",e.JsonRpcVersionStruct=(0,t.literal)(e.jsonrpc2),e.JsonRpcIdStruct=(0,t.nullable)((0,t.union)([(0,t.number)(),(0,t.string)()])),e.JsonRpcErrorStruct=(0,e.object)({code:(0,t.integer)(),message:(0,t.string)(),data:u(e.JsonStruct),stack:u((0,t.string)())}),e.JsonRpcParamsStruct=(0,t.union)([(0,t.record)((0,t.string)(),e.JsonStruct),(0,t.array)(e.JsonStruct)]),e.JsonRpcRequestStruct=(0,e.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,method:(0,t.string)(),params:u(e.JsonRpcParamsStruct)}),e.JsonRpcNotificationStruct=(0,e.object)({jsonrpc:e.JsonRpcVersionStruct,method:(0,t.string)(),params:u(e.JsonRpcParamsStruct)});function i(p){return(0,t.is)(p,e.JsonRpcNotificationStruct)}e.isJsonRpcNotification=i;function l(p,R){(0,n.assertStruct)(p,e.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",R)}e.assertIsJsonRpcNotification=l;function h(p){return(0,t.is)(p,e.JsonRpcRequestStruct)}e.isJsonRpcRequest=h;function b(p,R){(0,n.assertStruct)(p,e.JsonRpcRequestStruct,"Invalid JSON-RPC request",R)}e.assertIsJsonRpcRequest=b,e.PendingJsonRpcResponseStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:(0,t.optional)((0,t.unknown)()),error:(0,t.optional)(e.JsonRpcErrorStruct)}),e.JsonRpcSuccessStruct=(0,e.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:e.JsonStruct}),e.JsonRpcFailureStruct=(0,e.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,error:e.JsonRpcErrorStruct}),e.JsonRpcResponseStruct=(0,t.union)([e.JsonRpcSuccessStruct,e.JsonRpcFailureStruct]);function S(p){return(0,t.is)(p,e.PendingJsonRpcResponseStruct)}e.isPendingJsonRpcResponse=S;function q(p,R){(0,n.assertStruct)(p,e.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",R)}e.assertIsPendingJsonRpcResponse=q;function M(p){return(0,t.is)(p,e.JsonRpcResponseStruct)}e.isJsonRpcResponse=M;function J(p,R){(0,n.assertStruct)(p,e.JsonRpcResponseStruct,"Invalid JSON-RPC response",R)}e.assertIsJsonRpcResponse=J;function W(p){return(0,t.is)(p,e.JsonRpcSuccessStruct)}e.isJsonRpcSuccess=W;function _(p,R){(0,n.assertStruct)(p,e.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",R)}e.assertIsJsonRpcSuccess=_;function w(p){return(0,t.is)(p,e.JsonRpcFailureStruct)}e.isJsonRpcFailure=w;function j(p,R){(0,n.assertStruct)(p,e.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",R)}e.assertIsJsonRpcFailure=j;function H(p){return(0,t.is)(p,e.JsonRpcErrorStruct)}e.isJsonRpcError=H;function k(p,R){(0,n.assertStruct)(p,e.JsonRpcErrorStruct,"Invalid JSON-RPC error",R)}e.assertIsJsonRpcError=k;function B(p){const{permitEmptyString:R,permitFractions:X,permitNull:I}={permitEmptyString:!0,permitFractions:!1,permitNull:!0,...p};return N=>!!(typeof N=="number"&&(X||Number.isInteger(N))||typeof N=="string"&&(R||N.length>0)||I&&N===null)}e.getJsonRpcIdValidator=B})(tr)),tr}var rr={},Es;function Xa(){return Es||(Es=1,Object.defineProperty(rr,"__esModule",{value:!0})),rr}var Le={},ws;function Wa(){if(ws)return Le;ws=1;var e=Le&&Le.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(Le,"__esModule",{value:!0}),Le.createModuleLogger=Le.createProjectLogger=void 0;const n=(0,e(ya()).default)("metamask");function s(c){return n.extend(c)}Le.createProjectLogger=s;function d(c,u){return c.extend(u)}return Le.createModuleLogger=d,Le}var Ie={},vs;function Ya(){if(vs)return Ie;vs=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.hexToBigInt=Ie.hexToNumber=Ie.bigIntToHex=Ie.numberToHex=void 0;const e=De(),t=Mt(),n=u=>((0,e.assert)(typeof u=="number","Value must be a number."),(0,e.assert)(u>=0,"Value must be a non-negative number."),(0,e.assert)(Number.isSafeInteger(u),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,t.add0x)(u.toString(16)));Ie.numberToHex=n;const s=u=>((0,e.assert)(typeof u=="bigint","Value must be a bigint."),(0,e.assert)(u>=0,"Value must be a non-negative bigint."),(0,t.add0x)(u.toString(16)));Ie.bigIntToHex=s;const d=u=>{(0,t.assertIsHexString)(u);const a=parseInt(u,16);return(0,e.assert)(Number.isSafeInteger(a),"Value is not a safe integer. Use `hexToBigInt` instead."),a};Ie.hexToNumber=d;const c=u=>((0,t.assertIsHexString)(u),BigInt((0,t.add0x)(u)));return Ie.hexToBigInt=c,Ie}var nr={},Ss;function Ka(){return Ss||(Ss=1,Object.defineProperty(nr,"__esModule",{value:!0})),nr}var at={},Rs;function Za(){if(Rs)return at;Rs=1,Object.defineProperty(at,"__esModule",{value:!0}),at.createDeferredPromise=void 0;function e({suppressUnhandledRejection:t=!1}={}){let n,s;const d=new Promise((c,u)=>{n=c,s=u});return t&&d.catch(c=>{}),{promise:d,resolve:n,reject:s}}return at.createDeferredPromise=e,at}var sr={},_s;function Qa(){return _s||(_s=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.timeSince=e.inMilliseconds=e.Duration=void 0,(function(c){c[c.Millisecond=1]="Millisecond",c[c.Second=1e3]="Second",c[c.Minute=6e4]="Minute",c[c.Hour=36e5]="Hour",c[c.Day=864e5]="Day",c[c.Week=6048e5]="Week",c[c.Year=31536e6]="Year"})(e.Duration||(e.Duration={}));const t=c=>Number.isInteger(c)&&c>=0,n=(c,u)=>{if(!t(c))throw new Error(`"${u}" must be a non-negative integer. Received: "${c}".`)};function s(c,u){return n(c,"count"),c*u}e.inMilliseconds=s;function d(c){return n(c,"timestamp"),Date.now()-c}e.timeSince=d})(sr)),sr}var ir={},Is;function ec(){return Is||(Is=1,Object.defineProperty(ir,"__esModule",{value:!0})),ir}var or={},jt={exports:{}},ar,$s;function _t(){if($s)return ar;$s=1;const e="2.0.0",t=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,s=16,d=t-6;return ar={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:d,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},ar}var cr,As;function qt(){if(As)return cr;As=1;var e={};return cr=typeof ba=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{},cr}var Ts;function It(){return Ts||(Ts=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:d}=_t(),c=qt();t=e.exports={};const u=t.re=[],a=t.safeRe=[],o=t.src=[],f=t.safeSrc=[],r=t.t={};let i=0;const l="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",d],[l,s]],b=q=>{for(const[M,J]of h)q=q.split(`${M}*`).join(`${M}{0,${J}}`).split(`${M}+`).join(`${M}{1,${J}}`);return q},S=(q,M,J)=>{const W=b(M),_=i++;c(q,_,M),r[q]=_,o[_]=M,f[_]=W,u[_]=new RegExp(M,J?"g":void 0),a[_]=new RegExp(W,J?"g":void 0)};S("NUMERICIDENTIFIER","0|[1-9]\\d*"),S("NUMERICIDENTIFIERLOOSE","\\d+"),S("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${l}*`),S("MAINVERSION",`(${o[r.NUMERICIDENTIFIER]})\\.(${o[r.NUMERICIDENTIFIER]})\\.(${o[r.NUMERICIDENTIFIER]})`),S("MAINVERSIONLOOSE",`(${o[r.NUMERICIDENTIFIERLOOSE]})\\.(${o[r.NUMERICIDENTIFIERLOOSE]})\\.(${o[r.NUMERICIDENTIFIERLOOSE]})`),S("PRERELEASEIDENTIFIER",`(?:${o[r.NONNUMERICIDENTIFIER]}|${o[r.NUMERICIDENTIFIER]})`),S("PRERELEASEIDENTIFIERLOOSE",`(?:${o[r.NONNUMERICIDENTIFIER]}|${o[r.NUMERICIDENTIFIERLOOSE]})`),S("PRERELEASE",`(?:-(${o[r.PRERELEASEIDENTIFIER]}(?:\\.${o[r.PRERELEASEIDENTIFIER]})*))`),S("PRERELEASELOOSE",`(?:-?(${o[r.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[r.PRERELEASEIDENTIFIERLOOSE]})*))`),S("BUILDIDENTIFIER",`${l}+`),S("BUILD",`(?:\\+(${o[r.BUILDIDENTIFIER]}(?:\\.${o[r.BUILDIDENTIFIER]})*))`),S("FULLPLAIN",`v?${o[r.MAINVERSION]}${o[r.PRERELEASE]}?${o[r.BUILD]}?`),S("FULL",`^${o[r.FULLPLAIN]}$`),S("LOOSEPLAIN",`[v=\\s]*${o[r.MAINVERSIONLOOSE]}${o[r.PRERELEASELOOSE]}?${o[r.BUILD]}?`),S("LOOSE",`^${o[r.LOOSEPLAIN]}$`),S("GTLT","((?:<|>)?=?)"),S("XRANGEIDENTIFIERLOOSE",`${o[r.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),S("XRANGEIDENTIFIER",`${o[r.NUMERICIDENTIFIER]}|x|X|\\*`),S("XRANGEPLAIN",`[v=\\s]*(${o[r.XRANGEIDENTIFIER]})(?:\\.(${o[r.XRANGEIDENTIFIER]})(?:\\.(${o[r.XRANGEIDENTIFIER]})(?:${o[r.PRERELEASE]})?${o[r.BUILD]}?)?)?`),S("XRANGEPLAINLOOSE",`[v=\\s]*(${o[r.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[r.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[r.XRANGEIDENTIFIERLOOSE]})(?:${o[r.PRERELEASELOOSE]})?${o[r.BUILD]}?)?)?`),S("XRANGE",`^${o[r.GTLT]}\\s*${o[r.XRANGEPLAIN]}$`),S("XRANGELOOSE",`^${o[r.GTLT]}\\s*${o[r.XRANGEPLAINLOOSE]}$`),S("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),S("COERCE",`${o[r.COERCEPLAIN]}(?:$|[^\\d])`),S("COERCEFULL",o[r.COERCEPLAIN]+`(?:${o[r.PRERELEASE]})?(?:${o[r.BUILD]})?(?:$|[^\\d])`),S("COERCERTL",o[r.COERCE],!0),S("COERCERTLFULL",o[r.COERCEFULL],!0),S("LONETILDE","(?:~>?)"),S("TILDETRIM",`(\\s*)${o[r.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",S("TILDE",`^${o[r.LONETILDE]}${o[r.XRANGEPLAIN]}$`),S("TILDELOOSE",`^${o[r.LONETILDE]}${o[r.XRANGEPLAINLOOSE]}$`),S("LONECARET","(?:\\^)"),S("CARETTRIM",`(\\s*)${o[r.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",S("CARET",`^${o[r.LONECARET]}${o[r.XRANGEPLAIN]}$`),S("CARETLOOSE",`^${o[r.LONECARET]}${o[r.XRANGEPLAINLOOSE]}$`),S("COMPARATORLOOSE",`^${o[r.GTLT]}\\s*(${o[r.LOOSEPLAIN]})$|^$`),S("COMPARATOR",`^${o[r.GTLT]}\\s*(${o[r.FULLPLAIN]})$|^$`),S("COMPARATORTRIM",`(\\s*)${o[r.GTLT]}\\s*(${o[r.LOOSEPLAIN]}|${o[r.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",S("HYPHENRANGE",`^\\s*(${o[r.XRANGEPLAIN]})\\s+-\\s+(${o[r.XRANGEPLAIN]})\\s*$`),S("HYPHENRANGELOOSE",`^\\s*(${o[r.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[r.XRANGEPLAINLOOSE]})\\s*$`),S("STAR","(<|>)?=?\\s*\\*"),S("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),S("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(jt,jt.exports)),jt.exports}var ur,Cs;function xn(){if(Cs)return ur;Cs=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return ur=s=>s?typeof s!="object"?e:s:t,ur}var lr,js;function Oo(){if(js)return lr;js=1;const e=/^[0-9]+$/,t=(s,d)=>{if(typeof s=="number"&&typeof d=="number")return s===d?0:s<d?-1:1;const c=e.test(s),u=e.test(d);return c&&u&&(s=+s,d=+d),s===d?0:c&&!u?-1:u&&!c?1:s<d?-1:1};return lr={compareIdentifiers:t,rcompareIdentifiers:(s,d)=>t(d,s)},lr}var dr,Ps;function ye(){if(Ps)return dr;Ps=1;const e=qt(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=_t(),{safeRe:s,t:d}=It(),c=xn(),{compareIdentifiers:u}=Oo(),a=(f,r)=>{const i=r.split(".");if(i.length>f.length)return!1;for(let l=0;l<i.length;l++)if(u(f[l],i[l])!==0)return!1;return!0};class o{constructor(r,i){if(i=c(i),r instanceof o){if(r.loose===!!i.loose&&r.includePrerelease===!!i.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`);if(r.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",r,i),this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease;const l=r.trim().match(i.loose?s[d.LOOSE]:s[d.FULL]);if(!l)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");l[4]?this.prerelease=l[4].split(".").map(h=>{if(/^[0-9]+$/.test(h)){const b=+h;if(b>=0&&b<n)return b}return h}):this.prerelease=[],this.build=l[5]?l[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(r){if(e("SemVer.compare",this.version,this.options,r),!(r instanceof o)){if(typeof r=="string"&&r===this.version)return 0;r=new o(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof o||(r=new o(r,this.options)),this.major<r.major?-1:this.major>r.major?1:this.minor<r.minor?-1:this.minor>r.minor?1:this.patch<r.patch?-1:this.patch>r.patch?1:0}comparePre(r){if(r instanceof o||(r=new o(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let i=0;do{const l=this.prerelease[i],h=r.prerelease[i];if(e("prerelease compare",i,l,h),l===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(l===void 0)return-1;if(l===h)continue;return u(l,h)}while(++i)}compareBuild(r){r instanceof o||(r=new o(r,this.options));let i=0;do{const l=this.build[i],h=r.build[i];if(e("build compare",i,l,h),l===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(l===void 0)return-1;if(l===h)continue;return u(l,h)}while(++i)}inc(r,i,l){if(r.startsWith("pre")){if(!i&&l===!1)throw new Error("invalid increment argument: identifier is empty");if(i){const h=`-${i}`.match(this.options.loose?s[d.PRERELEASELOOSE]:s[d.PRERELEASE]);if(!h||h[1]!==i)throw new Error(`invalid identifier: ${i}`)}}switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",i,l);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",i,l);break;case"prepatch":this.prerelease.length=0,this.inc("patch",i,l),this.inc("pre",i,l);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",i,l),this.inc("pre",i,l);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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":{const h=Number(l)?1:0;if(this.prerelease.length===0)this.prerelease=[h];else{let b=this.prerelease.length;for(;--b>=0;)typeof this.prerelease[b]=="number"&&(this.prerelease[b]++,b=-2);if(b===-1){if(i===this.prerelease.join(".")&&l===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(h)}}if(i){let b=[i,h];if(l===!1&&(b=[i]),a(this.prerelease,i)){const S=this.prerelease[i.split(".").length];isNaN(S)&&(this.prerelease=b)}else this.prerelease=b}break}default:throw new Error(`invalid increment argument: ${r}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return dr=o,dr}var fr,Os;function Qe(){if(Os)return fr;Os=1;const e=ye();return fr=(n,s,d=!1)=>{if(n instanceof e)return n;try{return new e(n,s)}catch(c){if(!d)return null;throw c}},fr}var hr,ks;function tc(){if(ks)return hr;ks=1;const e=Qe();return hr=(n,s)=>{const d=e(n,s);return d?d.version:null},hr}var pr,xs;function rc(){if(xs)return pr;xs=1;const e=Qe();return pr=(n,s)=>{const d=e(n.trim().replace(/^[=v]+/,""),s);return d?d.version:null},pr}var gr,Bs;function nc(){if(Bs)return gr;Bs=1;const e=ye();return gr=(n,s,d,c,u)=>{typeof d=="string"&&(u=c,c=d,d=void 0);try{return new e(n instanceof e?n.version:n,d).inc(s,c,u).version}catch{return null}},gr}var mr,Ls;function sc(){if(Ls)return mr;Ls=1;const e=Qe();return mr=(n,s)=>{const d=e(n,null,!0),c=e(s,null,!0),u=d.compare(c);if(u===0)return null;const a=u>0,o=a?d:c,f=a?c:d,r=!!o.prerelease.length;if(!!f.prerelease.length&&!r){if(!f.patch&&!f.minor)return"major";if(f.compareMain(o)===0)return f.minor&&!f.patch?"minor":"patch"}const l=r?"pre":"";return d.major!==c.major?l+"major":d.minor!==c.minor?l+"minor":d.patch!==c.patch?l+"patch":"prerelease"},mr}var yr,Ns;function ic(){if(Ns)return yr;Ns=1;const e=ye();return yr=(n,s)=>new e(n,s).major,yr}var br,Ms;function oc(){if(Ms)return br;Ms=1;const e=ye();return br=(n,s)=>new e(n,s).minor,br}var Er,qs;function ac(){if(qs)return Er;qs=1;const e=ye();return Er=(n,s)=>new e(n,s).patch,Er}var wr,Hs;function cc(){if(Hs)return wr;Hs=1;const e=Qe();return wr=(n,s)=>{const d=e(n,s);return d&&d.prerelease.length?d.prerelease:null},wr}var vr,Ds;function Ce(){if(Ds)return vr;Ds=1;const e=ye();return vr=(n,s,d)=>new e(n,d).compare(new e(s,d)),vr}var Sr,Us;function uc(){if(Us)return Sr;Us=1;const e=Ce();return Sr=(n,s,d)=>e(s,n,d),Sr}var Rr,Vs;function lc(){if(Vs)return Rr;Vs=1;const e=Ce();return Rr=(n,s)=>e(n,s,!0),Rr}var _r,Fs;function Bn(){if(Fs)return _r;Fs=1;const e=ye();return _r=(n,s,d)=>{const c=new e(n,d),u=new e(s,d);return c.compare(u)||c.compareBuild(u)},_r}var Ir,zs;function dc(){if(zs)return Ir;zs=1;const e=Bn();return Ir=(n,s)=>n.sort((d,c)=>e(d,c,s)),Ir}var $r,Js;function fc(){if(Js)return $r;Js=1;const e=Bn();return $r=(n,s)=>n.sort((d,c)=>e(c,d,s)),$r}var Ar,Gs;function Ht(){if(Gs)return Ar;Gs=1;const e=Ce();return Ar=(n,s,d)=>e(n,s,d)>0,Ar}var Tr,Xs;function Ln(){if(Xs)return Tr;Xs=1;const e=Ce();return Tr=(n,s,d)=>e(n,s,d)<0,Tr}var Cr,Ws;function ko(){if(Ws)return Cr;Ws=1;const e=Ce();return Cr=(n,s,d)=>e(n,s,d)===0,Cr}var jr,Ys;function xo(){if(Ys)return jr;Ys=1;const e=Ce();return jr=(n,s,d)=>e(n,s,d)!==0,jr}var Pr,Ks;function Nn(){if(Ks)return Pr;Ks=1;const e=Ce();return Pr=(n,s,d)=>e(n,s,d)>=0,Pr}var Or,Zs;function Mn(){if(Zs)return Or;Zs=1;const e=Ce();return Or=(n,s,d)=>e(n,s,d)<=0,Or}var kr,Qs;function Bo(){if(Qs)return kr;Qs=1;const e=ko(),t=xo(),n=Ht(),s=Nn(),d=Ln(),c=Mn();return kr=(a,o,f,r)=>{switch(o){case"===":return typeof a=="object"&&(a=a.version),typeof f=="object"&&(f=f.version),a===f;case"!==":return typeof a=="object"&&(a=a.version),typeof f=="object"&&(f=f.version),a!==f;case"":case"=":case"==":return e(a,f,r);case"!=":return t(a,f,r);case">":return n(a,f,r);case">=":return s(a,f,r);case"<":return d(a,f,r);case"<=":return c(a,f,r);default:throw new TypeError(`Invalid operator: ${o}`)}},kr}var xr,ei;function hc(){if(ei)return xr;ei=1;const e=ye(),t=Qe(),{safeRe:n,t:s}=It();return xr=(c,u)=>{if(c instanceof e)return c;if(typeof c=="number"&&(c=String(c)),typeof c!="string")return null;u=u||{};let a=null;if(!u.rtl)a=c.match(u.includePrerelease?n[s.COERCEFULL]:n[s.COERCE]);else{const h=u.includePrerelease?n[s.COERCERTLFULL]:n[s.COERCERTL];let b;for(;(b=h.exec(c))&&(!a||a.index+a[0].length!==c.length);)(!a||b.index+b[0].length!==a.index+a[0].length)&&(a=b),h.lastIndex=b.index+b[1].length+b[2].length;h.lastIndex=-1}if(a===null)return null;const o=a[2],f=a[3]||"0",r=a[4]||"0",i=u.includePrerelease&&a[5]?`-${a[5]}`:"",l=u.includePrerelease&&a[6]?`+${a[6]}`:"";return t(`${o}.${f}.${r}${i}${l}`,u)},xr}var Br,ti;function pc(){if(ti)return Br;ti=1;const e=Qe(),t=_t(),n=ye(),s=(a,o,f)=>{if(!t.RELEASE_TYPES.includes(o))return null;const r=d(a,f);return r&&c(r,o)},d=(a,o)=>{const f=a instanceof n?a.version:a;return e(f,o)},c=(a,o)=>{if(u(o))return a.version;switch(a.prerelease=[],o){case"major":a.minor=0,a.patch=0;break;case"minor":a.patch=0;break}return a.format()},u=a=>a.startsWith("pre");return Br=s,Br}var Lr,ri;function gc(){if(ri)return Lr;ri=1;class e{constructor(){this.max=1e3,this.map=new Map}get(n){const s=this.map.get(n);if(s!==void 0)return this.map.delete(n),this.map.set(n,s),s}delete(n){return this.map.delete(n)}set(n,s){if(!this.delete(n)&&s!==void 0){if(this.map.size>=this.max){const c=this.map.keys().next().value;this.delete(c)}this.map.set(n,s)}return this}}return Lr=e,Lr}var Nr,ni;function je(){if(ni)return Nr;ni=1;const e=/\s+/g;class t{constructor(T,y){if(y=d(y),T instanceof t)return T.loose===!!y.loose&&T.includePrerelease===!!y.includePrerelease?T:new t(T.raw,y);if(T instanceof c)return this.raw=T.value,this.set=[[T]],this.formatted=void 0,this;if(this.options=y,this.loose=!!y.loose,this.includePrerelease=!!y.includePrerelease,this.raw=T.trim().replace(e," "),this.set=this.raw.split("||").map(g=>this.parseRange(g.trim())).filter(g=>g.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const g=this.set[0];if(this.set=this.set.filter($=>!M($[0])),this.set.length===0)this.set=[g];else if(this.set.length>1){for(const $ of this.set)if($.length===1&&J($[0])){this.set=[$];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let T=0;T<this.set.length;T++){T>0&&(this.formatted+="||");const y=this.set[T];for(let g=0;g<y.length;g++)g>0&&(this.formatted+=" "),this.formatted+=y[g].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(T){T=T.replace(q,"");const g=((this.options.includePrerelease&&b)|(this.options.loose&&S))+":"+T,$=s.get(g);if($)return $;const P=this.options.loose,x=P?o[r.HYPHENRANGELOOSE]:o[r.HYPHENRANGE];T=T.replace(x,N(this.options.includePrerelease)),u("hyphen replace",T),T=T.replace(o[r.COMPARATORTRIM],i),u("comparator trim",T),T=T.replace(o[r.TILDETRIM],l),u("tilde trim",T),T=T.replace(o[r.CARETTRIM],h),u("caret trim",T);let m=T.split(" ").map(U=>_(U,this.options)).join(" ").split(/\s+/).map(U=>L(U,this.options));P&&(m=m.filter(U=>(u("loose invalid filter",U,this.options),!!U.match(o[r.COMPARATORLOOSE])))),u("range list",m);const v=new Map,C=m.map(U=>new c(U,this.options));for(const U of C){if(M(U))return[U];v.set(U.value,U)}v.size>1&&v.has("")&&v.delete("");const z=[...v.values()];return s.set(g,z),z}intersects(T,y){if(!(T instanceof t))throw new TypeError("a Range is required");return this.set.some(g=>W(g,y)&&T.set.some($=>W($,y)&&g.every(P=>$.every(x=>P.intersects(x,y)))))}test(T){if(!T)return!1;if(typeof T=="string")try{T=new a(T,this.options)}catch{return!1}for(let y=0;y<this.set.length;y++)if(G(this.set[y],T,this.options))return!0;return!1}}Nr=t;const n=gc(),s=new n,d=xn(),c=Dt(),u=qt(),a=ye(),{safeRe:o,src:f,t:r,comparatorTrimReplace:i,tildeTrimReplace:l,caretTrimReplace:h}=It(),{FLAG_INCLUDE_PRERELEASE:b,FLAG_LOOSE:S}=_t(),q=new RegExp(f[r.BUILD],"g"),M=O=>O.value==="<0.0.0-0",J=O=>O.value==="",W=(O,T)=>{let y=!0;const g=O.slice();let $=g.pop();for(;y&&g.length;)y=g.every(P=>$.intersects(P,T)),$=g.pop();return y},_=(O,T)=>(O=O.replace(o[r.BUILD],""),u("comp",O,T),O=B(O,T),u("caret",O),O=H(O,T),u("tildes",O),O=R(O,T),u("xrange",O),O=I(O,T),u("stars",O),O),w=O=>!O||O.toLowerCase()==="x"||O==="*",j=(O,T,y)=>w(O)&&!w(T)||w(T)&&y&&!w(y),H=(O,T)=>O.trim().split(/\s+/).map(y=>k(y,T)).join(" "),k=(O,T)=>{const y=T.loose?o[r.TILDELOOSE]:o[r.TILDE],g=T.includePrerelease?"-0":"";return O.replace(y,($,P,x,m,v)=>{u("tilde",O,$,P,x,m,v);let C;return w(P)?C="":w(x)?C=`>=${P}.0.0${g} <${+P+1}.0.0-0`:w(m)?C=`>=${P}.${x}.0${g} <${P}.${+x+1}.0-0`:v?(u("replaceTilde pr",v),C=`>=${P}.${x}.${m}-${v} <${P}.${+x+1}.0-0`):C=`>=${P}.${x}.${m} <${P}.${+x+1}.0-0`,u("tilde return",C),C})},B=(O,T)=>O.trim().split(/\s+/).map(y=>p(y,T)).join(" "),p=(O,T)=>{u("caret",O,T);const y=T.loose?o[r.CARETLOOSE]:o[r.CARET],g=T.includePrerelease?"-0":"";return O.replace(y,($,P,x,m,v)=>{u("caret",O,$,P,x,m,v);let C;return w(P)?C="":w(x)?C=`>=${P}.0.0${g} <${+P+1}.0.0-0`:w(m)?P==="0"?C=`>=${P}.${x}.0${g} <${P}.${+x+1}.0-0`:C=`>=${P}.${x}.0${g} <${+P+1}.0.0-0`:v?(u("replaceCaret pr",v),P==="0"?x==="0"?C=`>=${P}.${x}.${m}-${v} <${P}.${x}.${+m+1}-0`:C=`>=${P}.${x}.${m}-${v} <${P}.${+x+1}.0-0`:C=`>=${P}.${x}.${m}-${v} <${+P+1}.0.0-0`):(u("no pr"),P==="0"?x==="0"?C=`>=${P}.${x}.${m} <${P}.${x}.${+m+1}-0`:C=`>=${P}.${x}.${m} <${P}.${+x+1}.0-0`:C=`>=${P}.${x}.${m} <${+P+1}.0.0-0`),u("caret return",C),C})},R=(O,T)=>(u("replaceXRanges",O,T),O.split(/\s+/).map(y=>X(y,T)).join(" ")),X=(O,T)=>{O=O.trim();const y=T.loose?o[r.XRANGELOOSE]:o[r.XRANGE];return O.replace(y,(g,$,P,x,m,v)=>{if(u("xRange",O,g,$,P,x,m,v),j(P,x,m))return O;const C=w(P),z=C||w(x),U=z||w(m),D=U;return $==="="&&D&&($=""),v=T.includePrerelease?"-0":"",C?$===">"||$==="<"?g="<0.0.0-0":g="*":$&&D?(z&&(x=0),m=0,$===">"?($=">=",z?(P=+P+1,x=0,m=0):(x=+x+1,m=0)):$==="<="&&($="<",z?P=+P+1:x=+x+1),$==="<"&&(v="-0"),g=`${$+P}.${x}.${m}${v}`):z?g=`>=${P}.0.0${v} <${+P+1}.0.0-0`:U&&(g=`>=${P}.${x}.0${v} <${P}.${+x+1}.0-0`),u("xRange return",g),g})},I=(O,T)=>(u("replaceStars",O,T),O.trim().replace(o[r.STAR],"")),L=(O,T)=>(u("replaceGTE0",O,T),O.trim().replace(o[T.includePrerelease?r.GTE0PRE:r.GTE0],"")),N=O=>(T,y,g,$,P,x,m,v,C,z,U,D)=>(w(g)?y="":w($)?y=`>=${g}.0.0${O?"-0":""}`:w(P)?y=`>=${g}.${$}.0${O?"-0":""}`:x?y=`>=${y}`:y=`>=${y}${O?"-0":""}`,w(C)?v="":w(z)?v=`<${+C+1}.0.0-0`:w(U)?v=`<${C}.${+z+1}.0-0`:D?v=`<=${C}.${z}.${U}-${D}`:O?v=`<${C}.${z}.${+U+1}-0`:v=`<=${v}`,`${y} ${v}`.trim()),G=(O,T,y)=>{for(let g=0;g<O.length;g++)if(!O[g].test(T))return!1;if(T.prerelease.length&&!y.includePrerelease){for(let g=0;g<O.length;g++)if(u(O[g].semver),O[g].semver!==c.ANY&&O[g].semver.prerelease.length>0){const $=O[g].semver;if($.major===T.major&&$.minor===T.minor&&$.patch===T.patch)return!0}return!1}return!0};return Nr}var Mr,si;function Dt(){if(si)return Mr;si=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),u("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(r){const i=this.options.loose?s[d.COMPARATORLOOSE]:s[d.COMPARATOR],l=r.match(i);if(!l)throw new TypeError(`Invalid comparator: ${r}`);this.operator=l[1]!==void 0?l[1]:"",this.operator==="="&&(this.operator=""),l[2]?this.semver=new a(l[2],this.options.loose):this.semver=e}toString(){return this.value}test(r){if(u("Comparator.test",r,this.options.loose),this.semver===e||r===e)return!0;if(typeof r=="string")try{r=new a(r,this.options)}catch{return!1}return c(r,this.operator,this.semver,this.options)}intersects(r,i){if(!(r instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new o(r.value,i).test(this.value):r.operator===""?r.value===""?!0:new o(this.value,i).test(r.semver):(i=n(i),i.includePrerelease&&(this.value==="<0.0.0-0"||r.value==="<0.0.0-0")||!i.includePrerelease&&(this.value.startsWith("<0.0.0")||r.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&r.operator.startsWith(">")||this.operator.startsWith("<")&&r.operator.startsWith("<")||this.semver.version===r.semver.version&&this.operator.includes("=")&&r.operator.includes("=")||c(this.semver,"<",r.semver,i)&&this.operator.startsWith(">")&&r.operator.startsWith("<")||c(this.semver,">",r.semver,i)&&this.operator.startsWith("<")&&r.operator.startsWith(">")))}}Mr=t;const n=xn(),{safeRe:s,t:d}=It(),c=Bo(),u=qt(),a=ye(),o=je();return Mr}var qr,ii;function Ut(){if(ii)return qr;ii=1;const e=je();return qr=(n,s,d)=>{try{s=new e(s,d)}catch{return!1}return s.test(n)},qr}var Hr,oi;function mc(){if(oi)return Hr;oi=1;const e=je();return Hr=(n,s)=>new e(n,s).set.map(d=>d.map(c=>c.value).join(" ").trim().split(" ")),Hr}var Dr,ai;function yc(){if(ai)return Dr;ai=1;const e=ye(),t=je();return Dr=(s,d,c)=>{let u=null,a=null,o=null;try{o=new t(d,c)}catch{return null}return s.forEach(f=>{o.test(f)&&(!u||a.compare(f)===-1)&&(u=f,a=new e(u,c))}),u},Dr}var Ur,ci;function bc(){if(ci)return Ur;ci=1;const e=ye(),t=je();return Ur=(s,d,c)=>{let u=null,a=null,o=null;try{o=new t(d,c)}catch{return null}return s.forEach(f=>{o.test(f)&&(!u||a.compare(f)===1)&&(u=f,a=new e(u,c))}),u},Ur}var Vr,ui;function Ec(){if(ui)return Vr;ui=1;const e=ye(),t=je(),n=Ht();return Vr=(d,c)=>{d=new t(d,c);let u=new e("0.0.0");if(d.test(u)||(u=new e("0.0.0-0"),d.test(u)))return u;u=null;for(let a=0;a<d.set.length;++a){const o=d.set[a];let f=null;o.forEach(r=>{const i=new e(r.semver.version);switch(r.operator){case">":i.prerelease.length===0?i.patch++:i.prerelease.push(0),i.raw=i.format();case"":case">=":(!f||n(i,f))&&(f=i);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${r.operator}`)}}),f&&(!u||n(u,f))&&(u=f)}return u&&d.test(u)?u:null},Vr}var Fr,li;function wc(){if(li)return Fr;li=1;const e=je();return Fr=(n,s)=>{try{return new e(n,s).range||"*"}catch{return null}},Fr}var zr,di;function qn(){if(di)return zr;di=1;const e=ye(),t=Dt(),{ANY:n}=t,s=je(),d=Ut(),c=Ht(),u=Ln(),a=Mn(),o=Nn();return zr=(r,i,l,h)=>{r=new e(r,h),i=new s(i,h);let b,S,q,M,J;switch(l){case">":b=c,S=a,q=u,M=">",J=">=";break;case"<":b=u,S=o,q=c,M="<",J="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(d(r,i,h))return!1;for(let W=0;W<i.set.length;++W){const _=i.set[W];let w=null,j=null;if(_.forEach(H=>{H.semver===n&&(H=new t(">=0.0.0")),w=w||H,j=j||H,b(H.semver,w.semver,h)?w=H:q(H.semver,j.semver,h)&&(j=H)}),w.operator===M||w.operator===J||(!j.operator||j.operator===M)&&S(r,j.semver))return!1;if(j.operator===J&&q(r,j.semver))return!1}return!0},zr}var Jr,fi;function vc(){if(fi)return Jr;fi=1;const e=qn();return Jr=(n,s,d)=>e(n,s,">",d),Jr}var Gr,hi;function Sc(){if(hi)return Gr;hi=1;const e=qn();return Gr=(n,s,d)=>e(n,s,"<",d),Gr}var Xr,pi;function Rc(){if(pi)return Xr;pi=1;const e=je();return Xr=(n,s,d)=>(n=new e(n,d),s=new e(s,d),n.intersects(s,d)),Xr}var Wr,gi;function _c(){if(gi)return Wr;gi=1;const e=Ut(),t=Ce();return Wr=(n,s,d)=>{const c=[];let u=null,a=null;const o=n.sort((l,h)=>t(l,h,d));for(const l of o)e(l,s,d)?(a=l,u||(u=l)):(a&&c.push([u,a]),a=null,u=null);u&&c.push([u,null]);const f=[];for(const[l,h]of c)l===h?f.push(l):!h&&l===o[0]?f.push("*"):h?l===o[0]?f.push(`<=${h}`):f.push(`${l} - ${h}`):f.push(`>=${l}`);const r=f.join(" || "),i=typeof s.raw=="string"?s.raw:String(s);return r.length<i.length?r:s},Wr}var Yr,mi;function Ic(){if(mi)return Yr;mi=1;const e=je(),t=Dt(),{ANY:n}=t,s=Ut(),d=Ce(),c=(i,l,h={})=>{if(i===l)return!0;i=new e(i,h),l=new e(l,h);let b=!1;e:for(const S of i.set){for(const q of l.set){const M=o(S,q,h);if(b=b||M!==null,M)continue e}if(b)return!1}return!0},u=[new t(">=0.0.0-0")],a=[new t(">=0.0.0")],o=(i,l,h)=>{if(i===l)return!0;if(i.length===1&&i[0].semver===n){if(l.length===1&&l[0].semver===n)return!0;h.includePrerelease?i=u:i=a}if(l.length===1&&l[0].semver===n){if(h.includePrerelease)return!0;l=a}const b=new Set;let S,q;for(const k of i)k.operator===">"||k.operator===">="?S=f(S,k,h):k.operator==="<"||k.operator==="<="?q=r(q,k,h):b.add(k.semver);if(b.size>1)return null;let M;if(S&&q){if(M=d(S.semver,q.semver,h),M>0)return null;if(M===0&&(S.operator!==">="||q.operator!=="<="))return null}for(const k of b){if(S&&!s(k,String(S),h)||q&&!s(k,String(q),h))return null;for(const B of l)if(!s(k,String(B),h))return!1;return!0}let J,W,_,w,j=q&&!h.includePrerelease&&q.semver.prerelease.length?q.semver:!1,H=S&&!h.includePrerelease&&S.semver.prerelease.length?S.semver:!1;j&&j.prerelease.length===1&&q.operator==="<"&&j.prerelease[0]===0&&(j=!1);for(const k of l){if(w=w||k.operator===">"||k.operator===">=",_=_||k.operator==="<"||k.operator==="<=",S){if(H&&k.semver.prerelease&&k.semver.prerelease.length&&k.semver.major===H.major&&k.semver.minor===H.minor&&k.semver.patch===H.patch&&(H=!1),k.operator===">"||k.operator===">="){if(J=f(S,k,h),J===k&&J!==S)return!1}else if(S.operator===">="&&!k.test(S.semver))return!1}if(q){if(j&&k.semver.prerelease&&k.semver.prerelease.length&&k.semver.major===j.major&&k.semver.minor===j.minor&&k.semver.patch===j.patch&&(j=!1),k.operator==="<"||k.operator==="<="){if(W=r(q,k,h),W===k&&W!==q)return!1}else if(q.operator==="<="&&!k.test(q.semver))return!1}if(!k.operator&&(q||S)&&M!==0)return!1}return!(S&&_&&!q&&M!==0||q&&w&&!S&&M!==0||H||j)},f=(i,l,h)=>{if(!i)return l;const b=d(i.semver,l.semver,h);return b>0?i:b<0||l.operator===">"&&i.operator===">="?l:i},r=(i,l,h)=>{if(!i)return l;const b=d(i.semver,l.semver,h);return b<0?i:b>0||l.operator==="<"&&i.operator==="<="?l:i};return Yr=c,Yr}var Kr,yi;function $c(){if(yi)return Kr;yi=1;const e=It(),t=_t(),n=ye(),s=Oo(),d=Qe(),c=tc(),u=rc(),a=nc(),o=sc(),f=ic(),r=oc(),i=ac(),l=cc(),h=Ce(),b=uc(),S=lc(),q=Bn(),M=dc(),J=fc(),W=Ht(),_=Ln(),w=ko(),j=xo(),H=Nn(),k=Mn(),B=Bo(),p=hc(),R=pc(),X=Dt(),I=je(),L=Ut(),N=mc(),G=yc(),O=bc(),T=Ec(),y=wc(),g=qn(),$=vc(),P=Sc(),x=Rc(),m=_c(),v=Ic();return Kr={parse:d,valid:c,clean:u,inc:a,diff:o,major:f,minor:r,patch:i,prerelease:l,compare:h,rcompare:b,compareLoose:S,compareBuild:q,sort:M,rsort:J,gt:W,lt:_,eq:w,neq:j,gte:H,lte:k,cmp:B,coerce:p,truncate:R,Comparator:X,Range:I,satisfies:L,toComparators:N,maxSatisfying:G,minSatisfying:O,minVersion:T,validRange:y,outside:g,gtr:$,ltr:P,intersects:x,simplifyRange:m,subset:v,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers},Kr}var bi;function Ac(){return bi||(bi=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.satisfiesVersionRange=e.gtRange=e.gtVersion=e.assertIsSemVerRange=e.assertIsSemVerVersion=e.isValidSemVerRange=e.isValidSemVerVersion=e.VersionRangeStruct=e.VersionStruct=void 0;const t=Pe(),n=$c(),s=De();e.VersionStruct=(0,t.refine)((0,t.string)(),"Version",i=>(0,n.valid)(i)===null?`Expected SemVer version, got "${i}"`:!0),e.VersionRangeStruct=(0,t.refine)((0,t.string)(),"Version range",i=>(0,n.validRange)(i)===null?`Expected SemVer range, got "${i}"`:!0);function d(i){return(0,t.is)(i,e.VersionStruct)}e.isValidSemVerVersion=d;function c(i){return(0,t.is)(i,e.VersionRangeStruct)}e.isValidSemVerRange=c;function u(i){(0,s.assertStruct)(i,e.VersionStruct)}e.assertIsSemVerVersion=u;function a(i){(0,s.assertStruct)(i,e.VersionRangeStruct)}e.assertIsSemVerRange=a;function o(i,l){return(0,n.gt)(i,l)}e.gtVersion=o;function f(i,l){return(0,n.gtr)(i,l)}e.gtRange=f;function r(i,l){return(0,n.satisfies)(i,l,{includePrerelease:!0})}e.satisfiesVersionRange=r})(or)),or}var Ei;function Ee(){return Ei||(Ei=1,(function(e){var t=Ge&&Ge.__createBinding||(Object.create?(function(s,d,c,u){u===void 0&&(u=c);var a=Object.getOwnPropertyDescriptor(d,c);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[c]}}),Object.defineProperty(s,u,a)}):(function(s,d,c,u){u===void 0&&(u=c),s[u]=d[c]})),n=Ge&&Ge.__exportStar||function(s,d){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(d,c)&&t(d,s,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(De(),e),n(Po(),e),n(kn(),e),n(Ua(),e),n(Va(),e),n(Fa(),e),n(za(),e),n(Ja(),e),n(jo(),e),n(Mt(),e),n(Ga(),e),n(Xa(),e),n(Wa(),e),n(On(),e),n(Ya(),e),n(Ka(),e),n(Za(),e),n(Qa(),e),n(ec(),e),n(Ac(),e)})(Ge)),Ge}var Zr={},wi;function Oe(){return wi||(wi=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ParserError=e.getErrorStack=e.getErrorMessage=void 0;const t=Ee(),n=c=>typeof c=="string"?c:c instanceof Error||(0,t.isObject)(c)&&(0,t.hasProperty)(c,"message")&&typeof c.message=="string"?c.message:"Unknown error.";e.getErrorMessage=n;const s=c=>{if(c instanceof Error)return c.stack};e.getErrorStack=s;class d extends Error{constructor(u,a){super(u),this.name="ParserError";const o=(0,e.getErrorStack)(a);o&&(this.stack=o)}}e.ParserError=d})(Zr)),Zr}var Qr={},ct={},vi;function Tc(){if(vi)return ct;vi=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.iterate=void 0;const e=Ee(),t=function*(n,s=32){for(let d=0;d<n.length;d+=s){const c=a=>{(0,e.assert)(a>=0,"Cannot skip a negative number of bytes."),(0,e.assert)(a%s===0,"Length must be a multiple of the size."),d+=a},u=n.subarray(d);yield{skip:c,value:u}}return{skip:()=>{},value:new Uint8Array}};return ct.iterate=t,ct}var We={},en={},Ye={},Ne={},Si;function Cc(){if(Si)return Ne;Si=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.padEnd=Ne.padStart=Ne.set=void 0;const e=Ee(),t=32,n=(c,u,a)=>(0,e.concatBytes)([c.subarray(0,a),u,c.subarray(a+u.length)]);Ne.set=n;const s=(c,u=t)=>{const a=new Uint8Array(Math.max(u-c.length,0)).fill(0);return(0,e.concatBytes)([a,c])};Ne.padStart=s;const d=(c,u=t)=>{const a=new Uint8Array(Math.max(u-c.length,0)).fill(0);return(0,e.concatBytes)([c,a])};return Ne.padEnd=d,Ne}var Ri;function nt(){return Ri||(Ri=1,(function(e){var t=Ye&&Ye.__createBinding||(Object.create?(function(s,d,c,u){u===void 0&&(u=c);var a=Object.getOwnPropertyDescriptor(d,c);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[c]}}),Object.defineProperty(s,u,a)}):(function(s,d,c,u){u===void 0&&(u=c),s[u]=d[c]})),n=Ye&&Ye.__exportStar||function(s,d){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(d,c)&&t(d,s,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(Cc(),e)})(Ye)),Ye}var _i;function jc(){return _i||(_i=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.address=e.getAddress=void 0;const t=Ee(),n=Oe(),s=nt(),d=c=>{const u=(0,t.createBytes)(c);return(0,t.assert)(u.length<=20,new n.ParserError(`Invalid address value. Expected address to be 20 bytes long, but received ${u.length} bytes.`)),(0,s.padStart)(u,20)};e.getAddress=d,e.address={isDynamic:!1,isType:c=>c==="address",getByteLength(){return 32},encode({buffer:c,value:u,packed:a}){const o=(0,e.getAddress)(u);if(a)return(0,t.concatBytes)([c,o]);const f=(0,s.padStart)(o);return(0,t.concatBytes)([c,f])},decode({value:c}){return(0,t.add0x)((0,t.bytesToHex)(c.slice(12,32)))}}})(en)),en}var tn={},rn={},Ii;function Hn(){return Ii||(Ii=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fixedBytes=e.getByteLength=void 0;const t=Ee(),n=Oe(),s=nt(),d=/^bytes([0-9]{1,2})$/u,c=u=>{var f;const a=(f=u.match(d))==null?void 0:f[1];(0,t.assert)(a,`Invalid byte length. Expected a number between 1 and 32, but received "${u}".`);const o=Number(a);return(0,t.assert)(o>0&&o<=32,new n.ParserError(`Invalid byte length. Expected a number between 1 and 32, but received "${u}".`)),o};e.getByteLength=c,e.fixedBytes={isDynamic:!1,isType(u){return d.test(u)},getByteLength(){return 32},encode({type:u,buffer:a,value:o,packed:f}){const r=(0,e.getByteLength)(u),i=(0,t.createBytes)(o);return(0,t.assert)(i.length<=r,new n.ParserError(`Expected a value of length ${r}, but received a value of length ${i.length}.`)),f?(0,t.concatBytes)([a,(0,s.padEnd)(i,r)]):(0,t.concatBytes)([a,(0,s.padEnd)(i)])},decode({type:u,value:a}){const o=(0,e.getByteLength)(u);return a.slice(0,o)}}})(rn)),rn}var nn={},$i;function Lo(){return $i||($i=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.tuple=e.getTupleElements=void 0;const t=Ee(),n=Oe(),s=Dn(),d=/^\((.+)\)$/u,c=a=>d.test(a),u=a=>{(0,t.assert)(a.startsWith("(")&&a.endsWith(")"),new n.ParserError(`Invalid tuple type. Expected tuple type, but received "${a}".`));const o=[];let f="",r=0;for(let i=1;i<a.length-1;i++){const l=a[i];l===","&&r===0?(o.push(f.trim()),f=""):(f+=l,l==="("?r+=1:l===")"&&(r-=1))}return f.trim()&&o.push(f.trim()),o};e.getTupleElements=u,e.tuple={isDynamic(a){return(0,e.getTupleElements)(a).some(f=>{const r=(0,s.getParser)(f);return(0,s.isDynamicParser)(r,f)})},isType(a){return c(a)},getByteLength(a){return(0,s.isDynamicParser)(this,a)?32:(0,e.getTupleElements)(a).reduce((f,r)=>f+(0,s.getParser)(r).getByteLength(r),0)},encode({type:a,buffer:o,value:f,packed:r,tight:i}){const l=(0,e.getTupleElements)(a);return(0,s.pack)({types:l,values:f,byteArray:o,packed:r,tight:i})},decode({type:a,value:o,skip:f}){const r=(0,e.getTupleElements)(a),i=this.getByteLength(a)-32;return f(i),(0,s.unpack)(r,o)}}})(nn)),nn}var Ai;function Pc(){return Ai||(Ai=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.array=e.getTupleType=e.getArrayType=e.isArrayType=void 0;const t=Ee(),n=Oe(),s=Dn(),d=nt(),c=Hn(),u=Lo(),a=/^(?<type>.*)\[(?<length>\d*?)\]$/u,o=i=>a.test(i);e.isArrayType=o;const f=i=>{var h;const l=i.match(a);return(0,t.assert)((h=l==null?void 0:l.groups)==null?void 0:h.type,new n.ParserError(`Invalid array type. Expected an array type, but received "${i}".`)),[l.groups.type,l.groups.length?parseInt(l.groups.length,10):void 0]};e.getArrayType=f;const r=(i,l)=>`(${new Array(l).fill(i).join(",")})`;e.getTupleType=r,e.array={isDynamic(i){const[l,h]=(0,e.getArrayType)(i);return h===void 0||(0,s.isDynamicParser)((0,s.getParser)(l),l)},isType(i){return(0,e.isArrayType)(i)},getByteLength(i){(0,t.assert)((0,e.isArrayType)(i),new n.ParserError(`Expected an array type, but received "${i}".`));const[l,h]=(0,e.getArrayType)(i);return!(0,s.isDynamicParser)(this,i)&&h!==void 0?u.tuple.getByteLength((0,e.getTupleType)(l,h)):32},encode({type:i,buffer:l,value:h,packed:b,tight:S}){const[q,M]=(0,e.getArrayType)(i);if((0,t.assert)(!b||!(0,e.isArrayType)(q),new n.ParserError("Cannot pack nested arrays.")),b&&(0,s.isDynamicParser)((0,s.getParser)(q),q))return(0,s.pack)({types:new Array(h.length).fill(q),values:h,byteArray:l,packed:b,arrayPacked:!0,tight:S});if(M)return(0,t.assert)(M===h.length,new n.ParserError(`Array length does not match type length. Expected a length of ${M}, but received ${h.length}.`)),u.tuple.encode({type:(0,e.getTupleType)(q,M),buffer:l,value:h,packed:c.fixedBytes.isType(q)&&S,tight:S});if(b)return(0,s.pack)({types:new Array(h.length).fill(q),values:h,byteArray:l,packed:c.fixedBytes.isType(q)&&S,arrayPacked:!0,tight:S});const J=(0,d.padStart)((0,t.numberToBytes)(h.length));return(0,s.pack)({types:new Array(h.length).fill(q),values:h,byteArray:(0,t.concatBytes)([l,J]),packed:b,tight:S})},decode({type:i,value:l,...h}){const[b,S]=(0,e.getArrayType)(i);if(S){const M=u.tuple.decode({type:(0,e.getTupleType)(b,S),value:l,...h});return(0,t.assert)(M.length===S,new n.ParserError(`Array length does not match type length. Expected a length of ${S}, but received ${M.length}.`)),M}const q=(0,t.bytesToNumber)(l.subarray(0,32));return(0,s.unpack)(new Array(q).fill(b),l.subarray(32))}}})(tn)),tn}var sn={},on={},Ti;function No(){return Ti||(Ti=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.number=e.getBigInt=e.assertNumberLength=e.getLength=e.isSigned=void 0;const t=Ee(),n=Oe(),s=nt(),d=/^u?int(?<length>[0-9]*)?$/u,c=f=>!f.startsWith("u");e.isSigned=c;const u=f=>{var l;if(f==="int"||f==="uint")return 256;const r=f.match(d);(0,t.assert)((l=r==null?void 0:r.groups)==null?void 0:l.length,new n.ParserError(`Invalid number type. Expected a number type, but received "${f}".`));const i=parseInt(r.groups.length,10);return(0,t.assert)(i>=8&&i<=256,new n.ParserError(`Invalid number length. Expected a number between 8 and 256, but received "${f}".`)),(0,t.assert)(i%8===0,new n.ParserError(`Invalid number length. Expected a multiple of 8, but received "${f}".`)),i};e.getLength=u;const a=(f,r)=>{const i=(0,e.getLength)(r),l=BigInt(2)**BigInt(i-((0,e.isSigned)(r)?1:0))-BigInt(1);if((0,e.isSigned)(r)){(0,t.assert)(f>=-(l+BigInt(1))&&f<=l,new n.ParserError(`Number "${f}" is out of range for type "${r}".`));return}(0,t.assert)(f<=l,new n.ParserError(`Number "${f}" is out of range for type "${r}".`))};e.assertNumberLength=a;const o=f=>{try{return(0,t.createBigInt)(f)}catch{throw new n.ParserError(`Invalid number. Expected a valid number value, but received "${f}".`)}};e.getBigInt=o,e.number={isDynamic:!1,isType(f){return d.test(f)},getByteLength(){return 32},encode({type:f,buffer:r,value:i,packed:l}){const h=(0,e.getBigInt)(i);if((0,e.assertNumberLength)(h,f),(0,e.isSigned)(f)){if(l){const b=(0,e.getLength)(f)/8;return(0,t.concatBytes)([r,(0,t.signedBigIntToBytes)(h,b)])}return(0,t.concatBytes)([r,(0,s.padStart)((0,t.signedBigIntToBytes)(h,32))])}if(l){const b=(0,e.getLength)(f)/8;return(0,t.concatBytes)([r,(0,s.padStart)((0,t.bigIntToBytes)(h),b)])}return(0,t.concatBytes)([r,(0,s.padStart)((0,t.bigIntToBytes)(h))])},decode({type:f,value:r}){const i=r.subarray(0,32);if((0,e.isSigned)(f)){const h=(0,t.bytesToSignedBigInt)(i);return(0,e.assertNumberLength)(h,f),h}const l=(0,t.bytesToBigInt)(i);return(0,e.assertNumberLength)(l,f),l}}})(on)),on}var Ci;function Oc(){return Ci||(Ci=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.bool=e.getBooleanValue=void 0;const t=Pe(),n=Ee(),s=Oe(),d=No(),c=(0,t.coerce)((0,t.boolean)(),(0,t.union)([(0,t.literal)("true"),(0,t.literal)("false")]),a=>a==="true"),u=a=>{try{return(0,t.create)(a,c)?BigInt(1):BigInt(0)}catch{throw new s.ParserError(`Invalid boolean value. Expected a boolean literal, or the string "true" or "false", but received "${a}".`)}};e.getBooleanValue=u,e.bool={isDynamic:!1,isType:a=>a==="bool",getByteLength(){return 32},encode({buffer:a,value:o,packed:f,tight:r}){const i=(0,e.getBooleanValue)(o);return f?(0,n.concatBytes)([a,(0,n.bigIntToBytes)(i)]):d.number.encode({type:"uint256",buffer:a,value:i,packed:f,tight:r})},decode(a){return d.number.decode({...a,type:"uint256"})===BigInt(1)}}})(sn)),sn}var ut={},ji;function Mo(){if(ji)return ut;ji=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.bytes=void 0;const e=Ee(),t=nt();return ut.bytes={isDynamic:!0,isType:n=>n==="bytes",getByteLength(){return 32},encode({buffer:n,value:s,packed:d}){const c=(0,e.createBytes)(s);if(d)return(0,e.concatBytes)([n,c]);const u=Math.ceil(c.byteLength/32)*32;return(0,e.concatBytes)([n,(0,t.padStart)((0,e.numberToBytes)(c.byteLength)),(0,t.padEnd)(c,u)])},decode({value:n}){const s=n.subarray(0,32),d=(0,e.bytesToNumber)(s);return n.slice(32,32+d)}},ut}var an={},Pi;function kc(){return Pi||(Pi=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fn=e.getFunction=void 0;const t=Pe(),n=Ee(),s=Oe(),d=Hn(),c=(0,t.coerce)((0,t.object)({address:n.StrictHexStruct,selector:n.StrictHexStruct}),(0,t.union)([n.StrictHexStruct,(0,t.instance)(Uint8Array)]),a=>{const o=(0,n.createBytes)(a);return(0,n.assert)(o.length===24,new s.ParserError(`Invalid Solidity function. Expected function to be 24 bytes long, but received ${o.length} bytes.`)),{address:(0,n.bytesToHex)(o.subarray(0,20)),selector:(0,n.bytesToHex)(o.subarray(20,24))}}),u=a=>{const o=(0,t.create)(a,c);return(0,n.concatBytes)([(0,n.hexToBytes)(o.address),(0,n.hexToBytes)(o.selector)])};e.getFunction=u,e.fn={isDynamic:!1,isType:a=>a==="function",getByteLength(){return 32},encode({buffer:a,value:o,packed:f,tight:r}){const i=(0,e.getFunction)(o);return d.fixedBytes.encode({type:"bytes24",buffer:a,value:i,packed:f,tight:r})},decode({value:a}){return{address:(0,n.bytesToHex)(a.slice(0,20)),selector:(0,n.bytesToHex)(a.slice(20,24))}}}})(an)),an}var cn={},Oi;function xc(){return Oi||(Oi=1,Object.defineProperty(cn,"__esModule",{value:!0})),cn}var lt={},ki;function Bc(){if(ki)return lt;ki=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.string=void 0;const e=Ee(),t=Mo();return lt.string={isDynamic:!0,isType:n=>n==="string",getByteLength(){return 32},encode({buffer:n,value:s,packed:d,tight:c}){return t.bytes.encode({type:"bytes",buffer:n,value:(0,e.stringToBytes)(s),packed:d,tight:c})},decode(n){return(0,e.bytesToString)(t.bytes.decode(n))}},lt}var xi;function Lc(){return xi||(xi=1,(function(e){var t=We&&We.__createBinding||(Object.create?(function(s,d,c,u){u===void 0&&(u=c);var a=Object.getOwnPropertyDescriptor(d,c);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[c]}}),Object.defineProperty(s,u,a)}):(function(s,d,c,u){u===void 0&&(u=c),s[u]=d[c]})),n=We&&We.__exportStar||function(s,d){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(d,c)&&t(d,s,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(jc(),e),n(Pc(),e),n(Oc(),e),n(Mo(),e),n(Hn(),e),n(kc(),e),n(No(),e),n(xc(),e),n(Bc(),e),n(Lo(),e)})(We)),We}var Bi;function Dn(){return Bi||(Bi=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.unpack=e.pack=e.isDynamicParser=e.getParser=void 0;const t=Ee(),n=Oe(),s=Tc(),d=Lc(),c=nt(),u=r=>{const i={address:d.address,array:d.array,bool:d.bool,bytes:d.bytes,fixedBytes:d.fixedBytes,function:d.fn,number:d.number,string:d.string,tuple:d.tuple},l=i[r];if(l)return l;const h=Object.values(i).find(b=>b.isType(r));if(h)return h;throw new n.ParserError(`The type "${r}" is not supported.`)};e.getParser=u;const a=(r,i)=>{const{isDynamic:l}=r;return typeof l=="function"?l(i):l};e.isDynamicParser=a;const o=({types:r,values:i,packed:l=!1,tight:h=!1,arrayPacked:b=!1,byteArray:S=new Uint8Array})=>{(0,t.assert)(r.length===i.length,new n.ParserError(`The number of types (${r.length}) does not match the number of values (${i.length}).`));const{staticBuffer:q,dynamicBuffer:M,pointers:J}=r.reduce(({staticBuffer:w,dynamicBuffer:j,pointers:H},k,B)=>{const p=(0,e.getParser)(k),R=i[B];if(l||b||!(0,e.isDynamicParser)(p,k))return{staticBuffer:p.encode({buffer:w,value:R,type:k,packed:l,tight:h}),dynamicBuffer:j,pointers:H};const X=(0,t.concatBytes)([w,new Uint8Array(32)]),I=p.encode({buffer:j,value:R,type:k,packed:l,tight:h});return{staticBuffer:X,dynamicBuffer:I,pointers:[...H,{position:w.length,pointer:j.length}]}},{staticBuffer:new Uint8Array,dynamicBuffer:new Uint8Array,pointers:[]});(0,t.assert)(!l&&!b||M.length===0,new n.ParserError("Invalid pack state."));const W=q.length,_=J.reduce((w,{pointer:j,position:H})=>{const k=(0,c.padStart)((0,t.numberToBytes)(W+j));return(0,c.set)(w,k,H)},q);return(0,t.concatBytes)([S,_,M])};e.pack=o;const f=(r,i)=>{const l=(0,s.iterate)(i);return r.map(h=>{const{value:{value:b,skip:S},done:q}=l.next();(0,t.assert)(!q,new n.ParserError(`The encoded value is invalid for the provided types. Reached end of buffer while attempting to parse "${h}".`));const M=(0,e.getParser)(h);if((0,e.isDynamicParser)(M,h)){const W=(0,t.bytesToNumber)(b.subarray(0,32)),_=i.subarray(W);return M.decode({type:h,value:_,skip:S})}return M.decode({type:h,value:b,skip:S})})};e.unpack=f})(Qr)),Qr}var Li;function Nc(){return Li||(Li=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeSingle=e.decode=e.encodePacked=e.encodeSingle=e.encode=void 0;const t=Ee(),n=Oe(),s=Dn(),d=(f,r,i,l)=>{try{return(0,s.pack)({types:f,values:r,packed:i,tight:l})}catch(h){throw h instanceof n.ParserError?new n.ParserError(`Unable to encode value: ${h.message}`,h):new n.ParserError(`An unexpected error occurred: ${(0,n.getErrorMessage)(h)}`,h)}};e.encode=d;const c=(f,r)=>(0,e.encode)([f],[r]);e.encodeSingle=c;const u=(f,r,i)=>(0,e.encode)(f,r,!0,i);e.encodePacked=u;const a=(f,r)=>{const i=(0,t.createBytes)(r);try{return(0,s.unpack)(f,i)}catch(l){throw l instanceof n.ParserError?new n.ParserError(`Unable to decode value: ${l.message}`,l):new n.ParserError(`An unexpected error occurred: ${(0,n.getErrorMessage)(l)}`,l)}};e.decode=a;const o=(f,r)=>{const i=(0,e.decode)([f],r);return(0,t.assert)(i.length===1,new n.ParserError("Decoded value array has unexpected length.")),i[0]};e.decodeSingle=o})(Xt)),Xt}var Ke={},un={},Ni;function Mc(){return Ni||(Ni=1,Object.defineProperty(un,"__esModule",{value:!0})),un}var Mi;function qc(){return Mi||(Mi=1,(function(e){var t=Ke&&Ke.__createBinding||(Object.create?(function(s,d,c,u){u===void 0&&(u=c);var a=Object.getOwnPropertyDescriptor(d,c);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[c]}}),Object.defineProperty(s,u,a)}):(function(s,d,c,u){u===void 0&&(u=c),s[u]=d[c]})),n=Ke&&Ke.__exportStar||function(s,d){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(d,c)&&t(d,s,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(Mc(),e)})(Ke)),Ke}var qi;function qo(){return qi||(qi=1,(function(e){var t=Je&&Je.__createBinding||(Object.create?(function(s,d,c,u){u===void 0&&(u=c);var a=Object.getOwnPropertyDescriptor(d,c);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[c]}}),Object.defineProperty(s,u,a)}):(function(s,d,c,u){u===void 0&&(u=c),s[u]=d[c]})),n=Je&&Je.__exportStar||function(s,d){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(d,c)&&t(d,s,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(Nc(),e),n(Oe(),e),n(qc(),e)})(Je)),Je}var $e={},ln={},te={},Hi;function Hc(){if(Hi)return te;Hi=1;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(te,"__esModule",{value:!0}),te.notImplemented=te.bitMask=void 0,te.isBytes=n,te.abytes=s,te.abool=d,te.numberToHexUnpadded=c,te.hexToNumber=u,te.bytesToHex=f,te.hexToBytes=l,te.bytesToNumberBE=h,te.bytesToNumberLE=b,te.numberToBytesBE=S,te.numberToBytesLE=q,te.numberToVarBytesBE=M,te.ensureBytes=J,te.concatBytes=W,te.equalBytes=_,te.utf8ToBytes=w,te.inRange=H,te.aInRange=k,te.bitLen=B,te.bitGet=p,te.bitSet=R,te.createHmacDrbg=N,te.validateObject=O,te.memoized=y;const e=BigInt(0),t=BigInt(1);function n(g){return g instanceof Uint8Array||ArrayBuffer.isView(g)&&g.constructor.name==="Uint8Array"}function s(g){if(!n(g))throw new Error("Uint8Array expected")}function d(g,$){if(typeof $!="boolean")throw new Error(g+" boolean expected, got "+$)}function c(g){const $=g.toString(16);return $.length&1?"0"+$:$}function u(g){if(typeof g!="string")throw new Error("hex string expected, got "+typeof g);return g===""?e:BigInt("0x"+g)}const a=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",o=Array.from({length:256},(g,$)=>$.toString(16).padStart(2,"0"));function f(g){if(s(g),a)return g.toHex();let $="";for(let P=0;P<g.length;P++)$+=o[g[P]];return $}const r={_0:48,_9:57,A:65,F:70,a:97,f:102};function i(g){if(g>=r._0&&g<=r._9)return g-r._0;if(g>=r.A&&g<=r.F)return g-(r.A-10);if(g>=r.a&&g<=r.f)return g-(r.a-10)}function l(g){if(typeof g!="string")throw new Error("hex string expected, got "+typeof g);if(a)return Uint8Array.fromHex(g);const $=g.length,P=$/2;if($%2)throw new Error("hex string expected, got unpadded hex of length "+$);const x=new Uint8Array(P);for(let m=0,v=0;m<P;m++,v+=2){const C=i(g.charCodeAt(v)),z=i(g.charCodeAt(v+1));if(C===void 0||z===void 0){const U=g[v]+g[v+1];throw new Error('hex string expected, got non-hex character "'+U+'" at index '+v)}x[m]=C*16+z}return x}function h(g){return u(f(g))}function b(g){return s(g),u(f(Uint8Array.from(g).reverse()))}function S(g,$){return l(g.toString(16).padStart($*2,"0"))}function q(g,$){return S(g,$).reverse()}function M(g){return l(c(g))}function J(g,$,P){let x;if(typeof $=="string")try{x=l($)}catch(v){throw new Error(g+" must be hex string or Uint8Array, cause: "+v)}else if(n($))x=Uint8Array.from($);else throw new Error(g+" must be hex string or Uint8Array");const m=x.length;if(typeof P=="number"&&m!==P)throw new Error(g+" of length "+P+" expected, got "+m);return x}function W(...g){let $=0;for(let x=0;x<g.length;x++){const m=g[x];s(m),$+=m.length}const P=new Uint8Array($);for(let x=0,m=0;x<g.length;x++){const v=g[x];P.set(v,m),m+=v.length}return P}function _(g,$){if(g.length!==$.length)return!1;let P=0;for(let x=0;x<g.length;x++)P|=g[x]^$[x];return P===0}function w(g){if(typeof g!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(g))}const j=g=>typeof g=="bigint"&&e<=g;function H(g,$,P){return j(g)&&j($)&&j(P)&&$<=g&&g<P}function k(g,$,P,x){if(!H($,P,x))throw new Error("expected valid "+g+": "+P+" <= n < "+x+", got "+$)}function B(g){let $;for($=0;g>e;g>>=t,$+=1);return $}function p(g,$){return g>>BigInt($)&t}function R(g,$,P){return g|(P?t:e)<<BigInt($)}const X=g=>(t<<BigInt(g))-t;te.bitMask=X;const I=g=>new Uint8Array(g),L=g=>Uint8Array.from(g);function N(g,$,P){if(typeof g!="number"||g<2)throw new Error("hashLen must be a number");if(typeof $!="number"||$<2)throw new Error("qByteLen must be a number");if(typeof P!="function")throw new Error("hmacFn must be a function");let x=I(g),m=I(g),v=0;const C=()=>{x.fill(1),m.fill(0),v=0},z=(...Q)=>P(m,x,...Q),U=(Q=I(0))=>{m=z(L([0]),Q),x=z(),Q.length!==0&&(m=z(L([1]),Q),x=z())},D=()=>{if(v++>=1e3)throw new Error("drbg: tried 1000 values");let Q=0;const ne=[];for(;Q<$;){x=z();const ie=x.slice();ne.push(ie),Q+=x.length}return W(...ne)};return(Q,ne)=>{C(),U(Q);let ie;for(;!(ie=ne(D()));)U();return C(),ie}}const G={bigint:g=>typeof g=="bigint",function:g=>typeof g=="function",boolean:g=>typeof g=="boolean",string:g=>typeof g=="string",stringOrUint8Array:g=>typeof g=="string"||n(g),isSafeInteger:g=>Number.isSafeInteger(g),array:g=>Array.isArray(g),field:(g,$)=>$.Fp.isValid(g),hash:g=>typeof g=="function"&&Number.isSafeInteger(g.outputLen)};function O(g,$,P={}){const x=(m,v,C)=>{const z=G[v];if(typeof z!="function")throw new Error("invalid validator function");const U=g[m];if(!(C&&U===void 0)&&!z(U,g))throw new Error("param "+String(m)+" is invalid. Expected "+v+", got "+U)};for(const[m,v]of Object.entries($))x(m,v,!1);for(const[m,v]of Object.entries(P))x(m,v,!0);return g}const T=()=>{throw new Error("not implemented")};te.notImplemented=T;function y(g){const $=new WeakMap;return(P,...x)=>{const m=$.get(P);if(m!==void 0)return m;const v=g(P,...x);return $.set(P,v),v}}return te}var Ae={},dn={},dt={},Di;function Dc(){return Di||(Di=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.crypto=void 0,dt.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),dt}var Ui;function xt(){return Ui||(Ui=1,(function(e){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.Hash=e.nextTick=e.swap32IfBE=e.byteSwapIfBE=e.swap8IfBE=e.isLE=void 0,e.isBytes=n,e.anumber=s,e.abytes=d,e.ahash=c,e.aexists=u,e.aoutput=a,e.u8=o,e.u32=f,e.clean=r,e.createView=i,e.rotr=l,e.rotl=h,e.byteSwap=b,e.byteSwap32=S,e.bytesToHex=J,e.hexToBytes=w,e.asyncLoop=H,e.utf8ToBytes=k,e.bytesToUtf8=B,e.toBytes=p,e.kdfInputToBytes=R,e.concatBytes=X,e.checkOpts=I,e.createHasher=N,e.createOptHasher=G,e.createXOFer=O,e.randomBytes=T;const t=Dc();function n(y){return y instanceof Uint8Array||ArrayBuffer.isView(y)&&y.constructor.name==="Uint8Array"}function s(y){if(!Number.isSafeInteger(y)||y<0)throw new Error("positive integer expected, got "+y)}function d(y,...g){if(!n(y))throw new Error("Uint8Array expected");if(g.length>0&&!g.includes(y.length))throw new Error("Uint8Array expected of length "+g+", got length="+y.length)}function c(y){if(typeof y!="function"||typeof y.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");s(y.outputLen),s(y.blockLen)}function u(y,g=!0){if(y.destroyed)throw new Error("Hash instance has been destroyed");if(g&&y.finished)throw new Error("Hash#digest() has already been called")}function a(y,g){d(y);const $=g.outputLen;if(y.length<$)throw new Error("digestInto() expects output buffer of length at least "+$)}function o(y){return new Uint8Array(y.buffer,y.byteOffset,y.byteLength)}function f(y){return new Uint32Array(y.buffer,y.byteOffset,Math.floor(y.byteLength/4))}function r(...y){for(let g=0;g<y.length;g++)y[g].fill(0)}function i(y){return new DataView(y.buffer,y.byteOffset,y.byteLength)}function l(y,g){return y<<32-g|y>>>g}function h(y,g){return y<<g|y>>>32-g>>>0}e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function b(y){return y<<24&4278190080|y<<8&16711680|y>>>8&65280|y>>>24&255}e.swap8IfBE=e.isLE?y=>y:y=>b(y),e.byteSwapIfBE=e.swap8IfBE;function S(y){for(let g=0;g<y.length;g++)y[g]=b(y[g]);return y}e.swap32IfBE=e.isLE?y=>y:S;const q=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",M=Array.from({length:256},(y,g)=>g.toString(16).padStart(2,"0"));function J(y){if(d(y),q)return y.toHex();let g="";for(let $=0;$<y.length;$++)g+=M[y[$]];return g}const W={_0:48,_9:57,A:65,F:70,a:97,f:102};function _(y){if(y>=W._0&&y<=W._9)return y-W._0;if(y>=W.A&&y<=W.F)return y-(W.A-10);if(y>=W.a&&y<=W.f)return y-(W.a-10)}function w(y){if(typeof y!="string")throw new Error("hex string expected, got "+typeof y);if(q)return Uint8Array.fromHex(y);const g=y.length,$=g/2;if(g%2)throw new Error("hex string expected, got unpadded hex of length "+g);const P=new Uint8Array($);for(let x=0,m=0;x<$;x++,m+=2){const v=_(y.charCodeAt(m)),C=_(y.charCodeAt(m+1));if(v===void 0||C===void 0){const z=y[m]+y[m+1];throw new Error('hex string expected, got non-hex character "'+z+'" at index '+m)}P[x]=v*16+C}return P}const j=async()=>{};e.nextTick=j;async function H(y,g,$){let P=Date.now();for(let x=0;x<y;x++){$(x);const m=Date.now()-P;m>=0&&m<g||(await(0,e.nextTick)(),P+=m)}}function k(y){if(typeof y!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(y))}function B(y){return new TextDecoder().decode(y)}function p(y){return typeof y=="string"&&(y=k(y)),d(y),y}function R(y){return typeof y=="string"&&(y=k(y)),d(y),y}function X(...y){let g=0;for(let P=0;P<y.length;P++){const x=y[P];d(x),g+=x.length}const $=new Uint8Array(g);for(let P=0,x=0;P<y.length;P++){const m=y[P];$.set(m,x),x+=m.length}return $}function I(y,g){if(g!==void 0&&{}.toString.call(g)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(y,g)}class L{}e.Hash=L;function N(y){const g=P=>y().update(p(P)).digest(),$=y();return g.outputLen=$.outputLen,g.blockLen=$.blockLen,g.create=()=>y(),g}function G(y){const g=(P,x)=>y(x).update(p(P)).digest(),$=y({});return g.outputLen=$.outputLen,g.blockLen=$.blockLen,g.create=P=>y(P),g}function O(y){const g=(P,x)=>y(x).update(p(P)).digest(),$=y({});return g.outputLen=$.outputLen,g.blockLen=$.blockLen,g.create=P=>y(P),g}e.wrapConstructor=N,e.wrapConstructorWithOpts=G,e.wrapXOFConstructorWithOpts=O;function T(y=32){if(t.crypto&&typeof t.crypto.getRandomValues=="function")return t.crypto.getRandomValues(new Uint8Array(y));if(t.crypto&&typeof t.crypto.randomBytes=="function")return Uint8Array.from(t.crypto.randomBytes(y));throw new Error("crypto.getRandomValues must be defined")}})(dn)),dn}var Vi;function Uc(){if(Vi)return Ae;Vi=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.aoutput=Ae.anumber=Ae.aexists=Ae.abytes=void 0;const e=xt();return Ae.abytes=e.abytes,Ae.aexists=e.aexists,Ae.anumber=e.anumber,Ae.aoutput=e.aoutput,Ae}var Fi;function Ho(){return Fi||(Fi=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.assertBytes=e.assertBool=e.utf8ToBytes=e.toHex=e.createView=e.concatBytes=e.bytesToHex=void 0,e.bytesToUtf8=c,e.hexToBytes=u,e.equalsBytes=a,e.wrapHash=o;const t=Hc();Object.defineProperty(e,"assertBool",{enumerable:!0,get:function(){return t.abool}});const n=Uc();Object.defineProperty(e,"assertBytes",{enumerable:!0,get:function(){return n.abytes}});const s=xt();var d=xt();Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return d.bytesToHex}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return d.concatBytes}}),Object.defineProperty(e,"createView",{enumerable:!0,get:function(){return d.createView}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return d.bytesToHex}}),Object.defineProperty(e,"utf8ToBytes",{enumerable:!0,get:function(){return d.utf8ToBytes}});function c(f){if(!(f instanceof Uint8Array))throw new TypeError(`bytesToUtf8 expected Uint8Array, got ${typeof f}`);return new TextDecoder().decode(f)}function u(f){const r=f.startsWith("0x")?f.substring(2):f;return(0,s.hexToBytes)(r)}function a(f,r){if(f.length!==r.length)return!1;for(let i=0;i<f.length;i++)if(f[i]!==r[i])return!1;return!0}function o(f){return r=>((0,n.abytes)(r),f(r))}})(ln)),ln}var zi;function $t(){if(zi)return $e;zi=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.compare=$e.concat=$e.toHex=$e.toBytes=void 0;const e=Ho();function t(c){return c instanceof Uint8Array?c:typeof c=="string"?(0,e.hexToBytes)(c):new Uint8Array(c)}$e.toBytes=t;function n(c){return typeof c=="string"?((0,e.hexToBytes)(c),c.replace(/^(0x)?/,"0x")):c instanceof Uint8Array?"0x"+(0,e.bytesToHex)(c):"0x"+(0,e.bytesToHex)(new Uint8Array(c))}$e.toHex=n;function s(c){return(0,e.concatBytes)(...c.map(t))}$e.concat=s;function d(c,u){const a=BigInt(n(c))-BigInt(n(u));return a>0?1:a<0?-1:0}return $e.compare=d,$e}var ge={},Me={},Te={},se={},Z={},Ji;function Vc(){if(Ji)return Z;Ji=1,Object.defineProperty(Z,"__esModule",{value:!0}),Z.toBig=Z.shrSL=Z.shrSH=Z.rotrSL=Z.rotrSH=Z.rotrBL=Z.rotrBH=Z.rotr32L=Z.rotr32H=Z.rotlSL=Z.rotlSH=Z.rotlBL=Z.rotlBH=Z.add5L=Z.add5H=Z.add4L=Z.add4H=Z.add3L=Z.add3H=void 0,Z.add=M,Z.fromBig=n,Z.split=s;const e=BigInt(2**32-1),t=BigInt(32);function n(B,p=!1){return p?{h:Number(B&e),l:Number(B>>t&e)}:{h:Number(B>>t&e)|0,l:Number(B&e)|0}}function s(B,p=!1){const R=B.length;let X=new Uint32Array(R),I=new Uint32Array(R);for(let L=0;L<R;L++){const{h:N,l:G}=n(B[L],p);[X[L],I[L]]=[N,G]}return[X,I]}const d=(B,p)=>BigInt(B>>>0)<<t|BigInt(p>>>0);Z.toBig=d;const c=(B,p,R)=>B>>>R;Z.shrSH=c;const u=(B,p,R)=>B<<32-R|p>>>R;Z.shrSL=u;const a=(B,p,R)=>B>>>R|p<<32-R;Z.rotrSH=a;const o=(B,p,R)=>B<<32-R|p>>>R;Z.rotrSL=o;const f=(B,p,R)=>B<<64-R|p>>>R-32;Z.rotrBH=f;const r=(B,p,R)=>B>>>R-32|p<<64-R;Z.rotrBL=r;const i=(B,p)=>p;Z.rotr32H=i;const l=(B,p)=>B;Z.rotr32L=l;const h=(B,p,R)=>B<<R|p>>>32-R;Z.rotlSH=h;const b=(B,p,R)=>p<<R|B>>>32-R;Z.rotlSL=b;const S=(B,p,R)=>p<<R-32|B>>>64-R;Z.rotlBH=S;const q=(B,p,R)=>B<<R-32|p>>>64-R;Z.rotlBL=q;function M(B,p,R,X){const I=(p>>>0)+(X>>>0);return{h:B+R+(I/2**32|0)|0,l:I|0}}const J=(B,p,R)=>(B>>>0)+(p>>>0)+(R>>>0);Z.add3L=J;const W=(B,p,R,X)=>p+R+X+(B/2**32|0)|0;Z.add3H=W;const _=(B,p,R,X)=>(B>>>0)+(p>>>0)+(R>>>0)+(X>>>0);Z.add4L=_;const w=(B,p,R,X,I)=>p+R+X+I+(B/2**32|0)|0;Z.add4H=w;const j=(B,p,R,X,I)=>(B>>>0)+(p>>>0)+(R>>>0)+(X>>>0)+(I>>>0);Z.add5L=j;const H=(B,p,R,X,I,L)=>p+R+X+I+L+(B/2**32|0)|0;Z.add5H=H;const k={fromBig:n,split:s,toBig:d,shrSH:c,shrSL:u,rotrSH:a,rotrSL:o,rotrBH:f,rotrBL:r,rotr32H:i,rotr32L:l,rotlSH:h,rotlSL:b,rotlBH:S,rotlBL:q,add:M,add3L:J,add3H:W,add4L:_,add4H:w,add5H:H,add5L:j};return Z.default=k,Z}var Gi;function Fc(){if(Gi)return se;Gi=1,Object.defineProperty(se,"__esModule",{value:!0}),se.shake256=se.shake128=se.keccak_512=se.keccak_384=se.keccak_256=se.keccak_224=se.sha3_512=se.sha3_384=se.sha3_256=se.sha3_224=se.Keccak=void 0,se.keccakP=q;const e=Vc(),t=xt(),n=BigInt(0),s=BigInt(1),d=BigInt(2),c=BigInt(7),u=BigInt(256),a=BigInt(113),o=[],f=[],r=[];for(let _=0,w=s,j=1,H=0;_<24;_++){[j,H]=[H,(2*j+3*H)%5],o.push(2*(5*H+j)),f.push((_+1)*(_+2)/2%64);let k=n;for(let B=0;B<7;B++)w=(w<<s^(w>>c)*a)%u,w&d&&(k^=s<<(s<<BigInt(B))-s);r.push(k)}const i=(0,e.split)(r,!0),l=i[0],h=i[1],b=(_,w,j)=>j>32?(0,e.rotlBH)(_,w,j):(0,e.rotlSH)(_,w,j),S=(_,w,j)=>j>32?(0,e.rotlBL)(_,w,j):(0,e.rotlSL)(_,w,j);function q(_,w=24){const j=new Uint32Array(10);for(let H=24-w;H<24;H++){for(let p=0;p<10;p++)j[p]=_[p]^_[p+10]^_[p+20]^_[p+30]^_[p+40];for(let p=0;p<10;p+=2){const R=(p+8)%10,X=(p+2)%10,I=j[X],L=j[X+1],N=b(I,L,1)^j[R],G=S(I,L,1)^j[R+1];for(let O=0;O<50;O+=10)_[p+O]^=N,_[p+O+1]^=G}let k=_[2],B=_[3];for(let p=0;p<24;p++){const R=f[p],X=b(k,B,R),I=S(k,B,R),L=o[p];k=_[L],B=_[L+1],_[L]=X,_[L+1]=I}for(let p=0;p<50;p+=10){for(let R=0;R<10;R++)j[R]=_[p+R];for(let R=0;R<10;R++)_[p+R]^=~j[(R+2)%10]&j[(R+4)%10]}_[0]^=l[H],_[1]^=h[H]}(0,t.clean)(j)}class M extends t.Hash{constructor(w,j,H,k=!1,B=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=w,this.suffix=j,this.outputLen=H,this.enableXOF=k,this.rounds=B,(0,t.anumber)(H),!(0<w&&w<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,t.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,t.swap32IfBE)(this.state32),q(this.state32,this.rounds),(0,t.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(w){(0,t.aexists)(this),w=(0,t.toBytes)(w),(0,t.abytes)(w);const{blockLen:j,state:H}=this,k=w.length;for(let B=0;B<k;){const p=Math.min(j-this.pos,k-B);for(let R=0;R<p;R++)H[this.pos++]^=w[B++];this.pos===j&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:w,suffix:j,pos:H,blockLen:k}=this;w[H]^=j,(j&128)!==0&&H===k-1&&this.keccak(),w[k-1]^=128,this.keccak()}writeInto(w){(0,t.aexists)(this,!1),(0,t.abytes)(w),this.finish();const j=this.state,{blockLen:H}=this;for(let k=0,B=w.length;k<B;){this.posOut>=H&&this.keccak();const p=Math.min(H-this.posOut,B-k);w.set(j.subarray(this.posOut,this.posOut+p),k),this.posOut+=p,k+=p}return w}xofInto(w){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(w)}xof(w){return(0,t.anumber)(w),this.xofInto(new Uint8Array(w))}digestInto(w){if((0,t.aoutput)(w,this),this.finished)throw new Error("digest() was already called");return this.writeInto(w),this.destroy(),w}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,t.clean)(this.state)}_cloneInto(w){const{blockLen:j,suffix:H,outputLen:k,rounds:B,enableXOF:p}=this;return w||(w=new M(j,H,k,p,B)),w.state32.set(this.state32),w.pos=this.pos,w.posOut=this.posOut,w.finished=this.finished,w.rounds=B,w.suffix=H,w.outputLen=k,w.enableXOF=p,w.destroyed=this.destroyed,w}}se.Keccak=M;const J=(_,w,j)=>(0,t.createHasher)(()=>new M(w,_,j));se.sha3_224=J(6,144,224/8),se.sha3_256=J(6,136,256/8),se.sha3_384=J(6,104,384/8),se.sha3_512=J(6,72,512/8),se.keccak_224=J(1,144,224/8),se.keccak_256=J(1,136,256/8),se.keccak_384=J(1,104,384/8),se.keccak_512=J(1,72,512/8);const W=(_,w,j)=>(0,t.createXOFer)((H={})=>new M(w,_,H.dkLen===void 0?j:H.dkLen,!0));return se.shake128=W(31,168,128/8),se.shake256=W(31,136,256/8),se}var Xi;function zc(){if(Xi)return Te;Xi=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.keccak512=Te.keccak384=Te.keccak256=Te.keccak224=void 0;const e=Fc(),t=Ho();return Te.keccak224=(0,t.wrapHash)(e.keccak_224),Te.keccak256=(()=>{const n=(0,t.wrapHash)(e.keccak_256);return n.create=e.keccak_256.create,n})(),Te.keccak384=(0,t.wrapHash)(e.keccak_384),Te.keccak512=(0,t.wrapHash)(e.keccak_512),Te}var Wi;function Do(){if(Wi)return Me;Wi=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.standardNodeHash=Me.standardLeafHash=Me.keccak256=void 0;const e=qo(),t=zc(),n=$t();function s(u){return(0,n.toHex)((0,t.keccak256)((0,n.toBytes)(u)))}Me.keccak256=s;function d(u,a){return s(s((0,e.encode)(u,a)))}Me.standardLeafHash=d;function c(u,a){return s((0,n.concat)([u,a].sort(n.compare)))}return Me.standardNodeHash=c,Me}var ve={},Yi;function Vt(){if(Yi)return ve;Yi=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.invariant=ve.validateArgument=ve.InvalidArgumentError=ve.InvariantError=ve.throwError=void 0;function e(c){throw new Error(c)}ve.throwError=e;class t extends Error{constructor(u){super(u),this.name="InvariantError"}}ve.InvariantError=t;class n extends Error{constructor(u){super(u),this.name="InvalidArgumentError"}}ve.InvalidArgumentError=n;function s(c,u){if(!c)throw new n(u)}ve.validateArgument=s;function d(c,u){if(!c)throw new t(u)}return ve.invariant=d,ve}var Ki;function Un(){if(Ki)return ge;Ki=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.renderMerkleTree=ge.isValidMerkleTree=ge.processMultiProof=ge.getMultiProof=ge.processProof=ge.getProof=ge.makeMerkleTree=void 0;const e=$t(),t=Do(),n=Vt(),s=_=>2*_+1,d=_=>2*_+2,c=_=>_>0?Math.floor((_-1)/2):(0,n.throwError)("Root has no parent"),u=_=>_>0?_-(-1)**(_%2):(0,n.throwError)("Root has no siblings"),a=(_,w)=>w>=0&&w<_.length,o=(_,w)=>a(_,s(w)),f=(_,w)=>a(_,w)&&!o(_,w),r=_=>(0,e.toBytes)(_).length===32,i=(_,w)=>void(f(_,w)||(0,n.throwError)("Index is not a leaf")),l=_=>void(r(_)||(0,n.throwError)("Merkle tree nodes must be Uint8Array of length 32"));function h(_,w=t.standardNodeHash){_.forEach(l),(0,n.validateArgument)(_.length!==0,"Expected non-zero number of leaves");const j=new Array(2*_.length-1);for(const[H,k]of _.entries())j[j.length-1-H]=(0,e.toHex)(k);for(let H=j.length-1-_.length;H>=0;H--)j[H]=w(j[s(H)],j[d(H)]);return j}ge.makeMerkleTree=h;function b(_,w){i(_,w);const j=[];for(;w>0;)j.push((0,e.toHex)(_[u(w)])),w=c(w);return j}ge.getProof=b;function S(_,w,j=t.standardNodeHash){return l(_),w.forEach(l),(0,e.toHex)(w.reduce(j,_))}ge.processProof=S;function q(_,w){w.forEach(B=>i(_,B)),w.sort((B,p)=>p-B),(0,n.validateArgument)(w.slice(1).every((B,p)=>B!==w[p]),"Cannot prove duplicated index");const j=Array.from(w),H=[],k=[];for(;j.length>0&&j[0]>0;){const B=j.shift(),p=u(B),R=c(B);p===j[0]?(k.push(!0),j.shift()):(k.push(!1),H.push((0,e.toHex)(_[p]))),j.push(R)}return w.length===0&&H.push((0,e.toHex)(_[0])),{leaves:w.map(B=>(0,e.toHex)(_[B])),proof:H,proofFlags:k}}ge.getMultiProof=q;function M(_,w=t.standardNodeHash){_.leaves.forEach(l),_.proof.forEach(l),(0,n.validateArgument)(_.proof.length>=_.proofFlags.filter(k=>!k).length,"Invalid multiproof format"),(0,n.validateArgument)(_.leaves.length+_.proof.length===_.proofFlags.length+1,"Provided leaves and multiproof are not compatible");const j=Array.from(_.leaves),H=Array.from(_.proof);for(const k of _.proofFlags){const B=j.shift(),p=k?j.shift():H.shift();(0,n.invariant)(B!==void 0&&p!==void 0),j.push(w(B,p))}return(0,n.invariant)(j.length+H.length===1),(0,e.toHex)(j.pop()??H.shift())}ge.processMultiProof=M;function J(_,w=t.standardNodeHash){for(const[j,H]of _.entries()){if(!r(H))return!1;const k=s(j),B=d(j);if(B>=_.length){if(k<_.length)return!1}else if((0,e.compare)(H,w(_[k],_[B])))return!1}return _.length>0}ge.isValidMerkleTree=J;function W(_){(0,n.validateArgument)(_.length!==0,"Expected non-zero number of nodes");const w=[[0,[]]],j=[];for(;w.length>0;){const[H,k]=w.pop();j.push(k.slice(0,-1).map(B=>[" ","│ "][B]).join("")+k.slice(-1).map(B=>["└─ ","├─ "][B]).join("")+H+") "+(0,e.toHex)(_[H])),d(H)<_.length&&(w.push([d(H),k.concat(0)]),w.push([s(H),k.concat(1)]))}return j.join(`
4
4
  `)}return ge.renderMerkleTree=W,ge}var ft={},ht={},Zi;function Jc(){return Zi||(Zi=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.defaultOptions=void 0,ht.defaultOptions={sortLeaves:!0}),ht}var Qi;function Uo(){if(Qi)return ft;Qi=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.MerkleTreeImpl=void 0;const e=$t(),t=Un(),n=Jc(),s=Vt();class d{constructor(u,a,o,f){this.tree=u,this.values=a,this.leafHash=o,this.nodeHash=f,(0,s.validateArgument)(a.every(({value:r})=>typeof r!="number"),"Leaf values cannot be numbers"),this.hashLookup=Object.fromEntries(a.map(({treeIndex:r},i)=>[u[r],i]))}static prepare(u,a={},o,f){const r=a.sortLeaves??n.defaultOptions.sortLeaves,i=u.map((b,S)=>({value:b,valueIndex:S,hash:o(b)}));r&&i.sort((b,S)=>(0,e.compare)(b.hash,S.hash));const l=(0,t.makeMerkleTree)(i.map(b=>b.hash),f),h=u.map(b=>({value:b,treeIndex:0}));for(const[b,{valueIndex:S}]of i.entries())h[S].treeIndex=l.length-b-1;return[l,h]}get root(){return this.tree[0]}get length(){return this.values.length}at(u){var a;return(a=this.values.at(u))==null?void 0:a.value}render(){return(0,t.renderMerkleTree)(this.tree)}*entries(){for(const[u,{value:a}]of this.values.entries())yield[u,a]}validate(){this.values.forEach((u,a)=>this._validateValueAt(a)),(0,s.invariant)((0,t.isValidMerkleTree)(this.tree,this.nodeHash),"Merkle tree is invalid")}leafLookup(u){const a=this.hashLookup[this.leafHash(u)];return(0,s.validateArgument)(typeof a<"u","Leaf is not in tree"),a}getProof(u){const a=typeof u=="number"?u:this.leafLookup(u);this._validateValueAt(a);const{treeIndex:o}=this.values[a],f=(0,t.getProof)(this.tree,o);return(0,s.invariant)(this._verify(this.tree[o],f),"Unable to prove value"),f}getMultiProof(u){const a=u.map(r=>typeof r=="number"?r:this.leafLookup(r));for(const r of a)this._validateValueAt(r);const o=a.map(r=>this.values[r].treeIndex),f=(0,t.getMultiProof)(this.tree,o);return(0,s.invariant)(this._verifyMultiProof(f),"Unable to prove values"),{leaves:f.leaves.map(r=>this.values[this.hashLookup[r]].value),proof:f.proof,proofFlags:f.proofFlags}}verify(u,a){return this._verify(this._leafHash(u),a)}verifyMultiProof(u){return this._verifyMultiProof({leaves:u.leaves.map(a=>this._leafHash(a)),proof:u.proof,proofFlags:u.proofFlags})}_validateValueAt(u){const a=this.values[u];(0,s.validateArgument)(a!==void 0,"Index out of bounds"),(0,s.invariant)(this.tree[a.treeIndex]===this.leafHash(a.value),"Merkle tree does not contain the expected value")}_leafHash(u){if(typeof u=="number"){const a=this.values[u];(0,s.validateArgument)(a!==void 0,"Index out of bounds"),u=a.value}return this.leafHash(u)}_verify(u,a){return this.root===(0,t.processProof)(u,a,this.nodeHash)}_verifyMultiProof(u){return this.root===(0,t.processMultiProof)(u,this.nodeHash)}}return ft.MerkleTreeImpl=d,ft}var eo;function Gc(){if(eo)return ze;eo=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.SimpleMerkleTree=ze.formatLeaf=void 0;const e=qo(),t=$t(),n=Un(),s=Uo(),d=Vt();function c(a){return(0,t.toHex)((0,e.encode)(["bytes32"],[a]))}ze.formatLeaf=c;class u extends s.MerkleTreeImpl{static of(o,f={}){const[r,i]=s.MerkleTreeImpl.prepare(o,f,c,f.nodeHash);return new u(r,i,c,f.nodeHash)}static load(o,f){(0,d.validateArgument)(o.format==="simple-v1",`Unknown format '${o.format}'`),(0,d.validateArgument)(f==null!=(o.hash=="custom"),f?"Data does not expect a custom node hashing function":"Data expects a custom node hashing function");const r=new u(o.tree,o.values,c,f);return r.validate(),r}static verify(o,f,r,i){return(0,t.toHex)(o)===(0,n.processProof)(c(f),r,i)}static verifyMultiProof(o,f,r){return(0,t.toHex)(o)===(0,n.processMultiProof)(f,r)}dump(){return{format:"simple-v1",tree:this.tree,values:this.values.map(({value:o,treeIndex:f})=>({value:(0,t.toHex)(o),treeIndex:f})),...this.nodeHash?{hash:"custom"}:{}}}}return ze.SimpleMerkleTree=u,ze}var pt={},to;function Xc(){if(to)return pt;to=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.StandardMerkleTree=void 0;const e=$t(),t=Un(),n=Uo(),s=Do(),d=Vt();class c extends n.MerkleTreeImpl{constructor(a,o,f){super(a,o,r=>(0,s.standardLeafHash)(f,r)),this.tree=a,this.values=o,this.leafEncoding=f}static of(a,o,f={}){const[r,i]=n.MerkleTreeImpl.prepare(a,f,l=>(0,s.standardLeafHash)(o,l));return new c(r,i,o)}static load(a){(0,d.validateArgument)(a.format==="standard-v1",`Unknown format '${a.format}'`),(0,d.validateArgument)(a.leafEncoding!==void 0,"Expected leaf encoding");const o=new c(a.tree,a.values,a.leafEncoding);return o.validate(),o}static verify(a,o,f,r){return(0,e.toHex)(a)===(0,t.processProof)((0,s.standardLeafHash)(o,f),r)}static verifyMultiProof(a,o,f){return(0,e.toHex)(a)===(0,t.processMultiProof)({leaves:f.leaves.map(r=>(0,s.standardLeafHash)(o,r)),proof:f.proof,proofFlags:f.proofFlags})}dump(){return{format:"standard-v1",leafEncoding:this.leafEncoding,tree:this.tree,values:this.values}}}return pt.StandardMerkleTree=c,pt}var ro;function Wc(){return ro||(ro=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StandardMerkleTree=e.SimpleMerkleTree=void 0;var t=Gc();Object.defineProperty(e,"SimpleMerkleTree",{enumerable:!0,get:function(){return t.SimpleMerkleTree}});var n=Xc();Object.defineProperty(e,"StandardMerkleTree",{enumerable:!0,get:function(){return n.StandardMerkleTree}})})(Gt)),Gt}var Yc=Wc();const Vo=1,Fo=5,zo=70,Kc=720*60*60*1e3,Jo=1e6;function Zc(e){try{const t=ea(e),n=vo(ta(t.address),e),s=Eo(wo.CollectionDiscountCoupon,e);return{couponManager:{address:n.address,name:n.name,version:n.version,abi:n.abi},collectionDiscountCoupon:s.address}}catch{return null}}function Qc(e,t){const n=t.toLowerCase();let s;try{s=Eo(wo.CollectionDiscountCoupon,e).address}catch{return null}for(const d of Qo)try{const c=vo(d,e);if(c.address.toLowerCase()===n)return{couponManager:{address:c.address,name:c.name,version:c.version,abi:c.abi},collectionDiscountCoupon:s}}catch{continue}return null}function Vn(e){return[...new Set(e.map(t=>t.toLowerCase()))]}function eu(e){const t=Vn(e);if(t.length===0)throw new He("collections");return Yc.StandardMerkleTree.of(t.map(n=>[n]),["address"]).root}function Go(e,t){return Sa.encode(["uint256","uint256","bytes32"],[Vo,e,t])}function tu(){return{Coupon:[{name:"checks",type:"Checks"},{name:"couponAddress",type:"address"},{name:"data",type:"bytes"}],Checks:Yn.Checks,ExternalCheck:Yn.ExternalCheck}}const Bt=e=>Math.floor(e/1e3);function ru(e,t){return{name:t.couponManager.name,version:t.couponManager.version,salt:St(_o(e),32),verifyingContract:t.couponManager.address}}function nu(e,t,n){return{checks:{uses:e.uses,expiration:Bt(e.expiration),effective:Bt(e.effective),salt:St(e.salt,32),contractSignatureIndex:e.contractSignatureIndex,signerSignatureIndex:e.signerSignatureIndex,allowedRoot:St(e.allowedRoot||"0x",32),externalChecks:[]},couponAddress:t,data:n}}class He extends Error{constructor(t){super(`Invalid sale: ${t}`),this.problem=t,this.name="SaleInputError"}}function Xo(e,t=Date.now()){if(Vn(e.collections).length===0)throw new He("collections");if(!Number.isInteger(e.discountPct)||e.discountPct<Fo||e.discountPct>zo)throw new He("pct");const n=e.startsAtMs??t;if(!(e.endsAtMs>t)||!(e.endsAtMs>n))throw new He("window");if(e.endsAtMs-Math.max(n,t)>Kc)throw new He("duration");if(e.uses!==void 0&&(!Number.isInteger(e.uses)||e.uses<1))throw new He("uses")}const su=["function contractSignatureIndex() view returns (uint256)","function signerSignatureIndex(address) view returns (uint256)"];async function iu(e,t){const n=new Io(e,su,wa()),[s,d]=await Promise.all([n.contractSignatureIndex(),n.signerSignatureIndex(t)]);return{contractSignatureIndex:s.toNumber(),signerSignatureIndex:d.toNumber()}}async function ou(e,t={}){const n=t.now?t.now():Date.now();Xo(e,n);const s=Zc(e.chainId);if(!s)throw new Error(`Coupons are not available on chain ${e.chainId}`);const d=(await e.signer.getAddress()).toLowerCase(),c=Vn(e.collections),u=await(t.readIndexes??iu)(s.couponManager.address,d),a={uses:e.uses??Jo,expiration:e.endsAtMs,effective:e.startsAtMs??n,salt:_o(va(32)),contractSignatureIndex:u.contractSignatureIndex,signerSignatureIndex:u.signerSignatureIndex,allowedRoot:"0x",externalChecks:[]},o=e.discountPct*1e4,f=Go(o,eu(c)),r=await e.signer._signTypedData(ru(e.chainId,s),tu(),nu(a,s.collectionDiscountCoupon,f));return{signer:d,chainId:e.chainId,network:ga.Network.MATIC,checks:a,couponAddress:s.collectionDiscountCoupon,discountType:Vo,discount:o,collections:c,signature:r}}async function au(e,t){const n=await Zo(`${Cn.marketplaceServerUrl}/v1/coupons`,{method:"POST",identity:t,metadata:{signer:"dcl:marketplace",intent:"dcl:create-coupon"},headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s=await n.json().catch(()=>({}));if(!n.ok||!s.ok||!s.data)throw new Error(s.message??`postCoupon ${n.status}`);return s.data}async function cu(e){var s;const t=await fetch(`${Cn.marketplaceServerUrl}/v1/coupons?signer=${e.toLowerCase()}`);if(!t.ok)throw(s=t.body)==null||s.cancel(),new Error(`fetchCreatorSales ${t.status}`);return(await t.json()).data??[]}function Qu(e){return e.checks.uses<Jo}function el(e,t=Date.now()){return e.status==="cancelled"||e.status==="revoked"||e.status==="exhausted"?e.status:e.checks.expiration<=t?"ended":e.checks.effective>t?"scheduled":"active"}const uu=(e,t,n)=>new Io(e,t,n);async function tl(e,t={}){const{sale:n,signer:s}=e;await Ko(s.provider,n.chainId);const d=Qc(n.chainId,n.couponManager);if(!d)throw new Error(`The sale's coupon manager ${n.couponManager} is not one this build knows on chain ${n.chainId}`);const c=(t.connect??uu)(d.couponManager.address,d.couponManager.abi,s),u={signature:n.signature,checks:{uses:n.checks.uses,expiration:Bt(n.checks.expiration),effective:Bt(n.checks.effective),salt:St(n.checks.salt,32),contractSignatureIndex:n.checks.contractSignatureIndex,signerSignatureIndex:n.checks.signerSignatureIndex,allowedRoot:St(n.checks.allowedRoot||"0x",32),allowedProof:[],externalChecks:[]},couponAddress:n.couponAddress,data:Go(n.discount,n.root),callerData:"0x"};return(await(await c.cancelSignature([u],Ea(n.chainId))).wait()).transactionHash}function fn(e){return new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(new Date(e))}const gt=Y.div`
@@ -681,4 +681,4 @@ caused by: `+To(s,t)):n},La=e=>To(e,new Set),Co=(e,t,n)=>{if(!(e instanceof Erro
681
681
  }
682
682
  }
683
683
  `;function po(e,t){return Math.max(1,Math.ceil(e*(100-(Number.isFinite(t)?t:0))/100))}const Lu=[10,20,30,50],go=[{key:"24h",hours:24},{key:"48h",hours:48},{key:"72h",hours:72},{key:"7d",hours:168}],vt=3600*1e3;function Ot(e){const t=new Date(e),n=s=>String(s).padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`}function mo(e){const t=Tn(e);return t===void 0?null:new Date(t)}const yo="creator-sale-calendar";function Tn(e){if(!e)return;const t=new Date(e).getTime();return Number.isNaN(t)?void 0:t}function kt(e){switch(e){case"pct":return F("creatorSale.errorPct");case"duration":return F("creatorSale.errorDuration");case"collections":return F("creatorSale.errorCollections");case"uses":return F("creatorSale.errorUses");default:return F("creatorSale.errorWindow")}}function Nu(e){return e%24===0&&e>=48?F("creatorSale.days",{count:e/24}):F("creatorSale.hours",{count:e})}function $n({id:e,open:t,chip:n,field:s}){return E.jsxs(Iu,{"data-open":t||void 0,"data-testid":e,children:[E.jsx(An,{"data-off":t||void 0,"aria-hidden":t||void 0,"data-testid":`${e}-chip`,children:n}),E.jsx(An,{"data-off":!t||void 0,"aria-hidden":!t||void 0,"data-testid":`${e}-field`,children:s})]})}function rl({session:e,collection:t,collections:n,onCreated:s,onClose:d,source:c,silent:u=!1}){const a=na(),o=Yo(),f=n??[],[r,i]=ue.useState(()=>t??(f.length===1?f[0]:null)),l=r??t??f[0],h=ue.useMemo(()=>l?[l.contractAddress]:[],[l]),[b,S]=ue.useState(()=>t||f.length===1?"form":"pick"),[q,M]=ue.useState(20),[J,W]=ue.useState("15"),[_,w]=ue.useState("72h"),[j,H]=ue.useState(()=>Ot(Date.now()+168*vt)),[k,B]=ue.useState("now"),[p,R]=ue.useState(()=>Ot(Date.now()+24*vt)),[X,I]=ue.useState(!1),[L,N]=ue.useState("50"),[G,O]=ue.useState(!1),[T,y]=ue.useState(!1),[g,$]=ue.useState(null),[P,x]=ue.useState(null),[m,v]=ue.useState(null),C=da(e);function z(V,me={}){u||ia(V,{source:c,...me})}const U=q==="custom"?Number(J):q,D=ue.useMemo(()=>{const V=Date.now(),me=k==="later"?Tn(p):void 0,Fe=go.find(Tt=>Tt.key===_),zt=Fe?(me??V)+Fe.hours*vt:Tn(j),xe=X?Number(L):void 0,At={collections:h,discountPct:U,startsAtMs:me,endsAtMs:zt??0,uses:xe};let Fn=null;try{Xo(At,V)}catch(Tt){Fn=Tt instanceof He?Tt.problem:"window"}return{...At,problem:Fn}},[h,U,_,j,k,p,X,L]),re=ue.useRef(!1);ue.useEffect(()=>{re.current||(re.current=!0,z("Shop Started Sale",{collections_available:t?1:f.length,preselected:!!t}))});function Q(V){if(!m){const me=ae.listed.length===0&&ae.classic.length>0;z("Shop Abandoned Sale",{last_step:me?"blocked":b,reason:V})}d()}function ne(){Q("closed")}const ie=ue.useMemo(()=>{const V=l.examplePriceCredits??100;return{price:V,sale:po(V,U)}},[l,U]),ae=ue.useMemo(()=>{const V=l.items.filter(xe=>xe.state==="discounted"),me=l.items.filter(xe=>xe.state==="classic"),Fe=l.items.filter(xe=>xe.state==="unlisted"),zt=V.reduce((xe,At)=>xe+At.remainingSupply,0);return{listed:V,classic:me,unlisted:Fe,supply:zt}},[l]);async function ce(){if(O(!0),x(null),D.problem){x(kt(D.problem));return}y(!0);try{$(C?F("creatorSale.starting"):F("creatorSale.confirm"));const V=await ou({signer:e.signer,chainId:Cn.chainId,collections:D.collections,discountPct:D.discountPct,startsAtMs:D.startsAtMs,endsAtMs:D.endsAtMs,uses:D.uses});$(F("creatorSale.finishing"));const me=await au(V,e.identity);$(null),v(me);const Fe=me.status==="scheduled";z("Shop Created Sale",{sale_id:me.id,collections:me.collections.length,discount_pct:D.discountPct,duration_h:Math.round((D.endsAtMs-(D.startsAtMs??Date.now()))/vt),scheduled:Fe,capped:D.uses!==void 0}),oa.success(Fe?F("creatorSale.toastScheduled"):F("creatorSale.toastLive")),s==null||s(me),a.invalidateQueries({queryKey:["creator-sales"]}),a.invalidateQueries({queryKey:["shop-items"]}),a.invalidateQueries({queryKey:["catalog-items"]}),a.invalidateQueries({queryKey:["overview-listings"]}),a.invalidateQueries({queryKey:["collection-sale-state"]})}catch(V){V instanceof He?x(kt(V.problem)):(aa(V,{flow:"creator_sale"}),z("Shop Sale Failed",{error_code:ca(V),step:"create"}),x(fa(V,F("creatorSale.errorGeneric")))),$(null)}finally{y(!1)}}function oe(){ne(),o(`/items/creator/${e.address}`)}if(m){const V=m.status==="scheduled";return E.jsx(gt,{onClick:ne,role:"presentation",children:E.jsxs(mt,{"data-testid":"creator-sale-success",onClick:me=>me.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":V?F("creatorSale.successScheduledTitle"):F("creatorSale.successTitle"),children:[E.jsxs(yt,{children:[E.jsx(bt,{children:V?F("creatorSale.successScheduledTitle"):F("creatorSale.successTitle")}),E.jsx(Et,{onClick:ne,"aria-label":F("creatorSale.done"),children:E.jsx(qe,{name:"close",className:"ico"})})]}),E.jsxs(vu,{children:[E.jsx(Su,{"aria-hidden":!0,children:E.jsx(qe,{name:"check",className:"ico"})}),E.jsx(Ru,{children:E.jsx("b",{children:F("creatorSale.successBody",{count:m.collections.length,pct:m.discount/1e4})})}),E.jsx(_u,{children:V?F("creatorSale.successStarts",{date:fn(m.checks.effective)}):E.jsxs(E.Fragment,{children:[F("creatorSale.successEnds")," ",E.jsx(So,{until:m.checks.expiration,testId:"creator-sale-countdown"})]})})]}),E.jsxs(gn,{children:[E.jsx(mn,{onClick:ne,children:F("creatorSale.done")}),E.jsx(yn,{onClick:oe,children:F("creatorSale.viewStore")})]})]})})}const be=V=>E.jsx("b",{children:V}),de=V=>E.jsxs(co,{children:[E.jsx(Jt,{className:"ccy-mark"}),V]}),ke=V=>E.jsxs(co,{children:[E.jsx(Eu,{src:Ro,alt:"","aria-hidden":!0}),V]}),Ue=D.uses!==void 0?Ze("creatorSale.reviewCap",{b:be,count:D.uses}):Ze("creatorSale.reviewNoCap",{b:be,count:ae.supply});if(b==="review")return E.jsx(gt,{onClick:T?void 0:ne,role:"presentation",children:E.jsxs(mt,{"data-testid":"creator-sale-review",onClick:V=>V.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":F("creatorSale.reviewTitle"),children:[E.jsxs(yt,{children:[E.jsx(bt,{children:F("creatorSale.reviewTitle")}),E.jsx(Et,{onClick:ne,disabled:T,"aria-label":F("creatorSale.cancel"),children:E.jsx(qe,{name:"close",className:"ico"})})]}),E.jsxs(Au,{children:[E.jsxs(bn,{"data-testid":"creator-sale-review-discount",children:[E.jsx(En,{children:F("creatorSale.discount")}),E.jsx(Tu,{"data-heat":Ct(U),"data-testid":"creator-sale-review-pct",children:F("creatorSale.offPct",{pct:U})})]}),E.jsxs(bn,{"data-testid":"creator-sale-review-starts",children:[E.jsx(En,{children:F("creatorSale.reviewStarts")}),E.jsx(lo,{children:D.startsAtMs?fn(D.startsAtMs):F("creatorSale.reviewStartsNow")}),D.startsAtMs?E.jsx(fo,{until:D.startsAtMs}):null]}),E.jsxs(bn,{"data-testid":"creator-sale-review-ends",children:[E.jsx(En,{children:F("creatorSale.reviewEnds")}),E.jsx(lo,{children:fn(D.endsAtMs)}),E.jsx(fo,{until:D.endsAtMs})]})]}),E.jsxs(wn,{children:[E.jsx(vn,{children:F("creatorSale.reviewOnSale",{count:ae.listed.length})}),E.jsx(Sn,{"data-testid":"creator-sale-review-items",children:ae.listed.map(V=>E.jsxs(Rn,{"data-testid":"creator-sale-review-item",children:[E.jsx(_n,{src:V.thumbnail,alt:""}),E.jsx(In,{"data-testid":"review-name",children:V.name}),E.jsxs(Cu,{children:[E.jsxs(ju,{"data-testid":"review-was",children:[E.jsx(Jt,{size:14}),zn(V.priceCredits)]}),E.jsxs(Pu,{"data-heat":Ct(U),"data-testid":"review-now",children:[E.jsx(Jt,{size:16}),zn(po(V.priceCredits,U))]})]})]},V.key))})]}),ae.classic.length>0?E.jsxs(wn,{children:[E.jsx(vn,{children:F("creatorSale.reviewClassic",{count:ae.classic.length})}),E.jsx(Sn,{"data-testid":"creator-sale-review-classic",children:ae.classic.map(V=>E.jsxs(Rn,{"data-muted":!0,children:[E.jsx(_n,{src:V.thumbnail,alt:""}),E.jsx(In,{children:V.name}),E.jsxs(ho,{children:[F("creatorSale.reviewClassicTag"),E.jsx(ha,{content:F("creatorSale.reviewClassicWhy"),children:E.jsx(Ou,{name:"info",role:"img","aria-label":F("creatorSale.reviewClassicWhy"),tabIndex:0,"data-testid":"creator-sale-classic-why"})})]})]},V.key))}),E.jsx(xu,{children:Ze("creatorSale.reviewClassicHint",{c:de})})]}):null,ae.unlisted.length>0?E.jsxs(wn,{children:[E.jsx(vn,{children:F("creatorSale.reviewUntouched",{count:ae.unlisted.length})}),E.jsx(Sn,{"data-testid":"creator-sale-review-untouched",children:ae.unlisted.map(V=>E.jsxs(Rn,{"data-muted":!0,children:[E.jsx(_n,{src:V.thumbnail,alt:""}),E.jsx(In,{children:V.name}),E.jsx(ho,{children:F("creatorSale.reviewNotListed")})]},V.key))})]}):null,E.jsx(ku,{children:Ue}),g?E.jsx(uo,{children:g}):null,E.jsx(Xn,{message:P,testId:"creator-sale-error"}),E.jsxs(gn,{children:[E.jsx(mn,{onClick:()=>{x(null),$(null),S("form")},disabled:T,"data-testid":"creator-sale-back",children:F("creatorSale.back")}),E.jsx(yn,{"data-testid":"creator-sale-submit",onClick:()=>void ce(),disabled:T,children:T?g:k==="later"?F("creatorSale.submitScheduled"):F("creatorSale.submit")})]})]})});const Ve=G&&D.problem?kt(D.problem):null,et=q==="custom",tt=_==="custom",Ft=k==="later";return b==="pick"?E.jsx(gt,{onClick:ne,role:"presentation",children:E.jsxs(mt,{"data-testid":"creator-sale-pick",onClick:V=>V.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":F("creatorSale.pickTitle"),children:[E.jsxs(yt,{children:[E.jsx(bt,{children:F("creatorSale.pickTitle")}),E.jsx(Et,{onClick:ne,"aria-label":F("creatorSale.cancel"),children:E.jsx(qe,{name:"close",className:"ico"})})]}),E.jsx(hn,{children:F("creatorSale.pickBody")}),E.jsx(fu,{children:f.map(V=>E.jsxs(hu,{type:"button",onClick:()=>{i(V),S("form")},"data-testid":"creator-sale-pick-row",children:[E.jsx(no,{children:E.jsx(Jn,{contractAddress:V.contractAddress})}),E.jsxs(pu,{children:[E.jsx(so,{children:V.name}),E.jsx(io,{children:F("creatorSale.collectionListed",{count:V.listedCount})})]}),E.jsx(pa,{className:"ico"})]},V.contractAddress))})]})}):ae.listed.length===0&&ae.classic.length>0?E.jsx(gt,{onClick:ne,role:"presentation",children:E.jsxs(mt,{"data-testid":"creator-sale-blocked",onClick:V=>V.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":F("creatorSale.title"),children:[E.jsxs(yt,{children:[E.jsx(bt,{children:F("creatorSale.title")}),E.jsx(Et,{onClick:ne,"aria-label":F("creatorSale.cancel"),children:E.jsx(qe,{name:"close",className:"ico"})})]}),E.jsx(hn,{children:Ze("creatorSale.blockedBody",{c:de,m:ke,count:ae.classic.length})}),E.jsxs(gn,{children:[E.jsx(mn,{onClick:ne,children:F("creatorSale.cancel")}),E.jsx(yn,{onClick:()=>{Q("update_prices"),o("/activity?section=listings")},children:F("creatorSale.blockedCta")})]})]})}):E.jsxs(gt,{onClick:T?void 0:ne,role:"presentation",children:[E.jsx(sa,{styles:Bu}),E.jsxs(mt,{"data-testid":"creator-sale-modal",onClick:V=>V.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":F("creatorSale.title"),children:[E.jsxs(yt,{children:[E.jsx(bt,{children:F("creatorSale.title")}),E.jsx(Et,{onClick:ne,disabled:T,"aria-label":F("creatorSale.cancel"),children:E.jsx(qe,{name:"close",className:"ico"})})]}),E.jsx(hn,{children:F("creatorSale.subtitle")}),E.jsxs(wt,{children:[E.jsx(Pt,{children:F("creatorSale.collection")}),E.jsx(lu,{"data-testid":"creator-sale-collections",children:E.jsxs(du,{"data-selected":!0,"data-readonly":!0,children:[E.jsx(no,{children:E.jsx(Jn,{contractAddress:l.contractAddress})}),E.jsxs(gu,{children:[E.jsx(so,{children:l.name}),E.jsx(io,{children:F("creatorSale.collectionListed",{count:l.listedCount})})]})]})})]}),E.jsxs(wt,{children:[E.jsx(Pt,{children:F("creatorSale.discount")}),E.jsxs(pn,{role:"group","aria-label":F("creatorSale.discount"),"data-testid":"creator-sale-discounts",children:[Lu.map(V=>E.jsx(rt,{type:"button","data-heat":Ct(V),"data-selected":q===V||void 0,"aria-pressed":q===V,disabled:T,onClick:()=>{O(!0),M(V)},children:F("creatorSale.offPct",{pct:V})},V)),E.jsx($n,{id:"creator-sale-custom-pct",open:et,chip:E.jsx(rt,{type:"button",tabIndex:et?-1:void 0,disabled:T,onClick:()=>{O(!0),M("custom")},children:F("creatorSale.customPct")}),field:E.jsxs(oo,{"data-heat":Ct(U),"aria-invalid":G&&D.problem==="pct"?!0:void 0,children:[E.jsx("input",{type:"number",min:Fo,max:zo,step:"1",inputMode:"numeric",value:J,disabled:T,tabIndex:et?void 0:-1,"aria-label":F("creatorSale.pctLabel"),onChange:V=>{O(!0),W(V.target.value)}}),E.jsx("span",{"aria-hidden":!0,children:"%"})]})})]})]}),E.jsxs(wt,{children:[E.jsx(Pt,{children:F("creatorSale.duration")}),E.jsxs(pn,{role:"group","aria-label":F("creatorSale.duration"),"data-testid":"creator-sale-durations",children:[go.map(V=>E.jsx(rt,{type:"button","data-selected":_===V.key||void 0,"aria-pressed":_===V.key,disabled:T,onClick:()=>{O(!0),w(V.key)},children:Nu(V.hours)},V.key)),E.jsx($n,{id:"creator-sale-custom-end",open:tt,chip:E.jsx(rt,{type:"button",tabIndex:tt?-1:void 0,disabled:T,onClick:()=>{O(!0),w("custom")},children:F("creatorSale.customEnd")}),field:E.jsx(ao,{children:E.jsx(Gn,{selected:mo(j),onChange:V=>{O(!0),H(V?Ot(V.getTime()):"")},minDate:new Date,showTimeSelect:!0,timeIntervals:30,dateFormat:"Pp",disabled:T,tabIndex:tt?void 0:-1,showPopperArrow:!1,portalId:yo,placeholderText:F("creatorSale.endLabel"),"aria-label":F("creatorSale.endLabel")})})})]})]}),E.jsxs(wt,{children:[E.jsx(Pt,{children:F("creatorSale.start")}),E.jsxs(pn,{role:"group","aria-label":F("creatorSale.start"),children:[E.jsx(rt,{type:"button","data-selected":k==="now"||void 0,"aria-pressed":k==="now",disabled:T,onClick:()=>B("now"),children:F("creatorSale.startNow")}),E.jsx($n,{id:"creator-sale-custom-start",open:Ft,chip:E.jsx(rt,{type:"button",tabIndex:Ft?-1:void 0,disabled:T,onClick:()=>B("later"),children:F("creatorSale.startLater")}),field:E.jsx(ao,{children:E.jsx(Gn,{selected:mo(p),onChange:V=>{O(!0),R(V?Ot(V.getTime()):"")},minDate:new Date,showTimeSelect:!0,timeIntervals:30,dateFormat:"Pp",disabled:T,tabIndex:Ft?void 0:-1,showPopperArrow:!1,portalId:yo,placeholderText:F("creatorSale.startLabel"),"aria-label":F("creatorSale.startLabel")})})})]})]}),E.jsx(wt,{children:E.jsxs(mu,{children:[E.jsxs(yu,{children:[E.jsx("input",{type:"checkbox",checked:X,disabled:T,"data-testid":"creator-sale-cap-toggle",onChange:V=>I(V.target.checked)}),E.jsx("span",{children:F("creatorSale.cap")})]}),E.jsx($u,{"data-open":X||void 0,"data-testid":"creator-sale-cap",children:E.jsx(An,{"data-off":!X||void 0,"aria-hidden":!X||void 0,children:E.jsx(oo,{children:E.jsx("input",{type:"number",min:"1",step:"1",inputMode:"numeric",value:L,disabled:T,tabIndex:X?void 0:-1,"aria-label":F("creatorSale.capLabel"),onChange:V=>{O(!0),N(V.target.value)}})})})})]})}),E.jsx(bu,{"data-testid":"creator-sale-preview",children:E.jsx("span",{children:ie.sale<ie.price?Ze("creatorSale.preview",{price:ie.price,sale:ie.sale,c:de}):Ze("creatorSale.previewNoChange",{price:ie.price,c:de})})}),g?E.jsx(uo,{children:g}):null,E.jsx(Xn,{message:P??Ve,testId:"creator-sale-error"}),E.jsx(wu,{"data-testid":"creator-sale-continue",onClick:()=>{O(!0),D.problem?x(kt(D.problem)):(x(null),S("review"),z("Shop Reviewed Sale",{discount_pct:D.discountPct,duration_h:Math.round((D.endsAtMs-(D.startsAtMs??Date.now()))/vt),scheduled:D.startsAtMs!==void 0,capped:D.uses!==void 0}))},disabled:T||G&&!!D.problem,children:F("creatorSale.review")})]})]})}function nl(e,t){const n=new Map;for(const s of e){if(s.remainingSupply<=0)continue;const d=t==null?void 0:t[`${s.contractAddress}-${s.blockchainItemId}`],c=d!=null&&d.isOnSale?d.manaWei?"classic":"discounted":"unlisted",u=c==="discounted",a=s.contractAddress.toLowerCase(),o=n.get(a)??{contractAddress:a,name:s.collectionName,listedCount:0,examplePriceCredits:null,items:[]};o.items.push({key:`${a}-${s.blockchainItemId}`,name:s.name,thumbnail:s.thumbnail,priceCredits:u&&d?d.priceCredits:null,state:c,remainingSupply:s.remainingSupply}),u&&d&&(o.listedCount+=1,o.examplePriceCredits=Math.max(o.examplePriceCredits??0,d.priceCredits)),n.set(a,o)}return[...n.values()].filter(s=>s.listedCount>0||s.items.some(d=>d.state==="classic"))}function sl(e,t=!0){return ua({queryKey:["creator-sales",e==null?void 0:e.toLowerCase()],queryFn:()=>cu(e),enabled:!!e&&t,staleTime:3e4,refetchInterval:6e4})}function il({count:e,to:t="/import",reason:n="stability",onDismiss:s,onCta:d,className:c}){return E.jsxs(Ra,{className:c,"data-testid":"mana-pricing-banner",children:[E.jsxs(_a,{children:[E.jsx(qe,{name:"refresh",size:24}),E.jsxs(Ia,{children:[Ze("manaPricingBanner.lead",{count:e,mana:u=>E.jsxs(E.Fragment,{children:[E.jsx(ja,{src:Ro,alt:"","aria-hidden":!0})," ",u]})})," ",E.jsx($a,{children:F("manaPricingBanner.accent")})," ",F(n==="discounts"?"manaPricingBanner.trailDiscounts":"manaPricingBanner.trail")]})]}),E.jsxs(Aa,{children:[E.jsx(Ta,{to:t,onClick:d,"data-testid":"mana-pricing-banner-cta",children:F("manaPricingBanner.cta")}),s?E.jsx(Ca,{type:"button",onClick:s,"aria-label":F("manaPricingBanner.dismiss"),"data-testid":"mana-pricing-banner-dismiss",children:E.jsx(qe,{name:"close",size:16})}):null]})]})}export{rl as C,il as M,tl as e,fn as f,Qu as i,el as l,nl as t,sl as u};
684
- //# sourceMappingURL=ManaPricingBanner-Bpt7PE5u.js.map
684
+ //# sourceMappingURL=ManaPricingBanner-CptM64_P.js.map
@@ -1,4 +1,4 @@
1
- import{a,s as t}from"./index-BJQicl8s.js";import{L as r}from"./react-4P5sGbEq.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new n.Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="d4760adb-c4fe-4ca2-a5bb-e3208318060f",n._sentryDebugIdIdentifier="sentry-dbid-d4760adb-c4fe-4ca2-a5bb-e3208318060f")}catch{}})();const{colors:e,font:l,media:i,radius:s}=a,c=t.div`
1
+ import{a,s as t}from"./index-CZdsG7uB.js";import{L as r}from"./react-Cw0C4LRR.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new n.Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="d4760adb-c4fe-4ca2-a5bb-e3208318060f",n._sentryDebugIdIdentifier="sentry-dbid-d4760adb-c4fe-4ca2-a5bb-e3208318060f")}catch{}})();const{colors:e,font:l,media:i,radius:s}=a,c=t.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  gap: 8px;
@@ -93,4 +93,4 @@ import{a,s as t}from"./index-BJQicl8s.js";import{L as r}from"./react-4P5sGbEq.js
93
93
  outline-offset: 2px;
94
94
  }
95
95
  `;export{b as A,x as B,w as C,y as D,u as M,h as R,c as S,g as T,m as a};
96
- //# sourceMappingURL=ManaPricingBanner.styles-DsEi0tgF.js.map
96
+ //# sourceMappingURL=ManaPricingBanner.styles-GA7vtF8H.js.map
@@ -1,4 +1,4 @@
1
- import{r as d,j as t,b as Wt,u as Dt}from"./react-4P5sGbEq.js";import{s as r,a,X as Ht,c9 as qe,t as n,ca as Gt,H as Q,O as Re,Y as Me,l as qt,Z as Yt,I as U,B as Qt,x as Ut,cb as Jt,bR as ie,aH as _e,w as ce,a0 as Zt,cc as Vt,aK as Xt,a2 as le,cd as es,a4 as de,ce as ts,a5 as ue,cf as ss,a1 as ns,z as os,c as Ye,bT as Fe,cg as as,ch as rs}from"./index-BJQicl8s.js";import{S as is,f as cs}from"./SaleCountdown-D75asuMy.js";import{l as ls,f as ds,i as us,e as ps,M as ms,u as hs,t as fs,C as gs}from"./ManaPricingBanner-Bpt7PE5u.js";import{f as xs}from"./errors-CGpVjZew.js";import{L as ys}from"./LoadMore-1l5kVCpI.js";import{u as bs,R as ws,C as Ss,D as pe,b as me,c as $s,d as Cs,e as vs,f as js,g as ks,h as Le,i as Ne,j as ze,a as As,k as Is}from"./Filters-CXCCoPfU.js";import{u as Es}from"./useInfiniteGrid-DS-eHJl3.js";import{u as Ts,s as Os}from"./sales-empty-CkxAX5qQ.js";import{E as Be}from"./ErrorNotice-YylntVIF.js";import{C as Ps}from"./CreditRate-CRu68bxJ.js";import{C as Rs}from"./field.styles-B7GpVroz.js";import{c as Ms,i as _s}from"./items-empty-C2mQWlpa.js";import{s as Fs}from"./signin-empty-DoMTaEfj.js";import{R as Ls,S as Ns,a as zs,D as Bs,b as Ks,C as Ws,c as Ds,d as Hs,e as Gs,M as qs}from"./browseLayout.styles-DySdp3ol.js";import{n as Qe}from"./Tooltip-2to0FtD5.js";import{m as Ys}from"./mana-matic-light-Bl5duieC.js";import"./dcl-schemas-CIgtuOoU.js";import"./sentry-BhkK6fEK.js";import"./ethers-B_gMX7bu.js";import"./intl-AKLEHPeO.js";import"./mana-matic-CEqvSwrJ.js";import"./sha3-70hRWHxs.js";import"./browser-gnLUFKwX.js";import"./trade-encoding-DcVwVU4D.js";import"./sendMetaTransaction-B2oQ5eKD.js";import"./ManaPricingBanner.styles-DsEi0tgF.js";import"./skeleton.styles-B8FT4bpt.js";import"./import-C7TsYQy9.js";import"./buy-DY-mMt7w.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new s.Error().stack;i&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[i]="e489b5b2-8702-448e-9014-cdf456afc3e2",s._sentryDebugIdIdentifier="sentry-dbid-e489b5b2-8702-448e-9014-cdf456afc3e2")}catch{}})();const Ue="shop:creations-hint:v1";function Je(){try{const s=localStorage.getItem(Ue);if(!s)return{};const i=JSON.parse(s);return i&&typeof i=="object"&&!Array.isArray(i)?i:{}}catch{return{}}}function Qs(s){if(!s)return null;const i=Je()[s.toLowerCase()];return i&&Number.isFinite(i.count)&&i.count>0?{count:i.count}:null}function Us(s,i){try{const u=Je(),p=s.toLowerCase();i>0?u[p]={count:i}:delete u[p],localStorage.setItem(Ue,JSON.stringify(u))}catch{}}const{colors:C,radius:xe,font:ye,media:Js}=a,Zs=r.div`
1
+ import{r as d,j as t,b as Wt,u as Dt}from"./react-Cw0C4LRR.js";import{s as r,a,X as Ht,c9 as qe,t as n,ca as Gt,H as Q,O as Re,Y as Me,l as qt,Z as Yt,I as U,B as Qt,x as Ut,cb as Jt,bR as ie,aH as _e,w as ce,a0 as Zt,cc as Vt,aK as Xt,a2 as le,cd as es,a4 as de,ce as ts,a5 as ue,cf as ss,a1 as ns,z as os,c as Ye,bT as Fe,cg as as,ch as rs}from"./index-CZdsG7uB.js";import{S as is,f as cs}from"./SaleCountdown-NK6Hu66J.js";import{l as ls,f as ds,i as us,e as ps,M as ms,u as hs,t as fs,C as gs}from"./ManaPricingBanner-CptM64_P.js";import{f as xs}from"./errors-htl-Qj1d.js";import{L as ys}from"./LoadMore-DWVK0Irj.js";import{u as bs,R as ws,C as Ss,D as pe,b as me,c as $s,d as Cs,e as vs,f as js,g as ks,h as Le,i as Ne,j as ze,a as As,k as Is}from"./Filters-GL_cDsl_.js";import{u as Es}from"./useInfiniteGrid-dpAz9UyF.js";import{u as Ts,s as Os}from"./sales-empty-tOFQagTW.js";import{E as Be}from"./ErrorNotice-DMbEwZqC.js";import{C as Ps}from"./CreditRate-Clsik_Aw.js";import{C as Rs}from"./field.styles-7dFa9R-o.js";import{c as Ms,i as _s}from"./items-empty-DB1o3kNX.js";import{s as Fs}from"./signin-empty-BHwLrjwi.js";import{R as Ls,S as Ns,a as zs,D as Bs,b as Ks,C as Ws,c as Ds,d as Hs,e as Gs,M as qs}from"./browseLayout.styles-DC6JaJXR.js";import{n as Qe}from"./Tooltip-CDNhtTHg.js";import{m as Ys}from"./mana-matic-light-Bl5duieC.js";import"./dcl-schemas-288R2vaD.js";import"./sentry-D4iytbTq.js";import"./ethers-CQTiErIs.js";import"./intl-AKLEHPeO.js";import"./mana-matic-CEqvSwrJ.js";import"./sha3-Dtc962Jj.js";import"./browser-CRE9R8KO.js";import"./trade-encoding-DlOQ-rr4.js";import"./sendMetaTransaction-DImbldFL.js";import"./ManaPricingBanner.styles-GA7vtF8H.js";import"./skeleton.styles-D0RTRgQY.js";import"./import-CRq-JlwZ.js";import"./buy-C6hGEUyy.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new s.Error().stack;i&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[i]="e489b5b2-8702-448e-9014-cdf456afc3e2",s._sentryDebugIdIdentifier="sentry-dbid-e489b5b2-8702-448e-9014-cdf456afc3e2")}catch{}})();const Ue="shop:creations-hint:v1";function Je(){try{const s=localStorage.getItem(Ue);if(!s)return{};const i=JSON.parse(s);return i&&typeof i=="object"&&!Array.isArray(i)?i:{}}catch{return{}}}function Qs(s){if(!s)return null;const i=Je()[s.toLowerCase()];return i&&Number.isFinite(i.count)&&i.count>0?{count:i.count}:null}function Us(s,i){try{const u=Je(),p=s.toLowerCase();i>0?u[p]={count:i}:delete u[p],localStorage.setItem(Ue,JSON.stringify(u))}catch{}}const{colors:C,radius:xe,font:ye,media:Js}=a,Zs=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 12px;
@@ -494,4 +494,4 @@ import{r as d,j as t,b as Wt,u as Dt}from"./react-4P5sGbEq.js";import{s as r,a,X
494
494
  font-size: 16px;
495
495
  color: ${a.colors.text};
496
496
  `,Hn=48,We=[{key:"wearables",labelKey:"myAssets.sectionWearables",category:"wearable"},{key:"emotes",labelKey:"myAssets.sectionEmotes",category:"emote"},{key:"names",labelKey:"myAssets.sectionNames",category:"ens"},{key:"creations",labelKey:"myAssets.sectionCreations"}],Gn=["all","credits","mana"],fe={all:"filter.priceAll",credits:"filter.priceCredits",mana:"filter.priceMana"};function qn(s){return s==="credits"?t.jsx(os,{size:14}):s==="mana"?t.jsx(Is,{src:Ys,alt:"","aria-hidden":!0}):null}const ge=[{key:"newest",label:"filterBar.sortNewest",server:"newest"},{key:"name",label:"filterBar.sortName",server:"name"},{key:"cheapest",label:"filterBar.sortCheapest",server:"cheapest"}];function De(s){return s==="wearables"||s==="emotes"}const He={wearables:"wearable",emotes:"emote",names:"names",creations:""},Yn={wearable:"wearables",emote:"emotes",names:"names"};function Qn(s){return`${Ye.builderUrl}/names/${encodeURIComponent(s)}`}function Ge(s,i){return{id:s.id,name:s.name,creator:"",contractAddress:s.contractAddress,itemId:s.itemId,category:s.category,rarity:s.rarity??"common",network:s.network,chainId:s.chainId,thumbnail:s.image,priceCredits:(i==null?void 0:i.priceCredits)??s.listingPrice??0,gender:null,isSmart:!1,tokenId:s.tokenId,issuedId:s.issuedId,tradeId:(i==null?void 0:i.tradeId)??s.tradeId}}function Un(s,i,u,p){return{id:`${s.contractAddress}-${s.blockchainItemId}`,name:s.name,creator:u,contractAddress:s.contractAddress,itemId:s.blockchainItemId,category:s.category,rarity:s.rarity,network:"MATIC",chainId:Ye.chainId,thumbnail:s.thumbnail,priceCredits:i,available:s.remainingSupply,...(p==null?void 0:p.compareAtCredits)!=null?{compareAtCredits:p.compareAtCredits}:{},...(p==null?void 0:p.saleEndsAt)!=null?{saleEndsAt:p.saleEndsAt}:{},gender:null,isSmart:!1}}function Ao(){var Oe,Pe;Qt({title:n("nav.myAssets"),noindex:!0});const{session:s,error:i,signIn:u,restore:p}=Ut(),j=Wt(),[A,b]=Dt(),I=A.get("section"),T=Jt(),z=We.some(e=>e.key===I)?I:"wearables",m=T&&z==="creations"?"wearables":z,[c,g]=d.useState("all"),[v,O]=d.useState("all"),[$,M]=d.useState([]),[y,B]=d.useState(null);bs(`${m}:${y??""}`);const[_,st]=d.useState("newest"),[K,we]=d.useState(""),[P,nt]=d.useState(""),[W,R]=d.useState(!1),[ot,at]=d.useState(!0),[rt,it]=d.useState(!0),[ct,lt]=d.useState(!1),[dt,ut]=d.useState(!1),[J,Se]=d.useState("idle");d.useEffect(()=>{p()},[p]),d.useEffect(()=>{const e=setTimeout(()=>nt(K.trim()),300);return()=>clearTimeout(e)},[K]),d.useEffect(()=>{if(!W)return;const e=l=>{l.key==="Escape"&&R(!1)};document.addEventListener("keydown",e);const o=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=o}},[W]);const x=s==null?void 0:s.address,pt=We.find(e=>e.key===m),D=De(m),$e=(ge.find(e=>e.key===_)??ge[0]).server,mt=c==="on_sale"?n("filter.onSale"):c==="not_for_sale"?n("filter.notForSale"):"",ht=v==="all"?"":n(fe[v]),ft=ie.filter(e=>$.includes(e)).map(_e).join(", ");function Ce(e){b(o=>{const l=new URLSearchParams(o);return l.set("section",e),l},{replace:!0}),B(null),De(e)||M([]),e!=="creations"&&O("all"),R(!1)}function ve(e){M(o=>o.includes(e)?o.filter(l=>l!==e):[...o,e])}function gt(e){const o=Yn[e];o&&Ce(o)}const{items:F,total:xt,isLoading:Z,isPlaceholderData:V,error:yt,hasNextPage:bt,isFetchingNextPage:je,isFetchNextPageError:wt,fetchNextPage:St}=Es(["my-assets",x,m,c,$,y,P,$e],e=>ss(x,{category:pt.category,first:Hn,skip:e,search:P||void 0,rarities:D&&$.length?$:void 0,wearableCategories:m==="wearables"&&y?Fe[y]:void 0,emoteCategories:m==="emotes"&&y?Fe[y]:void 0,onlyOnSale:c==="on_sale"||void 0,sortBy:$e}).then(o=>({items:o.assets,total:o.total})),{enabled:!!x&&m!=="creations"}),X=d.useMemo(()=>m==="wearables"||m==="emotes"?[...new Set(F.map(e=>e.contractAddress))]:[],[F,m]),{data:H}=ce({queryKey:["secondary-sale-state",X],enabled:X.length>0,queryFn:async()=>{const e=await Promise.all(X.map(async l=>[l,await as(l)])),o={};for(const[l,h]of e)for(const[k,Kt]of Object.entries(h))o[`${l}-${k}`]=Kt;return o}}),ke=e=>H==null?void 0:H[`${e.contractAddress}-${e.tokenId}`],$t=e=>!!ke(e)||e.isOnSale,ee=d.useMemo(()=>c==="not_for_sale"?F.filter(e=>!$t(e)):F,[F,c,H]),G=d.useMemo(()=>Qs(x),[x]),te=!!s&&(m==="creations"||G!==null),{data:w,isLoading:Ct,isError:vt}=ce({queryKey:["publishable-items",x],queryFn:()=>cs(x,s.identity,{includeSoldOut:!0}),enabled:te,staleTime:5*6e4,retry:!1});d.useEffect(()=>{x&&w&&Us(x,w.length)},[x,w]);const{data:S,isPending:jt,isError:kt}=ce({queryKey:["collection-sale-state",x],queryFn:()=>rs(x),enabled:te,staleTime:6e4}),E=e=>S==null?void 0:S[`${e.contractAddress}-${e.blockchainItemId}`],At=te&&jt&&!kt&&((w==null?void 0:w.length)??0)>0,se=Ct||At,It=Math.min(12,Math.max(4,(G==null?void 0:G.count)??12)),Et=d.useMemo(()=>Object.values(S??{}).some(e=>!!e.manaWei),[S]),{data:ne}=Zt(Et),oe=e=>e?!e.manaWei||!ne?e.priceCredits:ns({manaWei:e.manaWei,priceCredits:e.priceCredits},ne):0,ae=Vt(),{data:L}=hs(x,ae&&m==="creations"),[Tt,Ae]=d.useState(!1),[Ot,Pt]=d.useState(void 0),re=d.useMemo(()=>fs(w??[],S),[w,S]),{count:Rt}=Ts(),q=Rt??0,Y=d.useMemo(()=>{let e=w??[];if(c==="on_sale"?e=e.filter(l=>{var h;return(h=E(l))==null?void 0:h.isOnSale}):c==="not_for_sale"&&(e=e.filter(l=>{var h;return!((h=E(l))!=null&&h.isOnSale)})),v==="credits"?e=e.filter(l=>{var h,k;return!!((h=E(l))!=null&&h.isOnSale)&&!((k=E(l))!=null&&k.manaWei)}):v==="mana"&&(e=e.filter(l=>{var h;return!!((h=E(l))!=null&&h.manaWei)})),P){const l=P.toLowerCase();e=e.filter(h=>h.name.toLowerCase().includes(l))}const o=[...e];return _==="name"?o.sort((l,h)=>l.name.localeCompare(h.name)):_==="cheapest"&&o.sort((l,h)=>oe(E(l))-oe(E(h))),o},[w,S,c,v,P,_,ne]),Mt=d.useMemo(()=>{var o;const e=new Map;for(const l of Y){const h=l.contractAddress.toLowerCase(),k=e.get(h)??{contractAddress:h,name:l.collectionName,listed:0,soldOut:0,items:[]};k.items.push(l),(o=S==null?void 0:S[`${l.contractAddress}-${l.blockchainItemId}`])!=null&&o.isOnSale&&(k.listed+=1),l.remainingSupply<=0&&(k.soldOut+=1),e.set(h,k)}return[...e.values()]},[Y,S]),_t=d.useMemo(()=>{const e={};for(const o of w??[])e[o.contractAddress.toLowerCase()]=o.collectionName;return e},[w]),Ie=d.useMemo(()=>{const e=new Map;for(const o of L??[]){if(o.status!=="active"&&o.status!=="scheduled")continue;const l=o.discount/1e4;for(const h of o.collections)e.set(h.toLowerCase(),{status:o.status,pct:l})}return e},[L]),Ft=d.useMemo(()=>new Set(re.map(e=>e.contractAddress.toLowerCase())),[re]),Ee=re.find(e=>e.contractAddress===Ot);d.useEffect(()=>{J!=="idle"||q===0||kn(Ke,x)||Se("open")},[J,q,x]);function Te(e){e&&An(Ke,x),Se("closed")}if(!s)return t.jsxs(Xt,{children:[t.jsx(le,{testId:"my-items-signin",icon:Fs,title:n("myAssets.signInTitle"),body:n("myAssets.signInBody"),cta:{label:n("storeSettings.signIn"),onClick:()=>u()},ctaVariant:"solid",fill:!0}),t.jsx(Be,{message:i})]});const Lt=m==="creations"?se:Z||V,Nt=m==="creations"?Y.length:c==="not_for_sale"?ee.length:xt,N=[];if(c!=="all"&&N.push({key:"status",label:c==="on_sale"?n("filter.onSale"):n("filter.notForSale"),onRemove:()=>g("all")}),m==="creations"&&v!=="all"&&N.push({key:"price",label:n(fe[v]),onRemove:()=>O("all")}),D)for(const e of ie)$.includes(e)&&N.push({key:`rarity-${e}`,label:_e(e),onRemove:()=>ve(e)});if(D&&y){const e=(Pe=(Oe=es.find(o=>o.key===He[m]))==null?void 0:Oe.subs)==null?void 0:Pe.find(o=>o.key===y);N.push({key:"sub",label:e?n(e.labelKey):y,onRemove:()=>B(null)})}function zt(){g("all"),O("all"),M([]),B(null)}const Bt=t.jsxs(ws,{children:[t.jsx(Ss,{title:n("myAssets.assetsHeading"),category:He[m],subCategory:y,onCategory:gt,onSub:B,onCollections:T?void 0:()=>Ce("creations"),collections:!T&&m==="creations",extraLabelKey:"myAssets.sectionCreations",hideAll:!0}),D?t.jsxs(t.Fragment,{children:[t.jsx(pe,{}),t.jsx(me,{title:n("assets.rarity"),open:ct,onToggle:()=>lt(e=>!e),summary:ft,headerTestId:"sidebar-section-toggle",children:t.jsx($s,{"data-testid":"rarity-filter",children:ie.map(e=>{const o=$.includes(e);return t.jsxs(Cs,{type:"button",selected:o,"aria-pressed":o,onClick:()=>ve(e),"data-testid":"rarity-filter-check",children:[t.jsx(vs,{color:a.rarities[e],children:o?t.jsx(js,{name:"check","aria-hidden":!0}):null}),t.jsx(ks,{selected:o,children:e})]},e)})})})]}):null,t.jsx(pe,{}),t.jsx(me,{title:n("filter.status"),open:ot,onToggle:()=>at(e=>!e),summary:mt,children:[["all",n("filter.statusAll")],["on_sale",n("filter.onSale")],["not_for_sale",n("filter.notForSale")]].map(([e,o])=>t.jsxs(Le,{children:[t.jsx(Ne,{type:"radio",name:"myassets-status",checked:c===e,onChange:()=>g(e)}),t.jsx(ze,{children:o})]},e))}),m==="creations"?t.jsxs(t.Fragment,{children:[t.jsx(pe,{}),t.jsx(me,{title:n("filter.salePrice"),open:rt,onToggle:()=>it(e=>!e),summary:ht,children:Gn.map(e=>t.jsxs(Le,{children:[t.jsx(Ne,{type:"radio",name:"myassets-price",checked:v===e,onChange:()=>O(e),"data-testid":`price-filter-${e}`}),t.jsxs(ze,{children:[qn(e),n(fe[e])]})]},e))})]}):null]});return t.jsxs(Ls,{"data-testid":"my-assets",children:[W?t.jsx(Ns,{onClick:()=>R(!1),"aria-hidden":!0}):null,t.jsxs(zs,{"data-open":W||void 0,"data-testid":"my-assets-sidebar",children:[t.jsxs(Bs,{children:[t.jsx(Ks,{children:n("assets.filters")}),t.jsx(Ws,{onClick:()=>R(!1),"aria-label":n("assets.closeFilters"),children:"✕"})]}),t.jsx(Ds,{children:Bt}),t.jsx(Hs,{children:t.jsx(Gs,{type:"button",onClick:()=>R(!1),children:n("assets.showItems")})})]}),t.jsxs(qs,{children:[q>0&&!dt?t.jsx(Rn,{count:q,onDismiss:()=>ut(!0)}):null,t.jsx(As,{sort:_,onSort:st,sortOptions:ge,total:Nt,loading:Lt,query:P,onOpenFilters:()=>R(!0),chips:N,onClearChips:zt,search:t.jsxs(In,{children:[t.jsx(En,{name:"search","aria-hidden":!0}),t.jsx(Tn,{type:"search",value:K,placeholder:n("myAssets.searchPlaceholder"),"aria-label":n("myAssets.searchPlaceholder"),onChange:e=>we(e.target.value)}),K?t.jsx(On,{type:"button","aria-label":n("myAssets.clearSearch"),onClick:()=>we(""),children:t.jsx(Pn,{name:"close","aria-hidden":!0})}):null]})}),(m==="creations"?vt:yt)?t.jsx(Be,{message:n("myAssets.ownedError"),testId:"my-assets-error"}):null,m==="creations"?t.jsxs(t.Fragment,{children:[ae&&s&&L&&L.length>0?t.jsxs(Wn,{"data-testid":"creator-sales-panel",children:[t.jsx(Dn,{children:n("creatorSale.salesTitle")}),t.jsx(cn,{sales:L,session:s,names:_t})]}):null,Tt&&s&&Ee?t.jsx(gs,{session:s,collection:Ee,onClose:()=>Ae(!1),source:"my_assets"}):null,se?t.jsx(he,{"data-testid":"grid",children:t.jsx(de,{count:It})}):Mt.map(e=>t.jsxs(Mn,{"data-testid":"creation-group",children:[t.jsxs(_n,{children:[t.jsx(Nn,{children:t.jsx(qe,{contractAddress:e.contractAddress})}),t.jsxs(zn,{children:[t.jsx(Bn,{"data-testid":"creation-group-name",children:e.name}),t.jsxs(Kn,{"data-testid":"creation-group-count",children:[n("myAssets.itemsCount",{count:e.items.length}),e.listed>0?` · ${n("myAssets.groupOnSale",{count:e.listed})}`:"",e.soldOut>0?` · ${n("myAssets.groupSoldOut",{count:e.soldOut})}`:""]})]}),ae&&s&&Ft.has(e.contractAddress)?Ie.has(e.contractAddress)?(()=>{const o=Ie.get(e.contractAddress);return t.jsx(Fn,{"data-heat":ts(o.pct),"data-testid":"creation-group-sale-state",children:n(o.status==="scheduled"?"creatorSale.groupScheduled":"creatorSale.groupActive",{pct:o.pct})})})():t.jsx(Ln,{variant:"purple",size:"sm","data-testid":"creation-group-sale",onClick:()=>{Pt(e.contractAddress),Ae(!0)},children:n("creatorSale.putOnSale")}):null]}),t.jsx(he,{"data-testid":"grid",children:e.items.map(o=>{const l=E(o);return t.jsx(ue,{item:Un(o,oe(l),x??"",l),mode:"manage-link"},`${o.contractAddress}-${o.blockchainItemId}`)})})]},e.contractAddress)),!se&&Y.length===0?t.jsx(le,{testId:"creations-empty",icon:Ms,title:n("myAssets.emptyCreationsTitle"),body:n("myAssets.nothingToPublish")}):null]}):t.jsxs(t.Fragment,{children:[t.jsxs(he,{"data-testid":"grid",children:[Z||V?t.jsx(de,{count:12}):ee.map(e=>m==="names"?t.jsx(ue,{item:{...Ge(e),category:"ens"},mode:"manage-link",manageHref:Qn(e.name)},e.id):t.jsx(ue,{item:Ge(e,ke(e)),mode:"manage-link"},e.id)),je?t.jsx(de,{count:6}):null]}),c!=="not_for_sale"?t.jsx(ys,{hasNextPage:bt,isFetching:je,isError:wt,onLoadMore:()=>void St()}):null,!Z&&!V&&ee.length===0?t.jsx(le,{testId:"owned-empty",icon:c==="on_sale"?Os:_s,title:m==="names"?n("myAssets.emptyNamesTitle"):n("myAssets.emptyOwnedTitle"),body:m==="names"?n("myAssets.namesEmpty"):n("myAssets.ownedEmpty"),cta:m!=="names"?{label:n("myAssets.emptyBrowse"),to:"/items"}:void 0}):null]})]}),J==="open"?t.jsx(vn,{onClose:Te,onConfirm:e=>{Te(e),j("/import")}}):null]})}export{Ao as MyAssets};
497
- //# sourceMappingURL=MyAssets-BUo6c0_2.js.map
497
+ //# sourceMappingURL=MyAssets-D0_0QgrK.js.map
@@ -1,4 +1,4 @@
1
- import{r as c,j as t}from"./react-4P5sGbEq.js";import{s as a,a as h,B as F,t as s,$ as l,a0 as w,a1 as E,a2 as k,a3 as x,a4 as _,a5 as $}from"./index-BJQicl8s.js";import{L as I}from"./LoadMore-1l5kVCpI.js";import{E as M}from"./ErrorNotice-YylntVIF.js";import{G as S}from"./grid.styles-CTCw781a.js";import"./dcl-schemas-CIgtuOoU.js";import"./sentry-BhkK6fEK.js";import"./ethers-B_gMX7bu.js";import"./intl-AKLEHPeO.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new r.Error().stack;i&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[i]="a1567c36-eca9-49ab-81ab-978ff18a8eca",r._sentryDebugIdIdentifier="sentry-dbid-a1567c36-eca9-49ab-81ab-978ff18a8eca")}catch{}})();const{colors:o,radius:L}=h,B=a.div`
1
+ import{r as c,j as t}from"./react-Cw0C4LRR.js";import{s as a,a as h,B as F,t as s,$ as l,a0 as w,a1 as E,a2 as k,a3 as x,a4 as _,a5 as $}from"./index-CZdsG7uB.js";import{L as I}from"./LoadMore-DWVK0Irj.js";import{E as M}from"./ErrorNotice-DMbEwZqC.js";import{G as S}from"./grid.styles-DFLzsH6r.js";import"./dcl-schemas-288R2vaD.js";import"./sentry-D4iytbTq.js";import"./ethers-CQTiErIs.js";import"./intl-AKLEHPeO.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new r.Error().stack;i&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[i]="a1567c36-eca9-49ab-81ab-978ff18a8eca",r._sentryDebugIdIdentifier="sentry-dbid-a1567c36-eca9-49ab-81ab-978ff18a8eca")}catch{}})();const{colors:o,radius:L}=h,B=a.div`
2
2
  display: flex;
3
3
  align-items: baseline;
4
4
  gap: 12px;
@@ -59,4 +59,4 @@ import{r as c,j as t}from"./react-4P5sGbEq.js";import{s as a,a as h,B as F,t as
59
59
  margin-top: 36px;
60
60
  }
61
61
  `,T="data:image/svg+xml,%3csvg%20width='138'%20height='138'%20viewBox='0%200%20138%20138'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M92.7188%2021.5625V34.5'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M86.25%2028.0312H99.1875'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M24.7324%2065.5C24.732%2062.8042%2025.2665%2060.1361%2026.3037%2057.6514C27.341%2055.1665%2028.8602%2052.9151%2030.7715%2051.0293C32.6826%2049.1438%2034.9471%2047.6604%2037.4326%2046.666C39.9183%2045.6716%2042.5762%2045.1856%2045.25%2045.2354L45.3008%2045.2363H45.3516C48.581%2045.2192%2051.7779%2045.8923%2054.7305%2047.2109C56.1717%2047.8547%2057.539%2048.6448%2058.8115%2049.5674C60.1459%2050.5348%2061.3766%2051.6478%2062.4795%2052.8887L65.6426%2056.4473L68.8057%2052.8887C69.9086%2051.6478%2071.1392%2050.5348%2072.4736%2049.5674C73.7464%2048.6446%2075.1142%2047.8547%2076.5557%2047.2109C79.5083%2045.8922%2082.705%2045.2191%2085.9346%2045.2363H85.9854L86.0361%2045.2354C88.7097%2045.1856%2091.367%2045.6717%2093.8525%2046.666C96.3383%2047.6604%2098.6034%2049.1436%20100.515%2051.0293C102.426%2052.915%20103.945%2055.1665%20104.982%2057.6514C106.02%2060.1361%20106.554%2062.8043%20106.554%2065.5V65.501C106.554%2074.0645%20102.382%2082.1039%2095.8086%2089.877C89.2296%2097.6565%2080.6704%20104.682%2072.6035%20111.289C71.1421%20112.486%2069.6963%20113.67%2068.2959%20114.832C66.7887%20116.083%2064.5293%20116.081%2063.0176%20114.818C61.4894%20113.542%2059.9072%20112.242%2058.3076%20110.928C50.2836%20104.335%2041.8192%2097.3643%2035.3242%2089.6553C28.8376%2081.9561%2024.7324%2073.9982%2024.7324%2065.501V65.5Z'%20stroke='url(%23paint0_linear_1564_322452)'%20stroke-width='8.46429'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_1564_322452'%20x1='17.6552'%20y1='80.505'%20x2='176.469'%20y2='63.4051'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",y=24,U=20;function J(){F({title:s("nav.myFavorites"),noindex:!0});const r=l(e=>Object.values(e.items)),i=l(e=>e.status),p=l(e=>e.retry),[m,v]=c.useState(y),{data:u,isPending:C,isError:b}=w(),g=r.some(e=>!!e.manaWei),n=c.useMemo(()=>r.map(e=>({...e,priceCredits:E(e,u)})),[r,u]),j=c.useMemo(()=>n.slice(0,U).map(e=>e.contractAddress&&e.itemId?`${e.contractAddress.toLowerCase()}-${e.itemId}`:null).filter(e=>e!==null),[n]);if(i==="error")return t.jsxs(H,{"data-testid":"favorites-error",children:[t.jsx(M,{message:s("myFavorites.loadError")}),t.jsx(P,{type:"button",onClick:p,children:s("myFavorites.tryAgain")})]});if(i==="ready"&&n.length===0)return t.jsxs(R,{children:[t.jsx(k,{testId:"favorites-empty",icon:T,title:s("myFavorites.emptyTitle"),body:s("myFavorites.emptyBody"),cta:{label:s("myFavorites.emptyCta"),to:"/items"}}),t.jsx(f,{children:t.jsx(x,{title:s("myFavorites.suggestedTitle"),surface:"favorites"})})]});const d=i==="loading"||C&&g;return t.jsxs("section",{children:[t.jsxs(B,{children:[t.jsx(D,{children:s("nav.myFavorites")}),d?null:t.jsx(G,{children:s("myFavorites.itemCount",{count:n.length})})]}),b&&g?t.jsx(A,{children:s("assets.marketUnavailable")}):null,t.jsx(S,{"data-testid":d?"favorites-loading":void 0,children:d?t.jsx(_,{count:8}):n.slice(0,m).map(e=>t.jsx($,{item:e},e.id))}),t.jsx(I,{hasNextPage:!d&&m<n.length,isFetching:!1,onLoadMore:()=>v(e=>e+y)}),d?null:t.jsx(f,{children:t.jsx(x,{title:s("myFavorites.suggestedTitle"),surface:"favorites",exclude:j})})]})}export{J as MyFavorites};
62
- //# sourceMappingURL=MyFavorites-C6mXW5Jl.js.map
62
+ //# sourceMappingURL=MyFavorites-D87VcEg-.js.map