@multiversx/sdk-dapp 2.29.0-beta.15 → 2.29.0-beta.17

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 (580) hide show
  1. package/UI/ExplorerLink/ExplorerLink.js +1 -1
  2. package/UI/ExplorerLink/index.js +1 -1
  3. package/UI/NotificationModal/NotificationModal.js +1 -1
  4. package/UI/NotificationModal/index.js +1 -1
  5. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  6. package/UI/SignTransactionsModals/SignWithCrossWindowWalletModal/SignWithCrossWindowWalletModal.js +1 -1
  7. package/UI/SignTransactionsModals/SignWithCrossWindowWalletModal/index.js +1 -1
  8. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  9. package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
  10. package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
  11. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/ConfirmAmount.js +1 -1
  12. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountData/ConfirmAmountData.js +1 -1
  13. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountData/index.js +1 -1
  14. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountNftSft/ConfirmAmountNftSft.js +1 -1
  15. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountNftSft/index.js +1 -1
  16. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/index.js +1 -1
  17. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/index.js +1 -1
  18. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/ConfirmFee.js +1 -1
  19. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/index.js +1 -1
  20. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/ConfirmReceiver.js +1 -1
  21. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/index.js +1 -1
  22. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/index.js +1 -1
  23. package/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +1 -1
  24. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  25. package/UI/SignTransactionsModals/SignWithExtensionModal/SignWithExtensionModal.js +1 -1
  26. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  27. package/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
  28. package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  29. package/UI/SignTransactionsModals/SignWithLedgerModal/LedgerGuardianSigningModalError.js +1 -1
  30. package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
  31. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  32. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  33. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  34. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  35. package/UI/SignTransactionsModals/components/index.js +1 -1
  36. package/UI/SignTransactionsModals/index.js +1 -1
  37. package/UI/TokenDetails/index.js +1 -1
  38. package/UI/TransactionDetails/TransactionDetails.js +1 -1
  39. package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  40. package/UI/TransactionDetails/components/index.js +1 -1
  41. package/UI/TransactionDetails/index.js +1 -1
  42. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  43. package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
  44. package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
  45. package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
  46. package/UI/TransactionInfo/components/EventsList/index.js +1 -1
  47. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  48. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  49. package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
  50. package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  51. package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  52. package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
  53. package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  54. package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
  55. package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
  56. package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
  57. package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
  58. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
  59. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
  60. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
  61. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
  62. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
  63. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
  64. package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
  65. package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
  66. package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
  67. package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
  68. package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
  69. package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
  70. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
  71. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
  72. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
  73. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
  74. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
  75. package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
  76. package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
  77. package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
  78. package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
  79. package/UI/TransactionInfo/components/index.js +1 -1
  80. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
  81. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
  82. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
  83. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
  84. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
  85. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
  86. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
  87. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
  88. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  89. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  90. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
  91. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
  92. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
  93. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
  94. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
  95. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
  96. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
  97. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
  98. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  99. package/UI/TransactionInfo/index.js +1 -1
  100. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  101. package/UI/TransactionsTable/components/AccountName.js +1 -1
  102. package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
  103. package/UI/TransactionsTable/components/TransactionHash.js +1 -1
  104. package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
  105. package/UI/TransactionsTable/components/TransactionRow.js +1 -1
  106. package/UI/TransactionsTable/components/TransactionSender.js +1 -1
  107. package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
  108. package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
  109. package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
  110. package/UI/TransactionsTable/components/index.js +1 -1
  111. package/UI/TransactionsTable/index.js +1 -1
  112. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  113. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  114. package/UI/TransactionsToastList/components/CustomToast/components/CustomComponentToast.js +1 -1
  115. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  116. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  117. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  118. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  119. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  120. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  121. package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  122. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  123. package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  124. package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  125. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  126. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  127. package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
  128. package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
  129. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  130. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  131. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  132. package/UI/TransactionsToastList/components/index.js +1 -1
  133. package/UI/TransactionsToastList/index.js +1 -1
  134. package/UI/Trim/Trim.js +1 -1
  135. package/UI/Trim/index.js +1 -1
  136. package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
  137. package/UI/extension/ExtensionLoginButton/index.js +1 -1
  138. package/UI/index.js +1 -1
  139. package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
  140. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  141. package/UI/ledger/LedgerLoginContainer/AddressRow/AddressRow.js +1 -1
  142. package/UI/ledger/LedgerLoginContainer/AddressRow/index.js +1 -1
  143. package/UI/ledger/LedgerLoginContainer/AddressTable/AddressTable.js +1 -1
  144. package/UI/ledger/LedgerLoginContainer/AddressTable/index.js +1 -1
  145. package/UI/ledger/LedgerLoginContainer/ConfirmAddress/ConfirmAddress.js +1 -1
  146. package/UI/ledger/LedgerLoginContainer/ConfirmAddress/index.js +1 -1
  147. package/UI/ledger/LedgerLoginContainer/LedgerLoginContainer.js +1 -1
  148. package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/LedgerLoginContent.js +1 -1
  149. package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/index.js +1 -1
  150. package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/LedgerLoginContentBody.js +1 -1
  151. package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/index.js +1 -1
  152. package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/LedgerScamPhishingAlert.js +1 -1
  153. package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/index.js +1 -1
  154. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  155. package/UI/ledger/index.js +1 -1
  156. package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
  157. package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  158. package/UI/pages/UnlockPage/index.js +1 -1
  159. package/UI/pages/index.js +1 -1
  160. package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
  161. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  162. package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContainer.js +1 -1
  163. package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/WalletConnectLoginContent.js +1 -1
  164. package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/index.js +1 -1
  165. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  166. package/UI/walletConnect/index.js +1 -1
  167. package/UI/webWallet/CrossWindowLoginButton/CrossWindowLoginButton.js +1 -1
  168. package/UI/webWallet/CrossWindowLoginButton/index.js +1 -1
  169. package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
  170. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  171. package/UI/webWallet/XaliasLoginButton/XaliasLoginButton.js +1 -1
  172. package/UI/webWallet/XaliasLoginButton/index.js +1 -1
  173. package/__chunks__/{chunk-WAX6VT76.js → chunk-2C2JGGRR.js} +2 -2
  174. package/__chunks__/{chunk-3R4L2LPU.js → chunk-2C4B7SLQ.js} +2 -2
  175. package/__chunks__/{chunk-CZRWLM7F.js → chunk-2DFXPPIN.js} +2 -2
  176. package/__chunks__/{chunk-F5OYPPVL.js → chunk-2J7OWKKH.js} +2 -2
  177. package/__chunks__/{chunk-3LDYHSES.js → chunk-2MEGZZM3.js} +2 -2
  178. package/__chunks__/{chunk-AXSBQQR3.js → chunk-2NG2BTE6.js} +2 -2
  179. package/__chunks__/{chunk-GQXP5RGM.js → chunk-2O6QTNOU.js} +2 -2
  180. package/__chunks__/{chunk-M3I6Y3FW.js → chunk-2PSVIF6J.js} +2 -2
  181. package/__chunks__/{chunk-TRRONMNR.js → chunk-2YFQOZHP.js} +2 -2
  182. package/__chunks__/{chunk-T6W2VZIT.js → chunk-2YGRKL77.js} +2 -2
  183. package/__chunks__/{chunk-5I7UMDD6.js → chunk-3EITGCNO.js} +2 -2
  184. package/__chunks__/{chunk-QPN77K2L.js → chunk-3J6OGS57.js} +2 -2
  185. package/__chunks__/{chunk-75A4DYPH.js → chunk-3N7DPKZ4.js} +2 -2
  186. package/__chunks__/{chunk-XCYURN2F.js → chunk-3QTFEFSG.js} +2 -2
  187. package/__chunks__/{chunk-WXTR3JAQ.js → chunk-3RPQNIZR.js} +2 -2
  188. package/__chunks__/{chunk-EHTDHSQJ.js → chunk-3TMNXRSR.js} +2 -2
  189. package/__chunks__/{chunk-EJBQQG2Y.js → chunk-3UJZECFC.js} +2 -2
  190. package/__chunks__/{chunk-DOI6MFBL.js → chunk-3XKVNZLX.js} +2 -2
  191. package/__chunks__/{chunk-COTRGFS3.js → chunk-42XAXZU3.js} +2 -2
  192. package/__chunks__/{chunk-6HRYHN4U.js → chunk-4G42RAZQ.js} +2 -2
  193. package/__chunks__/{chunk-5GBH7OAH.js → chunk-4JRW7KUK.js} +2 -2
  194. package/__chunks__/{chunk-UUFZVKIH.js → chunk-4PEKHDKB.js} +2 -2
  195. package/__chunks__/{chunk-GGMUGEZZ.js → chunk-4PG6HAQZ.js} +2 -2
  196. package/__chunks__/{chunk-CEBMNV76.js → chunk-4RHVFWPL.js} +2 -2
  197. package/__chunks__/{chunk-36W5CBXO.js → chunk-4VZJLSSN.js} +2 -2
  198. package/__chunks__/{chunk-U5NZ2MEF.js → chunk-4ZA2XAFU.js} +2 -2
  199. package/__chunks__/{chunk-W2MC45IJ.js → chunk-5FUI4XZO.js} +2 -2
  200. package/__chunks__/{chunk-YSCBIBXE.js → chunk-5HJAKYVJ.js} +2 -2
  201. package/__chunks__/{chunk-L55XOWOF.js → chunk-5LH2ZGQ5.js} +2 -2
  202. package/__chunks__/{chunk-4DOZXQL3.js → chunk-5NWXGGSG.js} +2 -2
  203. package/__chunks__/{chunk-W7TCFFLI.js → chunk-5O46MGH4.js} +2 -2
  204. package/__chunks__/{chunk-QGY2WNTU.js → chunk-5RN4R4KB.js} +2 -2
  205. package/__chunks__/{chunk-ZERWQJOI.js → chunk-5Z2IFK52.js} +2 -2
  206. package/__chunks__/{chunk-RBQ4IQNE.js → chunk-6BYYETMB.js} +2 -2
  207. package/__chunks__/{chunk-GQ7OA6DR.js → chunk-6BZSMFWF.js} +2 -2
  208. package/__chunks__/{chunk-IQJ3JJGN.js → chunk-6GOP7NM7.js} +2 -2
  209. package/__chunks__/{chunk-RZOEFEWS.js → chunk-6HMRFDHQ.js} +2 -2
  210. package/__chunks__/{chunk-EDDUWJIA.js → chunk-6IEMVG2B.js} +2 -2
  211. package/__chunks__/{chunk-F23E63CV.js → chunk-6IFVW3ME.js} +2 -2
  212. package/__chunks__/{chunk-NEGZCFI3.js → chunk-6MLL4UNK.js} +2 -2
  213. package/__chunks__/{chunk-JFOGOUI7.js → chunk-6QSVQSDB.js} +2 -2
  214. package/__chunks__/{chunk-ACS7I5GR.js → chunk-745JOFJI.js} +2 -2
  215. package/__chunks__/{chunk-YPBOSCYZ.js → chunk-74S56Z4N.js} +2 -2
  216. package/__chunks__/{chunk-SO7GHCDY.js → chunk-754VDLRZ.js} +2 -2
  217. package/__chunks__/{chunk-TBSU22DW.js → chunk-75I5NPKF.js} +2 -2
  218. package/__chunks__/{chunk-63TWFHYQ.js → chunk-7CW3BQZD.js} +2 -2
  219. package/__chunks__/{chunk-WT6GIAME.js → chunk-7GQ5I7XT.js} +2 -2
  220. package/__chunks__/{chunk-5DZ2DUT3.js → chunk-7GYY6DYH.js} +2 -2
  221. package/__chunks__/{chunk-VUAJYKRV.js → chunk-7NNZBPDU.js} +2 -2
  222. package/__chunks__/{chunk-MBPVJXUG.js → chunk-7V7CVWFY.js} +2 -2
  223. package/__chunks__/{chunk-27BOHNDR.js → chunk-AGGNXQVA.js} +2 -2
  224. package/__chunks__/{chunk-2IY6APQA.js → chunk-AJMF7QMP.js} +2 -2
  225. package/__chunks__/{chunk-VGZTQVQU.js → chunk-AKVFL4TU.js} +2 -2
  226. package/__chunks__/{chunk-QKF34AE6.js → chunk-ANM7ZH2P.js} +2 -2
  227. package/__chunks__/{chunk-ABUGDPQ6.js → chunk-AQ44QT4F.js} +2 -2
  228. package/__chunks__/{chunk-SIIFOCDM.js → chunk-ATIND3CY.js} +2 -2
  229. package/__chunks__/{chunk-GQPPYX2F.js → chunk-AZDS7RGS.js} +2 -2
  230. package/__chunks__/{chunk-45PSX3RX.js → chunk-B76OPEU5.js} +2 -2
  231. package/__chunks__/{chunk-QQD5F763.js → chunk-BEUHBFRM.js} +2 -2
  232. package/__chunks__/{chunk-5YKU74QM.js → chunk-BG3WD2P5.js} +2 -2
  233. package/__chunks__/{chunk-YFSETQOO.js → chunk-BKKSRCJR.js} +2 -2
  234. package/__chunks__/{chunk-CRXYLMRO.js → chunk-CEIFH7OV.js} +2 -2
  235. package/__chunks__/{chunk-S47E6IO5.js → chunk-CHGCQEYE.js} +2 -2
  236. package/__chunks__/{chunk-BRWRTN63.js → chunk-CHQ3YUMQ.js} +2 -2
  237. package/__chunks__/{chunk-ZNOSEXE2.js → chunk-CKP2CV55.js} +2 -2
  238. package/__chunks__/{chunk-ERQ7HWCI.js → chunk-COLDR7VZ.js} +2 -2
  239. package/__chunks__/{chunk-N7TFINQY.js → chunk-CPE43NKS.js} +2 -2
  240. package/__chunks__/chunk-CQNDE53M.js +2 -0
  241. package/__chunks__/{chunk-VRN4N264.js → chunk-CSY5E3N2.js} +2 -2
  242. package/__chunks__/{chunk-5TUDNLHS.js → chunk-CWNFHBTJ.js} +2 -2
  243. package/__chunks__/{chunk-USTNNQUM.js → chunk-D6U47JOC.js} +2 -2
  244. package/__chunks__/{chunk-LTMZTSIV.js → chunk-D7KRCOOO.js} +2 -2
  245. package/__chunks__/{chunk-XL2KZPXW.js → chunk-DRVGERNC.js} +2 -2
  246. package/__chunks__/{chunk-GHGFJQYD.js → chunk-E547NXKJ.js} +2 -2
  247. package/__chunks__/{chunk-PFESU7MY.js → chunk-EIKQYCNV.js} +2 -2
  248. package/__chunks__/{chunk-5QNKWGJG.js → chunk-EL3NXJH7.js} +2 -2
  249. package/__chunks__/{chunk-3YPMO4YC.js → chunk-EN3UGD4S.js} +2 -2
  250. package/__chunks__/{chunk-HBWRPIXS.js → chunk-ENZOXTEE.js} +2 -2
  251. package/__chunks__/{chunk-RJ2BS4TT.js → chunk-F6Q5XTQ3.js} +2 -2
  252. package/__chunks__/{chunk-3T36IYKG.js → chunk-FBAWHW4S.js} +2 -2
  253. package/__chunks__/{chunk-JSDFKVTV.js → chunk-FBJRKU32.js} +2 -2
  254. package/__chunks__/{chunk-UYMAPWZG.js → chunk-FCWCJSXI.js} +2 -2
  255. package/__chunks__/{chunk-NGT4XA4A.js → chunk-FQZ354IS.js} +2 -2
  256. package/__chunks__/{chunk-K5OJ2S5S.js → chunk-FX73W4FN.js} +2 -2
  257. package/__chunks__/{chunk-SYGMUQ67.js → chunk-GUIEUVQK.js} +2 -2
  258. package/__chunks__/{chunk-DVHI2ELZ.js → chunk-GZJSHU2T.js} +2 -2
  259. package/__chunks__/chunk-HHVWCUSQ.js +2 -0
  260. package/__chunks__/{chunk-TSYEYJVB.js → chunk-I3ZYIT4V.js} +2 -2
  261. package/__chunks__/chunk-I5U46442.js +2 -0
  262. package/__chunks__/{chunk-QGRNA62L.js → chunk-ICKZONAW.js} +2 -2
  263. package/__chunks__/chunk-ICYA26GS.js +2 -0
  264. package/__chunks__/chunk-IDFXIKLI.js +2 -0
  265. package/__chunks__/{chunk-52XDHNJ7.js → chunk-IKQLVVRM.js} +2 -2
  266. package/__chunks__/{chunk-KGZROD5A.js → chunk-IZL5PG6T.js} +2 -2
  267. package/__chunks__/{chunk-5I3V6Q3U.js → chunk-J3WPJKFX.js} +2 -2
  268. package/__chunks__/{chunk-MP5NMWHP.js → chunk-J6WKHNVQ.js} +2 -2
  269. package/__chunks__/{chunk-5GQVW5DZ.js → chunk-J7UXVCU2.js} +2 -2
  270. package/__chunks__/{chunk-NZ5WTJKL.js → chunk-JPJYSJ6Z.js} +2 -2
  271. package/__chunks__/{chunk-KPYVNSR5.js → chunk-JQ7JXNJJ.js} +2 -2
  272. package/__chunks__/{chunk-R34W7NRN.js → chunk-JRGRIF5V.js} +2 -2
  273. package/__chunks__/{chunk-QDQMQ6FM.js → chunk-JXPJTJFZ.js} +2 -2
  274. package/__chunks__/chunk-KOLHA5NZ.js +2 -0
  275. package/__chunks__/{chunk-AVLJJPHU.js → chunk-KRWSSBVQ.js} +2 -2
  276. package/__chunks__/{chunk-CXS5GWPO.js → chunk-LXOC5XJ2.js} +2 -2
  277. package/__chunks__/{chunk-N2BF2PJL.js → chunk-LZVFLPEI.js} +2 -2
  278. package/__chunks__/chunk-M6TOZNVQ.js +2 -0
  279. package/__chunks__/{chunk-RTZD2L4D.js → chunk-MGJFZKF7.js} +2 -2
  280. package/__chunks__/{chunk-3NYS4OH5.js → chunk-MNKM45L2.js} +2 -2
  281. package/__chunks__/{chunk-QAF56ITX.js → chunk-MOZDKHE3.js} +2 -2
  282. package/__chunks__/{chunk-NUVFUNS6.js → chunk-N3UDJVQ3.js} +2 -2
  283. package/__chunks__/chunk-N7ANBXKQ.js +2 -0
  284. package/__chunks__/{chunk-RGMS5WVK.js → chunk-NARBEVJM.js} +2 -2
  285. package/__chunks__/{chunk-AAXLWQPW.js → chunk-NESSIC2G.js} +2 -2
  286. package/__chunks__/{chunk-DMYIJJ65.js → chunk-NH7LTMH2.js} +2 -2
  287. package/__chunks__/{chunk-MBRNY3AO.js → chunk-NROXNK6Y.js} +2 -2
  288. package/__chunks__/{chunk-BDEVJS4Q.js → chunk-NSCKC6S3.js} +2 -2
  289. package/__chunks__/{chunk-PQO3UDBB.js → chunk-OB3GKCGD.js} +2 -2
  290. package/__chunks__/{chunk-PO3JFKV5.js → chunk-OEKINNRM.js} +2 -2
  291. package/__chunks__/{chunk-RFDL6EZB.js → chunk-OLUNXARV.js} +2 -2
  292. package/__chunks__/{chunk-NRYF4IC3.js → chunk-OM5R3D3N.js} +2 -2
  293. package/__chunks__/{chunk-BIOMVPH7.js → chunk-OOTAOVR2.js} +2 -2
  294. package/__chunks__/{chunk-TWR2BZ3Y.js → chunk-ORXWC6HJ.js} +2 -2
  295. package/__chunks__/{chunk-BSTCDDUL.js → chunk-OT5WSHVV.js} +2 -2
  296. package/__chunks__/{chunk-UKAPEJCS.js → chunk-OUMS5DRS.js} +2 -2
  297. package/__chunks__/{chunk-V5ZTK3IQ.js → chunk-OUTCF4WG.js} +2 -2
  298. package/__chunks__/{chunk-FKY7ZAUF.js → chunk-OV44XQD3.js} +2 -2
  299. package/__chunks__/{chunk-EYUPBEVQ.js → chunk-OWQDSZZU.js} +2 -2
  300. package/__chunks__/{chunk-ZWQGEZMC.js → chunk-OXPHSKIA.js} +2 -2
  301. package/__chunks__/{chunk-DCLJWU5P.js → chunk-OZ44L3NL.js} +2 -2
  302. package/__chunks__/{chunk-TIJ4BUYC.js → chunk-PBH5OLQS.js} +2 -2
  303. package/__chunks__/{chunk-CX4QIUNX.js → chunk-PDBMJXJR.js} +2 -2
  304. package/__chunks__/{chunk-7DVC52NT.js → chunk-PGYMYQOJ.js} +2 -2
  305. package/__chunks__/{chunk-4GKBRNB2.js → chunk-Q33ZFLRC.js} +2 -2
  306. package/__chunks__/{chunk-4CYEO7XG.js → chunk-QBIBCA67.js} +2 -2
  307. package/__chunks__/{chunk-YPTAR6MR.js → chunk-QLNLAIGG.js} +2 -2
  308. package/__chunks__/{chunk-BUTUUXAE.js → chunk-RCBXFPQK.js} +2 -2
  309. package/__chunks__/{chunk-TCEH42PL.js → chunk-RNM7PXSW.js} +2 -2
  310. package/__chunks__/{chunk-3QZ23D6D.js → chunk-RO2U43H7.js} +2 -2
  311. package/__chunks__/{chunk-ECQ5NXDU.js → chunk-RPKJW3CG.js} +2 -2
  312. package/__chunks__/{chunk-U5RE2P2I.js → chunk-S6PDOF7W.js} +2 -2
  313. package/__chunks__/{chunk-PT4AQROW.js → chunk-S7SH3VIT.js} +2 -2
  314. package/__chunks__/chunk-SGDTU5BT.js +2 -0
  315. package/__chunks__/chunk-SVXDW5WX.js +2 -0
  316. package/__chunks__/{chunk-NXS34BHR.js → chunk-SYA4G4LP.js} +2 -2
  317. package/__chunks__/{chunk-5JIJ5APC.js → chunk-SYVIHA6Q.js} +2 -2
  318. package/__chunks__/{chunk-NRDZJGJG.js → chunk-T5OUCAS3.js} +2 -2
  319. package/__chunks__/{chunk-TCXID2PN.js → chunk-TBHOJZY6.js} +2 -2
  320. package/__chunks__/{chunk-G7T6WXN7.js → chunk-TIAWVL7W.js} +2 -2
  321. package/__chunks__/{chunk-MWY5CSMR.js → chunk-TJ765N7A.js} +2 -2
  322. package/__chunks__/{chunk-3IL3RKEJ.js → chunk-TZ73PSCY.js} +2 -2
  323. package/__chunks__/{chunk-GUZM6YZB.js → chunk-UCE2LGYE.js} +2 -2
  324. package/__chunks__/{chunk-65QMSEFO.js → chunk-UE3VCJRJ.js} +2 -2
  325. package/__chunks__/{chunk-AINYVUFT.js → chunk-UFBH3DCN.js} +2 -2
  326. package/__chunks__/{chunk-7F3C34W5.js → chunk-UILMHWRL.js} +2 -2
  327. package/__chunks__/{chunk-XYMORLYV.js → chunk-USKPZSRZ.js} +2 -2
  328. package/__chunks__/{chunk-TZB35CAO.js → chunk-USVJYC5J.js} +2 -2
  329. package/__chunks__/{chunk-4DI44IVL.js → chunk-UUO5F23Q.js} +2 -2
  330. package/__chunks__/{chunk-3W6BZTZA.js → chunk-UWAF5HX3.js} +2 -2
  331. package/__chunks__/{chunk-R3QBPBUZ.js → chunk-UXPXOQ3O.js} +2 -2
  332. package/__chunks__/{chunk-YSB5YFZW.js → chunk-V4DM6PYN.js} +2 -2
  333. package/__chunks__/{chunk-A7LDKPHO.js → chunk-V76USEXS.js} +2 -2
  334. package/__chunks__/{chunk-JWU4IPKD.js → chunk-VD7EFOLS.js} +2 -2
  335. package/__chunks__/{chunk-B5NSBKLJ.js → chunk-VOA7IDNL.js} +2 -2
  336. package/__chunks__/{chunk-LHFIJUBQ.js → chunk-VQA7KKLD.js} +2 -2
  337. package/__chunks__/{chunk-URH533OD.js → chunk-VSEMZVXW.js} +2 -2
  338. package/__chunks__/{chunk-FUOCLYMO.js → chunk-W54ULCX3.js} +2 -2
  339. package/__chunks__/{chunk-KFLKODIP.js → chunk-WDVSSRVY.js} +2 -2
  340. package/__chunks__/{chunk-NPD5FDW7.js → chunk-WFD437RH.js} +2 -2
  341. package/__chunks__/{chunk-DQIMFUNV.js → chunk-WHUPPQX7.js} +2 -2
  342. package/__chunks__/{chunk-N2RR6CGL.js → chunk-WN34EPCX.js} +2 -2
  343. package/__chunks__/{chunk-COC6QPDC.js → chunk-WTUXHRKU.js} +2 -2
  344. package/__chunks__/{chunk-42MPM5IY.js → chunk-WUXIPUMT.js} +2 -2
  345. package/__chunks__/{chunk-WOU4OHGA.js → chunk-WVCTS7Q4.js} +2 -2
  346. package/__chunks__/{chunk-KVDQUESG.js → chunk-WVWNXQN2.js} +2 -2
  347. package/__chunks__/chunk-WXOTRYY6.js +2 -0
  348. package/__chunks__/chunk-X4UQ4MSN.js +2 -0
  349. package/__chunks__/{chunk-W4KWHPXS.js → chunk-XFNBVAQR.js} +2 -2
  350. package/__chunks__/{chunk-4FZXS35O.js → chunk-XGF5UAWO.js} +2 -2
  351. package/__chunks__/{chunk-IYJ25ICK.js → chunk-XQRFVP5Z.js} +2 -2
  352. package/__chunks__/{chunk-7O2K3V6M.js → chunk-XZTV73KB.js} +2 -2
  353. package/__chunks__/{chunk-VGHDFHOS.js → chunk-Y3O6IW46.js} +2 -2
  354. package/__chunks__/chunk-Y67NJMTN.js +2 -0
  355. package/__chunks__/{chunk-UICXUR6D.js → chunk-Y7HTQ37K.js} +2 -2
  356. package/__chunks__/{chunk-SVWPO4PO.js → chunk-YCJ63S2U.js} +2 -2
  357. package/__chunks__/{chunk-QIM45JTS.js → chunk-YGAFCO6X.js} +2 -2
  358. package/__chunks__/{chunk-QADJDUXZ.js → chunk-YGX4EBA7.js} +2 -2
  359. package/__chunks__/{chunk-C4TJX5OG.js → chunk-YLZYMSPW.js} +2 -2
  360. package/__chunks__/{chunk-SAGPE4BP.js → chunk-YM3CCXNX.js} +2 -2
  361. package/__chunks__/{chunk-AA55R7KA.js → chunk-YNR6SH4N.js} +2 -2
  362. package/__chunks__/{chunk-TO4GNQE5.js → chunk-YV236JFC.js} +2 -2
  363. package/__chunks__/{chunk-VLGDF6FG.js → chunk-YV4VEOUX.js} +2 -2
  364. package/__chunks__/{chunk-JTRW5QQG.js → chunk-Z2GQ6R2T.js} +2 -2
  365. package/__chunks__/{chunk-APFHWQGZ.js → chunk-ZBEJ2YD7.js} +2 -2
  366. package/__chunks__/{chunk-B2WAZ6SS.js → chunk-ZGHJCMGW.js} +2 -2
  367. package/__chunks__/{chunk-LZLOGJOG.js → chunk-ZMSOXYSX.js} +2 -2
  368. package/__chunks__/{chunk-IK4IS5KS.js → chunk-ZV6DH37S.js} +2 -2
  369. package/__chunks__/{chunk-5CYL34SW.js → chunk-ZV73WKN5.js} +2 -2
  370. package/__chunks__/{chunk-NQXX6STP.js → chunk-ZYN7ZAB3.js} +2 -2
  371. package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  372. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
  373. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/ConfirmFee.js +3 -3
  374. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/index.js +3 -3
  375. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  376. package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
  377. package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  378. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
  379. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  380. package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  381. package/__commonjs/UI/SignTransactionsModals/components/index.js +1 -1
  382. package/__commonjs/UI/SignTransactionsModals/index.js +1 -1
  383. package/__commonjs/UI/TransactionsTable/TransactionsTable.js +2 -2
  384. package/__commonjs/UI/TransactionsTable/index.js +2 -2
  385. package/__commonjs/UI/index.js +2 -2
  386. package/__commonjs/__mocks__/index.js +1 -1
  387. package/__commonjs/__mocks__/utils/index.js +1 -1
  388. package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
  389. package/__commonjs/hooks/index.js +1 -1
  390. package/__commonjs/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
  391. package/__commonjs/hooks/transactions/helpers/index.js +1 -1
  392. package/__commonjs/hooks/transactions/index.js +1 -1
  393. package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
  394. package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  395. package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  396. package/__commonjs/providers/experimentalWebViewProvider/ExperimentalWebviewProvider.js +1 -1
  397. package/__commonjs/providers/experimentalWebViewProvider/index.js +1 -1
  398. package/__commonjs/utils/index.js +1 -1
  399. package/__commonjs/utils/transactions/builtCallbackUrl.js +1 -1
  400. package/__commonjs/utils/transactions/index.js +1 -1
  401. package/__commonjs/wrappers/DappProvider/CustomComponents.d.ts +4 -0
  402. package/__commonjs/wrappers/DappProvider/CustomComponents.js +1 -1
  403. package/__commonjs/wrappers/DappProvider/DappProvider.js +1 -1
  404. package/__commonjs/wrappers/DappProvider/index.js +1 -1
  405. package/__commonjs/wrappers/index.js +1 -1
  406. package/__mocks__/index.js +1 -1
  407. package/__mocks__/utils/index.js +1 -1
  408. package/__mocks__/utils/renderWithProvider.js +1 -1
  409. package/apiCalls/accounts/getAccountFromApi.js +1 -1
  410. package/apiCalls/accounts/index.js +1 -1
  411. package/apiCalls/configuration/getNetworkConfig.js +1 -1
  412. package/apiCalls/configuration/index.js +1 -1
  413. package/apiCalls/economics/getEconomicsInfo.js +1 -1
  414. package/apiCalls/economics/index.js +1 -1
  415. package/apiCalls/getScamAddressData.js +1 -1
  416. package/apiCalls/index.js +1 -1
  417. package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  418. package/apiCalls/transactions/index.js +1 -1
  419. package/apiCalls/transactions/sendSignedBatchTransactions.js +1 -1
  420. package/apiCalls/transactions/sendSignedTransactions.js +1 -1
  421. package/apiCalls/utils/getCleanApiAddress.js +1 -1
  422. package/apiCalls/utils/index.js +1 -1
  423. package/components/LogoutListener/LogoutListener.js +1 -1
  424. package/components/LogoutListener/helpers/index.js +1 -1
  425. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  426. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  427. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  428. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  429. package/components/LogoutListener/index.js +1 -1
  430. package/components/ProviderInitializer/ProviderInitializer.js +1 -1
  431. package/components/ProviderInitializer/helpers/index.js +1 -1
  432. package/components/ProviderInitializer/helpers/processModifiedAccount.js +1 -1
  433. package/components/ProviderInitializer/hooks/index.js +1 -1
  434. package/components/ProviderInitializer/hooks/useSetLedgerProvider.js +1 -1
  435. package/components/ProviderInitializer/index.js +1 -1
  436. package/components/TransactionSender/TransactionSender.js +1 -1
  437. package/components/TransactionSender/index.js +1 -1
  438. package/components/TransactionSender/utils/invokeSendTransactions.js +1 -1
  439. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  440. package/components/TransactionsTracker/index.js +1 -1
  441. package/hooks/account/index.js +1 -1
  442. package/hooks/account/useGetAccount.js +1 -1
  443. package/hooks/account/useGetAccountFromApi.js +1 -1
  444. package/hooks/account/useGetAccountInfo.js +1 -1
  445. package/hooks/account/useGetIsLoggedIn.js +1 -1
  446. package/hooks/account/useGetIsWalletConnectV2Initialized.js +1 -1
  447. package/hooks/account/useGetLoginInfo.js +1 -1
  448. package/hooks/account/useGetWebsocketEvent.js +1 -1
  449. package/hooks/economics/index.js +1 -1
  450. package/hooks/economics/useGetEgldPrice.js +1 -1
  451. package/hooks/index.js +1 -1
  452. package/hooks/login/index.js +1 -1
  453. package/hooks/login/useCrossWindowLogin.js +1 -1
  454. package/hooks/login/useExtensionLogin.js +1 -1
  455. package/hooks/login/useGetModalLoginMethods.js +1 -1
  456. package/hooks/login/useLedgerLogin.js +1 -1
  457. package/hooks/login/useLoginService.js +1 -1
  458. package/hooks/login/useOperaLogin.js +1 -1
  459. package/hooks/login/useWalletConnectV2Login.js +1 -1
  460. package/hooks/login/useWebViewLogin.js +1 -1
  461. package/hooks/login/useWebWalletLogin.js +1 -1
  462. package/hooks/login/useXaliasLogin.js +1 -1
  463. package/hooks/signMessage/index.js +1 -1
  464. package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  465. package/hooks/signMessage/useGetSignMessageSession.js +1 -1
  466. package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
  467. package/hooks/signMessage/useSignMessage.js +1 -1
  468. package/hooks/toasts/index.js +1 -1
  469. package/hooks/toasts/useGetToasts.js +1 -1
  470. package/hooks/toasts/useTransactionsToasts.js +1 -1
  471. package/hooks/transactions/batch/tracker/useBatchTransactionsTracker.js +1 -1
  472. package/hooks/transactions/batch/tracker/useCheckBatch.js +1 -1
  473. package/hooks/transactions/batch/tracker/useCheckBatchesOnWsFailureFallback.js +1 -1
  474. package/hooks/transactions/batch/tracker/useCheckHangingBatchesFallback.js +1 -1
  475. package/hooks/transactions/batch/tracker/useUpdateBatch.js +1 -1
  476. package/hooks/transactions/batch/tracker/useVerifyBatchStatus.js +1 -1
  477. package/hooks/transactions/batch/useGetBatchStatus.js +1 -1
  478. package/hooks/transactions/batch/useResolveBatchStatusResponse.js +1 -1
  479. package/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
  480. package/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
  481. package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
  482. package/hooks/transactions/helpers/index.js +1 -1
  483. package/hooks/transactions/helpers/useGetLedgerProvider.js +1 -1
  484. package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
  485. package/hooks/transactions/index.js +1 -1
  486. package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
  487. package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  488. package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  489. package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  490. package/hooks/transactions/useGetFailedTransactions.js +1 -1
  491. package/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
  492. package/hooks/transactions/useGetPendingTransactions.js +1 -1
  493. package/hooks/transactions/useGetSignTransactionsError.js +1 -1
  494. package/hooks/transactions/useGetSignedTransactions.js +1 -1
  495. package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  496. package/hooks/transactions/useGetTokenDetails.js +1 -1
  497. package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
  498. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  499. package/hooks/transactions/useSignMultipleTransactions.js +1 -1
  500. package/hooks/transactions/useSignTransactions.js +1 -1
  501. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  502. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  503. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  504. package/hooks/transactions/useTrackTransactionStatus.js +1 -1
  505. package/hooks/transactions/useTransactionsTracker.js +1 -1
  506. package/hooks/useGetNetworkConfig.js +1 -1
  507. package/hooks/useGetNotification.js +1 -1
  508. package/hooks/websocketListener/index.js +1 -1
  509. package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
  510. package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  511. package/package.json +1 -1
  512. package/providers/experimentalWebViewProvider/ExperimentalWebviewProvider.js +1 -1
  513. package/providers/experimentalWebViewProvider/index.js +1 -1
  514. package/reduxStore/selectors/index.js +1 -1
  515. package/reduxStore/selectors/transactionsSelectors.js +1 -1
  516. package/services/index.js +1 -1
  517. package/services/nativeAuth/helpers/getAuthorizationInfo.js +1 -1
  518. package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
  519. package/services/nativeAuth/helpers/index.js +1 -1
  520. package/services/transactions/clearTransactions.js +1 -1
  521. package/services/transactions/getBatchTransactionsStatus.js +1 -1
  522. package/services/transactions/getTransactionsDetails.js +1 -1
  523. package/services/transactions/index.js +1 -1
  524. package/services/transactions/sendBatchTransactions.js +1 -1
  525. package/services/transactions/sendBatchTransactions.test.js +1 -1
  526. package/services/transactions/sendTransactions.js +1 -1
  527. package/services/transactions/transformAndSignTransactions.js +1 -1
  528. package/services/transactions/utils/transformTransactionsToSign.js +1 -1
  529. package/utils/account/getAccount.js +1 -1
  530. package/utils/account/getAccountBalance.js +1 -1
  531. package/utils/account/getAccountShard.js +1 -1
  532. package/utils/account/getAddress.js +1 -1
  533. package/utils/account/getLatestNonce.js +1 -1
  534. package/utils/account/index.js +1 -1
  535. package/utils/account/refreshAccount.js +1 -1
  536. package/utils/account/signMessage.js +1 -1
  537. package/utils/getIsLoggedIn.js +1 -1
  538. package/utils/index.js +1 -1
  539. package/utils/logout.js +1 -1
  540. package/utils/network/getChainID.js +1 -1
  541. package/utils/network/getEgldLabel.js +1 -1
  542. package/utils/network/getNetworkConfig.js +1 -1
  543. package/utils/network/index.js +1 -1
  544. package/utils/transactions/batch/updateBatchTransactionsStatuses.js +1 -1
  545. package/utils/transactions/builtCallbackUrl.js +1 -1
  546. package/utils/transactions/getAllTransactionsLink.js +1 -1
  547. package/utils/transactions/getOperationsDetails.js +1 -1
  548. package/utils/transactions/getTransactionLink.js +1 -1
  549. package/utils/transactions/index.js +1 -1
  550. package/utils/waitForChainID.js +1 -1
  551. package/web/hooks/index.js +1 -1
  552. package/web/hooks/useIdleTimer.js +1 -1
  553. package/web/index.js +1 -1
  554. package/wrappers/AppInitializer.js +1 -1
  555. package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
  556. package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  557. package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
  558. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
  559. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
  560. package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  561. package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  562. package/wrappers/AxiosInterceptorContext/index.js +1 -1
  563. package/wrappers/DappProvider/CustomComponents.d.ts +4 -0
  564. package/wrappers/DappProvider/CustomComponents.js +1 -1
  565. package/wrappers/DappProvider/DappProvider.js +1 -1
  566. package/wrappers/DappProvider/index.js +1 -1
  567. package/wrappers/index.js +1 -1
  568. package/__chunks__/chunk-AS5CK2I7.js +0 -2
  569. package/__chunks__/chunk-DDQ7GQWT.js +0 -2
  570. package/__chunks__/chunk-DRPHUSWD.js +0 -2
  571. package/__chunks__/chunk-E33Y4SXC.js +0 -2
  572. package/__chunks__/chunk-E3HK3TPN.js +0 -2
  573. package/__chunks__/chunk-E4YIGJQU.js +0 -2
  574. package/__chunks__/chunk-EP7DI5RY.js +0 -2
  575. package/__chunks__/chunk-HPMMRZA7.js +0 -2
  576. package/__chunks__/chunk-LHSEDSMQ.js +0 -2
  577. package/__chunks__/chunk-OG25SM7U.js +0 -2
  578. package/__chunks__/chunk-PM7DGSVR.js +0 -2
  579. package/__chunks__/chunk-TEFYK7YY.js +0 -2
  580. package/__chunks__/chunk-Y6NSQSWB.js +0 -2
@@ -2759,7 +2759,7 @@ a.dapp-core-component__main__side-link::after {
2759
2759
  color: #212529;
2760
2760
  background-color: #dee2e6;
2761
2761
  border-color: #e9ecef;
2762
- }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(h_));uS={dappModal:"dapp-core-component__dappModalStyles__dappModal",dappModalContent:"dapp-core-component__dappModalStyles__dappModalContent",dappModalHeader:"dapp-core-component__dappModalStyles__dappModalHeader",dappModalHeaderText:"dapp-core-component__dappModalStyles__dappModalHeaderText",dappModalBody:"dapp-core-component__dappModalStyles__dappModalBody",dappModalFooter:"dapp-core-component__dappModalStyles__dappModalFooter",dappModalCloseButton:"dapp-core-component__dappModalStyles__dappModalCloseButton"}});var US={};Ge(US,{AppInitializer:()=>Xa,AuthenticatedRoutesWrapper:()=>jp,AxiosInterceptor:()=>Za,AxiosInterceptorContext:()=>Ih,AxiosInterceptorContextProvider:()=>Ja,DappProvider:()=>FS,LoginInfoListener:()=>Ya,useAppInitializer:()=>um,useAxiosInterceptorContext:()=>sn});module.exports=ve(US);t();t();t();var qn=b(require("react"));t();var rp=require("react"),Zo=require("react-redux");t();var Ea=require("@reduxjs/toolkit"),op=require("react-redux/lib/utils/Subscription");P();t();var Oc=b(require("lodash.throttle"));E();P();da();Ko();Io();var Vg=[Tt],Gt=!1,$g=(0,Oc.default)(()=>{Rn(Nn())},5e3),Bc=e=>o=>n=>{if(Vg.includes(n.type))return o(n);let r=e.getState(),c=Pe.local.getItem(ge.loginExpiresAt);if(!Boolean(r==null?void 0:r.account.address))return o(n);if(c==null)return Rn(Nn());let m=Date.now();return c-m<0&&!Gt?setTimeout(()=>{Gt=!0,e.dispatch(Zs())},1e3):(Gt&&(Gt=!1),$g()),o(n)};t();t();function Ht(){return typeof sessionStorage!="undefined"}var Zc=Ht()?(Vc(),ve(Hc)).default:(qc(),ve($c)).default,Qc=Ht()?(jc(),ve(zc)).default:[],ep=Ht()?(Yc(),ve(Jc)).default:e=>e;Vt();var S=(0,Ea.configureStore)({reducer:Zc,middleware:e=>e({serializableCheck:{ignoredActions:[...Qc,wt.type,mo.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Bc)}),np=(0,op.createSubscription)(S),tp=ep(S),cv=(0,Ea.configureStore)({reducer:No});var uf={store:S,subscription:np},Un=(0,rp.createContext)(uf),lv=(0,Zo.createStoreHook)(Un),N=(0,Zo.createDispatchHook)(Un),y=(0,Zo.createSelectorHook)(Un);t();t();P();t();var ap=b(require("lodash.isequal")),$t=require("reselect"),v=(0,$t.createSelectorCreator)($t.defaultMemoize,ap.default);var De=e=>e.account,Se=v(De,e=>e.address),Xe=v(De,Se,(e,o)=>o in e.accounts?e.accounts[o]:bt),ip=v(De,Xe,(e,o)=>{let c=e,{accounts:n}=c,r=We(c,["accounts"]);return k(h({},r),{address:o.address,account:o})}),gf=v(Xe,e=>e.balance),sp=v(Xe,e=>{var o;return((o=e==null?void 0:e.nonce)==null?void 0:o.valueOf())||0}),hv=v(De,e=>e.shard),Pa=v(De,e=>e.ledgerAccount),Tv=v(De,e=>e.walletConnectAccount),cp=v(De,e=>e.isAccountLoading),yv=v(De,e=>e.accountLoadingError),Ca=v(De,e=>e.websocketEvent),pp=v(De,e=>e.websocketBatchEvent);t();var mp=e=>e.dappConfig,dp=v(mp,e=>e.shouldUseWebViewProvider);t();var J=e=>e.loginInfo,qt=v(J,e=>e.loginMethod),be=v(J,Se,(e,o)=>Boolean(o)),lp=v(J,e=>e.walletConnectLogin),zt=v(J,e=>e.ledgerLogin),Qo=v(J,e=>e.walletLogin),_p=v(J,e=>e.isLoginSessionInvalid),en=v(J,e=>e.tokenLogin),_o=v(J,e=>e.logoutRoute),ff=v(J,e=>e.isWalletConnectV2Initialized);t();var up=e=>e.modals,kv=v(up,e=>e.txSubmittedModal),hf=v(up,e=>e.notificationModal);t();var Me=e=>e.networkConfig,Ro=v(Me,e=>e.chainID),Pv=v(Me,e=>e.network.walletConnectBridgeAddress),gp=v(Me,e=>e.network.walletConnectV2RelayAddress),fp=v(Me,e=>e.network.walletConnectV2ProjectId),hp=v(Me,e=>e.network.walletConnectV2Options),Tp=v(Me,e=>e.network.walletConnectDeepLink),K=v(Me,e=>e.network),Wn=v(K,e=>e.apiAddress),yp=v(K,e=>e.explorerAddress),jt=v(K,e=>{var o;return(o=e.customWalletAddress)!=null?o:e.walletAddress}),Tf=v(K,e=>e.xAliasAddress),xp=v(K,e=>e.egldLabel);t();var Kt=e=>e.signedMessageInfo,Rv=v(Kt,e=>e.isSigning),Dv=v(Kt,e=>e.errorMessage),Mv=v(Kt,e=>{let o=Object.keys(e.signedSessions),n=o.length;return e.signedSessions[o[n-1]]}),Ov=v(Kt,e=>{let o=Object.keys(e.signedSessions),n=o.length;return o.length>0?o[n-1]:""});t();var Sp=e=>e.toasts,yf=v(Sp,e=>e.customToasts),bp=v(Sp,e=>e.transactionToasts);t();P();var wp={errorMessage:ya,successMessage:xa,processingMessage:Sa},vp=e=>e.transactionsInfo,xf=v(vp,(e,o)=>o,(e,o)=>o!=null&&(e==null?void 0:e[Number(o)])||wp);t();t();var Oe=require("@multiversx/sdk-core");E();t();var Na=require("@multiversx/sdk-core/out");t();t();function Xt(e){try{let o=atob(e),n=btoa(o),r=a.Buffer.from(e,"base64").toString(),c=a.Buffer.from(r).toString("base64"),p=e===n||n.startsWith(e),m=e===c||c.startsWith(e);if(p&&m)return!0}catch(o){return!1}return!1}function Do(e){return Xt(e)?atob(e):e}t();t();t();t();var Ap=e=>{let o=e!=null?e:"";return Xt(o)?Na.TransactionPayload.fromEncoded(o):new Na.TransactionPayload(o)};t();E();var Gn=({data:e,onlySetGuardian:o})=>e?o?e.startsWith("SetGuardian"):Object.values(Qr).some(n=>e.startsWith(n)):!1;function on(e){var r,c,p;let o=Object.assign({},e);Gn({data:o.data,onlySetGuardian:!0})&&(delete o.senderUsername,delete o.receiverUsername);let n=new Oe.Transaction(h(h(k(h(k(h({value:o.value.valueOf(),data:Ap(o.data),nonce:o.nonce.valueOf(),receiver:new Oe.Address(o.receiver)},o.receiverUsername?{receiverUsername:o.receiverUsername}:{}),{sender:new Oe.Address(o.sender)}),o.senderUsername?{senderUsername:o.senderUsername}:{}),{gasLimit:(r=o.gasLimit.valueOf())!=null?r:Pn,gasPrice:(c=o.gasPrice.valueOf())!=null?c:ht,chainID:o.chainID.valueOf(),version:new Oe.TransactionVersion((p=o.version)!=null?p:Cs)}),o.options?{options:new Oe.TransactionOptions(o.options)}:{}),o.guardian?{guardian:new Oe.Address(o.guardian)}:{}));return o.guardianSignature&&n.applyGuardianSignature(a.Buffer.from(o.guardianSignature,"hex")),o.signature&&n.applySignature(a.Buffer.from(o.signature,"hex")),n}t();t();E();t();t();t();var wf=require("@multiversx/sdk-core/out");t();E();t();var kp=require("@multiversx/sdk-core");M();t();var Ip=require("@multiversx/sdk-core");function vf(e){try{let o=new Ip.Address(e);return Boolean(o.bech32())}catch(o){return!1}}function Hn(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&vf(e)}t();t();t();var Af=require("@multiversx/sdk-core"),If=b(require("bignumber.js"));U();t();t();t();var Jt="accounts";var Ra="blocks";var Pp="dapp/config";var Cp="network/config";var Yt="batch";t();t();t();t();ce();t();t();ce();t();t();t();var Nf=b(require("bignumber.js"));E();t();var Cf=require("@multiversx/sdk-core"),Da=b(require("bignumber.js"));E();t();var Dp=b(require("bignumber.js")),Qt=(e,o=!0)=>{let n=String(e);if(!n.match(/^[-]?\d+$/))return!1;let r=new Dp.default(n),c=o?0:-1;return r.toString(10)===n&&r.comparedTo(0)>=c};t();Da.default.config({ROUNDING_MODE:Da.default.ROUND_FLOOR});t();t();t();E();t();t();t();t();E();t();E();t();var Rf=require("@multiversx/sdk-core");E();t();var $n=require("@multiversx/sdk-core"),Bf=b(require("bignumber.js"));E();t();t();var Df=b(require("bignumber.js"));E();t();E();t();t();t();t();t();t();E();t();E();t();E();t();ce();var Uf=["reDelegateRewards","claimRewards","unBond"],Wf=["wrapEgld","unwrapEgld"],Gf=["unStake"],Hf=["unDelegate"];t();t();t();E();t();var zf=b(require("bignumber.js"));t();t();ce();t();var Kf=b(require("bignumber.js"));t();t();t();t();var Yf=b(require("bignumber.js"));M();t();t();t();t();U();t();var Bp=require("@multiversx/sdk-web-wallet-provider");E();t();var Op=b(require("qs"));t();t();t();t();t();var ne=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined";var O=()=>{if(!ne())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:o,hash:n,origin:r,href:c,search:p}}=window;return{pathname:o,hash:n,origin:r,href:c,search:p}};var er=(e="")=>{let o=O(),n=e.startsWith("http")||e.startsWith("www.");return!o.origin||e.startsWith(o.origin)||n?e:`${o.origin}/${e.replace("/","")}`};t();var or=e=>{let o=new URLSearchParams(e).toString(),{pathname:n,hash:r}=O(),c=o?`?${o}`:"",p=n?`${n}${c}${r}`:"./";setTimeout(()=>{window==null||window.history.replaceState({},document==null?void 0:document.title,p)})};t();var Zf={search:ne()?window.location.search:"",removeParams:[]},nr=(e,o=Zf)=>{var m;let n={},r=ne()?window.location.search:"",c=(m=o.search)!=null?m:r;if(c){let l=c?new URLSearchParams(c):[];n=Object.fromEntries(l)}let p={};return e.forEach(l=>{p[l]=n[l],delete n[l]}),o.removeParams!=null&&Object.keys(n).forEach(l=>{var _,T;let[d]=l.split("[");(((_=o.removeParams)==null?void 0:_.includes(l))||((T=o.removeParams)==null?void 0:T.includes(d)))&&delete n[l]}),{remainingParams:p,params:n,clearNavigationHistory:()=>or(n)}};var Ba=({removeParams:e,search:o})=>{let n=ne()?window.location.search:"",r=o!=null?o:n;if(!r)return{};let c=Op.default.parse(r.replace("?","")),p=Object.keys(c).filter(l=>!e.includes(l)),{remainingParams:m}=nr(p,{search:o,removeParams:e});return or(m),m};var Fa=({transaction:e,search:o})=>Ba({removeParams:[...Object.keys(e),Bp.WALLET_PROVIDER_CALLBACK_PARAM,Cn,ta],search:o});t();t();t();t();ce();t();t();t();var Qf=b(require("linkifyjs"));t();E();t();var eh=b(require("bignumber.js"));t();M();t();t();U();t();U();t();t();t();ce();t();ce();t();var oh=b(require("bignumber.js"));E();ce();t();ce();t();var Up=require("react");M();t();t();ce();t();t();var nh=require("@multiversx/sdk-core/out"),th=b(require("bignumber.js"));ce();t();M();t();t();M();var hP=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];t();var Wp=require("react");M();t();var ah=require("react");ce();var AP=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Yo();t();var rr=e=>e.transactions,Ye=v(rr,e=>e.signedTransactions),ih=v(rr,e=>e.signTransactionsError),Gp=v(rr,e=>e.signTransactionsCancelMessage),ar=e=>o=>Object.entries(o).reduce((n,[r,c])=>(e(c.status)&&(n[r]=c),n),{}),Ua=v(Ye,ar(je)),Hp=v(Ye,ar(Eo)),Vp=v(Ye,ar(Po)),sh=v(Ye,ar(wa)),$p=v(rr,e=>{var o;return(e==null?void 0:e.transactionsToSign)==null?null:k(h({},e.transactionsToSign),{transactions:((o=e==null?void 0:e.transactionsToSign)==null?void 0:o.transactions.map(n=>on(n)))||[]})}),ch=v(Ye,(e,o)=>o,(e,o)=>o!=null?(e==null?void 0:e[o])||{}:{});t();var ir=()=>{let{search:e}=O(),o=new URLSearchParams(e),n=Object.fromEntries(o),r=n==null?void 0:n.address;return Hn(r)?r:null};ko();t();t();function qp(e,o){if(!e){typeof console!="undefined"&&console.warn(o);try{throw new Error(o)}catch(n){}}}function sr(e,o){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ph(e.path,e.caseSensitive,e.end),c=o.match(n);if(!c)return null;let p=c[0],m=p.replace(/(.)\/+$/,"$1"),l=c.slice(1);return{params:r.reduce((_,T,g)=>{if(T==="*"){let x=l[g]||"";m=p.slice(0,p.length-x.length).replace(/(.)\/+$/,"$1")}return _[T]=mh(l[g]||"",T),_},{}),pathname:p,pathnameBase:m,pattern:e}}function ph(e,o=!1,n=!0){qp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],c="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(m,l)=>(r.push(l),"([^\\/]+)"));return e.endsWith("*")?(r.push("*"),c+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(c,o?void 0:"i"),r]}function mh(e,o){try{return decodeURIComponent(e)}catch(n){return qp(!1,`The value for the URL param "${o}" will not be decoded because the string "${e}" is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}var zp=(e,o)=>e.filter(({authenticatedRoute:c})=>Boolean(c)).some(({path:c})=>sr(c,o)!==null);var jp=({children:e,routes:o,pathName:n,unlockRoute:r,onRedirect:c})=>{let p=ir(),m=y(be),l=y(cp),d=y(Qo),_=()=>ne()?window.location.pathname:"",g=zp(o,n!=null?n:_())&&!m&&d==null;(0,qn.useEffect)(()=>{if(!!g){if(c)return c(r);ze({url:r})}},[g,r]);let x=d!=null&&p;return l||x?null:qn.default.createElement(qn.default.Fragment,null,e)};t();var Fe=require("react"),_m=require("@multiversx/sdk-core/out");t();t();t();var Kp=b(require("axios"));function cr(e){return u(this,null,function*(){let{apiAddress:o,apiTimeout:n}=K(S.getState()),r=e.map(p=>Kp.default.post(`${o}/transactions`,p.toPlainObject(),{timeout:parseInt(n)}));return(yield Promise.all(r)).map(({data:p})=>p.txHash)})}t();var Xp=b(require("axios"));po();t();E();var zn=({sessionId:e,address:o})=>`${e}${yt}${o}`;function pr(n){return u(this,arguments,function*({transactions:e,sessionId:o}){var m;let r=Se(S.getState()),{apiAddress:c,apiTimeout:p}=K(S.getState());if(!r)return{error:"Invalid address provided. You need to be logged in to send transactions",batchId:null};try{let l=zn({sessionId:o,address:r}),d={transactions:e,id:l},_=yield Xp.default.post(`${c}/${Yt}`,d,{timeout:Number(p!=null?p:gt)});return{batchId:l,data:_.data}}catch(l){return console.error("error sending batch transactions",l),{error:(m=l==null?void 0:l.message)!=null?m:"error sending batch transactions",batchId:null}}})}t();var Wa=b(require("axios"));function mr(e){return u(this,null,function*(){let o=Wn(S.getState()),n=e.map(c=>c.hash),{data:r}=yield Wa.default.get(`${o}/transactions`,{params:{hashes:n.join(","),withScResults:!0}});return e.map(({hash:c,previousStatus:p})=>{let m=r.find(l=>(l==null?void 0:l.txHash)===c);return{hash:c,data:m==null?void 0:m.data,invalidTransaction:m==null,status:m==null?void 0:m.status,results:m==null?void 0:m.results,sender:m==null?void 0:m.sender,receiver:m==null?void 0:m.receiver,previousStatus:p,hasStatusChanged:m&&m.status!==p}})})}function Jp(e){return u(this,null,function*(){let o=Wn(S.getState());return yield Wa.default.get(`${o}/transactions/${e}`,{timeout:1e4})})}t();var lh=b(require("axios"));t();t();var _h=b(require("axios"));t();var uh=b(require("axios"));t();t();t();t();var Zp=require("@lifeomic/axios-fetch"),Ga=b(require("axios")),Ha=(0,Zp.buildAxiosFetch)(Ga.default),Va=(e,o)=>u(void 0,null,function*(){if(!e.ok)throw new Error(`HTTP error! Status: ${e.status}`);let r=e.clone().json(),[c]=yield Promise.all([r]);return{data:c,status:e.status,statusText:e.statusText,headers:e.headers,config:o}});function gh(e,o,n){return u(this,null,function*(){try{let r=yield Ha(e,h({method:"POST",body:o?JSON.stringify(o):void 0,headers:h({"Content-Type":"application/json"},(n==null?void 0:n.headers)||{})},n));return Va(r,n)}catch(r){throw console.error("Fetch Error:",r),r}})}function fh(e,o){return u(this,null,function*(){try{let n=yield Ha(e,o);if(!n.ok)throw new Error(`HTTP error! Status: ${n.status}`);return Va(n,o)}catch(n){throw console.error("Fetch Error:",n),n}})}function hh(e,o,n){return u(this,null,function*(){try{let r=yield Ha(e,h({method:"PATCH",body:o?JSON.stringify(o):void 0,headers:(n==null?void 0:n.headers)||{}},n));if(!r.ok)throw new Error(`HTTP error! Status: ${r.status}`);return Va(r,n)}catch(r){throw console.error("Fetch Error:",r),r}})}var jn=Ga.default.create();jn.get=fh;jn.post=gh;jn.patch=hh;t();t();var Kn=e=>{let o=e!=null?e:Wn(S.getState());return o.endsWith("/")?o.slice(0,-1):o};var Qp=e=>{let n=`${Kn()}/${Jt}/${e}?withGuardianInfo=true`;return jn.get(n)};function em(e){return u(this,null,function*(){if(!e)return null;try{let{data:o}=yield Qp(e);return o}catch(o){console.error("error fetching configuration for ",e)}return null})}t();t();po();t();var om=b(require("axios"));function $a(e){return u(this,null,function*(){let o=`${e}/${Pp}`;try{let{data:r}=yield om.default.get(o);if(r!=null){let c="egldDenomination";if(c in r){let n=r,{[c]:p,decimals:m}=n,l=We(n,[Vi(c),"decimals"]);return k(h({},l),{decimals:p,digits:m})}return r}}catch(r){console.error("error fetching configuration for ",o)}return null})}t();var nm=b(require("axios"));var Th=e=>{try{return Boolean(new URL(e))}catch(o){return!1}};function tm(){return u(this,null,function*(){var n;let e=Kn();if(!Th(e))return null;let o=`${e}/${Cp}`;try{let{data:r}=yield nm.default.get(o);if(r!=null)return(n=r==null?void 0:r.data)==null?void 0:n.config}catch(r){console.error("error fetching configuration for ",o)}return null})}t();po();t();po();function nn(e){return Es[e]}t();t();var xh=b(require("axios"));t();var Sh=b(require("axios"));po();t();var Ze=()=>y(ip);P();Dn();Mn();t();t();t();t();var rm=require("@multiversx/sdk-extension-provider"),am=require("@multiversx/sdk-hw-provider"),im=require("@multiversx/sdk-opera-provider"),sm=require("@multiversx/sdk-web-wallet-cross-window-provider"),qa=require("@multiversx/sdk-web-wallet-provider");E();U();t();var dr={},lr=tn;var bh="/dapp/init",eo=e=>{switch(e==null?void 0:e.constructor){case qa.WalletProvider:return"wallet";case lr:return"walletconnectv2";case am.HWProvider:return"ledger";case rm.ExtensionProvider:return"extension";case im.OperaProvider:return"opera";case sm.CrossWindowProvider:return"crossWindow";case tn:return"";default:return"extra"}},_r=e=>new qa.WalletProvider(`${e}${bh}`),za=e=>u(void 0,null,function*(){if(!e.isInitialized())throw new Error("Unable to get version. Provider not initialized");let o=e.hwApp,{contractData:n,version:r}=yield o.getAppConfiguration();return{version:r,dataEnabled:n===Ns}}),Qe=e=>`Unable to perform ${e}, Provider not initialized`,tn=class{init(){return Promise.resolve(!1)}login(o){throw new Error(Qe(`login with options: ${o}`))}logout(o){throw new Error(Qe(`logout with options: ${o}`))}getAddress(){throw new Error(Qe("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(o,n){throw new Error(Qe(`sendTransaction with transactions: ${o} options: ${n}`))}signTransaction(o,n){throw new Error(Qe(`signTransaction with transactions: ${o} options: ${n}`))}signTransactions(o,n){throw new Error(Qe(`signTransactions with transactions: ${o} options: ${n}`))}signMessage(o,n){throw new Error(Qe(`signTransactions with ${o} and options ${n}`))}sendCustomMessage({method:o,params:n}){throw new Error(Qe(`sendCustomMessage with method: ${o} params: ${n}`))}sendCustomRequest(o){throw new Error(Qe(`sendSessionEvent with options: ${o}`))}ping(){return Promise.resolve(!1)}},Mo=new tn;var Ka=Mo,ja=null;function de(e){Ka=e}function ur(e){ja=e}function rn(){ja!=null&&(Ka=ja)}function te(){return Ka||Mo}$();M();t();t();function we(e){return u(this,null,function*(){return yield em(e)})}t();t();function cm(){let e=te();return eo(e)}t();U();t();function Oo(e){return cm()===e}function Be(){let e=S.getState(),o=te(),n=Se(e),r=be(e),c=Qo(e);if(!o)throw"provider not initialized";return Oo("ledger")&&r?new Promise(p=>{p(n)}):!Oo("")&&!Oo("wallet")&&!Oo("extra")?o.getAddress():new Promise(p=>{let m=ir();c!=null&&m&&p(m),r&&p(n),p("")})}t();function Bo(e){let o=S.getState(),n=sp(o);return e?n&&!isNaN(n)?Math.max(n,e.nonce):e.nonce:n}t();var gr=()=>{let{search:e}=O(),o=new URLSearchParams(e),n=Object.fromEntries(o);return n==null?void 0:n.accessToken};t();$();M();t();P();var pm=()=>u(void 0,null,function*(){try{let e=yield Be();try{let o=yield we(e);if(o!=null){let n=k(h({},o),{nonce:Bo(o)});return S.dispatch(mo(n)),n}}catch(o){console.error("Failed getting account ",o)}}catch(e){console.error("Failed getting address ",e)}return null});function an(){return u(this,null,function*(){let e=te();if(e==null)throw"Provider not initialized";if(!e.isInitialized||e.isInitialized())return pm();try{if(!e.init)throw"Current provider does not have init() function";return(yield e.init())?pm():void 0}catch(o){console.error("Failed initializing provider ",o)}})}t();P();function mm(e){S.dispatch(wt(e))}t();var dm=require("@multiversx/sdk-core");ko();Ko();Io();var lm=({callbackUrl:e,onRedirect:o})=>{typeof o=="function"?o(e):e&&ze({url:e})},wh=e=>{let o=Pe.local.getItem(ge.logoutEvent),{data:n}=o?JSON.parse(o):{data:e};e===n&&(Pe.local.setItem({key:ge.logoutEvent,data:e,expires:0}),Pe.local.removeItem(ge.logoutEvent))},vh=500;function re(r,c){return u(this,arguments,function*(e,o,n=Boolean(gr())){var L;let p="",m=te(),d=eo(m)==="wallet",_=((L=m==null?void 0:m.isInitialized)==null?void 0:L.call(m))===!0;if(n&&(m==null?void 0:m.relogin)!=null)return m.relogin();try{p=yield Be(),wh(p)}catch(w){console.error("error fetching logout address",w)}let T=er(e),g=O(),x=new URL(decodeURIComponent(T)).pathname;if((sr(g.pathname,x)||d&&_)&&ac(),!p&&!_)return lm({callbackUrl:T,onRedirect:o});try{if(S.dispatch(W()),d)return setTimeout(()=>{m.logout({callbackUrl:T})},vh);yield m.logout({callbackUrl:T})}catch(w){}finally{d||lm({callbackUrl:T,onRedirect:o})}})}var um=({customNetworkConfig:e={},environment:o,dappConfig:n})=>{let[r,c]=(0,Fe.useState)(!1),p=Ze(),m=y(_p),l=(0,Fe.useMemo)(()=>n,[]),d=l==null?void 0:l.logoutRoute,{address:_,publicKey:T}=p,g=N();function x(){return u(this,null,function*(){let w=!(e!=null&&e.skipFetchFromServer),C=e==null?void 0:e.apiAddress,D=co[o]||{},G=h(h({},D),e);if(w){let H=D==null?void 0:D.apiAddress,R=yield $a(C||H);if(R!=null){let Q=h(h(h({},D),R),e);g(ga(Q));return}}g(ga(G))})}function L(){return u(this,null,function*(){l&&g(Dc(l)),g(Qs(d)),yield x(),c(!0)})}return(0,Fe.useEffect)(()=>{_&&new _m.Address(_).hex()!==T&&re(d)},[_,T,d]),(0,Fe.useEffect)(()=>{L()},[e,o,l]),(0,Fe.useEffect)(()=>{p.address&&m&&re(d)},[m,p.address,d]),{initialized:r}};function Xa({customNetworkConfig:e={},children:o,environment:n,dappConfig:r}){let[c,p]=(0,Fe.useState)(!(r!=null&&r.isSSR)),{initialized:m}=um({customNetworkConfig:e,environment:n,dappConfig:r});return(0,Fe.useEffect)(()=>{p(!0)},[]),c?m?o:null:o}t();t();var An=b(require("react")),lu=require("react-redux"),_u=require("redux-persist/integration/react");t();var Uo=require("react");t();var Gm=require("react"),xr=require("@multiversx/sdk-core");t();t();var le=()=>y(Xe);t();t();t();t();t();var oo=b(require("react"));var gm=(0,oo.createContext)({}),Ah=S.getState();function Ja({children:e}){let[o,n]=(0,oo.useState)(),[r,c]=(0,oo.useState)(J(Ah)),p={address:o,setAddress:n,isLoggedIn:Boolean(o),loginInfo:r,setLoginInfo:m=>c(m)};return oo.default.createElement(gm.Provider,{value:p},e)}function sn(){let e=(0,oo.useContext)(gm);if(e===void 0||Object.values(e).length===0)throw new Error("useAxiosInterceptorContext must be used within an AxiosInterceptorContextProvider");return e}t();var Xn=b(require("react"));var Ya=({children:e=null})=>{let{address:o}=le(),n=y(J),{setLoginInfo:r,setAddress:c}=sn();return(0,Xn.useEffect)(()=>{c(o),r(n)},[n,o]),Xn.default.createElement(Xn.default.Fragment,null,e)};t();var uo=b(require("react")),fr=b(require("axios"));var Za=({children:e,authenticatedDomains:o})=>{var l;let{loginInfo:n}=sn(),r=(l=n==null?void 0:n.tokenLogin)==null?void 0:l.nativeAuthToken,c=(0,uo.useRef)(-1),p=()=>{fr.default.interceptors.response.use(d=>d,d=>{var T,g;let _=(T=d.config)==null?void 0:T.url;return(g=d.config)!=null&&g.params&&(_+=`?${new URLSearchParams(d.config.params).toString()}`),console.error("Axios error for: ",_),Promise.reject(d)})},m=()=>{fr.default.interceptors.request.eject(c.current),c.current=fr.default.interceptors.request.use(d=>u(void 0,null,function*(){return o.includes(String(d==null?void 0:d.baseURL))&&d.headers.set("Authorization",`Bearer ${r}`),d}),d=>{Promise.reject(d)})};return(0,uo.useEffect)(p,[]),(0,uo.useEffect)(()=>{r&&m()},[r]),uo.default.createElement(uo.default.Fragment,null,e)};var Ih={Interceptor:Za,Listener:Ya,Provider:Ja};t();t();var cn=()=>{let e=te(),o=eo(e);return{provider:e,providerType:o}};t();t();var kh=require("react"),Lh=b(require("swr"));t();P();t();t();var Wm=require("@multiversx/sdk-native-auth-client");t();var Tm=b(require("axios"));t();t();t();function fm(e){return u(this,null,function*(){return yield new Promise(o=>{setTimeout(()=>o(),e)})})}t();var hm=(e,o,n,r=0)=>u(void 0,null,function*(){try{return yield e(...n)}catch(c){return r<o.retries?((o==null?void 0:o.delay)!=null&&(yield fm(o.delay)),yield hm(e,o,n,r+1)):null}}),hr=(e,o={retries:5,delay:500})=>(...n)=>u(void 0,null,function*(){return yield hm(e,o,n)});var Eh=4,Ph=3e4,Tr={current:null},Fo={current:null},Ch=hr((e,o,n)=>u(void 0,null,function*(){if(n){let p=Math.floor(Date.now()/1e3);return{hash:yield n(),timestamp:p}}let{data:r}=yield Tm.default.get(`${e}/${Ra}?from=${Eh}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[c]=r;return c}));function ym(e,o,n,r){return u(this,null,function*(){if(e==null)throw new Error("missing api url");let c=Date.now();if(Tr.current!=null&&c<Tr.current.timestamp*1e3+Ph&&!r)return Tr.current;if(Fo.current!=null)return yield Fo.current;Fo.current=Ch(e,o,n);try{let p=yield Fo.current;if(p==null)throw Fo.current=null,new Error("could not get block hash");return Tr.current={hash:p.hash,timestamp:p.timestamp},Fo.current=null,p}catch(p){return Fo.current=null,null}})}t();t();xt();t();t();var Um=b(Fm());var pn=e=>{if(!e||!(0,Um.default)(e))return null;let o=e.split(".");if(o.length!==4)return null;try{let[n,r,c,p]=o,m=JSON.parse(Do(p)),l=Do(n);return{ttl:Number(c),extraInfo:m,origin:l,blockHash:r}}catch(n){return console.error(`Error trying to decode ${e}:`,n),null}};function nT(e){return Object.prototype.toString.call(e)==="[object String]"}var yr=e=>{var n;if(!e||!nT(e))return null;let o=e.split(".");if(o.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[r,c,p]=o,m=Do(r),l=Do(c),d=pn(l);if(!d)return{address:m,body:l,signature:p,blockHash:"",origin:"",ttl:0};let _=k(h({},d),{address:m,body:l,signature:p});return(n=d.extraInfo)!=null&&n.timestamp||delete _.extraInfo,_}catch(r){return null}};var oi={isExpired:!1},mn=e=>{if(!e)return oi;let o=yr(e);if(!o)return oi;let n=jo(),{ttl:r,extraInfo:c}=o,p=c==null?void 0:c.timestamp;if(!p)return oi;let m=p+r,l=n>m,d=m-n;return{isExpired:l,expiresAt:m,secondsUntilExpires:d}};t();var Zn={origin:O().origin,apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},Qn=e=>{var n,r,c,p,m,l;return e===!0?Zn:{origin:(n=e==null?void 0:e.origin)!=null?n:Zn.origin,blockHashShard:e==null?void 0:e.blockHashShard,expirySeconds:(r=e==null?void 0:e.expirySeconds)!=null?r:Zn.expirySeconds,apiAddress:(c=e==null?void 0:e.apiAddress)!=null?c:Zn.apiAddress,tokenExpirationToastWarningSeconds:(p=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?p:Zn.tokenExpirationToastWarningSeconds,extraInfo:(m=e==null?void 0:e.extraInfo)!=null?m:{},gatewayUrl:e==null?void 0:e.gatewayUrl,extraRequestHeaders:(l=e==null?void 0:e.extraRequestHeaders)!=null?l:{}}};var et=e=>{let{origin:o,apiAddress:n,expirySeconds:r,blockHashShard:c,extraInfo:p,gatewayUrl:m,extraRequestHeaders:l}=Qn(e),d=new Wm.NativeAuthClient({origin:o,apiUrl:n,expirySeconds:r,blockHashShard:c,gatewayUrl:m,extraRequestHeaders:l});return{getNativeAuthConfig:Qn,initialize:g=>u(void 0,null,function*(){var H,R;if(!n||!o)return"";let x=()=>d.getCurrentBlockHash(),L=(H=g==null?void 0:g.latestBlockInfo)!=null?H:yield ym(n,c,x,g==null?void 0:g.noCache),{hash:w,timestamp:C}=L,D=d.encodeValue(JSON.stringify(h(h({},(R=g==null?void 0:g.extraInfo)!=null?R:p),C?{timestamp:C}:{})));return`${d.encodeValue(o)}.${w}.${r}.${D}`}),getToken:({address:g,token:x,signature:L})=>d.getToken(g,x,L),getTokenExpiration:mn}};var tT=(e,o)=>{var n;return o?o===!0?e:(n=o.apiAddress)!=null?n:e:null},no=e=>{let o=y(K),n=y(en),r=(0,Gm.useRef)(n==null?void 0:n.loginToken),c=tT(o.apiAddress,e),p=Qn(h(h({},e===!0?{}:e),c?{apiAddress:c}:{})),m=Boolean(e),l=et(p),{address:d}=le(),_=N(),T=w=>{r.current=w,_(lo(h(k(h({},n),{loginToken:w}),c?{nativeAuthConfig:p}:{})))},g=()=>{try{return l.initialize()}catch(w){console.error("Unable to get block. Login failed.",w);return}},x=({address:w,signature:C})=>{let D=r.current;if(!D)throw"Token not found. Call `setLoginToken` first.";if(!m){_(lo({loginToken:D,signature:C}));return}let G=l.getToken({address:w,token:D,signature:C});return _(lo(h({loginToken:D,signature:C,nativeAuthToken:G},c?{nativeAuthConfig:p}:{}))),G};return{configuration:p,setLoginToken:T,getNativeAuthLoginToken:g,setTokenLoginInfo:x,refreshNativeAuthTokenLogin:D=>u(void 0,[D],function*({signMessageCallback:w,nativeAuthClientConfig:C}){let H=yield et(C||p).initialize({noCache:Boolean(C)});if(r.current=H,!H)return;let R=new xr.SignableMessage({address:new xr.Address(d),message:a.Buffer.from(`${d}${H}`)}),Q=yield w(R,{});return x({address:d,signature:Q.getSignature().toString("hex")})})}};t();var _e=require("react");t();var Sr=require("react");function Hm(e,o=[]){let n=(0,Sr.useRef)(!0);(0,Sr.useEffect)(()=>{n.current?n.current=!1:e()},o)}$();P();U();t();t();var zm=b(br()),ni=typeof window!="undefined"?window:{},$m,qm,aT=(qm=($m=ni==null?void 0:ni.location)==null?void 0:$m.origin)==null?void 0:qm.includes("localhost"),jm=e=>{if(!(0,zm.default)(e))return Boolean(e);let n=h({},e);return Boolean(aT)&&delete n.origin,Object.keys(n).length>0};t();function go(){return be(S.getState())}Lo();t();var Km=({maxRetries:e})=>new Promise((o,n)=>{let r=0,c=()=>{let p=Ro(S.getState()),m=nn(p);if(Boolean(m)){o(p);return}if(r<e){r++,setTimeout(c,1e3);return}n(null)};c()});var ti=({callbackRoute:e,token:o,nativeAuth:n,onLoginRedirect:r,logoutRoute:c,customRequestMethods:p=[]})=>{var Fi;let m=N(),l=jm(n),d=no(l?n:!1),_=o,[T,g]=(0,_e.useState)(""),[x,L]=(0,_e.useState)(""),[w,C]=(0,_e.useState)(!0),[D,G]=(0,_e.useState)([]),[H,R]=(0,_e.useState)(null),{provider:Q}=cn(),ie=y(gp),ee=y(fp),xe=y(hp),xo=y(Tp),Br=y(_o),Fr=y(qt),F=(0,_e.useRef)(Q),So=(0,_e.useRef)(!1),B=(0,_e.useRef)(!1),Z=(Fi=c!=null?c:Br)!=null?Fi:"/",bo=[dr.CANCEL_ACTION,...p];o&&bo.push(dr.SIGN_LOGIN_TOKEN),l&&bo.push(dr.SIGN_NATIVE_AUTH_TOKEN);let Ur=w?"":`${xo}?wallet-connect=${encodeURIComponent(x)}`,In=Boolean(T),kn=go(),Ho=()=>{re(Z)},uu=z=>{console.log("WalletConnect Session Event: ",z)},gu=()=>u(void 0,null,function*(){var z,Y,j;try{if(So.current||F.current==null)return;if(!B.current){try{yield(z=F.current)==null?void 0:z.logout()}catch(Ln){console.warn("Unable to logout")}return}let q=yield(Y=F.current)==null?void 0:Y.getAddress();if(!q){console.warn("Login cancelled.");return}let ue=yield(j=F.current)==null?void 0:j.getSignature(),ao={address:q,loginMethod:"walletconnectv2"},io={logoutRoute:Z,loginType:"walletconnectv2",callbackRoute:e!=null?e:O().href};m(Ys(io)),ue&&d.setTokenLoginInfo({signature:ue,address:q}),m(oe(ao)),Jo({callbackRoute:e,onLoginRedirect:r,options:{address:q,signature:ue}})}catch(q){g("User rejected connection proposal"),console.error(q)}}),fu=()=>u(void 0,null,function*(){var Y,j,q,ue,ao;if(eo(F.current)==="walletconnectv2")try{((ue=(q=(j=(Y=F.current)==null?void 0:Y.walletConnector)==null?void 0:j.session)==null?void 0:q.getAll())!=null?ue:[]).length>0&&(yield(ao=F.current)==null?void 0:ao.logout()),F.current=Mo,R(null)}catch(io){console.warn("Unable to logout")}}),hu=z=>u(void 0,null,function*(){var Y,j,q;if(!ie||!ee){g("Invalid WalletConnect setup");return}if(!z||!z.topic){g("Expired connection");return}try{let{approval:ue}=yield(Y=F.current)==null?void 0:Y.connect({topic:z.topic,methods:bo});if(l&&!_&&(_=yield d.getNativeAuthLoginToken(),!_)){console.warn("Fetching block failed. Login cancelled.");return}_&&d.setLoginToken(_);try{yield(j=F.current)==null?void 0:j.login({approval:ue,token:_})}catch(ao){g("User rejected existing connection proposal"),C(!0),yield Wr()}}catch(ue){console.error("Unable to connect to existing session",ue),g("Unable to connect to existing session")}finally{G((q=F.current)==null?void 0:q.pairings)}}),Tu=z=>u(void 0,null,function*(){var Y,j;try{z&&(yield(Y=F.current)==null?void 0:Y.logout({topic:z}))}catch(q){console.error("Unable to remove existing pairing",q),g("Unable to remove existing pairing")}finally{let q=yield(j=F.current)==null?void 0:j.getPairings();G(q)}});function Wr(z=!0){return u(this,null,function*(){var Ln,Ui,Wi;let Y=yield Km({maxRetries:15});if(!Y){g("Invalid chainID");return}if(!ee||!ie){g("Invalid WalletConnect setup");return}let j=go(),q=B.current===!1&&!j,ue=(Ui=(Ln=F.current)==null?void 0:Ln.isInitialized)==null?void 0:Ui.call(Ln);if(So.current||q||ue)return;if(So.current=!0,(Wi=F.current)!=null&&Wi.walletConnector){yield F.current.init(),R(F.current),So.current=!1,z&&(yield Bi());return}let ao={onClientLogin:gu,onClientLogout:Ho,onClientEvent:uu},io=new lr(ao,Y,ie,ee,xe);yield io.init(),R(io),F.current=io,So.current=!1,z&&(G(io.pairings),yield Bi())})}function Bi(){return u(this,null,function*(){var z,Y;if(!!F.current){if(!ie||!ee){g("Invalid WalletConnect setup");return}try{if(!B.current)return;let{uri:j,approval:q}=yield(z=F.current)==null?void 0:z.connect({methods:bo});if(!Boolean(j))return;if(L(j),(xe==null?void 0:xe.logger)==="debug"&&console.log("WalletConnect uri: ",j),l&&!_&&(_=yield d.getNativeAuthLoginToken(),!_)){console.warn("Fetching block failed. Login cancelled.");return}_&&d.setLoginToken(_);try{yield(Y=F.current)==null?void 0:Y.login({approval:q,token:_})}catch(ao){g("User rejected connection proposal"),C(!0),yield Wr()}}catch(j){console.error("Unable to connect",j)}}})}return Hm(()=>{F.current=Q},[Q]),(0,_e.useEffect)(()=>(B.current=!0,()=>{B.current=!1}),[]),(0,_e.useEffect)(()=>{C(!Boolean(x))},[x]),(0,_e.useEffect)(()=>{if(!H)return;(Boolean(H.session)||Fr==="walletconnectv2")&&kn&&de(H)},[H,kn]),[Wr,{error:T,loginFailed:In,isLoading:w&&!In,isLoggedIn:kn&&!In},{uriDeepLink:Ur,walletConnectUri:x,cancelLogin:fu,connectExisting:hu,removeExistingPairing:Tu,wcPairings:D}]};$();P();U();t();var Xm=require("react");t();$();P();M();function dn(e,o=S.dispatch){let n=yr(e);if(n==null)return;let{signature:r,address:c}=n;r&&e&&c&&(o(lo({loginToken:e,signature:r,nativeAuthToken:e})),o(oe({address:c,loginMethod:"extra"})))}function Jm(){let e=N(),o=y(dp),n=gr();(0,Xm.useEffect)(()=>{!o||dn(n,e)},[n,o])}t();t();var Ym=require("@multiversx/sdk-opera-provider");function Zm(e){return u(this,null,function*(){try{let o=Ym.OperaProvider.getInstance().setAddress(e);if(yield o.init())return o;console.error("Could not initialise opera crypto wallet, make sure that opera crypto wallet is installed.")}catch(o){console.error("Unable to login to OperaProvider",o)}return null})}t();var Qm=require("@multiversx/sdk-extension-provider");function ed(e){return u(this,null,function*(){try{let o=Qm.ExtensionProvider.getInstance().setAddress(e);if(yield o.init())return o;console.error("Could not initialise extension, make sure MultiversX wallet extension is installed.")}catch(o){console.error("Unable to login to ExtensionProvider",o)}return null})}t();var od=require("@multiversx/sdk-web-wallet-cross-window-provider");function ri(n){return u(this,arguments,function*({address:e,walletUrl:o}){try{let r=od.CrossWindowProvider.getInstance().setAddress(e).setWalletUrl(o);if(yield r.init())return r;console.error("Could not initialise Cross Window Wallet provider")}catch(r){console.error("Unable to login to CrossWindowWalletProvider",r)}return null})}t();t();var nd=n=>u(void 0,[n],function*({loginToken:e,extraInfoData:o}){if(e==null||Object.keys(o).length===0)return null;let r=pn(String(e)),_=(r==null?void 0:r.extraInfo)||{},{timestamp:c}=_,p=We(_,["timestamp"]);if(!(r&&c!=null))return null;let l={hash:String(r==null?void 0:r.blockHash),timestamp:Number(c)};return yield et({extraInfo:h(h({},p),o),expirySeconds:r==null?void 0:r.ttl,origin:r==null?void 0:r.origin}).initialize({latestBlockInfo:l})});var ai=p=>u(void 0,[p],function*({loginToken:e,extraInfoData:o,address:n,signature:r,loginService:c}){let m=yield nd({loginToken:e,extraInfoData:o}),l=o.multisig||o.impersonate||n,d=m!=null?l:n;return m!=null&&c.setLoginToken(m),r&&c.setTokenLoginInfo({signature:r,address:n}),yield we(d)});t();t();var td=require("react"),ii=require("@multiversx/sdk-hw-provider");var si=()=>{let e=y(_o),o=y(be),n=y(zt),r=te(),[c,p]=(0,td.useState)(),m=()=>u(void 0,null,function*(){let d=(n==null?void 0:n.index)!=null;try{if(r instanceof ii.HWProvider&&r.isInitialized())return d&&(yield r.setAddressIndex(n.index)),r;let _=new ii.HWProvider;return(yield _.init())?(d&&(yield _.setAddressIndex(n.index)),_):null}catch(_){return console.error("Failed to initialise Ledger Provider"),null}});function l(d){return u(this,null,function*(){let _,T=o&&!(d!=null&&d.isRelogin);try{if(_=yield m(),!_){console.warn("Could not initialise ledger app"),T&&re(e);return}let g=yield za(_);return de(_),p(g),_}catch(g){console.error("Could not initialise ledger app",g),T&&re(e)}return null})}return{setLedgerProvider:l,ledgerData:c}};var ci=!1;function rd(){let e=y(K),o=y(jt),n=y(lp),r=y(qt),c=y(Qo),p=y(Se),m=y(Pa),l=y(zt),d=y(be),_=y(Ro),T=y(en),g=T==null?void 0:T.nativeAuthConfig,x=no(g||!1),L=(0,Uo.useRef)(!1),w=N(),{setLedgerProvider:C,ledgerData:D}=si();Jm();let{callbackRoute:G,logoutRoute:H}=n||{callbackRoute:"",logoutRoute:""},[R]=ti({callbackRoute:G,logoutRoute:H});(0,Uo.useEffect)(()=>{Q()},[e]),(0,Uo.useEffect)(()=>{So()},[r,_]),(0,Uo.useEffect)(()=>{ee()},[p,e]),(0,Uo.useEffect)(()=>{ie()},[m,d,D]);function Q(){return u(this,null,function*(){try{let B=yield tm();B&&w(_c(B.erd_chain_id))}catch(B){console.error("failed refreshing chainId ",B)}})}function ie(){m==null&&l!=null&&D&&w(ma({index:l.index,address:p,hasContractDataEnabled:D.dataEnabled,version:D.version}))}function ee(){return u(this,null,function*(){if(w(Xo(!0)),L.current){L.current=!1,w(Xo(!1));return}if(p)try{let B=yield we(p);B?w(mo(k(h({},B),{address:p,nonce:B.nonce.valueOf()}))):d||w($s(""))}catch(B){w(qs("Failed getting account")),console.error("Failed getting account ",B)}w(Xo(!1))})}function xe(){return u(this,null,function*(){let B=_r(o);if(de(B),c!=null){try{let Z=yield Be(),{clearNavigationHistory:bo,remainingParams:{signature:Ur,multisig:In,impersonate:kn}}=nr(["signature","loginToken","address","multisig","impersonate"]);if(!Z)return de(Mo),w(lo(null)),w(It(null)),bo();let Ho=yield ai({loginToken:T==null?void 0:T.loginToken,extraInfoData:{multisig:In,impersonate:kn},address:Z,signature:Ur,loginService:x});Ho&&(L.current=!0,w(Xo(!0)),w(oe({address:Ho.address,loginMethod:"wallet"})),w(mo(k(h({},Ho),{nonce:Bo(Ho)}))),w(Xo(!1))),bo()}catch(Z){console.error("Failed authenticating wallet user ",Z)}w(It(null))}})}function xo(){return u(this,null,function*(){let B=yield Be(),Z=yield ed(B);Z&&de(Z)})}function Br(){return u(this,null,function*(){let B=yield Be(),Z=yield Zm(B);Z&&de(Z)})}function Fr(){return u(this,null,function*(){let B=yield Be(),Z=yield ri({address:B,walletUrl:e.walletAddress});Z&&de(Z)})}function F(){return u(this,null,function*(){try{w(la(!0)),yield R(!1)}catch(B){console.error("Could not initialize WalletConnect")}finally{w(la(!1))}})}function So(){return u(this,null,function*(){let B=nn(_);if(!(r==null||ci||!B))switch(r){case"ledger":{ci=!0,yield C(),ci=!1;break}case"walletconnectv2":{F();break}case"extension":{xo();break}case"opera":{Br();break}case"crossWindow":{Fr();break}case"extra":{rn();break}case"wallet":case"":{xe();break}default:return}})}return null}t();var cd=require("@multiversx/sdk-core"),pd=require("@multiversx/sdk-web-wallet-cross-window-provider/out/constants"),ae=require("@multiversx/sdk-web-wallet-cross-window-provider/out/types");$();t();t();P();function pi(){S.dispatch(Co())}function ad(e){S.dispatch(Pc({batchId:e}))}t();t();var cT=b(require("bignumber.js"));E();P();M();t();var sT=b(require("bignumber.js"));E();t();t();var mT=require("@multiversx/sdk-core"),dT=b(require("bignumber.js"));E();t();t();var ln=()=>{var e;if(ne()){let o=window.location.ancestorOrigins;return(e=o==null?void 0:o[o.length-1])!=null?e:"*"}return"*"};t();var id=e=>()=>{throw new Error(`Unable to perform ${e}, Provider not initialized`)};t();var sd=require("@multiversx/sdk-web-wallet-cross-window-provider/out/types");var wr=(e,o)=>n=>{let{type:r,payload:c}=n.data;if(n.origin!=ln()){console.error("origin not accepted",{eventOrigin:n.origin});return}(e===r||r===sd.CrossWindowProviderResponseEnums.cancelResponse)&&(window.removeEventListener("message",wr(e,o)),o({type:r,payload:c}))};var Ue=class{constructor(){this.resetState=()=>{(typeof window!="undefined"?window:{}).addEventListener("message",wr(ae.CrossWindowProviderResponseEnums.resetStateResponse,n=>{n.type===ae.CrossWindowProviderResponseEnums.resetStateResponse&&(S.dispatch(W()),setTimeout(()=>{this.sendPostMessage({type:ae.CrossWindowProviderRequestEnums.finalizeResetStateRequest,payload:void 0})},500))}))};this.init=()=>u(this,null,function*(){return this.sendPostMessage({type:ae.CrossWindowProviderRequestEnums.finalizeHandshakeRequest,payload:void 0}),!0});this.login=()=>u(this,null,function*(){return!0});this.logout=()=>u(this,null,function*(){let o=yield this.sendPostMessage({type:ae.CrossWindowProviderRequestEnums.logoutRequest,payload:void 0});return yield re(),Boolean(o.payload.data)});this.relogin=()=>u(this,null,function*(){let o=yield this.sendPostMessage({type:ae.CrossWindowProviderRequestEnums.loginRequest,payload:void 0}),{data:n,error:r}=o.payload;if(r||!n)throw new Error("Unable to re-login");let{accessToken:c}=n;return c?(dn(c),rn(),c):(console.error("Unable to re-login. Missing accessToken."),null)});this.signTransactions=o=>u(this,null,function*(){let n=yield this.sendPostMessage({type:ae.CrossWindowProviderRequestEnums.signTransactionsRequest,payload:o.map(p=>p.toPlainObject())}),{data:r,error:c}=n.payload;return c||!r?(console.error("Unable to sign transactions"),null):n.type==ae.CrossWindowProviderResponseEnums.cancelResponse?(console.warn("Cancelled the transactions signing action"),pi(),null):r.map(p=>cd.Transaction.fromPlainObject(p))});this.signTransaction=o=>u(this,null,function*(){let n=yield this.signTransactions([o]);return n==null?void 0:n[0]});this.isInitialized=()=>!0;this.isConnected=()=>u(this,null,function*(){return!0});this.getAddress=id("getAddress");this.sendPostMessage=o=>u(this,null,function*(){let n=typeof window!="undefined"?window:{};return n.ReactNativeWebView?n.ReactNativeWebView.postMessage(JSON.stringify(o),ln()):n.webkit?n.webkit.messageHandlers.postMessage(JSON.stringify(o),ln()):n.parent&&n.parent.postMessage(o,ln()),yield this.waitingForResponse(pd.responseTypeMap[o.type])});this.resetState()}static getInstance(){return Ue.instance||(Ue.instance=new Ue),Ue.instance}signMessage(o){return u(this,null,function*(){let n=yield this.sendPostMessage({type:ae.CrossWindowProviderRequestEnums.signMessageRequest,payload:{message:o.message.toString()}}),{data:r,error:c}=n.payload;return c||!r?(console.error("Unable to sign message"),null):n.type==ae.CrossWindowProviderResponseEnums.cancelResponse?(console.warn("Cancelled the message signing action"),null):r.status!==ae.SignMessageStatusEnum.signed?(console.error("Could not sign message"),null):(o.applySignature(a.Buffer.from(String(r.signature),"hex")),o)})}cancelAction(){return u(this,null,function*(){return this.sendPostMessage({type:ae.CrossWindowProviderRequestEnums.cancelAction,payload:void 0})})}waitingForResponse(o){return u(this,null,function*(){return yield new Promise(n=>{window.addEventListener("message",wr(o,n))})})}};t();t();var _i=require("@multiversx/sdk-core");M();t();U();var md=typeof window!="undefined"?window:{},dd=()=>md.ReactNativeWebView?"reactNative":md.webkit?"ios":"web";t();M();var _n={signTransactions:{["ios"]:e=>window.webkit.messageHandlers.signTransactions.postMessage(e,fo()),["reactNative"]:e=>window==null?void 0:window.ReactNativeWebView.postMessage(JSON.stringify({type:qe.signTransactionsRequest,message:e})),["web"]:e=>window==null?void 0:window.postMessage(JSON.stringify({type:qe.signTransactionsRequest,message:e}),fo())},sendCustomRequest:{["ios"]:e=>window.webkit.messageHandlers.signMessage.postMessage({type:e.request.method,payload:e.request.params}),["reactNative"]:e=>window==null?void 0:window.ReactNativeWebView.postMessage(JSON.stringify({type:e.request.method,payload:e.request.params})),["web"]:e=>window==null?void 0:window.postMessage(JSON.stringify({type:e.request.method,payload:e.request.params}),fo())},signMessage:{["ios"]:e=>window.webkit.messageHandlers.signMessage.postMessage(e),["reactNative"]:e=>window==null?void 0:window.ReactNativeWebView.postMessage(JSON.stringify({type:qe.signMessageRequest,message:e})),["web"]:e=>window==null?void 0:window.postMessage(JSON.stringify({type:qe.signMessageRequest,message:e}),fo())},logout:{["ios"]:()=>window.webkit.messageHandlers.logout.postMessage(),["reactNative"]:()=>window==null?void 0:window.ReactNativeWebView.postMessage(JSON.stringify({type:qe.logoutRequest})),["web"]:()=>window==null?void 0:window.postMessage(JSON.stringify({type:qe.logoutRequest}),fo())},login:{["ios"]:()=>window.webkit.messageHandlers.login.postMessage(),["reactNative"]:()=>window==null?void 0:window.ReactNativeWebView.postMessage(JSON.stringify({type:qe.loginRequest})),["web"]:()=>window==null?void 0:window.postMessage(JSON.stringify({type:qe.loginRequest}),fo())}};var ld=e=>()=>{throw new Error(`Unable to perform ${e}, Provider not initialized`)},un=dd(),fo=()=>{var e,o;return ne()&&(o=(e=window==null?void 0:window.parent)==null?void 0:e.origin)!=null?o:"*"},ot="message",li=e=>{let o=n=>{let r=n.data;if(!(n.target.origin!=fo()&&un!="reactNative"))try{r=JSON.parse(r),e(r)}catch(c){console.error("error parsing response")}};document&&document.addEventListener(ot,o),window&&window.addEventListener(ot,o)},_d={init:()=>u(void 0,null,function*(){return!0}),login:()=>u(void 0,null,function*(){return!0}),relogin:()=>u(void 0,null,function*(){try{return _n.login[un](),yield new Promise((o,n)=>{function r(c){let{message:p,type:m}=c;if(m===ut.loginResponse)try{let{accessToken:l,error:d}=p;d?n(d):(dn(l),rn(),o(l))}catch(l){n("Unable to login")}document&&document.removeEventListener(ot,r)}li(r)})}catch(e){throw console.error("error logging in",e),e}}),logout:()=>(_n.logout[un](),new Promise(e=>{e(!0)})),getAddress:ld("getAddress"),isInitialized:()=>!0,isConnected:()=>u(void 0,null,function*(){return!0}),sendTransaction:ld("sendTransaction"),sendCustomRequest:e=>u(void 0,null,function*(){_n.sendCustomRequest[un](e)}),signMessage:e=>u(void 0,null,function*(){try{return _n.signMessage[un](e),yield new Promise((n,r)=>{window.signMessageResponse=(p,m)=>{if(m){r(m),window.signMessageResponse=null;return}n(p),window.signMessageResponse=null};function c(p){let{message:m,type:l}=p;if(l===ut.signMessageResponse&&m!=null){let{signedMessage:d,error:_}=m;_?r(_):n(d)}document==null||document.removeEventListener(ot,c)}li(c)})}catch(o){throw console.error("error sending transaction",o),o}}),signTransactions:e=>u(void 0,null,function*(){try{let o=e.map(r=>r.toPlainObject());return _n.signTransactions[un](o),yield new Promise((r,c)=>{window.transactionsSigned=(m,l)=>{if(m=JSON.parse(m),l){c(l),window.transactionsSigned=null;return}r(m.map(d=>_i.Transaction.fromPlainObject(d))),window.transactionsSigned=null};function p(m){let{message:l,type:d}=m;if(d===ut.signTransactionsResponse){let{transactions:_,error:T}=l;try{T?c(T):r(_.map(g=>_i.Transaction.fromPlainObject(g)))}catch(g){c("Unable to sign")}}document&&document.removeEventListener(ot,p)}li(p)})}catch(o){throw console.error("error sending transaction",o),o}}),signTransaction:function(e){return u(this,null,function*(){return(yield this.signTransactions([e]))[0]})}};M();na();t();var ud=()=>{let{search:e}=O(),o=new URLSearchParams(e),n=Object.fromEntries(o);return n==null?void 0:n.platform};t();var vn=b(require("react"));t();t();t();t();var D_=require("react");t();t();var ui=()=>y(Me);t();P();t();t();t();t();function gi(){let e=y(Ua),o=Object.entries(e),n=(o==null?void 0:o.length)>0;return{pendingTransactions:e,pendingTransactionsArray:o,hasPendingTransactions:n}}Yo();t();P();U();t();Yo();function gd(e,o){return e.reduce((r,{status:c,hash:p})=>(p!=null&&!o.includes(p)&&je(c)&&r.push({hash:p,previousStatus:c}),r),[])}t();P();U();function fd({results:e,hash:o,sessionId:n}){let r=e==null?void 0:e.find(c=>(c==null?void 0:c.returnMessage)!=="");S.dispatch(Ne({transactionHash:o,sessionId:n,status:"fail",errorMessage:r==null?void 0:r.returnMessage,inTransit:!1})),S.dispatch(Re({sessionId:n,status:"fail",errorMessage:r==null?void 0:r.returnMessage}))}t();P();M();function fi(e){S.dispatch(Re({sessionId:e,status:"timedOut"}))}var vr={},hi=[];function lT({serverTransaction:e,sessionId:o,customTransactionInformation:n,shouldRefreshBalance:r,isSequential:c}){let{hash:p,status:m,inTransit:l,results:d,invalidTransaction:_,hasStatusChanged:T}=e;try{if(hi.includes(p))return;if(vr[p]>30){fi(o);return}if(_&&!c||je(m)){vr[p]=vr[p]?vr[p]+1:1;return}if(c&&!m){S.dispatch(Ne({sessionId:o,status:m,transactionHash:p,inTransit:l}));return}T&&(Eo(m)&&(n==null?void 0:n.completedTransactionsDelay)!=null?(hi.push(p),setTimeout(()=>S.dispatch(Ne({sessionId:o,status:"success",transactionHash:p,inTransit:l})),n==null?void 0:n.completedTransactionsDelay)):S.dispatch(Ne({sessionId:o,status:m,transactionHash:p,inTransit:l}))),r||an(),Po(m)&&fd({sessionId:o,hash:p,results:d})}catch(g){console.error(g),fi(o)}}function hd(d){return u(this,arguments,function*({sessionId:e,transactionBatch:{transactions:o,customTransactionInformation:n},getTransactionsByHash:r=mr,shouldRefreshBalance:c,isSequential:p,onSuccess:m,onFail:l}){try{if(o==null)return;let _=gd(o,hi),T=yield r(_);for(let x of T)lT({serverTransaction:x,sessionId:e,customTransactionInformation:n,shouldRefreshBalance:c,isSequential:p});if(T.every(x=>x.status!=="pending")&&!(n!=null&&n.grouping)){if(T.every(w=>w.status==="success"))return m==null?void 0:m(e);if(T.some(w=>w.status==="fail"))return l==null?void 0:l(e)}}catch(_){console.error(_)}})}function Td(){let{pendingTransactionsArray:e}=gi();function o(n){return u(this,null,function*(){let r=e.filter(([,c])=>{var p;return!((p=c==null?void 0:c.customTransactionInformation)!=null&&p.grouping)}).filter(([c,p])=>c!=null&&je(p.status));if(r.length>0)for(let[c,p]of r)yield hd(h({sessionId:c,transactionBatch:p},n));n.shouldRefreshBalance&&(yield an())})}return o}t();t();t();M();t();t();function gn(){let e=y(Ye),o=Object.entries(e),n=(o==null?void 0:o.length)>0;return{signedTransactions:e,signedTransactionsArray:o,hasSignedTransactions:n}}t();t();var _T=b(require("axios")),uT=b(require("swr"));t();t();var yd=require("react");t();var gT=require("react"),fT=require("@multiversx/sdk-web-wallet-provider"),hT=require("@multiversx/sdk-web-wallet-provider"),TT=b(require("qs"));E();P();U();oa();var A6=O();t();var bd=require("react"),Ti=require("@multiversx/sdk-core");E();_a();t();t();t();t();t();t();t();E();t();t();var c_=require("react"),p_=require("@multiversx/sdk-core"),Jx=require("@multiversx/sdk-extension-provider"),Yx=require("@multiversx/sdk-web-wallet-cross-window-provider"),Zx=b(i_());E();t();P();U();t();var s_=require("react"),qx=require("@multiversx/sdk-extension-provider"),zx=require("@multiversx/sdk-web-wallet-cross-window-provider");P();t();var Qx=require("react");P();M();ko();t();so();P();t();t();var eS=require("react");t();U();Yo();t();var m_=require("react");t();t();var oS=require("react"),nS=require("@multiversx/sdk-extension-provider");so();$();U();Lo();t();var tS=require("react"),rS=require("@multiversx/sdk-opera-provider");so();$();U();Lo();t();var aS=require("react"),iS=require("@multiversx/sdk-web-wallet-cross-window-provider");so();$();P();U();Lo();t();var mS=require("react");so();P();t();t();ra();t();t();var sS=b(require("platform"));t();t();t();t();t();t();t();t();t();ko();Ko();t();t();t();P();var cS={},pS={};var d_=e=>{if(e.component!=null){let o=e,{component:n,onClose:r}=o,c=We(o,["component","onClose"]),p=S.dispatch(ha(k(h({},c),{component:null,onClose:void 0})));return cS[p==null?void 0:p.payload.toastId]=n,r&&(pS[p==null?void 0:p.payload.toastId]=r),p==null?void 0:p.payload}return S.dispatch(ha(e)).payload};t();t();var l_=b(require("axios"));function bi(e){return u(this,null,function*(){try{let{data:o}=yield l_.default.get(`${e}/websocket/config`);return`wss://${o.url}`}catch(o){throw console.error(o),new Error("Can not get websocket url")}})}t();t();var SS=require("react");E();t();t();E();t();t();t();var Wo=b(require("bignumber.js")),wi=e=>{let o=new Wo.default(e).dividedBy(1e3).integerValue(Wo.default.ROUND_FLOOR),n=new Wo.default(o).dividedBy(60).integerValue(Wo.default.ROUND_FLOOR),r=new Wo.default(n).dividedBy(60).integerValue(Wo.default.ROUND_FLOOR),c=r.modulo(60).isGreaterThan(1),p=n.modulo(60).isGreaterThan(1),m=n.modulo(60).isLessThan(1);return c?`${r} hours`:p?`${n} minutes`:m?"less than 1 minute":`${n} minute`};t();t();t();var To=b(require("react")),w_=require("react"),v_=require("react"),Ci=b(require("classnames")),A_=require("react-dom");E();t();var f_=b(require("react"));t();var it=b(require("react"));t();var __=()=>!ne();var lS=()=>u(void 0,null,function*(){return yield Promise.resolve().then(()=>(Ai(),vi))}),_S=()=>(Ai(),ve(vi)).default,Ii=__();function g_({ssrGlobalImportCallback:e,ssrImportCallback:o,clientImportCallback:n}){let[r,c]=it.default.useState(Ii?void 0:_S()),[p,m]=it.default.useState(Ii||n==null?void 0:n()),l=()=>u(this,null,function*(){(e?e():lS()).then(d=>c(d.default)),o==null||o().then(d=>m(d.default))});return(0,it.useEffect)(()=>{Ii&&l()},[]),{globalStyles:r,styles:p}}function ho(e,o){return n=>{let{globalStyles:r,styles:c}=g_({ssrGlobalImportCallback:o.ssrGlobalStyles,ssrImportCallback:o.ssrStyles,clientImportCallback:o.clientStyles});return f_.default.createElement(e,k(h({},n),{globalStyles:r!=null?r:{},styles:c!=null?c:{}}))}}t();var T_=b(require("react")),y_=b(require("classnames"));var gS=({className:e,children:o,styles:n})=>T_.default.createElement("div",{className:(0,y_.default)(n==null?void 0:n.dappModalBody,e)},o),ki=ho(gS,{ssrStyles:()=>Promise.resolve().then(()=>(ro(),to)),clientStyles:()=>(ro(),ve(to)).default});t();var Li=b(require("react")),x_=b(require("classnames"));var fS=({visible:e,customFooter:o,className:n,footerText:r,styles:c})=>e?Li.default.createElement("div",{className:(0,x_.default)(c==null?void 0:c.dappModalFooter,n)},o!=null?o:Li.default.createElement("div",null,r)):null,Ei=ho(fS,{ssrStyles:()=>Promise.resolve().then(()=>(ro(),to)),clientStyles:()=>(ro(),ve(to)).default});t();var yn=b(require("react")),S_=require("@fortawesome/free-solid-svg-icons"),b_=require("@fortawesome/react-fontawesome"),st=b(require("classnames"));var hS=({visible:e,headerText:o,customHeader:n,className:r,closeButtonClassName:c,headerTextClassName:p,onHide:m,globalStyles:l,styles:d})=>e?n?yn.default.createElement("div",{className:(0,st.default)(d==null?void 0:d.dappModalHeader,r)},n):yn.default.createElement("div",{className:(0,st.default)(d==null?void 0:d.dappModalHeader,r)},yn.default.createElement("div",{className:(0,st.default)(d==null?void 0:d.dappModalHeaderText,p)},o),yn.default.createElement("button",{onClick:m,className:(0,st.default)(d==null?void 0:d.dappModalCloseButton,l==null?void 0:l.btn,l==null?void 0:l.btnLight,c)},yn.default.createElement(b_.FontAwesomeIcon,{size:"lg",icon:S_.faTimes}))):null,Pi=ho(hS,{ssrStyles:()=>Promise.resolve().then(()=>(ro(),to)),clientStyles:()=>(ro(),ve(to)).default});var TS={showHeader:!0,showFooter:!1,headerText:"",footerText:""},yS=({"data-testid":e="dappModal",children:o,className:n="dapp-modal-dialog-wrapper",config:r=TS,id:c="dapp-modal",onHide:p,parentElement:m,visible:l,styles:d})=>{let[_,T]=(0,w_.useState)(!1);if((0,v_.useEffect)(()=>{T(!0)},[]),!l)return null;let{showHeader:g,showFooter:x,headerText:L,footerText:w,modalDialogClassName:C="dapp-modal-dialog",modalContentClassName:D="dapp-modal-dialog-content",modalHeaderClassName:G="dapp-modal-dialog-header",modalHeaderTextClassName:H="dapp-modal-dialog-header-text",modalCloseButtonClassName:R="dapp-modal-dialog-close-button",modalBodyClassName:Q="dapp-modal-dialog-content-body",modalFooterClassName:ie="dapp-modal-dialog-footer",customModalHeader:ee,customModalFooter:xe}=r;return To.default.createElement(To.default.Fragment,null,_&&(0,A_.createPortal)(To.default.createElement("div",{id:c,role:"dialog","aria-modal":"true",className:(0,Ci.default)(C,d==null?void 0:d.dappModal,n),"data-testid":e},To.default.createElement("div",{className:(0,Ci.default)(d==null?void 0:d.dappModalContent,D)},To.default.createElement(Pi,{visible:g,headerText:L,customHeader:ee,className:G,headerTextClassName:H,closeButtonClassName:R,onHide:p}),To.default.createElement(ki,{className:Q},o),To.default.createElement(Ei,{visible:x,customFooter:xe,footerText:w,className:ie}))),m!=null?m:document==null?void 0:document.body))},xS=ho(yS,{ssrStyles:()=>Promise.resolve().then(()=>(ro(),to)),clientStyles:()=>(ro(),ve(to)).default});t();t();var I_=require("react");t();t();var k_=require("react"),wS=require("@multiversx/sdk-hw-provider");so();$();P();U();Lo();t();var bS=require("react");t();t();t();var L_=require("react");t();var Ni=require("react");t();var yo=require("react"),C_=require("socket.io-client");P();t();var fe={current:null,status:"not_initialized"};var AS=3e3,IS=3,E_=500,P_=1e3,kS="batchUpdated",LS="connect",ES="disconnect";function N_(){let e=(0,yo.useRef)(null),o=(0,yo.useRef)(null),{address:n}=le(),r=N(),{network:c}=ui(),p=d=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{r(zs(d))},P_)},m=d=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r(js(d))},P_)},l=(0,yo.useCallback)(hr(()=>u(this,null,function*(){fe.status="pending";let d=yield bi(c.apiAddress);if(d==null){console.warn("Can not get websocket url");return}fe.current=(0,C_.io)(d,{forceNew:!0,reconnectionAttempts:IS,timeout:AS,query:{address:n}}),fe.status="completed",fe.current.onAny(p),fe.current.on(kS,m),fe.current.on(LS,()=>{console.log("Websocket connected.")}),fe.current.on(ES,()=>{console.warn("Websocket disconnected. Trying to reconnect..."),setTimeout(()=>{var _;console.log("Websocket reconnecting..."),(_=fe.current)==null||_.connect()},E_)})}),{retries:2,delay:E_}),[n]);(0,yo.useEffect)(()=>{var d;n&&fe.status==="not_initialized"&&!((d=fe.current)!=null&&d.active)&&l()},[n,l]),(0,yo.useEffect)(()=>()=>{var d;(d=fe.current)==null||d.close(),fe.status="not_initialized",e.current&&clearTimeout(e.current)},[])}function kr(e,o){N_();let n=y(Ca),r=y(pp);(0,Ni.useEffect)(()=>{let c=n==null?void 0:n.message;c&&e(c)},[e,n]),(0,Ni.useEffect)(()=>{let c=r==null?void 0:r.data;c&&(o==null||o(c))},[o,r])}t();t();var PS=require("react");M();t();t();t();var CS=b(require("swr"));Io();var{logoutEvent:NS}=ge,R_="storage",M_=()=>{let{address:e}=Ze(),o=y(_o);(0,D_.useEffect)(()=>{let n=r=>{if(!(r.key!==NS||!r.newValue))try{let{data:c}=JSON.parse(r.newValue);c===e&&re(o)}catch(c){return}};return window==null||window.addEventListener(R_,n),()=>{window==null||window.removeEventListener(R_,n)}},[e,o])};t();t();var Lr=require("react"),O_=require("@fortawesome/free-solid-svg-icons"),Ri=b(require("bignumber.js"));var B_=()=>{let{address:e}=Ze(),{tokenLogin:o}=y(J),{secondsUntilExpires:n,expiresAt:r}=mn(o==null?void 0:o.nativeAuthToken),c=(0,Lr.useRef)();return(0,Lr.useEffect)(()=>{var l;let p=new Ri.default(String(n)),m=p.times(1e3);if(!(!n||p.isLessThanOrEqualTo(0))){if((l=o==null?void 0:o.nativeAuthConfig)!=null&&l.tokenExpirationToastWarningSeconds){clearTimeout(c.current);let _=new Ri.default(o.nativeAuthConfig.tokenExpirationToastWarningSeconds).times(1e3),T=p.times(1e3).minus(_),g=wi(m.toNumber()),x=T.isLessThanOrEqualTo(0)?0:T.toNumber();c.current=setTimeout(()=>{d_({toastId:"nativeAuthTokenExpiration",type:"custom",title:"Session Expiration Warning",icon:O_.faRefresh,message:`Your token will expire in ${g}!`})},x)}return()=>{clearTimeout(c.current)}}},[r,e,o==null?void 0:o.nativeAuthConfig]),null};t();var xn=require("react"),F_=b(require("bignumber.js"));var U_=()=>{let{address:e}=Ze(),{tokenLogin:o}=y(J),n=y(_o),{isExpired:r,secondsUntilExpires:c,expiresAt:p}=mn(o==null?void 0:o.nativeAuthToken),m=(0,xn.useRef)(""),l=(0,xn.useRef)();return(0,xn.useEffect)(()=>{e&&r&&re(n)},[r,e,n]),(0,xn.useEffect)(()=>{let d=new F_.default(String(c)),_=`${e}_${p}`,T=m.current===_;if(!(c&&d.isGreaterThan(0))||T)return;m.current=_,clearTimeout(l.current);let x=d.times(1e3);return l.current=setTimeout(()=>{re(n)},x.toNumber()),()=>{clearTimeout(l.current)}},[p,e,n]),null};var W_=()=>(B_(),M_(),U_(),null);t();t();var Go=require("react");P();U();ko();t();P();t();t();function G_({transactions:e}){return e==null?void 0:e.some(o=>Array.isArray(o))}function Er({transactions:e=[]}){return G_({transactions:e})?e.flat():e}t();P();M();var Di=({errorMessage:e,sessionId:o,transactions:n,clearSignInfo:r})=>{console.error("Unable to send transactions",e),S.dispatch(Re({sessionId:o,status:"fail",errorMessage:e,transactions:n.map(c=>k(h({},c),{status:"not executed"}))})),r==null||r()};t();P();M();var H_=({errorMessage:e,sessionId:o,clearSignInfo:n})=>{console.error("Unable to send transactions",e),S.dispatch(Re({sessionId:o,status:"fail",errorMessage:e})),n==null||n()};var RS=c=>u(void 0,[c],function*({session:e,sessionId:o,clearSignInfo:n,sendSignedBatchTransactionsAsync:r}){var T,g;let{transactions:p}=e;if(!p)return;let m=(T=e.customTransactionInformation)==null?void 0:T.grouping;if(!m)return;let l=p.reduce((x,L,w)=>{let C=m.findIndex(D=>D.includes(w));return x[C]||(x[C]=[]),x[C].push(L),x},[]);if(l.length===0)return;let d=yield r({transactions:l,sessionId:o}),_=d==null?void 0:d.data;if((d==null?void 0:d.error)||!_){Di({errorMessage:(g=d==null?void 0:d.error)!=null?g:"Send batch error",sessionId:o,transactions:p,clearSignInfo:n});return}return _&&S.dispatch(Lc(_)),Er({transactions:_==null?void 0:_.transactions}).map(x=>x.hash)}),V_=p=>u(void 0,[p],function*({session:e,sessionId:o,clearSignInfo:n,sendSignedBatchTransactionsAsync:r=pr,sendSignedTransactionsAsync:c=cr}){var d,_,T;let{transactions:m}=e;if(!m)return;if((d=e.customTransactionInformation)==null?void 0:d.grouping)try{return yield RS({session:e,sessionId:o,clearSignInfo:n,sendSignedBatchTransactionsAsync:r})}catch(g){return Di({errorMessage:g.message,sessionId:o,transactions:m}),null}try{let g=m.map(x=>on(x));return yield c(g)}catch(g){let x=(_=g.response)==null?void 0:_.data;return H_({errorMessage:(T=x==null?void 0:x.message)!=null?T:g.message,sessionId:o,clearSignInfo:n}),null}});var $_=e=>{let o=e.redirectRoute;o&&ze({url:o})},q_=({sendSignedTransactionsAsync:e=cr,sendSignedBatchTransactionsAsync:o=pr})=>{let n=N(),{nonce:r}=y(Xe),c=y(Ye),p=(0,Go.useRef)(!1),m=(0,Go.useRef)([]),l=()=>{n(Co()),p.current=!1},d=(0,Go.useCallback)(()=>u(void 0,null,function*(){var T;let _=Object.keys(c);for(let g of _){let x=c[g],L=(T=x==null?void 0:x.customTransactionInformation)==null?void 0:T.signWithoutSending;if(!x||!g||L){$_(x);continue}if(m.current.includes(g))continue;let{transactions:w}=x;if(!w||!(x.status==="signed"&&!p.current))continue;p.current=!0,m.current.push(g);let G=yield V_({session:x,sessionId:g,clearSignInfo:l,sendSignedTransactionsAsync:e,sendSignedBatchTransactionsAsync:o}),H="pending",R=w.map(ee=>G!=null&&G.includes(ee.hash)?k(h({},ee),{status:H}):ee);n(tc({sessionId:g,submittedMessage:"submitted"})),n(Re({sessionId:g,status:"sent",transactions:R})),l(),mm(r+w.length),$_(x);let[ie]=w;Fa({transaction:ie}),p.current=!1}}),[c,r]);return(0,Go.useEffect)(()=>{d()},[c,d]),null};t();t();t();var iu=require("react");t();var j_=require("react");t();var DS=e=>e.batchTransactions,z_=v(DS,e=>{let o=h({},e);return delete o._persist,o});function Sn(){let e=y(z_),o=(0,j_.useMemo)(()=>Object.entries(e).map(([n,r])=>({batchId:n,transactions:r.transactions})),[e]);return{batches:e,batchTransactionsArray:o}}M();t();var Mr=require("react");ft();t();E();var bn=e=>{if(!e||typeof e!="string")return null;let o=e.split(yt)[0];return Qt(o)?parseInt(o,10):null};t();var Pr=(e,o)=>new Date().getTime()-e>o;t();var tu=require("react");t();var Z_=require("react");M();t();var J_=require("react");t();var K_=b(require("axios"));po();function X_(n){return u(this,arguments,function*({batchId:e,address:o}){let{apiAddress:r,apiTimeout:c}=K(S.getState()),{data:p}=yield K_.default.get(`${r}/${Yt}/${o}/${e}`,{timeout:Number(c!=null?c:gt)});return p})}var Y_=()=>{let{address:e}=le();return(0,J_.useCallback)(o=>u(void 0,null,function*(){try{return yield X_({batchId:o,address:e})}catch(n){return console.error(n),null}}),[e])};var Cr=()=>{let e=Y_();return(0,Z_.useCallback)(n=>u(void 0,[n],function*({batchId:o}){let r=yield e(o);return r?{statusResponse:r,isBatchSuccessful:r.status==="success",isBatchFailed:r.status==="fail"||r.status==="invalid"||r.status==="dropped",isBatchNotFound:Boolean(r.statusCode)&&Boolean(r.message)}:{statusResponse:r,isBatchSuccessful:!1,isBatchFailed:!0,isBatchNotFound:!1}}),[e])};t();M();var Nr=({transactions:e,hasUnrelatedTransactions:o})=>{let n=e.every(({status:d})=>d==="fail"),r=e.some(({status:d})=>d==="fail"),c=e.some(({status:d})=>d==="pending"),p=e.every(({status:d})=>d==="success"),m=o&&Boolean(!c&&!n&&r);return{isPending:c,isSuccessful:p,isFailed:o?m?!1:n:r,isIncompleteFailed:m}};t();var Q_=require("react");P();function eu(){let e=N(),o=Cr();return(0,Q_.useCallback)(r=>u(this,[r],function*({batchId:n}){let c=yield o({batchId:n});return c.statusResponse&&e(Ec(c.statusResponse)),c}),[e,o])}t();var Mi=require("react");P();t();t();var wn=class{constructor(o){this.status=(o||"").toLowerCase()}static createUnknown(){return new wn("unknown")}isPending(){return this.status=="received"||this.status=="pending"}isExecuted(){return this.isSuccessful()||this.isFailed()||this.isInvalid()}isSuccessful(){return this.status=="executed"||this.status=="success"||this.status=="successful"}isFailed(){return this.status=="fail"||this.status=="failed"||this.status=="unsuccessful"||this.isInvalid()}isInvalid(){return this.status=="invalid"}toString(){return this.status}valueOf(){return this.status}equals(o){return o?this.status==o.status:!1}};t();function ou(e){return new Promise(o=>setTimeout(o,e))}var nu=e=>u(void 0,null,function*(){let n=4,r;if(e.length===0)return{data:r,success:!1};for(;r===void 0&&n>0;)try{yield ou(3e3);let p=(yield Promise.allSettled(e.map(l=>Jp(l)))).map(l=>l.status==="fulfilled"?l.value.data:void 0).filter(l=>l!==void 0);if(p.length>0){let l=p.length===e.length,d=p.some(_=>new wn(_.status).isPending());l&&!d||n===1?(r=p,n=0):n-=1}else n-=1}catch(c){n-=1}return{data:r,success:r!==void 0}});M();function Rr(){let e=N(),{address:o}=le(),n=(0,Mi.useCallback)(({sessionId:r,dropUnprocessedTransactions:c,serverTransactions:p,batchTransactions:m})=>{for(let l of m){let d=p.find(_=>_.txHash===l.hash);if(!d){c&&e(Ne({sessionId:r,status:"fail",transactionHash:l.hash}));continue}e(Ne({sessionId:r,status:d.status,transactionHash:l.hash}))}},[e]);return(0,Mi.useCallback)(r=>u(this,null,function*(){if(!r)return;let{transactions:c,isBatchFailed:p,sessionId:m}=r;if(!c||c.length===0)return;if(p){for(let _ of c)e(Ne({sessionId:m,status:"fail",transactionHash:_.hash}));return}let{data:l,success:d}=yield nu(c.map(({hash:_})=>_).filter(_=>Boolean(_)));d&&l&&n({sessionId:m,dropUnprocessedTransactions:r.dropUnprocessedTransactions,serverTransactions:l,batchTransactions:c}),r.shouldRefreshBalance&&(yield an())}),[e,o,n])}var Dr=e=>{let o=N(),{signedTransactions:n}=gn(),r=eu(),c=Rr(),p=Cr(),m=e==null?void 0:e.onSuccess,l=e==null?void 0:e.onFail;return{verifyBatchStatus:(0,tu.useCallback)(T=>u(void 0,[T],function*({batchId:_}){var R,Q,ie,ee,xe;let g=(Q=(R=bn(_))==null?void 0:R.toString())!=null?Q:"",x=n[g];if(!x||!((ie=x.customTransactionInformation)==null?void 0:ie.grouping))return;let w=(xe=(ee=n[g])==null?void 0:ee.transactions)!=null?xe:[],{isSuccessful:C,isFailed:D,isPending:G}=Nr({transactions:w});if(!G)C&&(m==null||m(g)),D&&(l==null||l(g,"Error processing batch transactions."));else{let xo=yield r({batchId:_});yield c({sessionId:g.toString(),isBatchFailed:xo==null?void 0:xo.isBatchFailed,shouldRefreshBalance:!0,transactions:w})}}),[o,p,c,n,r,m,l])}};var ru=e=>{let{batchTransactionsArray:o}=Sn(),{verifyBatchStatus:n}=Dr(e),r=(0,Mr.useCallback)(()=>u(void 0,null,function*(){for(let{batchId:c}of o){let p=bn(c);!p||!Pr(p,9e4)||(yield n({batchId:c}))}}),[o,n]);(0,Mr.useEffect)(()=>{let c=setInterval(()=>u(void 0,null,function*(){r()}),6e3);return()=>clearInterval(c)},[r])};t();var Or=require("react");ft();var au=e=>{let{batchTransactionsArray:o}=Sn(),n=Rr(),r=e==null?void 0:e.onSuccess,c=e==null?void 0:e.onFail,p=(0,Or.useCallback)(()=>u(void 0,null,function*(){for(let{batchId:m,transactions:l}of o){let d=bn(m);if(!d||!Pr(d,6e5))continue;yield n({sessionId:d.toString(),shouldRefreshBalance:!0,dropUnprocessedTransactions:!0});let _=Er({transactions:l}),{isPending:T,isSuccessful:g,isFailed:x}=Nr({transactions:_});T||(ad(m),g&&(r==null||r(d.toString())),x&&(c==null||c(d.toString(),"Error processing batch transactions. Status: failed")))}}),[o,n,r,c]);(0,Or.useEffect)(()=>{let m=setInterval(()=>u(void 0,null,function*(){p()}),6e3);return()=>clearInterval(m)},[p])};var su=({onSuccess:e,onFail:o})=>{let{batches:n}=Sn(),{signedTransactionsArray:r}=gn(),{address:c}=le(),{verifyBatchStatus:p}=Dr({onSuccess:e,onFail:o}),m=()=>{},l=_=>u(void 0,null,function*(){yield p({batchId:_.batchId})}),d=()=>u(void 0,null,function*(){for(let[_,T]of r){let g=zn({sessionId:_,address:c}),x=!Boolean(n[g]);!(T.status!=="sent")||x||(yield p({batchId:g}))}});kr(m,l),ru({onSuccess:e,onFail:o}),au({onSuccess:e,onFail:o}),(0,iu.useEffect)(()=>{d()},[])};t();var cu=require("react");function pu(e){var c;let o=Td(),n=(c=e==null?void 0:e.getTransactionsByHash)!=null?c:mr,r=()=>{o(h({shouldRefreshBalance:!0,getTransactionsByHash:n},e))};kr(r),(0,cu.useEffect)(()=>{let p=setInterval(r,3e4);return()=>{clearInterval(p)}},[r])}function mu(e){return pu(e),su(e),null}function du({customComponents:e}){var p,m;let o=e==null?void 0:e.transactionSender,n=e==null?void 0:e.transactionTracker,r=(p=o==null?void 0:o.component)!=null?p:q_,c=(m=n==null?void 0:n.component)!=null?m:mu;return vn.default.createElement(vn.default.Fragment,null,vn.default.createElement(r,h({},o==null?void 0:o.props)),vn.default.createElement(c,h({},n==null?void 0:n.props)),vn.default.createElement(W_,null))}var BS=()=>{var e;if(ud()==="webWallet"){let o=Ue.getInstance();(e=o.init)==null||e.call(o),ur(o)}else ur(_d)},FS=({children:e,customNetworkConfig:o={},externalProvider:n,environment:r,customComponents:c,dappConfig:p})=>{if(!r)throw new Error("missing environment flag");return n!=null?ur(n):p!=null&&p.shouldUseWebViewProvider&&BS(),An.default.createElement(lu.Provider,{context:Un,store:S},An.default.createElement(_u.PersistGate,{persistor:tp,loading:null},()=>An.default.createElement(Xa,{environment:r,customNetworkConfig:o,dappConfig:p},An.default.createElement(rd,null),An.default.createElement(du,{customComponents:c}),e)))};0&&(module.exports={AppInitializer,AuthenticatedRoutesWrapper,AxiosInterceptor,AxiosInterceptorContext,AxiosInterceptorContextProvider,DappProvider,LoginInfoListener,useAppInitializer,useAxiosInterceptorContext});
2762
+ }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(h_));uS={dappModal:"dapp-core-component__dappModalStyles__dappModal",dappModalContent:"dapp-core-component__dappModalStyles__dappModalContent",dappModalHeader:"dapp-core-component__dappModalStyles__dappModalHeader",dappModalHeaderText:"dapp-core-component__dappModalStyles__dappModalHeaderText",dappModalBody:"dapp-core-component__dappModalStyles__dappModalBody",dappModalFooter:"dapp-core-component__dappModalStyles__dappModalFooter",dappModalCloseButton:"dapp-core-component__dappModalStyles__dappModalCloseButton"}});var US={};Ge(US,{AppInitializer:()=>Xa,AuthenticatedRoutesWrapper:()=>jp,AxiosInterceptor:()=>Za,AxiosInterceptorContext:()=>Ih,AxiosInterceptorContextProvider:()=>Ja,DappProvider:()=>FS,LoginInfoListener:()=>Ya,useAppInitializer:()=>um,useAxiosInterceptorContext:()=>sn});module.exports=ve(US);t();t();t();var qn=b(require("react"));t();var rp=require("react"),Zo=require("react-redux");t();var Ea=require("@reduxjs/toolkit"),op=require("react-redux/lib/utils/Subscription");P();t();var Oc=b(require("lodash.throttle"));E();P();da();Ko();Io();var Vg=[Tt],Gt=!1,$g=(0,Oc.default)(()=>{Rn(Nn())},5e3),Bc=e=>o=>n=>{if(Vg.includes(n.type))return o(n);let r=e.getState(),c=Pe.local.getItem(ge.loginExpiresAt);if(!Boolean(r==null?void 0:r.account.address))return o(n);if(c==null)return Rn(Nn());let m=Date.now();return c-m<0&&!Gt?setTimeout(()=>{Gt=!0,e.dispatch(Zs())},1e3):(Gt&&(Gt=!1),$g()),o(n)};t();t();function Ht(){return typeof sessionStorage!="undefined"}var Zc=Ht()?(Vc(),ve(Hc)).default:(qc(),ve($c)).default,Qc=Ht()?(jc(),ve(zc)).default:[],ep=Ht()?(Yc(),ve(Jc)).default:e=>e;Vt();var S=(0,Ea.configureStore)({reducer:Zc,middleware:e=>e({serializableCheck:{ignoredActions:[...Qc,wt.type,mo.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Bc)}),np=(0,op.createSubscription)(S),tp=ep(S),cv=(0,Ea.configureStore)({reducer:No});var uf={store:S,subscription:np},Un=(0,rp.createContext)(uf),lv=(0,Zo.createStoreHook)(Un),N=(0,Zo.createDispatchHook)(Un),y=(0,Zo.createSelectorHook)(Un);t();t();P();t();var ap=b(require("lodash.isequal")),$t=require("reselect"),v=(0,$t.createSelectorCreator)($t.defaultMemoize,ap.default);var De=e=>e.account,Se=v(De,e=>e.address),Xe=v(De,Se,(e,o)=>o in e.accounts?e.accounts[o]:bt),ip=v(De,Xe,(e,o)=>{let c=e,{accounts:n}=c,r=We(c,["accounts"]);return k(h({},r),{address:o.address,account:o})}),gf=v(Xe,e=>e.balance),sp=v(Xe,e=>{var o;return((o=e==null?void 0:e.nonce)==null?void 0:o.valueOf())||0}),hv=v(De,e=>e.shard),Pa=v(De,e=>e.ledgerAccount),Tv=v(De,e=>e.walletConnectAccount),cp=v(De,e=>e.isAccountLoading),yv=v(De,e=>e.accountLoadingError),Ca=v(De,e=>e.websocketEvent),pp=v(De,e=>e.websocketBatchEvent);t();var mp=e=>e.dappConfig,dp=v(mp,e=>e.shouldUseWebViewProvider);t();var J=e=>e.loginInfo,qt=v(J,e=>e.loginMethod),be=v(J,Se,(e,o)=>Boolean(o)),lp=v(J,e=>e.walletConnectLogin),zt=v(J,e=>e.ledgerLogin),Qo=v(J,e=>e.walletLogin),_p=v(J,e=>e.isLoginSessionInvalid),en=v(J,e=>e.tokenLogin),_o=v(J,e=>e.logoutRoute),ff=v(J,e=>e.isWalletConnectV2Initialized);t();var up=e=>e.modals,kv=v(up,e=>e.txSubmittedModal),hf=v(up,e=>e.notificationModal);t();var Me=e=>e.networkConfig,Ro=v(Me,e=>e.chainID),Pv=v(Me,e=>e.network.walletConnectBridgeAddress),gp=v(Me,e=>e.network.walletConnectV2RelayAddress),fp=v(Me,e=>e.network.walletConnectV2ProjectId),hp=v(Me,e=>e.network.walletConnectV2Options),Tp=v(Me,e=>e.network.walletConnectDeepLink),K=v(Me,e=>e.network),Wn=v(K,e=>e.apiAddress),yp=v(K,e=>e.explorerAddress),jt=v(K,e=>{var o;return(o=e.customWalletAddress)!=null?o:e.walletAddress}),Tf=v(K,e=>e.xAliasAddress),xp=v(K,e=>e.egldLabel);t();var Kt=e=>e.signedMessageInfo,Rv=v(Kt,e=>e.isSigning),Dv=v(Kt,e=>e.errorMessage),Mv=v(Kt,e=>{let o=Object.keys(e.signedSessions),n=o.length;return e.signedSessions[o[n-1]]}),Ov=v(Kt,e=>{let o=Object.keys(e.signedSessions),n=o.length;return o.length>0?o[n-1]:""});t();var Sp=e=>e.toasts,yf=v(Sp,e=>e.customToasts),bp=v(Sp,e=>e.transactionToasts);t();P();var wp={errorMessage:ya,successMessage:xa,processingMessage:Sa},vp=e=>e.transactionsInfo,xf=v(vp,(e,o)=>o,(e,o)=>o!=null&&(e==null?void 0:e[Number(o)])||wp);t();t();var Oe=require("@multiversx/sdk-core");E();t();var Na=require("@multiversx/sdk-core/out");t();t();function Xt(e){try{let o=atob(e),n=btoa(o),r=a.Buffer.from(e,"base64").toString(),c=a.Buffer.from(r).toString("base64"),p=e===n||n.startsWith(e),m=e===c||c.startsWith(e);if(p&&m)return!0}catch(o){return!1}return!1}function Do(e){return Xt(e)?atob(e):e}t();t();t();t();var Ap=e=>{let o=e!=null?e:"";return Xt(o)?Na.TransactionPayload.fromEncoded(o):new Na.TransactionPayload(o)};t();E();var Gn=({data:e,onlySetGuardian:o})=>e?o?e.startsWith("SetGuardian"):Object.values(Qr).some(n=>e.startsWith(n)):!1;function on(e){var r,c,p;let o=Object.assign({},e);Gn({data:o.data,onlySetGuardian:!0})&&(delete o.senderUsername,delete o.receiverUsername);let n=new Oe.Transaction(h(h(k(h(k(h({value:o.value.valueOf(),data:Ap(o.data),nonce:o.nonce.valueOf(),receiver:new Oe.Address(o.receiver)},o.receiverUsername?{receiverUsername:o.receiverUsername}:{}),{sender:new Oe.Address(o.sender)}),o.senderUsername?{senderUsername:o.senderUsername}:{}),{gasLimit:(r=o.gasLimit.valueOf())!=null?r:Pn,gasPrice:(c=o.gasPrice.valueOf())!=null?c:ht,chainID:o.chainID.valueOf(),version:new Oe.TransactionVersion((p=o.version)!=null?p:Cs)}),o.options?{options:new Oe.TransactionOptions(o.options)}:{}),o.guardian?{guardian:new Oe.Address(o.guardian)}:{}));return o.guardianSignature&&n.applyGuardianSignature(a.Buffer.from(o.guardianSignature,"hex")),o.signature&&n.applySignature(a.Buffer.from(o.signature,"hex")),n}t();t();E();t();t();t();var wf=require("@multiversx/sdk-core/out");t();E();t();var kp=require("@multiversx/sdk-core");M();t();var Ip=require("@multiversx/sdk-core");function vf(e){try{let o=new Ip.Address(e);return Boolean(o.bech32())}catch(o){return!1}}function Hn(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&vf(e)}t();t();t();var Af=require("@multiversx/sdk-core"),If=b(require("bignumber.js"));U();t();t();t();var Jt="accounts";var Ra="blocks";var Pp="dapp/config";var Cp="network/config";var Yt="batch";t();t();t();t();ce();t();t();ce();t();t();t();var Nf=b(require("bignumber.js"));E();t();var Cf=require("@multiversx/sdk-core"),Da=b(require("bignumber.js"));E();t();var Dp=b(require("bignumber.js")),Qt=(e,o=!0)=>{let n=String(e);if(!n.match(/^[-]?\d+$/))return!1;let r=new Dp.default(n),c=o?0:-1;return r.toString(10)===n&&r.comparedTo(0)>=c};t();Da.default.config({ROUNDING_MODE:Da.default.ROUND_FLOOR});t();t();t();E();t();t();t();t();E();t();E();t();var Rf=require("@multiversx/sdk-core");E();t();var $n=require("@multiversx/sdk-core"),Bf=b(require("bignumber.js"));E();t();t();var Df=b(require("bignumber.js"));E();t();E();t();t();t();t();t();t();E();t();E();t();E();t();ce();var Uf=["reDelegateRewards","claimRewards","unBond"],Wf=["wrapEgld","unwrapEgld"],Gf=["unStake"],Hf=["unDelegate"];t();t();t();E();t();var zf=b(require("bignumber.js"));t();t();ce();t();var Kf=b(require("bignumber.js"));t();t();t();t();var Yf=b(require("bignumber.js"));M();t();t();t();t();U();t();var Bp=require("@multiversx/sdk-web-wallet-provider");E();t();var Op=b(require("qs"));t();t();t();t();t();var ne=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined";var O=()=>{if(!ne())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:o,hash:n,origin:r,href:c,search:p}}=window;return{pathname:o,hash:n,origin:r,href:c,search:p}};var er=(e="")=>{let o=O(),n=e.startsWith("http")||e.startsWith("www.");return!o.origin||e.startsWith(o.origin)||n?e:`${o.origin}/${e.replace("/","")}`};t();var or=e=>{let o=new URLSearchParams(e).toString(),{pathname:n,hash:r}=O(),c=o?`?${o}`:"",p=n?`${n}${c}${r}`:"./";setTimeout(()=>{window==null||window.history.replaceState({},document==null?void 0:document.title,p)})};t();var Zf={search:ne()?window.location.search:"",removeParams:[]},nr=(e,o=Zf)=>{var m;let n={},r=ne()?window.location.search:"",c=(m=o.search)!=null?m:r;if(c){let l=c?new URLSearchParams(c):[];n=Object.fromEntries(l)}let p={};return e.forEach(l=>{p[l]=n[l],delete n[l]}),o.removeParams!=null&&Object.keys(n).forEach(l=>{var _,T;let[d]=l.split("[");(((_=o.removeParams)==null?void 0:_.includes(l))||((T=o.removeParams)==null?void 0:T.includes(d)))&&delete n[l]}),{remainingParams:p,params:n,clearNavigationHistory:()=>or(n)}};var Ba=({removeParams:e,search:o})=>{let n=ne()?window.location.search:"",r=o!=null?o:n;if(!r)return{};let c=Op.default.parse(r.replace("?","")),p=Object.keys(c).filter(l=>!e.includes(l)),{remainingParams:m}=nr(p,{search:o,removeParams:e});return or(m),m};var Fa=({transaction:e,search:o})=>Ba({removeParams:[...Object.keys(e),Bp.WALLET_PROVIDER_CALLBACK_PARAM,Cn,ta],search:o});t();t();t();t();ce();t();t();t();var Qf=b(require("linkifyjs"));t();E();t();var eh=b(require("bignumber.js"));t();M();t();t();U();t();U();t();t();t();ce();t();ce();t();var oh=b(require("bignumber.js"));E();ce();t();ce();t();var Up=require("react");M();t();t();ce();t();t();var nh=require("@multiversx/sdk-core/out"),th=b(require("bignumber.js"));ce();t();M();t();t();M();var hP=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];t();var Wp=require("react");M();t();var ah=require("react");ce();var AP=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Yo();t();var rr=e=>e.transactions,Ye=v(rr,e=>e.signedTransactions),ih=v(rr,e=>e.signTransactionsError),Gp=v(rr,e=>e.signTransactionsCancelMessage),ar=e=>o=>Object.entries(o).reduce((n,[r,c])=>(e(c.status)&&(n[r]=c),n),{}),Ua=v(Ye,ar(je)),Hp=v(Ye,ar(Eo)),Vp=v(Ye,ar(Po)),sh=v(Ye,ar(wa)),$p=v(rr,e=>{var o;return(e==null?void 0:e.transactionsToSign)==null?null:k(h({},e.transactionsToSign),{transactions:((o=e==null?void 0:e.transactionsToSign)==null?void 0:o.transactions.map(n=>on(n)))||[]})}),ch=v(Ye,(e,o)=>o,(e,o)=>o!=null?(e==null?void 0:e[o])||{}:{});t();var ir=()=>{let{search:e}=O(),o=new URLSearchParams(e),n=Object.fromEntries(o),r=n==null?void 0:n.address;return Hn(r)?r:null};ko();t();t();function qp(e,o){if(!e){typeof console!="undefined"&&console.warn(o);try{throw new Error(o)}catch(n){}}}function sr(e,o){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ph(e.path,e.caseSensitive,e.end),c=o.match(n);if(!c)return null;let p=c[0],m=p.replace(/(.)\/+$/,"$1"),l=c.slice(1);return{params:r.reduce((_,T,g)=>{if(T==="*"){let x=l[g]||"";m=p.slice(0,p.length-x.length).replace(/(.)\/+$/,"$1")}return _[T]=mh(l[g]||"",T),_},{}),pathname:p,pathnameBase:m,pattern:e}}function ph(e,o=!1,n=!0){qp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],c="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(m,l)=>(r.push(l),"([^\\/]+)"));return e.endsWith("*")?(r.push("*"),c+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(c,o?void 0:"i"),r]}function mh(e,o){try{return decodeURIComponent(e)}catch(n){return qp(!1,`The value for the URL param "${o}" will not be decoded because the string "${e}" is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}var zp=(e,o)=>e.filter(({authenticatedRoute:c})=>Boolean(c)).some(({path:c})=>sr(c,o)!==null);var jp=({children:e,routes:o,pathName:n,unlockRoute:r,onRedirect:c})=>{let p=ir(),m=y(be),l=y(cp),d=y(Qo),_=()=>ne()?window.location.pathname:"",g=zp(o,n!=null?n:_())&&!m&&d==null;(0,qn.useEffect)(()=>{if(!!g){if(c)return c(r);ze({url:r})}},[g,r]);let x=d!=null&&p;return l||x?null:qn.default.createElement(qn.default.Fragment,null,e)};t();var Fe=require("react"),_m=require("@multiversx/sdk-core/out");t();t();t();var Kp=b(require("axios"));function cr(e){return u(this,null,function*(){let{apiAddress:o,apiTimeout:n}=K(S.getState()),r=e.map(p=>Kp.default.post(`${o}/transactions`,p.toPlainObject(),{timeout:parseInt(n)}));return(yield Promise.all(r)).map(({data:p})=>p.txHash)})}t();var Xp=b(require("axios"));po();t();E();var zn=({sessionId:e,address:o})=>`${e}${yt}${o}`;function pr(n){return u(this,arguments,function*({transactions:e,sessionId:o}){var m;let r=Se(S.getState()),{apiAddress:c,apiTimeout:p}=K(S.getState());if(!r)return{error:"Invalid address provided. You need to be logged in to send transactions",batchId:null};try{let l=zn({sessionId:o,address:r}),d={transactions:e,id:l},_=yield Xp.default.post(`${c}/${Yt}`,d,{timeout:Number(p!=null?p:gt)});return{batchId:l,data:_.data}}catch(l){return console.error("error sending batch transactions",l),{error:(m=l==null?void 0:l.message)!=null?m:"error sending batch transactions",batchId:null}}})}t();var Wa=b(require("axios"));function mr(e){return u(this,null,function*(){let o=Wn(S.getState()),n=e.map(c=>c.hash),{data:r}=yield Wa.default.get(`${o}/transactions`,{params:{hashes:n.join(","),withScResults:!0}});return e.map(({hash:c,previousStatus:p})=>{let m=r.find(l=>(l==null?void 0:l.txHash)===c);return{hash:c,data:m==null?void 0:m.data,invalidTransaction:m==null,status:m==null?void 0:m.status,results:m==null?void 0:m.results,sender:m==null?void 0:m.sender,receiver:m==null?void 0:m.receiver,previousStatus:p,hasStatusChanged:m&&m.status!==p}})})}function Jp(e){return u(this,null,function*(){let o=Wn(S.getState());return yield Wa.default.get(`${o}/transactions/${e}`,{timeout:1e4})})}t();var lh=b(require("axios"));t();t();var _h=b(require("axios"));t();var uh=b(require("axios"));t();t();t();t();var Zp=require("@lifeomic/axios-fetch"),Ga=b(require("axios")),Ha=(0,Zp.buildAxiosFetch)(Ga.default),Va=(e,o)=>u(void 0,null,function*(){if(!e.ok)throw new Error(`HTTP error! Status: ${e.status}`);let r=e.clone().json(),[c]=yield Promise.all([r]);return{data:c,status:e.status,statusText:e.statusText,headers:e.headers,config:o}});function gh(e,o,n){return u(this,null,function*(){try{let r=yield Ha(e,h({method:"POST",body:o?JSON.stringify(o):void 0,headers:h({"Content-Type":"application/json"},(n==null?void 0:n.headers)||{})},n));return Va(r,n)}catch(r){throw console.error("Fetch Error:",r),r}})}function fh(e,o){return u(this,null,function*(){try{let n=yield Ha(e,o);if(!n.ok)throw new Error(`HTTP error! Status: ${n.status}`);return Va(n,o)}catch(n){throw console.error("Fetch Error:",n),n}})}function hh(e,o,n){return u(this,null,function*(){try{let r=yield Ha(e,h({method:"PATCH",body:o?JSON.stringify(o):void 0,headers:(n==null?void 0:n.headers)||{}},n));if(!r.ok)throw new Error(`HTTP error! Status: ${r.status}`);return Va(r,n)}catch(r){throw console.error("Fetch Error:",r),r}})}var jn=Ga.default.create();jn.get=fh;jn.post=gh;jn.patch=hh;t();t();var Kn=e=>{let o=e!=null?e:Wn(S.getState());return o.endsWith("/")?o.slice(0,-1):o};var Qp=e=>{let n=`${Kn()}/${Jt}/${e}?withGuardianInfo=true`;return jn.get(n)};function em(e){return u(this,null,function*(){if(!e)return null;try{let{data:o}=yield Qp(e);return o}catch(o){console.error("error fetching configuration for ",e)}return null})}t();t();po();t();var om=b(require("axios"));function $a(e){return u(this,null,function*(){let o=`${e}/${Pp}`;try{let{data:r}=yield om.default.get(o);if(r!=null){let c="egldDenomination";if(c in r){let n=r,{[c]:p,decimals:m}=n,l=We(n,[Vi(c),"decimals"]);return k(h({},l),{decimals:p,digits:m})}return r}}catch(r){console.error("error fetching configuration for ",o)}return null})}t();var nm=b(require("axios"));var Th=e=>{try{return Boolean(new URL(e))}catch(o){return!1}};function tm(){return u(this,null,function*(){var n;let e=Kn();if(!Th(e))return null;let o=`${e}/${Cp}`;try{let{data:r}=yield nm.default.get(o);if(r!=null)return(n=r==null?void 0:r.data)==null?void 0:n.config}catch(r){console.error("error fetching configuration for ",o)}return null})}t();po();t();po();function nn(e){return Es[e]}t();t();var xh=b(require("axios"));t();var Sh=b(require("axios"));po();t();var Ze=()=>y(ip);P();Dn();Mn();t();t();t();t();var rm=require("@multiversx/sdk-extension-provider"),am=require("@multiversx/sdk-hw-provider"),im=require("@multiversx/sdk-opera-provider"),sm=require("@multiversx/sdk-web-wallet-cross-window-provider"),qa=require("@multiversx/sdk-web-wallet-provider");E();U();t();var dr={},lr=tn;var bh="/dapp/init",eo=e=>{switch(e==null?void 0:e.constructor){case qa.WalletProvider:return"wallet";case lr:return"walletconnectv2";case am.HWProvider:return"ledger";case rm.ExtensionProvider:return"extension";case im.OperaProvider:return"opera";case sm.CrossWindowProvider:return"crossWindow";case tn:return"";default:return"extra"}},_r=e=>new qa.WalletProvider(`${e}${bh}`),za=e=>u(void 0,null,function*(){if(!e.isInitialized())throw new Error("Unable to get version. Provider not initialized");let o=e.hwApp,{contractData:n,version:r}=yield o.getAppConfiguration();return{version:r,dataEnabled:n===Ns}}),Qe=e=>`Unable to perform ${e}, Provider not initialized`,tn=class{init(){return Promise.resolve(!1)}login(o){throw new Error(Qe(`login with options: ${o}`))}logout(o){throw new Error(Qe(`logout with options: ${o}`))}getAddress(){throw new Error(Qe("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(o,n){throw new Error(Qe(`sendTransaction with transactions: ${o} options: ${n}`))}signTransaction(o,n){throw new Error(Qe(`signTransaction with transactions: ${o} options: ${n}`))}signTransactions(o,n){throw new Error(Qe(`signTransactions with transactions: ${o} options: ${n}`))}signMessage(o,n){throw new Error(Qe(`signTransactions with ${o} and options ${n}`))}sendCustomMessage({method:o,params:n}){throw new Error(Qe(`sendCustomMessage with method: ${o} params: ${n}`))}sendCustomRequest(o){throw new Error(Qe(`sendSessionEvent with options: ${o}`))}ping(){return Promise.resolve(!1)}},Mo=new tn;var Ka=Mo,ja=null;function de(e){Ka=e}function ur(e){ja=e}function rn(){ja!=null&&(Ka=ja)}function te(){return Ka||Mo}$();M();t();t();function we(e){return u(this,null,function*(){return yield em(e)})}t();t();function cm(){let e=te();return eo(e)}t();U();t();function Oo(e){return cm()===e}function Be(){let e=S.getState(),o=te(),n=Se(e),r=be(e),c=Qo(e);if(!o)throw"provider not initialized";return Oo("ledger")&&r?new Promise(p=>{p(n)}):!Oo("")&&!Oo("wallet")&&!Oo("extra")?o.getAddress():new Promise(p=>{let m=ir();c!=null&&m&&p(m),r&&p(n),p("")})}t();function Bo(e){let o=S.getState(),n=sp(o);return e?n&&!isNaN(n)?Math.max(n,e.nonce):e.nonce:n}t();var gr=()=>{let{search:e}=O(),o=new URLSearchParams(e),n=Object.fromEntries(o);return n==null?void 0:n.accessToken};t();$();M();t();P();var pm=()=>u(void 0,null,function*(){try{let e=yield Be();try{let o=yield we(e);if(o!=null){let n=k(h({},o),{nonce:Bo(o)});return S.dispatch(mo(n)),n}}catch(o){console.error("Failed getting account ",o)}}catch(e){console.error("Failed getting address ",e)}return null});function an(){return u(this,null,function*(){let e=te();if(e==null)throw"Provider not initialized";if(!e.isInitialized||e.isInitialized())return pm();try{if(!e.init)throw"Current provider does not have init() function";return(yield e.init())?pm():void 0}catch(o){console.error("Failed initializing provider ",o)}})}t();P();function mm(e){S.dispatch(wt(e))}t();var dm=require("@multiversx/sdk-core");ko();Ko();Io();var lm=({callbackUrl:e,onRedirect:o})=>{typeof o=="function"?o(e):e&&ze({url:e})},wh=e=>{let o=Pe.local.getItem(ge.logoutEvent),{data:n}=o?JSON.parse(o):{data:e};e===n&&(Pe.local.setItem({key:ge.logoutEvent,data:e,expires:0}),Pe.local.removeItem(ge.logoutEvent))},vh=500;function re(r,c){return u(this,arguments,function*(e,o,n=Boolean(gr())){var L;let p="",m=te(),d=eo(m)==="wallet",_=((L=m==null?void 0:m.isInitialized)==null?void 0:L.call(m))===!0;if(n&&(m==null?void 0:m.relogin)!=null)return m.relogin();try{p=yield Be(),wh(p)}catch(w){console.error("error fetching logout address",w)}let T=er(e),g=O(),x=new URL(decodeURIComponent(T)).pathname;if((sr(g.pathname,x)||d&&_)&&ac(),!p&&!_)return lm({callbackUrl:T,onRedirect:o});try{if(S.dispatch(W()),d)return setTimeout(()=>{m.logout({callbackUrl:T})},vh);yield m.logout({callbackUrl:T})}catch(w){}finally{d||lm({callbackUrl:T,onRedirect:o})}})}var um=({customNetworkConfig:e={},environment:o,dappConfig:n})=>{let[r,c]=(0,Fe.useState)(!1),p=Ze(),m=y(_p),l=(0,Fe.useMemo)(()=>n,[]),d=l==null?void 0:l.logoutRoute,{address:_,publicKey:T}=p,g=N();function x(){return u(this,null,function*(){let w=!(e!=null&&e.skipFetchFromServer),C=e==null?void 0:e.apiAddress,D=co[o]||{},G=h(h({},D),e);if(w){let H=D==null?void 0:D.apiAddress,R=yield $a(C||H);if(R!=null){let Q=h(h(h({},D),R),e);g(ga(Q));return}}g(ga(G))})}function L(){return u(this,null,function*(){l&&g(Dc(l)),g(Qs(d)),yield x(),c(!0)})}return(0,Fe.useEffect)(()=>{_&&new _m.Address(_).hex()!==T&&re(d)},[_,T,d]),(0,Fe.useEffect)(()=>{L()},[e,o,l]),(0,Fe.useEffect)(()=>{p.address&&m&&re(d)},[m,p.address,d]),{initialized:r}};function Xa({customNetworkConfig:e={},children:o,environment:n,dappConfig:r}){let[c,p]=(0,Fe.useState)(!(r!=null&&r.isSSR)),{initialized:m}=um({customNetworkConfig:e,environment:n,dappConfig:r});return(0,Fe.useEffect)(()=>{p(!0)},[]),c?m?o:null:o}t();t();var An=b(require("react")),lu=require("react-redux"),_u=require("redux-persist/integration/react");t();var Uo=require("react");t();var Gm=require("react"),xr=require("@multiversx/sdk-core");t();t();var le=()=>y(Xe);t();t();t();t();t();var oo=b(require("react"));var gm=(0,oo.createContext)({}),Ah=S.getState();function Ja({children:e}){let[o,n]=(0,oo.useState)(),[r,c]=(0,oo.useState)(J(Ah)),p={address:o,setAddress:n,isLoggedIn:Boolean(o),loginInfo:r,setLoginInfo:m=>c(m)};return oo.default.createElement(gm.Provider,{value:p},e)}function sn(){let e=(0,oo.useContext)(gm);if(e===void 0||Object.values(e).length===0)throw new Error("useAxiosInterceptorContext must be used within an AxiosInterceptorContextProvider");return e}t();var Xn=b(require("react"));var Ya=({children:e=null})=>{let{address:o}=le(),n=y(J),{setLoginInfo:r,setAddress:c}=sn();return(0,Xn.useEffect)(()=>{c(o),r(n)},[n,o]),Xn.default.createElement(Xn.default.Fragment,null,e)};t();var uo=b(require("react")),fr=b(require("axios"));var Za=({children:e,authenticatedDomains:o})=>{var l;let{loginInfo:n}=sn(),r=(l=n==null?void 0:n.tokenLogin)==null?void 0:l.nativeAuthToken,c=(0,uo.useRef)(-1),p=()=>{fr.default.interceptors.response.use(d=>d,d=>{var T,g;let _=(T=d.config)==null?void 0:T.url;return(g=d.config)!=null&&g.params&&(_+=`?${new URLSearchParams(d.config.params).toString()}`),console.error("Axios error for: ",_),Promise.reject(d)})},m=()=>{fr.default.interceptors.request.eject(c.current),c.current=fr.default.interceptors.request.use(d=>u(void 0,null,function*(){return o.includes(String(d==null?void 0:d.baseURL))&&d.headers.set("Authorization",`Bearer ${r}`),d}),d=>{Promise.reject(d)})};return(0,uo.useEffect)(p,[]),(0,uo.useEffect)(()=>{r&&m()},[r]),uo.default.createElement(uo.default.Fragment,null,e)};var Ih={Interceptor:Za,Listener:Ya,Provider:Ja};t();t();var cn=()=>{let e=te(),o=eo(e);return{provider:e,providerType:o}};t();t();var kh=require("react"),Lh=b(require("swr"));t();P();t();t();var Wm=require("@multiversx/sdk-native-auth-client");t();var Tm=b(require("axios"));t();t();t();function fm(e){return u(this,null,function*(){return yield new Promise(o=>{setTimeout(()=>o(),e)})})}t();var hm=(e,o,n,r=0)=>u(void 0,null,function*(){try{return yield e(...n)}catch(c){return r<o.retries?((o==null?void 0:o.delay)!=null&&(yield fm(o.delay)),yield hm(e,o,n,r+1)):null}}),hr=(e,o={retries:5,delay:500})=>(...n)=>u(void 0,null,function*(){return yield hm(e,o,n)});var Eh=4,Ph=3e4,Tr={current:null},Fo={current:null},Ch=hr((e,o,n)=>u(void 0,null,function*(){if(n){let p=Math.floor(Date.now()/1e3);return{hash:yield n(),timestamp:p}}let{data:r}=yield Tm.default.get(`${e}/${Ra}?from=${Eh}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[c]=r;return c}));function ym(e,o,n,r){return u(this,null,function*(){if(e==null)throw new Error("missing api url");let c=Date.now();if(Tr.current!=null&&c<Tr.current.timestamp*1e3+Ph&&!r)return Tr.current;if(Fo.current!=null)return yield Fo.current;Fo.current=Ch(e,o,n);try{let p=yield Fo.current;if(p==null)throw Fo.current=null,new Error("could not get block hash");return Tr.current={hash:p.hash,timestamp:p.timestamp},Fo.current=null,p}catch(p){return Fo.current=null,null}})}t();t();xt();t();t();var Um=b(Fm());var pn=e=>{if(!e||!(0,Um.default)(e))return null;let o=e.split(".");if(o.length!==4)return null;try{let[n,r,c,p]=o,m=JSON.parse(Do(p)),l=Do(n);return{ttl:Number(c),extraInfo:m,origin:l,blockHash:r}}catch(n){return console.error(`Error trying to decode ${e}:`,n),null}};function nT(e){return Object.prototype.toString.call(e)==="[object String]"}var yr=e=>{var n;if(!e||!nT(e))return null;let o=e.split(".");if(o.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[r,c,p]=o,m=Do(r),l=Do(c),d=pn(l);if(!d)return{address:m,body:l,signature:p,blockHash:"",origin:"",ttl:0};let _=k(h({},d),{address:m,body:l,signature:p});return(n=d.extraInfo)!=null&&n.timestamp||delete _.extraInfo,_}catch(r){return null}};var oi={isExpired:!1},mn=e=>{if(!e)return oi;let o=yr(e);if(!o)return oi;let n=jo(),{ttl:r,extraInfo:c}=o,p=c==null?void 0:c.timestamp;if(!p)return oi;let m=p+r,l=n>m,d=m-n;return{isExpired:l,expiresAt:m,secondsUntilExpires:d}};t();var Zn={origin:O().origin,apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},Qn=e=>{var n,r,c,p,m,l;return e===!0?Zn:{origin:(n=e==null?void 0:e.origin)!=null?n:Zn.origin,blockHashShard:e==null?void 0:e.blockHashShard,expirySeconds:(r=e==null?void 0:e.expirySeconds)!=null?r:Zn.expirySeconds,apiAddress:(c=e==null?void 0:e.apiAddress)!=null?c:Zn.apiAddress,tokenExpirationToastWarningSeconds:(p=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?p:Zn.tokenExpirationToastWarningSeconds,extraInfo:(m=e==null?void 0:e.extraInfo)!=null?m:{},gatewayUrl:e==null?void 0:e.gatewayUrl,extraRequestHeaders:(l=e==null?void 0:e.extraRequestHeaders)!=null?l:{}}};var et=e=>{let{origin:o,apiAddress:n,expirySeconds:r,blockHashShard:c,extraInfo:p,gatewayUrl:m,extraRequestHeaders:l}=Qn(e),d=new Wm.NativeAuthClient({origin:o,apiUrl:n,expirySeconds:r,blockHashShard:c,gatewayUrl:m,extraRequestHeaders:l});return{getNativeAuthConfig:Qn,initialize:g=>u(void 0,null,function*(){var H,R;if(!n||!o)return"";let x=()=>d.getCurrentBlockHash(),L=(H=g==null?void 0:g.latestBlockInfo)!=null?H:yield ym(n,c,x,g==null?void 0:g.noCache),{hash:w,timestamp:C}=L,D=d.encodeValue(JSON.stringify(h(h({},(R=g==null?void 0:g.extraInfo)!=null?R:p),C?{timestamp:C}:{})));return`${d.encodeValue(o)}.${w}.${r}.${D}`}),getToken:({address:g,token:x,signature:L})=>d.getToken(g,x,L),getTokenExpiration:mn}};var tT=(e,o)=>{var n;return o?o===!0?e:(n=o.apiAddress)!=null?n:e:null},no=e=>{let o=y(K),n=y(en),r=(0,Gm.useRef)(n==null?void 0:n.loginToken),c=tT(o.apiAddress,e),p=Qn(h(h({},e===!0?{}:e),c?{apiAddress:c}:{})),m=Boolean(e),l=et(p),{address:d}=le(),_=N(),T=w=>{r.current=w,_(lo(h(k(h({},n),{loginToken:w}),c?{nativeAuthConfig:p}:{})))},g=()=>{try{return l.initialize()}catch(w){console.error("Unable to get block. Login failed.",w);return}},x=({address:w,signature:C})=>{let D=r.current;if(!D)throw"Token not found. Call `setLoginToken` first.";if(!m){_(lo({loginToken:D,signature:C}));return}let G=l.getToken({address:w,token:D,signature:C});return _(lo(h({loginToken:D,signature:C,nativeAuthToken:G},c?{nativeAuthConfig:p}:{}))),G};return{configuration:p,setLoginToken:T,getNativeAuthLoginToken:g,setTokenLoginInfo:x,refreshNativeAuthTokenLogin:D=>u(void 0,[D],function*({signMessageCallback:w,nativeAuthClientConfig:C}){let H=yield et(C||p).initialize({noCache:Boolean(C)});if(r.current=H,!H)return;let R=new xr.SignableMessage({address:new xr.Address(d),message:a.Buffer.from(`${d}${H}`)}),Q=yield w(R,{});return x({address:d,signature:Q.getSignature().toString("hex")})})}};t();var _e=require("react");t();var Sr=require("react");function Hm(e,o=[]){let n=(0,Sr.useRef)(!0);(0,Sr.useEffect)(()=>{n.current?n.current=!1:e()},o)}$();P();U();t();t();var zm=b(br()),ni=typeof window!="undefined"?window:{},$m,qm,aT=(qm=($m=ni==null?void 0:ni.location)==null?void 0:$m.origin)==null?void 0:qm.includes("localhost"),jm=e=>{if(!(0,zm.default)(e))return Boolean(e);let n=h({},e);return Boolean(aT)&&delete n.origin,Object.keys(n).length>0};t();function go(){return be(S.getState())}Lo();t();var Km=({maxRetries:e})=>new Promise((o,n)=>{let r=0,c=()=>{let p=Ro(S.getState()),m=nn(p);if(Boolean(m)){o(p);return}if(r<e){r++,setTimeout(c,1e3);return}n(null)};c()});var ti=({callbackRoute:e,token:o,nativeAuth:n,onLoginRedirect:r,logoutRoute:c,customRequestMethods:p=[]})=>{var Fi;let m=N(),l=jm(n),d=no(l?n:!1),_=o,[T,g]=(0,_e.useState)(""),[x,L]=(0,_e.useState)(""),[w,C]=(0,_e.useState)(!0),[D,G]=(0,_e.useState)([]),[H,R]=(0,_e.useState)(null),{provider:Q}=cn(),ie=y(gp),ee=y(fp),xe=y(hp),xo=y(Tp),Br=y(_o),Fr=y(qt),F=(0,_e.useRef)(Q),So=(0,_e.useRef)(!1),B=(0,_e.useRef)(!1),Z=(Fi=c!=null?c:Br)!=null?Fi:"/",bo=[dr.CANCEL_ACTION,...p];o&&bo.push(dr.SIGN_LOGIN_TOKEN),l&&bo.push(dr.SIGN_NATIVE_AUTH_TOKEN);let Ur=w?"":`${xo}?wallet-connect=${encodeURIComponent(x)}`,In=Boolean(T),kn=go(),Ho=()=>{re(Z)},uu=z=>{console.log("WalletConnect Session Event: ",z)},gu=()=>u(void 0,null,function*(){var z,Y,j;try{if(So.current||F.current==null)return;if(!B.current){try{yield(z=F.current)==null?void 0:z.logout()}catch(Ln){console.warn("Unable to logout")}return}let q=yield(Y=F.current)==null?void 0:Y.getAddress();if(!q){console.warn("Login cancelled.");return}let ue=yield(j=F.current)==null?void 0:j.getSignature(),ao={address:q,loginMethod:"walletconnectv2"},io={logoutRoute:Z,loginType:"walletconnectv2",callbackRoute:e!=null?e:O().href};m(Ys(io)),ue&&d.setTokenLoginInfo({signature:ue,address:q}),m(oe(ao)),Jo({callbackRoute:e,onLoginRedirect:r,options:{address:q,signature:ue}})}catch(q){g("User rejected connection proposal"),console.error(q)}}),fu=()=>u(void 0,null,function*(){var Y,j,q,ue,ao;if(eo(F.current)==="walletconnectv2")try{((ue=(q=(j=(Y=F.current)==null?void 0:Y.walletConnector)==null?void 0:j.session)==null?void 0:q.getAll())!=null?ue:[]).length>0&&(yield(ao=F.current)==null?void 0:ao.logout()),F.current=Mo,R(null)}catch(io){console.warn("Unable to logout")}}),hu=z=>u(void 0,null,function*(){var Y,j,q;if(!ie||!ee){g("Invalid WalletConnect setup");return}if(!z||!z.topic){g("Expired connection");return}try{let{approval:ue}=yield(Y=F.current)==null?void 0:Y.connect({topic:z.topic,methods:bo});if(l&&!_&&(_=yield d.getNativeAuthLoginToken(),!_)){console.warn("Fetching block failed. Login cancelled.");return}_&&d.setLoginToken(_);try{yield(j=F.current)==null?void 0:j.login({approval:ue,token:_})}catch(ao){g("User rejected existing connection proposal"),C(!0),yield Wr()}}catch(ue){console.error("Unable to connect to existing session",ue),g("Unable to connect to existing session")}finally{G((q=F.current)==null?void 0:q.pairings)}}),Tu=z=>u(void 0,null,function*(){var Y,j;try{z&&(yield(Y=F.current)==null?void 0:Y.logout({topic:z}))}catch(q){console.error("Unable to remove existing pairing",q),g("Unable to remove existing pairing")}finally{let q=yield(j=F.current)==null?void 0:j.getPairings();G(q)}});function Wr(z=!0){return u(this,null,function*(){var Ln,Ui,Wi;let Y=yield Km({maxRetries:15});if(!Y){g("Invalid chainID");return}if(!ee||!ie){g("Invalid WalletConnect setup");return}let j=go(),q=B.current===!1&&!j,ue=(Ui=(Ln=F.current)==null?void 0:Ln.isInitialized)==null?void 0:Ui.call(Ln);if(So.current||q||ue)return;if(So.current=!0,(Wi=F.current)!=null&&Wi.walletConnector){yield F.current.init(),R(F.current),So.current=!1,z&&(yield Bi());return}let ao={onClientLogin:gu,onClientLogout:Ho,onClientEvent:uu},io=new lr(ao,Y,ie,ee,xe);yield io.init(),R(io),F.current=io,So.current=!1,z&&(G(io.pairings),yield Bi())})}function Bi(){return u(this,null,function*(){var z,Y;if(!!F.current){if(!ie||!ee){g("Invalid WalletConnect setup");return}try{if(!B.current)return;let{uri:j,approval:q}=yield(z=F.current)==null?void 0:z.connect({methods:bo});if(!Boolean(j))return;if(L(j),(xe==null?void 0:xe.logger)==="debug"&&console.log("WalletConnect uri: ",j),l&&!_&&(_=yield d.getNativeAuthLoginToken(),!_)){console.warn("Fetching block failed. Login cancelled.");return}_&&d.setLoginToken(_);try{yield(Y=F.current)==null?void 0:Y.login({approval:q,token:_})}catch(ao){g("User rejected connection proposal"),C(!0),yield Wr()}}catch(j){console.error("Unable to connect",j)}}})}return Hm(()=>{F.current=Q},[Q]),(0,_e.useEffect)(()=>(B.current=!0,()=>{B.current=!1}),[]),(0,_e.useEffect)(()=>{C(!Boolean(x))},[x]),(0,_e.useEffect)(()=>{if(!H)return;(Boolean(H.session)||Fr==="walletconnectv2")&&kn&&de(H)},[H,kn]),[Wr,{error:T,loginFailed:In,isLoading:w&&!In,isLoggedIn:kn&&!In},{uriDeepLink:Ur,walletConnectUri:x,cancelLogin:fu,connectExisting:hu,removeExistingPairing:Tu,wcPairings:D}]};$();P();U();t();var Xm=require("react");t();$();P();M();function dn(e,o=S.dispatch){let n=yr(e);if(n==null)return;let{signature:r,address:c}=n;r&&e&&c&&(o(lo({loginToken:e,signature:r,nativeAuthToken:e})),o(oe({address:c,loginMethod:"extra"})))}function Jm(){let e=N(),o=y(dp),n=gr();(0,Xm.useEffect)(()=>{!o||dn(n,e)},[n,o])}t();t();var Ym=require("@multiversx/sdk-opera-provider");function Zm(e){return u(this,null,function*(){try{let o=Ym.OperaProvider.getInstance().setAddress(e);if(yield o.init())return o;console.error("Could not initialise opera crypto wallet, make sure that opera crypto wallet is installed.")}catch(o){console.error("Unable to login to OperaProvider",o)}return null})}t();var Qm=require("@multiversx/sdk-extension-provider");function ed(e){return u(this,null,function*(){try{let o=Qm.ExtensionProvider.getInstance().setAddress(e);if(yield o.init())return o;console.error("Could not initialise extension, make sure MultiversX wallet extension is installed.")}catch(o){console.error("Unable to login to ExtensionProvider",o)}return null})}t();var od=require("@multiversx/sdk-web-wallet-cross-window-provider");function ri(n){return u(this,arguments,function*({address:e,walletUrl:o}){try{let r=od.CrossWindowProvider.getInstance().setAddress(e).setWalletUrl(o);if(yield r.init())return r;console.error("Could not initialise Cross Window Wallet provider")}catch(r){console.error("Unable to login to CrossWindowWalletProvider",r)}return null})}t();t();var nd=n=>u(void 0,[n],function*({loginToken:e,extraInfoData:o}){if(e==null||Object.keys(o).length===0)return null;let r=pn(String(e)),_=(r==null?void 0:r.extraInfo)||{},{timestamp:c}=_,p=We(_,["timestamp"]);if(!(r&&c!=null))return null;let l={hash:String(r==null?void 0:r.blockHash),timestamp:Number(c)};return yield et({extraInfo:h(h({},p),o),expirySeconds:r==null?void 0:r.ttl,origin:r==null?void 0:r.origin}).initialize({latestBlockInfo:l})});var ai=p=>u(void 0,[p],function*({loginToken:e,extraInfoData:o,address:n,signature:r,loginService:c}){let m=yield nd({loginToken:e,extraInfoData:o}),l=o.multisig||o.impersonate||n,d=m!=null?l:n;return m!=null&&c.setLoginToken(m),r&&c.setTokenLoginInfo({signature:r,address:n}),yield we(d)});t();t();var td=require("react"),ii=require("@multiversx/sdk-hw-provider");var si=()=>{let e=y(_o),o=y(be),n=y(zt),r=te(),[c,p]=(0,td.useState)(),m=()=>u(void 0,null,function*(){let d=(n==null?void 0:n.index)!=null;try{if(r instanceof ii.HWProvider&&r.isInitialized())return d&&(yield r.setAddressIndex(n.index)),r;let _=new ii.HWProvider;return(yield _.init())?(d&&(yield _.setAddressIndex(n.index)),_):null}catch(_){return console.error("Failed to initialise Ledger Provider"),null}});function l(d){return u(this,null,function*(){let _,T=o&&!(d!=null&&d.isRelogin);try{if(_=yield m(),!_){console.warn("Could not initialise ledger app"),T&&re(e);return}let g=yield za(_);return de(_),p(g),_}catch(g){console.error("Could not initialise ledger app",g),T&&re(e)}return null})}return{setLedgerProvider:l,ledgerData:c}};var ci=!1;function rd(){let e=y(K),o=y(jt),n=y(lp),r=y(qt),c=y(Qo),p=y(Se),m=y(Pa),l=y(zt),d=y(be),_=y(Ro),T=y(en),g=T==null?void 0:T.nativeAuthConfig,x=no(g||!1),L=(0,Uo.useRef)(!1),w=N(),{setLedgerProvider:C,ledgerData:D}=si();Jm();let{callbackRoute:G,logoutRoute:H}=n||{callbackRoute:"",logoutRoute:""},[R]=ti({callbackRoute:G,logoutRoute:H});(0,Uo.useEffect)(()=>{Q()},[e]),(0,Uo.useEffect)(()=>{So()},[r,_]),(0,Uo.useEffect)(()=>{ee()},[p,e]),(0,Uo.useEffect)(()=>{ie()},[m,d,D]);function Q(){return u(this,null,function*(){try{let B=yield tm();B&&w(_c(B.erd_chain_id))}catch(B){console.error("failed refreshing chainId ",B)}})}function ie(){m==null&&l!=null&&D&&w(ma({index:l.index,address:p,hasContractDataEnabled:D.dataEnabled,version:D.version}))}function ee(){return u(this,null,function*(){if(w(Xo(!0)),L.current){L.current=!1,w(Xo(!1));return}if(p)try{let B=yield we(p);B?w(mo(k(h({},B),{address:p,nonce:B.nonce.valueOf()}))):d||w($s(""))}catch(B){w(qs("Failed getting account")),console.error("Failed getting account ",B)}w(Xo(!1))})}function xe(){return u(this,null,function*(){let B=_r(o);if(de(B),c!=null){try{let Z=yield Be(),{clearNavigationHistory:bo,remainingParams:{signature:Ur,multisig:In,impersonate:kn}}=nr(["signature","loginToken","address","multisig","impersonate"]);if(!Z)return de(Mo),w(lo(null)),w(It(null)),bo();let Ho=yield ai({loginToken:T==null?void 0:T.loginToken,extraInfoData:{multisig:In,impersonate:kn},address:Z,signature:Ur,loginService:x});Ho&&(L.current=!0,w(Xo(!0)),w(oe({address:Ho.address,loginMethod:"wallet"})),w(mo(k(h({},Ho),{nonce:Bo(Ho)}))),w(Xo(!1))),bo()}catch(Z){console.error("Failed authenticating wallet user ",Z)}w(It(null))}})}function xo(){return u(this,null,function*(){let B=yield Be(),Z=yield ed(B);Z&&de(Z)})}function Br(){return u(this,null,function*(){let B=yield Be(),Z=yield Zm(B);Z&&de(Z)})}function Fr(){return u(this,null,function*(){let B=yield Be(),Z=yield ri({address:B,walletUrl:e.walletAddress});Z&&de(Z)})}function F(){return u(this,null,function*(){try{w(la(!0)),yield R(!1)}catch(B){console.error("Could not initialize WalletConnect")}finally{w(la(!1))}})}function So(){return u(this,null,function*(){let B=nn(_);if(!(r==null||ci||!B))switch(r){case"ledger":{ci=!0,yield C(),ci=!1;break}case"walletconnectv2":{F();break}case"extension":{xo();break}case"opera":{Br();break}case"crossWindow":{Fr();break}case"extra":{rn();break}case"wallet":case"":{xe();break}default:return}})}return null}t();var cd=require("@multiversx/sdk-core"),pd=require("@multiversx/sdk-web-wallet-cross-window-provider/out/constants"),ae=require("@multiversx/sdk-web-wallet-cross-window-provider/out/types");$();t();t();P();function pi(){S.dispatch(Co())}function ad(e){S.dispatch(Pc({batchId:e}))}t();t();var cT=b(require("bignumber.js"));E();P();M();t();var sT=b(require("bignumber.js"));E();t();t();var mT=require("@multiversx/sdk-core"),dT=b(require("bignumber.js"));E();t();t();var ln=()=>{var e;if(ne()){let o=window.location.ancestorOrigins;return(e=o==null?void 0:o[o.length-1])!=null?e:"*"}return"*"};t();var id=e=>()=>{throw new Error(`Unable to perform ${e}, Provider not initialized`)};t();var sd=require("@multiversx/sdk-web-wallet-cross-window-provider/out/types");var wr=(e,o)=>n=>{let{type:r,payload:c}=n.data;if(n.origin!=ln()){console.error("origin not accepted",{eventOrigin:n.origin});return}(e===r||r===sd.CrossWindowProviderResponseEnums.cancelResponse)&&(window.removeEventListener("message",wr(e,o)),o({type:r,payload:c}))};var Ue=class{constructor(){this.resetState=()=>{(typeof window!="undefined"?window:{}).addEventListener("message",wr(ae.CrossWindowProviderResponseEnums.resetStateResponse,n=>{n.type===ae.CrossWindowProviderResponseEnums.resetStateResponse&&(S.dispatch(W()),setTimeout(()=>{this.sendPostMessage({type:ae.CrossWindowProviderRequestEnums.finalizeResetStateRequest,payload:void 0})},500))}))};this.init=()=>u(this,null,function*(){return this.sendPostMessage({type:ae.CrossWindowProviderRequestEnums.finalizeHandshakeRequest,payload:void 0}),!0});this.login=()=>u(this,null,function*(){return!0});this.logout=()=>u(this,null,function*(){let o=yield this.sendPostMessage({type:ae.CrossWindowProviderRequestEnums.logoutRequest,payload:void 0});return yield re(),Boolean(o.payload.data)});this.relogin=()=>u(this,null,function*(){let o=yield this.sendPostMessage({type:ae.CrossWindowProviderRequestEnums.loginRequest,payload:void 0}),{data:n,error:r}=o.payload;if(r||!n)throw new Error("Unable to re-login");let{accessToken:c}=n;return c?(dn(c),rn(),c):(console.error("Unable to re-login. Missing accessToken."),null)});this.signTransactions=o=>u(this,null,function*(){let n=yield this.sendPostMessage({type:ae.CrossWindowProviderRequestEnums.signTransactionsRequest,payload:o.map(p=>p.toPlainObject())}),{data:r,error:c}=n.payload;return c||!r?(console.error("Unable to sign transactions"),null):n.type==ae.CrossWindowProviderResponseEnums.cancelResponse?(console.warn("Cancelled the transactions signing action"),pi(),this.cancelAction(),null):r.map(p=>cd.Transaction.fromPlainObject(p))});this.signTransaction=o=>u(this,null,function*(){let n=yield this.signTransactions([o]);return n==null?void 0:n[0]});this.isInitialized=()=>!0;this.isConnected=()=>u(this,null,function*(){return!0});this.getAddress=id("getAddress");this.sendPostMessage=o=>u(this,null,function*(){let n=typeof window!="undefined"?window:{};return n.ReactNativeWebView?n.ReactNativeWebView.postMessage(JSON.stringify(o),ln()):n.webkit?n.webkit.messageHandlers.postMessage(JSON.stringify(o),ln()):n.parent&&n.parent.postMessage(o,ln()),yield this.waitingForResponse(pd.responseTypeMap[o.type])});this.resetState()}static getInstance(){return Ue.instance||(Ue.instance=new Ue),Ue.instance}signMessage(o){return u(this,null,function*(){let n=yield this.sendPostMessage({type:ae.CrossWindowProviderRequestEnums.signMessageRequest,payload:{message:o.message.toString()}}),{data:r,error:c}=n.payload;return c||!r?(console.error("Unable to sign message"),null):n.type==ae.CrossWindowProviderResponseEnums.cancelResponse?(console.warn("Cancelled the message signing action"),this.cancelAction(),null):r.status!==ae.SignMessageStatusEnum.signed?(console.error("Could not sign message"),null):(o.applySignature(a.Buffer.from(String(r.signature),"hex")),o)})}cancelAction(){return u(this,null,function*(){return this.sendPostMessage({type:ae.CrossWindowProviderRequestEnums.cancelAction,payload:void 0})})}waitingForResponse(o){return u(this,null,function*(){return yield new Promise(n=>{window.addEventListener("message",wr(o,n))})})}};t();t();var _i=require("@multiversx/sdk-core");M();t();U();var md=typeof window!="undefined"?window:{},dd=()=>md.ReactNativeWebView?"reactNative":md.webkit?"ios":"web";t();M();var _n={signTransactions:{["ios"]:e=>window.webkit.messageHandlers.signTransactions.postMessage(e,fo()),["reactNative"]:e=>window==null?void 0:window.ReactNativeWebView.postMessage(JSON.stringify({type:qe.signTransactionsRequest,message:e})),["web"]:e=>window==null?void 0:window.postMessage(JSON.stringify({type:qe.signTransactionsRequest,message:e}),fo())},sendCustomRequest:{["ios"]:e=>window.webkit.messageHandlers.signMessage.postMessage({type:e.request.method,payload:e.request.params}),["reactNative"]:e=>window==null?void 0:window.ReactNativeWebView.postMessage(JSON.stringify({type:e.request.method,payload:e.request.params})),["web"]:e=>window==null?void 0:window.postMessage(JSON.stringify({type:e.request.method,payload:e.request.params}),fo())},signMessage:{["ios"]:e=>window.webkit.messageHandlers.signMessage.postMessage(e),["reactNative"]:e=>window==null?void 0:window.ReactNativeWebView.postMessage(JSON.stringify({type:qe.signMessageRequest,message:e})),["web"]:e=>window==null?void 0:window.postMessage(JSON.stringify({type:qe.signMessageRequest,message:e}),fo())},logout:{["ios"]:()=>window.webkit.messageHandlers.logout.postMessage(),["reactNative"]:()=>window==null?void 0:window.ReactNativeWebView.postMessage(JSON.stringify({type:qe.logoutRequest})),["web"]:()=>window==null?void 0:window.postMessage(JSON.stringify({type:qe.logoutRequest}),fo())},login:{["ios"]:()=>window.webkit.messageHandlers.login.postMessage(),["reactNative"]:()=>window==null?void 0:window.ReactNativeWebView.postMessage(JSON.stringify({type:qe.loginRequest})),["web"]:()=>window==null?void 0:window.postMessage(JSON.stringify({type:qe.loginRequest}),fo())}};var ld=e=>()=>{throw new Error(`Unable to perform ${e}, Provider not initialized`)},un=dd(),fo=()=>{var e,o;return ne()&&(o=(e=window==null?void 0:window.parent)==null?void 0:e.origin)!=null?o:"*"},ot="message",li=e=>{let o=n=>{let r=n.data;if(!(n.target.origin!=fo()&&un!="reactNative"))try{r=JSON.parse(r),e(r)}catch(c){console.error("error parsing response")}};document&&document.addEventListener(ot,o),window&&window.addEventListener(ot,o)},_d={init:()=>u(void 0,null,function*(){return!0}),login:()=>u(void 0,null,function*(){return!0}),relogin:()=>u(void 0,null,function*(){try{return _n.login[un](),yield new Promise((o,n)=>{function r(c){let{message:p,type:m}=c;if(m===ut.loginResponse)try{let{accessToken:l,error:d}=p;d?n(d):(dn(l),rn(),o(l))}catch(l){n("Unable to login")}document&&document.removeEventListener(ot,r)}li(r)})}catch(e){throw console.error("error logging in",e),e}}),logout:()=>(_n.logout[un](),new Promise(e=>{e(!0)})),getAddress:ld("getAddress"),isInitialized:()=>!0,isConnected:()=>u(void 0,null,function*(){return!0}),sendTransaction:ld("sendTransaction"),sendCustomRequest:e=>u(void 0,null,function*(){_n.sendCustomRequest[un](e)}),signMessage:e=>u(void 0,null,function*(){try{return _n.signMessage[un](e),yield new Promise((n,r)=>{window.signMessageResponse=(p,m)=>{if(m){r(m),window.signMessageResponse=null;return}n(p),window.signMessageResponse=null};function c(p){let{message:m,type:l}=p;if(l===ut.signMessageResponse&&m!=null){let{signedMessage:d,error:_}=m;_?r(_):n(d)}document==null||document.removeEventListener(ot,c)}li(c)})}catch(o){throw console.error("error sending transaction",o),o}}),signTransactions:e=>u(void 0,null,function*(){try{let o=e.map(r=>r.toPlainObject());return _n.signTransactions[un](o),yield new Promise((r,c)=>{window.transactionsSigned=(m,l)=>{if(m=JSON.parse(m),l){c(l),window.transactionsSigned=null;return}r(m.map(d=>_i.Transaction.fromPlainObject(d))),window.transactionsSigned=null};function p(m){let{message:l,type:d}=m;if(d===ut.signTransactionsResponse){let{transactions:_,error:T}=l;try{T?c(T):r(_.map(g=>_i.Transaction.fromPlainObject(g)))}catch(g){c("Unable to sign")}}document&&document.removeEventListener(ot,p)}li(p)})}catch(o){throw console.error("error sending transaction",o),o}}),signTransaction:function(e){return u(this,null,function*(){return(yield this.signTransactions([e]))[0]})}};M();na();t();var ud=()=>{let{search:e}=O(),o=new URLSearchParams(e),n=Object.fromEntries(o);return n==null?void 0:n.platform};t();var vn=b(require("react"));t();t();t();t();var D_=require("react");t();t();var ui=()=>y(Me);t();P();t();t();t();t();function gi(){let e=y(Ua),o=Object.entries(e),n=(o==null?void 0:o.length)>0;return{pendingTransactions:e,pendingTransactionsArray:o,hasPendingTransactions:n}}Yo();t();P();U();t();Yo();function gd(e,o){return e.reduce((r,{status:c,hash:p})=>(p!=null&&!o.includes(p)&&je(c)&&r.push({hash:p,previousStatus:c}),r),[])}t();P();U();function fd({results:e,hash:o,sessionId:n}){let r=e==null?void 0:e.find(c=>(c==null?void 0:c.returnMessage)!=="");S.dispatch(Ne({transactionHash:o,sessionId:n,status:"fail",errorMessage:r==null?void 0:r.returnMessage,inTransit:!1})),S.dispatch(Re({sessionId:n,status:"fail",errorMessage:r==null?void 0:r.returnMessage}))}t();P();M();function fi(e){S.dispatch(Re({sessionId:e,status:"timedOut"}))}var vr={},hi=[];function lT({serverTransaction:e,sessionId:o,customTransactionInformation:n,shouldRefreshBalance:r,isSequential:c}){let{hash:p,status:m,inTransit:l,results:d,invalidTransaction:_,hasStatusChanged:T}=e;try{if(hi.includes(p))return;if(vr[p]>30){fi(o);return}if(_&&!c||je(m)){vr[p]=vr[p]?vr[p]+1:1;return}if(c&&!m){S.dispatch(Ne({sessionId:o,status:m,transactionHash:p,inTransit:l}));return}T&&(Eo(m)&&(n==null?void 0:n.completedTransactionsDelay)!=null?(hi.push(p),setTimeout(()=>S.dispatch(Ne({sessionId:o,status:"success",transactionHash:p,inTransit:l})),n==null?void 0:n.completedTransactionsDelay)):S.dispatch(Ne({sessionId:o,status:m,transactionHash:p,inTransit:l}))),r||an(),Po(m)&&fd({sessionId:o,hash:p,results:d})}catch(g){console.error(g),fi(o)}}function hd(d){return u(this,arguments,function*({sessionId:e,transactionBatch:{transactions:o,customTransactionInformation:n},getTransactionsByHash:r=mr,shouldRefreshBalance:c,isSequential:p,onSuccess:m,onFail:l}){try{if(o==null)return;let _=gd(o,hi),T=yield r(_);for(let x of T)lT({serverTransaction:x,sessionId:e,customTransactionInformation:n,shouldRefreshBalance:c,isSequential:p});if(T.every(x=>x.status!=="pending")&&!(n!=null&&n.grouping)){if(T.every(w=>w.status==="success"))return m==null?void 0:m(e);if(T.some(w=>w.status==="fail"))return l==null?void 0:l(e)}}catch(_){console.error(_)}})}function Td(){let{pendingTransactionsArray:e}=gi();function o(n){return u(this,null,function*(){let r=e.filter(([,c])=>{var p;return!((p=c==null?void 0:c.customTransactionInformation)!=null&&p.grouping)}).filter(([c,p])=>c!=null&&je(p.status));if(r.length>0)for(let[c,p]of r)yield hd(h({sessionId:c,transactionBatch:p},n));n.shouldRefreshBalance&&(yield an())})}return o}t();t();t();M();t();t();function gn(){let e=y(Ye),o=Object.entries(e),n=(o==null?void 0:o.length)>0;return{signedTransactions:e,signedTransactionsArray:o,hasSignedTransactions:n}}t();t();var _T=b(require("axios")),uT=b(require("swr"));t();t();var yd=require("react");t();var gT=require("react"),fT=require("@multiversx/sdk-web-wallet-provider"),hT=require("@multiversx/sdk-web-wallet-provider"),TT=b(require("qs"));E();P();U();oa();var A6=O();t();var bd=require("react"),Ti=require("@multiversx/sdk-core");E();_a();t();t();t();t();t();t();t();E();t();t();var c_=require("react"),p_=require("@multiversx/sdk-core"),Jx=require("@multiversx/sdk-extension-provider"),Yx=require("@multiversx/sdk-web-wallet-cross-window-provider"),Zx=b(i_());E();t();P();U();t();var s_=require("react"),qx=require("@multiversx/sdk-extension-provider"),zx=require("@multiversx/sdk-web-wallet-cross-window-provider");P();t();var Qx=require("react");P();M();ko();t();so();P();t();t();var eS=require("react");t();U();Yo();t();var m_=require("react");t();t();var oS=require("react"),nS=require("@multiversx/sdk-extension-provider");so();$();U();Lo();t();var tS=require("react"),rS=require("@multiversx/sdk-opera-provider");so();$();U();Lo();t();var aS=require("react"),iS=require("@multiversx/sdk-web-wallet-cross-window-provider");so();$();P();U();Lo();t();var mS=require("react");so();P();t();t();ra();t();t();var sS=b(require("platform"));t();t();t();t();t();t();t();t();t();ko();Ko();t();t();t();P();var cS={},pS={};var d_=e=>{if(e.component!=null){let o=e,{component:n,onClose:r}=o,c=We(o,["component","onClose"]),p=S.dispatch(ha(k(h({},c),{component:null,onClose:void 0})));return cS[p==null?void 0:p.payload.toastId]=n,r&&(pS[p==null?void 0:p.payload.toastId]=r),p==null?void 0:p.payload}return S.dispatch(ha(e)).payload};t();t();var l_=b(require("axios"));function bi(e){return u(this,null,function*(){try{let{data:o}=yield l_.default.get(`${e}/websocket/config`);return`wss://${o.url}`}catch(o){throw console.error(o),new Error("Can not get websocket url")}})}t();t();var SS=require("react");E();t();t();E();t();t();t();var Wo=b(require("bignumber.js")),wi=e=>{let o=new Wo.default(e).dividedBy(1e3).integerValue(Wo.default.ROUND_FLOOR),n=new Wo.default(o).dividedBy(60).integerValue(Wo.default.ROUND_FLOOR),r=new Wo.default(n).dividedBy(60).integerValue(Wo.default.ROUND_FLOOR),c=r.modulo(60).isGreaterThan(1),p=n.modulo(60).isGreaterThan(1),m=n.modulo(60).isLessThan(1);return c?`${r} hours`:p?`${n} minutes`:m?"less than 1 minute":`${n} minute`};t();t();t();var To=b(require("react")),w_=require("react"),v_=require("react"),Ci=b(require("classnames")),A_=require("react-dom");E();t();var f_=b(require("react"));t();var it=b(require("react"));t();var __=()=>!ne();var lS=()=>u(void 0,null,function*(){return yield Promise.resolve().then(()=>(Ai(),vi))}),_S=()=>(Ai(),ve(vi)).default,Ii=__();function g_({ssrGlobalImportCallback:e,ssrImportCallback:o,clientImportCallback:n}){let[r,c]=it.default.useState(Ii?void 0:_S()),[p,m]=it.default.useState(Ii||n==null?void 0:n()),l=()=>u(this,null,function*(){(e?e():lS()).then(d=>c(d.default)),o==null||o().then(d=>m(d.default))});return(0,it.useEffect)(()=>{Ii&&l()},[]),{globalStyles:r,styles:p}}function ho(e,o){return n=>{let{globalStyles:r,styles:c}=g_({ssrGlobalImportCallback:o.ssrGlobalStyles,ssrImportCallback:o.ssrStyles,clientImportCallback:o.clientStyles});return f_.default.createElement(e,k(h({},n),{globalStyles:r!=null?r:{},styles:c!=null?c:{}}))}}t();var T_=b(require("react")),y_=b(require("classnames"));var gS=({className:e,children:o,styles:n})=>T_.default.createElement("div",{className:(0,y_.default)(n==null?void 0:n.dappModalBody,e)},o),ki=ho(gS,{ssrStyles:()=>Promise.resolve().then(()=>(ro(),to)),clientStyles:()=>(ro(),ve(to)).default});t();var Li=b(require("react")),x_=b(require("classnames"));var fS=({visible:e,customFooter:o,className:n,footerText:r,styles:c})=>e?Li.default.createElement("div",{className:(0,x_.default)(c==null?void 0:c.dappModalFooter,n)},o!=null?o:Li.default.createElement("div",null,r)):null,Ei=ho(fS,{ssrStyles:()=>Promise.resolve().then(()=>(ro(),to)),clientStyles:()=>(ro(),ve(to)).default});t();var yn=b(require("react")),S_=require("@fortawesome/free-solid-svg-icons"),b_=require("@fortawesome/react-fontawesome"),st=b(require("classnames"));var hS=({visible:e,headerText:o,customHeader:n,className:r,closeButtonClassName:c,headerTextClassName:p,onHide:m,globalStyles:l,styles:d})=>e?n?yn.default.createElement("div",{className:(0,st.default)(d==null?void 0:d.dappModalHeader,r)},n):yn.default.createElement("div",{className:(0,st.default)(d==null?void 0:d.dappModalHeader,r)},yn.default.createElement("div",{className:(0,st.default)(d==null?void 0:d.dappModalHeaderText,p)},o),yn.default.createElement("button",{onClick:m,className:(0,st.default)(d==null?void 0:d.dappModalCloseButton,l==null?void 0:l.btn,l==null?void 0:l.btnLight,c)},yn.default.createElement(b_.FontAwesomeIcon,{size:"lg",icon:S_.faTimes}))):null,Pi=ho(hS,{ssrStyles:()=>Promise.resolve().then(()=>(ro(),to)),clientStyles:()=>(ro(),ve(to)).default});var TS={showHeader:!0,showFooter:!1,headerText:"",footerText:""},yS=({"data-testid":e="dappModal",children:o,className:n="dapp-modal-dialog-wrapper",config:r=TS,id:c="dapp-modal",onHide:p,parentElement:m,visible:l,styles:d})=>{let[_,T]=(0,w_.useState)(!1);if((0,v_.useEffect)(()=>{T(!0)},[]),!l)return null;let{showHeader:g,showFooter:x,headerText:L,footerText:w,modalDialogClassName:C="dapp-modal-dialog",modalContentClassName:D="dapp-modal-dialog-content",modalHeaderClassName:G="dapp-modal-dialog-header",modalHeaderTextClassName:H="dapp-modal-dialog-header-text",modalCloseButtonClassName:R="dapp-modal-dialog-close-button",modalBodyClassName:Q="dapp-modal-dialog-content-body",modalFooterClassName:ie="dapp-modal-dialog-footer",customModalHeader:ee,customModalFooter:xe}=r;return To.default.createElement(To.default.Fragment,null,_&&(0,A_.createPortal)(To.default.createElement("div",{id:c,role:"dialog","aria-modal":"true",className:(0,Ci.default)(C,d==null?void 0:d.dappModal,n),"data-testid":e},To.default.createElement("div",{className:(0,Ci.default)(d==null?void 0:d.dappModalContent,D)},To.default.createElement(Pi,{visible:g,headerText:L,customHeader:ee,className:G,headerTextClassName:H,closeButtonClassName:R,onHide:p}),To.default.createElement(ki,{className:Q},o),To.default.createElement(Ei,{visible:x,customFooter:xe,footerText:w,className:ie}))),m!=null?m:document==null?void 0:document.body))},xS=ho(yS,{ssrStyles:()=>Promise.resolve().then(()=>(ro(),to)),clientStyles:()=>(ro(),ve(to)).default});t();t();var I_=require("react");t();t();var k_=require("react"),wS=require("@multiversx/sdk-hw-provider");so();$();P();U();Lo();t();var bS=require("react");t();t();t();var L_=require("react");t();var Ni=require("react");t();var yo=require("react"),C_=require("socket.io-client");P();t();var fe={current:null,status:"not_initialized"};var AS=3e3,IS=3,E_=500,P_=1e3,kS="batchUpdated",LS="connect",ES="disconnect";function N_(){let e=(0,yo.useRef)(null),o=(0,yo.useRef)(null),{address:n}=le(),r=N(),{network:c}=ui(),p=d=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{r(zs(d))},P_)},m=d=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r(js(d))},P_)},l=(0,yo.useCallback)(hr(()=>u(this,null,function*(){fe.status="pending";let d=yield bi(c.apiAddress);if(d==null){console.warn("Can not get websocket url");return}fe.current=(0,C_.io)(d,{forceNew:!0,reconnectionAttempts:IS,timeout:AS,query:{address:n}}),fe.status="completed",fe.current.onAny(p),fe.current.on(kS,m),fe.current.on(LS,()=>{console.log("Websocket connected.")}),fe.current.on(ES,()=>{console.warn("Websocket disconnected. Trying to reconnect..."),setTimeout(()=>{var _;console.log("Websocket reconnecting..."),(_=fe.current)==null||_.connect()},E_)})}),{retries:2,delay:E_}),[n]);(0,yo.useEffect)(()=>{var d;n&&fe.status==="not_initialized"&&!((d=fe.current)!=null&&d.active)&&l()},[n,l]),(0,yo.useEffect)(()=>()=>{var d;(d=fe.current)==null||d.close(),fe.status="not_initialized",e.current&&clearTimeout(e.current)},[])}function kr(e,o){N_();let n=y(Ca),r=y(pp);(0,Ni.useEffect)(()=>{let c=n==null?void 0:n.message;c&&e(c)},[e,n]),(0,Ni.useEffect)(()=>{let c=r==null?void 0:r.data;c&&(o==null||o(c))},[o,r])}t();t();var PS=require("react");M();t();t();t();var CS=b(require("swr"));Io();var{logoutEvent:NS}=ge,R_="storage",M_=()=>{let{address:e}=Ze(),o=y(_o);(0,D_.useEffect)(()=>{let n=r=>{if(!(r.key!==NS||!r.newValue))try{let{data:c}=JSON.parse(r.newValue);c===e&&re(o)}catch(c){return}};return window==null||window.addEventListener(R_,n),()=>{window==null||window.removeEventListener(R_,n)}},[e,o])};t();t();var Lr=require("react"),O_=require("@fortawesome/free-solid-svg-icons"),Ri=b(require("bignumber.js"));var B_=()=>{let{address:e}=Ze(),{tokenLogin:o}=y(J),{secondsUntilExpires:n,expiresAt:r}=mn(o==null?void 0:o.nativeAuthToken),c=(0,Lr.useRef)();return(0,Lr.useEffect)(()=>{var l;let p=new Ri.default(String(n)),m=p.times(1e3);if(!(!n||p.isLessThanOrEqualTo(0))){if((l=o==null?void 0:o.nativeAuthConfig)!=null&&l.tokenExpirationToastWarningSeconds){clearTimeout(c.current);let _=new Ri.default(o.nativeAuthConfig.tokenExpirationToastWarningSeconds).times(1e3),T=p.times(1e3).minus(_),g=wi(m.toNumber()),x=T.isLessThanOrEqualTo(0)?0:T.toNumber();c.current=setTimeout(()=>{d_({toastId:"nativeAuthTokenExpiration",type:"custom",title:"Session Expiration Warning",icon:O_.faRefresh,message:`Your token will expire in ${g}!`})},x)}return()=>{clearTimeout(c.current)}}},[r,e,o==null?void 0:o.nativeAuthConfig]),null};t();var xn=require("react"),F_=b(require("bignumber.js"));var U_=()=>{let{address:e}=Ze(),{tokenLogin:o}=y(J),n=y(_o),{isExpired:r,secondsUntilExpires:c,expiresAt:p}=mn(o==null?void 0:o.nativeAuthToken),m=(0,xn.useRef)(""),l=(0,xn.useRef)();return(0,xn.useEffect)(()=>{e&&r&&re(n)},[r,e,n]),(0,xn.useEffect)(()=>{let d=new F_.default(String(c)),_=`${e}_${p}`,T=m.current===_;if(!(c&&d.isGreaterThan(0))||T)return;m.current=_,clearTimeout(l.current);let x=d.times(1e3);return l.current=setTimeout(()=>{re(n)},x.toNumber()),()=>{clearTimeout(l.current)}},[p,e,n]),null};var W_=()=>(B_(),M_(),U_(),null);t();t();var Go=require("react");P();U();ko();t();P();t();t();function G_({transactions:e}){return e==null?void 0:e.some(o=>Array.isArray(o))}function Er({transactions:e=[]}){return G_({transactions:e})?e.flat():e}t();P();M();var Di=({errorMessage:e,sessionId:o,transactions:n,clearSignInfo:r})=>{console.error("Unable to send transactions",e),S.dispatch(Re({sessionId:o,status:"fail",errorMessage:e,transactions:n.map(c=>k(h({},c),{status:"not executed"}))})),r==null||r()};t();P();M();var H_=({errorMessage:e,sessionId:o,clearSignInfo:n})=>{console.error("Unable to send transactions",e),S.dispatch(Re({sessionId:o,status:"fail",errorMessage:e})),n==null||n()};var RS=c=>u(void 0,[c],function*({session:e,sessionId:o,clearSignInfo:n,sendSignedBatchTransactionsAsync:r}){var T,g;let{transactions:p}=e;if(!p)return;let m=(T=e.customTransactionInformation)==null?void 0:T.grouping;if(!m)return;let l=p.reduce((x,L,w)=>{let C=m.findIndex(D=>D.includes(w));return x[C]||(x[C]=[]),x[C].push(L),x},[]);if(l.length===0)return;let d=yield r({transactions:l,sessionId:o}),_=d==null?void 0:d.data;if((d==null?void 0:d.error)||!_){Di({errorMessage:(g=d==null?void 0:d.error)!=null?g:"Send batch error",sessionId:o,transactions:p,clearSignInfo:n});return}return _&&S.dispatch(Lc(_)),Er({transactions:_==null?void 0:_.transactions}).map(x=>x.hash)}),V_=p=>u(void 0,[p],function*({session:e,sessionId:o,clearSignInfo:n,sendSignedBatchTransactionsAsync:r=pr,sendSignedTransactionsAsync:c=cr}){var d,_,T;let{transactions:m}=e;if(!m)return;if((d=e.customTransactionInformation)==null?void 0:d.grouping)try{return yield RS({session:e,sessionId:o,clearSignInfo:n,sendSignedBatchTransactionsAsync:r})}catch(g){return Di({errorMessage:g.message,sessionId:o,transactions:m}),null}try{let g=m.map(x=>on(x));return yield c(g)}catch(g){let x=(_=g.response)==null?void 0:_.data;return H_({errorMessage:(T=x==null?void 0:x.message)!=null?T:g.message,sessionId:o,clearSignInfo:n}),null}});var $_=e=>{let o=e.redirectRoute;o&&ze({url:o})},q_=({sendSignedTransactionsAsync:e=cr,sendSignedBatchTransactionsAsync:o=pr})=>{let n=N(),{nonce:r}=y(Xe),c=y(Ye),p=(0,Go.useRef)(!1),m=(0,Go.useRef)([]),l=()=>{n(Co()),p.current=!1},d=(0,Go.useCallback)(()=>u(void 0,null,function*(){var T;let _=Object.keys(c);for(let g of _){let x=c[g],L=(T=x==null?void 0:x.customTransactionInformation)==null?void 0:T.signWithoutSending;if(!x||!g||L){$_(x);continue}if(m.current.includes(g))continue;let{transactions:w}=x;if(!w||!(x.status==="signed"&&!p.current))continue;p.current=!0,m.current.push(g);let G=yield V_({session:x,sessionId:g,clearSignInfo:l,sendSignedTransactionsAsync:e,sendSignedBatchTransactionsAsync:o}),H="pending",R=w.map(ee=>G!=null&&G.includes(ee.hash)?k(h({},ee),{status:H}):ee);n(tc({sessionId:g,submittedMessage:"submitted"})),n(Re({sessionId:g,status:"sent",transactions:R})),l(),mm(r+w.length),$_(x);let[ie]=w;Fa({transaction:ie}),p.current=!1}}),[c,r]);return(0,Go.useEffect)(()=>{d()},[c,d]),null};t();t();t();var iu=require("react");t();var j_=require("react");t();var DS=e=>e.batchTransactions,z_=v(DS,e=>{let o=h({},e);return delete o._persist,o});function Sn(){let e=y(z_),o=(0,j_.useMemo)(()=>Object.entries(e).map(([n,r])=>({batchId:n,transactions:r.transactions})),[e]);return{batches:e,batchTransactionsArray:o}}M();t();var Mr=require("react");ft();t();E();var bn=e=>{if(!e||typeof e!="string")return null;let o=e.split(yt)[0];return Qt(o)?parseInt(o,10):null};t();var Pr=(e,o)=>new Date().getTime()-e>o;t();var tu=require("react");t();var Z_=require("react");M();t();var J_=require("react");t();var K_=b(require("axios"));po();function X_(n){return u(this,arguments,function*({batchId:e,address:o}){let{apiAddress:r,apiTimeout:c}=K(S.getState()),{data:p}=yield K_.default.get(`${r}/${Yt}/${o}/${e}`,{timeout:Number(c!=null?c:gt)});return p})}var Y_=()=>{let{address:e}=le();return(0,J_.useCallback)(o=>u(void 0,null,function*(){try{return yield X_({batchId:o,address:e})}catch(n){return console.error(n),null}}),[e])};var Cr=()=>{let e=Y_();return(0,Z_.useCallback)(n=>u(void 0,[n],function*({batchId:o}){let r=yield e(o);return r?{statusResponse:r,isBatchSuccessful:r.status==="success",isBatchFailed:r.status==="fail"||r.status==="invalid"||r.status==="dropped",isBatchNotFound:Boolean(r.statusCode)&&Boolean(r.message)}:{statusResponse:r,isBatchSuccessful:!1,isBatchFailed:!0,isBatchNotFound:!1}}),[e])};t();M();var Nr=({transactions:e,hasUnrelatedTransactions:o})=>{let n=e.every(({status:d})=>d==="fail"),r=e.some(({status:d})=>d==="fail"),c=e.some(({status:d})=>d==="pending"),p=e.every(({status:d})=>d==="success"),m=o&&Boolean(!c&&!n&&r);return{isPending:c,isSuccessful:p,isFailed:o?m?!1:n:r,isIncompleteFailed:m}};t();var Q_=require("react");P();function eu(){let e=N(),o=Cr();return(0,Q_.useCallback)(r=>u(this,[r],function*({batchId:n}){let c=yield o({batchId:n});return c.statusResponse&&e(Ec(c.statusResponse)),c}),[e,o])}t();var Mi=require("react");P();t();t();var wn=class{constructor(o){this.status=(o||"").toLowerCase()}static createUnknown(){return new wn("unknown")}isPending(){return this.status=="received"||this.status=="pending"}isExecuted(){return this.isSuccessful()||this.isFailed()||this.isInvalid()}isSuccessful(){return this.status=="executed"||this.status=="success"||this.status=="successful"}isFailed(){return this.status=="fail"||this.status=="failed"||this.status=="unsuccessful"||this.isInvalid()}isInvalid(){return this.status=="invalid"}toString(){return this.status}valueOf(){return this.status}equals(o){return o?this.status==o.status:!1}};t();function ou(e){return new Promise(o=>setTimeout(o,e))}var nu=e=>u(void 0,null,function*(){let n=4,r;if(e.length===0)return{data:r,success:!1};for(;r===void 0&&n>0;)try{yield ou(3e3);let p=(yield Promise.allSettled(e.map(l=>Jp(l)))).map(l=>l.status==="fulfilled"?l.value.data:void 0).filter(l=>l!==void 0);if(p.length>0){let l=p.length===e.length,d=p.some(_=>new wn(_.status).isPending());l&&!d||n===1?(r=p,n=0):n-=1}else n-=1}catch(c){n-=1}return{data:r,success:r!==void 0}});M();function Rr(){let e=N(),{address:o}=le(),n=(0,Mi.useCallback)(({sessionId:r,dropUnprocessedTransactions:c,serverTransactions:p,batchTransactions:m})=>{for(let l of m){let d=p.find(_=>_.txHash===l.hash);if(!d){c&&e(Ne({sessionId:r,status:"fail",transactionHash:l.hash}));continue}e(Ne({sessionId:r,status:d.status,transactionHash:l.hash}))}},[e]);return(0,Mi.useCallback)(r=>u(this,null,function*(){if(!r)return;let{transactions:c,isBatchFailed:p,sessionId:m}=r;if(!c||c.length===0)return;if(p){for(let _ of c)e(Ne({sessionId:m,status:"fail",transactionHash:_.hash}));return}let{data:l,success:d}=yield nu(c.map(({hash:_})=>_).filter(_=>Boolean(_)));d&&l&&n({sessionId:m,dropUnprocessedTransactions:r.dropUnprocessedTransactions,serverTransactions:l,batchTransactions:c}),r.shouldRefreshBalance&&(yield an())}),[e,o,n])}var Dr=e=>{let o=N(),{signedTransactions:n}=gn(),r=eu(),c=Rr(),p=Cr(),m=e==null?void 0:e.onSuccess,l=e==null?void 0:e.onFail;return{verifyBatchStatus:(0,tu.useCallback)(T=>u(void 0,[T],function*({batchId:_}){var R,Q,ie,ee,xe;let g=(Q=(R=bn(_))==null?void 0:R.toString())!=null?Q:"",x=n[g];if(!x||!((ie=x.customTransactionInformation)==null?void 0:ie.grouping))return;let w=(xe=(ee=n[g])==null?void 0:ee.transactions)!=null?xe:[],{isSuccessful:C,isFailed:D,isPending:G}=Nr({transactions:w});if(!G)C&&(m==null||m(g)),D&&(l==null||l(g,"Error processing batch transactions."));else{let xo=yield r({batchId:_});yield c({sessionId:g.toString(),isBatchFailed:xo==null?void 0:xo.isBatchFailed,shouldRefreshBalance:!0,transactions:w})}}),[o,p,c,n,r,m,l])}};var ru=e=>{let{batchTransactionsArray:o}=Sn(),{verifyBatchStatus:n}=Dr(e),r=(0,Mr.useCallback)(()=>u(void 0,null,function*(){for(let{batchId:c}of o){let p=bn(c);!p||!Pr(p,9e4)||(yield n({batchId:c}))}}),[o,n]);(0,Mr.useEffect)(()=>{let c=setInterval(()=>u(void 0,null,function*(){r()}),6e3);return()=>clearInterval(c)},[r])};t();var Or=require("react");ft();var au=e=>{let{batchTransactionsArray:o}=Sn(),n=Rr(),r=e==null?void 0:e.onSuccess,c=e==null?void 0:e.onFail,p=(0,Or.useCallback)(()=>u(void 0,null,function*(){for(let{batchId:m,transactions:l}of o){let d=bn(m);if(!d||!Pr(d,6e5))continue;yield n({sessionId:d.toString(),shouldRefreshBalance:!0,dropUnprocessedTransactions:!0});let _=Er({transactions:l}),{isPending:T,isSuccessful:g,isFailed:x}=Nr({transactions:_});T||(ad(m),g&&(r==null||r(d.toString())),x&&(c==null||c(d.toString(),"Error processing batch transactions. Status: failed")))}}),[o,n,r,c]);(0,Or.useEffect)(()=>{let m=setInterval(()=>u(void 0,null,function*(){p()}),6e3);return()=>clearInterval(m)},[p])};var su=({onSuccess:e,onFail:o})=>{let{batches:n}=Sn(),{signedTransactionsArray:r}=gn(),{address:c}=le(),{verifyBatchStatus:p}=Dr({onSuccess:e,onFail:o}),m=()=>{},l=_=>u(void 0,null,function*(){yield p({batchId:_.batchId})}),d=()=>u(void 0,null,function*(){for(let[_,T]of r){let g=zn({sessionId:_,address:c}),x=!Boolean(n[g]);!(T.status!=="sent")||x||(yield p({batchId:g}))}});kr(m,l),ru({onSuccess:e,onFail:o}),au({onSuccess:e,onFail:o}),(0,iu.useEffect)(()=>{d()},[])};t();var cu=require("react");function pu(e){var c;let o=Td(),n=(c=e==null?void 0:e.getTransactionsByHash)!=null?c:mr,r=()=>{o(h({shouldRefreshBalance:!0,getTransactionsByHash:n},e))};kr(r),(0,cu.useEffect)(()=>{let p=setInterval(r,3e4);return()=>{clearInterval(p)}},[r])}function mu(e){return pu(e),su(e),null}function du({customComponents:e}){var l,d,_;let o=e==null?void 0:e.transactionSender,n=e==null?void 0:e.transactionTracker,r=e==null?void 0:e.logoutListener,c=(l=o==null?void 0:o.component)!=null?l:q_,p=(d=n==null?void 0:n.component)!=null?d:mu,m=(_=r==null?void 0:r.component)!=null?_:W_;return vn.default.createElement(vn.default.Fragment,null,vn.default.createElement(c,h({},o==null?void 0:o.props)),vn.default.createElement(p,h({},n==null?void 0:n.props)),vn.default.createElement(m,null))}var BS=()=>{var e;if(ud()==="webWallet"){let o=Ue.getInstance();(e=o.init)==null||e.call(o),ur(o)}else ur(_d)},FS=({children:e,customNetworkConfig:o={},externalProvider:n,environment:r,customComponents:c,dappConfig:p})=>{if(!r)throw new Error("missing environment flag");return n!=null?ur(n):p!=null&&p.shouldUseWebViewProvider&&BS(),An.default.createElement(lu.Provider,{context:Un,store:S},An.default.createElement(_u.PersistGate,{persistor:tp,loading:null},()=>An.default.createElement(Xa,{environment:r,customNetworkConfig:o,dappConfig:p},An.default.createElement(rd,null),An.default.createElement(du,{customComponents:c}),e)))};0&&(module.exports={AppInitializer,AuthenticatedRoutesWrapper,AxiosInterceptor,AxiosInterceptorContext,AxiosInterceptorContextProvider,DappProvider,LoginInfoListener,useAppInitializer,useAxiosInterceptorContext});
2763
2763
  /*!
2764
2764
  * The buffer module from node.js, for the browser.
2765
2765
  *
@@ -1,2 +1,2 @@
1
- "use strict";import"../__chunks__/chunk-OQMQWZG7.js";import{a as m}from"../__chunks__/chunk-WTAIM7XI.js";import{a as p,b as t,c as x}from"../__chunks__/chunk-IULM3X3T.js";import"../__chunks__/chunk-M6CAVA74.js";import{a as c}from"../__chunks__/chunk-6KZ376QS.js";import{a as b}from"../__chunks__/chunk-ALWWVLET.js";import{a}from"../__chunks__/chunk-XCYURN2F.js";import"../__chunks__/chunk-4FTRS7WH.js";import"../__chunks__/chunk-SYGMUQ67.js";import"../__chunks__/chunk-EP7DI5RY.js";import"../__chunks__/chunk-XYMORLYV.js";import"../__chunks__/chunk-WMRGA475.js";import"../__chunks__/chunk-K3PKB7WJ.js";import"../__chunks__/chunk-67UHZ3QM.js";import"../__chunks__/chunk-YNJJZIKC.js";import"../__chunks__/chunk-HPMMRZA7.js";import"../__chunks__/chunk-AINYVUFT.js";import"../__chunks__/chunk-FUOCLYMO.js";import"../__chunks__/chunk-QQD5F763.js";import"../__chunks__/chunk-RBQ4IQNE.js";import"../__chunks__/chunk-3VOPLXJ4.js";import"../__chunks__/chunk-TO4GNQE5.js";import"../__chunks__/chunk-GQPPYX2F.js";import"../__chunks__/chunk-KGZROD5A.js";import"../__chunks__/chunk-TCLQWNLM.js";import"../__chunks__/chunk-K5OMH4FS.js";import"../__chunks__/chunk-EDDUWJIA.js";import"../__chunks__/chunk-TCXID2PN.js";import"../__chunks__/chunk-PENA4DTK.js";import"../__chunks__/chunk-B4XT7Q3M.js";import"../__chunks__/chunk-5JICPNSS.js";import"../__chunks__/chunk-NNXE7L5C.js";import"../__chunks__/chunk-3IL3RKEJ.js";import"../__chunks__/chunk-NZ5WTJKL.js";import"../__chunks__/chunk-JWU4IPKD.js";import"../__chunks__/chunk-EJBQQG2Y.js";import"../__chunks__/chunk-GVU7CFIB.js";import"../__chunks__/chunk-WAX6VT76.js";import"../__chunks__/chunk-VGZTQVQU.js";import"../__chunks__/chunk-VH5B3W6C.js";import"../__chunks__/chunk-VW2UBFJI.js";import"../__chunks__/chunk-AD2ZZ5BZ.js";import"../__chunks__/chunk-DZDRMOTT.js";import"../__chunks__/chunk-UCBDWIIG.js";import"../__chunks__/chunk-Y6NSQSWB.js";import"../__chunks__/chunk-SQJYWVIF.js";import"../__chunks__/chunk-GUZM6YZB.js";import"../__chunks__/chunk-GQ7OA6DR.js";import"../__chunks__/chunk-L5ZELHXF.js";import"../__chunks__/chunk-RTZD2L4D.js";import"../__chunks__/chunk-NLNFARHY.js";import"../__chunks__/chunk-VPGECZPA.js";import"../__chunks__/chunk-BDEVJS4Q.js";import"../__chunks__/chunk-HZSM6ODA.js";import"../__chunks__/chunk-NUVFUNS6.js";import"../__chunks__/chunk-OLYIRMPJ.js";import"../__chunks__/chunk-ZNOSEXE2.js";import"../__chunks__/chunk-3SGZP5CP.js";import"../__chunks__/chunk-VIHCLOWS.js";import"../__chunks__/chunk-KPYVNSR5.js";import"../__chunks__/chunk-ZWQGEZMC.js";import"../__chunks__/chunk-ODZH7JKM.js";import"../__chunks__/chunk-KFLKODIP.js";import"../__chunks__/chunk-UHDRCKP4.js";import"../__chunks__/chunk-OG25SM7U.js";import"../__chunks__/chunk-WPB6JHJR.js";import"../__chunks__/chunk-QFFUAWS5.js";import"../__chunks__/chunk-Y3VJVQUT.js";import"../__chunks__/chunk-AS5CK2I7.js";import"../__chunks__/chunk-2IY6APQA.js";import"../__chunks__/chunk-GGMUGEZZ.js";import"../__chunks__/chunk-EYUPBEVQ.js";import"../__chunks__/chunk-6HRYHN4U.js";import"../__chunks__/chunk-LZLOGJOG.js";import"../__chunks__/chunk-QCGS2BTF.js";import"../__chunks__/chunk-4CYEO7XG.js";import"../__chunks__/chunk-E33Y4SXC.js";import"../__chunks__/chunk-QGRNA62L.js";import"../__chunks__/chunk-BUTUUXAE.js";import"../__chunks__/chunk-R3QBPBUZ.js";import"../__chunks__/chunk-NW7GGTVB.js";import"../__chunks__/chunk-S2ZXQSDD.js";import"../__chunks__/chunk-27BOHNDR.js";import"../__chunks__/chunk-CX4QIUNX.js";import"../__chunks__/chunk-3R4L2LPU.js";import"../__chunks__/chunk-VMTNT4QP.js";import"../__chunks__/chunk-WFKXVUJR.js";import"../__chunks__/chunk-NCOPMXZW.js";import"../__chunks__/chunk-ABUGDPQ6.js";import"../__chunks__/chunk-7F3C34W5.js";import"../__chunks__/chunk-CD3FLIXS.js";import"../__chunks__/chunk-R34W7NRN.js";import"../__chunks__/chunk-YJACYKTA.js";import"../__chunks__/chunk-AAXLWQPW.js";import"../__chunks__/chunk-JFOGOUI7.js";import"../__chunks__/chunk-I2YCVINV.js";import"../__chunks__/chunk-N2RR6CGL.js";import"../__chunks__/chunk-YJFNSJWQ.js";import"../__chunks__/chunk-BDWKIY35.js";import"../__chunks__/chunk-TCEH42PL.js";import"../__chunks__/chunk-MAQCXWQH.js";import"../__chunks__/chunk-T6W2VZIT.js";import"../__chunks__/chunk-KT57QU57.js";import"../__chunks__/chunk-ZJPYYWCH.js";import"../__chunks__/chunk-RJ2BS4TT.js";import"../__chunks__/chunk-GHGFJQYD.js";import"../__chunks__/chunk-5CYL34SW.js";import"../__chunks__/chunk-U62W3J3X.js";import"../__chunks__/chunk-VUAJYKRV.js";import"../__chunks__/chunk-TTGJSNU5.js";import"../__chunks__/chunk-YPTAR6MR.js";import"../__chunks__/chunk-RFDL6EZB.js";import"../__chunks__/chunk-TWR2BZ3Y.js";import"../__chunks__/chunk-JCAUBGCB.js";import"../__chunks__/chunk-RGMS5WVK.js";import"../__chunks__/chunk-S47E6IO5.js";import"../__chunks__/chunk-42MPM5IY.js";import"../__chunks__/chunk-L3ERSIIK.js";import"../__chunks__/chunk-EMI5INPM.js";import"../__chunks__/chunk-YYGVJULM.js";import"../__chunks__/chunk-4UGEM7KX.js";import"../__chunks__/chunk-NKJDO5GI.js";import"../__chunks__/chunk-QBM2WPCB.js";import"../__chunks__/chunk-2557KNUP.js";import"../__chunks__/chunk-AWNEPCTQ.js";import"../__chunks__/chunk-7CBRJL6S.js";import"../__chunks__/chunk-LULB6556.js";import"../__chunks__/chunk-LGBANZIL.js";import"../__chunks__/chunk-52XDHNJ7.js";import"../__chunks__/chunk-ZERWQJOI.js";import"../__chunks__/chunk-CRXYLMRO.js";import"../__chunks__/chunk-COTRGFS3.js";import"../__chunks__/chunk-WJGL6LVA.js";import"../__chunks__/chunk-LK5TR7MI.js";import"../__chunks__/chunk-OCMDIV3Q.js";import"../__chunks__/chunk-KMTPVLTX.js";import"../__chunks__/chunk-TKIIHBF2.js";import"../__chunks__/chunk-KOH3SXG4.js";import"../__chunks__/chunk-ECQ5NXDU.js";import"../__chunks__/chunk-VLGDF6FG.js";import"../__chunks__/chunk-ATEFCARH.js";import"../__chunks__/chunk-JFXVZGSY.js";import"../__chunks__/chunk-TXAITGIS.js";import"../__chunks__/chunk-WOU4OHGA.js";import"../__chunks__/chunk-JYZSNGLU.js";import"../__chunks__/chunk-XAQNBFSL.js";import"../__chunks__/chunk-5HMS5KVK.js";import"../__chunks__/chunk-DAGAOQXG.js";import"../__chunks__/chunk-TRSS2JUJ.js";import"../__chunks__/chunk-YAR2KJ42.js";import"../__chunks__/chunk-SLIVTINA.js";import"../__chunks__/chunk-UG2C5XXR.js";import"../__chunks__/chunk-U5NZ2MEF.js";import"../__chunks__/chunk-WAH54MS7.js";import"../__chunks__/chunk-6G774VOH.js";import"../__chunks__/chunk-3LT37HBU.js";import"../__chunks__/chunk-PV3SRV2T.js";import"../__chunks__/chunk-7O2K3V6M.js";import"../__chunks__/chunk-YTYNUTPN.js";import"../__chunks__/chunk-DQIMFUNV.js";import"../__chunks__/chunk-XDCLALI3.js";import"../__chunks__/chunk-EWSGHHFH.js";import"../__chunks__/chunk-35YX2WD6.js";import"../__chunks__/chunk-QDQMQ6FM.js";import"../__chunks__/chunk-FZMRVALH.js";import"../__chunks__/chunk-IK4IS5KS.js";import"../__chunks__/chunk-53MFZJS3.js";import"../__chunks__/chunk-W7TCFFLI.js";import"../__chunks__/chunk-U5RE2P2I.js";import"../__chunks__/chunk-VQBZO5BS.js";import"../__chunks__/chunk-LHSEDSMQ.js";import"../__chunks__/chunk-F23E63CV.js";import"../__chunks__/chunk-4DI44IVL.js";import"../__chunks__/chunk-HH5S5FOE.js";import"../__chunks__/chunk-PM7DGSVR.js";import"../__chunks__/chunk-22UA5SNR.js";import"../__chunks__/chunk-3LDYHSES.js";import"../__chunks__/chunk-NQXX6STP.js";import"../__chunks__/chunk-K5OJ2S5S.js";import"../__chunks__/chunk-SIIFOCDM.js";import"../__chunks__/chunk-UUFZVKIH.js";import"../__chunks__/chunk-ZIME3DT3.js";import"../__chunks__/chunk-2UFJTGPZ.js";import"../__chunks__/chunk-R7VXMYQB.js";import"../__chunks__/chunk-PAVHGJ7A.js";import"../__chunks__/chunk-BSTCDDUL.js";import"../__chunks__/chunk-H54WWC3Y.js";import"../__chunks__/chunk-U5SOFD2L.js";import"../__chunks__/chunk-37ZHJ2BK.js";import"../__chunks__/chunk-EA6JYINF.js";import"../__chunks__/chunk-CUTJFM3C.js";import"../__chunks__/chunk-F7XKTZUU.js";import"../__chunks__/chunk-DIJP3P4B.js";import"../__chunks__/chunk-4F5KRX5N.js";import"../__chunks__/chunk-KZR7TQ7H.js";import"../__chunks__/chunk-XOZ662VA.js";import"../__chunks__/chunk-NAN2H6P3.js";import"../__chunks__/chunk-LO5NNAIV.js";import"../__chunks__/chunk-U6FPCKTD.js";import"../__chunks__/chunk-WT6GIAME.js";import"../__chunks__/chunk-NRYF4IC3.js";import"../__chunks__/chunk-VWIO5HEC.js";import"../__chunks__/chunk-DRPHUSWD.js";import"../__chunks__/chunk-DN2UAQBB.js";import"../__chunks__/chunk-3NYS4OH5.js";import"../__chunks__/chunk-F5OYPPVL.js";import"../__chunks__/chunk-QIM45JTS.js";import"../__chunks__/chunk-GQXP5RGM.js";import"../__chunks__/chunk-I7VLLM33.js";import"../__chunks__/chunk-42RVHSN6.js";import"../__chunks__/chunk-LWEPSRRC.js";import"../__chunks__/chunk-FBHNJJZH.js";import"../__chunks__/chunk-LTMZTSIV.js";import"../__chunks__/chunk-KEQTNP4F.js";import"../__chunks__/chunk-QF453J7H.js";import"../__chunks__/chunk-OT4R2D6Y.js";import"../__chunks__/chunk-4JP4CKHO.js";import"../__chunks__/chunk-LOPOCK44.js";import"../__chunks__/chunk-MQIXAGLQ.js";import"../__chunks__/chunk-BIOMVPH7.js";import"../__chunks__/chunk-3U7QBETU.js";import"../__chunks__/chunk-DBD6N2CW.js";import"../__chunks__/chunk-QGRJWDCZ.js";import"../__chunks__/chunk-6IYK4PYK.js";import"../__chunks__/chunk-OWG32HIC.js";import"../__chunks__/chunk-4MZ7WK7D.js";import"../__chunks__/chunk-5YKU74QM.js";import"../__chunks__/chunk-C77LE3WZ.js";import"../__chunks__/chunk-YSB5YFZW.js";import"../__chunks__/chunk-DJYZBTTY.js";import"../__chunks__/chunk-AXSBQQR3.js";import"../__chunks__/chunk-LPQY7BQ4.js";import"../__chunks__/chunk-MBQJF3MO.js";import"../__chunks__/chunk-W4KWHPXS.js";import"../__chunks__/chunk-TBSU22DW.js";import"../__chunks__/chunk-FK6GRHXD.js";import"../__chunks__/chunk-ICVZO2K2.js";import"../__chunks__/chunk-DMW2AYNQ.js";import"../__chunks__/chunk-E3HK3TPN.js";import"../__chunks__/chunk-3T36IYKG.js";import"../__chunks__/chunk-G3HTF5LO.js";import"../__chunks__/chunk-2E65ASLA.js";import"../__chunks__/chunk-H2TX62YH.js";import"../__chunks__/chunk-3YPMO4YC.js";import"../__chunks__/chunk-TEFYK7YY.js";import"../__chunks__/chunk-VRN4N264.js";import"../__chunks__/chunk-LHFIJUBQ.js";import"../__chunks__/chunk-XNFCZFZP.js";import"../__chunks__/chunk-IQLOJ7LN.js";import"../__chunks__/chunk-AFTAM6FQ.js";import"../__chunks__/chunk-EEHUVAU6.js";import"../__chunks__/chunk-NYKG2LOK.js";import"../__chunks__/chunk-PH6CNV2T.js";import"../__chunks__/chunk-J7O6EJ3L.js";import"../__chunks__/chunk-2WP7OVEE.js";import"../__chunks__/chunk-U3TQIHS4.js";import"../__chunks__/chunk-YV6QV44R.js";import"../__chunks__/chunk-TFB4VDEO.js";import"../__chunks__/chunk-GKPQY33X.js";import"../__chunks__/chunk-5P4DVVMJ.js";import"../__chunks__/chunk-P72RPE2P.js";import"../__chunks__/chunk-3HNO4SBI.js";import"../__chunks__/chunk-KOQ6YMU6.js";import"../__chunks__/chunk-JRB2SSEU.js";import"../__chunks__/chunk-RJPRN2TC.js";import"../__chunks__/chunk-IVF47HJD.js";import"../__chunks__/chunk-26GS6QMF.js";import"../__chunks__/chunk-DVHI2ELZ.js";import"../__chunks__/chunk-2GMHDN7L.js";import"../__chunks__/chunk-W4BC2UD4.js";import"../__chunks__/chunk-554W3345.js";import"../__chunks__/chunk-5RMCGDGD.js";import"../__chunks__/chunk-EBPDXFTY.js";import"../__chunks__/chunk-7XYHQ72T.js";import"../__chunks__/chunk-5TOFEI6I.js";import"../__chunks__/chunk-NGU4IN6H.js";import"../__chunks__/chunk-XKJEMPJB.js";import"../__chunks__/chunk-EXKFBM26.js";import"../__chunks__/chunk-ZTYIPKNY.js";import"../__chunks__/chunk-VSPND6ZN.js";import"../__chunks__/chunk-QOMO6NOX.js";import"../__chunks__/chunk-NLU2B6MT.js";import"../__chunks__/chunk-7EXZXVTN.js";import"../__chunks__/chunk-LHJJDJM4.js";import"../__chunks__/chunk-AQQ7Q6DO.js";import"../__chunks__/chunk-OF3VHHUR.js";import"../__chunks__/chunk-JW7ZCUB4.js";import"../__chunks__/chunk-BZYEY4V6.js";import"../__chunks__/chunk-2SJCCL2G.js";import"../__chunks__/chunk-XK4XOW72.js";import"../__chunks__/chunk-KLFPAZSS.js";import"../__chunks__/chunk-4K4XSAZL.js";import"../__chunks__/chunk-4RR3Q5J3.js";import"../__chunks__/chunk-6MSI7FDB.js";import"../__chunks__/chunk-QOTQ224Y.js";import"../__chunks__/chunk-X42PRFW5.js";import"../__chunks__/chunk-OTQ7WS45.js";import"../__chunks__/chunk-MDDTPIMJ.js";import"../__chunks__/chunk-G7OZVZV5.js";import"../__chunks__/chunk-NEPTR7XK.js";import"../__chunks__/chunk-PMKRIXXC.js";import"../__chunks__/chunk-LULIW6WZ.js";import"../__chunks__/chunk-7R6ZLHYQ.js";import"../__chunks__/chunk-UVOCSU4E.js";import"../__chunks__/chunk-7WXEH6OF.js";import"../__chunks__/chunk-KWQPHBRJ.js";import"../__chunks__/chunk-75ZJSZO3.js";import"../__chunks__/chunk-D64ESOE4.js";import"../__chunks__/chunk-YRZKLN43.js";import"../__chunks__/chunk-NRLMTQLX.js";import"../__chunks__/chunk-ZRD6IVNQ.js";import"../__chunks__/chunk-4M54TFO5.js";import"../__chunks__/chunk-RBCU6UPT.js";import"../__chunks__/chunk-WI4HAKP4.js";import"../__chunks__/chunk-L7QSACQT.js";import"../__chunks__/chunk-AO3YXZWS.js";import"../__chunks__/chunk-SATWPOTK.js";import"../__chunks__/chunk-VRPX6JWU.js";import"../__chunks__/chunk-FS3TVPEX.js";import"../__chunks__/chunk-36NZZB3P.js";import"../__chunks__/chunk-AAI7OAOT.js";import"../__chunks__/chunk-N3QTYKLF.js";import"../__chunks__/chunk-HGEGFQPE.js";import"../__chunks__/chunk-MCVNJV5N.js";import"../__chunks__/chunk-SCQQYV52.js";import"../__chunks__/chunk-BQBE7OZR.js";import"../__chunks__/chunk-LVCWBXY5.js";import"../__chunks__/chunk-GXOU42N4.js";import"../__chunks__/chunk-HNZU2YLL.js";import"../__chunks__/chunk-LXRRORKB.js";import"../__chunks__/chunk-BYUQVNE7.js";import"../__chunks__/chunk-7FRL6P4R.js";import"../__chunks__/chunk-MLZ7K6TF.js";import"../__chunks__/chunk-36QLZXW4.js";import"../__chunks__/chunk-ZHMC3BOL.js";import"../__chunks__/chunk-FWO3MI5K.js";import"../__chunks__/chunk-BQNI2XMA.js";import"../__chunks__/chunk-7TW5V77R.js";import"../__chunks__/chunk-6D7UGDOX.js";import"../__chunks__/chunk-H6BZGL2Y.js";import"../__chunks__/chunk-IYX7KDW2.js";import"../__chunks__/chunk-KH4EQVUV.js";import"../__chunks__/chunk-U6G6FV7A.js";import"../__chunks__/chunk-J62SY76E.js";import"../__chunks__/chunk-QTTXTNUK.js";import"../__chunks__/chunk-6QDOHWW2.js";import"../__chunks__/chunk-SNQ7GR7D.js";import"../__chunks__/chunk-CCJG3WLD.js";import"../__chunks__/chunk-STONH6NK.js";import"../__chunks__/chunk-2PCYLQVD.js";import"../__chunks__/chunk-RUSMJYTS.js";import"../__chunks__/chunk-NEF2FHJC.js";import"../__chunks__/chunk-ZYJTJW6F.js";import"../__chunks__/chunk-FDI635JG.js";import"../__chunks__/chunk-N7MHQ6JT.js";import"../__chunks__/chunk-SAQ2TZS4.js";import"../__chunks__/chunk-5DJROO27.js";import"../__chunks__/chunk-3DHA63I3.js";import"../__chunks__/chunk-FAP3E5SP.js";import"../__chunks__/chunk-F5TR6J7P.js";import"../__chunks__/chunk-RZXDIKCQ.js";import"../__chunks__/chunk-RALSJ7UN.js";import"../__chunks__/chunk-GGMEVY45.js";import"../__chunks__/chunk-4V2LEZC5.js";import"../__chunks__/chunk-IMQ4WARR.js";import"../__chunks__/chunk-TPUN2EUI.js";import"../__chunks__/chunk-6WZ7DVP7.js";import"../__chunks__/chunk-FLI6CXYT.js";import"../__chunks__/chunk-CHYGQARZ.js";import"../__chunks__/chunk-PNCQXZQI.js";import"../__chunks__/chunk-DAUFPJEY.js";import"../__chunks__/chunk-UVLAW376.js";import"../__chunks__/chunk-BPYUN5PX.js";import"../__chunks__/chunk-CJNCAHKE.js";import"../__chunks__/chunk-GUXTZM5B.js";import"../__chunks__/chunk-DRGP6IUA.js";import"../__chunks__/chunk-HIMYYDUZ.js";import"../__chunks__/chunk-DYORUPQR.js";import"../__chunks__/chunk-J42ZO72F.js";import"../__chunks__/chunk-6ZGFYJ6T.js";import"../__chunks__/chunk-ILUIZOGF.js";import"../__chunks__/chunk-YADH6ICF.js";import"../__chunks__/chunk-F5WIDT3N.js";import"../__chunks__/chunk-2DRL7O4R.js";import"../__chunks__/chunk-WISLI42M.js";import"../__chunks__/chunk-W7SO52DM.js";import"../__chunks__/chunk-PXHBOM4A.js";import"../__chunks__/chunk-6XR6BLIB.js";import"../__chunks__/chunk-5KGDRZSV.js";import"../__chunks__/chunk-HGOHQNWK.js";import"../__chunks__/chunk-PWBARW6L.js";import"../__chunks__/chunk-VJAZB3T2.js";import"../__chunks__/chunk-6J4RJ64N.js";import"../__chunks__/chunk-2CYC6AXK.js";import"../__chunks__/chunk-WQFSDAGL.js";import"../__chunks__/chunk-A2R2BMVL.js";import"../__chunks__/chunk-JXJG3QMF.js";import"../__chunks__/chunk-FDSDVDKW.js";import"../__chunks__/chunk-27DX5WIQ.js";import"../__chunks__/chunk-X2JZA2ND.js";import"../__chunks__/chunk-BZUMXHQT.js";import"../__chunks__/chunk-ITMTYO75.js";import"../__chunks__/chunk-7YHU2LQD.js";import"../__chunks__/chunk-OWBHRN3S.js";import"../__chunks__/chunk-UHY5IKDN.js";import"../__chunks__/chunk-3HHAVSUJ.js";import"../__chunks__/chunk-WTIKHG7D.js";import"../__chunks__/chunk-KG4F7GMX.js";import"../__chunks__/chunk-G3MFJX2K.js";import"../__chunks__/chunk-326XWAT2.js";import{a as r,b as e,c as f}from"../__chunks__/chunk-Q3IRJW5F.js";import"../__chunks__/chunk-RMRT6D5W.js";import"../__chunks__/chunk-FTV4EMTE.js";import"../__chunks__/chunk-W6HPOJ7Z.js";import"../__chunks__/chunk-6LITAK4Z.js";import"../__chunks__/chunk-AFSFP2AH.js";import"../__chunks__/chunk-JECE35KP.js";import"../__chunks__/chunk-LGN22G2C.js";import"../__chunks__/chunk-7CT2Q6BT.js";import"../__chunks__/chunk-P6W73G5S.js";import"../__chunks__/chunk-OKLK5GYW.js";import"../__chunks__/chunk-GVCPEY3I.js";import"../__chunks__/chunk-WEUI2Z4N.js";import"../__chunks__/chunk-GNCSMYRN.js";import"../__chunks__/chunk-Y4RXLAEX.js";import"../__chunks__/chunk-UIDXWJ2D.js";import"../__chunks__/chunk-FTQGHIGG.js";import"../__chunks__/chunk-NHHDQ53S.js";import"../__chunks__/chunk-XXP2T2NS.js";import"../__chunks__/chunk-AHX4GHIC.js";import{m as o}from"../__chunks__/chunk-HBP5N4FR.js";o();export{m as createSubscription,t as mockResponse,c as mockWindowHistory,b as mockWindowLocation,a as renderWithProvider,p as rest,x as server,r as testAddress,e as testNetwork,f as testReceiver};
1
+ "use strict";import"../__chunks__/chunk-OQMQWZG7.js";import{a as m}from"../__chunks__/chunk-WTAIM7XI.js";import{a as p,b as t,c as x}from"../__chunks__/chunk-IULM3X3T.js";import"../__chunks__/chunk-M6CAVA74.js";import{a as c}from"../__chunks__/chunk-6KZ376QS.js";import{a as b}from"../__chunks__/chunk-ALWWVLET.js";import{a}from"../__chunks__/chunk-3QTFEFSG.js";import"../__chunks__/chunk-4FTRS7WH.js";import"../__chunks__/chunk-GUIEUVQK.js";import"../__chunks__/chunk-SVXDW5WX.js";import"../__chunks__/chunk-USKPZSRZ.js";import"../__chunks__/chunk-WMRGA475.js";import"../__chunks__/chunk-K3PKB7WJ.js";import"../__chunks__/chunk-67UHZ3QM.js";import"../__chunks__/chunk-YNJJZIKC.js";import"../__chunks__/chunk-IDFXIKLI.js";import"../__chunks__/chunk-UFBH3DCN.js";import"../__chunks__/chunk-W54ULCX3.js";import"../__chunks__/chunk-BEUHBFRM.js";import"../__chunks__/chunk-6BYYETMB.js";import"../__chunks__/chunk-3VOPLXJ4.js";import"../__chunks__/chunk-YV236JFC.js";import"../__chunks__/chunk-AZDS7RGS.js";import"../__chunks__/chunk-IZL5PG6T.js";import"../__chunks__/chunk-TCLQWNLM.js";import"../__chunks__/chunk-K5OMH4FS.js";import"../__chunks__/chunk-6IEMVG2B.js";import"../__chunks__/chunk-TBHOJZY6.js";import"../__chunks__/chunk-PENA4DTK.js";import"../__chunks__/chunk-B4XT7Q3M.js";import"../__chunks__/chunk-5JICPNSS.js";import"../__chunks__/chunk-NNXE7L5C.js";import"../__chunks__/chunk-TZ73PSCY.js";import"../__chunks__/chunk-JPJYSJ6Z.js";import"../__chunks__/chunk-VD7EFOLS.js";import"../__chunks__/chunk-3UJZECFC.js";import"../__chunks__/chunk-GVU7CFIB.js";import"../__chunks__/chunk-2C2JGGRR.js";import"../__chunks__/chunk-AKVFL4TU.js";import"../__chunks__/chunk-VH5B3W6C.js";import"../__chunks__/chunk-VW2UBFJI.js";import"../__chunks__/chunk-AD2ZZ5BZ.js";import"../__chunks__/chunk-DZDRMOTT.js";import"../__chunks__/chunk-UCBDWIIG.js";import"../__chunks__/chunk-CQNDE53M.js";import"../__chunks__/chunk-SQJYWVIF.js";import"../__chunks__/chunk-UCE2LGYE.js";import"../__chunks__/chunk-6BZSMFWF.js";import"../__chunks__/chunk-L5ZELHXF.js";import"../__chunks__/chunk-MGJFZKF7.js";import"../__chunks__/chunk-NLNFARHY.js";import"../__chunks__/chunk-VPGECZPA.js";import"../__chunks__/chunk-NSCKC6S3.js";import"../__chunks__/chunk-HZSM6ODA.js";import"../__chunks__/chunk-N3UDJVQ3.js";import"../__chunks__/chunk-OLYIRMPJ.js";import"../__chunks__/chunk-CKP2CV55.js";import"../__chunks__/chunk-3SGZP5CP.js";import"../__chunks__/chunk-VIHCLOWS.js";import"../__chunks__/chunk-JQ7JXNJJ.js";import"../__chunks__/chunk-OXPHSKIA.js";import"../__chunks__/chunk-ODZH7JKM.js";import"../__chunks__/chunk-WDVSSRVY.js";import"../__chunks__/chunk-UHDRCKP4.js";import"../__chunks__/chunk-X4UQ4MSN.js";import"../__chunks__/chunk-WPB6JHJR.js";import"../__chunks__/chunk-QFFUAWS5.js";import"../__chunks__/chunk-Y3VJVQUT.js";import"../__chunks__/chunk-M6TOZNVQ.js";import"../__chunks__/chunk-AJMF7QMP.js";import"../__chunks__/chunk-4PG6HAQZ.js";import"../__chunks__/chunk-OWQDSZZU.js";import"../__chunks__/chunk-4G42RAZQ.js";import"../__chunks__/chunk-ZMSOXYSX.js";import"../__chunks__/chunk-QCGS2BTF.js";import"../__chunks__/chunk-QBIBCA67.js";import"../__chunks__/chunk-N7ANBXKQ.js";import"../__chunks__/chunk-ICKZONAW.js";import"../__chunks__/chunk-RCBXFPQK.js";import"../__chunks__/chunk-UXPXOQ3O.js";import"../__chunks__/chunk-NW7GGTVB.js";import"../__chunks__/chunk-S2ZXQSDD.js";import"../__chunks__/chunk-AGGNXQVA.js";import"../__chunks__/chunk-PDBMJXJR.js";import"../__chunks__/chunk-2C4B7SLQ.js";import"../__chunks__/chunk-VMTNT4QP.js";import"../__chunks__/chunk-WFKXVUJR.js";import"../__chunks__/chunk-NCOPMXZW.js";import"../__chunks__/chunk-AQ44QT4F.js";import"../__chunks__/chunk-UILMHWRL.js";import"../__chunks__/chunk-CD3FLIXS.js";import"../__chunks__/chunk-JRGRIF5V.js";import"../__chunks__/chunk-YJACYKTA.js";import"../__chunks__/chunk-NESSIC2G.js";import"../__chunks__/chunk-6QSVQSDB.js";import"../__chunks__/chunk-I2YCVINV.js";import"../__chunks__/chunk-WN34EPCX.js";import"../__chunks__/chunk-YJFNSJWQ.js";import"../__chunks__/chunk-BDWKIY35.js";import"../__chunks__/chunk-RNM7PXSW.js";import"../__chunks__/chunk-MAQCXWQH.js";import"../__chunks__/chunk-2YGRKL77.js";import"../__chunks__/chunk-KT57QU57.js";import"../__chunks__/chunk-ZJPYYWCH.js";import"../__chunks__/chunk-F6Q5XTQ3.js";import"../__chunks__/chunk-E547NXKJ.js";import"../__chunks__/chunk-ZV73WKN5.js";import"../__chunks__/chunk-U62W3J3X.js";import"../__chunks__/chunk-7NNZBPDU.js";import"../__chunks__/chunk-TTGJSNU5.js";import"../__chunks__/chunk-QLNLAIGG.js";import"../__chunks__/chunk-OLUNXARV.js";import"../__chunks__/chunk-ORXWC6HJ.js";import"../__chunks__/chunk-JCAUBGCB.js";import"../__chunks__/chunk-NARBEVJM.js";import"../__chunks__/chunk-CHGCQEYE.js";import"../__chunks__/chunk-WUXIPUMT.js";import"../__chunks__/chunk-L3ERSIIK.js";import"../__chunks__/chunk-EMI5INPM.js";import"../__chunks__/chunk-YYGVJULM.js";import"../__chunks__/chunk-4UGEM7KX.js";import"../__chunks__/chunk-NKJDO5GI.js";import"../__chunks__/chunk-QBM2WPCB.js";import"../__chunks__/chunk-2557KNUP.js";import"../__chunks__/chunk-AWNEPCTQ.js";import"../__chunks__/chunk-7CBRJL6S.js";import"../__chunks__/chunk-LULB6556.js";import"../__chunks__/chunk-LGBANZIL.js";import"../__chunks__/chunk-IKQLVVRM.js";import"../__chunks__/chunk-5Z2IFK52.js";import"../__chunks__/chunk-CEIFH7OV.js";import"../__chunks__/chunk-42XAXZU3.js";import"../__chunks__/chunk-WJGL6LVA.js";import"../__chunks__/chunk-LK5TR7MI.js";import"../__chunks__/chunk-OCMDIV3Q.js";import"../__chunks__/chunk-KMTPVLTX.js";import"../__chunks__/chunk-TKIIHBF2.js";import"../__chunks__/chunk-KOH3SXG4.js";import"../__chunks__/chunk-RPKJW3CG.js";import"../__chunks__/chunk-YV4VEOUX.js";import"../__chunks__/chunk-ATEFCARH.js";import"../__chunks__/chunk-JFXVZGSY.js";import"../__chunks__/chunk-TXAITGIS.js";import"../__chunks__/chunk-WVCTS7Q4.js";import"../__chunks__/chunk-JYZSNGLU.js";import"../__chunks__/chunk-XAQNBFSL.js";import"../__chunks__/chunk-5HMS5KVK.js";import"../__chunks__/chunk-DAGAOQXG.js";import"../__chunks__/chunk-TRSS2JUJ.js";import"../__chunks__/chunk-YAR2KJ42.js";import"../__chunks__/chunk-SLIVTINA.js";import"../__chunks__/chunk-UG2C5XXR.js";import"../__chunks__/chunk-4ZA2XAFU.js";import"../__chunks__/chunk-WAH54MS7.js";import"../__chunks__/chunk-6G774VOH.js";import"../__chunks__/chunk-3LT37HBU.js";import"../__chunks__/chunk-PV3SRV2T.js";import"../__chunks__/chunk-XZTV73KB.js";import"../__chunks__/chunk-YTYNUTPN.js";import"../__chunks__/chunk-WHUPPQX7.js";import"../__chunks__/chunk-XDCLALI3.js";import"../__chunks__/chunk-EWSGHHFH.js";import"../__chunks__/chunk-35YX2WD6.js";import"../__chunks__/chunk-JXPJTJFZ.js";import"../__chunks__/chunk-FZMRVALH.js";import"../__chunks__/chunk-ZV6DH37S.js";import"../__chunks__/chunk-53MFZJS3.js";import"../__chunks__/chunk-5O46MGH4.js";import"../__chunks__/chunk-S6PDOF7W.js";import"../__chunks__/chunk-VQBZO5BS.js";import"../__chunks__/chunk-Y67NJMTN.js";import"../__chunks__/chunk-6IFVW3ME.js";import"../__chunks__/chunk-UUO5F23Q.js";import"../__chunks__/chunk-HH5S5FOE.js";import"../__chunks__/chunk-WXOTRYY6.js";import"../__chunks__/chunk-22UA5SNR.js";import"../__chunks__/chunk-2MEGZZM3.js";import"../__chunks__/chunk-ZYN7ZAB3.js";import"../__chunks__/chunk-FX73W4FN.js";import"../__chunks__/chunk-ATIND3CY.js";import"../__chunks__/chunk-4PEKHDKB.js";import"../__chunks__/chunk-ZIME3DT3.js";import"../__chunks__/chunk-2UFJTGPZ.js";import"../__chunks__/chunk-R7VXMYQB.js";import"../__chunks__/chunk-PAVHGJ7A.js";import"../__chunks__/chunk-OT5WSHVV.js";import"../__chunks__/chunk-H54WWC3Y.js";import"../__chunks__/chunk-U5SOFD2L.js";import"../__chunks__/chunk-37ZHJ2BK.js";import"../__chunks__/chunk-EA6JYINF.js";import"../__chunks__/chunk-CUTJFM3C.js";import"../__chunks__/chunk-F7XKTZUU.js";import"../__chunks__/chunk-DIJP3P4B.js";import"../__chunks__/chunk-4F5KRX5N.js";import"../__chunks__/chunk-KZR7TQ7H.js";import"../__chunks__/chunk-XOZ662VA.js";import"../__chunks__/chunk-NAN2H6P3.js";import"../__chunks__/chunk-LO5NNAIV.js";import"../__chunks__/chunk-U6FPCKTD.js";import"../__chunks__/chunk-7GQ5I7XT.js";import"../__chunks__/chunk-OM5R3D3N.js";import"../__chunks__/chunk-VWIO5HEC.js";import"../__chunks__/chunk-I5U46442.js";import"../__chunks__/chunk-DN2UAQBB.js";import"../__chunks__/chunk-MNKM45L2.js";import"../__chunks__/chunk-2J7OWKKH.js";import"../__chunks__/chunk-YGAFCO6X.js";import"../__chunks__/chunk-2O6QTNOU.js";import"../__chunks__/chunk-I7VLLM33.js";import"../__chunks__/chunk-42RVHSN6.js";import"../__chunks__/chunk-LWEPSRRC.js";import"../__chunks__/chunk-FBHNJJZH.js";import"../__chunks__/chunk-D7KRCOOO.js";import"../__chunks__/chunk-KEQTNP4F.js";import"../__chunks__/chunk-QF453J7H.js";import"../__chunks__/chunk-OT4R2D6Y.js";import"../__chunks__/chunk-4JP4CKHO.js";import"../__chunks__/chunk-LOPOCK44.js";import"../__chunks__/chunk-MQIXAGLQ.js";import"../__chunks__/chunk-OOTAOVR2.js";import"../__chunks__/chunk-3U7QBETU.js";import"../__chunks__/chunk-DBD6N2CW.js";import"../__chunks__/chunk-QGRJWDCZ.js";import"../__chunks__/chunk-6IYK4PYK.js";import"../__chunks__/chunk-OWG32HIC.js";import"../__chunks__/chunk-4MZ7WK7D.js";import"../__chunks__/chunk-BG3WD2P5.js";import"../__chunks__/chunk-C77LE3WZ.js";import"../__chunks__/chunk-V4DM6PYN.js";import"../__chunks__/chunk-DJYZBTTY.js";import"../__chunks__/chunk-2NG2BTE6.js";import"../__chunks__/chunk-LPQY7BQ4.js";import"../__chunks__/chunk-MBQJF3MO.js";import"../__chunks__/chunk-XFNBVAQR.js";import"../__chunks__/chunk-75I5NPKF.js";import"../__chunks__/chunk-FK6GRHXD.js";import"../__chunks__/chunk-ICVZO2K2.js";import"../__chunks__/chunk-DMW2AYNQ.js";import"../__chunks__/chunk-KOLHA5NZ.js";import"../__chunks__/chunk-FBAWHW4S.js";import"../__chunks__/chunk-G3HTF5LO.js";import"../__chunks__/chunk-2E65ASLA.js";import"../__chunks__/chunk-H2TX62YH.js";import"../__chunks__/chunk-EN3UGD4S.js";import"../__chunks__/chunk-HHVWCUSQ.js";import"../__chunks__/chunk-CSY5E3N2.js";import"../__chunks__/chunk-VQA7KKLD.js";import"../__chunks__/chunk-XNFCZFZP.js";import"../__chunks__/chunk-IQLOJ7LN.js";import"../__chunks__/chunk-AFTAM6FQ.js";import"../__chunks__/chunk-EEHUVAU6.js";import"../__chunks__/chunk-NYKG2LOK.js";import"../__chunks__/chunk-PH6CNV2T.js";import"../__chunks__/chunk-J7O6EJ3L.js";import"../__chunks__/chunk-2WP7OVEE.js";import"../__chunks__/chunk-U3TQIHS4.js";import"../__chunks__/chunk-YV6QV44R.js";import"../__chunks__/chunk-TFB4VDEO.js";import"../__chunks__/chunk-GKPQY33X.js";import"../__chunks__/chunk-5P4DVVMJ.js";import"../__chunks__/chunk-P72RPE2P.js";import"../__chunks__/chunk-3HNO4SBI.js";import"../__chunks__/chunk-KOQ6YMU6.js";import"../__chunks__/chunk-JRB2SSEU.js";import"../__chunks__/chunk-RJPRN2TC.js";import"../__chunks__/chunk-IVF47HJD.js";import"../__chunks__/chunk-26GS6QMF.js";import"../__chunks__/chunk-GZJSHU2T.js";import"../__chunks__/chunk-2GMHDN7L.js";import"../__chunks__/chunk-W4BC2UD4.js";import"../__chunks__/chunk-554W3345.js";import"../__chunks__/chunk-5RMCGDGD.js";import"../__chunks__/chunk-EBPDXFTY.js";import"../__chunks__/chunk-7XYHQ72T.js";import"../__chunks__/chunk-5TOFEI6I.js";import"../__chunks__/chunk-NGU4IN6H.js";import"../__chunks__/chunk-XKJEMPJB.js";import"../__chunks__/chunk-EXKFBM26.js";import"../__chunks__/chunk-ZTYIPKNY.js";import"../__chunks__/chunk-VSPND6ZN.js";import"../__chunks__/chunk-QOMO6NOX.js";import"../__chunks__/chunk-NLU2B6MT.js";import"../__chunks__/chunk-7EXZXVTN.js";import"../__chunks__/chunk-LHJJDJM4.js";import"../__chunks__/chunk-AQQ7Q6DO.js";import"../__chunks__/chunk-OF3VHHUR.js";import"../__chunks__/chunk-JW7ZCUB4.js";import"../__chunks__/chunk-BZYEY4V6.js";import"../__chunks__/chunk-2SJCCL2G.js";import"../__chunks__/chunk-XK4XOW72.js";import"../__chunks__/chunk-KLFPAZSS.js";import"../__chunks__/chunk-4K4XSAZL.js";import"../__chunks__/chunk-4RR3Q5J3.js";import"../__chunks__/chunk-6MSI7FDB.js";import"../__chunks__/chunk-QOTQ224Y.js";import"../__chunks__/chunk-X42PRFW5.js";import"../__chunks__/chunk-OTQ7WS45.js";import"../__chunks__/chunk-MDDTPIMJ.js";import"../__chunks__/chunk-G7OZVZV5.js";import"../__chunks__/chunk-NEPTR7XK.js";import"../__chunks__/chunk-PMKRIXXC.js";import"../__chunks__/chunk-LULIW6WZ.js";import"../__chunks__/chunk-7R6ZLHYQ.js";import"../__chunks__/chunk-UVOCSU4E.js";import"../__chunks__/chunk-7WXEH6OF.js";import"../__chunks__/chunk-KWQPHBRJ.js";import"../__chunks__/chunk-75ZJSZO3.js";import"../__chunks__/chunk-D64ESOE4.js";import"../__chunks__/chunk-YRZKLN43.js";import"../__chunks__/chunk-NRLMTQLX.js";import"../__chunks__/chunk-ZRD6IVNQ.js";import"../__chunks__/chunk-4M54TFO5.js";import"../__chunks__/chunk-RBCU6UPT.js";import"../__chunks__/chunk-WI4HAKP4.js";import"../__chunks__/chunk-L7QSACQT.js";import"../__chunks__/chunk-AO3YXZWS.js";import"../__chunks__/chunk-SATWPOTK.js";import"../__chunks__/chunk-VRPX6JWU.js";import"../__chunks__/chunk-FS3TVPEX.js";import"../__chunks__/chunk-36NZZB3P.js";import"../__chunks__/chunk-AAI7OAOT.js";import"../__chunks__/chunk-N3QTYKLF.js";import"../__chunks__/chunk-HGEGFQPE.js";import"../__chunks__/chunk-MCVNJV5N.js";import"../__chunks__/chunk-SCQQYV52.js";import"../__chunks__/chunk-BQBE7OZR.js";import"../__chunks__/chunk-LVCWBXY5.js";import"../__chunks__/chunk-GXOU42N4.js";import"../__chunks__/chunk-HNZU2YLL.js";import"../__chunks__/chunk-LXRRORKB.js";import"../__chunks__/chunk-BYUQVNE7.js";import"../__chunks__/chunk-7FRL6P4R.js";import"../__chunks__/chunk-MLZ7K6TF.js";import"../__chunks__/chunk-36QLZXW4.js";import"../__chunks__/chunk-ZHMC3BOL.js";import"../__chunks__/chunk-FWO3MI5K.js";import"../__chunks__/chunk-BQNI2XMA.js";import"../__chunks__/chunk-7TW5V77R.js";import"../__chunks__/chunk-6D7UGDOX.js";import"../__chunks__/chunk-H6BZGL2Y.js";import"../__chunks__/chunk-IYX7KDW2.js";import"../__chunks__/chunk-KH4EQVUV.js";import"../__chunks__/chunk-U6G6FV7A.js";import"../__chunks__/chunk-J62SY76E.js";import"../__chunks__/chunk-QTTXTNUK.js";import"../__chunks__/chunk-6QDOHWW2.js";import"../__chunks__/chunk-SNQ7GR7D.js";import"../__chunks__/chunk-CCJG3WLD.js";import"../__chunks__/chunk-STONH6NK.js";import"../__chunks__/chunk-2PCYLQVD.js";import"../__chunks__/chunk-RUSMJYTS.js";import"../__chunks__/chunk-NEF2FHJC.js";import"../__chunks__/chunk-ZYJTJW6F.js";import"../__chunks__/chunk-FDI635JG.js";import"../__chunks__/chunk-N7MHQ6JT.js";import"../__chunks__/chunk-SAQ2TZS4.js";import"../__chunks__/chunk-5DJROO27.js";import"../__chunks__/chunk-3DHA63I3.js";import"../__chunks__/chunk-FAP3E5SP.js";import"../__chunks__/chunk-F5TR6J7P.js";import"../__chunks__/chunk-RZXDIKCQ.js";import"../__chunks__/chunk-RALSJ7UN.js";import"../__chunks__/chunk-GGMEVY45.js";import"../__chunks__/chunk-4V2LEZC5.js";import"../__chunks__/chunk-IMQ4WARR.js";import"../__chunks__/chunk-TPUN2EUI.js";import"../__chunks__/chunk-6WZ7DVP7.js";import"../__chunks__/chunk-FLI6CXYT.js";import"../__chunks__/chunk-CHYGQARZ.js";import"../__chunks__/chunk-PNCQXZQI.js";import"../__chunks__/chunk-DAUFPJEY.js";import"../__chunks__/chunk-UVLAW376.js";import"../__chunks__/chunk-BPYUN5PX.js";import"../__chunks__/chunk-CJNCAHKE.js";import"../__chunks__/chunk-GUXTZM5B.js";import"../__chunks__/chunk-DRGP6IUA.js";import"../__chunks__/chunk-HIMYYDUZ.js";import"../__chunks__/chunk-DYORUPQR.js";import"../__chunks__/chunk-J42ZO72F.js";import"../__chunks__/chunk-6ZGFYJ6T.js";import"../__chunks__/chunk-ILUIZOGF.js";import"../__chunks__/chunk-YADH6ICF.js";import"../__chunks__/chunk-F5WIDT3N.js";import"../__chunks__/chunk-2DRL7O4R.js";import"../__chunks__/chunk-WISLI42M.js";import"../__chunks__/chunk-W7SO52DM.js";import"../__chunks__/chunk-PXHBOM4A.js";import"../__chunks__/chunk-6XR6BLIB.js";import"../__chunks__/chunk-5KGDRZSV.js";import"../__chunks__/chunk-HGOHQNWK.js";import"../__chunks__/chunk-PWBARW6L.js";import"../__chunks__/chunk-VJAZB3T2.js";import"../__chunks__/chunk-6J4RJ64N.js";import"../__chunks__/chunk-2CYC6AXK.js";import"../__chunks__/chunk-WQFSDAGL.js";import"../__chunks__/chunk-A2R2BMVL.js";import"../__chunks__/chunk-JXJG3QMF.js";import"../__chunks__/chunk-FDSDVDKW.js";import"../__chunks__/chunk-27DX5WIQ.js";import"../__chunks__/chunk-X2JZA2ND.js";import"../__chunks__/chunk-BZUMXHQT.js";import"../__chunks__/chunk-ITMTYO75.js";import"../__chunks__/chunk-7YHU2LQD.js";import"../__chunks__/chunk-OWBHRN3S.js";import"../__chunks__/chunk-UHY5IKDN.js";import"../__chunks__/chunk-3HHAVSUJ.js";import"../__chunks__/chunk-WTIKHG7D.js";import"../__chunks__/chunk-KG4F7GMX.js";import"../__chunks__/chunk-G3MFJX2K.js";import"../__chunks__/chunk-326XWAT2.js";import{a as r,b as e,c as f}from"../__chunks__/chunk-Q3IRJW5F.js";import"../__chunks__/chunk-RMRT6D5W.js";import"../__chunks__/chunk-FTV4EMTE.js";import"../__chunks__/chunk-W6HPOJ7Z.js";import"../__chunks__/chunk-6LITAK4Z.js";import"../__chunks__/chunk-AFSFP2AH.js";import"../__chunks__/chunk-JECE35KP.js";import"../__chunks__/chunk-LGN22G2C.js";import"../__chunks__/chunk-7CT2Q6BT.js";import"../__chunks__/chunk-P6W73G5S.js";import"../__chunks__/chunk-OKLK5GYW.js";import"../__chunks__/chunk-GVCPEY3I.js";import"../__chunks__/chunk-WEUI2Z4N.js";import"../__chunks__/chunk-GNCSMYRN.js";import"../__chunks__/chunk-Y4RXLAEX.js";import"../__chunks__/chunk-UIDXWJ2D.js";import"../__chunks__/chunk-FTQGHIGG.js";import"../__chunks__/chunk-NHHDQ53S.js";import"../__chunks__/chunk-XXP2T2NS.js";import"../__chunks__/chunk-AHX4GHIC.js";import{m as o}from"../__chunks__/chunk-HBP5N4FR.js";o();export{m as createSubscription,t as mockResponse,c as mockWindowHistory,b as mockWindowLocation,a as renderWithProvider,p as rest,x as server,r as testAddress,e as testNetwork,f as testReceiver};
2
2
  //# sourceMappingURL=index.js.map