@multiversx/sdk-dapp 2.5.1 → 2.6.0

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 (651) hide show
  1. package/UI/DappModal/components/DappModal.js +1 -1
  2. package/UI/DappModal/components/DappModalHeader.d.ts +2 -1
  3. package/UI/DappModal/components/DappModalHeader.js +1 -1
  4. package/UI/DappModal/components/index.js +1 -1
  5. package/UI/DappModal/dappModal.types.d.ts +1 -0
  6. package/UI/DappModal/dappModal.types.js +1 -1
  7. package/UI/DappModal/hooks/index.js +1 -1
  8. package/UI/DappModal/hooks/useDappModal.js +1 -1
  9. package/UI/DappModal/index.js +1 -1
  10. package/UI/ExplorerLink/ExplorerLink.js +1 -1
  11. package/UI/ExplorerLink/index.js +1 -1
  12. package/UI/ModalContainer/ModalContainer.js +1 -1
  13. package/UI/ModalContainer/index.js +1 -1
  14. package/UI/NotificationModal/index.js +1 -1
  15. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  16. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  17. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  18. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  19. package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  20. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  21. package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
  22. package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
  23. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  24. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  25. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  26. package/UI/SignTransactionsModals/components/index.js +1 -1
  27. package/UI/SignTransactionsModals/index.js +1 -1
  28. package/UI/TokenDetails/index.js +1 -1
  29. package/UI/TransactionDetails/TransactionDetails.js +1 -1
  30. package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  31. package/UI/TransactionDetails/components/index.js +1 -1
  32. package/UI/TransactionDetails/index.js +1 -1
  33. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  34. package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
  35. package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
  36. package/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
  37. package/UI/TransactionInfo/components/DataDecode/index.js +1 -1
  38. package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
  39. package/UI/TransactionInfo/components/DataField/components/Linkified/index.js +1 -1
  40. package/UI/TransactionInfo/components/DataField/components/ModalLink/ModalLink.js +1 -1
  41. package/UI/TransactionInfo/components/DataField/components/ModalLink/index.js +1 -1
  42. package/UI/TransactionInfo/components/DataField/components/index.js +1 -1
  43. package/UI/TransactionInfo/components/DataField/index.js +1 -1
  44. package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
  45. package/UI/TransactionInfo/components/EventsList/index.js +1 -1
  46. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  47. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  48. package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
  49. package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  50. package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  51. package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
  52. package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  53. package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
  54. package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
  55. package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
  56. package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
  57. package/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
  58. package/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
  59. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
  60. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
  61. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
  62. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
  63. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
  64. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
  65. package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
  66. package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
  67. package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
  68. package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
  69. package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
  70. package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
  71. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
  72. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
  73. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
  74. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
  75. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
  76. package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
  77. package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
  78. package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
  79. package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
  80. package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
  81. package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
  82. package/UI/TransactionInfo/components/index.js +1 -1
  83. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
  84. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
  85. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
  86. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
  87. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
  88. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
  89. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
  90. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
  91. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
  92. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
  93. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  94. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  95. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
  96. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
  97. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
  98. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
  99. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
  100. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
  101. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
  102. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
  103. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
  104. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
  105. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  106. package/UI/TransactionInfo/index.js +1 -1
  107. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  108. package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
  109. package/UI/TransactionsTable/components/TransactionHash.js +1 -1
  110. package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
  111. package/UI/TransactionsTable/components/TransactionRow.js +1 -1
  112. package/UI/TransactionsTable/components/TransactionSender.js +1 -1
  113. package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
  114. package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
  115. package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
  116. package/UI/TransactionsTable/components/index.js +1 -1
  117. package/UI/TransactionsTable/index.js +1 -1
  118. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  119. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  120. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  121. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  122. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
  123. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  124. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  125. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  126. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  127. package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  128. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  129. package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  130. package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  131. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  132. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  133. package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
  134. package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
  135. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  136. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  137. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  138. package/UI/TransactionsToastList/components/index.js +1 -1
  139. package/UI/TransactionsToastList/index.js +1 -1
  140. package/UI/extension/ExtensionLoginButton/index.js +1 -1
  141. package/UI/index.js +1 -1
  142. package/UI/ledger/LedgerLoginButton/index.d.ts +5 -2
  143. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  144. package/UI/ledger/LedgerLoginContainer/AddressRow.d.ts +3 -2
  145. package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
  146. package/UI/ledger/LedgerLoginContainer/AddressTable.d.ts +14 -3
  147. package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
  148. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.d.ts +10 -3
  149. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  150. package/UI/ledger/LedgerLoginContainer/LedgerConnect.d.ts +11 -2
  151. package/UI/ledger/LedgerLoginContainer/LedgerConnect.js +1 -1
  152. package/UI/ledger/LedgerLoginContainer/LedgerLoading/LedgerLoading.d.ts +11 -0
  153. package/UI/ledger/LedgerLoginContainer/LedgerLoading/LedgerLoading.js +2 -0
  154. package/UI/ledger/LedgerLoginContainer/LedgerLoading/index.d.ts +2 -0
  155. package/UI/ledger/LedgerLoginContainer/LedgerLoading/index.js +2 -0
  156. package/UI/ledger/LedgerLoginContainer/LedgerLoading/ledgerLoadingStyles.js +2 -0
  157. package/UI/ledger/LedgerLoginContainer/addressRowStyles.js +2 -0
  158. package/UI/ledger/LedgerLoginContainer/addressTableStyles.js +1 -1
  159. package/UI/ledger/LedgerLoginContainer/confirmAddressStyles.js +2 -0
  160. package/UI/ledger/LedgerLoginContainer/enums.d.ts +6 -0
  161. package/UI/ledger/LedgerLoginContainer/enums.js +2 -0
  162. package/UI/ledger/LedgerLoginContainer/index.d.ts +8 -4
  163. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  164. package/UI/ledger/LedgerLoginContainer/ledgerConnectStyles.js +1 -1
  165. package/UI/ledger/LedgerLoginContainer/ledgerLoginContainerStyles.js +2 -0
  166. package/UI/ledger/LedgerLoginContainer/types.d.ts +11 -0
  167. package/UI/ledger/LedgerLoginContainer/types.js +2 -0
  168. package/UI/ledger/index.js +1 -1
  169. package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  170. package/UI/pages/UnlockPage/index.js +1 -1
  171. package/UI/pages/index.js +1 -1
  172. package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionDescription.d.ts +1 -1
  173. package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionDescription.js +1 -1
  174. package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.d.ts +1 -1
  175. package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
  176. package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
  177. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  178. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  179. package/UI/walletConnect/index.js +1 -1
  180. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  181. package/__chunks__/{chunk-L453ADOC.js → chunk-23AAJLTE.js} +2 -2
  182. package/__chunks__/chunk-27KMKHIW.js +2 -0
  183. package/__chunks__/{chunk-TU7WFOMM.js → chunk-2AYMSUDW.js} +2 -2
  184. package/__chunks__/{chunk-2O55UTRA.js → chunk-2GITWCXT.js} +2 -2
  185. package/__chunks__/{chunk-3Y7FNEOJ.js → chunk-2JNL7LNB.js} +2 -2
  186. package/__chunks__/chunk-2JZBQI4L.js +2 -0
  187. package/__chunks__/{chunk-4TC7YRC5.js → chunk-2P35DJCR.js} +2 -2
  188. package/__chunks__/chunk-2QODJVIK.js +2 -0
  189. package/__chunks__/{chunk-3KUF72HT.js → chunk-2XRA2SOZ.js} +2 -2
  190. package/__chunks__/{chunk-NNMCXGCB.js → chunk-33JX7G53.js} +2 -2
  191. package/__chunks__/{chunk-C5QWK5UC.js → chunk-3E4G2X6M.js} +2 -2
  192. package/__chunks__/{chunk-PKXL3USM.js → chunk-3TH5M67N.js} +2 -2
  193. package/__chunks__/{chunk-6ZGSFDSZ.js → chunk-426OGBV2.js} +2 -2
  194. package/__chunks__/chunk-43BQTAZH.js +56 -0
  195. package/__chunks__/{chunk-6BRP5U5Q.js → chunk-453MDZQF.js} +2 -2
  196. package/__chunks__/{chunk-BW6BD5NS.js → chunk-472DHYRL.js} +2 -2
  197. package/__chunks__/chunk-4A4EU4E3.js +2 -0
  198. package/__chunks__/{chunk-4LIAAVWF.js → chunk-4EYJORWI.js} +2 -2
  199. package/__chunks__/chunk-4RSMXZ4S.js +101 -0
  200. package/__chunks__/{chunk-UGJML72W.js → chunk-4X3KB3L6.js} +2 -2
  201. package/__chunks__/{chunk-RJX2VOVF.js → chunk-4XUPT6M6.js} +2 -2
  202. package/__chunks__/{chunk-K7RSNF4B.js → chunk-4YZ3KMHM.js} +2 -2
  203. package/__chunks__/{chunk-BPPOBJZC.js → chunk-55HTXSXA.js} +2 -2
  204. package/__chunks__/{chunk-5AZD5Z34.js → chunk-5ECUBJT4.js} +2 -2
  205. package/__chunks__/{chunk-NLDXG2MI.js → chunk-5EF4MS3R.js} +2 -2
  206. package/__chunks__/{chunk-RN6OKHPR.js → chunk-5GSDPVAD.js} +2 -2
  207. package/__chunks__/chunk-5LB5WWQ5.js +2 -0
  208. package/__chunks__/{chunk-5XVAMQOG.js → chunk-5LETNU4V.js} +2 -2
  209. package/__chunks__/{chunk-GE7JCDSP.js → chunk-5TOXE3UO.js} +2 -2
  210. package/__chunks__/{chunk-7RUXLIYJ.js → chunk-5V6C2L26.js} +2 -2
  211. package/__chunks__/{chunk-GKNKY2XC.js → chunk-6AJ47SZU.js} +2 -2
  212. package/__chunks__/{chunk-XZUX6DKG.js → chunk-6KRG4LM3.js} +2 -2
  213. package/__chunks__/{chunk-ODNDPOGU.js → chunk-6NZRMSIO.js} +2 -2
  214. package/__chunks__/{chunk-FUUIIQBA.js → chunk-6SDDAA2N.js} +2 -2
  215. package/__chunks__/{chunk-POHEXZFA.js → chunk-6W46S3QK.js} +2 -2
  216. package/__chunks__/chunk-72VKRQQR.js +2 -0
  217. package/__chunks__/{chunk-RPABLOJF.js → chunk-7ARTOUXL.js} +2 -2
  218. package/__chunks__/{chunk-5VRLEUJK.js → chunk-7DH5VDXH.js} +1 -1
  219. package/__chunks__/{chunk-6JVGC545.js → chunk-7NWOHII7.js} +2 -2
  220. package/__chunks__/chunk-7OT6BIN6.js +7 -0
  221. package/__chunks__/{chunk-6WHHVHFI.js → chunk-7POBVE6Q.js} +2 -2
  222. package/__chunks__/{chunk-6EDIA2O4.js → chunk-A5SDPSTT.js} +2 -2
  223. package/__chunks__/{chunk-OPTTP3CB.js → chunk-AR6VAKSI.js} +2 -2
  224. package/__chunks__/{chunk-AMPDOASR.js → chunk-AY6D2U6L.js} +2 -2
  225. package/__chunks__/{chunk-BGRAITYB.js → chunk-B767SU7J.js} +2 -2
  226. package/__chunks__/{chunk-GWPFW63R.js → chunk-BCPPVTT5.js} +2 -2
  227. package/__chunks__/chunk-BFO3NXKA.js +2 -0
  228. package/__chunks__/{chunk-VQCCK5FV.js → chunk-BGP2C6QV.js} +2 -2
  229. package/__chunks__/{chunk-SPU6IIAH.js → chunk-BPCTXLLJ.js} +2 -2
  230. package/__chunks__/chunk-BRFCGGC3.js +2 -0
  231. package/__chunks__/{chunk-2DSCD4NW.js → chunk-BTV6KDQS.js} +2 -2
  232. package/__chunks__/{chunk-AW4CTEGR.js → chunk-C2FRT5TS.js} +2 -2
  233. package/__chunks__/{chunk-IHKH4L56.js → chunk-C35QLHF5.js} +2 -2
  234. package/__chunks__/chunk-C52PQ3YP.js +2 -0
  235. package/__chunks__/{chunk-AKFZGJUV.js → chunk-CFA77B3S.js} +2 -2
  236. package/__chunks__/{chunk-5YFEEXIW.js → chunk-CTGPABLR.js} +2 -2
  237. package/__chunks__/{chunk-EOBDB5IF.js → chunk-CTOMG45X.js} +2 -2
  238. package/__chunks__/{chunk-77CGZRSP.js → chunk-CV74ES7R.js} +2 -2
  239. package/__chunks__/{chunk-5HTHZHJN.js → chunk-DKCOAZU7.js} +2 -2
  240. package/__chunks__/{chunk-C6UPDHCY.js → chunk-DKT4ED65.js} +2 -2
  241. package/__chunks__/{chunk-4RGRWWWG.js → chunk-DT7CXYT7.js} +2 -2
  242. package/__chunks__/{chunk-YA2O43JQ.js → chunk-E2XCH5GA.js} +2 -2
  243. package/__chunks__/{chunk-VWBSXTRU.js → chunk-EDGVXF7K.js} +2 -2
  244. package/__chunks__/{chunk-YVUBZARW.js → chunk-EGFLIK5C.js} +2 -2
  245. package/__chunks__/{chunk-MGBG3RFC.js → chunk-EJJFBMWR.js} +2 -2
  246. package/__chunks__/{chunk-7XUVFY4V.js → chunk-ELO53RAH.js} +2 -2
  247. package/__chunks__/{chunk-7NXGX7P6.js → chunk-ELPKO5YL.js} +2 -2
  248. package/__chunks__/chunk-ELWIMVBK.js +2 -0
  249. package/__chunks__/{chunk-AIEXAX6W.js → chunk-EOQ4GBQT.js} +2 -2
  250. package/__chunks__/{chunk-JYCVGUP2.js → chunk-EP6SDAW6.js} +2 -2
  251. package/__chunks__/{chunk-MX3SNB6G.js → chunk-EYCKV3YL.js} +2 -2
  252. package/__chunks__/{chunk-ADQXZDUG.js → chunk-F6IC5Y23.js} +2 -2
  253. package/__chunks__/{chunk-6WXZSD7A.js → chunk-FTKQZDLX.js} +2 -2
  254. package/__chunks__/{chunk-O4FWVWAC.js → chunk-FWDSY2GW.js} +2 -2
  255. package/__chunks__/{chunk-AVNC3ZAF.js → chunk-GCZWBHLS.js} +2 -2
  256. package/__chunks__/{chunk-HK5R66HH.js → chunk-GG5P6MOS.js} +2 -2
  257. package/__chunks__/{chunk-DQKHISOA.js → chunk-GH5VK5N2.js} +2 -2
  258. package/__chunks__/{chunk-STKQJTIT.js → chunk-GNAWORQD.js} +2 -2
  259. package/__chunks__/chunk-GQQCRXB3.js +2 -0
  260. package/__chunks__/{chunk-KLRL753V.js → chunk-GR5HKQHJ.js} +2 -2
  261. package/__chunks__/{chunk-D7QRUFC5.js → chunk-GTBQ6V7L.js} +2 -2
  262. package/__chunks__/{chunk-DUWIMNK3.js → chunk-GU67V37H.js} +2 -2
  263. package/__chunks__/{chunk-PZNVUONX.js → chunk-GX7R43WE.js} +2 -2
  264. package/__chunks__/{chunk-Z5JEFJVP.js → chunk-H7PPDS33.js} +2 -2
  265. package/__chunks__/{chunk-Z5SWHFRA.js → chunk-HFFEUDXD.js} +2 -2
  266. package/__chunks__/{chunk-6W4F63BZ.js → chunk-HNIXYOUS.js} +2 -2
  267. package/__chunks__/{chunk-YFG3AVUT.js → chunk-HSHC4AWG.js} +2 -2
  268. package/__chunks__/{chunk-VWIHAZX2.js → chunk-HUJEGTDG.js} +2 -2
  269. package/__chunks__/{chunk-LFPT3K6R.js → chunk-HYJUN4WH.js} +2 -2
  270. package/__chunks__/{chunk-ZFV4CQKS.js → chunk-I675HV3Q.js} +2 -2
  271. package/__chunks__/{chunk-46ERJLYO.js → chunk-I675Z2HR.js} +2 -2
  272. package/__chunks__/{chunk-NP75CK5K.js → chunk-IBIVADZ5.js} +2 -2
  273. package/__chunks__/chunk-IESJR2XH.js +2 -0
  274. package/__chunks__/{chunk-5BSBOUCX.js → chunk-ITXKZNN5.js} +2 -2
  275. package/__chunks__/chunk-IWLXRUG7.js +2 -0
  276. package/__chunks__/chunk-J42ZO72F.js +2 -0
  277. package/__chunks__/{chunk-7R6DOLZU.js → chunk-JQSLNKUR.js} +2 -2
  278. package/__chunks__/chunk-JXBGE6XB.js +2 -0
  279. package/__chunks__/{chunk-AKJDIDYD.js → chunk-KFEBPTJG.js} +2 -2
  280. package/__chunks__/{chunk-EUGL7XGM.js → chunk-KI2QJGAZ.js} +2 -2
  281. package/__chunks__/chunk-KUBNB3TA.js +2 -0
  282. package/__chunks__/chunk-KXTNHT7K.js +57 -0
  283. package/__chunks__/{chunk-FESULEWX.js → chunk-L2WG7L45.js} +2 -2
  284. package/__chunks__/{chunk-UMKXWTV2.js → chunk-L4MPILCZ.js} +2 -2
  285. package/__chunks__/chunk-L4O2UNQX.js +2 -0
  286. package/__chunks__/{chunk-EVFGPQIL.js → chunk-LSHREDN3.js} +2 -2
  287. package/__chunks__/chunk-LZW5J2XF.js +2 -0
  288. package/__chunks__/{chunk-GYOII7OG.js → chunk-M5A6L4R7.js} +2 -2
  289. package/__chunks__/{chunk-ZSHCWSP5.js → chunk-M5OKKDHE.js} +2 -2
  290. package/__chunks__/{chunk-3CONNSW7.js → chunk-M6VW3ICU.js} +2 -2
  291. package/__chunks__/{chunk-5I2FD5O5.js → chunk-M6XJNYK2.js} +2 -2
  292. package/__chunks__/{chunk-VPC4SBTZ.js → chunk-MBRRU5L4.js} +1 -1
  293. package/__chunks__/{chunk-XAGE4KRZ.js → chunk-MEHZ626X.js} +2 -2
  294. package/__chunks__/{chunk-PLMIUYY5.js → chunk-MF6PETFJ.js} +2 -2
  295. package/__chunks__/{chunk-R3CXARAD.js → chunk-MR7EFYRY.js} +2 -2
  296. package/__chunks__/{chunk-F2BL3OD2.js → chunk-MTXHMC6X.js} +2 -2
  297. package/__chunks__/{chunk-YBPITN37.js → chunk-MZYF7CRQ.js} +2 -2
  298. package/__chunks__/{chunk-KVHHEUKL.js → chunk-NAJD745N.js} +2 -2
  299. package/__chunks__/{chunk-PC57KD2A.js → chunk-NOGSBH54.js} +2 -2
  300. package/__chunks__/{chunk-CXMQKITI.js → chunk-NOLD2EUL.js} +2 -2
  301. package/__chunks__/{chunk-QURETWI6.js → chunk-NQOIR467.js} +2 -2
  302. package/__chunks__/{chunk-UFJ4C6PS.js → chunk-NUJCAYS2.js} +2 -2
  303. package/__chunks__/chunk-NVREM3LI.js +2 -0
  304. package/__chunks__/chunk-NWS2Y4S5.js +2 -0
  305. package/__chunks__/{chunk-V4PPH6FH.js → chunk-O57XQIXI.js} +2 -2
  306. package/__chunks__/{chunk-PWFIZV5S.js → chunk-O7D56AQB.js} +2 -2
  307. package/__chunks__/chunk-O7HJXABK.js +2 -0
  308. package/__chunks__/{chunk-NOMY5E2S.js → chunk-O7X7ZSZA.js} +2 -2
  309. package/__chunks__/{chunk-EBNYKLBJ.js → chunk-OEKBAJFT.js} +2 -2
  310. package/__chunks__/{chunk-DYJ3YJ7U.js → chunk-OLYDOTTT.js} +2 -2
  311. package/__chunks__/{chunk-IJYZWLTS.js → chunk-ONXXXCCF.js} +2 -2
  312. package/__chunks__/{chunk-E4BHF5MU.js → chunk-OS3G46C4.js} +2 -2
  313. package/__chunks__/chunk-OU5R72PN.js +2 -0
  314. package/__chunks__/{chunk-U4UUL4FL.js → chunk-P4XOYAM3.js} +2 -2
  315. package/__chunks__/{chunk-3E2PYJV4.js → chunk-PGLI2BUK.js} +2 -2
  316. package/__chunks__/{chunk-EUJTLTQD.js → chunk-PL5HCJS2.js} +2 -2
  317. package/__chunks__/{chunk-KXHFGGDD.js → chunk-POFVND2J.js} +2 -2
  318. package/__chunks__/{chunk-VUE67EOD.js → chunk-PZ26EQZB.js} +2 -2
  319. package/__chunks__/{chunk-JTX4QLA7.js → chunk-Q3MUOY6H.js} +2 -2
  320. package/__chunks__/{chunk-HURQFKO3.js → chunk-Q4AWRUTV.js} +2 -2
  321. package/__chunks__/{chunk-K4REG42F.js → chunk-QDRCUDP3.js} +2 -2
  322. package/__chunks__/{chunk-6QTUVO7C.js → chunk-QFSWBLGO.js} +2 -2
  323. package/__chunks__/{chunk-KIHB3QJD.js → chunk-QHPKVIYS.js} +2 -2
  324. package/__chunks__/{chunk-UGYNUFO7.js → chunk-QNQWC6P3.js} +2 -2
  325. package/__chunks__/chunk-QT3UEYNX.js +19 -0
  326. package/__chunks__/chunk-QV3N2FKW.js +2 -0
  327. package/__chunks__/{chunk-CZI4Y6B7.js → chunk-R2QVKZBO.js} +2 -2
  328. package/__chunks__/{chunk-UIK55M3S.js → chunk-R3MLEQHY.js} +2 -2
  329. package/__chunks__/{chunk-CGQQEMES.js → chunk-RLE3NYEW.js} +2 -2
  330. package/__chunks__/{chunk-ZJGO5ADJ.js → chunk-S2GAO6UX.js} +2 -2
  331. package/__chunks__/chunk-S46XGVD5.js +2 -0
  332. package/__chunks__/{chunk-SYPKT66I.js → chunk-SAL5XWTD.js} +2 -2
  333. package/__chunks__/chunk-SCVYE6JT.js +47 -0
  334. package/__chunks__/{chunk-X2FD6DGB.js → chunk-SDTJKQU5.js} +2 -2
  335. package/__chunks__/chunk-SFEWR7BS.js +2 -0
  336. package/__chunks__/{chunk-P2AJDGMY.js → chunk-SJCRRR6L.js} +2 -2
  337. package/__chunks__/{chunk-TVLX5GPZ.js → chunk-SQ7IQK5E.js} +2 -2
  338. package/__chunks__/chunk-SSFKNABB.js +2 -0
  339. package/__chunks__/chunk-STXBLUHN.js +2 -0
  340. package/__chunks__/{chunk-L3H42RRW.js → chunk-SUYOSDTM.js} +2 -2
  341. package/__chunks__/{chunk-A7UDFQ5F.js → chunk-T5CHEKO5.js} +2 -2
  342. package/__chunks__/chunk-TIAUVOIC.js +2 -0
  343. package/__chunks__/{chunk-G2QHJ2XP.js → chunk-TLT7GLC4.js} +2 -2
  344. package/__chunks__/{chunk-ZVTXEJBP.js → chunk-TQODVG6Y.js} +2 -2
  345. package/__chunks__/{chunk-4AVPCNDL.js → chunk-TWPPOVG4.js} +2 -2
  346. package/__chunks__/{chunk-6TATVFAX.js → chunk-TXRHRGYN.js} +2 -2
  347. package/__chunks__/{chunk-KJQUO2IV.js → chunk-TYNIHZ2F.js} +2 -2
  348. package/__chunks__/{chunk-DIBPVHBE.js → chunk-TYY6DXW7.js} +2 -2
  349. package/__chunks__/chunk-UABIYQ6M.js +2 -0
  350. package/__chunks__/{chunk-G7PK6AE5.js → chunk-UCB6W4H6.js} +2 -2
  351. package/__chunks__/{chunk-EMUTI73J.js → chunk-UM4YXHT3.js} +2 -2
  352. package/__chunks__/{chunk-MNOORHIP.js → chunk-UMYS2AMR.js} +2 -2
  353. package/__chunks__/{chunk-FNSK3BDL.js → chunk-UNHYL6Q6.js} +2 -2
  354. package/__chunks__/{chunk-X4NNUSDC.js → chunk-UUXCBWKH.js} +2 -2
  355. package/__chunks__/{chunk-DU6WRC6O.js → chunk-UZBMRAWK.js} +2 -2
  356. package/__chunks__/{chunk-5EJQ7LMW.js → chunk-VPJUXKVI.js} +2 -2
  357. package/__chunks__/{chunk-M3I4O3G5.js → chunk-VPLUOQCI.js} +2 -2
  358. package/__chunks__/{chunk-I6IBK3FD.js → chunk-VQTEJ3AP.js} +2 -2
  359. package/__chunks__/{chunk-AAXRYRET.js → chunk-VRRJ4BPR.js} +2 -2
  360. package/__chunks__/{chunk-X5PEMHOG.js → chunk-VSQVMYTY.js} +2 -2
  361. package/__chunks__/{chunk-ITVLXZP5.js → chunk-VZFHNTNV.js} +2 -2
  362. package/__chunks__/chunk-VZFMF74W.js +2 -0
  363. package/__chunks__/{chunk-V5CIYQAI.js → chunk-W45PYD3T.js} +2 -2
  364. package/__chunks__/{chunk-7PP3DJ3R.js → chunk-WF6ZREHE.js} +2 -2
  365. package/__chunks__/chunk-WNPYLDRK.js +2 -0
  366. package/__chunks__/{chunk-IMFEACMA.js → chunk-WP4VSJLM.js} +2 -2
  367. package/__chunks__/{chunk-J4OGUYVE.js → chunk-WQXZ3B7N.js} +2 -2
  368. package/__chunks__/chunk-WVYISK4S.js +2 -0
  369. package/__chunks__/chunk-WYDY4YCE.js +2 -0
  370. package/__chunks__/{chunk-SCUTEW65.js → chunk-X2UZEO3X.js} +2 -2
  371. package/__chunks__/chunk-X7IULTI5.js +2 -0
  372. package/__chunks__/{chunk-BPWXH2JC.js → chunk-XFUWIPDA.js} +2 -2
  373. package/__chunks__/{chunk-WYKJR3WY.js → chunk-XRTAHRSN.js} +2 -2
  374. package/__chunks__/{chunk-FTAXM46X.js → chunk-Y6YYQUMU.js} +2 -2
  375. package/__chunks__/{chunk-GOXZEFNK.js → chunk-Y7EFNXJI.js} +2 -2
  376. package/__chunks__/{chunk-FFCSCCBR.js → chunk-YFHQA22L.js} +2 -2
  377. package/__chunks__/{chunk-FN25L7A7.js → chunk-YQPZXVIA.js} +2 -2
  378. package/__chunks__/{chunk-XUJE6SOS.js → chunk-YQTVZKOA.js} +2 -2
  379. package/__chunks__/chunk-YRN2GSXN.js +2 -0
  380. package/__chunks__/{chunk-NP7576YC.js → chunk-YYIAF5XK.js} +2 -2
  381. package/__chunks__/{chunk-3RI5XXDO.js → chunk-YYWNWSLA.js} +2 -2
  382. package/__chunks__/{chunk-PNAWHW55.js → chunk-YZA5FV7Z.js} +2 -2
  383. package/__chunks__/{chunk-I7DSJC5Q.js → chunk-Z7WX5JMQ.js} +2 -2
  384. package/__chunks__/{chunk-DVCSIJMP.js → chunk-ZBFOYDJR.js} +2 -2
  385. package/__chunks__/chunk-ZEC4NE5N.js +85 -0
  386. package/__chunks__/chunk-ZRZ3IURE.js +2 -0
  387. package/__chunks__/chunk-ZUK5MUY7.js +2 -0
  388. package/__chunks__/{chunk-VHXH2VX5.js → chunk-ZXXRMWLI.js} +2 -2
  389. package/__commonjs/UI/DappModal/components/DappModal.js +3 -3
  390. package/__commonjs/UI/DappModal/components/DappModalHeader.js +2 -2
  391. package/__commonjs/UI/DappModal/components/index.js +3 -3
  392. package/__commonjs/UI/DappModal/dappModal.types.js +1 -1
  393. package/__commonjs/UI/DappModal/index.js +3 -3
  394. package/__commonjs/UI/ModalContainer/ModalContainer.js +3 -3
  395. package/__commonjs/UI/ModalContainer/index.js +3 -3
  396. package/__commonjs/UI/NotificationModal/index.js +4 -4
  397. package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +14 -14
  398. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +5 -5
  399. package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +5 -5
  400. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +5 -5
  401. package/__commonjs/UI/SignTransactionsModals/SignWithOperaModal/index.js +5 -5
  402. package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +5 -5
  403. package/__commonjs/UI/SignTransactionsModals/index.js +14 -14
  404. package/__commonjs/UI/TransactionInfo/TransactionInfo.js +26 -26
  405. package/__commonjs/UI/TransactionInfo/components/DataField/DataField.js +7 -7
  406. package/__commonjs/UI/TransactionInfo/components/DataField/components/ModalLink/ModalLink.js +3 -3
  407. package/__commonjs/UI/TransactionInfo/components/DataField/components/ModalLink/index.js +3 -3
  408. package/__commonjs/UI/TransactionInfo/components/DataField/components/index.js +3 -3
  409. package/__commonjs/UI/TransactionInfo/components/DataField/index.js +7 -7
  410. package/__commonjs/UI/TransactionInfo/components/index.js +22 -22
  411. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +8 -8
  412. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +9 -9
  413. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +27 -27
  414. package/__commonjs/UI/TransactionInfo/index.js +22 -22
  415. package/__commonjs/UI/index.js +507 -153
  416. package/__commonjs/UI/ledger/LedgerLoginButton/index.js +483 -9
  417. package/__commonjs/UI/ledger/LedgerLoginContainer/AddressRow.js +206 -3
  418. package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable.js +323 -6
  419. package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +39 -2673
  420. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerConnect.js +61 -3
  421. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoading/LedgerLoading.js +2720 -0
  422. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoading/index.js +2720 -0
  423. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoading/ledgerLoadingStyles.js +26 -0
  424. package/__commonjs/UI/ledger/LedgerLoginContainer/addressRowStyles.js +92 -0
  425. package/__commonjs/UI/ledger/LedgerLoginContainer/addressTableStyles.js +100 -3
  426. package/__commonjs/UI/ledger/LedgerLoginContainer/confirmAddressStyles.js +63 -0
  427. package/__commonjs/UI/ledger/LedgerLoginContainer/enums.js +9 -0
  428. package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +535 -61
  429. package/__commonjs/UI/ledger/LedgerLoginContainer/ledgerConnectStyles.js +55 -2
  430. package/__commonjs/UI/ledger/LedgerLoginContainer/ledgerLoginContainerStyles.js +54 -0
  431. package/__commonjs/UI/ledger/LedgerLoginContainer/types.js +9 -0
  432. package/__commonjs/UI/ledger/index.js +536 -62
  433. package/__commonjs/UI/pages/UnlockPage/index.js +486 -12
  434. package/__commonjs/UI/pages/index.js +486 -12
  435. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +6 -6
  436. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +4 -4
  437. package/__commonjs/UI/walletConnect/index.js +6 -6
  438. package/__commonjs/hooks/index.js +1 -1
  439. package/__commonjs/hooks/login/index.js +1 -1
  440. package/__commonjs/hooks/login/useLedgerLogin.js +1 -1
  441. package/__commonjs/hooks/transactions/index.js +1 -1
  442. package/__commonjs/hooks/transactions/useSignMultipleTransactions.js +1 -1
  443. package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  444. package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  445. package/__commonjs/utils/internal/getLedgerErrorCodes.js +1 -1
  446. package/__commonjs/utils/internal/index.js +1 -1
  447. package/__mocks__/index.js +1 -1
  448. package/__mocks__/utils/index.js +1 -1
  449. package/__mocks__/utils/renderWithProvider.js +1 -1
  450. package/apiCalls/accounts/getAccountFromApi.js +1 -1
  451. package/apiCalls/accounts/index.js +1 -1
  452. package/apiCalls/configuration/getNetworkConfig.js +1 -1
  453. package/apiCalls/configuration/index.js +1 -1
  454. package/apiCalls/getScamAddressData.js +1 -1
  455. package/apiCalls/index.js +1 -1
  456. package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  457. package/apiCalls/transactions/index.js +1 -1
  458. package/apiCalls/transactions/sendSignedTransactions.js +1 -1
  459. package/apiCalls/utils/getCleanApiAddress.js +1 -1
  460. package/apiCalls/utils/index.js +1 -1
  461. package/components/LogoutListener/LogoutListener.js +1 -1
  462. package/components/LogoutListener/helpers/index.js +1 -1
  463. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  464. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  465. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  466. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  467. package/components/LogoutListener/index.js +1 -1
  468. package/components/ProviderInitializer.js +1 -1
  469. package/components/TransactionSender/TransactionSender.js +1 -1
  470. package/components/TransactionSender/index.js +1 -1
  471. package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
  472. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  473. package/components/TransactionsTracker/index.js +1 -1
  474. package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  475. package/hooks/account/index.js +1 -1
  476. package/hooks/account/useGetAccount.js +1 -1
  477. package/hooks/account/useGetAccountInfo.js +1 -1
  478. package/hooks/account/useGetIsLoggedIn.js +1 -1
  479. package/hooks/account/useGetLoginInfo.js +1 -1
  480. package/hooks/account/useGetWebsocketEvent.js +1 -1
  481. package/hooks/index.js +1 -1
  482. package/hooks/login/index.js +1 -1
  483. package/hooks/login/useExtensionLogin.js +1 -1
  484. package/hooks/login/useLedgerLogin.js +1 -1
  485. package/hooks/login/useLoginService.js +1 -1
  486. package/hooks/login/useOperaLogin.js +1 -1
  487. package/hooks/login/useWalletConnectLogin.js +1 -1
  488. package/hooks/login/useWalletConnectV2Login.js +1 -1
  489. package/hooks/login/useWebViewLogin.js +1 -1
  490. package/hooks/login/useWebWalletLogin.js +1 -1
  491. package/hooks/signMessage/index.js +1 -1
  492. package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  493. package/hooks/signMessage/useGetSignMessageSession.js +1 -1
  494. package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
  495. package/hooks/signMessage/useSignMessage.js +1 -1
  496. package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
  497. package/hooks/transactions/helpers/index.js +1 -1
  498. package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
  499. package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
  500. package/hooks/transactions/index.js +1 -1
  501. package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
  502. package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  503. package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
  504. package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
  505. package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  506. package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  507. package/hooks/transactions/useGetFailedTransactions.js +1 -1
  508. package/hooks/transactions/useGetPendingTransactions.js +1 -1
  509. package/hooks/transactions/useGetSignTransactionsError.js +1 -1
  510. package/hooks/transactions/useGetSignedTransactions.js +1 -1
  511. package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  512. package/hooks/transactions/useGetTokenDetails.js +1 -1
  513. package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
  514. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  515. package/hooks/transactions/useSignMultipleTransactions.js +1 -1
  516. package/hooks/transactions/useSignTransactions.js +1 -1
  517. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  518. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  519. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  520. package/hooks/transactions/useTrackTransactionStatus.js +1 -1
  521. package/hooks/useGetNetworkConfig.js +1 -1
  522. package/hooks/useGetNotification.js +1 -1
  523. package/hooks/userInterface/index.js +1 -1
  524. package/hooks/userInterface/useIsDappModalVisible.js +1 -1
  525. package/hooks/websocketListener/index.js +1 -1
  526. package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
  527. package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  528. package/package.json +1 -1
  529. package/providers/webviewProvider/index.js +1 -1
  530. package/providers/webviewProvider/requestMethods.js +1 -1
  531. package/providers/webviewProvider/webviewProvider.js +1 -1
  532. package/reduxStore/DappProviderContext.js +1 -1
  533. package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
  534. package/reduxStore/persistConfig.js +1 -1
  535. package/reduxStore/persistedRootReducer.js +1 -1
  536. package/reduxStore/reducers.js +1 -1
  537. package/reduxStore/rootReducer.js +1 -1
  538. package/reduxStore/selectors/accountInfoSelectors.js +1 -1
  539. package/reduxStore/selectors/index.js +1 -1
  540. package/reduxStore/selectors/loginInfoSelectors.js +1 -1
  541. package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
  542. package/reduxStore/selectors/transactionsSelectors.js +1 -1
  543. package/reduxStore/slices/index.js +1 -1
  544. package/reduxStore/slices/networkConfigSlice.js +1 -1
  545. package/reduxStore/store.js +1 -1
  546. package/services/index.js +1 -1
  547. package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
  548. package/services/transactions/clearTransactions.js +1 -1
  549. package/services/transactions/index.js +1 -1
  550. package/services/transactions/sendTransactions.js +1 -1
  551. package/services/transactions/signTransactions.js +1 -1
  552. package/services/transactions/transformAndSignTransactions.js +1 -1
  553. package/services/transactions/utils.js +1 -1
  554. package/utils/account/getAccount.js +1 -1
  555. package/utils/account/getAccountBalance.js +1 -1
  556. package/utils/account/getAccountShard.js +1 -1
  557. package/utils/account/getAddress.js +1 -1
  558. package/utils/account/getLatestNonce.js +1 -1
  559. package/utils/account/index.js +1 -1
  560. package/utils/account/loginWithExternalProvider.js +1 -1
  561. package/utils/account/refreshAccount.js +1 -1
  562. package/utils/account/setNonce.js +1 -1
  563. package/utils/account/signMessage.js +1 -1
  564. package/utils/getIsLoggedIn.js +1 -1
  565. package/utils/index.js +1 -1
  566. package/utils/internal/getLedgerErrorCodes.js +1 -1
  567. package/utils/internal/index.js +1 -1
  568. package/utils/logout.js +1 -1
  569. package/utils/network/getChainID.js +1 -1
  570. package/utils/network/getEgldLabel.js +1 -1
  571. package/utils/network/getNetworkConfig.js +1 -1
  572. package/utils/network/index.js +1 -1
  573. package/utils/operations/calculateFeeLimit.js +1 -1
  574. package/utils/operations/index.js +1 -1
  575. package/utils/toasts/customToastsActions.js +1 -1
  576. package/utils/toasts/index.js +1 -1
  577. package/utils/transactions/getAllTransactionsLink.js +1 -1
  578. package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
  579. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
  580. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
  581. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
  582. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
  583. package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
  584. package/utils/transactions/getInterpretedTransaction/index.js +1 -1
  585. package/utils/transactions/getTransactionLink.js +1 -1
  586. package/utils/transactions/index.js +1 -1
  587. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
  588. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
  589. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
  590. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
  591. package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
  592. package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
  593. package/utils/transactions/transactionInfoHelpers/index.js +1 -1
  594. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
  595. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
  596. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/transactionActionUnwrapper.js +1 -1
  597. package/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
  598. package/utils/validation/index.js +1 -1
  599. package/web/hooks/index.js +1 -1
  600. package/web/hooks/useIdleTimer.js +1 -1
  601. package/web/index.js +1 -1
  602. package/wrappers/AppInitializer.js +1 -1
  603. package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  604. package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
  605. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
  606. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
  607. package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  608. package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  609. package/wrappers/AxiosInterceptorContext/index.js +1 -1
  610. package/wrappers/DappProvider/CustomComponents.js +1 -1
  611. package/wrappers/DappProvider/index.js +1 -1
  612. package/wrappers/index.js +1 -1
  613. package/UI/ledger/LedgerLoginContainer/loginModalStyles.js +0 -4
  614. package/__chunks__/chunk-2NWUS3DO.js +0 -4
  615. package/__chunks__/chunk-2OTLJG4V.js +0 -2
  616. package/__chunks__/chunk-2PR6KCLR.js +0 -2
  617. package/__chunks__/chunk-4KFAEROZ.js +0 -2
  618. package/__chunks__/chunk-4SR7KI3H.js +0 -2
  619. package/__chunks__/chunk-52KF3Y4S.js +0 -2
  620. package/__chunks__/chunk-52KO2CZL.js +0 -2
  621. package/__chunks__/chunk-5Z6U4HW3.js +0 -2
  622. package/__chunks__/chunk-6MDGZFLI.js +0 -4
  623. package/__chunks__/chunk-6STOJAVA.js +0 -2
  624. package/__chunks__/chunk-6ZSZ3BBE.js +0 -2
  625. package/__chunks__/chunk-6ZYPGWOW.js +0 -2
  626. package/__chunks__/chunk-AYYUBLEX.js +0 -2
  627. package/__chunks__/chunk-ETBGCP2D.js +0 -2
  628. package/__chunks__/chunk-FET2P3GJ.js +0 -2
  629. package/__chunks__/chunk-FGKDZDQZ.js +0 -2
  630. package/__chunks__/chunk-FWDX45MI.js +0 -2
  631. package/__chunks__/chunk-HJP7U7JM.js +0 -2
  632. package/__chunks__/chunk-JTRBY2EM.js +0 -2
  633. package/__chunks__/chunk-K7F5DDHD.js +0 -2
  634. package/__chunks__/chunk-KUWR52WT.js +0 -2
  635. package/__chunks__/chunk-LAUGFAWR.js +0 -2
  636. package/__chunks__/chunk-LI4Z3BPV.js +0 -2
  637. package/__chunks__/chunk-MOTQTNZX.js +0 -2
  638. package/__chunks__/chunk-NO3K5IID.js +0 -2
  639. package/__chunks__/chunk-PDCOGFGC.js +0 -2
  640. package/__chunks__/chunk-ROFUQJPL.js +0 -2
  641. package/__chunks__/chunk-ROPQHZ7M.js +0 -2
  642. package/__chunks__/chunk-RTALTTHJ.js +0 -2
  643. package/__chunks__/chunk-T6KRDYJZ.js +0 -2
  644. package/__chunks__/chunk-TTYYUL4W.js +0 -2
  645. package/__chunks__/chunk-U6AECGCL.js +0 -2
  646. package/__chunks__/chunk-WZGRP2AT.js +0 -2
  647. package/__chunks__/chunk-XCIXAKQV.js +0 -2
  648. package/__chunks__/chunk-XQHSG7PK.js +0 -2
  649. package/__chunks__/chunk-YKB2OO2V.js +0 -2
  650. package/__chunks__/chunk-YLLIHJY3.js +0 -2
  651. package/__commonjs/UI/ledger/LedgerLoginContainer/loginModalStyles.js +0 -11
@@ -1,4 +1,4 @@
1
- "use strict";var Ts=Object.create;var Ee=Object.defineProperty,ys=Object.defineProperties,hs=Object.getOwnPropertyDescriptor,xs=Object.getOwnPropertyDescriptors,Ss=Object.getOwnPropertyNames,qe=Object.getOwnPropertySymbols,ws=Object.getPrototypeOf,_t=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable;var en=(e,t,r)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))_t.call(t,r)&&en(e,r,t[r]);if(qe)for(var r of qe(t))tn.call(t,r)&&en(e,r,t[r]);return e},I=(e,t)=>ys(e,xs(t));var rn=(e,t)=>{var r={};for(var o in e)_t.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&qe)for(var o of qe(e))t.indexOf(o)<0&&tn.call(e,o)&&(r[o]=e[o]);return r};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var je=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pe=(e,t)=>{for(var r in t)Ee(e,r,{get:t[r],enumerable:!0})},nn=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ss(t))!_t.call(e,i)&&i!==r&&Ee(e,i,{get:()=>t[i],enumerable:!(o=hs(t,i))||o.enumerable});return e};var v=(e,t,r)=>(r=e!=null?Ts(ws(e)):{},nn(t||!e||!e.__esModule?Ee(r,"default",{value:e,enumerable:!0}):r,e)),ke=e=>nn(Ee({},"__esModule",{value:!0}),e);var C=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(g){i(g)}},p=m=>{try{d(r.throw(m))}catch(g){i(g)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var an=je(ze=>{"use strict";n();ze.byteLength=vs;ze.toByteArray=bs;ze.fromByteArray=Ls;var j=[],V=[],Is=typeof Uint8Array!="undefined"?Uint8Array:Array,Ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ue=0,on=Ot.length;ue<on;++ue)j[ue]=Ot[ue],V[Ot.charCodeAt(ue)]=ue;var ue,on;V["-".charCodeAt(0)]=62;V["_".charCodeAt(0)]=63;function sn(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 vs(e){var t=sn(e),r=t[0],o=t[1];return(r+o)*3/4-o}function As(e,t,r){return(t+r)*3/4-r}function bs(e){var t,r=sn(e),o=r[0],i=r[1],l=new Is(As(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=V[e.charCodeAt(m)]<<18|V[e.charCodeAt(m+1)]<<12|V[e.charCodeAt(m+2)]<<6|V[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=V[e.charCodeAt(m)]<<2|V[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=V[e.charCodeAt(m)]<<10|V[e.charCodeAt(m+1)]<<4|V[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Es(e){return j[e>>18&63]+j[e>>12&63]+j[e>>6&63]+j[e&63]}function ks(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(Es(o));return i.join("")}function Ls(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(ks(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(j[t>>2]+j[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(j[t>>10]+j[t>>4&63]+j[t<<2&63]+"=")),i.join("")}});var cn=je(Ft=>{n();Ft.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,g=m>>1,f=-7,T=r?i-1:0,w=r?-1:1,y=e[t+T];for(T+=w,l=y&(1<<-f)-1,y>>=-f,f+=d;f>0;l=l*256+e[t+T],T+=w,f-=8);for(p=l&(1<<-f)-1,l>>=-f,f+=o;f>0;p=p*256+e[t+T],T+=w,f-=8);if(l===0)l=1-g;else{if(l===m)return p?NaN:(y?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-g}return(y?-1:1)*p*Math.pow(2,l-o)};Ft.write=function(e,t,r,o,i,l){var p,d,m,g=l*8-i-1,f=(1<<g)-1,T=f>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=o?0:l-1,A=o?1:-1,N=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,p=f):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+T>=1?t+=w/m:t+=w*Math.pow(2,1-T),t*m>=2&&(p++,m/=2),p+T>=f?(d=0,p=f):p+T>=1?(d=(t*m-1)*Math.pow(2,i),p=p+T):(d=t*Math.pow(2,T-1)*Math.pow(2,i),p=0));i>=8;e[r+y]=d&255,y+=A,d/=256,i-=8);for(p=p<<i|d,g+=i;g>0;e[r+y]=p&255,y+=A,p/=256,g-=8);e[r+y-A]|=N*128}});var wn=je(ye=>{"use strict";n();var Ut=an(),Te=cn(),ln=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ye.Buffer=u;ye.SlowBuffer=Ms;ye.INSPECT_MAX_BYTES=50;var Ke=2147483647;ye.kMaxLength=Ke;u.TYPED_ARRAY_SUPPORT=Ds();!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 Ds(){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 J(e){if(e>Ke)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 Wt(e)}return dn(e,t,r)}u.poolSize=8192;function dn(e,t,r){if(typeof e=="string")return Ps(e,t);if(ArrayBuffer.isView(e))return Cs(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(z(e,ArrayBuffer)||e&&z(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(z(e,SharedArrayBuffer)||e&&z(e.buffer,SharedArrayBuffer)))return $t(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=Rs(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 mn(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 Ns(e,t,r){return mn(e),e<=0?J(e):t!==void 0?typeof r=="string"?J(e).fill(t,r):J(e).fill(t):J(e)}u.alloc=function(e,t,r){return Ns(e,t,r)};function Wt(e){return mn(e),J(e<0?0:Gt(e)|0)}u.allocUnsafe=function(e){return Wt(e)};u.allocUnsafeSlow=function(e){return Wt(e)};function Ps(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=gn(e,t)|0,o=J(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Bt(e){for(var t=e.length<0?0:Gt(e.length)|0,r=J(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function Cs(e){if(z(e,Uint8Array)){var t=new Uint8Array(e);return $t(t.buffer,t.byteOffset,t.byteLength)}return Bt(e)}function $t(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 Rs(e){if(u.isBuffer(e)){var t=Gt(e.length)|0,r=J(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Ht(e.length)?J(0):Bt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Bt(e.data)}function Gt(e){if(e>=Ke)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ke.toString(16)+" bytes");return e|0}function Ms(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(z(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),z(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(z(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 gn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||z(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 Vt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Sn(e).length;default:if(i)return o?-1:Vt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=gn;function _s(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 Tn(this,t,r);case"ascii":return Gs(this,t,r);case"latin1":case"binary":return Hs(this,t,r);case"base64":return Vs(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 de(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)de(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)de(this,r,r+3),de(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)de(this,r,r+7),de(this,r+1,r+6),de(this,r+2,r+5),de(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Tn(this,0,t):_s.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=ye.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(z(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,d=o-r,m=Math.min(p,d),g=this.slice(i,l),f=t.slice(r,o),T=0;T<m;++T)if(g[T]!==f[T]){p=g[T],d=f[T];break}return p<d?-1:d<p?1:0};function fn(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,Ht(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:pn(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):pn(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function pn(e,t,r,o,i){var l=1,p=e.length,d=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,d/=2,r/=2}function m(y,A){return l===1?y[A]:y.readUInt16BE(A*l)}var g;if(i){var f=-1;for(g=r;g<p;g++)if(m(e,g)===m(t,f===-1?0:g-f)){if(f===-1&&(f=g),g-f+1===d)return f*l}else f!==-1&&(g-=g-f),f=-1}else for(r+d>p&&(r=p-d),g=r;g>=0;g--){for(var T=!0,w=0;w<d;w++)if(m(e,g+w)!==m(t,w)){T=!1;break}if(T)return g}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return fn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return fn(this,t,r,o,!1)};function Os(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 d=parseInt(t.substr(p*2,2),16);if(Ht(d))return p;e[r+p]=d}return p}function Fs(e,t,r,o){return Ye(Vt(t,e.length-r),e,r,o)}function Us(e,t,r,o){return Ye(Ys(t),e,r,o)}function Bs(e,t,r,o){return Ye(Sn(t),e,r,o)}function $s(e,t,r,o){return Ye(Zs(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 Os(this,t,r,o);case"utf8":case"utf-8":return Fs(this,t,r,o);case"ascii":case"latin1":case"binary":return Us(this,t,r,o);case"base64":return Bs(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $s(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 Vs(e,t,r){return t===0&&r===e.length?Ut.fromByteArray(e):Ut.fromByteArray(e.slice(t,r))}function Tn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,g,f,T;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(T=(l&31)<<6|m&63,T>127&&(p=T));break;case 3:m=e[i+1],g=e[i+2],(m&192)===128&&(g&192)===128&&(T=(l&15)<<12|(m&63)<<6|g&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:m=e[i+1],g=e[i+2],f=e[i+3],(m&192)===128&&(g&192)===128&&(f&192)===128&&(T=(l&15)<<18|(m&63)<<12|(g&63)<<6|f&63,T>65535&&T<1114112&&(p=T))}}p===null?(p=65533,d=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=d}return Ws(o)}var un=4096;function Ws(e){var t=e.length;if(t<=un)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=un));return r}function Gs(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 Hs(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+=Xs[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 D(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||D(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||D(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||D(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||D(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||D(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||D(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||D(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||D(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||D(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||D(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||D(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||D(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||D(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||D(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||D(t,4,this.length),Te.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||D(t,4,this.length),Te.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||D(t,8,this.length),Te.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||D(t,8,this.length),Te.read(this,t,!1,52,8)};function U(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;U(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=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;U(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||U(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||U(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||U(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||U(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||U(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);U(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&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);U(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||U(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||U(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||U(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||U(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||U(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 yn(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 hn(e,t,r,o,i){return t=+t,r=r>>>0,i||yn(e,t,r,4,34028234663852886e22,-34028234663852886e22),Te.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return hn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return hn(this,t,r,!1,o)};function xn(e,t,r,o,i){return t=+t,r=r>>>0,i||yn(e,t,r,8,17976931348623157e292,-17976931348623157e292),Te.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return xn(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return xn(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 d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var zs=/[^+/0-9A-Za-z-_]/g;function Ks(e){if(e=e.split("=")[0],e=e.trim().replace(zs,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Vt(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 Ys(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Zs(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 Sn(e){return Ut.toByteArray(Ks(e))}function Ye(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 z(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Ht(e){return e!==e}var Xs=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 En=je((Nc,bn)=>{n();var E=bn.exports={},K,Y;function qt(){throw new Error("setTimeout has not been defined")}function jt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?K=setTimeout:K=qt}catch(e){K=qt}try{typeof clearTimeout=="function"?Y=clearTimeout:Y=jt}catch(e){Y=jt}})();function In(e){if(K===setTimeout)return setTimeout(e,0);if((K===qt||!K)&&setTimeout)return K=setTimeout,setTimeout(e,0);try{return K(e,0)}catch(t){try{return K.call(null,e,0)}catch(r){return K.call(this,e,0)}}}function Qs(e){if(Y===clearTimeout)return clearTimeout(e);if((Y===jt||!Y)&&clearTimeout)return Y=clearTimeout,clearTimeout(e);try{return Y(e)}catch(t){try{return Y.call(null,e)}catch(r){return Y.call(this,e)}}}var ee=[],he=!1,me,Ze=-1;function Js(){!he||!me||(he=!1,me.length?ee=me.concat(ee):Ze=-1,ee.length&&vn())}function vn(){if(!he){var e=In(Js);he=!0;for(var t=ee.length;t;){for(me=ee,ee=[];++Ze<t;)me&&me[Ze].run();Ze=-1,t=ee.length}me=null,he=!1,Qs(e)}}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];ee.push(new An(e,t)),ee.length===1&&!he&&In(vn)};function An(e,t){this.fun=e,this.array=t}An.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function te(){}E.on=te;E.addListener=te;E.once=te;E.off=te;E.removeListener=te;E.removeAllListeners=te;E.emit=te;E.prependListener=te;E.prependOnceListener=te;E.listeners=function(e){return[]};E.binding=function(e){throw new Error("process.binding is not supported")};E.cwd=function(){return"/"};E.chdir=function(e){throw new Error("process.chdir is not supported")};E.umask=function(){return 0}});var s,a,Pc,n=x(()=>{s=v(wn()),a=v(En()),Pc=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 kn,zt=x(()=>{"use strict";n();kn="Transaction canceled"});var Ln=x(()=>{"use strict";n()});var Dn=x(()=>{"use strict";n()});var Nn=x(()=>{"use strict";n()});var W=x(()=>{"use strict";n()});var Pn=x(()=>{"use strict";n()});var Cn=x(()=>{"use strict";n()});var F=x(()=>{"use strict";n()});var Rn=x(()=>{"use strict";n()});var Mn=x(()=>{"use strict";n()});var H=x(()=>{"use strict";n();Ln();Dn();Nn();W();Pn();Cn();F();Rn();Mn()});var Kt,_n,Zc,On,Xc,Fn,Qc,Jc,el,Un=x(()=>{"use strict";n();H();Kt={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:_n,egldLabel:Zc}=Kt["devnet"],{chainId:On,egldLabel:Xc}=Kt["testnet"],{chainId:Fn,egldLabel:Qc}=Kt["mainnet"],Jc={["devnet"]:_n,["testnet"]:On,["mainnet"]:Fn},el={[_n]:"devnet",[On]:"testnet",[Fn]:"mainnet"}});var Yt,Zt=x(()=>{"use strict";n();Yt={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 Bn=x(()=>{"use strict";n()});var Xe,Xt=x(()=>{"use strict";n();Xe="transaction-status-toast-id"});var Z,$n=x(()=>{"use strict";n();Z=require("@multiversx/sdk-web-wallet-provider")});var Qt,Jt,Vn,Wn,er,Qe,Gn,xe,b=x(()=>{"use strict";n();zt();Un();Zt();Bn();Xt();$n();Qt=5e4,Jt=1e9,Vn=1,Wn="/dapp/init",er="signSession",Qe="logout",Gn="login",xe="0"});var Je,tr=x(()=>{"use strict";n();Je=()=>Date.now()/1e3});var Hn=x(()=>{"use strict";n()});var qn=x(()=>{"use strict";n()});var jn=x(()=>{"use strict";n();tr();Hn();qn()});var nr={};pe(nr,{getItem:()=>ta,localStorageKeys:()=>ge,removeItem:()=>ra,setItem:()=>ea});var ge,rr,ea,ta,ra,Le=x(()=>{"use strict";n();jn();ge={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},rr=typeof localStorage!="undefined",ea=({key:e,data:t,expires:r})=>{!rr||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},ta=e=>{if(!rr)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:Je()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},ra=e=>{!rr||localStorage.removeItem(String(e))}});var or={};pe(or,{clear:()=>Zn,getItem:()=>Kn,removeItem:()=>Yn,setItem:()=>zn,storage:()=>na});var zn,Kn,Yn,Zn,na,Xn=x(()=>{"use strict";n();zn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Kn=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},Yn=e=>sessionStorage.removeItem(String(e)),Zn=()=>sessionStorage.clear(),na={setItem:zn,getItem:Kn,removeItem:Yn,clear:Zn}});var Se,et=x(()=>{"use strict";n();Le();Xn();Se={session:or,local:nr}});var ir,R,tt,re=x(()=>{"use strict";n();ir=require("@reduxjs/toolkit");b();R=(0,ir.createAction)(Qe),tt=(0,ir.createAction)(Gn,e=>({payload:e}))});var ar,Qn,Jn,rt,sr,eo,to,Nl,ro,Pl,Cl,Rl,Ml,_l,Ol,Fl,no,cr=x(()=>{"use strict";n();ar=require("@multiversx/sdk-core"),Qn=require("@reduxjs/toolkit"),Jn=require("redux-persist");b();et();Le();re();rt={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:xe},sr={address:"",websocketEvent:null,accounts:{"":rt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},eo=(0,Qn.createSlice)({name:"accountInfoSlice",initialState:sr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new ar.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:rt},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(R,()=>(Se.local.removeItem(ge.loginExpiresAt),sr)),e.addCase(tt,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new ar.Address(o).hex()}),e.addCase(Jn.REHYDRATE,(t,r)=>{var g;if(!((g=r.payload)!=null&&g.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let m=p&&i in p;t.accounts=m?p:sr.accounts,t.publicKey=d})}}),{setAccount:to,setAddress:Nl,setAccountNonce:ro,setAccountShard:Pl,setLedgerAccount:Cl,updateLedgerAccount:Rl,setWalletConnectAccount:Ml,setIsAccountLoading:_l,setAccountLoadingError:Ol,setWebsocketEvent:Fl}=eo.actions,no=eo.reducer});function De(){return new Date().setHours(new Date().getHours()+24)}function Ne(e){Se.local.setItem({key:ge.loginExpiresAt,data:e,expires:e})}var lr=x(()=>{"use strict";n();et();Le()});var io,oo,so,zl,Kl,Yl,Zl,Xl,Ql,ao,Jl,co,ur=x(()=>{"use strict";n();io=require("@reduxjs/toolkit");lr();W();re();oo={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},so=(0,io.createSlice)({name:"loginInfoSlice",initialState:oo,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(R,()=>oo),e.addCase(tt,(t,r)=>{t.loginMethod=r.payload.loginMethod,Ne(De())})}}),{setLoginMethod:zl,setWalletConnectLogin:Kl,setLedgerLogin:Yl,setTokenLogin:Zl,setTokenLoginSignature:Xl,setWalletLogin:Ql,invalidateLoginSession:ao,setLogoutRoute:Jl}=so.actions,co=so.reducer});var po,lo,uo,np,op,ip,sp,mo,dr=x(()=>{"use strict";n();po=require("@reduxjs/toolkit");re();lo={},uo=(0,po.createSlice)({name:"modalsSlice",initialState:lo,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(R,()=>lo)}}),{setTxSubmittedModal:np,setNotificationModal:op,clearTxSubmittedModal:ip,clearNotificationModal:sp}=uo.actions,mo=uo.reducer});var oa,mr,gr=x(()=>{"use strict";n();oa=!1,mr=(e,t=0)=>{oa||setTimeout(()=>{window.location.href=e,window.location.assign(e)},t)}});var go=x(()=>{"use strict";n();gr()});function fr(e){return e[Math.floor(Math.random()*e.length)]}var fo=x(()=>{"use strict";n()});function yo(e){let t=null;if((e==null?void 0:e.statusCode)in Yt){let r=e==null?void 0:e.statusCode,{message:o}=Yt[r];t=aa.includes(r)?To:o}return{errorMessage:t,defaultErrorMessage:To}}var To,ia,sa,aa,Tr=x(()=>{"use strict";n();Zt();To="Check if MultiversX app is open on Ledger",ia=28161,sa=28160,aa=[ia,sa]});var ho=x(()=>{"use strict";n();go();fo();Tr()});var xo,So,yr,ca,wo,Sp,wp,Io,hr=x(()=>{"use strict";n();xo=require("@reduxjs/toolkit"),So=v(require("lodash.omit"));ho();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"},ca={network:yr,chainID:"-1"},wo=(0,xo.createSlice)({name:"appConfig",initialState:ca,reducers:{initializeNetworkConfig:(e,t)=>{let r=fr(t.payload.walletConnectBridgeAddresses),o=fr(t.payload.walletConnectV2RelayAddresses),i=(0,So.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=I(S(S({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Sp,setChainID:wp}=wo.actions,Io=wo.reducer});var vo,xr,Ao,kp,Lp,Dp,nt,ot=x(()=>{"use strict";n();vo=require("@reduxjs/toolkit");H();re();xr={isSigning:!1,signedSessions:{}},Ao=(0,vo.createSlice)({name:"signedMessageInfoSliceState",initialState:xr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;return I(S({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:o.status==="pending",signedSessions:I(S({},e.signedSessions),{[r]:o})})},setSignSessionState:(e,t)=>S(S({},e),t.payload),clearSignedMessageInfo:()=>xr},extraReducers:e=>{e.addCase(R,()=>xr)}}),{setSignSession:kp,clearSignedMessageInfo:Lp,setSignSessionState:Dp}=Ao.actions,nt=Ao.reducer});var Eo,ko,bo,Lo,Fp,Do,Up,Bp,$p,Vp,it,st=x(()=>{"use strict";n();Eo=require("@reduxjs/toolkit"),ko=require("redux-persist");Xt();H();tr();re();bo={customToasts:[],transactionToasts:[],failTransactionToast:null},Lo=(0,Eo.createSlice)({name:"toastsSlice",initialState:bo,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(I(S({},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:Je(),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=I(S({},t.payload),{toastId:Xe})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(R,()=>bo),e.addCase(ko.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:Fp,removeCustomToast:Do,addTransactionToast:Up,removeTransactionToast:Bp,addFailTransactionToast:$p,removeFailTransactionToast:Vp}=Lo.actions,it=Lo.reducer});var No,wr,Ir,vr,la,Sr,Po,qp,jp,at,ct,lt=x(()=>{"use strict";n();No=require("@reduxjs/toolkit");re();wr="Transaction failed",Ir="Transaction successful",vr="Processing transaction",la="Transaction submitted",Sr={},Po=(0,No.createSlice)({name:"transactionsInfo",initialState:Sr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||wr,successMessage:(o==null?void 0:o.successMessage)||Ir,processingMessage:(o==null?void 0:o.processingMessage)||vr,submittedMessage:(o==null?void 0:o.submittedMessage)||la,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Sr},extraReducers:e=>{e.addCase(R,()=>Sr)}}),{clearTransactionsInfo:qp,setTransactionsDisplayInfo:jp,clearTransactionsInfoForSessionId:at}=Po.actions,ct=Po.reducer});function Co(e){return e!=null&&(ya(e)||wa(e))}function pt(e){return e!=null&&(ha(e)||Ia(e))}function ut(e){return e!=null&&(xa(e)||va(e))}function Ro(e){return e!=null&&Sa(e)}function ya(e){return e!=null&&pa.includes(e)}function ha(e){return e!=null&&ua.includes(e)}function xa(e){return e!=null&&da.includes(e)}function Sa(e){return e!=null&&ma.includes(e)}function wa(e){return e!=null&&ga.includes(e)}function Ia(e){return e!=null&&fa.includes(e)}function va(e){return e!=null&&Ta.includes(e)}var pa,ua,da,ma,ga,fa,Ta,Er=x(()=>{"use strict";n();W();pa=["sent"],ua=["success"],da=["fail","cancelled","timedOut"],ma=["timedOut"],ga=["pending"],fa=["success"],Ta=["fail","invalid"]});var Mo,_o,Pe,Aa,Oo,tu,ru,nu,dt,ou,iu,su,Fo,mt,we,gt,ft=x(()=>{"use strict";n();Mo=require("@reduxjs/toolkit"),_o=require("redux-persist");W();Er();re();Pe={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Aa={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Oo=(0,Mo.createSlice)({name:"transactionsSlice",initialState:Pe,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,g;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p}=t.payload,d=((m=e.customTransactionInformationForSessionId)==null?void 0:m[r])||Aa;e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:d},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===r&&(e.transactionsToSign=Pe.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=S(S({},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 d,m,g,f,T,w;let{sessionId:r,status:o,errorMessage:i,transactionHash:l}=t.payload,p=(m=(d=e.signedTransactions)==null?void 0:d[r])==null?void 0:m.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(N=>N.hash===l?I(S({},N),{status:o,errorMessage:i}):N);let y=(f=(g=e.signedTransactions[r])==null?void 0:g.transactions)==null?void 0:f.every(N=>pt(N.status)),A=(w=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:w.every(N=>ut(N.status));y&&(e.signedTransactions[r].status="success"),A&&(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=Pe.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Pe.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(R,()=>Pe),e.addCase(_o.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((d,[m,g])=>{let f=new Date(m),T=new Date;return T.setHours(T.getHours()+5),T-f>0||(d[m]=g),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:tu,updateSignedTransactions:ru,setTransactionsToSign:nu,clearAllTransactionsToSign:dt,clearAllSignedTransactions:ou,clearSignedTransaction:iu,clearTransactionToSign:su,setSignTransactionsError:Fo,setSignTransactionsCancelMessage:mt,moveTransactionsToSignedState:we}=Oo.actions,gt=Oo.reducer});var X=x(()=>{"use strict";n();cr();ur();dr();hr();ot();st();lt();ft()});var Or=x(()=>{"use strict";n()});var ti,ei,ri,lm,pm,um,dm,mm,gm,ni,oi=x(()=>{"use strict";n();ti=require("@reduxjs/toolkit");re();ei={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},ri=(0,ti.createSlice)({name:"dappModalsSlice",initialState:ei,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=S({},t.payload)}},extraReducers:e=>{e.addCase(R,()=>ei)}}),{setDappModalVisibility:lm,setDappModalHeaderVisibility:pm,setDappModalFooterVisibility:um,setDappModalHeaderText:dm,setDappModalFooterText:mm,setDappModalConfig:gm}=ri.actions,ni=ri.reducer});var ii,_a,Oa,Ie,It=x(()=>{"use strict";n();ii=require("@reduxjs/toolkit");Or();cr();oi();ur();dr();hr();ot();st();lt();ft();_a={["account"]:no,["dappModal"]:ni,["loginInfo"]:co,["modals"]:mo,["networkConfig"]:Io,["signedMessageInfo"]:nt,["toasts"]:it,["transactionsInfo"]:ct,["transactions"]:gt},Oa=(e={})=>(0,ii.combineReducers)(S(S({},_a),e)),Ie=Oa});var ci={};pe(ci,{default:()=>Ha});function vt(e,t=[]){return{key:e,version:1,storage:ai.default,blacklist:t}}var se,si,ai,Fa,Ua,Ba,$a,Va,Wa,Ga,Ha,li=x(()=>{"use strict";n();se=require("redux-persist"),si=v(require("redux-persist/lib/storage")),ai=v(require("redux-persist/lib/storage/session"));It();X();ot();st();lt();ft();Or();Fa={2:e=>I(S({},e),{networkConfig:yr})};Ua=vt("sdk-dapp-transactionsInfo"),Ba=vt("sdk-dapp-transactions",["transactionsToSign"]),$a=vt("sdk-dapp-toasts"),Va=vt("sdk-dapp-signedMessageInfo"),Wa={key:"sdk-dapp-store",version:2,storage:si.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,se.createMigrate)(Fa,{debug:!1})},Ga={["toasts"]:(0,se.persistReducer)($a,it),["transactions"]:(0,se.persistReducer)(Ba,gt),["transactionsInfo"]:(0,se.persistReducer)(Ua,ct),["signedMessageInfo"]:(0,se.persistReducer)(Va,nt)},Ha=(0,se.persistReducer)(Wa,Ie(Ga))});var pi={};pe(pi,{default:()=>qa});var qa,ui=x(()=>{"use strict";n();It();qa=Ie()});var di={};pe(di,{default:()=>za});var G,ja,za,mi=x(()=>{"use strict";n();G=require("redux-persist"),ja=[G.FLUSH,G.REHYDRATE,G.PAUSE,G.PERSIST,G.PURGE,G.REGISTER],za=ja});var Ti={};pe(Ti,{default:()=>fi});function fi(e){return(0,gi.persistStore)(e)}var gi,yi=x(()=>{"use strict";n();gi=require("redux-persist")});var bc={};pe(bc,{useSignTransactionsWithLedger:()=>Ac});module.exports=ke(bc);n();n();n();var Ni=v(require("axios"));n();n();X();n();var Uo=v(require("lodash.isequal")),Tt=require("reselect");H();var h=(0,Tt.createSelectorCreator)(Tt.defaultMemoize,Uo.default),Ce=(e,t)=>e!=""&&Boolean(t);var ne=e=>e.account,Re=h(ne,e=>e.address),Me=h(ne,Re,(e,t)=>t in e.accounts?e.accounts[t]:rt),Bo=h(ne,Me,(e,t)=>{let i=e,{accounts:r}=i,o=rn(i,["accounts"]);return I(S({},o),{account:t})}),wu=h(Me,e=>e.balance),$o=h(Me,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Iu=h(ne,e=>e.shard),vu=h(ne,e=>e.ledgerAccount),Au=h(ne,e=>e.walletConnectAccount),bu=h(ne,e=>e.isAccountLoading),Eu=h(ne,e=>e.accountLoadingError),ba=h(ne,e=>e.websocketEvent);n();var q=e=>e.loginInfo,Nu=h(q,e=>e.loginMethod),Ea=h(q,Re,(e,t)=>Ce(e.loginMethod,t)),Pu=h(q,e=>e.walletConnectLogin),Cu=h(q,e=>e.ledgerLogin),Ru=h(q,e=>e.walletLogin),Mu=h(q,e=>e.isLoginSessionInvalid),_u=h(q,e=>e.tokenLogin),Ou=h(q,e=>e.logoutRoute);n();var Vo=e=>e.modals,Bu=h(Vo,e=>e.txSubmittedModal),$u=h(Vo,e=>e.notificationModal);n();var oe=e=>e.networkConfig,Gu=h(oe,e=>e.chainID),Hu=h(oe,e=>e.network.walletConnectBridgeAddress),qu=h(oe,e=>e.network.walletConnectV2RelayAddress),ju=h(oe,e=>e.network.walletConnectV2ProjectId),zu=h(oe,e=>e.network.walletConnectV2Options),Ku=h(oe,e=>e.network.walletConnectDeepLink),_e=h(oe,e=>e.network),Wo=h(_e,e=>e.apiAddress),Go=h(_e,e=>e.explorerAddress),Ho=h(_e,e=>e.egldLabel);n();var kr=e=>e.signedMessageInfo,Xu=h(kr,e=>e.isSigning),Qu=h(kr,e=>e.errorMessage),Ju=h(kr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});n();var Lr=e=>e.toasts,rd=h(Lr,e=>e.customToasts),nd=h(Lr,e=>e.transactionToasts),od=h(Lr,e=>e.failTransactionToast);n();X();var qo={errorMessage:wr,successMessage:Ir,processingMessage:vr},ka=e=>e.transactionsInfo,cd=h(ka,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||qo);n();n();var B=require("@multiversx/sdk-core");b();n();function Dr(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function yt(e){var i,l,p;let{data:t}=e,r=Dr(t!=null?t:"")?B.TransactionPayload.fromEncoded(t):new B.TransactionPayload(t),o=new B.Transaction(S({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new B.Address(e.receiver),sender:new B.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:Qt,gasPrice:(l=e.gasPrice.valueOf())!=null?l:Jt,chainID:e.chainID.valueOf(),version:new B.TransactionVersion((p=e.version)!=null?p:Vn)},e.options?{options:new B.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new B.Address(e.sender)),o}n();Er();n();var Pr=v(require("bignumber.js"));H();n();n();function Nr(e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>127)return!1;return!0}function Oe(e){let t=e;try{let r=s.Buffer.from(e,"hex").toString();Nr(r)&&r.length>1&&(t=r)}catch(r){}return t}n();var jo=(e,t)=>{let r=[],o=e.indexOf(t,0);for(;o>=0;)r.push(o),o=e.indexOf(t,o+1);return r};function Ko(e){let t=[],r=0;try{if((e==null?void 0:e.startsWith("MultiESDTNFTTransfer"))&&(e==null?void 0:e.includes("@"))){let[,o,i,...l]=e==null?void 0:e.split("@");if(o){let p=new Pr.default(i,16).toNumber(),d=0;for(let T=0;T<p;T++){let w={type:"nftTransaction",data:"",receiver:o};for(let y=0;y<3;y++){switch(y){case 0:w.token=Oe(l[d]),w.data=l[d];break;case 1:{let A=l[d]&&l[d].length?l[d]:"";A?w.nonce=A:w.type="esdtTransaction",w.data=`${w.data}@${l[d]}`;break}case 2:w.amount=new Pr.default(l[d],16).toString(10),w.data=`${w.data}@${l[d]}`;break;default:break}r=d+1,d++}t[T]=w}let m=t.length!==p,g=t.some(T=>jo(T.data,"@").length!==2),f=t.some(T=>T.data.startsWith("@"));if(m||g||f)return[];if(l[r]){let T=l[r];for(let w=r+1;w<l.length;w++)T+="@"+l[w];t[p]={type:"scCall",data:T,receiver:o}}}}}catch(o){return console.error("failed parsing tx",o),t}return t}n();var Rr=require("@multiversx/sdk-core"),Mr=v(require("bignumber.js"));W();n();var Yo=require("@multiversx/sdk-core");function La(e){try{let t=new Yo.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function ht(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&La(e)}var Cr={tokenId:"",amount:""},Da=e=>e.split("@").map((l,p)=>[2,3].includes(p)?l:Oe(l));function _r(e){if(!e)return Cr;let t=e.startsWith("ESDTTransfer"),r=e.startsWith("ESDTNFTTransfer")&&e.includes("@");if(t){let[,o,i]=e.split("@");try{let l=s.Buffer.from(o,"hex").toString("ascii");if(!l)return Cr;let p=new Mr.default("0x"+i.replace("0x","")).toString(10);return{tokenId:l,amount:p}}catch(l){console.error("Error getting token from transaction data",l)}}if(r)try{let[,o,i,l,p]=Da(e);if([o,i,l,p].every(d=>Boolean(d))&&ht(new Rr.Address(p).bech32()))return{tokenId:`${o}-${i}`,amount:new Mr.default(l,16).toString(10),collection:o,nonce:i,receiver:new Rr.Address(p).bech32()}}catch(o){}return Cr}n();function Zo({tokenId:e,erdLabel:t}){return Boolean(e&&e!==t)}n();n();var Pa=require("@multiversx/sdk-core/out");n();b();n();var Xo=require("@multiversx/sdk-core");H();n();n();n();n();W();function xt(e){let r=Object.getPrototypeOf(e).toPlainObject!=null?e:yt(e);return I(S({},r.toPlainObject()),{hash:r.getHash().hex(),status:"pending"})}n();n();var Fr=require("@reduxjs/toolkit"),wi=require("react-redux/lib/utils/Subscription");X();n();var Qo=v(require("lodash.throttle"));b();X();lr();et();Le();var Ca=[Qe],St=!1,Ra=(0,Qo.default)(()=>{Ne(De())},5e3),Jo=e=>t=>r=>{var m;if(Ca.includes(r.type))return t(r);let o=e.getState(),i=Se.local.getItem(ge.loginExpiresAt);if(!Ce((m=o==null?void 0:o.loginInfo)==null?void 0:m.loginMethod,o==null?void 0:o.account.address))return t(r);if(i==null)return Ne(De());let p=Date.now();return i-p<0&&!St?setTimeout(()=>{St=!0,e.dispatch(ao())},1e3):(St&&(St=!1),Ra()),t(r)};n();n();function wt(){return typeof sessionStorage!="undefined"}var hi=wt()?(li(),ke(ci)).default:(ui(),ke(pi)).default,xi=wt()?(mi(),ke(di)).default:[],Si=wt()?(yi(),ke(Ti)).default:e=>e;It();var M=(0,Fr.configureStore)({reducer:hi,middleware:e=>e({serializableCheck:{ignoredActions:[...xi,ro.type,to.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Jo)}),Ii=(0,wi.createSubscription)(M),Vm=Si(M),Wm=(0,Fr.configureStore)({reducer:Ie});n();n();n();n();n();n();var Fe="accounts";n();n();n();n();F();n();n();F();n();n();n();var Ja=v(require("bignumber.js"));b();n();var Qa=require("@multiversx/sdk-core"),Ur=v(require("bignumber.js"));b();n();var Za=v(require("bignumber.js"));n();Ur.default.config({ROUNDING_MODE:Ur.default.ROUND_FLOOR});n();n();n();b();n();n();n();n();b();n();b();n();var ec=require("@multiversx/sdk-core");b();n();var Ue=require("@multiversx/sdk-core"),rc=require("@multiversx/sdk-network-providers");b();n();n();var tc=v(require("bignumber.js"));b();n();b();n();n();n();n();n();b();n();F();var oc=["reDelegateRewards","claimRewards","unBond"],ic=["wrapEgld","unwrapEgld"],sc=["unStake"],ac=["unDelegate"];n();n();n();b();n();var pc=v(require("bignumber.js"));n();n();n();F();n();var uc=v(require("bignumber.js"));n();n();n();n();F();n();n();n();var mc=v(require("linkifyjs"));n();b();n();var gc=v(require("bignumber.js"));n();H();n();n();W();n();W();n();n();n();F();n();F();n();var fc=v(require("bignumber.js"));b();F();n();F();n();var ki=require("react");H();n();n();F();n();var Tc=require("@multiversx/sdk-core/out"),yc=v(require("bignumber.js"));F();n();F();n();n();W();var Dh=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Li=require("react");H();n();var xc=require("react");F();var Oh=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var kt=e=>e.transactions,Be=h(kt,e=>e.signedTransactions),Sx=h(kt,e=>e.signTransactionsError),Di=h(kt,e=>e.signTransactionsCancelMessage),Lt=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),wx=h(Be,Lt(Co)),Ix=h(Be,Lt(pt)),vx=h(Be,Lt(ut)),Ax=h(Be,Lt(Ro)),Dt=h(kt,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:I(S({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>yt(r)))||[]})}),bx=h(Be,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function Pi(e){return C(this,null,function*(){let{network:{apiAddress:t,apiTimeout:r}}=oe(M.getState()),{data:o}=yield Ni.default.get(`/${Fe}/${e}`,{baseURL:t,timeout:Number(r)});return o})}n();n();var Ci=require("react"),ve=require("react-redux");var Sc={store:M,subscription:Ii},$r=(0,Ci.createContext)(Sc),Wx=(0,ve.createStoreHook)($r),ce=(0,ve.createDispatchHook)($r),_=(0,ve.createSelectorHook)($r);var Ri=()=>_(Bo);n();n();n();n();var Mi=require("@multiversx/sdk-extension-provider"),_i=require("@multiversx/sdk-hw-provider"),Oi=require("@multiversx/sdk-opera-provider"),Fi=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),Ui=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),Bi=require("@multiversx/sdk-web-wallet-provider");b();W();var Pt=e=>{switch(e==null?void 0:e.constructor){case Bi.WalletProvider:return"wallet";case Fi.WalletConnectProvider:return"walletconnect";case Ui.WalletConnectV2Provider:return"walletconnectv2";case _i.HWProvider:return"ledger";case Mi.ExtensionProvider:return"extension";case Oi.OperaProvider:return"opera";case Nt:return"";default:return"extra"}};var ie=e=>`Unable to perform ${e}, Provider not initialized`,Nt=class{init(){return Promise.resolve(!1)}login(t){throw new Error(ie(`login with options: ${t}`))}logout(t){throw new Error(ie(`logout with options: ${t}`))}getAddress(){throw new Error(ie("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(ie(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(ie(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(ie(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(ie(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(ie(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(ie(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},Vr=new Nt;var wc=Vr;function $e(){return wc||Vr}var Ct=()=>{let e=$e(),t=Pt(e);return{provider:e,providerType:t}};n();var fe=require("react");n();var Ve=require("react");var $i={tokenId:"",amount:"",type:"",multiTxData:"",receiver:""};function Vi({transactions:e}){let[t,r]=(0,Ve.useState)({}),[o,i]=(0,Ve.useState)([]);function l(m,g){r(f=>I(S({},f),{[m]:g}))}function p(m,g){return t==null?$i:m in t?t[m]:g!=null&&String(g)in t?t[g]:$i}function d(){if(e&&e.length>0){let m=[];e.forEach((g,f)=>{let T=g.getData().toString(),w=Ko(T);if(w.length>0)w.forEach((y,A)=>{let N={transaction:g,multiTxData:y.data,transactionIndex:A};l(y.data,{tokenId:y.token?y.token:"",amount:y.amount?y.amount:"",type:y.type,nonce:y.nonce?y.nonce:"",multiTxData:y.data,receiver:y.receiver}),m.push(N)});else{let{tokenId:y,amount:A}=_r(g.getData().toString());y&&l(g.getData().toString(),{tokenId:y,amount:A,receiver:g.getReceiver().bech32()}),m.push({transaction:g,transactionIndex:f})}}),i(m)}}return(0,Ve.useEffect)(()=>{d()},[e==null?void 0:e.length]),{parsedTransactionsByDataField:t,getTxInfoByDataField:p,allTransactions:o}}Tr();var Rt={};function Wi({isLedger:e=!1,transactionsToSign:t,egldLabel:r,address:o,onCancel:i,onSignTransaction:l,onTransactionsSignError:p,onTransactionsSignSuccess:d,onGetScamAddressData:m}){var Kr,Yr,Zr;let[g,f]=(0,fe.useState)(0),[T,w]=(0,fe.useState)(),[y,A]=(0,fe.useState)(null),[N,$]=(0,fe.useState)(!1),{getTxInfoByDataField:le,allTransactions:L}=Vi({transactions:t}),O=g===L.length-1;(0,fe.useEffect)(()=>{qr()},[g,L]);function qr(){return C(this,null,function*(){var Jr;let k=L[g];if(k==null)return;let{transaction:P,multiTxData:Q}=k,Mt=P.getData().toString(),Xr=le(P.getData().toString(),Q),{tokenId:Qr}=Xr,be=P.getReceiver().toString(),ms=o!==be,gs=be in Rt;if(ms&&!gs&&m!=null){let He=yield m(be);Rt=S(S({},Rt),He!=null&&He.scamInfo?{[be]:He.scamInfo}:{})}let fs=Boolean(Qr&&Zo({tokenId:Qr,erdLabel:r}));A({transaction:P,receiverScamInfo:((Jr=Rt[be])==null?void 0:Jr.info)||null,transactionTokenInfo:Xr,isTokenTransaction:fs,dataField:Mt})})}function Ge(){f(0),w(void 0),$(!1)}function jr(){return C(this,null,function*(){try{if(y==null)return;$(e);let k=yield l(y.transaction),P={[g]:k},Q=T?S(S({},T),P):P;w(Q),O?Q&&(d(Object.values(Q)),Ge()):(f(Mt=>Mt+1),$(!1))}catch(k){console.error(k,"sign error");let{message:P}=k,Q=e?yo(k).errorMessage:null;Ge(),p(Q!=null?Q:P)}})}function as(){try{if(y==null)return;y.transaction.getSignature().hex()?O||f(P=>P+1):jr()}catch(k){jr()}}let cs=g===0;function ls(){cs?i==null||i():f(k=>k-1)}let zr=Boolean(((Kr=y==null?void 0:y.transactionTokenInfo)==null?void 0:Kr.type)&&((Yr=y==null?void 0:y.transactionTokenInfo)==null?void 0:Yr.multiTxData)&&!(y!=null&&y.dataField.endsWith((Zr=y==null?void 0:y.transactionTokenInfo)==null?void 0:Zr.multiTxData)));function ps(){zr?f(k=>k+1):as()}function us(){f(k=>{let P=k+1;return P>(L==null?void 0:L.length)?k:P})}function ds(){f(k=>{let P=k-1;return P<0?k:P})}return{allTransactions:L,onSignTransaction:ps,onNext:us,onPrev:ds,waitingForDevice:N,onAbort:ls,isLastTransaction:O,isFirstTransaction:g===0,hasMultipleTransactions:L.length>1,shouldContinueWithoutSigning:zr,currentStep:g,signedTransactions:T,currentTransaction:y}}X();H();n();n();function Gi(){let e=$e();return Pt(e)}function Hi(e){return Gi()===e}gr();n();function qi(e){let t=Dt(M.getState()),r=Object.keys(e).length===(t==null?void 0:t.transactions.length);return e&&(e&&r)}n();zt();X();function ji(){let e=ce();return t=>{e(dt()),e(at(t)),e(mt(kn))}}n();var Ae=require("react"),Hr=require("@multiversx/sdk-extension-provider");b();n();n();var Wr=()=>_(Me);n();n();n();n();n();var We=v(require("react"));var RS=(0,We.createContext)({}),MS=M.getState();n();var Ki=v(require("react"));n();var Gr=v(require("react")),Ic=v(require("axios"));n();n();n();var Yi=require("react"),Zi=require("@multiversx/sdk-web-wallet-provider"),Xi=v(require("qs"));b();X();W();function Qi(e){let{search:t}=window.location,r=_(_e),o=ce();(0,Yi.useEffect)(()=>{if(t!=null){let i=Xi.default.parse(t.replace("?",""));if(i&&er in i){let l=String(i[er]),p=new Zi.WalletProvider(`${r.walletAddress}${Wn}`).getTransactionsFromWalletUrl();if(i.status==="cancelled"){o(we({sessionId:l,status:"cancelled"})),e(),history.pushState({},document==null?void 0:document.title,"?");return}p.length>0&&(o(we({sessionId:l,status:"signed",transactions:p.map(d=>xt(d))})),history.pushState({},document==null?void 0:document.title,"?"))}}},[t])}X();n();n();n();n();var es=v(require("axios"));n();n();var Ji=e=>{let t=e!=null?e:Wo(M.getState());return t.endsWith("/")?t.slice(0,-1):t};function ts(e){return C(this,null,function*(){if(!e)return null;let r=`${Ji()}/${Fe}/${e}`;try{let{data:o}=yield es.default.get(r);return o}catch(o){console.error("error fetching configuration for ",r)}return null})}function rs(e){return C(this,null,function*(){return yield ts(e)})}n();function ns(e){let t=M.getState(),r=$o(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}var vc=(e,t)=>t.map((r,o)=>(r.setNonce(e+o),r)),os=()=>{let e=_(Re);return t=>C(void 0,null,function*(){let r=yield rs(e),o=ns(r);return vc(o,t)})};var is=()=>{let e=ce(),{provider:t}=Ct(),{nonce:r}=Wr(),[o,i]=(0,Ae.useState)(null),[l,p]=(0,Ae.useState)(),[d,m]=(0,Ae.useState)([]),g=os(),f=_(Dt),T=_(Di),w=()=>C(void 0,null,function*(){var L;let $=Boolean(f==null?void 0:f.transactions),le=(L=f==null?void 0:f.transactions)!=null?L:[];if($){let O=yield g(le);m(O)}p($)});(0,Ae.useEffect)(()=>{w()},[f,r]);let y=()=>{i(null),e(mt(null))},A=$=>{y(),N($)};Qi(A);function N($){var L,O;let le=t instanceof Hr.ExtensionProvider;e(dt()),e(at($)),e(Do(Xe)),le&&(y(),(O=(L=Hr.ExtensionProvider.getInstance())==null?void 0:L.cancelAction)==null||O.call(L))}return{error:o,canceledTransactionsMessage:T,clearTransactionStatusMessage:y,onAbort:A,setError:i,hasTransactions:l,transactionsToSign:f&&I(S({},f),{transactions:d})}};function ss({onCancel:e,verifyReceiverScam:t=!0}){let{transactionsToSign:r,hasTransactions:o}=is(),i=_(Ho),{account:{address:l}}=Ri(),{provider:p}=Ct(),d=ce(),m=ji(),{transactions:g,sessionId:f,callbackRoute:T,customTransactionInformation:w}=r||{};function y(O){f&&d(we({sessionId:f,status:"cancelled"})),d(Fo(O))}let A=T!=null&&window.location.pathname.includes(T);function N(O){!qi(O)||f&&(d(we({sessionId:f,status:"signed",transactions:O.map(Ge=>xt(Ge))})),T!=null&&(w==null?void 0:w.redirectAfterSign)&&!A&&mr(T))}function $(){e(),m(f)}function le(O){return C(this,null,function*(){return yield p.signTransaction(O)})}let L=Wi({address:l,egldLabel:i,transactionsToSign:o?g:[],onGetScamAddressData:t?Pi:null,isLedger:Hi("ledger"),onCancel:$,onSignTransaction:le,onTransactionsSignError:y,onTransactionsSignSuccess:N});return I(S({},L),{callbackRoute:T})}function Ac(e){return ss(e)}0&&(module.exports={useSignTransactionsWithLedger});
1
+ "use strict";var Ts=Object.create;var Ee=Object.defineProperty,ys=Object.defineProperties,hs=Object.getOwnPropertyDescriptor,xs=Object.getOwnPropertyDescriptors,Ss=Object.getOwnPropertyNames,qe=Object.getOwnPropertySymbols,ws=Object.getPrototypeOf,_t=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable;var en=(e,t,r)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))_t.call(t,r)&&en(e,r,t[r]);if(qe)for(var r of qe(t))tn.call(t,r)&&en(e,r,t[r]);return e},I=(e,t)=>ys(e,xs(t));var rn=(e,t)=>{var r={};for(var o in e)_t.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&qe)for(var o of qe(e))t.indexOf(o)<0&&tn.call(e,o)&&(r[o]=e[o]);return r};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var je=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pe=(e,t)=>{for(var r in t)Ee(e,r,{get:t[r],enumerable:!0})},nn=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ss(t))!_t.call(e,i)&&i!==r&&Ee(e,i,{get:()=>t[i],enumerable:!(o=hs(t,i))||o.enumerable});return e};var v=(e,t,r)=>(r=e!=null?Ts(ws(e)):{},nn(t||!e||!e.__esModule?Ee(r,"default",{value:e,enumerable:!0}):r,e)),ke=e=>nn(Ee({},"__esModule",{value:!0}),e);var C=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(g){i(g)}},p=m=>{try{d(r.throw(m))}catch(g){i(g)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var an=je(ze=>{"use strict";n();ze.byteLength=vs;ze.toByteArray=bs;ze.fromByteArray=Ls;var j=[],V=[],Is=typeof Uint8Array!="undefined"?Uint8Array:Array,Ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ue=0,on=Ot.length;ue<on;++ue)j[ue]=Ot[ue],V[Ot.charCodeAt(ue)]=ue;var ue,on;V["-".charCodeAt(0)]=62;V["_".charCodeAt(0)]=63;function sn(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 vs(e){var t=sn(e),r=t[0],o=t[1];return(r+o)*3/4-o}function As(e,t,r){return(t+r)*3/4-r}function bs(e){var t,r=sn(e),o=r[0],i=r[1],l=new Is(As(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=V[e.charCodeAt(m)]<<18|V[e.charCodeAt(m+1)]<<12|V[e.charCodeAt(m+2)]<<6|V[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=V[e.charCodeAt(m)]<<2|V[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=V[e.charCodeAt(m)]<<10|V[e.charCodeAt(m+1)]<<4|V[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Es(e){return j[e>>18&63]+j[e>>12&63]+j[e>>6&63]+j[e&63]}function ks(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(Es(o));return i.join("")}function Ls(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(ks(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(j[t>>2]+j[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(j[t>>10]+j[t>>4&63]+j[t<<2&63]+"=")),i.join("")}});var cn=je(Ft=>{n();Ft.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,g=m>>1,f=-7,T=r?i-1:0,w=r?-1:1,y=e[t+T];for(T+=w,l=y&(1<<-f)-1,y>>=-f,f+=d;f>0;l=l*256+e[t+T],T+=w,f-=8);for(p=l&(1<<-f)-1,l>>=-f,f+=o;f>0;p=p*256+e[t+T],T+=w,f-=8);if(l===0)l=1-g;else{if(l===m)return p?NaN:(y?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-g}return(y?-1:1)*p*Math.pow(2,l-o)};Ft.write=function(e,t,r,o,i,l){var p,d,m,g=l*8-i-1,f=(1<<g)-1,T=f>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=o?0:l-1,A=o?1:-1,N=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,p=f):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+T>=1?t+=w/m:t+=w*Math.pow(2,1-T),t*m>=2&&(p++,m/=2),p+T>=f?(d=0,p=f):p+T>=1?(d=(t*m-1)*Math.pow(2,i),p=p+T):(d=t*Math.pow(2,T-1)*Math.pow(2,i),p=0));i>=8;e[r+y]=d&255,y+=A,d/=256,i-=8);for(p=p<<i|d,g+=i;g>0;e[r+y]=p&255,y+=A,p/=256,g-=8);e[r+y-A]|=N*128}});var wn=je(ye=>{"use strict";n();var Ut=an(),Te=cn(),ln=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ye.Buffer=u;ye.SlowBuffer=Ms;ye.INSPECT_MAX_BYTES=50;var Ke=2147483647;ye.kMaxLength=Ke;u.TYPED_ARRAY_SUPPORT=Ds();!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 Ds(){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 J(e){if(e>Ke)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 Wt(e)}return dn(e,t,r)}u.poolSize=8192;function dn(e,t,r){if(typeof e=="string")return Ps(e,t);if(ArrayBuffer.isView(e))return Cs(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(z(e,ArrayBuffer)||e&&z(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(z(e,SharedArrayBuffer)||e&&z(e.buffer,SharedArrayBuffer)))return $t(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=Rs(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 mn(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 Ns(e,t,r){return mn(e),e<=0?J(e):t!==void 0?typeof r=="string"?J(e).fill(t,r):J(e).fill(t):J(e)}u.alloc=function(e,t,r){return Ns(e,t,r)};function Wt(e){return mn(e),J(e<0?0:Gt(e)|0)}u.allocUnsafe=function(e){return Wt(e)};u.allocUnsafeSlow=function(e){return Wt(e)};function Ps(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=gn(e,t)|0,o=J(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Bt(e){for(var t=e.length<0?0:Gt(e.length)|0,r=J(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function Cs(e){if(z(e,Uint8Array)){var t=new Uint8Array(e);return $t(t.buffer,t.byteOffset,t.byteLength)}return Bt(e)}function $t(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 Rs(e){if(u.isBuffer(e)){var t=Gt(e.length)|0,r=J(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Ht(e.length)?J(0):Bt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Bt(e.data)}function Gt(e){if(e>=Ke)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ke.toString(16)+" bytes");return e|0}function Ms(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(z(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),z(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(z(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 gn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||z(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 Vt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Sn(e).length;default:if(i)return o?-1:Vt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=gn;function _s(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 Tn(this,t,r);case"ascii":return Gs(this,t,r);case"latin1":case"binary":return Hs(this,t,r);case"base64":return Vs(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 de(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)de(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)de(this,r,r+3),de(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)de(this,r,r+7),de(this,r+1,r+6),de(this,r+2,r+5),de(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Tn(this,0,t):_s.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=ye.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(z(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,d=o-r,m=Math.min(p,d),g=this.slice(i,l),f=t.slice(r,o),T=0;T<m;++T)if(g[T]!==f[T]){p=g[T],d=f[T];break}return p<d?-1:d<p?1:0};function fn(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,Ht(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:pn(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):pn(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function pn(e,t,r,o,i){var l=1,p=e.length,d=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,d/=2,r/=2}function m(y,A){return l===1?y[A]:y.readUInt16BE(A*l)}var g;if(i){var f=-1;for(g=r;g<p;g++)if(m(e,g)===m(t,f===-1?0:g-f)){if(f===-1&&(f=g),g-f+1===d)return f*l}else f!==-1&&(g-=g-f),f=-1}else for(r+d>p&&(r=p-d),g=r;g>=0;g--){for(var T=!0,w=0;w<d;w++)if(m(e,g+w)!==m(t,w)){T=!1;break}if(T)return g}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return fn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return fn(this,t,r,o,!1)};function Os(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 d=parseInt(t.substr(p*2,2),16);if(Ht(d))return p;e[r+p]=d}return p}function Fs(e,t,r,o){return Ye(Vt(t,e.length-r),e,r,o)}function Us(e,t,r,o){return Ye(Ys(t),e,r,o)}function Bs(e,t,r,o){return Ye(Sn(t),e,r,o)}function $s(e,t,r,o){return Ye(Zs(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 Os(this,t,r,o);case"utf8":case"utf-8":return Fs(this,t,r,o);case"ascii":case"latin1":case"binary":return Us(this,t,r,o);case"base64":return Bs(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $s(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 Vs(e,t,r){return t===0&&r===e.length?Ut.fromByteArray(e):Ut.fromByteArray(e.slice(t,r))}function Tn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,g,f,T;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(T=(l&31)<<6|m&63,T>127&&(p=T));break;case 3:m=e[i+1],g=e[i+2],(m&192)===128&&(g&192)===128&&(T=(l&15)<<12|(m&63)<<6|g&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:m=e[i+1],g=e[i+2],f=e[i+3],(m&192)===128&&(g&192)===128&&(f&192)===128&&(T=(l&15)<<18|(m&63)<<12|(g&63)<<6|f&63,T>65535&&T<1114112&&(p=T))}}p===null?(p=65533,d=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=d}return Ws(o)}var un=4096;function Ws(e){var t=e.length;if(t<=un)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=un));return r}function Gs(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 Hs(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+=Xs[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 D(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||D(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||D(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||D(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||D(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||D(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||D(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||D(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||D(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||D(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||D(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||D(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||D(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||D(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||D(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||D(t,4,this.length),Te.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||D(t,4,this.length),Te.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||D(t,8,this.length),Te.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||D(t,8,this.length),Te.read(this,t,!1,52,8)};function U(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;U(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=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;U(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||U(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||U(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||U(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||U(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||U(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);U(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&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);U(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||U(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||U(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||U(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||U(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||U(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 yn(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 hn(e,t,r,o,i){return t=+t,r=r>>>0,i||yn(e,t,r,4,34028234663852886e22,-34028234663852886e22),Te.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return hn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return hn(this,t,r,!1,o)};function xn(e,t,r,o,i){return t=+t,r=r>>>0,i||yn(e,t,r,8,17976931348623157e292,-17976931348623157e292),Te.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return xn(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return xn(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 d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var zs=/[^+/0-9A-Za-z-_]/g;function Ks(e){if(e=e.split("=")[0],e=e.trim().replace(zs,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Vt(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 Ys(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Zs(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 Sn(e){return Ut.toByteArray(Ks(e))}function Ye(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 z(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Ht(e){return e!==e}var Xs=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 En=je((Nc,bn)=>{n();var E=bn.exports={},K,Y;function qt(){throw new Error("setTimeout has not been defined")}function jt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?K=setTimeout:K=qt}catch(e){K=qt}try{typeof clearTimeout=="function"?Y=clearTimeout:Y=jt}catch(e){Y=jt}})();function In(e){if(K===setTimeout)return setTimeout(e,0);if((K===qt||!K)&&setTimeout)return K=setTimeout,setTimeout(e,0);try{return K(e,0)}catch(t){try{return K.call(null,e,0)}catch(r){return K.call(this,e,0)}}}function Qs(e){if(Y===clearTimeout)return clearTimeout(e);if((Y===jt||!Y)&&clearTimeout)return Y=clearTimeout,clearTimeout(e);try{return Y(e)}catch(t){try{return Y.call(null,e)}catch(r){return Y.call(this,e)}}}var ee=[],he=!1,me,Ze=-1;function Js(){!he||!me||(he=!1,me.length?ee=me.concat(ee):Ze=-1,ee.length&&vn())}function vn(){if(!he){var e=In(Js);he=!0;for(var t=ee.length;t;){for(me=ee,ee=[];++Ze<t;)me&&me[Ze].run();Ze=-1,t=ee.length}me=null,he=!1,Qs(e)}}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];ee.push(new An(e,t)),ee.length===1&&!he&&In(vn)};function An(e,t){this.fun=e,this.array=t}An.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function te(){}E.on=te;E.addListener=te;E.once=te;E.off=te;E.removeListener=te;E.removeAllListeners=te;E.emit=te;E.prependListener=te;E.prependOnceListener=te;E.listeners=function(e){return[]};E.binding=function(e){throw new Error("process.binding is not supported")};E.cwd=function(){return"/"};E.chdir=function(e){throw new Error("process.chdir is not supported")};E.umask=function(){return 0}});var s,a,Pc,n=x(()=>{s=v(wn()),a=v(En()),Pc=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 kn,zt=x(()=>{"use strict";n();kn="Transaction canceled"});var Ln=x(()=>{"use strict";n()});var Dn=x(()=>{"use strict";n()});var Nn=x(()=>{"use strict";n()});var W=x(()=>{"use strict";n()});var Pn=x(()=>{"use strict";n()});var Cn=x(()=>{"use strict";n()});var F=x(()=>{"use strict";n()});var Rn=x(()=>{"use strict";n()});var Mn=x(()=>{"use strict";n()});var H=x(()=>{"use strict";n();Ln();Dn();Nn();W();Pn();Cn();F();Rn();Mn()});var Kt,_n,Zc,On,Xc,Fn,Qc,Jc,el,Un=x(()=>{"use strict";n();H();Kt={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:_n,egldLabel:Zc}=Kt["devnet"],{chainId:On,egldLabel:Xc}=Kt["testnet"],{chainId:Fn,egldLabel:Qc}=Kt["mainnet"],Jc={["devnet"]:_n,["testnet"]:On,["mainnet"]:Fn},el={[_n]:"devnet",[On]:"testnet",[Fn]:"mainnet"}});var Yt,Zt=x(()=>{"use strict";n();Yt={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 Bn=x(()=>{"use strict";n()});var Xe,Xt=x(()=>{"use strict";n();Xe="transaction-status-toast-id"});var Z,$n=x(()=>{"use strict";n();Z=require("@multiversx/sdk-web-wallet-provider")});var Qt,Jt,Vn,Wn,er,Qe,Gn,xe,b=x(()=>{"use strict";n();zt();Un();Zt();Bn();Xt();$n();Qt=5e4,Jt=1e9,Vn=1,Wn="/dapp/init",er="signSession",Qe="logout",Gn="login",xe="0"});var Je,tr=x(()=>{"use strict";n();Je=()=>Date.now()/1e3});var Hn=x(()=>{"use strict";n()});var qn=x(()=>{"use strict";n()});var jn=x(()=>{"use strict";n();tr();Hn();qn()});var nr={};pe(nr,{getItem:()=>ta,localStorageKeys:()=>ge,removeItem:()=>ra,setItem:()=>ea});var ge,rr,ea,ta,ra,Le=x(()=>{"use strict";n();jn();ge={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},rr=typeof localStorage!="undefined",ea=({key:e,data:t,expires:r})=>{!rr||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},ta=e=>{if(!rr)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:Je()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},ra=e=>{!rr||localStorage.removeItem(String(e))}});var or={};pe(or,{clear:()=>Zn,getItem:()=>Kn,removeItem:()=>Yn,setItem:()=>zn,storage:()=>na});var zn,Kn,Yn,Zn,na,Xn=x(()=>{"use strict";n();zn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Kn=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},Yn=e=>sessionStorage.removeItem(String(e)),Zn=()=>sessionStorage.clear(),na={setItem:zn,getItem:Kn,removeItem:Yn,clear:Zn}});var Se,et=x(()=>{"use strict";n();Le();Xn();Se={session:or,local:nr}});var ir,R,tt,re=x(()=>{"use strict";n();ir=require("@reduxjs/toolkit");b();R=(0,ir.createAction)(Qe),tt=(0,ir.createAction)(Gn,e=>({payload:e}))});var ar,Qn,Jn,rt,sr,eo,to,Nl,ro,Pl,Cl,Rl,Ml,_l,Ol,Fl,no,cr=x(()=>{"use strict";n();ar=require("@multiversx/sdk-core"),Qn=require("@reduxjs/toolkit"),Jn=require("redux-persist");b();et();Le();re();rt={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:xe},sr={address:"",websocketEvent:null,accounts:{"":rt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},eo=(0,Qn.createSlice)({name:"accountInfoSlice",initialState:sr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new ar.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:rt},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(R,()=>(Se.local.removeItem(ge.loginExpiresAt),sr)),e.addCase(tt,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new ar.Address(o).hex()}),e.addCase(Jn.REHYDRATE,(t,r)=>{var g;if(!((g=r.payload)!=null&&g.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let m=p&&i in p;t.accounts=m?p:sr.accounts,t.publicKey=d})}}),{setAccount:to,setAddress:Nl,setAccountNonce:ro,setAccountShard:Pl,setLedgerAccount:Cl,updateLedgerAccount:Rl,setWalletConnectAccount:Ml,setIsAccountLoading:_l,setAccountLoadingError:Ol,setWebsocketEvent:Fl}=eo.actions,no=eo.reducer});function De(){return new Date().setHours(new Date().getHours()+24)}function Ne(e){Se.local.setItem({key:ge.loginExpiresAt,data:e,expires:e})}var lr=x(()=>{"use strict";n();et();Le()});var io,oo,so,zl,Kl,Yl,Zl,Xl,Ql,ao,Jl,co,ur=x(()=>{"use strict";n();io=require("@reduxjs/toolkit");lr();W();re();oo={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},so=(0,io.createSlice)({name:"loginInfoSlice",initialState:oo,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(R,()=>oo),e.addCase(tt,(t,r)=>{t.loginMethod=r.payload.loginMethod,Ne(De())})}}),{setLoginMethod:zl,setWalletConnectLogin:Kl,setLedgerLogin:Yl,setTokenLogin:Zl,setTokenLoginSignature:Xl,setWalletLogin:Ql,invalidateLoginSession:ao,setLogoutRoute:Jl}=so.actions,co=so.reducer});var po,lo,uo,np,op,ip,sp,mo,dr=x(()=>{"use strict";n();po=require("@reduxjs/toolkit");re();lo={},uo=(0,po.createSlice)({name:"modalsSlice",initialState:lo,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(R,()=>lo)}}),{setTxSubmittedModal:np,setNotificationModal:op,clearTxSubmittedModal:ip,clearNotificationModal:sp}=uo.actions,mo=uo.reducer});var oa,mr,gr=x(()=>{"use strict";n();oa=!1,mr=(e,t=0)=>{oa||setTimeout(()=>{window.location.href=e,window.location.assign(e)},t)}});var go=x(()=>{"use strict";n();gr()});function fr(e){return e[Math.floor(Math.random()*e.length)]}var fo=x(()=>{"use strict";n()});function yo(e){let t=null;if((e==null?void 0:e.statusCode)in Yt){let r=e==null?void 0:e.statusCode,{message:o}=Yt[r];t=aa.includes(r)?To:o}return{errorMessage:t,defaultErrorMessage:To}}var To,ia,sa,aa,Tr=x(()=>{"use strict";n();Zt();To="Check if the MultiversX app is open on Ledger",ia=28161,sa=28160,aa=[ia,sa]});var ho=x(()=>{"use strict";n();go();fo();Tr()});var xo,So,yr,ca,wo,Sp,wp,Io,hr=x(()=>{"use strict";n();xo=require("@reduxjs/toolkit"),So=v(require("lodash.omit"));ho();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"},ca={network:yr,chainID:"-1"},wo=(0,xo.createSlice)({name:"appConfig",initialState:ca,reducers:{initializeNetworkConfig:(e,t)=>{let r=fr(t.payload.walletConnectBridgeAddresses),o=fr(t.payload.walletConnectV2RelayAddresses),i=(0,So.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=I(S(S({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Sp,setChainID:wp}=wo.actions,Io=wo.reducer});var vo,xr,Ao,kp,Lp,Dp,nt,ot=x(()=>{"use strict";n();vo=require("@reduxjs/toolkit");H();re();xr={isSigning:!1,signedSessions:{}},Ao=(0,vo.createSlice)({name:"signedMessageInfoSliceState",initialState:xr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;return I(S({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:o.status==="pending",signedSessions:I(S({},e.signedSessions),{[r]:o})})},setSignSessionState:(e,t)=>S(S({},e),t.payload),clearSignedMessageInfo:()=>xr},extraReducers:e=>{e.addCase(R,()=>xr)}}),{setSignSession:kp,clearSignedMessageInfo:Lp,setSignSessionState:Dp}=Ao.actions,nt=Ao.reducer});var Eo,ko,bo,Lo,Fp,Do,Up,Bp,$p,Vp,it,st=x(()=>{"use strict";n();Eo=require("@reduxjs/toolkit"),ko=require("redux-persist");Xt();H();tr();re();bo={customToasts:[],transactionToasts:[],failTransactionToast:null},Lo=(0,Eo.createSlice)({name:"toastsSlice",initialState:bo,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(I(S({},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:Je(),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=I(S({},t.payload),{toastId:Xe})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(R,()=>bo),e.addCase(ko.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:Fp,removeCustomToast:Do,addTransactionToast:Up,removeTransactionToast:Bp,addFailTransactionToast:$p,removeFailTransactionToast:Vp}=Lo.actions,it=Lo.reducer});var No,wr,Ir,vr,la,Sr,Po,qp,jp,at,ct,lt=x(()=>{"use strict";n();No=require("@reduxjs/toolkit");re();wr="Transaction failed",Ir="Transaction successful",vr="Processing transaction",la="Transaction submitted",Sr={},Po=(0,No.createSlice)({name:"transactionsInfo",initialState:Sr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||wr,successMessage:(o==null?void 0:o.successMessage)||Ir,processingMessage:(o==null?void 0:o.processingMessage)||vr,submittedMessage:(o==null?void 0:o.submittedMessage)||la,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Sr},extraReducers:e=>{e.addCase(R,()=>Sr)}}),{clearTransactionsInfo:qp,setTransactionsDisplayInfo:jp,clearTransactionsInfoForSessionId:at}=Po.actions,ct=Po.reducer});function Co(e){return e!=null&&(ya(e)||wa(e))}function pt(e){return e!=null&&(ha(e)||Ia(e))}function ut(e){return e!=null&&(xa(e)||va(e))}function Ro(e){return e!=null&&Sa(e)}function ya(e){return e!=null&&pa.includes(e)}function ha(e){return e!=null&&ua.includes(e)}function xa(e){return e!=null&&da.includes(e)}function Sa(e){return e!=null&&ma.includes(e)}function wa(e){return e!=null&&ga.includes(e)}function Ia(e){return e!=null&&fa.includes(e)}function va(e){return e!=null&&Ta.includes(e)}var pa,ua,da,ma,ga,fa,Ta,Er=x(()=>{"use strict";n();W();pa=["sent"],ua=["success"],da=["fail","cancelled","timedOut"],ma=["timedOut"],ga=["pending"],fa=["success"],Ta=["fail","invalid"]});var Mo,_o,Pe,Aa,Oo,tu,ru,nu,dt,ou,iu,su,Fo,mt,we,gt,ft=x(()=>{"use strict";n();Mo=require("@reduxjs/toolkit"),_o=require("redux-persist");W();Er();re();Pe={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Aa={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Oo=(0,Mo.createSlice)({name:"transactionsSlice",initialState:Pe,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,g;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p}=t.payload,d=((m=e.customTransactionInformationForSessionId)==null?void 0:m[r])||Aa;e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:d},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===r&&(e.transactionsToSign=Pe.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=S(S({},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 d,m,g,f,T,w;let{sessionId:r,status:o,errorMessage:i,transactionHash:l}=t.payload,p=(m=(d=e.signedTransactions)==null?void 0:d[r])==null?void 0:m.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(N=>N.hash===l?I(S({},N),{status:o,errorMessage:i}):N);let y=(f=(g=e.signedTransactions[r])==null?void 0:g.transactions)==null?void 0:f.every(N=>pt(N.status)),A=(w=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:w.every(N=>ut(N.status));y&&(e.signedTransactions[r].status="success"),A&&(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=Pe.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Pe.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(R,()=>Pe),e.addCase(_o.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((d,[m,g])=>{let f=new Date(m),T=new Date;return T.setHours(T.getHours()+5),T-f>0||(d[m]=g),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:tu,updateSignedTransactions:ru,setTransactionsToSign:nu,clearAllTransactionsToSign:dt,clearAllSignedTransactions:ou,clearSignedTransaction:iu,clearTransactionToSign:su,setSignTransactionsError:Fo,setSignTransactionsCancelMessage:mt,moveTransactionsToSignedState:we}=Oo.actions,gt=Oo.reducer});var X=x(()=>{"use strict";n();cr();ur();dr();hr();ot();st();lt();ft()});var Or=x(()=>{"use strict";n()});var ti,ei,ri,lm,pm,um,dm,mm,gm,ni,oi=x(()=>{"use strict";n();ti=require("@reduxjs/toolkit");re();ei={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},ri=(0,ti.createSlice)({name:"dappModalsSlice",initialState:ei,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=S({},t.payload)}},extraReducers:e=>{e.addCase(R,()=>ei)}}),{setDappModalVisibility:lm,setDappModalHeaderVisibility:pm,setDappModalFooterVisibility:um,setDappModalHeaderText:dm,setDappModalFooterText:mm,setDappModalConfig:gm}=ri.actions,ni=ri.reducer});var ii,_a,Oa,Ie,It=x(()=>{"use strict";n();ii=require("@reduxjs/toolkit");Or();cr();oi();ur();dr();hr();ot();st();lt();ft();_a={["account"]:no,["dappModal"]:ni,["loginInfo"]:co,["modals"]:mo,["networkConfig"]:Io,["signedMessageInfo"]:nt,["toasts"]:it,["transactionsInfo"]:ct,["transactions"]:gt},Oa=(e={})=>(0,ii.combineReducers)(S(S({},_a),e)),Ie=Oa});var ci={};pe(ci,{default:()=>Ha});function vt(e,t=[]){return{key:e,version:1,storage:ai.default,blacklist:t}}var se,si,ai,Fa,Ua,Ba,$a,Va,Wa,Ga,Ha,li=x(()=>{"use strict";n();se=require("redux-persist"),si=v(require("redux-persist/lib/storage")),ai=v(require("redux-persist/lib/storage/session"));It();X();ot();st();lt();ft();Or();Fa={2:e=>I(S({},e),{networkConfig:yr})};Ua=vt("sdk-dapp-transactionsInfo"),Ba=vt("sdk-dapp-transactions",["transactionsToSign"]),$a=vt("sdk-dapp-toasts"),Va=vt("sdk-dapp-signedMessageInfo"),Wa={key:"sdk-dapp-store",version:2,storage:si.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,se.createMigrate)(Fa,{debug:!1})},Ga={["toasts"]:(0,se.persistReducer)($a,it),["transactions"]:(0,se.persistReducer)(Ba,gt),["transactionsInfo"]:(0,se.persistReducer)(Ua,ct),["signedMessageInfo"]:(0,se.persistReducer)(Va,nt)},Ha=(0,se.persistReducer)(Wa,Ie(Ga))});var pi={};pe(pi,{default:()=>qa});var qa,ui=x(()=>{"use strict";n();It();qa=Ie()});var di={};pe(di,{default:()=>za});var G,ja,za,mi=x(()=>{"use strict";n();G=require("redux-persist"),ja=[G.FLUSH,G.REHYDRATE,G.PAUSE,G.PERSIST,G.PURGE,G.REGISTER],za=ja});var Ti={};pe(Ti,{default:()=>fi});function fi(e){return(0,gi.persistStore)(e)}var gi,yi=x(()=>{"use strict";n();gi=require("redux-persist")});var bc={};pe(bc,{useSignTransactionsWithLedger:()=>Ac});module.exports=ke(bc);n();n();n();var Ni=v(require("axios"));n();n();X();n();var Uo=v(require("lodash.isequal")),Tt=require("reselect");H();var h=(0,Tt.createSelectorCreator)(Tt.defaultMemoize,Uo.default),Ce=(e,t)=>e!=""&&Boolean(t);var ne=e=>e.account,Re=h(ne,e=>e.address),Me=h(ne,Re,(e,t)=>t in e.accounts?e.accounts[t]:rt),Bo=h(ne,Me,(e,t)=>{let i=e,{accounts:r}=i,o=rn(i,["accounts"]);return I(S({},o),{account:t})}),wu=h(Me,e=>e.balance),$o=h(Me,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Iu=h(ne,e=>e.shard),vu=h(ne,e=>e.ledgerAccount),Au=h(ne,e=>e.walletConnectAccount),bu=h(ne,e=>e.isAccountLoading),Eu=h(ne,e=>e.accountLoadingError),ba=h(ne,e=>e.websocketEvent);n();var q=e=>e.loginInfo,Nu=h(q,e=>e.loginMethod),Ea=h(q,Re,(e,t)=>Ce(e.loginMethod,t)),Pu=h(q,e=>e.walletConnectLogin),Cu=h(q,e=>e.ledgerLogin),Ru=h(q,e=>e.walletLogin),Mu=h(q,e=>e.isLoginSessionInvalid),_u=h(q,e=>e.tokenLogin),Ou=h(q,e=>e.logoutRoute);n();var Vo=e=>e.modals,Bu=h(Vo,e=>e.txSubmittedModal),$u=h(Vo,e=>e.notificationModal);n();var oe=e=>e.networkConfig,Gu=h(oe,e=>e.chainID),Hu=h(oe,e=>e.network.walletConnectBridgeAddress),qu=h(oe,e=>e.network.walletConnectV2RelayAddress),ju=h(oe,e=>e.network.walletConnectV2ProjectId),zu=h(oe,e=>e.network.walletConnectV2Options),Ku=h(oe,e=>e.network.walletConnectDeepLink),_e=h(oe,e=>e.network),Wo=h(_e,e=>e.apiAddress),Go=h(_e,e=>e.explorerAddress),Ho=h(_e,e=>e.egldLabel);n();var kr=e=>e.signedMessageInfo,Xu=h(kr,e=>e.isSigning),Qu=h(kr,e=>e.errorMessage),Ju=h(kr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});n();var Lr=e=>e.toasts,rd=h(Lr,e=>e.customToasts),nd=h(Lr,e=>e.transactionToasts),od=h(Lr,e=>e.failTransactionToast);n();X();var qo={errorMessage:wr,successMessage:Ir,processingMessage:vr},ka=e=>e.transactionsInfo,cd=h(ka,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||qo);n();n();var B=require("@multiversx/sdk-core");b();n();function Dr(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function yt(e){var i,l,p;let{data:t}=e,r=Dr(t!=null?t:"")?B.TransactionPayload.fromEncoded(t):new B.TransactionPayload(t),o=new B.Transaction(S({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new B.Address(e.receiver),sender:new B.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:Qt,gasPrice:(l=e.gasPrice.valueOf())!=null?l:Jt,chainID:e.chainID.valueOf(),version:new B.TransactionVersion((p=e.version)!=null?p:Vn)},e.options?{options:new B.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new B.Address(e.sender)),o}n();Er();n();var Pr=v(require("bignumber.js"));H();n();n();function Nr(e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>127)return!1;return!0}function Oe(e){let t=e;try{let r=s.Buffer.from(e,"hex").toString();Nr(r)&&r.length>1&&(t=r)}catch(r){}return t}n();var jo=(e,t)=>{let r=[],o=e.indexOf(t,0);for(;o>=0;)r.push(o),o=e.indexOf(t,o+1);return r};function Ko(e){let t=[],r=0;try{if((e==null?void 0:e.startsWith("MultiESDTNFTTransfer"))&&(e==null?void 0:e.includes("@"))){let[,o,i,...l]=e==null?void 0:e.split("@");if(o){let p=new Pr.default(i,16).toNumber(),d=0;for(let T=0;T<p;T++){let w={type:"nftTransaction",data:"",receiver:o};for(let y=0;y<3;y++){switch(y){case 0:w.token=Oe(l[d]),w.data=l[d];break;case 1:{let A=l[d]&&l[d].length?l[d]:"";A?w.nonce=A:w.type="esdtTransaction",w.data=`${w.data}@${l[d]}`;break}case 2:w.amount=new Pr.default(l[d],16).toString(10),w.data=`${w.data}@${l[d]}`;break;default:break}r=d+1,d++}t[T]=w}let m=t.length!==p,g=t.some(T=>jo(T.data,"@").length!==2),f=t.some(T=>T.data.startsWith("@"));if(m||g||f)return[];if(l[r]){let T=l[r];for(let w=r+1;w<l.length;w++)T+="@"+l[w];t[p]={type:"scCall",data:T,receiver:o}}}}}catch(o){return console.error("failed parsing tx",o),t}return t}n();var Rr=require("@multiversx/sdk-core"),Mr=v(require("bignumber.js"));W();n();var Yo=require("@multiversx/sdk-core");function La(e){try{let t=new Yo.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function ht(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&La(e)}var Cr={tokenId:"",amount:""},Da=e=>e.split("@").map((l,p)=>[2,3].includes(p)?l:Oe(l));function _r(e){if(!e)return Cr;let t=e.startsWith("ESDTTransfer"),r=e.startsWith("ESDTNFTTransfer")&&e.includes("@");if(t){let[,o,i]=e.split("@");try{let l=s.Buffer.from(o,"hex").toString("ascii");if(!l)return Cr;let p=new Mr.default("0x"+i.replace("0x","")).toString(10);return{tokenId:l,amount:p}}catch(l){console.error("Error getting token from transaction data",l)}}if(r)try{let[,o,i,l,p]=Da(e);if([o,i,l,p].every(d=>Boolean(d))&&ht(new Rr.Address(p).bech32()))return{tokenId:`${o}-${i}`,amount:new Mr.default(l,16).toString(10),collection:o,nonce:i,receiver:new Rr.Address(p).bech32()}}catch(o){}return Cr}n();function Zo({tokenId:e,erdLabel:t}){return Boolean(e&&e!==t)}n();n();var Pa=require("@multiversx/sdk-core/out");n();b();n();var Xo=require("@multiversx/sdk-core");H();n();n();n();n();W();function xt(e){let r=Object.getPrototypeOf(e).toPlainObject!=null?e:yt(e);return I(S({},r.toPlainObject()),{hash:r.getHash().hex(),status:"pending"})}n();n();var Fr=require("@reduxjs/toolkit"),wi=require("react-redux/lib/utils/Subscription");X();n();var Qo=v(require("lodash.throttle"));b();X();lr();et();Le();var Ca=[Qe],St=!1,Ra=(0,Qo.default)(()=>{Ne(De())},5e3),Jo=e=>t=>r=>{var m;if(Ca.includes(r.type))return t(r);let o=e.getState(),i=Se.local.getItem(ge.loginExpiresAt);if(!Ce((m=o==null?void 0:o.loginInfo)==null?void 0:m.loginMethod,o==null?void 0:o.account.address))return t(r);if(i==null)return Ne(De());let p=Date.now();return i-p<0&&!St?setTimeout(()=>{St=!0,e.dispatch(ao())},1e3):(St&&(St=!1),Ra()),t(r)};n();n();function wt(){return typeof sessionStorage!="undefined"}var hi=wt()?(li(),ke(ci)).default:(ui(),ke(pi)).default,xi=wt()?(mi(),ke(di)).default:[],Si=wt()?(yi(),ke(Ti)).default:e=>e;It();var M=(0,Fr.configureStore)({reducer:hi,middleware:e=>e({serializableCheck:{ignoredActions:[...xi,ro.type,to.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Jo)}),Ii=(0,wi.createSubscription)(M),Vm=Si(M),Wm=(0,Fr.configureStore)({reducer:Ie});n();n();n();n();n();n();var Fe="accounts";n();n();n();n();F();n();n();F();n();n();n();var Ja=v(require("bignumber.js"));b();n();var Qa=require("@multiversx/sdk-core"),Ur=v(require("bignumber.js"));b();n();var Za=v(require("bignumber.js"));n();Ur.default.config({ROUNDING_MODE:Ur.default.ROUND_FLOOR});n();n();n();b();n();n();n();n();b();n();b();n();var ec=require("@multiversx/sdk-core");b();n();var Ue=require("@multiversx/sdk-core"),rc=require("@multiversx/sdk-network-providers");b();n();n();var tc=v(require("bignumber.js"));b();n();b();n();n();n();n();n();b();n();F();var oc=["reDelegateRewards","claimRewards","unBond"],ic=["wrapEgld","unwrapEgld"],sc=["unStake"],ac=["unDelegate"];n();n();n();b();n();var pc=v(require("bignumber.js"));n();n();n();F();n();var uc=v(require("bignumber.js"));n();n();n();n();F();n();n();n();var mc=v(require("linkifyjs"));n();b();n();var gc=v(require("bignumber.js"));n();H();n();n();W();n();W();n();n();n();F();n();F();n();var fc=v(require("bignumber.js"));b();F();n();F();n();var ki=require("react");H();n();n();F();n();var Tc=require("@multiversx/sdk-core/out"),yc=v(require("bignumber.js"));F();n();F();n();n();W();var Dh=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Li=require("react");H();n();var xc=require("react");F();var Oh=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var kt=e=>e.transactions,Be=h(kt,e=>e.signedTransactions),Sx=h(kt,e=>e.signTransactionsError),Di=h(kt,e=>e.signTransactionsCancelMessage),Lt=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),wx=h(Be,Lt(Co)),Ix=h(Be,Lt(pt)),vx=h(Be,Lt(ut)),Ax=h(Be,Lt(Ro)),Dt=h(kt,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:I(S({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>yt(r)))||[]})}),bx=h(Be,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function Pi(e){return C(this,null,function*(){let{network:{apiAddress:t,apiTimeout:r}}=oe(M.getState()),{data:o}=yield Ni.default.get(`/${Fe}/${e}`,{baseURL:t,timeout:Number(r)});return o})}n();n();var Ci=require("react"),ve=require("react-redux");var Sc={store:M,subscription:Ii},$r=(0,Ci.createContext)(Sc),Wx=(0,ve.createStoreHook)($r),ce=(0,ve.createDispatchHook)($r),_=(0,ve.createSelectorHook)($r);var Ri=()=>_(Bo);n();n();n();n();var Mi=require("@multiversx/sdk-extension-provider"),_i=require("@multiversx/sdk-hw-provider"),Oi=require("@multiversx/sdk-opera-provider"),Fi=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),Ui=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),Bi=require("@multiversx/sdk-web-wallet-provider");b();W();var Pt=e=>{switch(e==null?void 0:e.constructor){case Bi.WalletProvider:return"wallet";case Fi.WalletConnectProvider:return"walletconnect";case Ui.WalletConnectV2Provider:return"walletconnectv2";case _i.HWProvider:return"ledger";case Mi.ExtensionProvider:return"extension";case Oi.OperaProvider:return"opera";case Nt:return"";default:return"extra"}};var ie=e=>`Unable to perform ${e}, Provider not initialized`,Nt=class{init(){return Promise.resolve(!1)}login(t){throw new Error(ie(`login with options: ${t}`))}logout(t){throw new Error(ie(`logout with options: ${t}`))}getAddress(){throw new Error(ie("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(ie(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(ie(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(ie(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(ie(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(ie(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(ie(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},Vr=new Nt;var wc=Vr;function $e(){return wc||Vr}var Ct=()=>{let e=$e(),t=Pt(e);return{provider:e,providerType:t}};n();var fe=require("react");n();var Ve=require("react");var $i={tokenId:"",amount:"",type:"",multiTxData:"",receiver:""};function Vi({transactions:e}){let[t,r]=(0,Ve.useState)({}),[o,i]=(0,Ve.useState)([]);function l(m,g){r(f=>I(S({},f),{[m]:g}))}function p(m,g){return t==null?$i:m in t?t[m]:g!=null&&String(g)in t?t[g]:$i}function d(){if(e&&e.length>0){let m=[];e.forEach((g,f)=>{let T=g.getData().toString(),w=Ko(T);if(w.length>0)w.forEach((y,A)=>{let N={transaction:g,multiTxData:y.data,transactionIndex:A};l(y.data,{tokenId:y.token?y.token:"",amount:y.amount?y.amount:"",type:y.type,nonce:y.nonce?y.nonce:"",multiTxData:y.data,receiver:y.receiver}),m.push(N)});else{let{tokenId:y,amount:A}=_r(g.getData().toString());y&&l(g.getData().toString(),{tokenId:y,amount:A,receiver:g.getReceiver().bech32()}),m.push({transaction:g,transactionIndex:f})}}),i(m)}}return(0,Ve.useEffect)(()=>{d()},[e==null?void 0:e.length]),{parsedTransactionsByDataField:t,getTxInfoByDataField:p,allTransactions:o}}Tr();var Rt={};function Wi({isLedger:e=!1,transactionsToSign:t,egldLabel:r,address:o,onCancel:i,onSignTransaction:l,onTransactionsSignError:p,onTransactionsSignSuccess:d,onGetScamAddressData:m}){var Kr,Yr,Zr;let[g,f]=(0,fe.useState)(0),[T,w]=(0,fe.useState)(),[y,A]=(0,fe.useState)(null),[N,$]=(0,fe.useState)(!1),{getTxInfoByDataField:le,allTransactions:L}=Vi({transactions:t}),O=g===L.length-1;(0,fe.useEffect)(()=>{qr()},[g,L]);function qr(){return C(this,null,function*(){var Jr;let k=L[g];if(k==null)return;let{transaction:P,multiTxData:Q}=k,Mt=P.getData().toString(),Xr=le(P.getData().toString(),Q),{tokenId:Qr}=Xr,be=P.getReceiver().toString(),ms=o!==be,gs=be in Rt;if(ms&&!gs&&m!=null){let He=yield m(be);Rt=S(S({},Rt),He!=null&&He.scamInfo?{[be]:He.scamInfo}:{})}let fs=Boolean(Qr&&Zo({tokenId:Qr,erdLabel:r}));A({transaction:P,receiverScamInfo:((Jr=Rt[be])==null?void 0:Jr.info)||null,transactionTokenInfo:Xr,isTokenTransaction:fs,dataField:Mt})})}function Ge(){f(0),w(void 0),$(!1)}function jr(){return C(this,null,function*(){try{if(y==null)return;$(e);let k=yield l(y.transaction),P={[g]:k},Q=T?S(S({},T),P):P;w(Q),O?Q&&(d(Object.values(Q)),Ge()):(f(Mt=>Mt+1),$(!1))}catch(k){console.error(k,"sign error");let{message:P}=k,Q=e?yo(k).errorMessage:null;Ge(),p(Q!=null?Q:P)}})}function as(){try{if(y==null)return;y.transaction.getSignature().hex()?O||f(P=>P+1):jr()}catch(k){jr()}}let cs=g===0;function ls(){cs?i==null||i():f(k=>k-1)}let zr=Boolean(((Kr=y==null?void 0:y.transactionTokenInfo)==null?void 0:Kr.type)&&((Yr=y==null?void 0:y.transactionTokenInfo)==null?void 0:Yr.multiTxData)&&!(y!=null&&y.dataField.endsWith((Zr=y==null?void 0:y.transactionTokenInfo)==null?void 0:Zr.multiTxData)));function ps(){zr?f(k=>k+1):as()}function us(){f(k=>{let P=k+1;return P>(L==null?void 0:L.length)?k:P})}function ds(){f(k=>{let P=k-1;return P<0?k:P})}return{allTransactions:L,onSignTransaction:ps,onNext:us,onPrev:ds,waitingForDevice:N,onAbort:ls,isLastTransaction:O,isFirstTransaction:g===0,hasMultipleTransactions:L.length>1,shouldContinueWithoutSigning:zr,currentStep:g,signedTransactions:T,currentTransaction:y}}X();H();n();n();function Gi(){let e=$e();return Pt(e)}function Hi(e){return Gi()===e}gr();n();function qi(e){let t=Dt(M.getState()),r=Object.keys(e).length===(t==null?void 0:t.transactions.length);return e&&(e&&r)}n();zt();X();function ji(){let e=ce();return t=>{e(dt()),e(at(t)),e(mt(kn))}}n();var Ae=require("react"),Hr=require("@multiversx/sdk-extension-provider");b();n();n();var Wr=()=>_(Me);n();n();n();n();n();var We=v(require("react"));var RS=(0,We.createContext)({}),MS=M.getState();n();var Ki=v(require("react"));n();var Gr=v(require("react")),Ic=v(require("axios"));n();n();n();var Yi=require("react"),Zi=require("@multiversx/sdk-web-wallet-provider"),Xi=v(require("qs"));b();X();W();function Qi(e){let{search:t}=window.location,r=_(_e),o=ce();(0,Yi.useEffect)(()=>{if(t!=null){let i=Xi.default.parse(t.replace("?",""));if(i&&er in i){let l=String(i[er]),p=new Zi.WalletProvider(`${r.walletAddress}${Wn}`).getTransactionsFromWalletUrl();if(i.status==="cancelled"){o(we({sessionId:l,status:"cancelled"})),e(),history.pushState({},document==null?void 0:document.title,"?");return}p.length>0&&(o(we({sessionId:l,status:"signed",transactions:p.map(d=>xt(d))})),history.pushState({},document==null?void 0:document.title,"?"))}}},[t])}X();n();n();n();n();var es=v(require("axios"));n();n();var Ji=e=>{let t=e!=null?e:Wo(M.getState());return t.endsWith("/")?t.slice(0,-1):t};function ts(e){return C(this,null,function*(){if(!e)return null;let r=`${Ji()}/${Fe}/${e}`;try{let{data:o}=yield es.default.get(r);return o}catch(o){console.error("error fetching configuration for ",r)}return null})}function rs(e){return C(this,null,function*(){return yield ts(e)})}n();function ns(e){let t=M.getState(),r=$o(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}var vc=(e,t)=>t.map((r,o)=>(r.setNonce(e+o),r)),os=()=>{let e=_(Re);return t=>C(void 0,null,function*(){let r=yield rs(e),o=ns(r);return vc(o,t)})};var is=()=>{let e=ce(),{provider:t}=Ct(),{nonce:r}=Wr(),[o,i]=(0,Ae.useState)(null),[l,p]=(0,Ae.useState)(),[d,m]=(0,Ae.useState)([]),g=os(),f=_(Dt),T=_(Di),w=()=>C(void 0,null,function*(){var L;let $=Boolean(f==null?void 0:f.transactions),le=(L=f==null?void 0:f.transactions)!=null?L:[];if($){let O=yield g(le);m(O)}p($)});(0,Ae.useEffect)(()=>{w()},[f,r]);let y=()=>{i(null),e(mt(null))},A=$=>{y(),N($)};Qi(A);function N($){var L,O;let le=t instanceof Hr.ExtensionProvider;e(dt()),e(at($)),e(Do(Xe)),le&&(y(),(O=(L=Hr.ExtensionProvider.getInstance())==null?void 0:L.cancelAction)==null||O.call(L))}return{error:o,canceledTransactionsMessage:T,clearTransactionStatusMessage:y,onAbort:A,setError:i,hasTransactions:l,transactionsToSign:f&&I(S({},f),{transactions:d})}};function ss({onCancel:e,verifyReceiverScam:t=!0}){let{transactionsToSign:r,hasTransactions:o}=is(),i=_(Ho),{account:{address:l}}=Ri(),{provider:p}=Ct(),d=ce(),m=ji(),{transactions:g,sessionId:f,callbackRoute:T,customTransactionInformation:w}=r||{};function y(O){f&&d(we({sessionId:f,status:"cancelled"})),d(Fo(O))}let A=T!=null&&window.location.pathname.includes(T);function N(O){!qi(O)||f&&(d(we({sessionId:f,status:"signed",transactions:O.map(Ge=>xt(Ge))})),T!=null&&(w==null?void 0:w.redirectAfterSign)&&!A&&mr(T))}function $(){e(),m(f)}function le(O){return C(this,null,function*(){return yield p.signTransaction(O)})}let L=Wi({address:l,egldLabel:i,transactionsToSign:o?g:[],onGetScamAddressData:t?Pi:null,isLedger:Hi("ledger"),onCancel:$,onSignTransaction:le,onTransactionsSignError:y,onTransactionsSignSuccess:N});return I(S({},L),{callbackRoute:T})}function Ac(e){return ss(e)}0&&(module.exports={useSignTransactionsWithLedger});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";var Rr=Object.create;var O=Object.defineProperty;var Ur=Object.getOwnPropertyDescriptor;var _r=Object.getOwnPropertyNames;var Cr=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty;var Sr=(t,r)=>()=>(t&&(r=t(t=0)),r);var b=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Nr=(t,r)=>{for(var e in r)O(t,e,{get:r[e],enumerable:!0})},er=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of _r(r))!Lr.call(t,i)&&i!==e&&O(t,i,{get:()=>r[i],enumerable:!(n=Ur(r,i))||n.enumerable});return t};var tr=(t,r,e)=>(e=t!=null?Rr(Cr(t)):{},er(r||!t||!t.__esModule?O(e,"default",{value:t,enumerable:!0}):e,t)),Mr=t=>er(O({},"__esModule",{value:!0}),t);var or=b(G=>{"use strict";E();G.byteLength=kr;G.toByteArray=br;G.fromByteArray=Vr;var A=[],m=[],Dr=typeof Uint8Array!="undefined"?Uint8Array:Array,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(R=0,nr=Y.length;R<nr;++R)A[R]=Y[R],m[Y.charCodeAt(R)]=R;var R,nr;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function ir(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 kr(t){var r=ir(t),e=r[0],n=r[1];return(e+n)*3/4-n}function Or(t,r,e){return(r+e)*3/4-e}function br(t){var r,e=ir(t),n=e[0],i=e[1],o=new Dr(Or(t,n,i)),u=0,h=i>0?n-4:n,f;for(f=0;f<h;f+=4)r=m[t.charCodeAt(f)]<<18|m[t.charCodeAt(f+1)]<<12|m[t.charCodeAt(f+2)]<<6|m[t.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=m[t.charCodeAt(f)]<<2|m[t.charCodeAt(f+1)]>>4,o[u++]=r&255),i===1&&(r=m[t.charCodeAt(f)]<<10|m[t.charCodeAt(f+1)]<<4|m[t.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Gr(t){return A[t>>18&63]+A[t>>12&63]+A[t>>6&63]+A[t&63]}function Wr(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 Vr(t){for(var r,e=t.length,n=e%3,i=[],o=16383,u=0,h=e-n;u<h;u+=o)i.push(Wr(t,u,u+o>h?h:u+o));return n===1?(r=t[e-1],i.push(A[r>>2]+A[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(A[r>>10]+A[r>>4&63]+A[r<<2&63]+"=")),i.join("")}});var ur=b(q=>{E();q.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,g=e?-1:1,y=t[r+p];for(p+=g,o=y&(1<<-s)-1,y>>=-s,s+=h;s>0;o=o*256+t[r+p],p+=g,s-=8);for(u=o&(1<<-s)-1,o>>=-s,s+=n;s>0;u=u*256+t[r+p],p+=g,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)};q.write=function(t,r,e,n,i,o){var u,h,f,c=o*8-i-1,s=(1<<c)-1,p=s>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:o-1,C=n?1:-1,Tr=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+=g/f:r+=g*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+=C,h/=256,i-=8);for(u=u<<i|h,c+=i;c>0;t[e+y]=u&255,y+=C,u/=256,c-=8);t[e+y-C]|=Tr*128}});var gr=b(M=>{"use strict";E();var H=or(),N=ur(),ar=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;M.Buffer=a;M.SlowBuffer=zr;M.INSPECT_MAX_BYTES=50;var W=2147483647;M.kMaxLength=W;a.TYPED_ARRAY_SUPPORT=Xr();!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 Xr(){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>W)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 K(t)}return pr(t,r,e)}a.poolSize=8192;function pr(t,r,e){if(typeof t=="string")return qr(t,r);if(ArrayBuffer.isView(t))return Hr(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 z(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=Pr(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 pr(t,r,e)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function cr(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 cr(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 K(t){return cr(t),v(t<0?0:Q(t)|0)}a.allocUnsafe=function(t){return K(t)};a.allocUnsafeSlow=function(t){return K(t)};function qr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=sr(t,r)|0,n=v(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function P(t){for(var r=t.length<0?0:Q(t.length)|0,e=v(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function Hr(t){if(F(t,Uint8Array)){var r=new Uint8Array(t);return z(r.buffer,r.byteOffset,r.byteLength)}return P(t)}function z(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 Pr(t){if(a.isBuffer(t)){var r=Q(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"||Z(t.length)?v(0):P(t);if(t.type==="Buffer"&&Array.isArray(t.data))return P(t.data)}function Q(t){if(t>=W)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+W.toString(16)+" bytes");return t|0}function zr(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 sr(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 J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return mr(t).length;default:if(i)return n?-1:J(t).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=sr;function Jr(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 ie(this,r,e);case"utf8":case"utf-8":return xr(this,r,e);case"ascii":return te(this,r,e);case"latin1":case"binary":return ne(this,r,e);case"base64":return re(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function U(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)U(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)U(this,e,e+3),U(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)U(this,e,e+7),U(this,e+1,e+6),U(this,e+2,e+5),U(this,e+3,e+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?xr(this,0,r):Jr.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+">"};ar&&(a.prototype[ar]=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 lr(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,Z(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:hr(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):hr(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function hr(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,C){return o===1?y[C]:y.readUInt16BE(C*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,g=0;g<h;g++)if(f(t,c+g)!==f(r,g)){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 lr(this,r,e,n,!0)};a.prototype.lastIndexOf=function(r,e,n){return lr(this,r,e,n,!1)};function Kr(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(Z(h))return u;t[e+u]=h}return u}function Qr(t,r,e,n){return V(J(r,t.length-e),t,e,n)}function Zr(t,r,e,n){return V(he(r),t,e,n)}function $r(t,r,e,n){return V(mr(r),t,e,n)}function jr(t,r,e,n){return V(fe(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 Kr(this,r,e,n);case"utf8":case"utf-8":return Qr(this,r,e,n);case"ascii":case"latin1":case"binary":return Zr(this,r,e,n);case"base64":return $r(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jr(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 re(t,r,e){return r===0&&e===t.length?H.fromByteArray(t):H.fromByteArray(t.slice(r,e))}function xr(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 ee(n)}var fr=4096;function ee(t){var r=t.length;if(r<=fr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=fr));return e}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]&127);return n}function ne(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 ie(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+=pe[t[o]];return i}function oe(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 x(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||x(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||x(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||x(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||x(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||x(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||x(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||x(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||x(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||x(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||x(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,e){r=r>>>0,e||x(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||x(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||x(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||x(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||x(r,4,this.length),N.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,e){return r=r>>>0,e||x(r,4,this.length),N.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||x(r,8,this.length),N.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||x(r,8,this.length),N.read(this,r,!1,52,8)};function w(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;w(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;w(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||w(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||w(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||w(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||w(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||w(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);w(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);w(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||w(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||w(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||w(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||w(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||w(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 wr(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 yr(t,r,e,n,i){return r=+r,e=e>>>0,i||wr(t,r,e,4,34028234663852886e22,-34028234663852886e22),N.write(t,r,e,n,23,4),e+4}a.prototype.writeFloatLE=function(r,e,n){return yr(this,r,e,!0,n)};a.prototype.writeFloatBE=function(r,e,n){return yr(this,r,e,!1,n)};function Er(t,r,e,n,i){return r=+r,e=e>>>0,i||wr(t,r,e,8,17976931348623157e292,-17976931348623157e292),N.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 ue=/[^+/0-9A-Za-z-_]/g;function ae(t){if(t=t.split("=")[0],t=t.trim().replace(ue,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(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 he(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function fe(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 mr(t){return H.toByteArray(ae(t))}function V(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 Z(t){return t!==t}var pe=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 vr=b((de,Ir)=>{E();var l=Ir.exports={},d,I;function $(){throw new Error("setTimeout has not been defined")}function j(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?d=setTimeout:d=$}catch(t){d=$}try{typeof clearTimeout=="function"?I=clearTimeout:I=j}catch(t){I=j}})();function Ar(t){if(d===setTimeout)return setTimeout(t,0);if((d===$||!d)&&setTimeout)return d=setTimeout,setTimeout(t,0);try{return d(t,0)}catch(r){try{return d.call(null,t,0)}catch(e){return d.call(this,t,0)}}}function ce(t){if(I===clearTimeout)return clearTimeout(t);if((I===j||!I)&&clearTimeout)return I=clearTimeout,clearTimeout(t);try{return I(t)}catch(r){try{return I.call(null,t)}catch(e){return I.call(this,t)}}}var B=[],D=!1,_,X=-1;function se(){!D||!_||(D=!1,_.length?B=_.concat(B):X=-1,B.length&&Fr())}function Fr(){if(!D){var t=Ar(se);D=!0;for(var r=B.length;r;){for(_=B,B=[];++X<r;)_&&_[X].run();X=-1,r=B.length}_=null,D=!1,ce(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];B.push(new dr(t,r)),B.length===1&&!D&&Ar(Fr)};function dr(t,r){this.fun=t,this.array=r}dr.prototype.run=function(){this.fun.apply(null,this.array)};l.title="browser";l.browser=!0;l.env={};l.argv=[];l.version="";l.versions={};function T(){}l.on=T;l.addListener=T;l.once=T;l.off=T;l.removeListener=T;l.removeAllListeners=T;l.emit=T;l.prependListener=T;l.prependOnceListener=T;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 L,S,Ie,E=Sr(()=>{L=tr(gr()),S=tr(vr()),Ie=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 Ee={};Nr(Ee,{getLedgerErrorCodes:()=>ye});module.exports=Mr(Ee);E();E();var rr={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 Br="Check if MultiversX app is open on Ledger",le=28161,xe=28160,we=[le,xe];function ye(t){let r=null;if((t==null?void 0:t.statusCode)in rr){let e=t==null?void 0:t.statusCode,{message:n}=rr[e];r=we.includes(e)?Br:n}return{errorMessage:r,defaultErrorMessage:Br}}0&&(module.exports={getLedgerErrorCodes});
1
+ "use strict";var Rr=Object.create;var O=Object.defineProperty;var Ur=Object.getOwnPropertyDescriptor;var _r=Object.getOwnPropertyNames;var Cr=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty;var Sr=(t,r)=>()=>(t&&(r=t(t=0)),r);var b=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Nr=(t,r)=>{for(var e in r)O(t,e,{get:r[e],enumerable:!0})},er=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of _r(r))!Lr.call(t,i)&&i!==e&&O(t,i,{get:()=>r[i],enumerable:!(n=Ur(r,i))||n.enumerable});return t};var tr=(t,r,e)=>(e=t!=null?Rr(Cr(t)):{},er(r||!t||!t.__esModule?O(e,"default",{value:t,enumerable:!0}):e,t)),Mr=t=>er(O({},"__esModule",{value:!0}),t);var or=b(G=>{"use strict";E();G.byteLength=kr;G.toByteArray=br;G.fromByteArray=Vr;var A=[],m=[],Dr=typeof Uint8Array!="undefined"?Uint8Array:Array,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(R=0,nr=Y.length;R<nr;++R)A[R]=Y[R],m[Y.charCodeAt(R)]=R;var R,nr;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function ir(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 kr(t){var r=ir(t),e=r[0],n=r[1];return(e+n)*3/4-n}function Or(t,r,e){return(r+e)*3/4-e}function br(t){var r,e=ir(t),n=e[0],i=e[1],o=new Dr(Or(t,n,i)),u=0,h=i>0?n-4:n,f;for(f=0;f<h;f+=4)r=m[t.charCodeAt(f)]<<18|m[t.charCodeAt(f+1)]<<12|m[t.charCodeAt(f+2)]<<6|m[t.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=m[t.charCodeAt(f)]<<2|m[t.charCodeAt(f+1)]>>4,o[u++]=r&255),i===1&&(r=m[t.charCodeAt(f)]<<10|m[t.charCodeAt(f+1)]<<4|m[t.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Gr(t){return A[t>>18&63]+A[t>>12&63]+A[t>>6&63]+A[t&63]}function Wr(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 Vr(t){for(var r,e=t.length,n=e%3,i=[],o=16383,u=0,h=e-n;u<h;u+=o)i.push(Wr(t,u,u+o>h?h:u+o));return n===1?(r=t[e-1],i.push(A[r>>2]+A[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(A[r>>10]+A[r>>4&63]+A[r<<2&63]+"=")),i.join("")}});var ur=b(q=>{E();q.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,g=e?-1:1,y=t[r+p];for(p+=g,o=y&(1<<-s)-1,y>>=-s,s+=h;s>0;o=o*256+t[r+p],p+=g,s-=8);for(u=o&(1<<-s)-1,o>>=-s,s+=n;s>0;u=u*256+t[r+p],p+=g,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)};q.write=function(t,r,e,n,i,o){var u,h,f,c=o*8-i-1,s=(1<<c)-1,p=s>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:o-1,C=n?1:-1,Tr=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+=g/f:r+=g*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+=C,h/=256,i-=8);for(u=u<<i|h,c+=i;c>0;t[e+y]=u&255,y+=C,u/=256,c-=8);t[e+y-C]|=Tr*128}});var gr=b(M=>{"use strict";E();var H=or(),N=ur(),ar=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;M.Buffer=a;M.SlowBuffer=zr;M.INSPECT_MAX_BYTES=50;var W=2147483647;M.kMaxLength=W;a.TYPED_ARRAY_SUPPORT=Xr();!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 Xr(){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>W)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 K(t)}return pr(t,r,e)}a.poolSize=8192;function pr(t,r,e){if(typeof t=="string")return qr(t,r);if(ArrayBuffer.isView(t))return Hr(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 z(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=Pr(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 pr(t,r,e)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function cr(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 cr(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 K(t){return cr(t),v(t<0?0:Q(t)|0)}a.allocUnsafe=function(t){return K(t)};a.allocUnsafeSlow=function(t){return K(t)};function qr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=sr(t,r)|0,n=v(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function P(t){for(var r=t.length<0?0:Q(t.length)|0,e=v(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function Hr(t){if(F(t,Uint8Array)){var r=new Uint8Array(t);return z(r.buffer,r.byteOffset,r.byteLength)}return P(t)}function z(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 Pr(t){if(a.isBuffer(t)){var r=Q(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"||Z(t.length)?v(0):P(t);if(t.type==="Buffer"&&Array.isArray(t.data))return P(t.data)}function Q(t){if(t>=W)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+W.toString(16)+" bytes");return t|0}function zr(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 sr(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 J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return mr(t).length;default:if(i)return n?-1:J(t).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=sr;function Jr(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 ie(this,r,e);case"utf8":case"utf-8":return xr(this,r,e);case"ascii":return te(this,r,e);case"latin1":case"binary":return ne(this,r,e);case"base64":return re(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function U(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)U(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)U(this,e,e+3),U(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)U(this,e,e+7),U(this,e+1,e+6),U(this,e+2,e+5),U(this,e+3,e+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?xr(this,0,r):Jr.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+">"};ar&&(a.prototype[ar]=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 lr(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,Z(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:hr(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):hr(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function hr(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,C){return o===1?y[C]:y.readUInt16BE(C*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,g=0;g<h;g++)if(f(t,c+g)!==f(r,g)){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 lr(this,r,e,n,!0)};a.prototype.lastIndexOf=function(r,e,n){return lr(this,r,e,n,!1)};function Kr(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(Z(h))return u;t[e+u]=h}return u}function Qr(t,r,e,n){return V(J(r,t.length-e),t,e,n)}function Zr(t,r,e,n){return V(he(r),t,e,n)}function $r(t,r,e,n){return V(mr(r),t,e,n)}function jr(t,r,e,n){return V(fe(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 Kr(this,r,e,n);case"utf8":case"utf-8":return Qr(this,r,e,n);case"ascii":case"latin1":case"binary":return Zr(this,r,e,n);case"base64":return $r(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jr(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 re(t,r,e){return r===0&&e===t.length?H.fromByteArray(t):H.fromByteArray(t.slice(r,e))}function xr(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 ee(n)}var fr=4096;function ee(t){var r=t.length;if(r<=fr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=fr));return e}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]&127);return n}function ne(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 ie(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+=pe[t[o]];return i}function oe(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 x(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||x(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||x(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||x(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||x(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||x(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||x(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||x(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||x(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||x(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||x(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,e){r=r>>>0,e||x(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||x(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||x(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||x(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||x(r,4,this.length),N.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,e){return r=r>>>0,e||x(r,4,this.length),N.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||x(r,8,this.length),N.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||x(r,8,this.length),N.read(this,r,!1,52,8)};function w(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;w(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;w(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||w(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||w(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||w(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||w(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||w(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);w(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);w(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||w(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||w(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||w(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||w(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||w(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 wr(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 yr(t,r,e,n,i){return r=+r,e=e>>>0,i||wr(t,r,e,4,34028234663852886e22,-34028234663852886e22),N.write(t,r,e,n,23,4),e+4}a.prototype.writeFloatLE=function(r,e,n){return yr(this,r,e,!0,n)};a.prototype.writeFloatBE=function(r,e,n){return yr(this,r,e,!1,n)};function Er(t,r,e,n,i){return r=+r,e=e>>>0,i||wr(t,r,e,8,17976931348623157e292,-17976931348623157e292),N.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 ue=/[^+/0-9A-Za-z-_]/g;function ae(t){if(t=t.split("=")[0],t=t.trim().replace(ue,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(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 he(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function fe(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 mr(t){return H.toByteArray(ae(t))}function V(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 Z(t){return t!==t}var pe=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 vr=b((de,Ir)=>{E();var l=Ir.exports={},d,I;function $(){throw new Error("setTimeout has not been defined")}function j(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?d=setTimeout:d=$}catch(t){d=$}try{typeof clearTimeout=="function"?I=clearTimeout:I=j}catch(t){I=j}})();function Ar(t){if(d===setTimeout)return setTimeout(t,0);if((d===$||!d)&&setTimeout)return d=setTimeout,setTimeout(t,0);try{return d(t,0)}catch(r){try{return d.call(null,t,0)}catch(e){return d.call(this,t,0)}}}function ce(t){if(I===clearTimeout)return clearTimeout(t);if((I===j||!I)&&clearTimeout)return I=clearTimeout,clearTimeout(t);try{return I(t)}catch(r){try{return I.call(null,t)}catch(e){return I.call(this,t)}}}var B=[],D=!1,_,X=-1;function se(){!D||!_||(D=!1,_.length?B=_.concat(B):X=-1,B.length&&Fr())}function Fr(){if(!D){var t=Ar(se);D=!0;for(var r=B.length;r;){for(_=B,B=[];++X<r;)_&&_[X].run();X=-1,r=B.length}_=null,D=!1,ce(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];B.push(new dr(t,r)),B.length===1&&!D&&Ar(Fr)};function dr(t,r){this.fun=t,this.array=r}dr.prototype.run=function(){this.fun.apply(null,this.array)};l.title="browser";l.browser=!0;l.env={};l.argv=[];l.version="";l.versions={};function T(){}l.on=T;l.addListener=T;l.once=T;l.off=T;l.removeListener=T;l.removeAllListeners=T;l.emit=T;l.prependListener=T;l.prependOnceListener=T;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 L,S,Ie,E=Sr(()=>{L=tr(gr()),S=tr(vr()),Ie=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 Ee={};Nr(Ee,{getLedgerErrorCodes:()=>ye});module.exports=Mr(Ee);E();E();var rr={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 Br="Check if the MultiversX app is open on Ledger",le=28161,xe=28160,we=[le,xe];function ye(t){let r=null;if((t==null?void 0:t.statusCode)in rr){let e=t==null?void 0:t.statusCode,{message:n}=rr[e];r=we.includes(e)?Br:n}return{errorMessage:r,defaultErrorMessage:Br}}0&&(module.exports={getLedgerErrorCodes});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *