@multiversx/sdk-dapp 2.3.1 → 2.3.3

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 (616) hide show
  1. package/UI/CopyButton/index.js +1 -1
  2. package/UI/DappModal/hooks/index.js +1 -1
  3. package/UI/DappModal/hooks/useDappModal.js +1 -1
  4. package/UI/DappModal/index.js +1 -1
  5. package/UI/Denominate/index.js +1 -1
  6. package/UI/ExplorerLink/ExplorerLink.js +1 -1
  7. package/UI/ExplorerLink/index.js +1 -1
  8. package/UI/FormatAmount/FormatAmount.js +1 -1
  9. package/UI/FormatAmount/index.js +1 -1
  10. package/UI/ModalContainer/ModalContainer.js +1 -1
  11. package/UI/ModalContainer/index.js +1 -1
  12. package/UI/NotificationModal/index.js +1 -1
  13. package/UI/Progress/index.js +1 -1
  14. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  15. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  16. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  17. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  18. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  19. package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
  20. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  21. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  22. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  23. package/UI/SignTransactionsModals/components/index.js +1 -1
  24. package/UI/SignTransactionsModals/index.js +1 -1
  25. package/UI/TokenDetails/index.js +1 -1
  26. package/UI/TransactionDetails/TransactionDetails.js +1 -1
  27. package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  28. package/UI/TransactionDetails/components/index.js +1 -1
  29. package/UI/TransactionDetails/index.js +1 -1
  30. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  31. package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
  32. package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
  33. package/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
  34. package/UI/TransactionInfo/components/DataDecode/index.js +1 -1
  35. package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
  36. package/UI/TransactionInfo/components/DataField/index.js +1 -1
  37. package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
  38. package/UI/TransactionInfo/components/EventsList/index.js +1 -1
  39. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  40. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  41. package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
  42. package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  43. package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  44. package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
  45. package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  46. package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
  47. package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
  48. package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
  49. package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
  50. package/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
  51. package/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
  52. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
  53. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
  54. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
  55. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
  56. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
  57. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
  58. package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
  59. package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
  60. package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
  61. package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
  62. package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
  63. package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
  64. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
  65. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
  66. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
  67. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
  68. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
  69. package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
  70. package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
  71. package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
  72. package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
  73. package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
  74. package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
  75. package/UI/TransactionInfo/components/index.js +1 -1
  76. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
  77. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
  78. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
  79. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
  80. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +1 -1
  81. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +1 -1
  82. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoHash/TransactionInfoHash.js +1 -1
  83. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoHash/index.js +1 -1
  84. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
  85. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
  86. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
  87. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
  88. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
  89. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
  90. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  91. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  92. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
  93. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
  94. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
  95. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
  96. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
  97. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
  98. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
  99. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
  100. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
  101. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
  102. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  103. package/UI/TransactionInfo/index.js +1 -1
  104. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  105. package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
  106. package/UI/TransactionsTable/components/TransactionHash.js +1 -1
  107. package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
  108. package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
  109. package/UI/TransactionsTable/components/TransactionRow.js +1 -1
  110. package/UI/TransactionsTable/components/TransactionSender.js +1 -1
  111. package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
  112. package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
  113. package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
  114. package/UI/TransactionsTable/components/index.js +1 -1
  115. package/UI/TransactionsTable/index.js +1 -1
  116. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  117. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  118. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  119. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  120. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
  121. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  122. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  123. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  124. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  125. package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  126. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  127. package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  128. package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  129. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  130. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  131. package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
  132. package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
  133. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  134. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  135. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  136. package/UI/TransactionsToastList/components/index.js +1 -1
  137. package/UI/TransactionsToastList/index.js +1 -1
  138. package/UI/extension/ExtensionLoginButton/index.js +1 -1
  139. package/UI/index.js +1 -1
  140. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  141. package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
  142. package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
  143. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  144. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  145. package/UI/ledger/index.js +1 -1
  146. package/UI/pages/UnlockPage/index.js +1 -1
  147. package/UI/pages/index.js +1 -1
  148. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  149. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  150. package/UI/walletConnect/index.js +1 -1
  151. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  152. package/__chunks__/{chunk-SHUPRDY6.js → chunk-23WABCT6.js} +2 -2
  153. package/__chunks__/{chunk-AFUFEEUN.js → chunk-2IU4ZFFH.js} +2 -2
  154. package/__chunks__/{chunk-PTBLBGQF.js → chunk-2MMI5UBN.js} +2 -2
  155. package/__chunks__/{chunk-CKAD4F63.js → chunk-2RYHQ6GQ.js} +2 -2
  156. package/__chunks__/{chunk-IGNY6NRW.js → chunk-2XGSMJKV.js} +2 -2
  157. package/__chunks__/{chunk-7WMZEP7Q.js → chunk-372WAXTQ.js} +2 -2
  158. package/__chunks__/chunk-3AOYVMRJ.js +2 -0
  159. package/__chunks__/{chunk-Q7HECF4Q.js → chunk-3E6Y3O25.js} +2 -2
  160. package/__chunks__/{chunk-7NFQGQ5Q.js → chunk-3NJDVZUF.js} +2 -2
  161. package/__chunks__/{chunk-VJYSHORZ.js → chunk-3P3HSTXF.js} +2 -2
  162. package/__chunks__/{chunk-6JPAXTK6.js → chunk-3QOSYPBU.js} +2 -2
  163. package/__chunks__/chunk-4AIE24DS.js +2 -0
  164. package/__chunks__/{chunk-33ONNXNO.js → chunk-4BJZ3PT3.js} +2 -2
  165. package/__chunks__/{chunk-GJ6TQ7XG.js → chunk-4DIH3QDD.js} +2 -2
  166. package/__chunks__/{chunk-Q663T6WV.js → chunk-4ISXCVVL.js} +2 -2
  167. package/__chunks__/{chunk-SCNZXL7L.js → chunk-4JTWWYEP.js} +2 -2
  168. package/__chunks__/{chunk-T6N6SLAD.js → chunk-4L32YVLY.js} +2 -2
  169. package/__chunks__/{chunk-XTSTYNP6.js → chunk-4RCDPCHR.js} +2 -2
  170. package/__chunks__/{chunk-KHO4IVX5.js → chunk-4U27GF7V.js} +2 -2
  171. package/__chunks__/{chunk-3C5NB3VI.js → chunk-4Y4O2KWM.js} +2 -2
  172. package/__chunks__/chunk-53VAVQW3.js +2 -0
  173. package/__chunks__/{chunk-V4NH4KGH.js → chunk-5ALSFW3O.js} +2 -2
  174. package/__chunks__/{chunk-BFTBKNFG.js → chunk-5E5FMH2P.js} +2 -2
  175. package/__chunks__/chunk-5Q2WXT6C.js +2 -0
  176. package/__chunks__/{chunk-LL72H433.js → chunk-5Q2Y6MDB.js} +2 -2
  177. package/__chunks__/{chunk-VLNPGWC5.js → chunk-5VNLNTWS.js} +2 -2
  178. package/__chunks__/chunk-5WQI3F3M.js +2 -0
  179. package/__chunks__/{chunk-QFLFTNJM.js → chunk-5XJBRFH7.js} +2 -2
  180. package/__chunks__/{chunk-JR6VCWNL.js → chunk-6GH6VPOK.js} +2 -2
  181. package/__chunks__/{chunk-JIDGAQOT.js → chunk-6KHUFFJU.js} +2 -2
  182. package/__chunks__/{chunk-MJ2ISPU2.js → chunk-6LJGDAKR.js} +2 -2
  183. package/__chunks__/{chunk-LESGNI5A.js → chunk-6LXORK57.js} +2 -2
  184. package/__chunks__/chunk-6QHTOLCT.js +2 -0
  185. package/__chunks__/{chunk-UJBZWEAJ.js → chunk-6S6Z43OG.js} +2 -2
  186. package/__chunks__/chunk-6ZGALJRB.js +2 -0
  187. package/__chunks__/{chunk-3UTO3IYR.js → chunk-72DXWEHL.js} +2 -2
  188. package/__chunks__/{chunk-3ZG3MBAU.js → chunk-75IZAXPU.js} +2 -2
  189. package/__chunks__/{chunk-5K7SVKSC.js → chunk-77SY3HCE.js} +2 -2
  190. package/__chunks__/{chunk-EZP3TLKU.js → chunk-7ASLPEOW.js} +2 -2
  191. package/__chunks__/{chunk-YFGMHVY3.js → chunk-7FGDNWAK.js} +2 -2
  192. package/__chunks__/{chunk-KIDD6MCM.js → chunk-7FRPIXPX.js} +2 -2
  193. package/__chunks__/{chunk-X66YBMS4.js → chunk-7JGMG5Y3.js} +2 -2
  194. package/__chunks__/chunk-7NHF2W5Z.js +2 -0
  195. package/__chunks__/{chunk-VMMI6YPU.js → chunk-7PSBDNEK.js} +2 -2
  196. package/__chunks__/{chunk-QZK7OOH3.js → chunk-7R7Z5EUR.js} +2 -2
  197. package/__chunks__/{chunk-VKQHSYLK.js → chunk-7RLOHZID.js} +2 -2
  198. package/__chunks__/chunk-7Y6YJ4ZF.js +2 -0
  199. package/__chunks__/chunk-ABVIJYXG.js +2 -0
  200. package/__chunks__/chunk-AEEVEPBH.js +2 -0
  201. package/__chunks__/{chunk-7PPUDZ2T.js → chunk-ALKTXMRV.js} +2 -2
  202. package/__chunks__/{chunk-HFBCN33X.js → chunk-ALOAIKQA.js} +2 -2
  203. package/__chunks__/chunk-ALU6GIOA.js +2 -0
  204. package/__chunks__/{chunk-C5NUO4MM.js → chunk-ARZZT52Z.js} +2 -2
  205. package/__chunks__/{chunk-SDDRSPEB.js → chunk-BJXEAGQI.js} +2 -2
  206. package/__chunks__/{chunk-5DVEFQSB.js → chunk-BTXXI3C5.js} +2 -2
  207. package/__chunks__/chunk-BXMSEXMF.js +2 -0
  208. package/__chunks__/{chunk-54MVJDAH.js → chunk-CYRCA52K.js} +2 -2
  209. package/__chunks__/{chunk-OIG4YF2R.js → chunk-CZR4SEII.js} +2 -2
  210. package/__chunks__/{chunk-TIQYWG5H.js → chunk-D2AKK7KI.js} +2 -2
  211. package/__chunks__/chunk-D2S75FIJ.js +2 -0
  212. package/__chunks__/chunk-DBZNKJCO.js +2 -0
  213. package/__chunks__/chunk-DR65UVWL.js +2 -0
  214. package/__chunks__/{chunk-DD2JCDY2.js → chunk-DSW55A4J.js} +2 -2
  215. package/__chunks__/{chunk-R3FJRY2Z.js → chunk-DXK4ZUCH.js} +2 -2
  216. package/__chunks__/{chunk-2M4AKJPN.js → chunk-DYYZ7GH2.js} +2 -2
  217. package/__chunks__/{chunk-VJW6DTZJ.js → chunk-ELLRUCGQ.js} +2 -2
  218. package/__chunks__/chunk-EMDPC2AJ.js +2 -0
  219. package/__chunks__/{chunk-GFY5ZUL6.js → chunk-EYWWTU44.js} +2 -2
  220. package/__chunks__/{chunk-DLWIVAKD.js → chunk-F2X5VVIZ.js} +2 -2
  221. package/__chunks__/{chunk-XFHTDU4F.js → chunk-FBK4E5NW.js} +2 -2
  222. package/__chunks__/{chunk-PWNNHBIM.js → chunk-FDYRA6XJ.js} +2 -2
  223. package/__chunks__/{chunk-XODRV4Q6.js → chunk-FFVBU5RQ.js} +2 -2
  224. package/__chunks__/{chunk-P7BVVJX5.js → chunk-FTJZEDQU.js} +2 -2
  225. package/__chunks__/{chunk-ABZ2IZO4.js → chunk-FVYIDDES.js} +2 -2
  226. package/__chunks__/{chunk-Q3JOZ2CP.js → chunk-G43B373M.js} +2 -2
  227. package/__chunks__/chunk-G737UHQB.js +2 -0
  228. package/__chunks__/{chunk-FD5HKRAX.js → chunk-GR3RT6ZZ.js} +2 -2
  229. package/__chunks__/{chunk-ALWA4LTP.js → chunk-GSBLW7YZ.js} +2 -2
  230. package/__chunks__/{chunk-R3K6XWCB.js → chunk-GT6KNDQW.js} +2 -2
  231. package/__chunks__/{chunk-VMM6JAZG.js → chunk-GTEK6WFJ.js} +2 -2
  232. package/__chunks__/{chunk-QWGX5US3.js → chunk-GYZ7YF2I.js} +2 -2
  233. package/__chunks__/{chunk-5STORMZC.js → chunk-H3PYQ4QV.js} +2 -2
  234. package/__chunks__/{chunk-4VLJCJJM.js → chunk-H4R6KAC3.js} +2 -2
  235. package/__chunks__/{chunk-F7ESS2A6.js → chunk-HDY53ANG.js} +2 -2
  236. package/__chunks__/{chunk-LNE2U5E7.js → chunk-HIOXEIZD.js} +2 -2
  237. package/__chunks__/{chunk-PEANG3NC.js → chunk-HNUB6XBH.js} +2 -2
  238. package/__chunks__/{chunk-TY3BD2GL.js → chunk-HQQXV7WQ.js} +2 -2
  239. package/__chunks__/chunk-HSRWKKTJ.js +2 -0
  240. package/__chunks__/{chunk-XKV723N6.js → chunk-HX3CK5WP.js} +2 -2
  241. package/__chunks__/{chunk-D5HQSQ5Y.js → chunk-I2R4TID7.js} +2 -2
  242. package/__chunks__/{chunk-CKDAMVQL.js → chunk-IFEQG3BM.js} +2 -2
  243. package/__chunks__/{chunk-AQHHAZ3S.js → chunk-IGRX7653.js} +2 -2
  244. package/__chunks__/{chunk-X54MOIWZ.js → chunk-IIB5LHL2.js} +2 -2
  245. package/__chunks__/{chunk-NP5FMYFI.js → chunk-IPZME5GZ.js} +2 -2
  246. package/__chunks__/{chunk-3JGCHKN2.js → chunk-IQ6OIUKX.js} +2 -2
  247. package/__chunks__/{chunk-ZQ2QQO7X.js → chunk-IT4RQOGU.js} +2 -2
  248. package/__chunks__/chunk-JA6VLNIR.js +2 -0
  249. package/__chunks__/{chunk-NRXK4FQF.js → chunk-JAUQGKRF.js} +2 -2
  250. package/__chunks__/{chunk-TFYWCFKI.js → chunk-JFTNS53I.js} +2 -2
  251. package/__chunks__/{chunk-LSEGAHMQ.js → chunk-JTPQQKSW.js} +2 -2
  252. package/__chunks__/{chunk-SOFXDHSN.js → chunk-K4PKLFGX.js} +2 -2
  253. package/__chunks__/{chunk-FIN7KCFT.js → chunk-KAOERY2M.js} +2 -2
  254. package/__chunks__/{chunk-L3MGZIG6.js → chunk-KBOGISKW.js} +2 -2
  255. package/__chunks__/{chunk-PC65DQCO.js → chunk-KHROB3G5.js} +2 -2
  256. package/__chunks__/{chunk-AGE76CJS.js → chunk-KI3PKWMT.js} +2 -2
  257. package/__chunks__/{chunk-FYSR5U3I.js → chunk-KMLULSN5.js} +2 -2
  258. package/__chunks__/{chunk-M3FPP6T7.js → chunk-KNPSAOWD.js} +2 -2
  259. package/__chunks__/{chunk-I2OYSMHS.js → chunk-KQP4EJVX.js} +2 -2
  260. package/__chunks__/{chunk-5KR2MVSX.js → chunk-KSWTSXQD.js} +2 -2
  261. package/__chunks__/chunk-KVWHQQ6T.js +2 -0
  262. package/__chunks__/{chunk-S5UJTCXN.js → chunk-L4LGCVPV.js} +2 -2
  263. package/__chunks__/{chunk-SJJB4IAR.js → chunk-L6WV33UF.js} +2 -2
  264. package/__chunks__/{chunk-AEZVN3UO.js → chunk-L6YXPGX2.js} +2 -2
  265. package/__chunks__/{chunk-UBTVRU3E.js → chunk-LCQ2B47Q.js} +2 -2
  266. package/__chunks__/{chunk-DPHN7HVD.js → chunk-LJXU3CGD.js} +2 -2
  267. package/__chunks__/{chunk-26QI5SIJ.js → chunk-M6WZOAKB.js} +2 -2
  268. package/__chunks__/chunk-M7ITPD6X.js +2 -0
  269. package/__chunks__/{chunk-RTJTVVFS.js → chunk-MDRRV726.js} +2 -2
  270. package/__chunks__/{chunk-HSLY632F.js → chunk-MOEOJYVT.js} +2 -2
  271. package/__chunks__/{chunk-CG7KGWWL.js → chunk-MY633BEI.js} +2 -2
  272. package/__chunks__/chunk-MZIDFQZ3.js +2 -0
  273. package/__chunks__/chunk-N333Z2BV.js +2 -0
  274. package/__chunks__/{chunk-GKY5KA3F.js → chunk-N4W43MXK.js} +2 -2
  275. package/__chunks__/{chunk-Z7C2YERA.js → chunk-N6VI4QEJ.js} +2 -2
  276. package/__chunks__/{chunk-2BUDQEWE.js → chunk-NCTWW6NZ.js} +2 -2
  277. package/__chunks__/{chunk-WZWIMOKV.js → chunk-NKTSGS4A.js} +2 -2
  278. package/__chunks__/chunk-NUJXGF6Y.js +2 -0
  279. package/__chunks__/{chunk-DJHPFGX6.js → chunk-NXJ3WD7Q.js} +2 -2
  280. package/__chunks__/{chunk-BGFGNAC4.js → chunk-O7ENQI63.js} +2 -2
  281. package/__chunks__/{chunk-JYXQ7LOT.js → chunk-OAQIIBF7.js} +2 -2
  282. package/__chunks__/{chunk-7CKJVDPG.js → chunk-OKHHUA7J.js} +2 -2
  283. package/__chunks__/{chunk-RM4DR5YH.js → chunk-OKUWOTZU.js} +2 -2
  284. package/__chunks__/{chunk-EBAXDGL7.js → chunk-OUBYLJVO.js} +2 -2
  285. package/__chunks__/{chunk-MTRFJAV3.js → chunk-P6PWZCWU.js} +2 -2
  286. package/__chunks__/{chunk-QD6GEHG4.js → chunk-PAD5UBCO.js} +2 -2
  287. package/__chunks__/{chunk-2YB4NPFQ.js → chunk-PBRBN2YY.js} +2 -2
  288. package/__chunks__/{chunk-37FKTAKZ.js → chunk-PD45WZNF.js} +2 -2
  289. package/__chunks__/{chunk-6H74GIU6.js → chunk-PJYVNCWQ.js} +2 -2
  290. package/__chunks__/{chunk-WAQ7MKEC.js → chunk-PQPMBI5T.js} +2 -2
  291. package/__chunks__/{chunk-4XBUGAEB.js → chunk-QAXDO6Z2.js} +2 -2
  292. package/__chunks__/{chunk-2IBLGO2A.js → chunk-QCG67HPT.js} +2 -2
  293. package/__chunks__/{chunk-JVO3OTWJ.js → chunk-QCJSSLN5.js} +2 -2
  294. package/__chunks__/{chunk-MXUG42SB.js → chunk-QDBNFC47.js} +2 -2
  295. package/__chunks__/{chunk-GARX3UC3.js → chunk-QDG6DX7I.js} +2 -2
  296. package/__chunks__/{chunk-LLYSLML4.js → chunk-QN7JZI2J.js} +2 -2
  297. package/__chunks__/{chunk-RJMVHSD5.js → chunk-QP7K2LX2.js} +2 -2
  298. package/__chunks__/{chunk-GAZKVMFE.js → chunk-QQTMEJSS.js} +2 -2
  299. package/__chunks__/{chunk-KBN5FUUU.js → chunk-QTYKPJCG.js} +2 -2
  300. package/__chunks__/{chunk-JRWYH6C3.js → chunk-QZRKSGF3.js} +2 -2
  301. package/__chunks__/{chunk-7UJ2QVNF.js → chunk-R6BAD7QL.js} +2 -2
  302. package/__chunks__/chunk-RCRLXXJQ.js +2 -0
  303. package/__chunks__/{chunk-LUOKYKOZ.js → chunk-RGZJQIHV.js} +2 -2
  304. package/__chunks__/{chunk-PVTRCISO.js → chunk-RXQ5SMCE.js} +2 -2
  305. package/__chunks__/{chunk-LA7PNPJ6.js → chunk-S6HSNFR4.js} +2 -2
  306. package/__chunks__/{chunk-UBEOQSIP.js → chunk-SHYWSDZ2.js} +2 -2
  307. package/__chunks__/{chunk-H5SGYLT2.js → chunk-SJBVHNRS.js} +2 -2
  308. package/__chunks__/{chunk-4DBTMUPJ.js → chunk-SLXALMUS.js} +2 -2
  309. package/__chunks__/{chunk-FCUXC6CI.js → chunk-SUFYB7SU.js} +2 -2
  310. package/__chunks__/{chunk-2NV5YJWT.js → chunk-SZ5R4KYT.js} +2 -2
  311. package/__chunks__/chunk-T2MVETZ4.js +2 -0
  312. package/__chunks__/{chunk-RLFQERPJ.js → chunk-T2NSHK45.js} +2 -2
  313. package/__chunks__/{chunk-HTA6J7K7.js → chunk-T4MA5YPW.js} +2 -2
  314. package/__chunks__/{chunk-YNEWKYKQ.js → chunk-T6DHLJEP.js} +2 -2
  315. package/__chunks__/{chunk-I5BVF6UR.js → chunk-TBXSSOYL.js} +2 -2
  316. package/__chunks__/{chunk-5WMEJ3LG.js → chunk-TKK4TCUG.js} +2 -2
  317. package/__chunks__/{chunk-EHS4K6KJ.js → chunk-TV5JLIO3.js} +2 -2
  318. package/__chunks__/{chunk-SBXFKI4W.js → chunk-TWPMRPCJ.js} +2 -2
  319. package/__chunks__/{chunk-6NRXAYB3.js → chunk-U4DREZMZ.js} +2 -2
  320. package/__chunks__/{chunk-TPYKAABN.js → chunk-U7R3ODDD.js} +2 -2
  321. package/__chunks__/{chunk-B25NAW7W.js → chunk-UBI77ZA7.js} +2 -2
  322. package/__chunks__/{chunk-2NH2FQEH.js → chunk-US5YWUWE.js} +2 -2
  323. package/__chunks__/{chunk-UZ7DPDMX.js → chunk-USKW77WO.js} +2 -2
  324. package/__chunks__/{chunk-ED44NIUE.js → chunk-UXRDAS7C.js} +2 -2
  325. package/__chunks__/{chunk-ZUR56TCY.js → chunk-UYVTJE63.js} +2 -2
  326. package/__chunks__/{chunk-URP3ZX5V.js → chunk-UZZTB6J2.js} +2 -2
  327. package/__chunks__/{chunk-KQAVVFT7.js → chunk-V55GBYFZ.js} +2 -2
  328. package/__chunks__/{chunk-ZBOX22HU.js → chunk-VB7EWJQ6.js} +2 -2
  329. package/__chunks__/{chunk-GCWTST6A.js → chunk-VHVGMQVY.js} +2 -2
  330. package/__chunks__/{chunk-LJUKWZBH.js → chunk-VOJLYTVI.js} +2 -2
  331. package/__chunks__/{chunk-CENV263I.js → chunk-VRAV6RDB.js} +2 -2
  332. package/__chunks__/{chunk-XHDI2SKD.js → chunk-VSBFML35.js} +2 -2
  333. package/__chunks__/{chunk-BFU2QOK7.js → chunk-VY4HFSTY.js} +2 -2
  334. package/__chunks__/{chunk-YZGKKPP5.js → chunk-W4CWA4KM.js} +2 -2
  335. package/__chunks__/{chunk-ZG46K5FU.js → chunk-W6TOWN33.js} +2 -2
  336. package/__chunks__/{chunk-MMZKRMKR.js → chunk-WAX2SRRR.js} +2 -2
  337. package/__chunks__/{chunk-KKHFB55C.js → chunk-WGSNT4EM.js} +2 -2
  338. package/__chunks__/{chunk-EUJ46VEZ.js → chunk-WHEA5HYP.js} +2 -2
  339. package/__chunks__/{chunk-7MWL77ZK.js → chunk-WIFR7W45.js} +2 -2
  340. package/__chunks__/{chunk-VJIP6W32.js → chunk-WMQVNZKG.js} +2 -2
  341. package/__chunks__/chunk-WOS6T7ZV.js +2 -0
  342. package/__chunks__/{chunk-U2L6FONJ.js → chunk-WPOULSHX.js} +2 -2
  343. package/__chunks__/{chunk-THI5XMU4.js → chunk-WVADOL2D.js} +2 -2
  344. package/__chunks__/chunk-XCLZ5AS2.js +2 -0
  345. package/__chunks__/chunk-XGHGX644.js +2 -0
  346. package/__chunks__/chunk-XYSWLSUL.js +2 -0
  347. package/__chunks__/{chunk-HZVMBVZJ.js → chunk-Y7VP4PME.js} +2 -2
  348. package/__chunks__/{chunk-2Y6LPWGF.js → chunk-YHPAZ7RG.js} +2 -2
  349. package/__chunks__/{chunk-6SHBADXT.js → chunk-YIID7WXR.js} +2 -2
  350. package/__chunks__/{chunk-2OYAMC2Z.js → chunk-YJ3UC4ZI.js} +2 -2
  351. package/__chunks__/{chunk-EVTUNKTW.js → chunk-YRQBJ7VU.js} +2 -2
  352. package/__chunks__/{chunk-NP7WBEQK.js → chunk-Z2OOX7G7.js} +2 -2
  353. package/__chunks__/{chunk-PWSKY37E.js → chunk-ZABQNLC5.js} +2 -2
  354. package/__chunks__/{chunk-6FEMGV3G.js → chunk-ZEB6PEPS.js} +2 -2
  355. package/__chunks__/{chunk-NWJF7KGT.js → chunk-ZIYSW5GV.js} +2 -2
  356. package/__chunks__/{chunk-ZFCLX5JU.js → chunk-ZMTFL7CC.js} +2 -2
  357. package/__chunks__/{chunk-M357HOML.js → chunk-ZNGQR3EA.js} +2 -2
  358. package/__commonjs/UI/DappModal/hooks/index.js +1 -1
  359. package/__commonjs/UI/DappModal/hooks/useDappModal.js +1 -1
  360. package/__commonjs/UI/DappModal/index.js +3 -3
  361. package/__commonjs/UI/ModalContainer/ModalContainer.js +2 -2
  362. package/__commonjs/UI/ModalContainer/index.js +2 -2
  363. package/__commonjs/UI/NotificationModal/index.js +4 -4
  364. package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +21 -21
  365. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +5 -5
  366. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +7 -7
  367. package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +5 -5
  368. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +7 -7
  369. package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +5 -5
  370. package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +14 -14
  371. package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +14 -14
  372. package/__commonjs/UI/SignTransactionsModals/components/index.js +14 -14
  373. package/__commonjs/UI/SignTransactionsModals/index.js +21 -21
  374. package/__commonjs/UI/TransactionInfo/TransactionInfo.js +26 -26
  375. package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +2 -2
  376. package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +2 -2
  377. package/__commonjs/UI/TransactionInfo/components/index.js +36 -36
  378. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +3 -3
  379. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +3 -3
  380. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +33 -33
  381. package/__commonjs/UI/TransactionInfo/index.js +27 -27
  382. package/__commonjs/UI/TransactionsTable/TransactionsTable.js +5 -5
  383. package/__commonjs/UI/TransactionsTable/index.js +5 -5
  384. package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +7 -7
  385. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +6 -6
  386. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +2 -2
  387. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +6 -6
  388. package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +8 -8
  389. package/__commonjs/UI/TransactionsToastList/components/index.js +13 -13
  390. package/__commonjs/UI/TransactionsToastList/index.js +7 -7
  391. package/__commonjs/UI/index.js +67 -67
  392. package/__commonjs/UI/ledger/LedgerLoginButton/index.js +8 -8
  393. package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +2 -2
  394. package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +7 -7
  395. package/__commonjs/UI/ledger/index.js +8 -8
  396. package/__commonjs/UI/pages/UnlockPage/index.js +11 -11
  397. package/__commonjs/UI/pages/index.js +11 -11
  398. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +5 -5
  399. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +4 -4
  400. package/__commonjs/UI/walletConnect/index.js +5 -5
  401. package/__commonjs/__mocks__/index.js +1 -1
  402. package/__commonjs/__mocks__/utils/index.js +1 -1
  403. package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
  404. package/__commonjs/components/LogoutListener/LogoutListener.js +1 -1
  405. package/__commonjs/components/LogoutListener/helpers/index.js +1 -1
  406. package/__commonjs/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  407. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  408. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  409. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  410. package/__commonjs/components/LogoutListener/index.js +1 -1
  411. package/__commonjs/components/TransactionsTracker/TransactionTracker.js +1 -1
  412. package/__commonjs/components/TransactionsTracker/index.js +1 -1
  413. package/__commonjs/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  414. package/__commonjs/hooks/index.js +1 -1
  415. package/__commonjs/hooks/login/index.js +1 -1
  416. package/__commonjs/hooks/login/useAddressScreens.js +9 -0
  417. package/__commonjs/hooks/login/useLedgerLogin.js +1 -1
  418. package/__commonjs/wrappers/DappProvider/CustomComponents.js +1 -1
  419. package/__commonjs/wrappers/DappProvider/index.js +1 -1
  420. package/__commonjs/wrappers/index.js +1 -1
  421. package/__mocks__/index.js +1 -1
  422. package/__mocks__/utils/index.js +1 -1
  423. package/__mocks__/utils/renderWithProvider.js +1 -1
  424. package/apiCalls/accounts/getAccountFromApi.js +1 -1
  425. package/apiCalls/accounts/index.js +1 -1
  426. package/apiCalls/configuration/getNetworkConfig.js +1 -1
  427. package/apiCalls/configuration/index.js +1 -1
  428. package/apiCalls/getScamAddressData.js +1 -1
  429. package/apiCalls/index.js +1 -1
  430. package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  431. package/apiCalls/transactions/index.js +1 -1
  432. package/apiCalls/transactions/sendSignedTransactions.js +1 -1
  433. package/apiCalls/utils/getCleanApiAddress.js +1 -1
  434. package/apiCalls/utils/index.js +1 -1
  435. package/components/LogoutListener/LogoutListener.js +1 -1
  436. package/components/LogoutListener/helpers/index.js +1 -1
  437. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  438. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  439. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  440. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  441. package/components/LogoutListener/index.js +1 -1
  442. package/components/ProviderInitializer.js +1 -1
  443. package/components/TransactionSender/TransactionSender.js +1 -1
  444. package/components/TransactionSender/index.js +1 -1
  445. package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
  446. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  447. package/components/TransactionsTracker/index.js +1 -1
  448. package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  449. package/hooks/account/index.js +1 -1
  450. package/hooks/account/useGetAccount.js +1 -1
  451. package/hooks/account/useGetAccountInfo.js +1 -1
  452. package/hooks/account/useGetIsLoggedIn.js +1 -1
  453. package/hooks/account/useGetLoginInfo.js +1 -1
  454. package/hooks/account/useGetWebsocketEvent.js +1 -1
  455. package/hooks/index.js +1 -1
  456. package/hooks/login/index.js +1 -1
  457. package/hooks/login/useAddressScreens.d.ts +38 -0
  458. package/hooks/login/useAddressScreens.js +2 -0
  459. package/hooks/login/useExtensionLogin.js +1 -1
  460. package/hooks/login/useLedgerLogin.d.ts +1 -1
  461. package/hooks/login/useLedgerLogin.js +1 -1
  462. package/hooks/login/useLoginService.js +1 -1
  463. package/hooks/login/useWalletConnectLogin.js +1 -1
  464. package/hooks/login/useWalletConnectV2Login.js +1 -1
  465. package/hooks/login/useWebWalletLogin.js +1 -1
  466. package/hooks/signMessage/index.js +1 -1
  467. package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  468. package/hooks/signMessage/useGetSignMessageSession.js +1 -1
  469. package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
  470. package/hooks/signMessage/useSignMessage.js +1 -1
  471. package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
  472. package/hooks/transactions/helpers/index.js +1 -1
  473. package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
  474. package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
  475. package/hooks/transactions/index.js +1 -1
  476. package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
  477. package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  478. package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
  479. package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
  480. package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  481. package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  482. package/hooks/transactions/useGetFailedTransactions.js +1 -1
  483. package/hooks/transactions/useGetPendingTransactions.js +1 -1
  484. package/hooks/transactions/useGetSignTransactionsError.js +1 -1
  485. package/hooks/transactions/useGetSignedTransactions.js +1 -1
  486. package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  487. package/hooks/transactions/useGetTokenDetails.js +1 -1
  488. package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
  489. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  490. package/hooks/transactions/useSignTransactions.js +1 -1
  491. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  492. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  493. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  494. package/hooks/transactions/useTrackTransactionStatus.js +1 -1
  495. package/hooks/useGetNetworkConfig.js +1 -1
  496. package/hooks/useGetNotification.js +1 -1
  497. package/hooks/userInterface/index.js +1 -1
  498. package/hooks/userInterface/useIsDappModalVisible.js +1 -1
  499. package/hooks/websocketListener/index.js +1 -1
  500. package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
  501. package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  502. package/package.json +1 -1
  503. package/reduxStore/DappProviderContext.js +1 -1
  504. package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
  505. package/reduxStore/persistConfig.js +1 -1
  506. package/reduxStore/persistedRootReducer.js +1 -1
  507. package/reduxStore/reducers.js +1 -1
  508. package/reduxStore/rootReducer.js +1 -1
  509. package/reduxStore/selectors/accountInfoSelectors.js +1 -1
  510. package/reduxStore/selectors/index.js +1 -1
  511. package/reduxStore/selectors/loginInfoSelectors.js +1 -1
  512. package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
  513. package/reduxStore/selectors/transactionsSelectors.js +1 -1
  514. package/reduxStore/slices/accountInfoSlice.js +1 -1
  515. package/reduxStore/slices/index.js +1 -1
  516. package/reduxStore/slices/loginInfoSlice.js +1 -1
  517. package/reduxStore/store.js +1 -1
  518. package/services/index.js +1 -1
  519. package/services/transactions/clearTransactions.js +1 -1
  520. package/services/transactions/index.js +1 -1
  521. package/services/transactions/sendTransactions.js +1 -1
  522. package/services/transactions/signTransactions.js +1 -1
  523. package/services/transactions/transformAndSignTransactions.js +1 -1
  524. package/services/transactions/utils.js +1 -1
  525. package/storage/local.js +1 -1
  526. package/utils/account/getAccount.js +1 -1
  527. package/utils/account/getAccountBalance.js +1 -1
  528. package/utils/account/getAccountShard.js +1 -1
  529. package/utils/account/getAddress.js +1 -1
  530. package/utils/account/getLatestNonce.js +1 -1
  531. package/utils/account/index.js +1 -1
  532. package/utils/account/loginWithExternalProvider.js +1 -1
  533. package/utils/account/refreshAccount.js +1 -1
  534. package/utils/account/setNonce.js +1 -1
  535. package/utils/account/signMessage.js +1 -1
  536. package/utils/getIsLoggedIn.js +1 -1
  537. package/utils/index.js +1 -1
  538. package/utils/logout.js +1 -1
  539. package/utils/network/getChainID.js +1 -1
  540. package/utils/network/getEgldLabel.js +1 -1
  541. package/utils/network/getNetworkConfig.js +1 -1
  542. package/utils/network/index.js +1 -1
  543. package/utils/operations/denominate.js +1 -1
  544. package/utils/operations/formatAmount.js +1 -1
  545. package/utils/operations/index.js +1 -1
  546. package/utils/storage/index.js +1 -1
  547. package/utils/toasts/customToastsActions.js +1 -1
  548. package/utils/toasts/index.js +1 -1
  549. package/utils/transactions/getAllTransactionsLink.js +1 -1
  550. package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
  551. package/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
  552. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
  553. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
  554. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
  555. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
  556. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
  557. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
  558. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
  559. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
  560. package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
  561. package/utils/transactions/getInterpretedTransaction/index.js +1 -1
  562. package/utils/transactions/getTransactionLink.js +1 -1
  563. package/utils/transactions/index.js +1 -1
  564. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
  565. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
  566. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
  567. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
  568. package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
  569. package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
  570. package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
  571. package/utils/transactions/transactionInfoHelpers/index.js +1 -1
  572. package/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
  573. package/web/hooks/index.js +1 -1
  574. package/web/hooks/useIdleTimer.js +1 -1
  575. package/web/index.js +1 -1
  576. package/wrappers/AppInitializer.js +1 -1
  577. package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  578. package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
  579. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
  580. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
  581. package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  582. package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  583. package/wrappers/AxiosInterceptorContext/index.js +1 -1
  584. package/wrappers/DappProvider/CustomComponents.js +1 -1
  585. package/wrappers/DappProvider/index.js +1 -1
  586. package/wrappers/index.js +1 -1
  587. package/__chunks__/chunk-3NPI7JA7.js +0 -2
  588. package/__chunks__/chunk-3WWRIEF2.js +0 -2
  589. package/__chunks__/chunk-4L5GQQ5V.js +0 -2
  590. package/__chunks__/chunk-5R3FZCYE.js +0 -2
  591. package/__chunks__/chunk-7NCGSE7V.js +0 -2
  592. package/__chunks__/chunk-AHYWEF7B.js +0 -2
  593. package/__chunks__/chunk-BGCOFQOB.js +0 -2
  594. package/__chunks__/chunk-CGICAIB4.js +0 -2
  595. package/__chunks__/chunk-DJ257IT6.js +0 -2
  596. package/__chunks__/chunk-DUSZZPF5.js +0 -2
  597. package/__chunks__/chunk-DZ7DF3PB.js +0 -2
  598. package/__chunks__/chunk-EFI4BH63.js +0 -2
  599. package/__chunks__/chunk-F2JINB56.js +0 -2
  600. package/__chunks__/chunk-FBLFBPJI.js +0 -2
  601. package/__chunks__/chunk-GFHZOO2D.js +0 -2
  602. package/__chunks__/chunk-HNBKDGB4.js +0 -2
  603. package/__chunks__/chunk-HOMCNURE.js +0 -2
  604. package/__chunks__/chunk-IHXP3ILK.js +0 -2
  605. package/__chunks__/chunk-J56ZMEK7.js +0 -2
  606. package/__chunks__/chunk-JBVENEHE.js +0 -2
  607. package/__chunks__/chunk-JKIKLHKN.js +0 -2
  608. package/__chunks__/chunk-KO6WAT63.js +0 -2
  609. package/__chunks__/chunk-PNY4HLJR.js +0 -2
  610. package/__chunks__/chunk-PPQR6O44.js +0 -2
  611. package/__chunks__/chunk-RRF2ZJRY.js +0 -2
  612. package/__chunks__/chunk-TEDBWAYV.js +0 -2
  613. package/__chunks__/chunk-UGJQJLC2.js +0 -2
  614. package/__chunks__/chunk-UOBE4FLX.js +0 -2
  615. package/__chunks__/chunk-ZFNBOBDY.js +0 -2
  616. package/__chunks__/chunk-ZX4NKEPH.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";var vs=Object.create;var lt=Object.defineProperty,As=Object.defineProperties,Is=Object.getOwnPropertyDescriptor,bs=Object.getOwnPropertyDescriptors,ks=Object.getOwnPropertyNames,bt=Object.getOwnPropertySymbols,Ls=Object.getPrototypeOf,gr=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable;var Sn=(e,t,r)=>t in e?lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t)=>{for(var r in t||(t={}))gr.call(t,r)&&Sn(e,r,t[r]);if(bt)for(var r of bt(t))wn.call(t,r)&&Sn(e,r,t[r]);return e},E=(e,t)=>As(e,bs(t));var kt=(e,t)=>{var r={};for(var o in e)gr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&bt)for(var o of bt(e))t.indexOf(o)<0&&wn.call(e,o)&&(r[o]=e[o]);return r};var S=(e,t)=>()=>(e&&(t=e(e=0)),t);var Lt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ue=(e,t)=>{for(var r in t)lt(e,r,{get:t[r],enumerable:!0})},vn=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ks(t))!gr.call(e,i)&&i!==r&&lt(e,i,{get:()=>t[i],enumerable:!(o=Is(t,i))||o.enumerable});return e};var P=(e,t,r)=>(r=e!=null?vs(Ls(e)):{},vn(t||!e||!e.__esModule?lt(r,"default",{value:e,enumerable:!0}):r,e)),pt=e=>vn(lt({},"__esModule",{value:!0}),e);var I=(e,t,r)=>new Promise((o,i)=>{var l=d=>{try{g(r.next(d))}catch(m){i(m)}},p=d=>{try{g(r.throw(d))}catch(m){i(m)}},g=d=>d.done?o(d.value):Promise.resolve(d.value).then(l,p);g((r=r.apply(e,t)).next())});var bn=Lt(Et=>{"use strict";n();Et.byteLength=Cs;Et.toByteArray=Ds;Et.fromByteArray=Ms;var ue=[],oe=[],Es=typeof Uint8Array!="undefined"?Uint8Array:Array,mr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Be=0,An=mr.length;Be<An;++Be)ue[Be]=mr[Be],oe[mr.charCodeAt(Be)]=Be;var Be,An;oe["-".charCodeAt(0)]=62;oe["_".charCodeAt(0)]=63;function In(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function Cs(e){var t=In(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Ps(e,t,r){return(t+r)*3/4-r}function Ds(e){var t,r=In(e),o=r[0],i=r[1],l=new Es(Ps(e,o,i)),p=0,g=i>0?o-4:o,d;for(d=0;d<g;d+=4)t=oe[e.charCodeAt(d)]<<18|oe[e.charCodeAt(d+1)]<<12|oe[e.charCodeAt(d+2)]<<6|oe[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=oe[e.charCodeAt(d)]<<2|oe[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=oe[e.charCodeAt(d)]<<10|oe[e.charCodeAt(d+1)]<<4|oe[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Ns(e){return ue[e>>18&63]+ue[e>>12&63]+ue[e>>6&63]+ue[e&63]}function Rs(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(Ns(o));return i.join("")}function Ms(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,g=r-o;p<g;p+=l)i.push(Rs(e,p,p+l>g?g:p+l));return o===1?(t=e[r-1],i.push(ue[t>>2]+ue[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(ue[t>>10]+ue[t>>4&63]+ue[t<<2&63]+"=")),i.join("")}});var kn=Lt(fr=>{n();fr.read=function(e,t,r,o,i){var l,p,g=i*8-o-1,d=(1<<g)-1,m=d>>1,f=-7,T=r?i-1:0,v=r?-1:1,b=e[t+T];for(T+=v,l=b&(1<<-f)-1,b>>=-f,f+=g;f>0;l=l*256+e[t+T],T+=v,f-=8);for(p=l&(1<<-f)-1,l>>=-f,f+=o;f>0;p=p*256+e[t+T],T+=v,f-=8);if(l===0)l=1-m;else{if(l===d)return p?NaN:(b?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-m}return(b?-1:1)*p*Math.pow(2,l-o)};fr.write=function(e,t,r,o,i,l){var p,g,d,m=l*8-i-1,f=(1<<m)-1,T=f>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=o?0:l-1,w=o?1:-1,L=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(g=isNaN(t)?1:0,p=f):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+T>=1?t+=v/d:t+=v*Math.pow(2,1-T),t*d>=2&&(p++,d/=2),p+T>=f?(g=0,p=f):p+T>=1?(g=(t*d-1)*Math.pow(2,i),p=p+T):(g=t*Math.pow(2,T-1)*Math.pow(2,i),p=0));i>=8;e[r+b]=g&255,b+=w,g/=256,i-=8);for(p=p<<i|g,m+=i;m>0;e[r+b]=p&255,b+=w,p/=256,m-=8);e[r+b-w]|=L*128}});var Bn=Lt(je=>{"use strict";n();var Tr=bn(),Ge=kn(),Ln=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;je.Buffer=u;je.SlowBuffer=$s;je.INSPECT_MAX_BYTES=50;var Ct=2147483647;je.kMaxLength=Ct;u.TYPED_ARRAY_SUPPORT=Os();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Os(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function Se(e){if(e>Ct)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Sr(e)}return Pn(e,t,r)}u.poolSize=8192;function Pn(e,t,r){if(typeof e=="string")return _s(e,t);if(ArrayBuffer.isView(e))return Us(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(de(e,ArrayBuffer)||e&&de(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(de(e,SharedArrayBuffer)||e&&de(e.buffer,SharedArrayBuffer)))return hr(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=Bs(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return Pn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Dn(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Fs(e,t,r){return Dn(e),e<=0?Se(e):t!==void 0?typeof r=="string"?Se(e).fill(t,r):Se(e).fill(t):Se(e)}u.alloc=function(e,t,r){return Fs(e,t,r)};function Sr(e){return Dn(e),Se(e<0?0:wr(e)|0)}u.allocUnsafe=function(e){return Sr(e)};u.allocUnsafeSlow=function(e){return Sr(e)};function _s(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Nn(e,t)|0,o=Se(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function yr(e){for(var t=e.length<0?0:wr(e.length)|0,r=Se(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function Us(e){if(de(e,Uint8Array)){var t=new Uint8Array(e);return hr(t.buffer,t.byteOffset,t.byteLength)}return yr(e)}function hr(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function Bs(e){if(u.isBuffer(e)){var t=wr(e.length)|0,r=Se(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||vr(e.length)?Se(0):yr(e);if(e.type==="Buffer"&&Array.isArray(e.data))return yr(e.data)}function wr(e){if(e>=Ct)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ct.toString(16)+" bytes");return e|0}function $s(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(de(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),de(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(de(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function Nn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||de(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return xr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Un(e).length;default:if(i)return o?-1:xr(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=Nn;function Vs(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Xs(this,t,r);case"utf8":case"utf-8":return Mn(this,t,r);case"ascii":return Ys(this,t,r);case"latin1":case"binary":return Zs(this,t,r);case"base64":return zs(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Js(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function $e(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)$e(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)$e(this,r,r+3),$e(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)$e(this,r,r+7),$e(this,r+1,r+6),$e(this,r+2,r+5),$e(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Mn(this,0,t):Vs.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=je.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Ln&&(u.prototype[Ln]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(de(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,g=o-r,d=Math.min(p,g),m=this.slice(i,l),f=t.slice(r,o),T=0;T<d;++T)if(m[T]!==f[T]){p=m[T],g=f[T];break}return p<g?-1:g<p?1:0};function Rn(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,vr(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:En(e,t,r,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):En(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function En(e,t,r,o,i){var l=1,p=e.length,g=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,g/=2,r/=2}function d(b,w){return l===1?b[w]:b.readUInt16BE(w*l)}var m;if(i){var f=-1;for(m=r;m<p;m++)if(d(e,m)===d(t,f===-1?0:m-f)){if(f===-1&&(f=m),m-f+1===g)return f*l}else f!==-1&&(m-=m-f),f=-1}else for(r+g>p&&(r=p-g),m=r;m>=0;m--){for(var T=!0,v=0;v<g;v++)if(d(e,m+v)!==d(t,v)){T=!1;break}if(T)return m}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return Rn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return Rn(this,t,r,o,!1)};function Ws(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var g=parseInt(t.substr(p*2,2),16);if(vr(g))return p;e[r+p]=g}return p}function Hs(e,t,r,o){return Pt(xr(t,e.length-r),e,r,o)}function Gs(e,t,r,o){return Pt(ta(t),e,r,o)}function js(e,t,r,o){return Pt(Un(t),e,r,o)}function qs(e,t,r,o){return Pt(ra(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return Ws(this,t,r,o);case"utf8":case"utf-8":return Hs(this,t,r,o);case"ascii":case"latin1":case"binary":return Gs(this,t,r,o);case"base64":return js(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qs(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function zs(e,t,r){return t===0&&r===e.length?Tr.fromByteArray(e):Tr.fromByteArray(e.slice(t,r))}function Mn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,g=l>239?4:l>223?3:l>191?2:1;if(i+g<=r){var d,m,f,T;switch(g){case 1:l<128&&(p=l);break;case 2:d=e[i+1],(d&192)===128&&(T=(l&31)<<6|d&63,T>127&&(p=T));break;case 3:d=e[i+1],m=e[i+2],(d&192)===128&&(m&192)===128&&(T=(l&15)<<12|(d&63)<<6|m&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:d=e[i+1],m=e[i+2],f=e[i+3],(d&192)===128&&(m&192)===128&&(f&192)===128&&(T=(l&15)<<18|(d&63)<<12|(m&63)<<6|f&63,T>65535&&T<1114112&&(p=T))}}p===null?(p=65533,g=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=g}return Ks(o)}var Cn=4096;function Ks(e){var t=e.length;if(t<=Cn)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=Cn));return r}function Ys(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function Zs(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function Xs(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=na[e[l]];return i}function Js(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function $(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||$(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||$(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||$(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||$(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||$(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||$(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||$(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||$(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||$(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||$(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||$(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||$(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||$(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||$(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||$(t,4,this.length),Ge.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||$(t,4,this.length),Ge.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||$(t,8,this.length),Ge.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||$(t,8,this.length),Ge.read(this,t,!1,52,8)};function X(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;X(this,t,r,o,l,0)}var p=1,g=0;for(this[r]=t&255;++g<o&&(p*=256);)this[r+g]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;X(this,t,r,o,l,0)}var p=o-1,g=1;for(this[r+p]=t&255;--p>=0&&(g*=256);)this[r+p]=t/g&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||X(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||X(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||X(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||X(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||X(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);X(this,t,r,o,l-1,-l)}var p=0,g=1,d=0;for(this[r]=t&255;++p<o&&(g*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/g>>0)-d&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);X(this,t,r,o,l-1,-l)}var p=o-1,g=1,d=0;for(this[r+p]=t&255;--p>=0&&(g*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/g>>0)-d&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||X(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||X(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||X(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||X(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||X(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function On(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Fn(e,t,r,o,i){return t=+t,r=r>>>0,i||On(e,t,r,4,34028234663852886e22,-34028234663852886e22),Ge.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return Fn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return Fn(this,t,r,!1,o)};function _n(e,t,r,o,i){return t=+t,r=r>>>0,i||On(e,t,r,8,17976931348623157e292,-17976931348623157e292),Ge.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return _n(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return _n(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var g=u.isBuffer(t)?t:u.from(t,i),d=g.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=g[p%d]}return this};var Qs=/[^+/0-9A-Za-z-_]/g;function ea(e){if(e=e.split("=")[0],e=e.trim().replace(Qs,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function xr(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function ta(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function ra(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function Un(e){return Tr.toByteArray(ea(e))}function Pt(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function de(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function vr(e){return e!==e}var na=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var Gn=Lt((el,Hn)=>{n();var O=Hn.exports={},ge,me;function Ar(){throw new Error("setTimeout has not been defined")}function Ir(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ge=setTimeout:ge=Ar}catch(e){ge=Ar}try{typeof clearTimeout=="function"?me=clearTimeout:me=Ir}catch(e){me=Ir}})();function $n(e){if(ge===setTimeout)return setTimeout(e,0);if((ge===Ar||!ge)&&setTimeout)return ge=setTimeout,setTimeout(e,0);try{return ge(e,0)}catch(t){try{return ge.call(null,e,0)}catch(r){return ge.call(this,e,0)}}}function oa(e){if(me===clearTimeout)return clearTimeout(e);if((me===Ir||!me)&&clearTimeout)return me=clearTimeout,clearTimeout(e);try{return me(e)}catch(t){try{return me.call(null,e)}catch(r){return me.call(this,e)}}}var we=[],qe=!1,Ve,Dt=-1;function ia(){!qe||!Ve||(qe=!1,Ve.length?we=Ve.concat(we):Dt=-1,we.length&&Vn())}function Vn(){if(!qe){var e=$n(ia);qe=!0;for(var t=we.length;t;){for(Ve=we,we=[];++Dt<t;)Ve&&Ve[Dt].run();Dt=-1,t=we.length}Ve=null,qe=!1,oa(e)}}O.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];we.push(new Wn(e,t)),we.length===1&&!qe&&$n(Vn)};function Wn(e,t){this.fun=e,this.array=t}Wn.prototype.run=function(){this.fun.apply(null,this.array)};O.title="browser";O.browser=!0;O.env={};O.argv=[];O.version="";O.versions={};function ve(){}O.on=ve;O.addListener=ve;O.once=ve;O.off=ve;O.removeListener=ve;O.removeAllListeners=ve;O.emit=ve;O.prependListener=ve;O.prependOnceListener=ve;O.listeners=function(e){return[]};O.binding=function(e){throw new Error("process.binding is not supported")};O.cwd=function(){return"/"};O.chdir=function(e){throw new Error("process.chdir is not supported")};O.umask=function(){return 0}});var s,a,tl,n=S(()=>{s=P(Bn()),a=P(Gn()),tl=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object)});var ze,ut=S(()=>{"use strict";n();ze="Action not allowed. User is logged in. Call logout() first"});var jn=S(()=>{"use strict";n()});var qn=S(()=>{"use strict";n()});var zn=S(()=>{"use strict";n()});var q=S(()=>{"use strict";n()});var Kn=S(()=>{"use strict";n()});var Yn=S(()=>{"use strict";n()});var z=S(()=>{"use strict";n()});var Zn=S(()=>{"use strict";n()});var Xn=S(()=>{"use strict";n()});var ie=S(()=>{"use strict";n();jn();qn();zn();q();Kn();Yn();z();Zn();Xn()});var br,Jn,Sl,Qn,wl,eo,vl,Al,Il,to=S(()=>{"use strict";n();ie();br={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Jn,egldLabel:Sl}=br["devnet"],{chainId:Qn,egldLabel:wl}=br["testnet"],{chainId:eo,egldLabel:vl}=br["mainnet"],Al={["devnet"]:Jn,["testnet"]:Qn,["mainnet"]:eo},Il={[Jn]:"devnet",[Qn]:"testnet",[eo]:"mainnet"}});var kr,Lr=S(()=>{"use strict";n();kr={36864:{code:"codeSuccess",message:"Success"},27013:{code:"ERR_USER_DENIED",message:"Rejected by user"},27904:{code:"ERR_UNKNOWN_INSTRUCTION",message:"Unknown instruction"},28160:{code:"ERR_WRONG_CLA",message:"Wrong CLA"},28161:{code:"ERR_INVALID_ARGUMENTS",message:"Invalid arguments"},28162:{code:"ERR_INVALID_MESSAGE",message:"Invalid message"},28163:{code:"ERR_INVALID_P1",message:"Invalid P1"},28164:{code:"ERR_MESSAGE_TOO_LONG",message:"Message too long"},28165:{code:"ERR_RECEIVER_TOO_LONG",message:"Receiver too long"},28166:{code:"ERR_AMOUNT_TOO_LONG",message:"Amount too long"},28167:{code:"ERR_CONTRACT_DATA_DISABLED",message:"Contract data disabled in app options"},28168:{code:"ERR_MESSAGE_INCOMPLETE",message:"Message incomplete"},28176:{code:"ERR_SIGNATURE_FAILED",message:"Signature failed"},28169:{code:"ERR_WRONG_TX_VERSION",message:"Wrong TX version"},28170:{code:"ERR_NONCE_TOO_LONG",message:"Nonce too long"},28171:{code:"ERR_INVALID_AMOUNT",message:"Invalid amount"},28172:{code:"ERR_INVALID_FEE",message:"Invalid fee"},28173:{code:"ERR_PRETTY_FAILED",message:"Pretty failed"},28174:{code:"ERR_DATA_TOO_LONG",message:"Data too long"},28175:{code:"ERR_WRONG_TX_OPTIONS",message:"Invalid transaction options"},28177:{code:"ERR_SIGN_TX_DEPRECATED",message:"Regular transaction signing is deprecated in this version. Use hash signing."}}});var ro=S(()=>{"use strict";n()});var no,Er=S(()=>{"use strict";n();no="transaction-status-toast-id"});var Cr,Pr,oo,io,Nt,so,Ke,F=S(()=>{"use strict";n();ut();to();Lr();ro();Er();Cr=5e4,Pr=1e9,oo=1,io=1,Nt="logout",so="login",Ke="0"});var Rr,V,J,K=S(()=>{"use strict";n();Rr=require("@reduxjs/toolkit");F();V=(0,Rr.createAction)(Nt),J=(0,Rr.createAction)(so,e=>({payload:e}))});var Ze,Mt=S(()=>{"use strict";n();Ze=()=>Date.now()/1e3});var fo=S(()=>{"use strict";n()});var To=S(()=>{"use strict";n()});var Mr=S(()=>{"use strict";n();Mt();fo();To()});var Fr={};Ue(Fr,{getItem:()=>ca,localStorageKeys:()=>fe,removeItem:()=>la,setItem:()=>aa});var fe,Or,aa,ca,la,Xe=S(()=>{"use strict";n();Mr();fe={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Or=typeof localStorage!="undefined",aa=({key:e,data:t,expires:r})=>{!Or||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},ca=e=>{if(!Or)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Ze()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},la=e=>{!Or||localStorage.removeItem(String(e))}});var _r={};Ue(_r,{clear:()=>So,getItem:()=>ho,removeItem:()=>xo,setItem:()=>yo,storage:()=>pa});var yo,ho,xo,So,pa,wo=S(()=>{"use strict";n();yo=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},ho=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},xo=e=>sessionStorage.removeItem(String(e)),So=()=>sessionStorage.clear(),pa={setItem:yo,getItem:ho,removeItem:xo,clear:So}});var ke,Je=S(()=>{"use strict";n();Xe();wo();ke={session:_r,local:Fr}});var Br,vo,Ao,Ot,Ur,Io,$r,np,Vr,op,Wr,bo,ip,sp,ap,cp,ko,Hr=S(()=>{"use strict";n();Br=require("@multiversx/sdk-core"),vo=require("@reduxjs/toolkit"),Ao=require("redux-persist");F();Je();Xe();K();Ot={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Ke},Ur={address:"",websocketEvent:null,accounts:{"":Ot},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Io=(0,vo.createSlice)({name:"accountInfoSlice",initialState:Ur,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Br.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Ot},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(V,()=>(ke.local.removeItem(fe.loginExpiresAt),Ur)),e.addCase(J,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new Br.Address(o).hex()}),e.addCase(Ao.REHYDRATE,(t,r)=>{var m;if(!((m=r.payload)!=null&&m.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:g}=o;t.address=i,t.shard=l;let d=p&&i in p;t.accounts=d?p:Ur.accounts,t.publicKey=g})}}),{setAccount:$r,setAddress:np,setAccountNonce:Vr,setAccountShard:op,setLedgerAccount:Wr,updateLedgerAccount:bo,setWalletConnectAccount:ip,setIsAccountLoading:sp,setAccountLoadingError:ap,setWebsocketEvent:cp}=Io.actions,ko=Io.reducer});function dt(){return new Date().setHours(new Date().getHours()+24)}function gt(e){ke.local.setItem({key:fe.loginExpiresAt,data:e,expires:e})}var Gr=S(()=>{"use strict";n();Je();Xe()});var Eo,Lo,Co,hp,Ft,Po,_t,xp,Do,No,Sp,Ro,jr=S(()=>{"use strict";n();Eo=require("@reduxjs/toolkit");Gr();q();K();Lo={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,isLoginSessionInvalid:!1},Co=(0,Eo.createSlice)({name:"loginInfoSlice",initialState:Lo,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload}},extraReducers:e=>{e.addCase(V,()=>Lo),e.addCase(J,(t,r)=>{t.loginMethod=r.payload.loginMethod,gt(dt())})}}),{setLoginMethod:hp,setWalletConnectLogin:Ft,setLedgerLogin:Po,setTokenLogin:_t,setTokenLoginSignature:xp,setWalletLogin:Do,invalidateLoginSession:No,setLogoutRoute:Sp}=Co.actions,Ro=Co.reducer});var Oo,Mo,Fo,Ip,bp,kp,Lp,_o,qr=S(()=>{"use strict";n();Oo=require("@reduxjs/toolkit");K();Mo={},Fo=(0,Oo.createSlice)({name:"modalsSlice",initialState:Mo,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(V,()=>Mo)}}),{setTxSubmittedModal:Ip,setNotificationModal:bp,clearTxSubmittedModal:kp,clearNotificationModal:Lp}=Fo.actions,_o=Fo.reducer});var Uo,Bo,Ut,Bt=S(()=>{"use strict";n();Uo=!1,Bo=(e=!0)=>{Uo=e},Ut=(e,t=0)=>{Uo||setTimeout(()=>{window.location.href=e,window.location.assign(e)},t)}});function Le({callbackRoute:e,onLoginRedirect:t,options:r}){let o=Boolean(e),i=typeof t=="function",l=i?0:ua;o&&e!=null&&setTimeout(()=>{if(i)return t(e,r);window.location.pathname.includes(e)||Ut(e)},l)}var ua,$o=S(()=>{"use strict";n();Bt();ua=200});function zr(e){return e[Math.floor(Math.random()*e.length)]}var Vo=S(()=>{"use strict";n()});function mt(e){let t=null;if((e==null?void 0:e.statusCode)in kr){let r=e==null?void 0:e.statusCode,{message:o}=kr[r];t=ma.includes(r)?Wo:o}return{errorMessage:t,defaultErrorMessage:Wo}}var Wo,da,ga,ma,Ho=S(()=>{"use strict";n();Lr();Wo="Check if MultiversX app is open on Ledger",da=28161,ga=28160,ma=[da,ga]});var Qe=S(()=>{"use strict";n();$o();Vo();Ho()});var Go,jo,Kr,fa,qo,Vp,Wp,zo,Yr=S(()=>{"use strict";n();Go=require("@reduxjs/toolkit"),jo=P(require("lodash.omit"));Qe();Kr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},fa={network:Kr,chainID:"-1"},qo=(0,Go.createSlice)({name:"appConfig",initialState:fa,reducers:{initializeNetworkConfig:(e,t)=>{let r=zr(t.payload.walletConnectBridgeAddresses),o=zr(t.payload.walletConnectV2RelayAddresses),i=(0,jo.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=E(h(h({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Vp,setChainID:Wp}=qo.actions,zo=qo.reducer});var Ko,Zr,Yo,Kp,Yp,Zp,$t,Vt=S(()=>{"use strict";n();Ko=require("@reduxjs/toolkit");ie();K();Zr={isSigning:!1,signedSessions:{}},Yo=(0,Ko.createSlice)({name:"signedMessageInfoSliceState",initialState:Zr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;return E(h({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:o.status==="pending",signedSessions:E(h({},e.signedSessions),{[r]:o})})},setSignSessionState:(e,t)=>h(h({},e),t.payload),clearSignedMessageInfo:()=>Zr},extraReducers:e=>{e.addCase(V,()=>Zr)}}),{setSignSession:Kp,clearSignedMessageInfo:Yp,setSignSessionState:Zp}=Yo.actions,$t=Yo.reducer});var Xo,Jo,Zo,Qo,Ta,ya,ou,iu,su,au,Wt,Ht=S(()=>{"use strict";n();Xo=require("@reduxjs/toolkit"),Jo=require("redux-persist");Er();ie();Mt();K();Zo={customToasts:[],transactionToasts:[],failTransactionToast:null},Qo=(0,Xo.createSlice)({name:"toastsSlice",initialState:Zo,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(E(h({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Ze(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=E(h({},t.payload),{toastId:no})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(V,()=>Zo),e.addCase(Jo.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:Ta,removeCustomToast:ya,addTransactionToast:ou,removeTransactionToast:iu,addFailTransactionToast:su,removeFailTransactionToast:au}=Qo.actions,Wt=Qo.reducer});var ei,Jr,Qr,en,ha,Xr,ti,uu,du,gu,Gt,jt=S(()=>{"use strict";n();ei=require("@reduxjs/toolkit");K();Jr="Transaction failed",Qr="Transaction successful",en="Processing transaction",ha="Transaction submitted",Xr={},ti=(0,ei.createSlice)({name:"transactionsInfo",initialState:Xr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||Jr,successMessage:(o==null?void 0:o.successMessage)||Qr,processingMessage:(o==null?void 0:o.processingMessage)||en,submittedMessage:(o==null?void 0:o.submittedMessage)||ha,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Xr},extraReducers:e=>{e.addCase(V,()=>Xr)}}),{clearTransactionsInfo:uu,setTransactionsDisplayInfo:du,clearTransactionsInfoForSessionId:gu}=ti.actions,Gt=ti.reducer});function ri(e){return e!=null&&(La(e)||Da(e))}function qt(e){return e!=null&&(Ea(e)||Na(e))}function zt(e){return e!=null&&(Ca(e)||Ra(e))}function ni(e){return e!=null&&Pa(e)}function La(e){return e!=null&&Sa.includes(e)}function Ea(e){return e!=null&&wa.includes(e)}function Ca(e){return e!=null&&va.includes(e)}function Pa(e){return e!=null&&Aa.includes(e)}function Da(e){return e!=null&&Ia.includes(e)}function Na(e){return e!=null&&ba.includes(e)}function Ra(e){return e!=null&&ka.includes(e)}var Sa,wa,va,Aa,Ia,ba,ka,rn=S(()=>{"use strict";n();q();Sa=["sent"],wa=["success"],va=["fail","cancelled","timedOut"],Aa=["timedOut"],Ia=["pending"],ba=["success"],ka=["fail","invalid"]});var oi,ii,ft,Ma,si,vu,Au,Iu,bu,ku,Lu,Eu,Cu,Pu,Du,Kt,Yt=S(()=>{"use strict";n();oi=require("@reduxjs/toolkit"),ii=require("redux-persist");q();rn();K();ft={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Ma={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},si=(0,oi.createSlice)({name:"transactionsSlice",initialState:ft,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,m;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p}=t.payload,g=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||Ma;e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:g},((m=e==null?void 0:e.transactionsToSign)==null?void 0:m.sessionId)===r&&(e.transactionsToSign=ft.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=h(h({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var g,d,m,f,T,v;let{sessionId:r,status:o,errorMessage:i,transactionHash:l}=t.payload,p=(d=(g=e.signedTransactions)==null?void 0:g[r])==null?void 0:d.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(L=>L.hash===l?E(h({},L),{status:o,errorMessage:i}):L);let b=(f=(m=e.signedTransactions[r])==null?void 0:m.transactions)==null?void 0:f.every(L=>qt(L.status)),w=(v=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:v.every(L=>zt(L.status));b&&(e.signedTransactions[r].status="success"),w&&(e.signedTransactions[r].status="fail")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=ft.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=ft.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(V,()=>ft),e.addCase(ii.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((g,[d,m])=>{let f=new Date(d),T=new Date;return T.setHours(T.getHours()+5),T-f>0||(g[d]=m),g},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:vu,updateSignedTransactions:Au,setTransactionsToSign:Iu,clearAllTransactionsToSign:bu,clearAllSignedTransactions:ku,clearSignedTransaction:Lu,clearTransactionToSign:Eu,setSignTransactionsError:Cu,setSignTransactionsCancelMessage:Pu,moveTransactionsToSignedState:Du}=si.actions,Kt=si.reducer});var Q=S(()=>{"use strict";n();Hr();jr();qr();Yr();Vt();Ht();jt();Yt()});var nn=S(()=>{"use strict";n()});var ui,pi,di,td,rd,nd,od,id,sd,gi,mi=S(()=>{"use strict";n();ui=require("@reduxjs/toolkit");K();pi={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},di=(0,ui.createSlice)({name:"dappModalsSlice",initialState:pi,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=h({},t.payload)}},extraReducers:e=>{e.addCase(V,()=>pi)}}),{setDappModalVisibility:td,setDappModalHeaderVisibility:rd,setDappModalFooterVisibility:nd,setDappModalHeaderText:od,setDappModalFooterText:id,setDappModalConfig:sd}=di.actions,gi=di.reducer});var fi,Ua,Ba,et,Qt=S(()=>{"use strict";n();fi=require("@reduxjs/toolkit");nn();Hr();mi();jr();qr();Yr();Vt();Ht();jt();Yt();Ua={["account"]:ko,["dappModal"]:gi,["loginInfo"]:Ro,["modals"]:_o,["networkConfig"]:zo,["signedMessageInfo"]:$t,["toasts"]:Wt,["transactionsInfo"]:Gt,["transactions"]:Kt},Ba=(e={})=>(0,fi.combineReducers)(h(h({},Ua),e)),et=Ba});var hi={};Ue(hi,{default:()=>za});function er(e,t=[]){return{key:e,version:1,storage:yi.default,blacklist:t}}var De,Ti,yi,$a,Va,Wa,Ha,Ga,ja,qa,za,xi=S(()=>{"use strict";n();De=require("redux-persist"),Ti=P(require("redux-persist/lib/storage")),yi=P(require("redux-persist/lib/storage/session"));Qt();Q();Vt();Ht();jt();Yt();nn();$a={2:e=>E(h({},e),{networkConfig:Kr})};Va=er("sdk-dapp-transactionsInfo"),Wa=er("sdk-dapp-transactions",["transactionsToSign"]),Ha=er("sdk-dapp-toasts"),Ga=er("sdk-dapp-signedMessageInfo"),ja={key:"sdk-dapp-store",version:2,storage:Ti.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,De.createMigrate)($a,{debug:!1})},qa={["toasts"]:(0,De.persistReducer)(Ha,Wt),["transactions"]:(0,De.persistReducer)(Wa,Kt),["transactionsInfo"]:(0,De.persistReducer)(Va,Gt),["signedMessageInfo"]:(0,De.persistReducer)(Ga,$t)},za=(0,De.persistReducer)(ja,et(qa))});var Si={};Ue(Si,{default:()=>Ka});var Ka,wi=S(()=>{"use strict";n();Qt();Ka=et()});var vi={};Ue(vi,{default:()=>Za});var se,Ya,Za,Ai=S(()=>{"use strict";n();se=require("redux-persist"),Ya=[se.FLUSH,se.REHYDRATE,se.PAUSE,se.PERSIST,se.PURGE,se.REGISTER],Za=Ya});var ki={};Ue(ki,{default:()=>bi});function bi(e){return(0,Ii.persistStore)(e)}var Ii,Li=S(()=>{"use strict";n();Ii=require("redux-persist")});var Kc={};Ue(Kc,{useExtensionLogin:()=>ds,useLedgerLogin:()=>Ts,useWalletConnectLogin:()=>hs,useWalletConnectV2Login:()=>Ss,useWebWalletLogin:()=>fs});module.exports=pt(Kc);n();n();var yn=require("react"),us=require("@multiversx/sdk-extension-provider");ut();n();n();var ao=require("@multiversx/sdk-extension-provider"),co=require("@multiversx/sdk-hw-provider"),lo=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),po=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),Dr=require("@multiversx/sdk-web-wallet-provider");F();q();var sa="/dapp/init",Ye=e=>{switch(e==null?void 0:e.constructor){case Dr.WalletProvider:return"wallet";case lo.WalletConnectProvider:return"walletconnect";case po.WalletConnectV2Provider:return"walletconnectv2";case co.HWProvider:return"ledger";case ao.ExtensionProvider:return"extension";case Rt:return"";default:return"extra"}},uo=e=>new Dr.WalletProvider(`${e}${sa}`),go=e=>I(void 0,null,function*(){if(!e.isInitialized())throw new Error("Unable to get version. Provider not initialized");let t=e.hwApp,{contractData:r,version:o}=yield t.getAppConfiguration();return{version:o,dataEnabled:r===io}}),Ae=e=>`Unable to perform ${e}, Provider not initialized`,Rt=class{init(){return Promise.resolve(!1)}login(t){throw new Error(Ae(`login with options: ${t}`))}logout(t){throw new Error(Ae(`logout with options: ${t}`))}getAddress(){throw new Error(Ae("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(Ae(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(Ae(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(Ae(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(Ae(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(Ae(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(Ae(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},Nr=new Rt;var mo=Nr;function be(e){mo=e}function te(){return mo||Nr}K();n();var Ri=require("react"),tt=require("react-redux");n();var on=require("@reduxjs/toolkit"),Di=require("react-redux/lib/utils/Subscription");Q();n();var ci=P(require("lodash.throttle"));F();n();var ai=P(require("lodash.isequal")),Zt=require("reselect");ie();var y=(0,Zt.createSelectorCreator)(Zt.defaultMemoize,ai.default),Tt=(e,t)=>e!=""&&Boolean(t);Q();Gr();Je();Xe();var Oa=[Nt],Xt=!1,Fa=(0,ci.default)(()=>{gt(dt())},5e3),li=e=>t=>r=>{var d;if(Oa.includes(r.type))return t(r);let o=e.getState(),i=ke.local.getItem(fe.loginExpiresAt);if(!Tt((d=o==null?void 0:o.loginInfo)==null?void 0:d.loginMethod,o==null?void 0:o.account.address))return t(r);if(i==null)return gt(dt());let p=Date.now();return i-p<0&&!Xt?setTimeout(()=>{Xt=!0,e.dispatch(No())},1e3):(Xt&&(Xt=!1),Fa()),t(r)};n();n();function Jt(){return typeof sessionStorage!="undefined"}var Ei=Jt()?(xi(),pt(hi)).default:(wi(),pt(Si)).default,Ci=Jt()?(Ai(),pt(vi)).default:[],Pi=Jt()?(Li(),pt(ki)).default:e=>e;Qt();var N=(0,on.configureStore)({reducer:Ei,middleware:e=>e({serializableCheck:{ignoredActions:[...Ci,Vr.type,$r.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(li)}),Ni=(0,Di.createSubscription)(N),Rd=Pi(N),Md=(0,on.configureStore)({reducer:et});var Xa={store:N,subscription:Ni},sn=(0,Ri.createContext)(Xa),Ud=(0,tt.createStoreHook)(sn),ae=(0,tt.createDispatchHook)(sn),M=(0,tt.createSelectorHook)(sn);q();n();n();n();Q();var Ee=e=>e.account,yt=y(Ee,e=>e.address),rt=y(Ee,yt,(e,t)=>t in e.accounts?e.accounts[t]:Ot),Ja=y(Ee,rt,(e,t)=>{let i=e,{accounts:r}=i,o=kt(i,["accounts"]);return E(h({},o),{account:t})}),Wd=y(rt,e=>e.balance),Qa=y(rt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Hd=y(Ee,e=>e.shard),Mi=y(Ee,e=>e.ledgerAccount),Gd=y(Ee,e=>e.walletConnectAccount),jd=y(Ee,e=>e.isAccountLoading),qd=y(Ee,e=>e.accountLoadingError),ec=y(Ee,e=>e.websocketEvent);n();var le=e=>e.loginInfo,Zd=y(le,e=>e.loginMethod),ht=y(le,yt,(e,t)=>Tt(e.loginMethod,t)),Xd=y(le,e=>e.walletConnectLogin),Jd=y(le,e=>e.ledgerLogin),Oi=y(le,e=>e.walletLogin),Qd=y(le,e=>e.isLoginSessionInvalid),Fi=y(le,e=>e.tokenLogin),eg=y(le,e=>e.logoutRoute);n();var _i=e=>e.modals,ng=y(_i,e=>e.txSubmittedModal),og=y(_i,e=>e.notificationModal);n();var We=e=>e.networkConfig,an=y(We,e=>e.chainID),Ui=y(We,e=>e.network.walletConnectBridgeAddress),Bi=y(We,e=>e.network.walletConnectV2RelayAddress),$i=y(We,e=>e.network.walletConnectV2ProjectId),Vi=y(We,e=>e.network.walletConnectV2Options),tr=y(We,e=>e.network.walletConnectDeepLink),Ne=y(We,e=>e.network),tc=y(Ne,e=>e.apiAddress),Wi=y(Ne,e=>e.explorerAddress),rc=y(Ne,e=>e.egldLabel);n();var cn=e=>e.signedMessageInfo,lg=y(cn,e=>e.isSigning),pg=y(cn,e=>e.errorMessage),ug=y(cn,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});n();var ln=e=>e.toasts,mg=y(ln,e=>e.customToasts),fg=y(ln,e=>e.transactionToasts),Tg=y(ln,e=>e.failTransactionToast);n();Q();var Hi={errorMessage:Jr,successMessage:Qr,processingMessage:en},nc=e=>e.transactionsInfo,Sg=y(nc,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Hi);n();n();var re=require("@multiversx/sdk-core");F();n();function pn(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function nt(e){return atob(e)}function un(e){var i,l,p;let{data:t}=e,r=pn(t!=null?t:"")?re.TransactionPayload.fromEncoded(t):new re.TransactionPayload(t),o=new re.Transaction(h({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new re.Address(e.receiver),sender:new re.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:Cr,gasPrice:(l=e.gasPrice.valueOf())!=null?l:Pr,chainID:e.chainID.valueOf(),version:new re.TransactionVersion((p=e.version)!=null?p:oo)},e.options?{options:new re.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new re.Address(e.sender)),o}n();rn();n();var ic=P(require("bignumber.js"));ie();n();n();n();n();var ac=require("@multiversx/sdk-core"),cc=P(require("bignumber.js"));q();n();var qi=require("@multiversx/sdk-core");function sc(e){try{let t=new qi.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function xt(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&sc(e)}n();n();n();var pc=require("@multiversx/sdk-core/out");n();F();n();var zi=require("@multiversx/sdk-core");ie();n();n();n();n();q();n();n();n();n();n();n();n();var dn="blocks";n();n();n();n();z();n();n();z();n();n();n();var yc=P(require("bignumber.js"));F();n();var Tc=require("@multiversx/sdk-core"),gn=P(require("bignumber.js"));F();n();var mc=P(require("bignumber.js"));n();gn.default.config({ROUNDING_MODE:gn.default.ROUND_FLOOR});n();n();n();F();n();n();n();n();F();n();F();n();var hc=require("@multiversx/sdk-core");F();n();var St=require("@multiversx/sdk-core"),Sc=require("@multiversx/sdk-network-providers");F();n();n();var xc=P(require("bignumber.js"));F();n();F();n();n();n();n();n();F();n();z();var vc=["reDelegateRewards","claimRewards","unBond"],Ac=["wrapEgld","unwrapEgld"],Ic=["unStake"],bc=["unDelegate"];n();n();n();F();n();var Ec=P(require("bignumber.js"));n();n();n();z();n();var Cc=P(require("bignumber.js"));n();n();n();n();z();n();n();n();var Dc=P(require("linkifyjs"));n();F();n();var Nc=P(require("bignumber.js"));n();ie();n();n();q();n();q();n();n();n();z();n();z();n();var Rc=P(require("bignumber.js"));F();z();n();z();n();var Ji=require("react");ie();n();n();z();n();var Mc=require("@multiversx/sdk-core/out"),Oc=P(require("bignumber.js"));z();n();z();n();n();q();var Kh=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Qi=require("react");ie();n();var _c=require("react");z();var tx=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var ir=e=>e.transactions,wt=y(ir,e=>e.signedTransactions),Bx=y(ir,e=>e.signTransactionsError),$x=y(ir,e=>e.signTransactionsCancelMessage),sr=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),Vx=y(wt,sr(ri)),Wx=y(wt,sr(qt)),Hx=y(wt,sr(zt)),Gx=y(wt,sr(ni)),jx=y(ir,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:E(h({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>un(r)))||[]})}),qx=y(wt,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function ee(){return ht(N.getState())}Qe();n();var ps=require("react"),ar=require("@multiversx/sdk-core");n();n();n();var fn=()=>M(rt);n();n();n();n();n();var vt=P(require("react"));var xS=(0,vt.createContext)({}),SS=N.getState();n();var ts=P(require("react"));n();var Tn=P(require("react")),Uc=P(require("axios"));n();n();n();var rs=()=>{let e=te(),t=Ye(e);return{provider:e,providerType:t}};n();Q();n();n();n();var ns,At={hostname:typeof window!="undefined"?(ns=window==null?void 0:window.location)==null?void 0:ns.hostname:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},It=e=>{var r,o,i,l;return e===!0?At:{hostname:(r=e==null?void 0:e.hostname)!=null?r:At.hostname,expirySeconds:(o=e==null?void 0:e.expirySeconds)!=null?o:At.expirySeconds,apiAddress:(i=e==null?void 0:e.apiAddress)!=null?i:At.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:At.tokenExpirationToastWarningSeconds}};n();var Bc=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),ot=e=>Bc(s.Buffer.from(e,"utf8").toString("base64"));n();var os=P(require("axios"));function is(e){return I(this,null,function*(){let{data:t}=yield os.default.get(`${e}/${dn}?size=1&fields=hash,timestamp`),[r]=t;return r})}n();n();n();function $c(e){return Object.prototype.toString.call(e)==="[object String]"}var ss=e=>{if(!e||!$c(e))return null;try{let[t,r,o]=e.split("."),i=nt(t),l=nt(r),[p,g,d,m]=l.split("."),f=JSON.parse(nt(m)),T=nt(p),v={ttl:Number(d),address:i,extraInfo:f,host:T,signature:o,blockHash:g,body:l};return m==="e30"&&delete v.extraInfo,v}catch(t){return null}};var as=({address:e,token:t,signature:r})=>{let o=ot(e),i=ot(t);return`${o}.${i}.${r}`};n();Mt();var cs=e=>{let t=ss(e);if(!t)return{isExpired:!1};let r=Ze(),{ttl:o,extraInfo:i}=t,l=i.timestamp;if(!l)return{isExpired:!1};let p=l+o,g=r>p,d=p-r;return{isExpired:g,expiresAt:p,secondsUntilExpires:d}};var ls=e=>{let{hostname:t,apiAddress:r,expirySeconds:o}=It(e);return{getNativeAuthConfig:It,initialize:(...p)=>I(void 0,[...p],function*(l={}){let{hash:g,timestamp:d}=yield is(r),m=ot(JSON.stringify(h(h({},l),d?{timestamp:d}:{})));return`${ot(t)}.${g}.${o}.${m}`}),getToken:as,getTokenExpiration:cs}};n();var Vc=(e,t)=>{var r;return t?t===!0?e:(r=t.apiAddress)!=null?r:e:null},Te=e=>{let t=M(Ne),r=M(Fi),o=(0,ps.useRef)(r==null?void 0:r.loginToken),i=Vc(t.apiAddress,e),l=It(h(h({},e===!0?{}:e),i?{apiAddress:i}:{})),p=Boolean(e),g=ls(l),{address:d}=fn(),m=ae(),f=w=>{o.current=w,m(_t(h({loginToken:w},i?{nativeAuthConfig:l}:{})))},T=()=>I(void 0,null,function*(){try{return yield g.initialize()}catch(w){console.error("Unable to get block. Login failed.",w);return}}),v=({address:w,signature:L})=>{let C=o.current;if(!C)throw"Token not found. Call `setLoginToken` first.";if(!p){m(_t({loginToken:C,signature:L}));return}let D=g.getToken({address:w,token:C,signature:L});m(_t(h({loginToken:C,signature:L,nativeAuthToken:D},i?{nativeAuthConfig:l}:{})))};return{configuration:l,setLoginToken:f,getNativeAuthLoginToken:T,setTokenLoginInfo:v,refreshNativeAuthTokenLogin:L=>I(void 0,[L],function*({signMessageCallback:w}){let C=yield T();if(o.current=C,!C)return;let D=new ar.SignableMessage({address:new ar.Address(d),message:s.Buffer.from(C)}),_=yield w(D,{});v({address:d,signature:_.toJSON().signature})})}};var ds=({callbackRoute:e,token:t,nativeAuth:r,onLoginRedirect:o})=>{let[i,l]=(0,yn.useState)(""),[p,g]=(0,yn.useState)(!1),d=r!=null,m=Te(r),f=t,T=ae(),v=ee();function b(){return I(this,null,function*(){if(v)throw new Error(ze);g(!0);let L=us.ExtensionProvider.getInstance();try{if(!(yield L.init())){console.warn("Something went wrong trying to redirect to wallet login..");return}let D=encodeURIComponent(`${window.location.origin}${e!=null?e:window.location.pathname}`);if(d&&!f&&(f=yield m.getNativeAuthLoginToken(),!f)){console.warn("Fetching block failed. Login cancelled.");return}f&&m.setLoginToken(f);let _=h({callbackUrl:D},f&&{token:f});yield L.login(_),be(L);let{signature:H,address:Y}=L.account;if(!Y){g(!1),console.warn("Login cancelled.");return}H&&f&&m.setTokenLoginInfo({signature:H,address:Y}),T(J({address:Y,loginMethod:"extension"})),Le({callbackRoute:e,onLoginRedirect:o,options:{signature:H,address:Y}})}catch(C){console.error("error loging in",C),l("error logging in"+C.message)}finally{g(!1)}})}let w=Boolean(i);return[b,{loginFailed:w,error:i,isLoading:p&&!w,isLoggedIn:v&&!w}]};n();var xn=require("react");ut();Q();n();n();n();q();n();n();function gs(){let e=te();return Ye(e)}function ye(e){return gs()===e}function cr(){let{search:e}=window.location,t=N.getState(),r=te(),o=yt(t),i=ht(t),l=Oi(t);if(!r)throw"provider not initialized";return ye("ledger")&&i?new Promise(p=>{p(o)}):!ye("")&&!ye("wallet")&&!ye("extra")?r.getAddress():new Promise(p=>{if(l!=null){let g=new URLSearchParams(e),d=Object.fromEntries(g);xt(d.address)&&p(d.address)}i&&p(o),p("")})}n();n();var Wc=P(require("axios"));n();n();n();Q();n();n();n();Q();n();var ms=require("@multiversx/sdk-core");n();K();ie();n();n();Mr();n();n();var Gc=P(require("platform"));n();K();ie();Bt();Je();Xe();var jc=e=>{ke.local.setItem({key:fe.logoutEvent,data:e,expires:0}),ke.local.removeItem(fe.logoutEvent)};function lr(e,t){return I(this,null,function*(){let r=te(),o=Ye(r),i=ee(),l=o==="wallet";if(!i||!r){hn(e,t,!1);return}try{let p=yield cr();jc(p)}catch(p){hn(e,t,!1),console.error("error fetching logout address",p)}l&&Bo(),N.dispatch(V());try{let g=l&&!e?window.location.origin:e;l?setTimeout(()=>{r.logout({callbackUrl:g})}):(yield r.logout({callbackUrl:g}),hn(e,t,l))}catch(p){console.error("error logging out",p)}})}function hn(e,t,r){e&&!r&&(typeof t=="function"?t(e):Ut(e))}n();n();n();n();n();n();Bt();n();n();n();n();Je();n();n();n();Q();n();n();var qc=P(require("axios"));var fs=({callbackRoute:e,token:t,nativeAuth:r,redirectDelayMilliseconds:o=100})=>{let[i,l]=(0,xn.useState)(""),[p,g]=(0,xn.useState)(!1),d=M(Ne),m=ae(),f=ee(),T=Boolean(r),v=Te(r),b=t;function w(){return I(this,null,function*(){if(f)throw new Error(ze);try{g(!0);let C=uo(d.walletAddress),D=new Date,_=D.setMinutes(D.getMinutes()+3)/1e3,H={data:{},expires:_};if(T&&!b&&(b=yield v.getNativeAuthLoginToken(),!b)){console.warn("Login cancelled.");return}b&&v.setLoginToken(b),m(Do(H));let Y=encodeURIComponent(`${window.location.origin}${e}`),Oe=E(h({callbackUrl:Y},b&&{token:b}),{redirectDelayMilliseconds:o});yield C.login(Oe)}catch(C){console.error(C),l("error logging in"+C.message)}finally{g(!1)}})}let L=Boolean(i);return[w,{error:i,loginFailed:L,isLoading:p&&!L,isLoggedIn:f&&!L}]};n();var pe=require("react"),pr=require("@multiversx/sdk-hw-provider");ut();K();Q();q();Qe();var it="Could not initialise ledger app, make sure MultiversX app is open",zc=10;function Ts({callbackRoute:e,token:t,addressesPerPage:r=zc,nativeAuth:o,onLoginRedirect:i}){let l=M(Mi),p=ae(),g=ee(),d=o!=null,m=Te(o),f=t,[T,v]=(0,pe.useState)(""),[b,w]=(0,pe.useState)(!1),L=new pr.HWProvider,[C,D]=(0,pe.useState)(0),[_,H]=(0,pe.useState)([]),[Y,Oe]=(0,pe.useState)(""),[He,W]=(0,pe.useState)(!1),[Z,xe]=(0,pe.useState)(null),[at,Fe]=(0,pe.useState)(!1);function _e({provider:x,address:A,index:k,signature:ne}){be(x),p(Po({index:k,loginType:"ledger"})),ne&&m.setTokenLoginInfo({signature:ne,address:A}),p(J({address:A,loginMethod:"ledger"})),Le({callbackRoute:e,onLoginRedirect:i,options:{address:A,signature:ne}})}let Ce=(x,A="")=>{let{errorMessage:k}=mt(x);k&&v(`${k}.${A}`),w(!1),console.warn(x),p(Wr(null))};function ct(x){return I(this,null,function*(){if(Z==null)return!1;let{index:A}=Z;if(d&&!f&&(f=yield m.getNativeAuthLoginToken(),!f)){console.warn("Fetching block failed. Login cancelled.");return}if(f){m.setLoginToken(f);try{let k=yield x.tokenLogin({token:s.Buffer.from(`${f}{}`),addressIndex:A});_e({address:k.address,provider:x,index:A,signature:k.signature.hex()})}catch(k){Ce(k,". Update MultiversX App to continue.")}}else try{let k=yield x.login({addressIndex:A});_e({address:k,provider:x,index:A})}catch(k){return Ce(k),!1}return!0})}function B(){return I(this,null,function*(){try{if(w(!0),Z==null)return!1;p(l?bo(Z):Wr(E(h({},Z),{version:Y,hasContractDataEnabled:He})));let x=new pr.HWProvider;if(!(yield x.init()))return v(it),console.warn(it),!1;w(!1),yield ct(x)}catch(x){let{errorMessage:A}=mt(x);A&&v(A),console.warn(it,x)}finally{w(!1)}return Fe(!1),!0})}function G(){return I(this,null,function*(){try{if(w(!0),!(yield L.init())){v(it),console.warn(it),w(!1);return}let A=yield L.getAccounts(C,r),k=yield go(L);Oe(k.version),W(k.dataEnabled),H(A),w(!1)}catch(x){let{errorMessage:A,defaultErrorMessage:k}=mt(x);v(A!=null?A:k),console.error("error",x),w(!1)}})}function ce(){return I(this,null,function*(){if(g)throw new Error(ze);v("");try{if(w(!0),l!=null){let x=new pr.HWProvider;if(!(yield x.init())||!Z){console.warn(it);return}let k=yield x.login({addressIndex:Z.index.valueOf()});if(be(x),!k){w(!1),console.warn("Login cancelled.");return}p(J({address:k,loginMethod:"ledger"})),Le({callbackRoute:e,onLoginRedirect:i})}else(_==null?void 0:_.length)>0||(yield G()),Fe(!0)}catch(x){console.error("error ",x);let{defaultErrorMessage:A}=mt();v(A)}finally{w(!1)}})}function U(x){xe(x)}function j(){xe(null),D(x=>x+1)}function Pe(){xe(null),D(x=>x===0?0:x-1)}(0,pe.useEffect)(()=>{G()},[C]);let R=Boolean(T);return[ce,{loginFailed:R,isLoggedIn:g&&!R,error:T,isLoading:b&&!R},{accounts:_,showAddressList:at,startIndex:C,selectedAddress:Z,version:Y,contractDataEnabled:He,onGoToPrevPage:Pe,onGoToNextPage:j,onSelectAddress:U,onConfirmSelectedAddress:B}]}n();var Me=require("react"),ys=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");n();var ur=require("react");function st(e,t=[]){let r=(0,ur.useRef)(!0);(0,ur.useEffect)(()=>{r.current?r.current=!1:e()},t)}K();Q();q();Qe();var hs=({logoutRoute:e,callbackRoute:t,nativeAuth:r,token:o,onLoginRedirect:i})=>{let l=ae(),p=15e3,g=r!=null,d=Te(r),m=o,[f,T]=(0,Me.useState)(""),[v,b]=(0,Me.useState)(""),{provider:w}=rs(),L=M(Ui),C=M(tr),D=(0,Me.useRef)(w),_=(0,Me.useRef)(!0),H,Y=Boolean(v),Oe=!Y,He=Y?`${C}?wallet-connect=${encodeURIComponent(v)}`:"";(0,Me.useEffect)(()=>{xe();let B=setInterval(()=>{xe()},p);return()=>clearInterval(B)},[w]),st(()=>{!o||_e()},[o]),st(()=>{D.current=w},[w]);let W=()=>{lr(e)},Z=()=>{_.current=!1};function xe(){return I(this,null,function*(){var ce,U;if(w==null||!ye("walletconnect")||!Boolean((U=(ce=D.current)==null?void 0:ce.walletConnector)==null?void 0:U.connected))return;let G={method:"heartbeat",params:{}};try{yield D.current.sendCustomMessage(G)}catch(j){console.error("Connection lost",j),W()}})}function at(){return I(this,null,function*(){var B;try{let G=D.current;if(ee()||G==null||!ye("walletconnect"))return;if(!_.current){try{yield(B=D.current)==null?void 0:B.logout()}catch(x){console.warn("Unable to logout")}return}let U=yield G.getAddress();if(!U){console.warn("Login cancelled.");return}let j=yield G.getSignature(),Pe={address:U,loginMethod:"walletconnect"},R={logoutRoute:e,loginType:"walletConnect",callbackRoute:t!=null?t:window.location.href};l(Ft(R)),j&&d.setTokenLoginInfo({signature:j,address:U}),l(J(Pe)),G.walletConnector.on("heartbeat",()=>{clearInterval(H),H=setInterval(()=>{console.log("Maiar Wallet Connection Lost"),W(),clearInterval(H)},15e4)}),Le({callbackRoute:t,onLoginRedirect:i,options:{address:U,signature:j}})}catch(G){T("Invalid address"),console.error(G)}})}function Fe(B=!0){return I(this,null,function*(){var j,Pe;let G=B&&!v;if(!L||((Pe=(j=D==null?void 0:D.current)==null?void 0:j.isInitialized)==null?void 0:Pe.call(j))&&!G)return;let ce={onClientLogin:at,onClientLogout:W},U=new ys.WalletConnectProvider(L,ce);yield U.init(),_.current=!0,be(U),D.current=U,B&&_e()})}function _e(){return I(this,null,function*(){var U;if(!L)return;let B=yield(U=D.current)==null?void 0:U.login();if(!Boolean(B))return;if(g&&!m&&(m=yield d.getNativeAuthLoginToken(),!m)){console.warn("Fetching block failed. Login cancelled.");return}if(!m){b(B);return}d.setLoginToken(m);let ce=`${B}&token=${m}`;b(ce)})}let Ce=Boolean(f),ct=ee();return[Fe,{error:f,loginFailed:Ce,isLoading:Oe&&!Ce,isLoggedIn:ct&&!Ce},{uriDeepLink:He,walletConnectUri:v,cancelLogin:Z}]};n();var he=require("react"),xs=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");K();Q();q();Qe();var Ss=({callbackRoute:e,logoutRoute:t,token:r,nativeAuth:o,onLoginRedirect:i})=>{let l=ae(),p=o!=null,g=Te(o),d=r,[m,f]=(0,he.useState)(""),[T,v]=(0,he.useState)(""),[b,w]=(0,he.useState)(!0),[L,C]=(0,he.useState)([]),D=te(),_=M(Bi),H=M($i),Y=M(Vi),Oe=M(an),He=M(tr),W=(0,he.useRef)(D),Z=(0,he.useRef)(!0),xe=["erd_cancelAction"],at=b?"":`${He}?wallet-connect=${encodeURIComponent(T)}`;st(()=>{!r||U()},[r]),st(()=>{W.current=D},[D]),(0,he.useEffect)(()=>{w(!Boolean(T))},[T]);let Fe=()=>{lr(t)},_e=R=>{console.log("wc2 session event: ",R)},Ce=()=>{Z.current=!1};function ct(){return I(this,null,function*(){var R;try{let x=W.current;if(ee()||x==null||!ye("walletconnectv2"))return;if(!Z.current){try{yield(R=W.current)==null?void 0:R.logout()}catch(Yc){console.warn("Unable to logout")}return}let k=yield x.getAddress();if(!k){console.warn("Login cancelled.");return}let ne=yield x.getSignature(),dr={address:k,loginMethod:"walletconnectv2"},ws={logoutRoute:t,loginType:"walletconnectv2",callbackRoute:e!=null?e:window.location.href};l(Ft(ws)),ne&&g.setTokenLoginInfo({signature:ne,address:k}),l(J(dr)),Le({callbackRoute:e,onLoginRedirect:i,options:{address:k,signature:ne}})}catch(x){f("Invalid address"),console.error(x)}})}function B(R=!0){return I(this,null,function*(){if(!H||!_){f("Invalid WalletConnect setup");return}let x={onClientLogin:ct,onClientLogout:Fe,onClientEvent:_e},A=new xs.WalletConnectV2Provider(x,Oe,_,H,Y);yield A.init(),Z.current=!0,be(A),C(A.pairings),W.current=A,R&&U()})}function G(R){return I(this,null,function*(){var x,A,k;if(!_||!H){f("Invalid WalletConnect setup");return}if(!R||!R.topic){f("Expired connection");return}try{let{approval:ne}=yield(x=W.current)==null?void 0:x.connect({topic:R.topic,methods:xe});if(p&&!d&&(d=yield g.getNativeAuthLoginToken(),!d)){console.warn("Fetching block failed. Login cancelled.");return}d&&g.setLoginToken(d);try{yield(A=W.current)==null?void 0:A.login({approval:ne,token:d})}catch(dr){f("User rejected existing connection proposal"),w(!0),yield B()}}catch(ne){console.error("Unable to connect to existing session",ne),f("Unable to connect to existing session")}finally{C((k=W.current)==null?void 0:k.pairings)}})}function ce(R){return I(this,null,function*(){var x,A;try{R&&(yield(x=W.current)==null?void 0:x.logout({topic:R}))}catch(k){console.error("Unable to remove existing pairing",k),f("Unable to remove existing pairing")}finally{C((A=W.current)==null?void 0:A.pairings)}})}function U(){return I(this,null,function*(){var R,x;if(!_||!H){f("Invalid WalletConnect setup");return}try{let{uri:A,approval:k}=yield(R=W.current)==null?void 0:R.connect({methods:xe});if(!Boolean(A))return;if(v(A),p&&!d&&(d=yield g.getNativeAuthLoginToken(),!d)){console.warn("Fetching block failed. Login cancelled.");return}d&&g.setLoginToken(d);try{yield(x=W.current)==null?void 0:x.login({approval:k,token:d})}catch(dr){f("User rejected connection proposal"),w(!0),yield B()}}catch(A){console.error("Unable to connect",A)}})}let j=Boolean(m),Pe=ee();return[B,{error:m,loginFailed:j,isLoading:b&&!j,isLoggedIn:Pe&&!j},{uriDeepLink:at,walletConnectUri:T,cancelLogin:Ce,connectExisting:G,removeExistingPairing:ce,wcPairings:L}]};0&&(module.exports={useExtensionLogin,useLedgerLogin,useWalletConnectLogin,useWalletConnectV2Login,useWebWalletLogin});
1
+ "use strict";var Is=Object.create;var lt=Object.defineProperty,bs=Object.defineProperties,Ls=Object.getOwnPropertyDescriptor,ks=Object.getOwnPropertyDescriptors,Es=Object.getOwnPropertyNames,Lt=Object.getOwnPropertySymbols,Cs=Object.getPrototypeOf,mr=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable;var wn=(e,t,r)=>t in e?lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t)=>{for(var r in t||(t={}))mr.call(t,r)&&wn(e,r,t[r]);if(Lt)for(var r of Lt(t))vn.call(t,r)&&wn(e,r,t[r]);return e},E=(e,t)=>bs(e,ks(t));var kt=(e,t)=>{var r={};for(var o in e)mr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Lt)for(var o of Lt(e))t.indexOf(o)<0&&vn.call(e,o)&&(r[o]=e[o]);return r};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var Et=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Fe=(e,t)=>{for(var r in t)lt(e,r,{get:t[r],enumerable:!0})},An=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Es(t))!mr.call(e,i)&&i!==r&&lt(e,i,{get:()=>t[i],enumerable:!(o=Ls(t,i))||o.enumerable});return e};var P=(e,t,r)=>(r=e!=null?Is(Cs(e)):{},An(t||!e||!e.__esModule?lt(r,"default",{value:e,enumerable:!0}):r,e)),pt=e=>An(lt({},"__esModule",{value:!0}),e);var A=(e,t,r)=>new Promise((o,i)=>{var l=d=>{try{g(r.next(d))}catch(m){i(m)}},p=d=>{try{g(r.throw(d))}catch(m){i(m)}},g=d=>d.done?o(d.value):Promise.resolve(d.value).then(l,p);g((r=r.apply(e,t)).next())});var Ln=Et(Ct=>{"use strict";n();Ct.byteLength=Ds;Ct.toByteArray=Rs;Ct.fromByteArray=Fs;var le=[],ne=[],Ps=typeof Uint8Array!="undefined"?Uint8Array:Array,fr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_e=0,In=fr.length;_e<In;++_e)le[_e]=fr[_e],ne[fr.charCodeAt(_e)]=_e;var _e,In;ne["-".charCodeAt(0)]=62;ne["_".charCodeAt(0)]=63;function bn(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function Ds(e){var t=bn(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Ns(e,t,r){return(t+r)*3/4-r}function Rs(e){var t,r=bn(e),o=r[0],i=r[1],l=new Ps(Ns(e,o,i)),p=0,g=i>0?o-4:o,d;for(d=0;d<g;d+=4)t=ne[e.charCodeAt(d)]<<18|ne[e.charCodeAt(d+1)]<<12|ne[e.charCodeAt(d+2)]<<6|ne[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=ne[e.charCodeAt(d)]<<2|ne[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=ne[e.charCodeAt(d)]<<10|ne[e.charCodeAt(d+1)]<<4|ne[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Ms(e){return le[e>>18&63]+le[e>>12&63]+le[e>>6&63]+le[e&63]}function Os(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(Ms(o));return i.join("")}function Fs(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,g=r-o;p<g;p+=l)i.push(Os(e,p,p+l>g?g:p+l));return o===1?(t=e[r-1],i.push(le[t>>2]+le[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(le[t>>10]+le[t>>4&63]+le[t<<2&63]+"=")),i.join("")}});var kn=Et(Tr=>{n();Tr.read=function(e,t,r,o,i){var l,p,g=i*8-o-1,d=(1<<g)-1,m=d>>1,f=-7,T=r?i-1:0,b=r?-1:1,L=e[t+T];for(T+=b,l=L&(1<<-f)-1,L>>=-f,f+=g;f>0;l=l*256+e[t+T],T+=b,f-=8);for(p=l&(1<<-f)-1,l>>=-f,f+=o;f>0;p=p*256+e[t+T],T+=b,f-=8);if(l===0)l=1-m;else{if(l===d)return p?NaN:(L?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-m}return(L?-1:1)*p*Math.pow(2,l-o)};Tr.write=function(e,t,r,o,i,l){var p,g,d,m=l*8-i-1,f=(1<<m)-1,T=f>>1,b=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,L=o?0:l-1,S=o?1:-1,I=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(g=isNaN(t)?1:0,p=f):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+T>=1?t+=b/d:t+=b*Math.pow(2,1-T),t*d>=2&&(p++,d/=2),p+T>=f?(g=0,p=f):p+T>=1?(g=(t*d-1)*Math.pow(2,i),p=p+T):(g=t*Math.pow(2,T-1)*Math.pow(2,i),p=0));i>=8;e[r+L]=g&255,L+=S,g/=256,i-=8);for(p=p<<i|g,m+=i;m>0;e[r+L]=p&255,L+=S,p/=256,m-=8);e[r+L-S]|=I*128}});var $n=Et(qe=>{"use strict";n();var yr=Ln(),je=kn(),En=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;qe.Buffer=u;qe.SlowBuffer=Ws;qe.INSPECT_MAX_BYTES=50;var Pt=2147483647;qe.kMaxLength=Pt;u.TYPED_ARRAY_SUPPORT=_s();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function _s(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function ye(e){if(e>Pt)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return wr(e)}return Dn(e,t,r)}u.poolSize=8192;function Dn(e,t,r){if(typeof e=="string")return Bs(e,t);if(ArrayBuffer.isView(e))return $s(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(pe(e,ArrayBuffer)||e&&pe(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(pe(e,SharedArrayBuffer)||e&&pe(e.buffer,SharedArrayBuffer)))return xr(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=Vs(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return Dn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Nn(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Us(e,t,r){return Nn(e),e<=0?ye(e):t!==void 0?typeof r=="string"?ye(e).fill(t,r):ye(e).fill(t):ye(e)}u.alloc=function(e,t,r){return Us(e,t,r)};function wr(e){return Nn(e),ye(e<0?0:vr(e)|0)}u.allocUnsafe=function(e){return wr(e)};u.allocUnsafeSlow=function(e){return wr(e)};function Bs(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Rn(e,t)|0,o=ye(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function hr(e){for(var t=e.length<0?0:vr(e.length)|0,r=ye(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function $s(e){if(pe(e,Uint8Array)){var t=new Uint8Array(e);return xr(t.buffer,t.byteOffset,t.byteLength)}return hr(e)}function xr(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function Vs(e){if(u.isBuffer(e)){var t=vr(e.length)|0,r=ye(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Ar(e.length)?ye(0):hr(e);if(e.type==="Buffer"&&Array.isArray(e.data))return hr(e.data)}function vr(e){if(e>=Pt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Pt.toString(16)+" bytes");return e|0}function Ws(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(pe(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),pe(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(pe(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function Rn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||pe(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Sr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Bn(e).length;default:if(i)return o?-1:Sr(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=Rn;function Hs(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Qs(this,t,r);case"utf8":case"utf-8":return On(this,t,r);case"ascii":return Xs(this,t,r);case"latin1":case"binary":return Js(this,t,r);case"base64":return Ys(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ea(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function Ue(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)Ue(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)Ue(this,r,r+3),Ue(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)Ue(this,r,r+7),Ue(this,r+1,r+6),Ue(this,r+2,r+5),Ue(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?On(this,0,t):Hs.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=qe.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};En&&(u.prototype[En]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(pe(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,g=o-r,d=Math.min(p,g),m=this.slice(i,l),f=t.slice(r,o),T=0;T<d;++T)if(m[T]!==f[T]){p=m[T],g=f[T];break}return p<g?-1:g<p?1:0};function Mn(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Ar(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:Cn(e,t,r,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Cn(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function Cn(e,t,r,o,i){var l=1,p=e.length,g=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,g/=2,r/=2}function d(L,S){return l===1?L[S]:L.readUInt16BE(S*l)}var m;if(i){var f=-1;for(m=r;m<p;m++)if(d(e,m)===d(t,f===-1?0:m-f)){if(f===-1&&(f=m),m-f+1===g)return f*l}else f!==-1&&(m-=m-f),f=-1}else for(r+g>p&&(r=p-g),m=r;m>=0;m--){for(var T=!0,b=0;b<g;b++)if(d(e,m+b)!==d(t,b)){T=!1;break}if(T)return m}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return Mn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return Mn(this,t,r,o,!1)};function Gs(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var g=parseInt(t.substr(p*2,2),16);if(Ar(g))return p;e[r+p]=g}return p}function js(e,t,r,o){return Dt(Sr(t,e.length-r),e,r,o)}function qs(e,t,r,o){return Dt(na(t),e,r,o)}function zs(e,t,r,o){return Dt(Bn(t),e,r,o)}function Ks(e,t,r,o){return Dt(oa(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return Gs(this,t,r,o);case"utf8":case"utf-8":return js(this,t,r,o);case"ascii":case"latin1":case"binary":return qs(this,t,r,o);case"base64":return zs(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ks(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ys(e,t,r){return t===0&&r===e.length?yr.fromByteArray(e):yr.fromByteArray(e.slice(t,r))}function On(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,g=l>239?4:l>223?3:l>191?2:1;if(i+g<=r){var d,m,f,T;switch(g){case 1:l<128&&(p=l);break;case 2:d=e[i+1],(d&192)===128&&(T=(l&31)<<6|d&63,T>127&&(p=T));break;case 3:d=e[i+1],m=e[i+2],(d&192)===128&&(m&192)===128&&(T=(l&15)<<12|(d&63)<<6|m&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:d=e[i+1],m=e[i+2],f=e[i+3],(d&192)===128&&(m&192)===128&&(f&192)===128&&(T=(l&15)<<18|(d&63)<<12|(m&63)<<6|f&63,T>65535&&T<1114112&&(p=T))}}p===null?(p=65533,g=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=g}return Zs(o)}var Pn=4096;function Zs(e){var t=e.length;if(t<=Pn)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=Pn));return r}function Xs(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function Js(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function Qs(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=ia[e[l]];return i}function ea(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function V(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||V(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||V(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||V(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||V(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||V(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||V(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||V(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||V(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||V(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||V(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||V(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||V(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||V(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||V(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||V(t,4,this.length),je.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||V(t,4,this.length),je.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||V(t,8,this.length),je.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||V(t,8,this.length),je.read(this,t,!1,52,8)};function Y(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;Y(this,t,r,o,l,0)}var p=1,g=0;for(this[r]=t&255;++g<o&&(p*=256);)this[r+g]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;Y(this,t,r,o,l,0)}var p=o-1,g=1;for(this[r+p]=t&255;--p>=0&&(g*=256);)this[r+p]=t/g&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||Y(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||Y(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||Y(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||Y(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||Y(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);Y(this,t,r,o,l-1,-l)}var p=0,g=1,d=0;for(this[r]=t&255;++p<o&&(g*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/g>>0)-d&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);Y(this,t,r,o,l-1,-l)}var p=o-1,g=1,d=0;for(this[r+p]=t&255;--p>=0&&(g*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/g>>0)-d&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||Y(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||Y(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||Y(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||Y(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||Y(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function Fn(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _n(e,t,r,o,i){return t=+t,r=r>>>0,i||Fn(e,t,r,4,34028234663852886e22,-34028234663852886e22),je.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return _n(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return _n(this,t,r,!1,o)};function Un(e,t,r,o,i){return t=+t,r=r>>>0,i||Fn(e,t,r,8,17976931348623157e292,-17976931348623157e292),je.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return Un(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return Un(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var g=u.isBuffer(t)?t:u.from(t,i),d=g.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=g[p%d]}return this};var ta=/[^+/0-9A-Za-z-_]/g;function ra(e){if(e=e.split("=")[0],e=e.trim().replace(ta,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Sr(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function na(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function oa(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function Bn(e){return yr.toByteArray(ra(e))}function Dt(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function pe(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Ar(e){return e!==e}var ia=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var jn=Et((rl,Gn)=>{n();var _=Gn.exports={},ue,de;function Ir(){throw new Error("setTimeout has not been defined")}function br(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ue=setTimeout:ue=Ir}catch(e){ue=Ir}try{typeof clearTimeout=="function"?de=clearTimeout:de=br}catch(e){de=br}})();function Vn(e){if(ue===setTimeout)return setTimeout(e,0);if((ue===Ir||!ue)&&setTimeout)return ue=setTimeout,setTimeout(e,0);try{return ue(e,0)}catch(t){try{return ue.call(null,e,0)}catch(r){return ue.call(this,e,0)}}}function sa(e){if(de===clearTimeout)return clearTimeout(e);if((de===br||!de)&&clearTimeout)return de=clearTimeout,clearTimeout(e);try{return de(e)}catch(t){try{return de.call(null,e)}catch(r){return de.call(this,e)}}}var he=[],ze=!1,Be,Nt=-1;function aa(){!ze||!Be||(ze=!1,Be.length?he=Be.concat(he):Nt=-1,he.length&&Wn())}function Wn(){if(!ze){var e=Vn(aa);ze=!0;for(var t=he.length;t;){for(Be=he,he=[];++Nt<t;)Be&&Be[Nt].run();Nt=-1,t=he.length}Be=null,ze=!1,sa(e)}}_.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];he.push(new Hn(e,t)),he.length===1&&!ze&&Vn(Wn)};function Hn(e,t){this.fun=e,this.array=t}Hn.prototype.run=function(){this.fun.apply(null,this.array)};_.title="browser";_.browser=!0;_.env={};_.argv=[];_.version="";_.versions={};function xe(){}_.on=xe;_.addListener=xe;_.once=xe;_.off=xe;_.removeListener=xe;_.removeAllListeners=xe;_.emit=xe;_.prependListener=xe;_.prependOnceListener=xe;_.listeners=function(e){return[]};_.binding=function(e){throw new Error("process.binding is not supported")};_.cwd=function(){return"/"};_.chdir=function(e){throw new Error("process.chdir is not supported")};_.umask=function(){return 0}});var s,a,nl,n=x(()=>{s=P($n()),a=P(jn()),nl=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object)});var Ke,ut=x(()=>{"use strict";n();Ke="Action not allowed. User is logged in. Call logout() first"});var qn=x(()=>{"use strict";n()});var zn=x(()=>{"use strict";n()});var Kn=x(()=>{"use strict";n()});var q=x(()=>{"use strict";n()});var Yn=x(()=>{"use strict";n()});var Zn=x(()=>{"use strict";n()});var z=x(()=>{"use strict";n()});var Xn=x(()=>{"use strict";n()});var Jn=x(()=>{"use strict";n()});var oe=x(()=>{"use strict";n();qn();zn();Kn();q();Yn();Zn();z();Xn();Jn()});var Lr,Qn,vl,eo,Al,to,Il,bl,Ll,ro=x(()=>{"use strict";n();oe();Lr={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Qn,egldLabel:vl}=Lr["devnet"],{chainId:eo,egldLabel:Al}=Lr["testnet"],{chainId:to,egldLabel:Il}=Lr["mainnet"],bl={["devnet"]:Qn,["testnet"]:eo,["mainnet"]:to},Ll={[Qn]:"devnet",[eo]:"testnet",[to]:"mainnet"}});var kr,Er=x(()=>{"use strict";n();kr={36864:{code:"codeSuccess",message:"Success"},27013:{code:"ERR_USER_DENIED",message:"Rejected by user"},27904:{code:"ERR_UNKNOWN_INSTRUCTION",message:"Unknown instruction"},28160:{code:"ERR_WRONG_CLA",message:"Wrong CLA"},28161:{code:"ERR_INVALID_ARGUMENTS",message:"Invalid arguments"},28162:{code:"ERR_INVALID_MESSAGE",message:"Invalid message"},28163:{code:"ERR_INVALID_P1",message:"Invalid P1"},28164:{code:"ERR_MESSAGE_TOO_LONG",message:"Message too long"},28165:{code:"ERR_RECEIVER_TOO_LONG",message:"Receiver too long"},28166:{code:"ERR_AMOUNT_TOO_LONG",message:"Amount too long"},28167:{code:"ERR_CONTRACT_DATA_DISABLED",message:"Contract data disabled in app options"},28168:{code:"ERR_MESSAGE_INCOMPLETE",message:"Message incomplete"},28176:{code:"ERR_SIGNATURE_FAILED",message:"Signature failed"},28169:{code:"ERR_WRONG_TX_VERSION",message:"Wrong TX version"},28170:{code:"ERR_NONCE_TOO_LONG",message:"Nonce too long"},28171:{code:"ERR_INVALID_AMOUNT",message:"Invalid amount"},28172:{code:"ERR_INVALID_FEE",message:"Invalid fee"},28173:{code:"ERR_PRETTY_FAILED",message:"Pretty failed"},28174:{code:"ERR_DATA_TOO_LONG",message:"Data too long"},28175:{code:"ERR_WRONG_TX_OPTIONS",message:"Invalid transaction options"},28177:{code:"ERR_SIGN_TX_DEPRECATED",message:"Regular transaction signing is deprecated in this version. Use hash signing."}}});var no=x(()=>{"use strict";n()});var oo,Cr=x(()=>{"use strict";n();oo="transaction-status-toast-id"});var Pr,Dr,io,so,Rt,ao,Ye,U=x(()=>{"use strict";n();ut();ro();Er();no();Cr();Pr=5e4,Dr=1e9,io=1,so=1,Rt="logout",ao="login",Ye="0"});var Mr,W,Z,K=x(()=>{"use strict";n();Mr=require("@reduxjs/toolkit");U();W=(0,Mr.createAction)(Rt),Z=(0,Mr.createAction)(ao,e=>({payload:e}))});var Xe,Ot=x(()=>{"use strict";n();Xe=()=>Date.now()/1e3});var To=x(()=>{"use strict";n()});var yo=x(()=>{"use strict";n()});var Or=x(()=>{"use strict";n();Ot();To();yo()});var _r={};Fe(_r,{getItem:()=>pa,localStorageKeys:()=>ge,removeItem:()=>ua,setItem:()=>la});var ge,Fr,la,pa,ua,Je=x(()=>{"use strict";n();Or();ge={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Fr=typeof localStorage!="undefined",la=({key:e,data:t,expires:r})=>{!Fr||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},pa=e=>{if(!Fr)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Xe()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},ua=e=>{!Fr||localStorage.removeItem(String(e))}});var Ur={};Fe(Ur,{clear:()=>wo,getItem:()=>xo,removeItem:()=>So,setItem:()=>ho,storage:()=>da});var ho,xo,So,wo,da,vo=x(()=>{"use strict";n();ho=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},xo=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},So=e=>sessionStorage.removeItem(String(e)),wo=()=>sessionStorage.clear(),da={setItem:ho,getItem:xo,removeItem:So,clear:wo}});var Ae,Qe=x(()=>{"use strict";n();Je();vo();Ae={session:Ur,local:_r}});var $r,Ao,Io,Ft,Br,bo,Vr,ip,Wr,sp,Hr,Lo,ap,cp,lp,pp,ko,Gr=x(()=>{"use strict";n();$r=require("@multiversx/sdk-core"),Ao=require("@reduxjs/toolkit"),Io=require("redux-persist");U();Qe();Je();K();Ft={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Ye},Br={address:"",websocketEvent:null,accounts:{"":Ft},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},bo=(0,Ao.createSlice)({name:"accountInfoSlice",initialState:Br,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new $r.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Ft},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(W,()=>(Ae.local.removeItem(ge.loginExpiresAt),Br)),e.addCase(Z,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new $r.Address(o).hex()}),e.addCase(Io.REHYDRATE,(t,r)=>{var m;if(!((m=r.payload)!=null&&m.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:g}=o;t.address=i,t.shard=l;let d=p&&i in p;t.accounts=d?p:Br.accounts,t.publicKey=g})}}),{setAccount:Vr,setAddress:ip,setAccountNonce:Wr,setAccountShard:sp,setLedgerAccount:Hr,updateLedgerAccount:Lo,setWalletConnectAccount:ap,setIsAccountLoading:cp,setAccountLoadingError:lp,setWebsocketEvent:pp}=bo.actions,ko=bo.reducer});function dt(){return new Date().setHours(new Date().getHours()+24)}function gt(e){Ae.local.setItem({key:ge.loginExpiresAt,data:e,expires:e})}var jr=x(()=>{"use strict";n();Qe();Je()});var Co,Eo,Po,Sp,_t,Do,Ut,wp,No,Ro,vp,Mo,qr=x(()=>{"use strict";n();Co=require("@reduxjs/toolkit");jr();q();K();Eo={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,isLoginSessionInvalid:!1},Po=(0,Co.createSlice)({name:"loginInfoSlice",initialState:Eo,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload}},extraReducers:e=>{e.addCase(W,()=>Eo),e.addCase(Z,(t,r)=>{t.loginMethod=r.payload.loginMethod,gt(dt())})}}),{setLoginMethod:Sp,setWalletConnectLogin:_t,setLedgerLogin:Do,setTokenLogin:Ut,setTokenLoginSignature:wp,setWalletLogin:No,invalidateLoginSession:Ro,setLogoutRoute:vp}=Po.actions,Mo=Po.reducer});var Fo,Oo,_o,Lp,kp,Ep,Cp,Uo,zr=x(()=>{"use strict";n();Fo=require("@reduxjs/toolkit");K();Oo={},_o=(0,Fo.createSlice)({name:"modalsSlice",initialState:Oo,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(W,()=>Oo)}}),{setTxSubmittedModal:Lp,setNotificationModal:kp,clearTxSubmittedModal:Ep,clearNotificationModal:Cp}=_o.actions,Uo=_o.reducer});var Bo,$o,Bt,$t=x(()=>{"use strict";n();Bo=!1,$o=(e=!0)=>{Bo=e},Bt=(e,t=0)=>{Bo||setTimeout(()=>{window.location.href=e,window.location.assign(e)},t)}});function Ie({callbackRoute:e,onLoginRedirect:t,options:r}){let o=Boolean(e),i=typeof t=="function",l=i?0:ga;o&&e!=null&&setTimeout(()=>{if(i)return t(e,r);window.location.pathname.includes(e)||Bt(e)},l)}var ga,Vo=x(()=>{"use strict";n();$t();ga=200});function Kr(e){return e[Math.floor(Math.random()*e.length)]}var Wo=x(()=>{"use strict";n()});function mt(e){let t=null;if((e==null?void 0:e.statusCode)in kr){let r=e==null?void 0:e.statusCode,{message:o}=kr[r];t=Ta.includes(r)?Ho:o}return{errorMessage:t,defaultErrorMessage:Ho}}var Ho,ma,fa,Ta,Go=x(()=>{"use strict";n();Er();Ho="Check if MultiversX app is open on Ledger",ma=28161,fa=28160,Ta=[ma,fa]});var et=x(()=>{"use strict";n();Vo();Wo();Go()});var jo,qo,Yr,ya,zo,Hp,Gp,Ko,Zr=x(()=>{"use strict";n();jo=require("@reduxjs/toolkit"),qo=P(require("lodash.omit"));et();Yr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},ya={network:Yr,chainID:"-1"},zo=(0,jo.createSlice)({name:"appConfig",initialState:ya,reducers:{initializeNetworkConfig:(e,t)=>{let r=Kr(t.payload.walletConnectBridgeAddresses),o=Kr(t.payload.walletConnectV2RelayAddresses),i=(0,qo.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=E(h(h({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Hp,setChainID:Gp}=zo.actions,Ko=zo.reducer});var Yo,Xr,Zo,Zp,Xp,Jp,Vt,Wt=x(()=>{"use strict";n();Yo=require("@reduxjs/toolkit");oe();K();Xr={isSigning:!1,signedSessions:{}},Zo=(0,Yo.createSlice)({name:"signedMessageInfoSliceState",initialState:Xr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;return E(h({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:o.status==="pending",signedSessions:E(h({},e.signedSessions),{[r]:o})})},setSignSessionState:(e,t)=>h(h({},e),t.payload),clearSignedMessageInfo:()=>Xr},extraReducers:e=>{e.addCase(W,()=>Xr)}}),{setSignSession:Zp,clearSignedMessageInfo:Xp,setSignSessionState:Jp}=Zo.actions,Vt=Zo.reducer});var Jo,Qo,Xo,ei,ha,xa,su,au,cu,lu,Ht,Gt=x(()=>{"use strict";n();Jo=require("@reduxjs/toolkit"),Qo=require("redux-persist");Cr();oe();Ot();K();Xo={customToasts:[],transactionToasts:[],failTransactionToast:null},ei=(0,Jo.createSlice)({name:"toastsSlice",initialState:Xo,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(E(h({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Xe(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=E(h({},t.payload),{toastId:oo})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(W,()=>Xo),e.addCase(Qo.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:ha,removeCustomToast:xa,addTransactionToast:su,removeTransactionToast:au,addFailTransactionToast:cu,removeFailTransactionToast:lu}=ei.actions,Ht=ei.reducer});var ti,Qr,en,tn,Sa,Jr,ri,gu,mu,fu,jt,qt=x(()=>{"use strict";n();ti=require("@reduxjs/toolkit");K();Qr="Transaction failed",en="Transaction successful",tn="Processing transaction",Sa="Transaction submitted",Jr={},ri=(0,ti.createSlice)({name:"transactionsInfo",initialState:Jr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||Qr,successMessage:(o==null?void 0:o.successMessage)||en,processingMessage:(o==null?void 0:o.processingMessage)||tn,submittedMessage:(o==null?void 0:o.submittedMessage)||Sa,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Jr},extraReducers:e=>{e.addCase(W,()=>Jr)}}),{clearTransactionsInfo:gu,setTransactionsDisplayInfo:mu,clearTransactionsInfoForSessionId:fu}=ri.actions,jt=ri.reducer});function ni(e){return e!=null&&(Ca(e)||Ra(e))}function zt(e){return e!=null&&(Pa(e)||Ma(e))}function Kt(e){return e!=null&&(Da(e)||Oa(e))}function oi(e){return e!=null&&Na(e)}function Ca(e){return e!=null&&va.includes(e)}function Pa(e){return e!=null&&Aa.includes(e)}function Da(e){return e!=null&&Ia.includes(e)}function Na(e){return e!=null&&ba.includes(e)}function Ra(e){return e!=null&&La.includes(e)}function Ma(e){return e!=null&&ka.includes(e)}function Oa(e){return e!=null&&Ea.includes(e)}var va,Aa,Ia,ba,La,ka,Ea,nn=x(()=>{"use strict";n();q();va=["sent"],Aa=["success"],Ia=["fail","cancelled","timedOut"],ba=["timedOut"],La=["pending"],ka=["success"],Ea=["fail","invalid"]});var ii,si,ft,Fa,ai,Iu,bu,Lu,ku,Eu,Cu,Pu,Du,Nu,Ru,Yt,Zt=x(()=>{"use strict";n();ii=require("@reduxjs/toolkit"),si=require("redux-persist");q();nn();K();ft={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Fa={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},ai=(0,ii.createSlice)({name:"transactionsSlice",initialState:ft,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,m;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p}=t.payload,g=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||Fa;e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:g},((m=e==null?void 0:e.transactionsToSign)==null?void 0:m.sessionId)===r&&(e.transactionsToSign=ft.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=h(h({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var g,d,m,f,T,b;let{sessionId:r,status:o,errorMessage:i,transactionHash:l}=t.payload,p=(d=(g=e.signedTransactions)==null?void 0:g[r])==null?void 0:d.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(I=>I.hash===l?E(h({},I),{status:o,errorMessage:i}):I);let L=(f=(m=e.signedTransactions[r])==null?void 0:m.transactions)==null?void 0:f.every(I=>zt(I.status)),S=(b=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:b.every(I=>Kt(I.status));L&&(e.signedTransactions[r].status="success"),S&&(e.signedTransactions[r].status="fail")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=ft.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=ft.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(W,()=>ft),e.addCase(si.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((g,[d,m])=>{let f=new Date(d),T=new Date;return T.setHours(T.getHours()+5),T-f>0||(g[d]=m),g},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Iu,updateSignedTransactions:bu,setTransactionsToSign:Lu,clearAllTransactionsToSign:ku,clearAllSignedTransactions:Eu,clearSignedTransaction:Cu,clearTransactionToSign:Pu,setSignTransactionsError:Du,setSignTransactionsCancelMessage:Nu,moveTransactionsToSignedState:Ru}=ai.actions,Yt=ai.reducer});var X=x(()=>{"use strict";n();Gr();qr();zr();Zr();Wt();Gt();qt();Zt()});var on=x(()=>{"use strict";n()});var di,ui,gi,nd,od,id,sd,ad,cd,mi,fi=x(()=>{"use strict";n();di=require("@reduxjs/toolkit");K();ui={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},gi=(0,di.createSlice)({name:"dappModalsSlice",initialState:ui,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=h({},t.payload)}},extraReducers:e=>{e.addCase(W,()=>ui)}}),{setDappModalVisibility:nd,setDappModalHeaderVisibility:od,setDappModalFooterVisibility:id,setDappModalHeaderText:sd,setDappModalFooterText:ad,setDappModalConfig:cd}=gi.actions,mi=gi.reducer});var Ti,$a,Va,tt,er=x(()=>{"use strict";n();Ti=require("@reduxjs/toolkit");on();Gr();fi();qr();zr();Zr();Wt();Gt();qt();Zt();$a={["account"]:ko,["dappModal"]:mi,["loginInfo"]:Mo,["modals"]:Uo,["networkConfig"]:Ko,["signedMessageInfo"]:Vt,["toasts"]:Ht,["transactionsInfo"]:jt,["transactions"]:Yt},Va=(e={})=>(0,Ti.combineReducers)(h(h({},$a),e)),tt=Va});var xi={};Fe(xi,{default:()=>Ya});function tr(e,t=[]){return{key:e,version:1,storage:hi.default,blacklist:t}}var Ee,yi,hi,Wa,Ha,Ga,ja,qa,za,Ka,Ya,Si=x(()=>{"use strict";n();Ee=require("redux-persist"),yi=P(require("redux-persist/lib/storage")),hi=P(require("redux-persist/lib/storage/session"));er();X();Wt();Gt();qt();Zt();on();Wa={2:e=>E(h({},e),{networkConfig:Yr})};Ha=tr("sdk-dapp-transactionsInfo"),Ga=tr("sdk-dapp-transactions",["transactionsToSign"]),ja=tr("sdk-dapp-toasts"),qa=tr("sdk-dapp-signedMessageInfo"),za={key:"sdk-dapp-store",version:2,storage:yi.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,Ee.createMigrate)(Wa,{debug:!1})},Ka={["toasts"]:(0,Ee.persistReducer)(ja,Ht),["transactions"]:(0,Ee.persistReducer)(Ga,Yt),["transactionsInfo"]:(0,Ee.persistReducer)(Ha,jt),["signedMessageInfo"]:(0,Ee.persistReducer)(qa,Vt)},Ya=(0,Ee.persistReducer)(za,tt(Ka))});var wi={};Fe(wi,{default:()=>Za});var Za,vi=x(()=>{"use strict";n();er();Za=tt()});var Ai={};Fe(Ai,{default:()=>Ja});var ie,Xa,Ja,Ii=x(()=>{"use strict";n();ie=require("redux-persist"),Xa=[ie.FLUSH,ie.REHYDRATE,ie.PAUSE,ie.PERSIST,ie.PURGE,ie.REGISTER],Ja=Xa});var ki={};Fe(ki,{default:()=>Li});function Li(e){return(0,bi.persistStore)(e)}var bi,Ei=x(()=>{"use strict";n();bi=require("redux-persist")});var Zc={};Fe(Zc,{useExtensionLogin:()=>gs,useLedgerLogin:()=>hs,useWalletConnectLogin:()=>Ss,useWalletConnectV2Login:()=>vs,useWebWalletLogin:()=>Ts});module.exports=pt(Zc);n();n();var hn=require("react"),ds=require("@multiversx/sdk-extension-provider");ut();n();n();var co=require("@multiversx/sdk-extension-provider"),lo=require("@multiversx/sdk-hw-provider"),po=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),uo=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),Nr=require("@multiversx/sdk-web-wallet-provider");U();q();var ca="/dapp/init",Ze=e=>{switch(e==null?void 0:e.constructor){case Nr.WalletProvider:return"wallet";case po.WalletConnectProvider:return"walletconnect";case uo.WalletConnectV2Provider:return"walletconnectv2";case lo.HWProvider:return"ledger";case co.ExtensionProvider:return"extension";case Mt:return"";default:return"extra"}},go=e=>new Nr.WalletProvider(`${e}${ca}`),mo=e=>A(void 0,null,function*(){if(!e.isInitialized())throw new Error("Unable to get version. Provider not initialized");let t=e.hwApp,{contractData:r,version:o}=yield t.getAppConfiguration();return{version:o,dataEnabled:r===so}}),Se=e=>`Unable to perform ${e}, Provider not initialized`,Mt=class{init(){return Promise.resolve(!1)}login(t){throw new Error(Se(`login with options: ${t}`))}logout(t){throw new Error(Se(`logout with options: ${t}`))}getAddress(){throw new Error(Se("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(Se(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(Se(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(Se(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(Se(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(Se(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(Se(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},Rr=new Mt;var fo=Rr;function ve(e){fo=e}function ee(){return fo||Rr}K();n();var Mi=require("react"),rt=require("react-redux");n();var sn=require("@reduxjs/toolkit"),Ni=require("react-redux/lib/utils/Subscription");X();n();var li=P(require("lodash.throttle"));U();n();var ci=P(require("lodash.isequal")),Xt=require("reselect");oe();var y=(0,Xt.createSelectorCreator)(Xt.defaultMemoize,ci.default),Tt=(e,t)=>e!=""&&Boolean(t);X();jr();Qe();Je();var _a=[Rt],Jt=!1,Ua=(0,li.default)(()=>{gt(dt())},5e3),pi=e=>t=>r=>{var d;if(_a.includes(r.type))return t(r);let o=e.getState(),i=Ae.local.getItem(ge.loginExpiresAt);if(!Tt((d=o==null?void 0:o.loginInfo)==null?void 0:d.loginMethod,o==null?void 0:o.account.address))return t(r);if(i==null)return gt(dt());let p=Date.now();return i-p<0&&!Jt?setTimeout(()=>{Jt=!0,e.dispatch(Ro())},1e3):(Jt&&(Jt=!1),Ua()),t(r)};n();n();function Qt(){return typeof sessionStorage!="undefined"}var Ci=Qt()?(Si(),pt(xi)).default:(vi(),pt(wi)).default,Pi=Qt()?(Ii(),pt(Ai)).default:[],Di=Qt()?(Ei(),pt(ki)).default:e=>e;er();var N=(0,sn.configureStore)({reducer:Ci,middleware:e=>e({serializableCheck:{ignoredActions:[...Pi,Wr.type,Vr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(pi)}),Ri=(0,Ni.createSubscription)(N),Od=Di(N),Fd=(0,sn.configureStore)({reducer:tt});var Qa={store:N,subscription:Ri},an=(0,Mi.createContext)(Qa),$d=(0,rt.createStoreHook)(an),se=(0,rt.createDispatchHook)(an),F=(0,rt.createSelectorHook)(an);q();n();n();n();X();var be=e=>e.account,yt=y(be,e=>e.address),nt=y(be,yt,(e,t)=>t in e.accounts?e.accounts[t]:Ft),ec=y(be,nt,(e,t)=>{let i=e,{accounts:r}=i,o=kt(i,["accounts"]);return E(h({},o),{account:t})}),Gd=y(nt,e=>e.balance),tc=y(nt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),jd=y(be,e=>e.shard),Oi=y(be,e=>e.ledgerAccount),qd=y(be,e=>e.walletConnectAccount),zd=y(be,e=>e.isAccountLoading),Kd=y(be,e=>e.accountLoadingError),rc=y(be,e=>e.websocketEvent);n();var ce=e=>e.loginInfo,Jd=y(ce,e=>e.loginMethod),ht=y(ce,yt,(e,t)=>Tt(e.loginMethod,t)),Qd=y(ce,e=>e.walletConnectLogin),eg=y(ce,e=>e.ledgerLogin),Fi=y(ce,e=>e.walletLogin),tg=y(ce,e=>e.isLoginSessionInvalid),_i=y(ce,e=>e.tokenLogin),rg=y(ce,e=>e.logoutRoute);n();var Ui=e=>e.modals,ig=y(Ui,e=>e.txSubmittedModal),sg=y(Ui,e=>e.notificationModal);n();var $e=e=>e.networkConfig,cn=y($e,e=>e.chainID),Bi=y($e,e=>e.network.walletConnectBridgeAddress),$i=y($e,e=>e.network.walletConnectV2RelayAddress),Vi=y($e,e=>e.network.walletConnectV2ProjectId),Wi=y($e,e=>e.network.walletConnectV2Options),rr=y($e,e=>e.network.walletConnectDeepLink),Ce=y($e,e=>e.network),nc=y(Ce,e=>e.apiAddress),Hi=y(Ce,e=>e.explorerAddress),oc=y(Ce,e=>e.egldLabel);n();var ln=e=>e.signedMessageInfo,ug=y(ln,e=>e.isSigning),dg=y(ln,e=>e.errorMessage),gg=y(ln,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});n();var pn=e=>e.toasts,Tg=y(pn,e=>e.customToasts),yg=y(pn,e=>e.transactionToasts),hg=y(pn,e=>e.failTransactionToast);n();X();var Gi={errorMessage:Qr,successMessage:en,processingMessage:tn},ic=e=>e.transactionsInfo,vg=y(ic,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Gi);n();n();var te=require("@multiversx/sdk-core");U();n();function un(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function ot(e){return atob(e)}function dn(e){var i,l,p;let{data:t}=e,r=un(t!=null?t:"")?te.TransactionPayload.fromEncoded(t):new te.TransactionPayload(t),o=new te.Transaction(h({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new te.Address(e.receiver),sender:new te.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:Pr,gasPrice:(l=e.gasPrice.valueOf())!=null?l:Dr,chainID:e.chainID.valueOf(),version:new te.TransactionVersion((p=e.version)!=null?p:io)},e.options?{options:new te.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new te.Address(e.sender)),o}n();nn();n();var ac=P(require("bignumber.js"));oe();n();n();n();n();var lc=require("@multiversx/sdk-core"),pc=P(require("bignumber.js"));q();n();var zi=require("@multiversx/sdk-core");function cc(e){try{let t=new zi.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function xt(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&cc(e)}n();n();n();var dc=require("@multiversx/sdk-core/out");n();U();n();var Ki=require("@multiversx/sdk-core");oe();n();n();n();n();q();n();n();n();n();n();n();n();var gn="blocks";n();n();n();n();z();n();n();z();n();n();n();var xc=P(require("bignumber.js"));U();n();var hc=require("@multiversx/sdk-core"),mn=P(require("bignumber.js"));U();n();var Tc=P(require("bignumber.js"));n();mn.default.config({ROUNDING_MODE:mn.default.ROUND_FLOOR});n();n();n();U();n();n();n();n();U();n();U();n();var Sc=require("@multiversx/sdk-core");U();n();var St=require("@multiversx/sdk-core"),vc=require("@multiversx/sdk-network-providers");U();n();n();var wc=P(require("bignumber.js"));U();n();U();n();n();n();n();n();U();n();z();var Ic=["reDelegateRewards","claimRewards","unBond"],bc=["wrapEgld","unwrapEgld"],Lc=["unStake"],kc=["unDelegate"];n();n();n();U();n();var Pc=P(require("bignumber.js"));n();n();n();z();n();var Dc=P(require("bignumber.js"));n();n();n();n();z();n();n();n();var Rc=P(require("linkifyjs"));n();U();n();var Mc=P(require("bignumber.js"));n();oe();n();n();q();n();q();n();n();n();z();n();z();n();var Oc=P(require("bignumber.js"));U();z();n();z();n();var Qi=require("react");oe();n();n();z();n();var Fc=require("@multiversx/sdk-core/out"),_c=P(require("bignumber.js"));z();n();z();n();n();q();var Zh=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var es=require("react");oe();n();var Bc=require("react");z();var nx=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var sr=e=>e.transactions,wt=y(sr,e=>e.signedTransactions),Vx=y(sr,e=>e.signTransactionsError),Wx=y(sr,e=>e.signTransactionsCancelMessage),ar=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),Hx=y(wt,ar(ni)),Gx=y(wt,ar(zt)),jx=y(wt,ar(Kt)),qx=y(wt,ar(oi)),zx=y(sr,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:E(h({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>dn(r)))||[]})}),Kx=y(wt,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function J(){return ht(N.getState())}et();n();var us=require("react"),cr=require("@multiversx/sdk-core");n();n();n();var Tn=()=>F(nt);n();n();n();n();n();var vt=P(require("react"));var wS=(0,vt.createContext)({}),vS=N.getState();n();var rs=P(require("react"));n();var yn=P(require("react")),$c=P(require("axios"));n();n();n();var ns=()=>{let e=ee(),t=Ze(e);return{provider:e,providerType:t}};n();X();n();n();n();var os,At={hostname:typeof window!="undefined"?(os=window==null?void 0:window.location)==null?void 0:os.hostname:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},It=e=>{var r,o,i,l;return e===!0?At:{hostname:(r=e==null?void 0:e.hostname)!=null?r:At.hostname,expirySeconds:(o=e==null?void 0:e.expirySeconds)!=null?o:At.expirySeconds,apiAddress:(i=e==null?void 0:e.apiAddress)!=null?i:At.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:At.tokenExpirationToastWarningSeconds}};n();var Vc=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),it=e=>Vc(s.Buffer.from(e,"utf8").toString("base64"));n();var is=P(require("axios"));function ss(e){return A(this,null,function*(){let{data:t}=yield is.default.get(`${e}/${gn}?size=1&fields=hash,timestamp`),[r]=t;return r})}n();n();n();function Wc(e){return Object.prototype.toString.call(e)==="[object String]"}var as=e=>{if(!e||!Wc(e))return null;try{let[t,r,o]=e.split("."),i=ot(t),l=ot(r),[p,g,d,m]=l.split("."),f=JSON.parse(ot(m)),T=ot(p),b={ttl:Number(d),address:i,extraInfo:f,host:T,signature:o,blockHash:g,body:l};return m==="e30"&&delete b.extraInfo,b}catch(t){return null}};var cs=({address:e,token:t,signature:r})=>{let o=it(e),i=it(t);return`${o}.${i}.${r}`};n();Ot();var ls=e=>{let t=as(e);if(!t)return{isExpired:!1};let r=Xe(),{ttl:o,extraInfo:i}=t,l=i.timestamp;if(!l)return{isExpired:!1};let p=l+o,g=r>p,d=p-r;return{isExpired:g,expiresAt:p,secondsUntilExpires:d}};var ps=e=>{let{hostname:t,apiAddress:r,expirySeconds:o}=It(e);return{getNativeAuthConfig:It,initialize:(...p)=>A(void 0,[...p],function*(l={}){let{hash:g,timestamp:d}=yield ss(r),m=it(JSON.stringify(h(h({},l),d?{timestamp:d}:{})));return`${it(t)}.${g}.${o}.${m}`}),getToken:cs,getTokenExpiration:ls}};n();var Hc=(e,t)=>{var r;return t?t===!0?e:(r=t.apiAddress)!=null?r:e:null},me=e=>{let t=F(Ce),r=F(_i),o=(0,us.useRef)(r==null?void 0:r.loginToken),i=Hc(t.apiAddress,e),l=It(h(h({},e===!0?{}:e),i?{apiAddress:i}:{})),p=Boolean(e),g=ps(l),{address:d}=Tn(),m=se(),f=S=>{o.current=S,m(Ut(h({loginToken:S},i?{nativeAuthConfig:l}:{})))},T=()=>A(void 0,null,function*(){try{return yield g.initialize()}catch(S){console.error("Unable to get block. Login failed.",S);return}}),b=({address:S,signature:I})=>{let D=o.current;if(!D)throw"Token not found. Call `setLoginToken` first.";if(!p){m(Ut({loginToken:D,signature:I}));return}let C=g.getToken({address:S,token:D,signature:I});m(Ut(h({loginToken:D,signature:I,nativeAuthToken:C},i?{nativeAuthConfig:l}:{})))};return{configuration:l,setLoginToken:f,getNativeAuthLoginToken:T,setTokenLoginInfo:b,refreshNativeAuthTokenLogin:I=>A(void 0,[I],function*({signMessageCallback:S}){let D=yield T();if(o.current=D,!D)return;let C=new cr.SignableMessage({address:new cr.Address(d),message:s.Buffer.from(D)}),R=yield S(C,{});b({address:d,signature:R.toJSON().signature})})}};var gs=({callbackRoute:e,token:t,nativeAuth:r,onLoginRedirect:o})=>{let[i,l]=(0,hn.useState)(""),[p,g]=(0,hn.useState)(!1),d=r!=null,m=me(r),f=t,T=se(),b=J();function L(){return A(this,null,function*(){if(b)throw new Error(Ke);g(!0);let I=ds.ExtensionProvider.getInstance();try{if(!(yield I.init())){console.warn("Something went wrong trying to redirect to wallet login..");return}let C=encodeURIComponent(`${window.location.origin}${e!=null?e:window.location.pathname}`);if(d&&!f&&(f=yield m.getNativeAuthLoginToken(),!f)){console.warn("Fetching block failed. Login cancelled.");return}f&&m.setLoginToken(f);let R=h({callbackUrl:C},f&&{token:f});yield I.login(R),ve(I);let{signature:G,address:Q}=I.account;if(!Q){g(!1),console.warn("Login cancelled.");return}G&&f&&m.setTokenLoginInfo({signature:G,address:Q}),T(Z({address:Q,loginMethod:"extension"})),Ie({callbackRoute:e,onLoginRedirect:o,options:{signature:G,address:Q}})}catch(D){console.error("error loging in",D),l("error logging in"+D.message)}finally{g(!1)}})}let S=Boolean(i);return[L,{loginFailed:S,error:i,isLoading:p&&!S,isLoggedIn:b&&!S}]};n();var Sn=require("react");ut();X();n();n();n();q();n();n();function ms(){let e=ee();return Ze(e)}function fe(e){return ms()===e}function lr(){let{search:e}=window.location,t=N.getState(),r=ee(),o=yt(t),i=ht(t),l=Fi(t);if(!r)throw"provider not initialized";return fe("ledger")&&i?new Promise(p=>{p(o)}):!fe("")&&!fe("wallet")&&!fe("extra")?r.getAddress():new Promise(p=>{if(l!=null){let g=new URLSearchParams(e),d=Object.fromEntries(g);xt(d.address)&&p(d.address)}i&&p(o),p("")})}n();n();var Gc=P(require("axios"));n();n();n();X();n();n();n();X();n();var fs=require("@multiversx/sdk-core");n();K();oe();n();n();Or();n();n();var qc=P(require("platform"));n();K();oe();$t();Qe();Je();var zc=e=>{Ae.local.setItem({key:ge.logoutEvent,data:e,expires:0}),Ae.local.removeItem(ge.logoutEvent)};function pr(e,t){return A(this,null,function*(){let r=ee(),o=Ze(r),i=J(),l=o==="wallet";if(!i||!r){xn(e,t,!1);return}try{let p=yield lr();zc(p)}catch(p){xn(e,t,!1),console.error("error fetching logout address",p)}l&&$o(),N.dispatch(W());try{let g=l&&!e?window.location.origin:e;l?setTimeout(()=>{r.logout({callbackUrl:g})}):(yield r.logout({callbackUrl:g}),xn(e,t,l))}catch(p){console.error("error logging out",p)}})}function xn(e,t,r){e&&!r&&(typeof t=="function"?t(e):Bt(e))}n();n();n();n();n();n();$t();n();n();n();n();Qe();n();n();n();X();n();n();var Kc=P(require("axios"));var Ts=({callbackRoute:e,token:t,nativeAuth:r,redirectDelayMilliseconds:o=100})=>{let[i,l]=(0,Sn.useState)(""),[p,g]=(0,Sn.useState)(!1),d=F(Ce),m=se(),f=J(),T=Boolean(r),b=me(r),L=t;function S(){return A(this,null,function*(){if(f)throw new Error(Ke);try{g(!0);let D=go(d.walletAddress),C=new Date,R=C.setMinutes(C.getMinutes()+3)/1e3,G={data:{},expires:R};if(T&&!L&&(L=yield b.getNativeAuthLoginToken(),!L)){console.warn("Login cancelled.");return}L&&b.setLoginToken(L),m(No(G));let Q=encodeURIComponent(`${window.location.origin}${e}`),Ne=E(h({callbackUrl:Q},L&&{token:L}),{redirectDelayMilliseconds:o});yield D.login(Ne)}catch(D){console.error(D),l("error logging in"+D.message)}finally{g(!1)}})}let I=Boolean(i);return[S,{error:i,loginFailed:I,isLoading:p&&!I,isLoggedIn:f&&!I}]};n();var bt=require("react"),ur=require("@multiversx/sdk-hw-provider");ut();K();X();q();et();n();var Ve=require("react"),Yc=10,ys=()=>{let[e,t]=(0,Ve.useState)(""),[r,o]=(0,Ve.useState)(!1),[i,l]=(0,Ve.useState)(0),[p,g]=(0,Ve.useState)([]),[d,m]=(0,Ve.useState)(null),[f,T]=(0,Ve.useState)(!1);return{accounts:p,setAccounts:g,isLoading:r,setIsLoading:o,setShowAddressList:T,showAddressList:f,startIndex:i,selectedAddress:d,onGoToPrevPage:()=>{m(null),l(I=>I===0?0:I-1)},onGoToNextPage:()=>{m(null),l(I=>I+1)},onSelectAddress:I=>{m(I)},error:e,setError:t,defaultAddressesPerPage:Yc}};var st="Could not initialise ledger app, make sure MultiversX app is open";function hs({callbackRoute:e,token:t,addressesPerPage:r,nativeAuth:o,onLoginRedirect:i}){let l=F(Oi),p=se(),g=J(),d=o!=null,m=me(o),f=t,{accounts:T,setAccounts:b,isLoading:L,setIsLoading:S,setShowAddressList:I,showAddressList:D,startIndex:C,selectedAddress:R,onGoToPrevPage:G,onGoToNextPage:Q,onSelectAddress:Ne,error:We,setError:M,defaultAddressesPerPage:Re}=ys(),Me=r!=null?r:Re,Oe=new ur.HWProvider,[He,Ge]=(0,bt.useState)(""),[Le,ct]=(0,bt.useState)(!1);function B({provider:w,address:v,index:k,signature:re}){ve(w),p(Do({index:k,loginType:"ledger"})),re&&m.setTokenLoginInfo({signature:re,address:v}),p(Z({address:v,loginMethod:"ledger"})),Ie({callbackRoute:e,onLoginRedirect:i,options:{address:v,signature:re}})}let j=(w,v="")=>{let{errorMessage:k}=mt(w);k&&M(`${k}.${v}`),S(!1),console.warn(w),p(Hr(null))};function ae(w){return A(this,null,function*(){if(R==null)return!1;let{index:v}=R;if(d&&!f&&(f=yield m.getNativeAuthLoginToken(),!f)){console.warn("Fetching block failed. Login cancelled.");return}if(f){m.setLoginToken(f);try{let k=yield w.tokenLogin({token:s.Buffer.from(`${f}{}`),addressIndex:v});B({address:k.address,provider:w,index:v,signature:k.signature.hex()})}catch(k){j(k,". Update MultiversX App to continue.")}}else try{let k=yield w.login({addressIndex:v});B({address:k,provider:w,index:v})}catch(k){return j(k),!1}return!0})}function $(){return A(this,null,function*(){try{if(S(!0),R==null)return!1;p(l?Lo(R):Hr(E(h({},R),{version:He,hasContractDataEnabled:Le})));let w=new ur.HWProvider;if(!(yield w.init()))return M(st),console.warn(st),!1;S(!1),yield ae(w)}catch(w){let{errorMessage:v}=mt(w);v&&M(v),console.warn(st,w)}finally{S(!1)}return I(!1),!0})}function H(){return A(this,null,function*(){try{if(S(!0),!(yield Oe.init())){M(st),console.warn(st),S(!1);return}let v=yield Oe.getAccounts(C,Me),k=yield mo(Oe);Ge(k.version),ct(k.dataEnabled),b(v),S(!1)}catch(w){let{errorMessage:v,defaultErrorMessage:k}=mt(w);M(v!=null?v:k),console.error("error",w),S(!1)}})}function ke(){return A(this,null,function*(){if(g)throw new Error(Ke);M("");try{if(S(!0),l!=null){let w=new ur.HWProvider;if(!(yield w.init())||!R){console.warn(st);return}let k=yield w.login({addressIndex:R.index.valueOf()});if(ve(w),!k){S(!1),console.warn("Login cancelled.");return}p(Z({address:k,loginMethod:"ledger"})),Ie({callbackRoute:e,onLoginRedirect:i})}else(T==null?void 0:T.length)>0||(yield H()),I(!0)}catch(w){console.error("error ",w);let{defaultErrorMessage:v}=mt();M(v)}finally{S(!1)}})}(0,bt.useEffect)(()=>{H()},[C]);let O=Boolean(We);return[ke,{loginFailed:O,isLoggedIn:g&&!O,error:We,isLoading:L&&!O},{accounts:T,showAddressList:D,startIndex:C,selectedAddress:R,version:He,contractDataEnabled:Le,onGoToPrevPage:G,onGoToNextPage:Q,onSelectAddress:Ne,onConfirmSelectedAddress:$}]}n();var De=require("react"),xs=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");n();var dr=require("react");function at(e,t=[]){let r=(0,dr.useRef)(!0);(0,dr.useEffect)(()=>{r.current?r.current=!1:e()},t)}K();X();q();et();var Ss=({logoutRoute:e,callbackRoute:t,nativeAuth:r,token:o,onLoginRedirect:i})=>{let l=se(),p=15e3,g=r!=null,d=me(r),m=o,[f,T]=(0,De.useState)(""),[b,L]=(0,De.useState)(""),{provider:S}=ns(),I=F(Bi),D=F(rr),C=(0,De.useRef)(S),R=(0,De.useRef)(!0),G,Q=Boolean(b),Ne=!Q,We=Q?`${D}?wallet-connect=${encodeURIComponent(b)}`:"";(0,De.useEffect)(()=>{Me();let B=setInterval(()=>{Me()},p);return()=>clearInterval(B)},[S]),at(()=>{!o||Ge()},[o]),at(()=>{C.current=S},[S]);let M=()=>{pr(e)},Re=()=>{R.current=!1};function Me(){return A(this,null,function*(){var ae,$;if(S==null||!fe("walletconnect")||!Boolean(($=(ae=C.current)==null?void 0:ae.walletConnector)==null?void 0:$.connected))return;let j={method:"heartbeat",params:{}};try{yield C.current.sendCustomMessage(j)}catch(H){console.error("Connection lost",H),M()}})}function Oe(){return A(this,null,function*(){var B;try{let j=C.current;if(J()||j==null||!fe("walletconnect"))return;if(!R.current){try{yield(B=C.current)==null?void 0:B.logout()}catch(w){console.warn("Unable to logout")}return}let $=yield j.getAddress();if(!$){console.warn("Login cancelled.");return}let H=yield j.getSignature(),ke={address:$,loginMethod:"walletconnect"},O={logoutRoute:e,loginType:"walletConnect",callbackRoute:t!=null?t:window.location.href};l(_t(O)),H&&d.setTokenLoginInfo({signature:H,address:$}),l(Z(ke)),j.walletConnector.on("heartbeat",()=>{clearInterval(G),G=setInterval(()=>{console.log("Maiar Wallet Connection Lost"),M(),clearInterval(G)},15e4)}),Ie({callbackRoute:t,onLoginRedirect:i,options:{address:$,signature:H}})}catch(j){T("Invalid address"),console.error(j)}})}function He(B=!0){return A(this,null,function*(){var H,ke;let j=B&&!b;if(!I||((ke=(H=C==null?void 0:C.current)==null?void 0:H.isInitialized)==null?void 0:ke.call(H))&&!j)return;let ae={onClientLogin:Oe,onClientLogout:M},$=new xs.WalletConnectProvider(I,ae);yield $.init(),R.current=!0,ve($),C.current=$,B&&Ge()})}function Ge(){return A(this,null,function*(){var $;if(!I)return;let B=yield($=C.current)==null?void 0:$.login();if(!Boolean(B))return;if(g&&!m&&(m=yield d.getNativeAuthLoginToken(),!m)){console.warn("Fetching block failed. Login cancelled.");return}if(!m){L(B);return}d.setLoginToken(m);let ae=`${B}&token=${m}`;L(ae)})}let Le=Boolean(f),ct=J();return[He,{error:f,loginFailed:Le,isLoading:Ne&&!Le,isLoggedIn:ct&&!Le},{uriDeepLink:We,walletConnectUri:b,cancelLogin:Re}]};n();var Te=require("react"),ws=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");K();X();q();et();var vs=({callbackRoute:e,logoutRoute:t,token:r,nativeAuth:o,onLoginRedirect:i})=>{let l=se(),p=o!=null,g=me(o),d=r,[m,f]=(0,Te.useState)(""),[T,b]=(0,Te.useState)(""),[L,S]=(0,Te.useState)(!0),[I,D]=(0,Te.useState)([]),C=ee(),R=F($i),G=F(Vi),Q=F(Wi),Ne=F(cn),We=F(rr),M=(0,Te.useRef)(C),Re=(0,Te.useRef)(!0),Me=["erd_cancelAction"],Oe=L?"":`${We}?wallet-connect=${encodeURIComponent(T)}`;at(()=>{!r||$()},[r]),at(()=>{M.current=C},[C]),(0,Te.useEffect)(()=>{S(!Boolean(T))},[T]);let He=()=>{pr(t)},Ge=O=>{console.log("wc2 session event: ",O)},Le=()=>{Re.current=!1};function ct(){return A(this,null,function*(){var O;try{let w=M.current;if(J()||w==null||!fe("walletconnectv2"))return;if(!Re.current){try{yield(O=M.current)==null?void 0:O.logout()}catch(Xc){console.warn("Unable to logout")}return}let k=yield w.getAddress();if(!k){console.warn("Login cancelled.");return}let re=yield w.getSignature(),gr={address:k,loginMethod:"walletconnectv2"},As={logoutRoute:t,loginType:"walletconnectv2",callbackRoute:e!=null?e:window.location.href};l(_t(As)),re&&g.setTokenLoginInfo({signature:re,address:k}),l(Z(gr)),Ie({callbackRoute:e,onLoginRedirect:i,options:{address:k,signature:re}})}catch(w){f("Invalid address"),console.error(w)}})}function B(O=!0){return A(this,null,function*(){if(!G||!R){f("Invalid WalletConnect setup");return}let w={onClientLogin:ct,onClientLogout:He,onClientEvent:Ge},v=new ws.WalletConnectV2Provider(w,Ne,R,G,Q);yield v.init(),Re.current=!0,ve(v),D(v.pairings),M.current=v,O&&$()})}function j(O){return A(this,null,function*(){var w,v,k;if(!R||!G){f("Invalid WalletConnect setup");return}if(!O||!O.topic){f("Expired connection");return}try{let{approval:re}=yield(w=M.current)==null?void 0:w.connect({topic:O.topic,methods:Me});if(p&&!d&&(d=yield g.getNativeAuthLoginToken(),!d)){console.warn("Fetching block failed. Login cancelled.");return}d&&g.setLoginToken(d);try{yield(v=M.current)==null?void 0:v.login({approval:re,token:d})}catch(gr){f("User rejected existing connection proposal"),S(!0),yield B()}}catch(re){console.error("Unable to connect to existing session",re),f("Unable to connect to existing session")}finally{D((k=M.current)==null?void 0:k.pairings)}})}function ae(O){return A(this,null,function*(){var w,v;try{O&&(yield(w=M.current)==null?void 0:w.logout({topic:O}))}catch(k){console.error("Unable to remove existing pairing",k),f("Unable to remove existing pairing")}finally{D((v=M.current)==null?void 0:v.pairings)}})}function $(){return A(this,null,function*(){var O,w;if(!R||!G){f("Invalid WalletConnect setup");return}try{let{uri:v,approval:k}=yield(O=M.current)==null?void 0:O.connect({methods:Me});if(!Boolean(v))return;if(b(v),p&&!d&&(d=yield g.getNativeAuthLoginToken(),!d)){console.warn("Fetching block failed. Login cancelled.");return}d&&g.setLoginToken(d);try{yield(w=M.current)==null?void 0:w.login({approval:k,token:d})}catch(gr){f("User rejected connection proposal"),S(!0),yield B()}}catch(v){console.error("Unable to connect",v)}})}let H=Boolean(m),ke=J();return[B,{error:m,loginFailed:H,isLoading:L&&!H,isLoggedIn:ke&&!H},{uriDeepLink:Oe,walletConnectUri:T,cancelLogin:Le,connectExisting:j,removeExistingPairing:ae,wcPairings:I}]};0&&(module.exports={useExtensionLogin,useLedgerLogin,useWalletConnectLogin,useWalletConnectV2Login,useWebWalletLogin});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -0,0 +1,9 @@
1
+ "use strict";var Ir=Object.create;var G=Object.defineProperty;var Ur=Object.getOwnPropertyDescriptor;var Sr=Object.getOwnPropertyNames;var Lr=Object.getPrototypeOf,Cr=Object.prototype.hasOwnProperty;var Rr=(t,r)=>()=>(t&&(r=t(t=0)),r);var H=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),kr=(t,r)=>{for(var e in r)G(t,e,{get:r[e],enumerable:!0})},tr=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Sr(r))!Cr.call(t,i)&&i!==e&&G(t,i,{get:()=>r[i],enumerable:!(n=Ur(r,i))||n.enumerable});return t};var nr=(t,r,e)=>(e=t!=null?Ir(Lr(t)):{},tr(r||!t||!t.__esModule?G(e,"default",{value:t,enumerable:!0}):e,t)),_r=t=>tr(G({},"__esModule",{value:!0}),t);var ur=H(P=>{"use strict";g();P.byteLength=Dr;P.toByteArray=Nr;P.fromByteArray=Pr;var d=[],E=[],Mr=typeof Uint8Array!="undefined"?Uint8Array:Array,z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(L=0,ir=z.length;L<ir;++L)d[L]=z[L],E[z.charCodeAt(L)]=L;var L,ir;E["-".charCodeAt(0)]=62;E["_".charCodeAt(0)]=63;function or(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function Dr(t){var r=or(t),e=r[0],n=r[1];return(e+n)*3/4-n}function br(t,r,e){return(r+e)*3/4-e}function Nr(t){var r,e=or(t),n=e[0],i=e[1],o=new Mr(br(t,n,i)),u=0,h=i>0?n-4:n,f;for(f=0;f<h;f+=4)r=E[t.charCodeAt(f)]<<18|E[t.charCodeAt(f+1)]<<12|E[t.charCodeAt(f+2)]<<6|E[t.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=E[t.charCodeAt(f)]<<2|E[t.charCodeAt(f+1)]>>4,o[u++]=r&255),i===1&&(r=E[t.charCodeAt(f)]<<10|E[t.charCodeAt(f+1)]<<4|E[t.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Gr(t){return d[t>>18&63]+d[t>>12&63]+d[t>>6&63]+d[t&63]}function Hr(t,r,e){for(var n,i=[],o=r;o<e;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(Gr(n));return i.join("")}function Pr(t){for(var r,e=t.length,n=e%3,i=[],o=16383,u=0,h=e-n;u<h;u+=o)i.push(Hr(t,u,u+o>h?h:u+o));return n===1?(r=t[e-1],i.push(d[r>>2]+d[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(d[r>>10]+d[r>>4&63]+d[r<<2&63]+"=")),i.join("")}});var ar=H(J=>{g();J.read=function(t,r,e,n,i){var o,u,h=i*8-n-1,f=(1<<h)-1,c=f>>1,s=-7,p=e?i-1:0,m=e?-1:1,y=t[r+p];for(p+=m,o=y&(1<<-s)-1,y>>=-s,s+=h;s>0;o=o*256+t[r+p],p+=m,s-=8);for(u=o&(1<<-s)-1,o>>=-s,s+=n;s>0;u=u*256+t[r+p],p+=m,s-=8);if(o===0)o=1-c;else{if(o===f)return u?NaN:(y?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-c}return(y?-1:1)*u*Math.pow(2,o-n)};J.write=function(t,r,e,n,i,o){var u,h,f,c=o*8-i-1,s=(1<<c)-1,p=s>>1,m=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:o-1,S=n?1:-1,U=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=s):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?r+=m/f:r+=m*Math.pow(2,1-p),r*f>=2&&(u++,f/=2),u+p>=s?(h=0,u=s):u+p>=1?(h=(r*f-1)*Math.pow(2,i),u=u+p):(h=r*Math.pow(2,p-1)*Math.pow(2,i),u=0));i>=8;t[e+y]=h&255,y+=S,h/=256,i-=8);for(u=u<<i|h,c+=i;c>0;t[e+y]=u&255,y+=S,u/=256,c-=8);t[e+y-S]|=U*128}});var dr=H(M=>{"use strict";g();var Q=ur(),_=ar(),hr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;M.Buffer=a;M.SlowBuffer=Jr;M.INSPECT_MAX_BYTES=50;var Y=2147483647;M.kMaxLength=Y;a.TYPED_ARRAY_SUPPORT=Wr();!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Wr(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function v(t){if(t>Y)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,a.prototype),r}function a(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Z(t)}return cr(t,r,e)}a.poolSize=8192;function cr(t,r,e){if(typeof t=="string")return qr(t,r);if(ArrayBuffer.isView(t))return Xr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(F(t,ArrayBuffer)||t&&F(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(F(t,SharedArrayBuffer)||t&&F(t.buffer,SharedArrayBuffer)))return K(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return a.from(n,r,e);var i=zr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return a.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}a.from=function(t,r,e){return cr(t,r,e)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function sr(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function Yr(t,r,e){return sr(t),t<=0?v(t):r!==void 0?typeof e=="string"?v(t).fill(r,e):v(t).fill(r):v(t)}a.alloc=function(t,r,e){return Yr(t,r,e)};function Z(t){return sr(t),v(t<0?0:$(t)|0)}a.allocUnsafe=function(t){return Z(t)};a.allocUnsafeSlow=function(t){return Z(t)};function qr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=lr(t,r)|0,n=v(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function V(t){for(var r=t.length<0?0:$(t.length)|0,e=v(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function Xr(t){if(F(t,Uint8Array)){var r=new Uint8Array(t);return K(r.buffer,r.byteOffset,r.byteLength)}return V(t)}function K(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,a.prototype),n}function zr(t){if(a.isBuffer(t)){var r=$(t.length)|0,e=v(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||j(t.length)?v(0):V(t);if(t.type==="Buffer"&&Array.isArray(t.data))return V(t.data)}function $(t){if(t>=Y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Y.toString(16)+" bytes");return t|0}function Jr(t){return+t!=t&&(t=0),a.alloc(+t)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,e){if(F(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),F(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(r)||!a.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,i=e.length,o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==e[o]){n=r[o],i=e[o];break}return n<i?-1:i<n?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=a.allocUnsafe(e),o=0;for(n=0;n<r.length;++n){var u=r[n];if(F(u,Uint8Array))o+u.length>i.length?a.from(u).copy(i,o):Uint8Array.prototype.set.call(i,u,o);else if(a.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function lr(t,r){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||F(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return O(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return gr(t).length;default:if(i)return n?-1:O(t).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=lr;function Qr(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ne(this,r,e);case"utf8":case"utf-8":return yr(this,r,e);case"ascii":return ee(this,r,e);case"latin1":case"binary":return te(this,r,e);case"base64":return jr(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function C(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)C(this,e,e+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)C(this,e,e+3),C(this,e+1,e+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)C(this,e,e+7),C(this,e+1,e+6),C(this,e+2,e+5),C(this,e+3,e+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?yr(this,0,r):Qr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",e=M.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};hr&&(a.prototype[hr]=a.prototype.inspect);a.prototype.compare=function(r,e,n,i,o){if(F(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),e<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var u=o-i,h=n-e,f=Math.min(u,h),c=this.slice(i,o),s=r.slice(e,n),p=0;p<f;++p)if(c[p]!==s[p]){u=c[p],h=s[p];break}return u<h?-1:h<u?1:0};function wr(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,j(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:fr(t,r,e,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):fr(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function fr(t,r,e,n,i){var o=1,u=t.length,h=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;o=2,u/=2,h/=2,e/=2}function f(y,S){return o===1?y[S]:y.readUInt16BE(S*o)}var c;if(i){var s=-1;for(c=e;c<u;c++)if(f(t,c)===f(r,s===-1?0:c-s)){if(s===-1&&(s=c),c-s+1===h)return s*o}else s!==-1&&(c-=c-s),s=-1}else for(e+h>u&&(e=u-h),c=e;c>=0;c--){for(var p=!0,m=0;m<h;m++)if(f(t,c+m)!==f(r,m)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};a.prototype.indexOf=function(r,e,n){return wr(this,r,e,n,!0)};a.prototype.lastIndexOf=function(r,e,n){return wr(this,r,e,n,!1)};function Vr(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var u=0;u<n;++u){var h=parseInt(r.substr(u*2,2),16);if(j(h))return u;t[e+u]=h}return u}function Kr(t,r,e,n){return q(O(r,t.length-e),t,e,n)}function Or(t,r,e,n){return q(ae(r),t,e,n)}function Zr(t,r,e,n){return q(gr(r),t,e,n)}function $r(t,r,e,n){return q(he(r,t.length-e),t,e,n)}a.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-e;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return Vr(this,r,e,n);case"utf8":case"utf-8":return Kr(this,r,e,n);case"ascii":case"latin1":case"binary":return Or(this,r,e,n);case"base64":return Zr(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $r(this,r,e,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function jr(t,r,e){return r===0&&e===t.length?Q.fromByteArray(t):Q.fromByteArray(t.slice(r,e))}function yr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o=t[i],u=null,h=o>239?4:o>223?3:o>191?2:1;if(i+h<=e){var f,c,s,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=t[i+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=t[i+1],c=t[i+2],(f&192)===128&&(c&192)===128&&(p=(o&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:f=t[i+1],c=t[i+2],s=t[i+3],(f&192)===128&&(c&192)===128&&(s&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|s&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=h}return re(n)}var pr=4096;function re(t){var r=t.length;if(r<=pr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=pr));return e}function ee(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function te(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ne(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o<e;++o)i+=fe[t[o]];return i}function ie(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}a.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i=this.subarray(r,e);return Object.setPrototypeOf(i,a.prototype),i};function w(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r],o=1,u=0;++u<e&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r+--e],o=1;e>0&&(o*=256);)i+=this[r+--e]*o;return i};a.prototype.readUint8=a.prototype.readUInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r],o=1,u=0;++u<e&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i};a.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=e,o=1,u=this[r+--i];i>0&&(o*=256);)u+=this[r+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*e)),u};a.prototype.readInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,e){r=r>>>0,e||w(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};a.prototype.readInt16BE=function(r,e){r=r>>>0,e||w(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};a.prototype.readInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,e){return r=r>>>0,e||w(r,4,this.length),_.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,e){return r=r>>>0,e||w(r,4,this.length),_.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||w(r,8,this.length),_.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||w(r,8,this.length),_.read(this,r,!1,52,8)};function x(t,r,e,n,i,o){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;x(this,r,e,n,o,0)}var u=1,h=0;for(this[e]=r&255;++h<n&&(u*=256);)this[e+h]=r/u&255;return e+n};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;x(this,r,e,n,o,0)}var u=n-1,h=1;for(this[e+u]=r&255;--u>=0&&(h*=256);)this[e+u]=r/h&255;return e+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||x(this,r,e,1,255,0),this[e]=r&255,e+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||x(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||x(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||x(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||x(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};a.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var o=Math.pow(2,8*n-1);x(this,r,e,n,o-1,-o)}var u=0,h=1,f=0;for(this[e]=r&255;++u<n&&(h*=256);)r<0&&f===0&&this[e+u-1]!==0&&(f=1),this[e+u]=(r/h>>0)-f&255;return e+n};a.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var o=Math.pow(2,8*n-1);x(this,r,e,n,o-1,-o)}var u=n-1,h=1,f=0;for(this[e+u]=r&255;--u>=0&&(h*=256);)r<0&&f===0&&this[e+u+1]!==0&&(f=1),this[e+u]=(r/h>>0)-f&255;return e+n};a.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||x(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};a.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||x(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};a.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||x(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};a.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||x(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};a.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||x(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function xr(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function mr(t,r,e,n,i){return r=+r,e=e>>>0,i||xr(t,r,e,4,34028234663852886e22,-34028234663852886e22),_.write(t,r,e,n,23,4),e+4}a.prototype.writeFloatLE=function(r,e,n){return mr(this,r,e,!0,n)};a.prototype.writeFloatBE=function(r,e,n){return mr(this,r,e,!1,n)};function Er(t,r,e,n,i){return r=+r,e=e>>>0,i||xr(t,r,e,8,17976931348623157e292,-17976931348623157e292),_.write(t,r,e,n,52,8),e+8}a.prototype.writeDoubleLE=function(r,e,n){return Er(this,r,e,!0,n)};a.prototype.writeDoubleBE=function(r,e,n){return Er(this,r,e,!1,n)};a.prototype.copy=function(r,e,n,i){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),e),o};a.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var u;if(typeof r=="number")for(u=e;u<n;++u)this[u]=r;else{var h=a.isBuffer(r)?r:a.from(r,i),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-e;++u)this[u+e]=h[u%f]}return this};var oe=/[^+/0-9A-Za-z-_]/g;function ue(t){if(t=t.split("=")[0],t=t.trim().replace(oe,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function O(t,r){r=r||1/0;for(var e,n=t.length,i=null,o=[],u=0;u<n;++u){if(e=t.charCodeAt(u),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function ae(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function he(t,r){for(var e,n,i,o=[],u=0;u<t.length&&!((r-=2)<0);++u)e=t.charCodeAt(u),n=e>>8,i=e%256,o.push(i),o.push(n);return o}function gr(t){return Q.toByteArray(ue(t))}function q(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function F(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function j(t){return t!==t}var fe=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()});var Tr=H((ge,vr)=>{g();var l=vr.exports={},A,B;function rr(){throw new Error("setTimeout has not been defined")}function er(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=rr}catch(t){A=rr}try{typeof clearTimeout=="function"?B=clearTimeout:B=er}catch(t){B=er}})();function Fr(t){if(A===setTimeout)return setTimeout(t,0);if((A===rr||!A)&&setTimeout)return A=setTimeout,setTimeout(t,0);try{return A(t,0)}catch(r){try{return A.call(null,t,0)}catch(e){return A.call(this,t,0)}}}function pe(t){if(B===clearTimeout)return clearTimeout(t);if((B===er||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(t);try{return B(t)}catch(r){try{return B.call(null,t)}catch(e){return B.call(this,t)}}}var T=[],D=!1,R,X=-1;function ce(){!D||!R||(D=!1,R.length?T=R.concat(T):X=-1,T.length&&Ar())}function Ar(){if(!D){var t=Fr(ce);D=!0;for(var r=T.length;r;){for(R=T,T=[];++X<r;)R&&R[X].run();X=-1,r=T.length}R=null,D=!1,pe(t)}}l.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];T.push(new Br(t,r)),T.length===1&&!D&&Fr(Ar)};function Br(t,r){this.fun=t,this.array=r}Br.prototype.run=function(){this.fun.apply(null,this.array)};l.title="browser";l.browser=!0;l.env={};l.argv=[];l.version="";l.versions={};function I(){}l.on=I;l.addListener=I;l.once=I;l.off=I;l.removeListener=I;l.removeAllListeners=I;l.emit=I;l.prependListener=I;l.prependOnceListener=I;l.listeners=function(t){return[]};l.binding=function(t){throw new Error("process.binding is not supported")};l.cwd=function(){return"/"};l.chdir=function(t){throw new Error("process.chdir is not supported")};l.umask=function(){return 0}});var b,N,de,g=Rr(()=>{b=nr(dr()),N=nr(Tr()),de=function(t){function r(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var we={};kr(we,{useAddressScreens:()=>le});module.exports=_r(we);g();var k=require("react"),se=10,le=()=>{let[t,r]=(0,k.useState)(""),[e,n]=(0,k.useState)(!1),[i,o]=(0,k.useState)(0),[u,h]=(0,k.useState)([]),[f,c]=(0,k.useState)(null),[s,p]=(0,k.useState)(!1);return{accounts:u,setAccounts:h,isLoading:e,setIsLoading:n,setShowAddressList:p,showAddressList:s,startIndex:i,selectedAddress:f,onGoToPrevPage:()=>{c(null),o(U=>U===0?0:U-1)},onGoToNextPage:()=>{c(null),o(U=>U+1)},onSelectAddress:U=>{c(U)},error:t,setError:r,defaultAddressesPerPage:se}};0&&(module.exports={useAddressScreens});
2
+ /*!
3
+ * The buffer module from node.js, for the browser.
4
+ *
5
+ * @author Feross Aboukhadijeh <https://feross.org>
6
+ * @license MIT
7
+ */
8
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
9
+ //# sourceMappingURL=useAddressScreens.js.map