@multiversx/sdk-dapp 2.8.5 → 2.8.6

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 (802) hide show
  1. package/UI/DappModal/hooks/index.js +1 -1
  2. package/UI/DappModal/hooks/useDappModal.js +1 -1
  3. package/UI/DappModal/index.js +1 -1
  4. package/UI/Denominate/index.js +1 -1
  5. package/UI/ExplorerLink/ExplorerLink.js +1 -1
  6. package/UI/ExplorerLink/index.js +1 -1
  7. package/UI/FormatAmount/FormatAmount.js +1 -1
  8. package/UI/FormatAmount/index.js +1 -1
  9. package/UI/ModalContainer/ModalContainer.js +1 -1
  10. package/UI/ModalContainer/index.js +1 -1
  11. package/UI/NotificationModal/index.js +1 -1
  12. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  13. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  14. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  15. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  16. package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  17. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  18. package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
  19. package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
  20. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  21. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  22. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  23. package/UI/SignTransactionsModals/components/index.js +1 -1
  24. package/UI/SignTransactionsModals/index.js +1 -1
  25. package/UI/TokenDetails/index.js +1 -1
  26. package/UI/TransactionData/index.js +1 -1
  27. package/UI/TransactionDetails/TransactionDetails.js +1 -1
  28. package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  29. package/UI/TransactionDetails/components/index.js +1 -1
  30. package/UI/TransactionDetails/index.js +1 -1
  31. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  32. package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
  33. package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
  34. package/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
  35. package/UI/TransactionInfo/components/DataDecode/index.js +1 -1
  36. package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
  37. package/UI/TransactionInfo/components/DataField/index.js +1 -1
  38. package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
  39. package/UI/TransactionInfo/components/EventsList/index.js +1 -1
  40. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  41. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  42. package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
  43. package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  44. package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  45. package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
  46. package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  47. package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
  48. package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
  49. package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
  50. package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
  51. package/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
  52. package/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
  53. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
  54. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
  55. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
  56. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
  57. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
  58. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
  59. package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
  60. package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
  61. package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
  62. package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
  63. package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
  64. package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
  65. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
  66. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
  67. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
  68. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
  69. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
  70. package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
  71. package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
  72. package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
  73. package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
  74. package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
  75. package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
  76. package/UI/TransactionInfo/components/index.js +1 -1
  77. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +1 -1
  78. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +1 -1
  79. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +1 -1
  80. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +1 -1
  81. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
  82. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
  83. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
  84. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
  85. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +1 -1
  86. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +1 -1
  87. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +1 -1
  88. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +1 -1
  89. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
  90. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +1 -1
  91. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
  92. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
  93. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
  94. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
  95. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
  96. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
  97. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  98. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  99. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
  100. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
  101. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
  102. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
  103. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
  104. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
  105. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
  106. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
  107. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
  108. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
  109. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  110. package/UI/TransactionInfo/index.js +1 -1
  111. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  112. package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
  113. package/UI/TransactionsTable/components/ScAddressIcon.js +1 -1
  114. package/UI/TransactionsTable/components/ShardSpan.js +1 -1
  115. package/UI/TransactionsTable/components/TransactionHash.js +1 -1
  116. package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
  117. package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
  118. package/UI/TransactionsTable/components/TransactionRow.js +1 -1
  119. package/UI/TransactionsTable/components/TransactionSender.js +1 -1
  120. package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
  121. package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
  122. package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
  123. package/UI/TransactionsTable/components/index.js +1 -1
  124. package/UI/TransactionsTable/index.js +1 -1
  125. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  126. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  127. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  128. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  129. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
  130. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  131. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  132. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  133. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  134. package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  135. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  136. package/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
  137. package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  138. package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  139. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  140. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  141. package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
  142. package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
  143. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  144. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  145. package/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
  146. package/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
  147. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  148. package/UI/TransactionsToastList/components/index.js +1 -1
  149. package/UI/TransactionsToastList/index.js +1 -1
  150. package/UI/UsdValue/UsdValue.js +1 -1
  151. package/UI/UsdValue/index.js +1 -1
  152. package/UI/extension/ExtensionLoginButton/index.js +1 -1
  153. package/UI/index.js +1 -1
  154. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  155. package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
  156. package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
  157. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  158. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  159. package/UI/ledger/index.js +1 -1
  160. package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  161. package/UI/pages/UnlockPage/index.js +1 -1
  162. package/UI/pages/index.js +1 -1
  163. package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
  164. package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
  165. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  166. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  167. package/UI/walletConnect/index.js +1 -1
  168. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  169. package/__chunks__/{chunk-GS6HJLZT.js → chunk-23V4EWR6.js} +2 -2
  170. package/__chunks__/{chunk-VYDY4AQR.js → chunk-27HHZHC3.js} +2 -2
  171. package/__chunks__/{chunk-BA2ZPL2G.js → chunk-2BB6LW6O.js} +2 -2
  172. package/__chunks__/{chunk-XX66RRCJ.js → chunk-2DPI5E3W.js} +2 -2
  173. package/__chunks__/{chunk-FP26R7AX.js → chunk-2QUSEUT4.js} +2 -2
  174. package/__chunks__/{chunk-54ZTSEQ5.js → chunk-2QZSUGLK.js} +2 -2
  175. package/__chunks__/{chunk-YKKX7VTP.js → chunk-2YVBZL56.js} +2 -2
  176. package/__chunks__/{chunk-6METVVCY.js → chunk-3CUFCCHN.js} +2 -2
  177. package/__chunks__/{chunk-NSEU7FDE.js → chunk-3EOVBK4H.js} +2 -2
  178. package/__chunks__/chunk-3LTTE7Z4.js +2 -0
  179. package/__chunks__/{chunk-G5SFDK7J.js → chunk-3RRHOO6Q.js} +2 -2
  180. package/__chunks__/{chunk-W7LZILLC.js → chunk-3SFC2GLJ.js} +2 -2
  181. package/__chunks__/{chunk-EDDPV3NE.js → chunk-3Z4WULR6.js} +2 -2
  182. package/__chunks__/{chunk-DXPKJNDE.js → chunk-47J5ACB5.js} +2 -2
  183. package/__chunks__/{chunk-FXGUPH2W.js → chunk-47LI6T2V.js} +2 -2
  184. package/__chunks__/{chunk-EQJQRYF5.js → chunk-4ALRWZZQ.js} +2 -2
  185. package/__chunks__/chunk-4G4EWYKO.js +2 -0
  186. package/__chunks__/{chunk-SGK2VHTJ.js → chunk-4HQ3HNGC.js} +2 -2
  187. package/__chunks__/{chunk-PTJNZVG2.js → chunk-4JB5QVKY.js} +2 -2
  188. package/__chunks__/{chunk-WKA6UPHX.js → chunk-4JKMMUID.js} +2 -2
  189. package/__chunks__/{chunk-U46EN25L.js → chunk-4MGZX5SO.js} +2 -2
  190. package/__chunks__/{chunk-7WQENNA3.js → chunk-4MI42IXU.js} +2 -2
  191. package/__chunks__/{chunk-DV75PUIL.js → chunk-4P3LJAUR.js} +2 -2
  192. package/__chunks__/{chunk-2SSJ2YKM.js → chunk-4RKQJ2QT.js} +2 -2
  193. package/__chunks__/{chunk-ILLMOGA7.js → chunk-4Y7CGA35.js} +2 -2
  194. package/__chunks__/chunk-53BQDHVS.js +2 -0
  195. package/__chunks__/chunk-573MD3HA.js +2 -0
  196. package/__chunks__/{chunk-QNY7VVUN.js → chunk-5DS4QT2H.js} +2 -2
  197. package/__chunks__/{chunk-5XVRM6XP.js → chunk-5FF4GQ5B.js} +2 -2
  198. package/__chunks__/{chunk-VTAWEOCS.js → chunk-5MD4G7OU.js} +2 -2
  199. package/__chunks__/{chunk-TTYMX7BT.js → chunk-5WX4CALV.js} +2 -2
  200. package/__chunks__/chunk-67ZEEHNB.js +2 -0
  201. package/__chunks__/{chunk-LHDZVAZF.js → chunk-6A26JFI6.js} +2 -2
  202. package/__chunks__/chunk-6FUSRKDM.js +2 -0
  203. package/__chunks__/{chunk-WVD4J544.js → chunk-6K7DK4BV.js} +2 -2
  204. package/__chunks__/{chunk-26ZJFITF.js → chunk-6KSF6FWJ.js} +2 -2
  205. package/__chunks__/{chunk-KQ4YTMGX.js → chunk-6KY36DKF.js} +2 -2
  206. package/__chunks__/chunk-6LEY24MG.js +2 -0
  207. package/__chunks__/chunk-6LITAK4Z.js +2 -0
  208. package/__chunks__/{chunk-EK2OJMYC.js → chunk-6LW3MPXQ.js} +2 -2
  209. package/__chunks__/{chunk-5LVCTUUY.js → chunk-6UNQJUWL.js} +2 -2
  210. package/__chunks__/{chunk-QU5E3AUX.js → chunk-6YFMGTBJ.js} +2 -2
  211. package/__chunks__/chunk-72NPJ7U6.js +2 -0
  212. package/__chunks__/{chunk-QH6XD7FF.js → chunk-73KODBLR.js} +2 -2
  213. package/__chunks__/{chunk-2GLDUTJG.js → chunk-74RGGNQE.js} +2 -2
  214. package/__chunks__/{chunk-YQYOGTKG.js → chunk-77DECFQY.js} +2 -2
  215. package/__chunks__/{chunk-ZJ54DLN6.js → chunk-77JEI7XJ.js} +2 -2
  216. package/__chunks__/{chunk-KKYUPTDF.js → chunk-7IQDNRGT.js} +2 -2
  217. package/__chunks__/chunk-7JGJFFVM.js +2 -0
  218. package/__chunks__/{chunk-GHSMZJKF.js → chunk-7M3KNDRD.js} +2 -2
  219. package/__chunks__/chunk-7S7PQZ5T.js +2 -0
  220. package/__chunks__/{chunk-PFDSWMCA.js → chunk-A2IXF222.js} +2 -2
  221. package/__chunks__/{chunk-UCIOXYG7.js → chunk-A4SQDGPF.js} +2 -2
  222. package/__chunks__/{chunk-PF57YMQ4.js → chunk-A6LP7GVR.js} +2 -2
  223. package/__chunks__/{chunk-HNJYC4EB.js → chunk-AFPIMSQ3.js} +2 -2
  224. package/__chunks__/{chunk-5FJ5AR5R.js → chunk-AHQRHYRO.js} +2 -2
  225. package/__chunks__/{chunk-A43MGEZS.js → chunk-B25RPITH.js} +2 -2
  226. package/__chunks__/{chunk-2C3YYZ5L.js → chunk-B2RKB42J.js} +2 -2
  227. package/__chunks__/{chunk-X26JPWE6.js → chunk-B3AXHK5F.js} +2 -2
  228. package/__chunks__/{chunk-CRXWPZPY.js → chunk-B3ILFYYH.js} +2 -2
  229. package/__chunks__/{chunk-ACQNMKRR.js → chunk-BF2PN3VB.js} +2 -2
  230. package/__chunks__/{chunk-ZXSHG6WE.js → chunk-BFOC3ZMG.js} +2 -2
  231. package/__chunks__/{chunk-A3RVUJJA.js → chunk-BMJLZLZM.js} +2 -2
  232. package/__chunks__/chunk-BNEETMBI.js +2 -0
  233. package/__chunks__/chunk-BNMR3XO4.js +2 -0
  234. package/__chunks__/{chunk-RVD4LBUP.js → chunk-BOKSFKJF.js} +2 -2
  235. package/__chunks__/{chunk-KLOPABPR.js → chunk-BYS7QALE.js} +2 -2
  236. package/__chunks__/{chunk-OXWKNWBA.js → chunk-CI6Z2BAF.js} +2 -2
  237. package/__chunks__/{chunk-BOG7TTXG.js → chunk-COV3NRWK.js} +2 -2
  238. package/__chunks__/{chunk-R3S3GBRF.js → chunk-CPPFVM42.js} +2 -2
  239. package/__chunks__/{chunk-WNSHEGIH.js → chunk-CRI42HNH.js} +2 -2
  240. package/__chunks__/{chunk-GS5AQB2N.js → chunk-CUFA5NAA.js} +2 -2
  241. package/__chunks__/{chunk-XYVUQB6L.js → chunk-CY7H7XN3.js} +2 -2
  242. package/__chunks__/{chunk-A6CTPEDF.js → chunk-D2Z7XPJA.js} +2 -2
  243. package/__chunks__/{chunk-6RM5F6B7.js → chunk-D65VO5NP.js} +2 -2
  244. package/__chunks__/{chunk-SLHJHRDG.js → chunk-DCXJRPKX.js} +2 -2
  245. package/__chunks__/{chunk-YRCUGAVR.js → chunk-DF24IGER.js} +2 -2
  246. package/__chunks__/{chunk-V3FDAB7B.js → chunk-DG7FFCMC.js} +2 -2
  247. package/__chunks__/{chunk-4P3ESYFB.js → chunk-DHYV75O3.js} +2 -2
  248. package/__chunks__/{chunk-DR45L5ZW.js → chunk-DO7UWPFB.js} +2 -2
  249. package/__chunks__/{chunk-PW6YTJLG.js → chunk-DQ2PRTPV.js} +2 -2
  250. package/__chunks__/{chunk-CVQTFYDA.js → chunk-DQ74GUK3.js} +2 -2
  251. package/__chunks__/{chunk-35XRH5YO.js → chunk-DQLFYAJF.js} +2 -2
  252. package/__chunks__/chunk-DTX32CUJ.js +2 -0
  253. package/__chunks__/{chunk-LFRMYD5N.js → chunk-DU5JJJHS.js} +2 -2
  254. package/__chunks__/{chunk-6RRAKU4R.js → chunk-E7GX6TO4.js} +2 -2
  255. package/__chunks__/{chunk-MONFLPCV.js → chunk-EBMIHN52.js} +2 -2
  256. package/__chunks__/chunk-EBUFLVTW.js +2 -0
  257. package/__chunks__/{chunk-LQVOQZ2Z.js → chunk-EIHQ5QAQ.js} +2 -2
  258. package/__chunks__/{chunk-JSTXHRPF.js → chunk-EIYXU6DX.js} +2 -2
  259. package/__chunks__/{chunk-4UJNHEBL.js → chunk-ELIQXNO3.js} +2 -2
  260. package/__chunks__/{chunk-HHZV7D63.js → chunk-ELPKQVAL.js} +2 -2
  261. package/__chunks__/{chunk-U7RDI4SM.js → chunk-EN36KS5J.js} +2 -2
  262. package/__chunks__/{chunk-5G4U3FMS.js → chunk-EVFPM5QZ.js} +2 -2
  263. package/__chunks__/{chunk-7H5YSU4Q.js → chunk-EVUACURD.js} +2 -2
  264. package/__chunks__/{chunk-3UUAMXNQ.js → chunk-F2EJ4NBK.js} +2 -2
  265. package/__chunks__/{chunk-ZIKKB6YX.js → chunk-F4Z4BQFP.js} +2 -2
  266. package/__chunks__/{chunk-2736QXUL.js → chunk-F536LQRD.js} +2 -2
  267. package/__chunks__/{chunk-VWPPW3QQ.js → chunk-F5N57CYV.js} +2 -2
  268. package/__chunks__/{chunk-B2DXLHFG.js → chunk-FDH2IBTM.js} +2 -2
  269. package/__chunks__/{chunk-KAM4B4VN.js → chunk-FE2XDCKI.js} +2 -2
  270. package/__chunks__/{chunk-DH27IPAK.js → chunk-FNO4F4XU.js} +2 -2
  271. package/__chunks__/{chunk-6WERDF6Z.js → chunk-FOEPS273.js} +2 -2
  272. package/__chunks__/{chunk-WFPVM7XI.js → chunk-FOTM2EHF.js} +2 -2
  273. package/__chunks__/{chunk-HA6AP7PO.js → chunk-FXJLSZIP.js} +2 -2
  274. package/__chunks__/{chunk-7X3ATYAR.js → chunk-FXKLPJUW.js} +2 -2
  275. package/__chunks__/{chunk-BGSCXB2N.js → chunk-GG6RZBEW.js} +2 -2
  276. package/__chunks__/chunk-GHXKZA4W.js +2 -0
  277. package/__chunks__/{chunk-WYPOPDEK.js → chunk-GJBBAXJV.js} +2 -2
  278. package/__chunks__/chunk-GK63BH64.js +2 -0
  279. package/__chunks__/{chunk-YAFNHDUR.js → chunk-GNZDKRCA.js} +2 -2
  280. package/__chunks__/{chunk-IX2VX3E2.js → chunk-GPNUHVOM.js} +2 -2
  281. package/__chunks__/{chunk-5RGNESSR.js → chunk-GQMTJB4L.js} +2 -2
  282. package/__chunks__/{chunk-SU4SH37S.js → chunk-GSSXFF46.js} +2 -2
  283. package/__chunks__/{chunk-YRDNCWJW.js → chunk-GVMLSXIC.js} +2 -2
  284. package/__chunks__/{chunk-Z55BDNGH.js → chunk-GXOJLFD4.js} +2 -2
  285. package/__chunks__/chunk-GZMTC35J.js +2 -0
  286. package/__chunks__/chunk-H3LMBICV.js +2 -0
  287. package/__chunks__/{chunk-PIIC6ZNG.js → chunk-HEMJW4UP.js} +2 -2
  288. package/__chunks__/{chunk-XPX4OKXG.js → chunk-HF7ILRBL.js} +2 -2
  289. package/__chunks__/{chunk-GIYZHATY.js → chunk-HK7SHFC7.js} +2 -2
  290. package/__chunks__/chunk-HP3L7RUD.js +2 -0
  291. package/__chunks__/{chunk-NUZF7HJ7.js → chunk-HQYSBDE7.js} +2 -2
  292. package/__chunks__/{chunk-OIGIOS7N.js → chunk-HWDGDPLP.js} +2 -2
  293. package/__chunks__/{chunk-ZKPBZO4S.js → chunk-I3DMSSAU.js} +2 -2
  294. package/__chunks__/{chunk-5YDLOWAE.js → chunk-IAZWDFI7.js} +2 -2
  295. package/__chunks__/{chunk-GW7FG43P.js → chunk-IIXY6EVM.js} +2 -2
  296. package/__chunks__/{chunk-6GFHYUPK.js → chunk-ILI6V46A.js} +2 -2
  297. package/__chunks__/{chunk-UH6PGRAV.js → chunk-IQV54UKF.js} +2 -2
  298. package/__chunks__/{chunk-WFHOHG3Z.js → chunk-ISWYWGYF.js} +2 -2
  299. package/__chunks__/{chunk-2M25PYL7.js → chunk-IV2PWXWW.js} +2 -2
  300. package/__chunks__/chunk-J2VDNLD5.js +2 -0
  301. package/__chunks__/{chunk-CYMNJYOT.js → chunk-JAQOVDY4.js} +2 -2
  302. package/__chunks__/{chunk-VBV4IR3F.js → chunk-JTXTYAX4.js} +2 -2
  303. package/__chunks__/{chunk-2NB6K2AS.js → chunk-K4P3Q4G6.js} +2 -2
  304. package/__chunks__/{chunk-LXWQKMKY.js → chunk-K5AYECMY.js} +2 -2
  305. package/__chunks__/chunk-K6MC7S66.js +2 -0
  306. package/__chunks__/{chunk-QXBR6DSI.js → chunk-K7OKFHDI.js} +2 -2
  307. package/__chunks__/{chunk-TNJRCS6C.js → chunk-KCOIYEPV.js} +2 -2
  308. package/__chunks__/{chunk-AQQBB5MJ.js → chunk-KE3UZZPK.js} +2 -2
  309. package/__chunks__/{chunk-6UBKGHVU.js → chunk-KHTHET32.js} +2 -2
  310. package/__chunks__/{chunk-T2N2FLZB.js → chunk-KJD27PBB.js} +2 -2
  311. package/__chunks__/chunk-KKVFNX7Q.js +2 -0
  312. package/__chunks__/{chunk-SMAM2FXU.js → chunk-KO4CKUQ3.js} +2 -2
  313. package/__chunks__/chunk-KQCX4VG2.js +2 -0
  314. package/__chunks__/{chunk-4PSQ762B.js → chunk-KQM2BOQR.js} +2 -2
  315. package/__chunks__/{chunk-FPK4LCVU.js → chunk-KRGNGXNM.js} +2 -2
  316. package/__chunks__/chunk-KV6BSLXQ.js +2 -0
  317. package/__chunks__/chunk-KVAITXAV.js +2 -0
  318. package/__chunks__/{chunk-CRTGGESP.js → chunk-KZFZMU4Q.js} +2 -2
  319. package/__chunks__/{chunk-ALAK4GTA.js → chunk-L3JYP3XO.js} +2 -2
  320. package/__chunks__/{chunk-ZLXYL4KE.js → chunk-LF6VJNCF.js} +2 -2
  321. package/__chunks__/{chunk-DADEQIZ7.js → chunk-LKDW3XH3.js} +2 -2
  322. package/__chunks__/{chunk-DTI5KUZE.js → chunk-LKENFOWD.js} +2 -2
  323. package/__chunks__/chunk-LM64ZHBF.js +2 -0
  324. package/__chunks__/{chunk-BOR3D2OB.js → chunk-M2LAMT4S.js} +2 -2
  325. package/__chunks__/{chunk-2VLN4GAG.js → chunk-M43L3JXS.js} +2 -2
  326. package/__chunks__/{chunk-7J7LEURM.js → chunk-M7KYIVXW.js} +2 -2
  327. package/__chunks__/chunk-MAPKARLD.js +2 -0
  328. package/__chunks__/{chunk-UQD4NUXE.js → chunk-MDZPOO3F.js} +2 -2
  329. package/__chunks__/{chunk-WUOUATRU.js → chunk-MLSI3RC2.js} +2 -2
  330. package/__chunks__/{chunk-3JPJW72R.js → chunk-N6ZG65AM.js} +2 -2
  331. package/__chunks__/{chunk-VEWE7U4G.js → chunk-N7QEZOLU.js} +2 -2
  332. package/__chunks__/{chunk-3QT275JB.js → chunk-NANO4X2A.js} +2 -2
  333. package/__chunks__/{chunk-M7264WIR.js → chunk-NCR3TVLR.js} +2 -2
  334. package/__chunks__/{chunk-46W3A5KZ.js → chunk-NIBU432U.js} +2 -2
  335. package/__chunks__/{chunk-YHGIBDJL.js → chunk-NOBUX6VQ.js} +2 -2
  336. package/__chunks__/{chunk-JPDU4UXA.js → chunk-NZLLBXWM.js} +2 -2
  337. package/__chunks__/{chunk-XGJFR5OS.js → chunk-O65BW737.js} +2 -2
  338. package/__chunks__/{chunk-M2KXYI2A.js → chunk-OCVD7SVS.js} +2 -2
  339. package/__chunks__/{chunk-J6PK4YWJ.js → chunk-ODQ5XNPU.js} +2 -2
  340. package/__chunks__/chunk-OGWLSCJG.js +2 -0
  341. package/__chunks__/{chunk-HKTCXAEV.js → chunk-OM457L3M.js} +2 -2
  342. package/__chunks__/{chunk-FJ3QN3PS.js → chunk-OQAGSV22.js} +2 -2
  343. package/__chunks__/{chunk-FFWGADDT.js → chunk-P6MWBKH3.js} +2 -2
  344. package/__chunks__/{chunk-4CZXUHKR.js → chunk-P7STLJJI.js} +2 -2
  345. package/__chunks__/{chunk-23JSCKP4.js → chunk-PINKYRXT.js} +2 -2
  346. package/__chunks__/{chunk-6JLZW2OA.js → chunk-PJ6E34ZL.js} +2 -2
  347. package/__chunks__/chunk-PUOKVKOC.js +2 -0
  348. package/__chunks__/{chunk-WRWKNPRJ.js → chunk-QB3XGANM.js} +2 -2
  349. package/__chunks__/{chunk-FXN56EN4.js → chunk-QBRSJGQE.js} +2 -2
  350. package/__chunks__/chunk-QEZFF4AV.js +2 -0
  351. package/__chunks__/{chunk-RWPTHDGS.js → chunk-QNJU3UH4.js} +2 -2
  352. package/__chunks__/{chunk-COMCQ2RH.js → chunk-QPZBCE35.js} +2 -2
  353. package/__chunks__/{chunk-OYQQHGRD.js → chunk-QRLD5NAN.js} +2 -2
  354. package/__chunks__/{chunk-D76JYIBI.js → chunk-QUMYRH4H.js} +2 -2
  355. package/__chunks__/chunk-QUYE5ZBI.js +2 -0
  356. package/__chunks__/{chunk-JDTK5ZGT.js → chunk-QVBPB2T7.js} +2 -2
  357. package/__chunks__/{chunk-75OXB76N.js → chunk-R3FSXFX3.js} +2 -2
  358. package/__chunks__/chunk-RAERFN6K.js +2 -0
  359. package/__chunks__/chunk-RBHVYE2Y.js +2 -0
  360. package/__chunks__/chunk-RCD64P2M.js +2 -0
  361. package/__chunks__/{chunk-LMBBAIK5.js → chunk-RDWURAZH.js} +2 -2
  362. package/__chunks__/{chunk-NZN4JRXS.js → chunk-RRN3BAHE.js} +2 -2
  363. package/__chunks__/{chunk-QPM6EBHW.js → chunk-RXNYA6SF.js} +2 -2
  364. package/__chunks__/{chunk-4EVSF3PS.js → chunk-S7JDYKHM.js} +2 -2
  365. package/__chunks__/chunk-S7NHXRCC.js +2 -0
  366. package/__chunks__/{chunk-X2A2SM5T.js → chunk-SA6GTLVC.js} +2 -2
  367. package/__chunks__/{chunk-TXBKGILP.js → chunk-SBZWUOMH.js} +2 -2
  368. package/__chunks__/chunk-SCCXHHWP.js +2 -0
  369. package/__chunks__/{chunk-JNZ6IL2X.js → chunk-SHGJKBQ2.js} +2 -2
  370. package/__chunks__/{chunk-JQM25QQP.js → chunk-SL7V5DPB.js} +2 -2
  371. package/__chunks__/{chunk-WJB6D7BH.js → chunk-SOPJ4FVA.js} +2 -2
  372. package/__chunks__/{chunk-OX6HVB6Z.js → chunk-SS5LXDIB.js} +2 -2
  373. package/__chunks__/{chunk-STQRXGXK.js → chunk-SWIGSNZJ.js} +2 -2
  374. package/__chunks__/{chunk-VEDRIMSP.js → chunk-SZ4YBWGS.js} +2 -2
  375. package/__chunks__/{chunk-GVPT5QJS.js → chunk-T5NLJP65.js} +2 -2
  376. package/__chunks__/{chunk-I7HYXEHX.js → chunk-TFUYS7DO.js} +2 -2
  377. package/__chunks__/{chunk-ROV4X74D.js → chunk-TTCHRNRE.js} +2 -2
  378. package/__chunks__/chunk-TTS3WFEE.js +2 -0
  379. package/__chunks__/{chunk-4AOLZUI5.js → chunk-U6CY6KLT.js} +2 -2
  380. package/__chunks__/{chunk-KMLW3DOC.js → chunk-U6QHRFQ6.js} +2 -2
  381. package/__chunks__/{chunk-JSYMQHQS.js → chunk-U77UZINY.js} +2 -2
  382. package/__chunks__/{chunk-RTGCGOEH.js → chunk-UFDKARKU.js} +2 -2
  383. package/__chunks__/{chunk-UVZAZGRS.js → chunk-UHDCW2GI.js} +2 -2
  384. package/__chunks__/{chunk-U7ABFX65.js → chunk-UKXM7MVK.js} +2 -2
  385. package/__chunks__/{chunk-LVYMVB5S.js → chunk-UYKSTJCI.js} +2 -2
  386. package/__chunks__/{chunk-JR6UFMPN.js → chunk-V5CRB7KN.js} +2 -2
  387. package/__chunks__/{chunk-RWUGWUZ3.js → chunk-VAO473HJ.js} +2 -2
  388. package/__chunks__/{chunk-H3FNY2CC.js → chunk-VBLZKSYV.js} +2 -2
  389. package/__chunks__/chunk-VC4S5W27.js +2 -0
  390. package/__chunks__/{chunk-AIB7JPIU.js → chunk-VCVEL4JK.js} +2 -2
  391. package/__chunks__/{chunk-ZUIERUVA.js → chunk-VO7YQXK7.js} +2 -2
  392. package/__chunks__/{chunk-4UBNPFKQ.js → chunk-VTJ7ZV2L.js} +2 -2
  393. package/__chunks__/chunk-VUJTIQ5T.js +2 -0
  394. package/__chunks__/{chunk-VWCTHSCA.js → chunk-VVPMSN2M.js} +2 -2
  395. package/__chunks__/{chunk-CBNM53GV.js → chunk-VY4WH2HL.js} +2 -2
  396. package/__chunks__/{chunk-4DERMSXM.js → chunk-W7VTJPZR.js} +2 -2
  397. package/__chunks__/chunk-WEOPJLNL.js +2 -0
  398. package/__chunks__/chunk-WFAVXT4Z.js +2 -0
  399. package/__chunks__/{chunk-XC7MTS2B.js → chunk-WFXS633C.js} +2 -2
  400. package/__chunks__/{chunk-X7VSTJVD.js → chunk-WLSEVWTK.js} +2 -2
  401. package/__chunks__/{chunk-YHDMIMED.js → chunk-WPD43RUV.js} +2 -2
  402. package/__chunks__/{chunk-GFUPEEWS.js → chunk-WUBNBBRC.js} +2 -2
  403. package/__chunks__/chunk-WVWK6FVA.js +2 -0
  404. package/__chunks__/{chunk-XI6VMWXQ.js → chunk-WWSWE52T.js} +2 -2
  405. package/__chunks__/{chunk-UH7Q27YS.js → chunk-WXEXZGP7.js} +2 -2
  406. package/__chunks__/{chunk-PIFV6PQF.js → chunk-X2L7IGUP.js} +2 -2
  407. package/__chunks__/chunk-XBJLTGW4.js +2 -0
  408. package/__chunks__/{chunk-ERT7NKUC.js → chunk-XDDEM6PT.js} +2 -2
  409. package/__chunks__/{chunk-QB3UBBN7.js → chunk-XIHOENSC.js} +2 -2
  410. package/__chunks__/{chunk-3X2T57MR.js → chunk-XKMOG6SS.js} +2 -2
  411. package/__chunks__/{chunk-FOIFAZEF.js → chunk-XNHZJ2SC.js} +2 -2
  412. package/__chunks__/{chunk-PE7VNGP7.js → chunk-XRO5ERIE.js} +2 -2
  413. package/__chunks__/{chunk-3ULZPNUR.js → chunk-XT5BA43Z.js} +2 -2
  414. package/__chunks__/{chunk-FKD6BFBK.js → chunk-XTPO4MAO.js} +2 -2
  415. package/__chunks__/{chunk-PIJCCMC4.js → chunk-XUOXOTNR.js} +2 -2
  416. package/__chunks__/{chunk-NZ33RJGI.js → chunk-XUVVP5PW.js} +2 -2
  417. package/__chunks__/{chunk-VL5STY33.js → chunk-XUWCMUDF.js} +2 -2
  418. package/__chunks__/{chunk-4X3GINLE.js → chunk-XZOVSJUI.js} +2 -2
  419. package/__chunks__/{chunk-DCWRUDBH.js → chunk-YDIQ5IHA.js} +2 -2
  420. package/__chunks__/{chunk-EJNFO3FU.js → chunk-YKCZ2UKE.js} +2 -2
  421. package/__chunks__/{chunk-4BKMGOES.js → chunk-YKKS3O3Z.js} +2 -2
  422. package/__chunks__/{chunk-E5KBAFW4.js → chunk-YLMRTW5R.js} +2 -2
  423. package/__chunks__/{chunk-6UVEWZKX.js → chunk-YRHGZ4HS.js} +2 -2
  424. package/__chunks__/{chunk-IDUIQPIO.js → chunk-YU5OYJX7.js} +2 -2
  425. package/__chunks__/{chunk-BP5GRJNY.js → chunk-YUIINDCV.js} +2 -2
  426. package/__chunks__/{chunk-AMCEHQ3B.js → chunk-YWT4XNXN.js} +2 -2
  427. package/__chunks__/chunk-Z4BLO2TH.js +2 -0
  428. package/__chunks__/{chunk-KUQIYHQR.js → chunk-Z6PNQGOE.js} +2 -2
  429. package/__chunks__/{chunk-DCZOXC2M.js → chunk-Z7HQTVYF.js} +2 -2
  430. package/__chunks__/chunk-ZAFZIALH.js +2 -0
  431. package/__chunks__/{chunk-ITXDP2DE.js → chunk-ZD2DEAJR.js} +2 -2
  432. package/__chunks__/{chunk-4DLZ2JMF.js → chunk-ZEEWQEXA.js} +2 -2
  433. package/__chunks__/{chunk-SJ3GJK44.js → chunk-ZFSJ4FRX.js} +2 -2
  434. package/__chunks__/chunk-ZFSZJPYH.js +2 -0
  435. package/__chunks__/{chunk-RO7QNHOJ.js → chunk-ZRGSKGMW.js} +2 -2
  436. package/__commonjs/UI/TransactionInfo/TransactionInfo.js +29 -29
  437. package/__commonjs/UI/TransactionInfo/components/DataField/DataField.js +7 -7
  438. package/__commonjs/UI/TransactionInfo/components/DataField/index.js +7 -7
  439. package/__commonjs/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
  440. package/__commonjs/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
  441. package/__commonjs/UI/TransactionInfo/components/index.js +27 -27
  442. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +8 -8
  443. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +8 -8
  444. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +2 -2
  445. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +2 -2
  446. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +31 -31
  447. package/__commonjs/UI/TransactionInfo/index.js +29 -29
  448. package/__commonjs/UI/TransactionsTable/components/TransactionReceiver.js +4 -4
  449. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
  450. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
  451. package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  452. package/__commonjs/UI/extension/ExtensionLoginButton/index.js +1 -1
  453. package/__commonjs/UI/index.js +51 -51
  454. package/__commonjs/UI/ledger/LedgerLoginButton/index.js +1 -1
  455. package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +1 -1
  456. package/__commonjs/UI/ledger/index.js +1 -1
  457. package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  458. package/__commonjs/UI/pages/UnlockPage/index.js +1 -1
  459. package/__commonjs/UI/pages/index.js +1 -1
  460. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  461. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  462. package/__commonjs/UI/walletConnect/index.js +1 -1
  463. package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  464. package/__commonjs/__mocks__/index.js +1 -1
  465. package/__commonjs/__mocks__/utils/index.js +1 -1
  466. package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
  467. package/__commonjs/apiCalls/configuration/getNetworkConfig.js +1 -1
  468. package/__commonjs/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
  469. package/__commonjs/apiCalls/utils/getCleanApiAddress.js +1 -1
  470. package/__commonjs/apiCalls/utils/index.js +1 -1
  471. package/__commonjs/components/ProviderInitializer.js +1 -1
  472. package/__commonjs/hooks/account/index.js +1 -1
  473. package/__commonjs/hooks/account/useGetAccount.js +1 -1
  474. package/__commonjs/hooks/account/useGetAccountInfo.js +1 -1
  475. package/__commonjs/hooks/account/useGetAccountProvider.js +1 -1
  476. package/__commonjs/hooks/account/useGetWebsocketEvent.js +1 -1
  477. package/__commonjs/hooks/index.js +1 -1
  478. package/__commonjs/hooks/login/index.js +1 -1
  479. package/__commonjs/hooks/login/useExtensionLogin.js +1 -1
  480. package/__commonjs/hooks/login/useLedgerLogin.js +1 -1
  481. package/__commonjs/hooks/login/useLoginService.js +1 -1
  482. package/__commonjs/hooks/login/useOperaLogin.js +1 -1
  483. package/__commonjs/hooks/login/useWalletConnectLogin.js +1 -1
  484. package/__commonjs/hooks/login/useWalletConnectV2Login.js +1 -1
  485. package/__commonjs/hooks/login/useWebWalletLogin.js +1 -1
  486. package/__commonjs/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
  487. package/__commonjs/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
  488. package/__commonjs/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  489. package/__commonjs/hooks/transactions/useGetFailedTransactions.js +1 -1
  490. package/__commonjs/hooks/transactions/useGetSignTransactionsError.js +1 -1
  491. package/__commonjs/hooks/transactions/useGetSignedTransactions.js +1 -1
  492. package/__commonjs/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  493. package/__commonjs/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
  494. package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  495. package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  496. package/__commonjs/hooks/transactions/useTrackTransactionStatus.js +1 -1
  497. package/__commonjs/hooks/useGetNetworkConfig.js +1 -1
  498. package/__commonjs/reduxStore/selectors/index.js +1 -1
  499. package/__commonjs/reduxStore/selectors/transactionsSelectors.js +1 -1
  500. package/__commonjs/services/index.js +1 -1
  501. package/__commonjs/services/nativeAuth/helpers/getLatestBlockHash.js +1 -1
  502. package/__commonjs/services/nativeAuth/helpers/index.js +1 -1
  503. package/__commonjs/services/nativeAuth/index.js +1 -1
  504. package/__commonjs/services/nativeAuth/methods/getToken.js +1 -1
  505. package/__commonjs/services/nativeAuth/nativeAuth.js +1 -1
  506. package/__commonjs/services/transactions/signTransactions.js +1 -1
  507. package/__commonjs/types/index.js +1 -1
  508. package/__commonjs/utils/account/getAccountShard.js +1 -1
  509. package/__commonjs/utils/account/getAddress.js +1 -1
  510. package/__commonjs/utils/account/signMessage.js +1 -1
  511. package/__commonjs/utils/getIsLoggedIn.js +1 -1
  512. package/__commonjs/utils/index.js +3 -3
  513. package/__commonjs/utils/logout.js +1 -1
  514. package/__commonjs/utils/network/getChainID.js +1 -1
  515. package/__commonjs/utils/network/getEgldLabel.js +1 -1
  516. package/__commonjs/utils/network/getNetworkConfig.js +1 -1
  517. package/__commonjs/utils/network/index.js +1 -1
  518. package/__commonjs/utils/transactions/getAllTransactionsLink.js +1 -1
  519. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
  520. package/__commonjs/utils/transactions/getTransactionLink.js +1 -1
  521. package/__commonjs/utils/transactions/index.js +4 -4
  522. package/__commonjs/utils/transactions/transactionInfoHelpers/getScamFlag.js +1 -1
  523. package/__commonjs/utils/transactions/transactionInfoHelpers/index.js +4 -4
  524. package/__commonjs/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
  525. package/__commonjs/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/mexUnwrapper.js +1 -1
  526. package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecode.js +5 -5
  527. package/__commonjs/wrappers/AppInitializer.js +1 -1
  528. package/__commonjs/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  529. package/__commonjs/wrappers/DappProvider/index.js +1 -1
  530. package/__commonjs/wrappers/index.js +1 -1
  531. package/__mocks__/accountConfig.js +1 -1
  532. package/__mocks__/index.js +1 -1
  533. package/__mocks__/server.js +1 -1
  534. package/__mocks__/utils/index.js +1 -1
  535. package/__mocks__/utils/renderWithProvider.js +1 -1
  536. package/apiCalls/accounts/getAccountFromApi.js +1 -1
  537. package/apiCalls/accounts/index.js +1 -1
  538. package/apiCalls/configuration/getApiAddressForChainId.js +1 -1
  539. package/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
  540. package/apiCalls/configuration/getNetworkConfig.js +1 -1
  541. package/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
  542. package/apiCalls/configuration/index.js +1 -1
  543. package/apiCalls/getScamAddressData.js +1 -1
  544. package/apiCalls/index.js +1 -1
  545. package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  546. package/apiCalls/transactions/index.js +1 -1
  547. package/apiCalls/transactions/sendSignedTransactions.js +1 -1
  548. package/apiCalls/utils/getCleanApiAddress.js +1 -1
  549. package/apiCalls/utils/index.js +1 -1
  550. package/components/LogoutListener/LogoutListener.js +1 -1
  551. package/components/LogoutListener/helpers/index.js +1 -1
  552. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  553. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  554. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  555. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  556. package/components/LogoutListener/index.js +1 -1
  557. package/components/ProviderInitializer.js +1 -1
  558. package/components/TransactionSender/TransactionSender.js +1 -1
  559. package/components/TransactionSender/index.js +1 -1
  560. package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
  561. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  562. package/components/TransactionsTracker/index.js +1 -1
  563. package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  564. package/constants/index.js +1 -1
  565. package/constants/network.js +1 -1
  566. package/hooks/account/index.js +1 -1
  567. package/hooks/account/useGetAccount.js +1 -1
  568. package/hooks/account/useGetAccountInfo.js +1 -1
  569. package/hooks/account/useGetAccountProvider.js +1 -1
  570. package/hooks/account/useGetIsLoggedIn.js +1 -1
  571. package/hooks/account/useGetLoginInfo.js +1 -1
  572. package/hooks/account/useGetWebsocketEvent.js +1 -1
  573. package/hooks/index.js +1 -1
  574. package/hooks/login/index.js +1 -1
  575. package/hooks/login/useExtensionLogin.js +1 -1
  576. package/hooks/login/useLedgerLogin.js +1 -1
  577. package/hooks/login/useLoginService.js +1 -1
  578. package/hooks/login/useOperaLogin.js +1 -1
  579. package/hooks/login/useWalletConnectLogin.js +1 -1
  580. package/hooks/login/useWalletConnectV2Login.js +1 -1
  581. package/hooks/login/useWebViewLogin.js +1 -1
  582. package/hooks/login/useWebWalletLogin.js +1 -1
  583. package/hooks/signMessage/index.js +1 -1
  584. package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  585. package/hooks/signMessage/useGetSignMessageSession.js +1 -1
  586. package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
  587. package/hooks/signMessage/useSignMessage.js +1 -1
  588. package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
  589. package/hooks/transactions/helpers/index.js +1 -1
  590. package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
  591. package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
  592. package/hooks/transactions/index.js +1 -1
  593. package/hooks/transactions/useCancelWalletConnectAction.js +1 -1
  594. package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
  595. package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  596. package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
  597. package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
  598. package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  599. package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  600. package/hooks/transactions/useGetFailedTransactions.js +1 -1
  601. package/hooks/transactions/useGetPendingTransactions.js +1 -1
  602. package/hooks/transactions/useGetSignTransactionsError.js +1 -1
  603. package/hooks/transactions/useGetSignedTransactions.js +1 -1
  604. package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  605. package/hooks/transactions/useGetTokenDetails.js +1 -1
  606. package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
  607. package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
  608. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  609. package/hooks/transactions/useSignMultipleTransactions.js +1 -1
  610. package/hooks/transactions/useSignTransactions.js +1 -1
  611. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  612. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  613. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  614. package/hooks/transactions/useTrackTransactionStatus.js +1 -1
  615. package/hooks/useGetNetworkConfig.js +1 -1
  616. package/hooks/useGetNotification.js +1 -1
  617. package/hooks/userInterface/index.js +1 -1
  618. package/hooks/userInterface/useIsDappModalVisible.js +1 -1
  619. package/hooks/websocketListener/index.js +1 -1
  620. package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
  621. package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  622. package/models/index.js +1 -1
  623. package/models/newTransaction.js +1 -1
  624. package/package.json +1 -1
  625. package/providers/accountProvider.js +1 -1
  626. package/providers/index.js +1 -1
  627. package/providers/utils.js +1 -1
  628. package/providers/webviewProvider/index.js +1 -1
  629. package/providers/webviewProvider/requestMethods.js +1 -1
  630. package/providers/webviewProvider/webviewProvider.js +1 -1
  631. package/reduxStore/DappProviderContext.js +1 -1
  632. package/reduxStore/commonActions.js +1 -1
  633. package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
  634. package/reduxStore/persistConfig.js +1 -1
  635. package/reduxStore/persistedRootReducer.js +1 -1
  636. package/reduxStore/reducers.js +1 -1
  637. package/reduxStore/rootReducer.js +1 -1
  638. package/reduxStore/selectors/accountInfoSelectors.js +1 -1
  639. package/reduxStore/selectors/dappModalsSelectors.js +1 -1
  640. package/reduxStore/selectors/helpers.js +1 -1
  641. package/reduxStore/selectors/index.js +1 -1
  642. package/reduxStore/selectors/loginInfoSelectors.js +1 -1
  643. package/reduxStore/selectors/modalsSelectors.js +1 -1
  644. package/reduxStore/selectors/networkConfigSelectors.js +1 -1
  645. package/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
  646. package/reduxStore/selectors/toastsSelectors.js +1 -1
  647. package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
  648. package/reduxStore/selectors/transactionsSelectors.js +1 -1
  649. package/reduxStore/slices/accountInfoSlice.js +1 -1
  650. package/reduxStore/slices/dappModalsSlice.js +1 -1
  651. package/reduxStore/slices/index.js +1 -1
  652. package/reduxStore/slices/loginInfoSlice.js +1 -1
  653. package/reduxStore/slices/modalsSlice.js +1 -1
  654. package/reduxStore/slices/signedMessageInfoSlice.js +1 -1
  655. package/reduxStore/slices/toastsSlice.js +1 -1
  656. package/reduxStore/slices/transactionsInfoSlice.js +1 -1
  657. package/reduxStore/slices/transactionsSlice.js +1 -1
  658. package/reduxStore/store.js +1 -1
  659. package/services/index.js +1 -1
  660. package/services/nativeAuth/helpers/getLatestBlockHash.js +1 -1
  661. package/services/nativeAuth/helpers/index.js +1 -1
  662. package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
  663. package/services/nativeAuth/index.js +1 -1
  664. package/services/nativeAuth/methods/getToken.js +1 -1
  665. package/services/nativeAuth/methods/index.js +1 -1
  666. package/services/nativeAuth/nativeAuth.js +1 -1
  667. package/services/transactions/clearTransactions.js +1 -1
  668. package/services/transactions/index.js +1 -1
  669. package/services/transactions/isCrossShardTransaction.js +1 -1
  670. package/services/transactions/sendTransactions.js +1 -1
  671. package/services/transactions/signTransactions.js +1 -1
  672. package/services/transactions/transformAndSignTransactions.js +1 -1
  673. package/services/transactions/utils.js +1 -1
  674. package/types/index.js +1 -1
  675. package/types/suspiciousLink.d.ts +1 -1
  676. package/types/suspiciousLink.js +1 -1
  677. package/utils/account/getAccount.js +1 -1
  678. package/utils/account/getAccountBalance.js +1 -1
  679. package/utils/account/getAccountProviderType.js +1 -1
  680. package/utils/account/getAccountShard.js +1 -1
  681. package/utils/account/getAddress.js +1 -1
  682. package/utils/account/getIsProviderEqualTo.js +1 -1
  683. package/utils/account/getLatestNonce.js +1 -1
  684. package/utils/account/getShardOfAddress.js +1 -1
  685. package/utils/account/index.js +1 -1
  686. package/utils/account/loginWithExternalProvider.js +1 -1
  687. package/utils/account/refreshAccount.js +1 -1
  688. package/utils/account/setNonce.js +1 -1
  689. package/utils/account/signMessage.js +1 -1
  690. package/utils/getIsLoggedIn.js +1 -1
  691. package/utils/index.js +1 -1
  692. package/utils/logout.js +1 -1
  693. package/utils/network/getChainID.js +1 -1
  694. package/utils/network/getEgldLabel.js +1 -1
  695. package/utils/network/getNetworkConfig.js +1 -1
  696. package/utils/network/index.js +1 -1
  697. package/utils/operations/calculateFeeLimit.js +1 -1
  698. package/utils/operations/denominate.js +1 -1
  699. package/utils/operations/formatAmount.js +1 -1
  700. package/utils/operations/index.js +1 -1
  701. package/utils/operations/nominate.js +1 -1
  702. package/utils/operations/parseAmount.js +1 -1
  703. package/utils/smartContracts.js +1 -1
  704. package/utils/toasts/customToastsActions.js +1 -1
  705. package/utils/toasts/index.js +1 -1
  706. package/utils/transactions/getAllTransactionsLink.js +1 -1
  707. package/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
  708. package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
  709. package/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
  710. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
  711. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
  712. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
  713. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
  714. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
  715. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
  716. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
  717. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
  718. package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
  719. package/utils/transactions/getInterpretedTransaction/index.js +1 -1
  720. package/utils/transactions/getTransactionLink.js +1 -1
  721. package/utils/transactions/index.js +1 -1
  722. package/utils/transactions/parseMultiEsdtTransferData.js +1 -1
  723. package/utils/transactions/parseTransactionAfterSigning.js +1 -1
  724. package/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
  725. package/utils/transactions/transactionInfoHelpers/getScamFlag.d.ts +1 -1
  726. package/utils/transactions/transactionInfoHelpers/getScamFlag.js +1 -1
  727. package/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
  728. package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
  729. package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
  730. package/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
  731. package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
  732. package/utils/transactions/transactionInfoHelpers/index.js +1 -1
  733. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
  734. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/mexUnwrapper.js +1 -1
  735. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
  736. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/transactionActionUnwrapper.js +1 -1
  737. package/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
  738. package/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
  739. package/utils/validation/index.js +1 -1
  740. package/utils/validation/maxDecimals.js +1 -1
  741. package/utils/validation/stringIsFloat.js +1 -1
  742. package/web/hooks/index.js +1 -1
  743. package/web/hooks/useIdleTimer.js +1 -1
  744. package/web/index.js +1 -1
  745. package/wrappers/AppInitializer.js +1 -1
  746. package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  747. package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
  748. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
  749. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
  750. package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  751. package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  752. package/wrappers/AxiosInterceptorContext/index.js +1 -1
  753. package/wrappers/DappProvider/CustomComponents.js +1 -1
  754. package/wrappers/DappProvider/index.js +1 -1
  755. package/wrappers/index.js +1 -1
  756. package/__chunks__/chunk-257MQZJ7.js +0 -2
  757. package/__chunks__/chunk-2LLW6IVJ.js +0 -2
  758. package/__chunks__/chunk-2Q6WNGQ3.js +0 -2
  759. package/__chunks__/chunk-374772OF.js +0 -2
  760. package/__chunks__/chunk-3SRVL7NW.js +0 -2
  761. package/__chunks__/chunk-4SIXDSOL.js +0 -2
  762. package/__chunks__/chunk-4X5KCZ6J.js +0 -2
  763. package/__chunks__/chunk-5YY4FC5L.js +0 -2
  764. package/__chunks__/chunk-5ZXISSZ7.js +0 -2
  765. package/__chunks__/chunk-6T5YTSDO.js +0 -2
  766. package/__chunks__/chunk-72JZW4D4.js +0 -2
  767. package/__chunks__/chunk-77MJ4H2X.js +0 -2
  768. package/__chunks__/chunk-7BZUQTJT.js +0 -2
  769. package/__chunks__/chunk-D5NVSL2S.js +0 -2
  770. package/__chunks__/chunk-DJQVAF4K.js +0 -2
  771. package/__chunks__/chunk-EAK65F3A.js +0 -2
  772. package/__chunks__/chunk-ELLSRUGJ.js +0 -2
  773. package/__chunks__/chunk-FBDAZ2UU.js +0 -2
  774. package/__chunks__/chunk-GKFAI7FL.js +0 -2
  775. package/__chunks__/chunk-GSJZFGHK.js +0 -2
  776. package/__chunks__/chunk-GSOVFG26.js +0 -2
  777. package/__chunks__/chunk-GSUUHI7J.js +0 -2
  778. package/__chunks__/chunk-I42LQFAH.js +0 -2
  779. package/__chunks__/chunk-I6QS6Z2Y.js +0 -2
  780. package/__chunks__/chunk-ICXMCLJS.js +0 -2
  781. package/__chunks__/chunk-IOPYMHW4.js +0 -2
  782. package/__chunks__/chunk-IUGOLSWC.js +0 -2
  783. package/__chunks__/chunk-JCPJZUE5.js +0 -2
  784. package/__chunks__/chunk-JPYJYT7S.js +0 -2
  785. package/__chunks__/chunk-KCJKC2BG.js +0 -2
  786. package/__chunks__/chunk-LCU4TY25.js +0 -2
  787. package/__chunks__/chunk-LFCY6YND.js +0 -2
  788. package/__chunks__/chunk-LYKWMNOY.js +0 -2
  789. package/__chunks__/chunk-MW6CV76C.js +0 -2
  790. package/__chunks__/chunk-NB2UEIDR.js +0 -2
  791. package/__chunks__/chunk-NWBLGHEW.js +0 -2
  792. package/__chunks__/chunk-OTZ4VQBM.js +0 -2
  793. package/__chunks__/chunk-PHQITJCN.js +0 -2
  794. package/__chunks__/chunk-PQYTU7UW.js +0 -2
  795. package/__chunks__/chunk-QAVCUCZB.js +0 -2
  796. package/__chunks__/chunk-QKWFACPV.js +0 -2
  797. package/__chunks__/chunk-QYO7RWYF.js +0 -2
  798. package/__chunks__/chunk-RANC62GC.js +0 -2
  799. package/__chunks__/chunk-U76KYHMK.js +0 -2
  800. package/__chunks__/chunk-VAELNUTZ.js +0 -2
  801. package/__chunks__/chunk-WO7IDAN6.js +0 -2
  802. package/__chunks__/chunk-YUGUMBTX.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";var Kr=Object.create;var G=Object.defineProperty;var Yr=Object.getOwnPropertyDescriptor;var qr=Object.getOwnPropertyNames,cr=Object.getOwnPropertySymbols,zr=Object.getPrototypeOf,fr=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable;var hr=(e,r,t)=>r in e?G(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,z=(e,r)=>{for(var t in r||(r={}))fr.call(r,t)&&hr(e,t,r[t]);if(cr)for(var t of cr(r))Jr.call(r,t)&&hr(e,t,r[t]);return e};var Xr=(e,r)=>()=>(e&&(r=e(e=0)),r);var V=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Qr=(e,r)=>{for(var t in r)G(e,t,{get:r[t],enumerable:!0})},lr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of qr(r))!fr.call(e,i)&&i!==t&&G(e,i,{get:()=>r[i],enumerable:!(n=Yr(r,i))||n.enumerable});return e};var J=(e,r,t)=>(t=e!=null?Kr(zr(e)):{},lr(r||!e||!e.__esModule?G(t,"default",{value:e,enumerable:!0}):t,e)),Zr=e=>lr(G({},"__esModule",{value:!0}),e);var R=(e,r,t)=>new Promise((n,i)=>{var o=s=>{try{p(t.next(s))}catch(c){i(c)}},u=s=>{try{p(t.throw(s))}catch(c){i(c)}},p=s=>s.done?n(s.value):Promise.resolve(s.value).then(o,u);p((t=t.apply(e,r)).next())});var wr=V($=>{"use strict";f();$.byteLength=rt;$.toByteArray=et;$.fromByteArray=ot;var F=[],A=[],jr=typeof Uint8Array!="undefined"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(C=0,xr=X.length;C<xr;++C)F[C]=X[C],A[X.charCodeAt(C)]=C;var C,xr;A["-".charCodeAt(0)]=62;A["_".charCodeAt(0)]=63;function yr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var n=t===r?0:4-t%4;return[t,n]}function rt(e){var r=yr(e),t=r[0],n=r[1];return(t+n)*3/4-n}function tt(e,r,t){return(r+t)*3/4-t}function et(e){var r,t=yr(e),n=t[0],i=t[1],o=new jr(tt(e,n,i)),u=0,p=i>0?n-4:n,s;for(s=0;s<p;s+=4)r=A[e.charCodeAt(s)]<<18|A[e.charCodeAt(s+1)]<<12|A[e.charCodeAt(s+2)]<<6|A[e.charCodeAt(s+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=A[e.charCodeAt(s)]<<2|A[e.charCodeAt(s+1)]>>4,o[u++]=r&255),i===1&&(r=A[e.charCodeAt(s)]<<10|A[e.charCodeAt(s+1)]<<4|A[e.charCodeAt(s+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function nt(e){return F[e>>18&63]+F[e>>12&63]+F[e>>6&63]+F[e&63]}function it(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(nt(n));return i.join("")}function ot(e){for(var r,t=e.length,n=t%3,i=[],o=16383,u=0,p=t-n;u<p;u+=o)i.push(it(e,u,u+o>p?p:u+o));return n===1?(r=e[t-1],i.push(F[r>>2]+F[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),i.join("")}});var mr=V(Q=>{f();Q.read=function(e,r,t,n,i){var o,u,p=i*8-n-1,s=(1<<p)-1,c=s>>1,l=-7,h=t?i-1:0,d=t?-1:1,T=e[r+h];for(h+=d,o=T&(1<<-l)-1,T>>=-l,l+=p;l>0;o=o*256+e[r+h],h+=d,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+e[r+h],h+=d,l-=8);if(o===0)o=1-c;else{if(o===s)return u?NaN:(T?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-c}return(T?-1:1)*u*Math.pow(2,o-n)};Q.write=function(e,r,t,n,i,o){var u,p,s,c=o*8-i-1,l=(1<<c)-1,h=l>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:o-1,D=n?1:-1,$r=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(p=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-u))<1&&(u--,s*=2),u+h>=1?r+=d/s:r+=d*Math.pow(2,1-h),r*s>=2&&(u++,s/=2),u+h>=l?(p=0,u=l):u+h>=1?(p=(r*s-1)*Math.pow(2,i),u=u+h):(p=r*Math.pow(2,h-1)*Math.pow(2,i),u=0));i>=8;e[t+T]=p&255,T+=D,p/=256,i-=8);for(u=u<<i|p,c+=i;c>0;e[t+T]=u&255,T+=D,u/=256,c-=8);e[t+T-D]|=$r*128}});var Cr=V(O=>{"use strict";f();var Z=wr(),L=mr(),Er=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;O.Buffer=a;O.SlowBuffer=ht;O.INSPECT_MAX_BYTES=50;var K=2147483647;O.kMaxLength=K;a.TYPED_ARRAY_SUPPORT=ut();!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 ut(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){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 N(e){if(e>K)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return er(e)}return Tr(e,r,t)}a.poolSize=8192;function Tr(e,r,t){if(typeof e=="string")return st(e,r);if(ArrayBuffer.isView(e))return pt(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(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return rr(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return a.from(n,r,t);var i=ct(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return Tr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function Ar(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 at(e,r,t){return Ar(e),e<=0?N(e):r!==void 0?typeof t=="string"?N(e).fill(r,t):N(e).fill(r):N(e)}a.alloc=function(e,r,t){return at(e,r,t)};function er(e){return Ar(e),N(e<0?0:nr(e)|0)}a.allocUnsafe=function(e){return er(e)};a.allocUnsafeSlow=function(e){return er(e)};function st(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=Fr(e,r)|0,n=N(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function j(e){for(var r=e.length<0?0:nr(e.length)|0,t=N(r),n=0;n<r;n+=1)t[n]=e[n]&255;return t}function pt(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return rr(r.buffer,r.byteOffset,r.byteLength)}return j(e)}function rr(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,a.prototype),n}function ct(e){if(a.isBuffer(e)){var r=nr(e.length)|0,t=N(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||ir(e.length)?N(0):j(e);if(e.type==="Buffer"&&Array.isArray(e.data))return j(e.data)}function nr(e){if(e>=K)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K.toString(16)+" bytes");return e|0}function ht(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var n=r.length,i=t.length,o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==t[o]){n=r[o],i=t[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,t){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(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=a.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){var u=r[n];if(B(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 Fr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(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 t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return tr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Sr(e).length;default:if(i)return n?-1:tr(e).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=Fr;function ft(e,r,t){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return At(this,r,t);case"utf8":case"utf-8":return Ir(this,r,t);case"ascii":return gt(this,r,t);case"latin1":case"binary":return Tt(this,r,t);case"base64":return Et(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ft(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function k(e,r,t){var n=e[r];e[r]=e[t],e[t]=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 t=0;t<r;t+=2)k(this,t,t+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 t=0;t<r;t+=4)k(this,t,t+3),k(this,t+1,t+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 t=0;t<r;t+=8)k(this,t,t+7),k(this,t+1,t+6),k(this,t+2,t+5),k(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?Ir(this,0,r):ft.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="",t=O.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};Er&&(a.prototype[Er]=a.prototype.inspect);a.prototype.compare=function(r,t,n,i,o){if(B(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(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var u=o-i,p=n-t,s=Math.min(u,p),c=this.slice(i,o),l=r.slice(t,n),h=0;h<s;++h)if(c[h]!==l[h]){u=c[h],p=l[h];break}return u<p?-1:p<u?1:0};function Br(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,ir(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:dr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):dr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function dr(e,r,t,n,i){var o=1,u=e.length,p=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,p/=2,t/=2}function s(T,D){return o===1?T[D]:T.readUInt16BE(D*o)}var c;if(i){var l=-1;for(c=t;c<u;c++)if(s(e,c)===s(r,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===p)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(t+p>u&&(t=u-p),c=t;c>=0;c--){for(var h=!0,d=0;d<p;d++)if(s(e,c+d)!==s(r,d)){h=!1;break}if(h)return c}return-1}a.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};a.prototype.indexOf=function(r,t,n){return Br(this,r,t,n,!0)};a.prototype.lastIndexOf=function(r,t,n){return Br(this,r,t,n,!1)};function lt(e,r,t,n){t=Number(t)||0;var i=e.length-t;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 p=parseInt(r.substr(u*2,2),16);if(ir(p))return u;e[t+u]=p}return u}function xt(e,r,t,n){return Y(tr(r,e.length-t),e,t,n)}function yt(e,r,t,n){return Y(vt(r),e,t,n)}function wt(e,r,t,n){return Y(Sr(r),e,t,n)}function mt(e,r,t,n){return Y(Nt(r,e.length-t),e,t,n)}a.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>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-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return lt(this,r,t,n);case"utf8":case"utf-8":return xt(this,r,t,n);case"ascii":case"latin1":case"binary":return yt(this,r,t,n);case"base64":return wt(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mt(this,r,t,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 Et(e,r,t){return r===0&&t===e.length?Z.fromByteArray(e):Z.fromByteArray(e.slice(r,t))}function Ir(e,r,t){t=Math.min(e.length,t);for(var n=[],i=r;i<t;){var o=e[i],u=null,p=o>239?4:o>223?3:o>191?2:1;if(i+p<=t){var s,c,l,h;switch(p){case 1:o<128&&(u=o);break;case 2:s=e[i+1],(s&192)===128&&(h=(o&31)<<6|s&63,h>127&&(u=h));break;case 3:s=e[i+1],c=e[i+2],(s&192)===128&&(c&192)===128&&(h=(o&15)<<12|(s&63)<<6|c&63,h>2047&&(h<55296||h>57343)&&(u=h));break;case 4:s=e[i+1],c=e[i+2],l=e[i+3],(s&192)===128&&(c&192)===128&&(l&192)===128&&(h=(o&15)<<18|(s&63)<<12|(c&63)<<6|l&63,h>65535&&h<1114112&&(u=h))}}u===null?(u=65533,p=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=p}return dt(n)}var gr=4096;function dt(e){var r=e.length;if(r<=gr)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=gr));return t}function gt(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function Tt(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function At(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var i="",o=r;o<t;++o)i+=Ut[e[o]];return i}function Ft(e,r,t){for(var n=e.slice(r,t),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,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,a.prototype),i};function m(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);for(var i=this[r+--t],o=1;t>0&&(o*=256);)i+=this[r+--t]*o;return i};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||m(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,t){return r=r>>>0,t||m(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};a.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);for(var i=t,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*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||m(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||m(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||m(r,4,this.length),L.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||m(r,4,this.length),L.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||m(r,8,this.length),L.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||m(r,8,this.length),L.read(this,r,!1,52,8)};function g(e,r,t,n,i,o){if(!a.isBuffer(e))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(t+n>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;g(this,r,t,n,o,0)}var u=1,p=0;for(this[t]=r&255;++p<n&&(u*=256);)this[t+p]=r/u&255;return t+n};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;g(this,r,t,n,o,0)}var u=n-1,p=1;for(this[t+u]=r&255;--u>=0&&(p*=256);)this[t+u]=r/p&255;return t+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);g(this,r,t,n,o-1,-o)}var u=0,p=1,s=0;for(this[t]=r&255;++u<n&&(p*=256);)r<0&&s===0&&this[t+u-1]!==0&&(s=1),this[t+u]=(r/p>>0)-s&255;return t+n};a.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);g(this,r,t,n,o-1,-o)}var u=n-1,p=1,s=0;for(this[t+u]=r&255;--u>=0&&(p*=256);)r<0&&s===0&&this[t+u+1]!==0&&(s=1),this[t+u]=(r/p>>0)-s&255;return t+n};a.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function vr(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Nr(e,r,t,n,i){return r=+r,t=t>>>0,i||vr(e,r,t,4,34028234663852886e22,-34028234663852886e22),L.write(e,r,t,n,23,4),t+4}a.prototype.writeFloatLE=function(r,t,n){return Nr(this,r,t,!0,n)};a.prototype.writeFloatBE=function(r,t,n){return Nr(this,r,t,!1,n)};function Ur(e,r,t,n,i){return r=+r,t=t>>>0,i||vr(e,r,t,8,17976931348623157e292,-17976931348623157e292),L.write(e,r,t,n,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,n){return Ur(this,r,t,!0,n)};a.prototype.writeDoubleBE=function(r,t,n){return Ur(this,r,t,!1,n)};a.prototype.copy=function(r,t,n,i){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<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-t<i-n&&(i=r.length-t+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};a.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=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(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else{var p=a.isBuffer(r)?r:a.from(r,i),s=p.length;if(s===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=p[u%s]}return this};var Bt=/[^+/0-9A-Za-z-_]/g;function It(e){if(e=e.split("=")[0],e=e.trim().replace(Bt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function tr(e,r){r=r||1/0;for(var t,n=e.length,i=null,o=[],u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>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=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function vt(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Nt(e,r){for(var t,n,i,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function Sr(e){return Z.toByteArray(It(e))}function Y(e,r,t,n){for(var i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function ir(e){return e!==e}var Ut=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)r[n+i]=e[t]+e[i];return r}()});var Lr=V((Wt,Rr)=>{f();var x=Rr.exports={},I,v;function or(){throw new Error("setTimeout has not been defined")}function ur(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=or}catch(e){I=or}try{typeof clearTimeout=="function"?v=clearTimeout:v=ur}catch(e){v=ur}})();function kr(e){if(I===setTimeout)return setTimeout(e,0);if((I===or||!I)&&setTimeout)return I=setTimeout,setTimeout(e,0);try{return I(e,0)}catch(r){try{return I.call(null,e,0)}catch(t){return I.call(this,e,0)}}}function St(e){if(v===clearTimeout)return clearTimeout(e);if((v===ur||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var U=[],b=!1,_,q=-1;function Ct(){!b||!_||(b=!1,_.length?U=_.concat(U):q=-1,U.length&&_r())}function _r(){if(!b){var e=kr(Ct);b=!0;for(var r=U.length;r;){for(_=U,U=[];++q<r;)_&&_[q].run();q=-1,r=U.length}_=null,b=!1,St(e)}}x.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];U.push(new Dr(e,r)),U.length===1&&!b&&kr(_r)};function Dr(e,r){this.fun=e,this.array=r}Dr.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function S(){}x.on=S;x.addListener=S;x.once=S;x.off=S;x.removeListener=S;x.removeAllListeners=S;x.emit=S;x.prependListener=S;x.prependOnceListener=S;x.listeners=function(e){return[]};x.binding=function(e){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(e){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var y,w,Vt,f=Xr(()=>{y=J(Cr()),w=J(Lr()),Vt=function(e){function r(){var n=this||self;return delete e.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var bt={};Qr(bt,{nativeAuth:()=>Ot});module.exports=Zr(bt);f();f();var kt=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),M=e=>kt(y.Buffer.from(e,"utf8").toString("base64"));f();var br=J(require("axios"));f();var Or="blocks";var _t=5e4,ar=null,P={current:null},sr=!1;function Mr(e){return R(this,null,function*(){if(e==null)throw new Error("missing api url");if(ar!=null&&Date.now()<ar&&P.current!=null)return P.current;{if(sr)return yield Rt();sr=!0,P.current=null;let t=yield Dt(e);return P.current=t,ar=Date.now()+_t,sr=!1,t}})}function Dt(e){return R(this,null,function*(){let{data:r}=yield br.default.get(`${e}/${Or}?size=1&fields=hash,timestamp`),[t]=r;return t})}function Rt(){return R(this,null,function*(){return new Promise((e,r)=>{let t,n=setInterval(()=>{P.current!=null&&(e(P.current),clearInterval(n),clearTimeout(t))},50);t=setTimeout(()=>{clearInterval(n),r("could not generate new token")},5e3)})})}f();var Pr,H={hostname:typeof window!="undefined"?(Pr=window==null?void 0:window.location)==null?void 0:Pr.hostname:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},pr=e=>{var t,n,i,o;return e===!0?H:{hostname:(t=e==null?void 0:e.hostname)!=null?t:H.hostname,expirySeconds:(n=e==null?void 0:e.expirySeconds)!=null?n:H.expirySeconds,apiAddress:(i=e==null?void 0:e.apiAddress)!=null?i:H.apiAddress,tokenExpirationToastWarningSeconds:(o=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?o:H.tokenExpirationToastWarningSeconds}};f();f();f();f();f();f();f();function W(e){return atob(e)}function Lt(e){return Object.prototype.toString.call(e)==="[object String]"}var Gr=e=>{if(!e||!Lt(e))return null;try{let[r,t,n]=e.split("."),i=W(r),o=W(t),[u,p,s,c]=o.split("."),l=JSON.parse(W(c)),h=W(u),d={ttl:Number(s),address:i,extraInfo:l,host:h,signature:n,blockHash:p,body:o};return c==="e30"&&delete d.extraInfo,d}catch(r){return null}};var Hr=({address:e,token:r,signature:t})=>{let n=M(e),i=M(r);return`${n}.${i}.${t}`};f();f();var Wr=()=>Date.now()/1e3;var Vr=e=>{let r=Gr(e);if(!r)return{isExpired:!1};let t=Wr(),{ttl:n,extraInfo:i}=r,o=i.timestamp;if(!o)return{isExpired:!1};let u=o+n,p=t>u,s=u-t;return{isExpired:p,expiresAt:u,secondsUntilExpires:s}};var Ot=e=>{let{hostname:r,apiAddress:t,expirySeconds:n}=pr(e);return{getNativeAuthConfig:pr,initialize:(...u)=>R(void 0,[...u],function*(o={}){let{hash:p,timestamp:s}=yield Mr(t),c=M(JSON.stringify(z(z({},o),s?{timestamp:s}:{})));return`${M(r)}.${p}.${n}.${c}`}),getToken:Hr,getTokenExpiration:Vr}};0&&(module.exports={nativeAuth});
1
+ "use strict";var Kr=Object.create;var G=Object.defineProperty;var Yr=Object.getOwnPropertyDescriptor;var qr=Object.getOwnPropertyNames,cr=Object.getOwnPropertySymbols,zr=Object.getPrototypeOf,fr=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable;var hr=(e,r,t)=>r in e?G(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,z=(e,r)=>{for(var t in r||(r={}))fr.call(r,t)&&hr(e,t,r[t]);if(cr)for(var t of cr(r))Jr.call(r,t)&&hr(e,t,r[t]);return e};var Xr=(e,r)=>()=>(e&&(r=e(e=0)),r);var V=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Qr=(e,r)=>{for(var t in r)G(e,t,{get:r[t],enumerable:!0})},lr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of qr(r))!fr.call(e,i)&&i!==t&&G(e,i,{get:()=>r[i],enumerable:!(n=Yr(r,i))||n.enumerable});return e};var J=(e,r,t)=>(t=e!=null?Kr(zr(e)):{},lr(r||!e||!e.__esModule?G(t,"default",{value:e,enumerable:!0}):t,e)),Zr=e=>lr(G({},"__esModule",{value:!0}),e);var R=(e,r,t)=>new Promise((n,i)=>{var o=s=>{try{p(t.next(s))}catch(c){i(c)}},u=s=>{try{p(t.throw(s))}catch(c){i(c)}},p=s=>s.done?n(s.value):Promise.resolve(s.value).then(o,u);p((t=t.apply(e,r)).next())});var wr=V($=>{"use strict";f();$.byteLength=rt;$.toByteArray=et;$.fromByteArray=ot;var F=[],A=[],jr=typeof Uint8Array!="undefined"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(C=0,xr=X.length;C<xr;++C)F[C]=X[C],A[X.charCodeAt(C)]=C;var C,xr;A["-".charCodeAt(0)]=62;A["_".charCodeAt(0)]=63;function yr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var n=t===r?0:4-t%4;return[t,n]}function rt(e){var r=yr(e),t=r[0],n=r[1];return(t+n)*3/4-n}function tt(e,r,t){return(r+t)*3/4-t}function et(e){var r,t=yr(e),n=t[0],i=t[1],o=new jr(tt(e,n,i)),u=0,p=i>0?n-4:n,s;for(s=0;s<p;s+=4)r=A[e.charCodeAt(s)]<<18|A[e.charCodeAt(s+1)]<<12|A[e.charCodeAt(s+2)]<<6|A[e.charCodeAt(s+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=A[e.charCodeAt(s)]<<2|A[e.charCodeAt(s+1)]>>4,o[u++]=r&255),i===1&&(r=A[e.charCodeAt(s)]<<10|A[e.charCodeAt(s+1)]<<4|A[e.charCodeAt(s+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function nt(e){return F[e>>18&63]+F[e>>12&63]+F[e>>6&63]+F[e&63]}function it(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(nt(n));return i.join("")}function ot(e){for(var r,t=e.length,n=t%3,i=[],o=16383,u=0,p=t-n;u<p;u+=o)i.push(it(e,u,u+o>p?p:u+o));return n===1?(r=e[t-1],i.push(F[r>>2]+F[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),i.join("")}});var mr=V(Q=>{f();Q.read=function(e,r,t,n,i){var o,u,p=i*8-n-1,s=(1<<p)-1,c=s>>1,l=-7,h=t?i-1:0,d=t?-1:1,T=e[r+h];for(h+=d,o=T&(1<<-l)-1,T>>=-l,l+=p;l>0;o=o*256+e[r+h],h+=d,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+e[r+h],h+=d,l-=8);if(o===0)o=1-c;else{if(o===s)return u?NaN:(T?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-c}return(T?-1:1)*u*Math.pow(2,o-n)};Q.write=function(e,r,t,n,i,o){var u,p,s,c=o*8-i-1,l=(1<<c)-1,h=l>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:o-1,D=n?1:-1,$r=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(p=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-u))<1&&(u--,s*=2),u+h>=1?r+=d/s:r+=d*Math.pow(2,1-h),r*s>=2&&(u++,s/=2),u+h>=l?(p=0,u=l):u+h>=1?(p=(r*s-1)*Math.pow(2,i),u=u+h):(p=r*Math.pow(2,h-1)*Math.pow(2,i),u=0));i>=8;e[t+T]=p&255,T+=D,p/=256,i-=8);for(u=u<<i|p,c+=i;c>0;e[t+T]=u&255,T+=D,u/=256,c-=8);e[t+T-D]|=$r*128}});var Cr=V(O=>{"use strict";f();var Z=wr(),L=mr(),Er=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;O.Buffer=a;O.SlowBuffer=ht;O.INSPECT_MAX_BYTES=50;var K=2147483647;O.kMaxLength=K;a.TYPED_ARRAY_SUPPORT=ut();!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 ut(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){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 N(e){if(e>K)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return er(e)}return Tr(e,r,t)}a.poolSize=8192;function Tr(e,r,t){if(typeof e=="string")return st(e,r);if(ArrayBuffer.isView(e))return pt(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(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return rr(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return a.from(n,r,t);var i=ct(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return Tr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function Ar(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 at(e,r,t){return Ar(e),e<=0?N(e):r!==void 0?typeof t=="string"?N(e).fill(r,t):N(e).fill(r):N(e)}a.alloc=function(e,r,t){return at(e,r,t)};function er(e){return Ar(e),N(e<0?0:nr(e)|0)}a.allocUnsafe=function(e){return er(e)};a.allocUnsafeSlow=function(e){return er(e)};function st(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=Fr(e,r)|0,n=N(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function j(e){for(var r=e.length<0?0:nr(e.length)|0,t=N(r),n=0;n<r;n+=1)t[n]=e[n]&255;return t}function pt(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return rr(r.buffer,r.byteOffset,r.byteLength)}return j(e)}function rr(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,a.prototype),n}function ct(e){if(a.isBuffer(e)){var r=nr(e.length)|0,t=N(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||ir(e.length)?N(0):j(e);if(e.type==="Buffer"&&Array.isArray(e.data))return j(e.data)}function nr(e){if(e>=K)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K.toString(16)+" bytes");return e|0}function ht(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var n=r.length,i=t.length,o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==t[o]){n=r[o],i=t[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,t){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(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=a.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){var u=r[n];if(B(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 Fr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(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 t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return tr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Sr(e).length;default:if(i)return n?-1:tr(e).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=Fr;function ft(e,r,t){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return At(this,r,t);case"utf8":case"utf-8":return Ir(this,r,t);case"ascii":return gt(this,r,t);case"latin1":case"binary":return Tt(this,r,t);case"base64":return Et(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ft(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function k(e,r,t){var n=e[r];e[r]=e[t],e[t]=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 t=0;t<r;t+=2)k(this,t,t+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 t=0;t<r;t+=4)k(this,t,t+3),k(this,t+1,t+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 t=0;t<r;t+=8)k(this,t,t+7),k(this,t+1,t+6),k(this,t+2,t+5),k(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?Ir(this,0,r):ft.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="",t=O.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};Er&&(a.prototype[Er]=a.prototype.inspect);a.prototype.compare=function(r,t,n,i,o){if(B(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(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var u=o-i,p=n-t,s=Math.min(u,p),c=this.slice(i,o),l=r.slice(t,n),h=0;h<s;++h)if(c[h]!==l[h]){u=c[h],p=l[h];break}return u<p?-1:p<u?1:0};function Br(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,ir(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:dr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):dr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function dr(e,r,t,n,i){var o=1,u=e.length,p=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,p/=2,t/=2}function s(T,D){return o===1?T[D]:T.readUInt16BE(D*o)}var c;if(i){var l=-1;for(c=t;c<u;c++)if(s(e,c)===s(r,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===p)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(t+p>u&&(t=u-p),c=t;c>=0;c--){for(var h=!0,d=0;d<p;d++)if(s(e,c+d)!==s(r,d)){h=!1;break}if(h)return c}return-1}a.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};a.prototype.indexOf=function(r,t,n){return Br(this,r,t,n,!0)};a.prototype.lastIndexOf=function(r,t,n){return Br(this,r,t,n,!1)};function lt(e,r,t,n){t=Number(t)||0;var i=e.length-t;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 p=parseInt(r.substr(u*2,2),16);if(ir(p))return u;e[t+u]=p}return u}function xt(e,r,t,n){return Y(tr(r,e.length-t),e,t,n)}function yt(e,r,t,n){return Y(vt(r),e,t,n)}function wt(e,r,t,n){return Y(Sr(r),e,t,n)}function mt(e,r,t,n){return Y(Nt(r,e.length-t),e,t,n)}a.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>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-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return lt(this,r,t,n);case"utf8":case"utf-8":return xt(this,r,t,n);case"ascii":case"latin1":case"binary":return yt(this,r,t,n);case"base64":return wt(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mt(this,r,t,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 Et(e,r,t){return r===0&&t===e.length?Z.fromByteArray(e):Z.fromByteArray(e.slice(r,t))}function Ir(e,r,t){t=Math.min(e.length,t);for(var n=[],i=r;i<t;){var o=e[i],u=null,p=o>239?4:o>223?3:o>191?2:1;if(i+p<=t){var s,c,l,h;switch(p){case 1:o<128&&(u=o);break;case 2:s=e[i+1],(s&192)===128&&(h=(o&31)<<6|s&63,h>127&&(u=h));break;case 3:s=e[i+1],c=e[i+2],(s&192)===128&&(c&192)===128&&(h=(o&15)<<12|(s&63)<<6|c&63,h>2047&&(h<55296||h>57343)&&(u=h));break;case 4:s=e[i+1],c=e[i+2],l=e[i+3],(s&192)===128&&(c&192)===128&&(l&192)===128&&(h=(o&15)<<18|(s&63)<<12|(c&63)<<6|l&63,h>65535&&h<1114112&&(u=h))}}u===null?(u=65533,p=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=p}return dt(n)}var gr=4096;function dt(e){var r=e.length;if(r<=gr)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=gr));return t}function gt(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function Tt(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function At(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var i="",o=r;o<t;++o)i+=Ut[e[o]];return i}function Ft(e,r,t){for(var n=e.slice(r,t),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,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,a.prototype),i};function m(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);for(var i=this[r+--t],o=1;t>0&&(o*=256);)i+=this[r+--t]*o;return i};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||m(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,t){return r=r>>>0,t||m(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};a.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);for(var i=t,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*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||m(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||m(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||m(r,4,this.length),L.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||m(r,4,this.length),L.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||m(r,8,this.length),L.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||m(r,8,this.length),L.read(this,r,!1,52,8)};function g(e,r,t,n,i,o){if(!a.isBuffer(e))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(t+n>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;g(this,r,t,n,o,0)}var u=1,p=0;for(this[t]=r&255;++p<n&&(u*=256);)this[t+p]=r/u&255;return t+n};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;g(this,r,t,n,o,0)}var u=n-1,p=1;for(this[t+u]=r&255;--u>=0&&(p*=256);)this[t+u]=r/p&255;return t+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);g(this,r,t,n,o-1,-o)}var u=0,p=1,s=0;for(this[t]=r&255;++u<n&&(p*=256);)r<0&&s===0&&this[t+u-1]!==0&&(s=1),this[t+u]=(r/p>>0)-s&255;return t+n};a.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);g(this,r,t,n,o-1,-o)}var u=n-1,p=1,s=0;for(this[t+u]=r&255;--u>=0&&(p*=256);)r<0&&s===0&&this[t+u+1]!==0&&(s=1),this[t+u]=(r/p>>0)-s&255;return t+n};a.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function vr(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Nr(e,r,t,n,i){return r=+r,t=t>>>0,i||vr(e,r,t,4,34028234663852886e22,-34028234663852886e22),L.write(e,r,t,n,23,4),t+4}a.prototype.writeFloatLE=function(r,t,n){return Nr(this,r,t,!0,n)};a.prototype.writeFloatBE=function(r,t,n){return Nr(this,r,t,!1,n)};function Ur(e,r,t,n,i){return r=+r,t=t>>>0,i||vr(e,r,t,8,17976931348623157e292,-17976931348623157e292),L.write(e,r,t,n,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,n){return Ur(this,r,t,!0,n)};a.prototype.writeDoubleBE=function(r,t,n){return Ur(this,r,t,!1,n)};a.prototype.copy=function(r,t,n,i){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<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-t<i-n&&(i=r.length-t+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};a.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=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(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else{var p=a.isBuffer(r)?r:a.from(r,i),s=p.length;if(s===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=p[u%s]}return this};var Bt=/[^+/0-9A-Za-z-_]/g;function It(e){if(e=e.split("=")[0],e=e.trim().replace(Bt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function tr(e,r){r=r||1/0;for(var t,n=e.length,i=null,o=[],u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>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=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function vt(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Nt(e,r){for(var t,n,i,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function Sr(e){return Z.toByteArray(It(e))}function Y(e,r,t,n){for(var i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function ir(e){return e!==e}var Ut=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)r[n+i]=e[t]+e[i];return r}()});var Lr=V((Wt,Rr)=>{f();var x=Rr.exports={},I,v;function or(){throw new Error("setTimeout has not been defined")}function ur(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=or}catch(e){I=or}try{typeof clearTimeout=="function"?v=clearTimeout:v=ur}catch(e){v=ur}})();function kr(e){if(I===setTimeout)return setTimeout(e,0);if((I===or||!I)&&setTimeout)return I=setTimeout,setTimeout(e,0);try{return I(e,0)}catch(r){try{return I.call(null,e,0)}catch(t){return I.call(this,e,0)}}}function St(e){if(v===clearTimeout)return clearTimeout(e);if((v===ur||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var U=[],b=!1,_,q=-1;function Ct(){!b||!_||(b=!1,_.length?U=_.concat(U):q=-1,U.length&&_r())}function _r(){if(!b){var e=kr(Ct);b=!0;for(var r=U.length;r;){for(_=U,U=[];++q<r;)_&&_[q].run();q=-1,r=U.length}_=null,b=!1,St(e)}}x.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];U.push(new Dr(e,r)),U.length===1&&!b&&kr(_r)};function Dr(e,r){this.fun=e,this.array=r}Dr.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function S(){}x.on=S;x.addListener=S;x.once=S;x.off=S;x.removeListener=S;x.removeAllListeners=S;x.emit=S;x.prependListener=S;x.prependOnceListener=S;x.listeners=function(e){return[]};x.binding=function(e){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(e){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var y,w,Vt,f=Xr(()=>{y=J(Cr()),w=J(Lr()),Vt=function(e){function r(){var n=this||self;return delete e.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var bt={};Qr(bt,{nativeAuth:()=>Ot});module.exports=Zr(bt);f();f();var kt=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),M=e=>kt(y.Buffer.from(e,"utf8").toString("base64"));f();var br=J(require("axios"));f();var Or="blocks";var _t=4e4,ar=null,P={current:null},sr={current:!1};function Mr(e){return R(this,null,function*(){if(e==null)throw new Error("missing api url");if(ar!=null&&Date.now()<ar&&P.current!=null)return P.current;{if(sr.current)return yield Rt();sr.current=!0,P.current=null;let t=yield Dt(e);return P.current=t,ar=Date.now()+_t,sr.current=!1,t}})}function Dt(e){return R(this,null,function*(){let{data:r}=yield br.default.get(`${e}/${Or}?size=1&fields=hash,timestamp`),[t]=r;return t})}function Rt(){return R(this,null,function*(){return new Promise((e,r)=>{let t,n=setInterval(()=>{P.current!=null&&(e(P.current),clearInterval(n),clearTimeout(t))},50);t=setTimeout(()=>{clearInterval(n),r("could not generate new token")},1e4)})})}f();var Pr,H={hostname:typeof window!="undefined"?(Pr=window==null?void 0:window.location)==null?void 0:Pr.hostname:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},pr=e=>{var t,n,i,o;return e===!0?H:{hostname:(t=e==null?void 0:e.hostname)!=null?t:H.hostname,expirySeconds:(n=e==null?void 0:e.expirySeconds)!=null?n:H.expirySeconds,apiAddress:(i=e==null?void 0:e.apiAddress)!=null?i:H.apiAddress,tokenExpirationToastWarningSeconds:(o=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?o:H.tokenExpirationToastWarningSeconds}};f();f();f();f();f();f();f();function W(e){return atob(e)}function Lt(e){return Object.prototype.toString.call(e)==="[object String]"}var Gr=e=>{if(!e||!Lt(e))return null;try{let[r,t,n]=e.split("."),i=W(r),o=W(t),[u,p,s,c]=o.split("."),l=JSON.parse(W(c)),h=W(u),d={ttl:Number(s),address:i,extraInfo:l,host:h,signature:n,blockHash:p,body:o};return c==="e30"&&delete d.extraInfo,d}catch(r){return null}};var Hr=({address:e,token:r,signature:t})=>{let n=M(e),i=M(r);return`${n}.${i}.${t}`};f();f();var Wr=()=>Date.now()/1e3;var Vr=e=>{let r=Gr(e);if(!r)return{isExpired:!1};let t=Wr(),{ttl:n,extraInfo:i}=r,o=i.timestamp;if(!o)return{isExpired:!1};let u=o+n,p=t>u,s=u-t;return{isExpired:p,expiresAt:u,secondsUntilExpires:s}};var Ot=e=>{let{hostname:r,apiAddress:t,expirySeconds:n}=pr(e);return{getNativeAuthConfig:pr,initialize:(...u)=>R(void 0,[...u],function*(o={}){let{hash:p,timestamp:s}=yield Mr(t),c=M(JSON.stringify(z(z({},o),s?{timestamp:s}:{})));return`${M(r)}.${p}.${n}.${c}`}),getToken:Hr,getTokenExpiration:Vr}};0&&(module.exports={nativeAuth});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";var Jn=Object.create;var se=Object.defineProperty,Qn=Object.defineProperties,Zn=Object.getOwnPropertyDescriptor,$n=Object.getOwnPropertyDescriptors,eo=Object.getOwnPropertyNames,fe=Object.getOwnPropertySymbols,to=Object.getPrototypeOf,Ge=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable;var It=(t,e,r)=>e in t?se(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,T=(t,e)=>{for(var r in e||(e={}))Ge.call(e,r)&&It(t,r,e[r]);if(fe)for(var r of fe(e))At.call(e,r)&&It(t,r,e[r]);return t},v=(t,e)=>Qn(t,$n(e));var vt=(t,e)=>{var r={};for(var n in t)Ge.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&fe)for(var n of fe(t))e.indexOf(n)<0&&At.call(t,n)&&(r[n]=t[n]);return r};var f=(t,e)=>()=>(t&&(e=t(t=0)),e);var ye=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),K=(t,e)=>{for(var r in e)se(t,r,{get:e[r],enumerable:!0})},kt=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of eo(e))!Ge.call(t,o)&&o!==r&&se(t,o,{get:()=>e[o],enumerable:!(n=Zn(e,o))||n.enumerable});return t};var C=(t,e,r)=>(r=t!=null?Jn(to(t)):{},kt(e||!t||!t.__esModule?se(r,"default",{value:t,enumerable:!0}):r,t)),ce=t=>kt(se({},"__esModule",{value:!0}),t);var Et=(t,e,r)=>new Promise((n,o)=>{var i=l=>{try{p(r.next(l))}catch(m){o(m)}},a=l=>{try{p(r.throw(l))}catch(m){o(m)}},p=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,a);p((r=r.apply(t,e)).next())});var Ct=ye(he=>{"use strict";s();he.byteLength=no;he.toByteArray=io;he.fromByteArray=co;var M=[],E=[],ro=typeof Uint8Array!="undefined"?Uint8Array:Array,Ve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Y=0,Lt=Ve.length;Y<Lt;++Y)M[Y]=Ve[Y],E[Ve.charCodeAt(Y)]=Y;var Y,Lt;E["-".charCodeAt(0)]=62;E["_".charCodeAt(0)]=63;function Rt(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function no(t){var e=Rt(t),r=e[0],n=e[1];return(r+n)*3/4-n}function oo(t,e,r){return(e+r)*3/4-r}function io(t){var e,r=Rt(t),n=r[0],o=r[1],i=new ro(oo(t,n,o)),a=0,p=o>0?n-4:n,l;for(l=0;l<p;l+=4)e=E[t.charCodeAt(l)]<<18|E[t.charCodeAt(l+1)]<<12|E[t.charCodeAt(l+2)]<<6|E[t.charCodeAt(l+3)],i[a++]=e>>16&255,i[a++]=e>>8&255,i[a++]=e&255;return o===2&&(e=E[t.charCodeAt(l)]<<2|E[t.charCodeAt(l+1)]>>4,i[a++]=e&255),o===1&&(e=E[t.charCodeAt(l)]<<10|E[t.charCodeAt(l+1)]<<4|E[t.charCodeAt(l+2)]>>2,i[a++]=e>>8&255,i[a++]=e&255),i}function ao(t){return M[t>>18&63]+M[t>>12&63]+M[t>>6&63]+M[t&63]}function so(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(ao(n));return o.join("")}function co(t){for(var e,r=t.length,n=r%3,o=[],i=16383,a=0,p=r-n;a<p;a+=i)o.push(so(t,a,a+i>p?p:a+i));return n===1?(e=t[r-1],o.push(M[e>>2]+M[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(M[e>>10]+M[e>>4&63]+M[e<<2&63]+"=")),o.join("")}});var _t=ye(qe=>{s();qe.read=function(t,e,r,n,o){var i,a,p=o*8-n-1,l=(1<<p)-1,m=l>>1,h=-7,y=r?o-1:0,S=r?-1:1,b=t[e+y];for(y+=S,i=b&(1<<-h)-1,b>>=-h,h+=p;h>0;i=i*256+t[e+y],y+=S,h-=8);for(a=i&(1<<-h)-1,i>>=-h,h+=n;h>0;a=a*256+t[e+y],y+=S,h-=8);if(i===0)i=1-m;else{if(i===l)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-m}return(b?-1:1)*a*Math.pow(2,i-n)};qe.write=function(t,e,r,n,o,i){var a,p,l,m=i*8-o-1,h=(1<<m)-1,y=h>>1,S=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:i-1,N=n?1:-1,R=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(p=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+y>=1?e+=S/l:e+=S*Math.pow(2,1-y),e*l>=2&&(a++,l/=2),a+y>=h?(p=0,a=h):a+y>=1?(p=(e*l-1)*Math.pow(2,o),a=a+y):(p=e*Math.pow(2,y-1)*Math.pow(2,o),a=0));o>=8;t[r+b]=p&255,b+=N,p/=256,o-=8);for(a=a<<o|p,m+=o;m>0;t[r+b]=a&255,b+=N,a/=256,m-=8);t[r+b-N]|=R*128}});var zt=ye(ee=>{"use strict";s();var He=Ct(),$=_t(),Nt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ee.Buffer=c;ee.SlowBuffer=fo;ee.INSPECT_MAX_BYTES=50;var Te=2147483647;ee.kMaxLength=Te;c.TYPED_ARRAY_SUPPORT=lo();!c.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 lo(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.buffer}});Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.byteOffset}});function O(t){if(t>Te)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Ke(t)}return Ft(t,e,r)}c.poolSize=8192;function Ft(t,e,r){if(typeof t=="string")return uo(t,e);if(ArrayBuffer.isView(t))return go(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(P(t,ArrayBuffer)||t&&P(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(P(t,SharedArrayBuffer)||t&&P(t.buffer,SharedArrayBuffer)))return We(t,e,r);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 c.from(n,e,r);var o=mo(t);if(o)return o;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return c.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}c.from=function(t,e,r){return Ft(t,e,r)};Object.setPrototypeOf(c.prototype,Uint8Array.prototype);Object.setPrototypeOf(c,Uint8Array);function Dt(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 po(t,e,r){return Dt(t),t<=0?O(t):e!==void 0?typeof r=="string"?O(t).fill(e,r):O(t).fill(e):O(t)}c.alloc=function(t,e,r){return po(t,e,r)};function Ke(t){return Dt(t),O(t<0?0:Ye(t)|0)}c.allocUnsafe=function(t){return Ke(t)};c.allocUnsafeSlow=function(t){return Ke(t)};function uo(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Bt(t,e)|0,n=O(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function ze(t){for(var e=t.length<0?0:Ye(t.length)|0,r=O(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function go(t){if(P(t,Uint8Array)){var e=new Uint8Array(t);return We(e.buffer,e.byteOffset,e.byteLength)}return ze(t)}function We(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,c.prototype),n}function mo(t){if(c.isBuffer(t)){var e=Ye(t.length)|0,r=O(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||Xe(t.length)?O(0):ze(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ze(t.data)}function Ye(t){if(t>=Te)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Te.toString(16)+" bytes");return t|0}function fo(t){return+t!=t&&(t=0),c.alloc(+t)}c.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==c.prototype};c.compare=function(e,r){if(P(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),P(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),!c.isBuffer(e)||!c.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,o=r.length,i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0};c.isEncoding=function(e){switch(String(e).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}};c.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return c.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var o=c.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){var a=e[n];if(P(a,Uint8Array))i+a.length>o.length?c.from(a).copy(o,i):Uint8Array.prototype.set.call(o,a,i);else if(c.isBuffer(a))a.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=a.length}return o};function Bt(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||P(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 r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return je(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ht(t).length;default:if(o)return n?-1:je(t).length;e=(""+e).toLowerCase(),o=!0}}c.byteLength=Bt;function yo(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return ko(this,e,r);case"utf8":case"utf-8":return Ut(this,e,r);case"ascii":return Ao(this,e,r);case"latin1":case"binary":return vo(this,e,r);case"base64":return bo(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Eo(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}c.prototype._isBuffer=!0;function X(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)X(this,r,r+1);return this};c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)X(this,r,r+3),X(this,r+1,r+2);return this};c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)X(this,r,r+7),X(this,r+1,r+6),X(this,r+2,r+5),X(this,r+3,r+4);return this};c.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Ut(this,0,e):yo.apply(this,arguments)};c.prototype.toLocaleString=c.prototype.toString;c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:c.compare(this,e)===0};c.prototype.inspect=function(){var e="",r=ee.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Nt&&(c.prototype[Nt]=c.prototype.inspect);c.prototype.compare=function(e,r,n,o,i){if(P(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var a=i-o,p=n-r,l=Math.min(a,p),m=this.slice(o,i),h=e.slice(r,n),y=0;y<l;++y)if(m[y]!==h[y]){a=m[y],p=h[y];break}return a<p?-1:p<a?1:0};function Ot(t,e,r,n,o){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Xe(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof e=="string"&&(e=c.from(e,n)),c.isBuffer(e))return e.length===0?-1:Mt(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Mt(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function Mt(t,e,r,n,o){var i=1,a=t.length,p=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,a/=2,p/=2,r/=2}function l(b,N){return i===1?b[N]:b.readUInt16BE(N*i)}var m;if(o){var h=-1;for(m=r;m<a;m++)if(l(t,m)===l(e,h===-1?0:m-h)){if(h===-1&&(h=m),m-h+1===p)return h*i}else h!==-1&&(m-=m-h),h=-1}else for(r+p>a&&(r=a-p),m=r;m>=0;m--){for(var y=!0,S=0;S<p;S++)if(l(t,m+S)!==l(e,S)){y=!1;break}if(y)return m}return-1}c.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};c.prototype.indexOf=function(e,r,n){return Ot(this,e,r,n,!0)};c.prototype.lastIndexOf=function(e,r,n){return Ot(this,e,r,n,!1)};function ho(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var p=parseInt(e.substr(a*2,2),16);if(Xe(p))return a;t[r+a]=p}return a}function To(t,e,r,n){return xe(je(e,t.length-r),t,r,n)}function xo(t,e,r,n){return xe(Co(e),t,r,n)}function So(t,e,r,n){return xe(Ht(e),t,r,n)}function wo(t,e,r,n){return xe(_o(e,t.length-r),t,r,n)}c.prototype.write=function(e,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var a=!1;;)switch(o){case"hex":return ho(this,e,r,n);case"utf8":case"utf-8":return To(this,e,r,n);case"ascii":case"latin1":case"binary":return xo(this,e,r,n);case"base64":return So(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wo(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),a=!0}};c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function bo(t,e,r){return e===0&&r===t.length?He.fromByteArray(t):He.fromByteArray(t.slice(e,r))}function Ut(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],a=null,p=i>239?4:i>223?3:i>191?2:1;if(o+p<=r){var l,m,h,y;switch(p){case 1:i<128&&(a=i);break;case 2:l=t[o+1],(l&192)===128&&(y=(i&31)<<6|l&63,y>127&&(a=y));break;case 3:l=t[o+1],m=t[o+2],(l&192)===128&&(m&192)===128&&(y=(i&15)<<12|(l&63)<<6|m&63,y>2047&&(y<55296||y>57343)&&(a=y));break;case 4:l=t[o+1],m=t[o+2],h=t[o+3],(l&192)===128&&(m&192)===128&&(h&192)===128&&(y=(i&15)<<18|(l&63)<<12|(m&63)<<6|h&63,y>65535&&y<1114112&&(a=y))}}a===null?(a=65533,p=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),o+=p}return Io(n)}var Pt=4096;function Io(t){var e=t.length;if(e<=Pt)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Pt));return r}function Ao(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function vo(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function ko(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=No[t[i]];return o}function Eo(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}c.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var o=this.subarray(e,r);return Object.setPrototypeOf(o,c.prototype),o};function I(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||I(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return o};c.prototype.readUintBE=c.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||I(e,r,this.length);for(var o=this[e+--r],i=1;r>0&&(i*=256);)o+=this[e+--r]*i;return o};c.prototype.readUint8=c.prototype.readUInt8=function(e,r){return e=e>>>0,r||I(e,1,this.length),this[e]};c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||I(e,2,this.length),this[e]|this[e+1]<<8};c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||I(e,2,this.length),this[e]<<8|this[e+1]};c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||I(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};c.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||I(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};c.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||I(e,r,this.length);for(var o=r,i=1,a=this[e+--o];o>0&&(i*=256);)a+=this[e+--o]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*r)),a};c.prototype.readInt8=function(e,r){return e=e>>>0,r||I(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};c.prototype.readInt16LE=function(e,r){e=e>>>0,r||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};c.prototype.readInt16BE=function(e,r){e=e>>>0,r||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};c.prototype.readInt32LE=function(e,r){return e=e>>>0,r||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};c.prototype.readInt32BE=function(e,r){return e=e>>>0,r||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};c.prototype.readFloatLE=function(e,r){return e=e>>>0,r||I(e,4,this.length),$.read(this,e,!0,23,4)};c.prototype.readFloatBE=function(e,r){return e=e>>>0,r||I(e,4,this.length),$.read(this,e,!1,23,4)};c.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||I(e,8,this.length),$.read(this,e,!0,52,8)};c.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||I(e,8,this.length),$.read(this,e,!1,52,8)};function k(t,e,r,n,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;k(this,e,r,n,i,0)}var a=1,p=0;for(this[r]=e&255;++p<n&&(a*=256);)this[r+p]=e/a&255;return r+n};c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;k(this,e,r,n,i,0)}var a=n-1,p=1;for(this[r+a]=e&255;--a>=0&&(p*=256);)this[r+a]=e/p&255;return r+n};c.prototype.writeUint8=c.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,1,255,0),this[r]=e&255,r+1};c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};c.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);k(this,e,r,n,i-1,-i)}var a=0,p=1,l=0;for(this[r]=e&255;++a<n&&(p*=256);)e<0&&l===0&&this[r+a-1]!==0&&(l=1),this[r+a]=(e/p>>0)-l&255;return r+n};c.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);k(this,e,r,n,i-1,-i)}var a=n-1,p=1,l=0;for(this[r+a]=e&255;--a>=0&&(p*=256);)e<0&&l===0&&this[r+a+1]!==0&&(l=1),this[r+a]=(e/p>>0)-l&255;return r+n};c.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};c.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};c.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Gt(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Vt(t,e,r,n,o){return e=+e,r=r>>>0,o||Gt(t,e,r,4,34028234663852886e22,-34028234663852886e22),$.write(t,e,r,n,23,4),r+4}c.prototype.writeFloatLE=function(e,r,n){return Vt(this,e,r,!0,n)};c.prototype.writeFloatBE=function(e,r,n){return Vt(this,e,r,!1,n)};function qt(t,e,r,n,o){return e=+e,r=r>>>0,o||Gt(t,e,r,8,17976931348623157e292,-17976931348623157e292),$.write(t,e,r,n,52,8),r+8}c.prototype.writeDoubleLE=function(e,r,n){return qt(this,e,r,!0,n)};c.prototype.writeDoubleBE=function(e,r,n){return qt(this,e,r,!1,n)};c.prototype.copy=function(e,r,n,o){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);var i=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),i};c.prototype.fill=function(e,r,n,o){if(typeof e=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!c.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){var i=e.charCodeAt(0);(o==="utf8"&&i<128||o==="latin1")&&(e=i)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var p=c.isBuffer(e)?e:c.from(e,o),l=p.length;if(l===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=p[a%l]}return this};var Lo=/[^+/0-9A-Za-z-_]/g;function Ro(t){if(t=t.split("=")[0],t=t.trim().replace(Lo,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function je(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function Co(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function _o(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function Ht(t){return He.toByteArray(Ro(t))}function xe(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function P(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Xe(t){return t!==t}var No=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()});var Xt=ye((bi,Yt)=>{s();var w=Yt.exports={},F,D;function Je(){throw new Error("setTimeout has not been defined")}function Qe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?F=setTimeout:F=Je}catch(t){F=Je}try{typeof clearTimeout=="function"?D=clearTimeout:D=Qe}catch(t){D=Qe}})();function Wt(t){if(F===setTimeout)return setTimeout(t,0);if((F===Je||!F)&&setTimeout)return F=setTimeout,setTimeout(t,0);try{return F(t,0)}catch(e){try{return F.call(null,t,0)}catch(r){return F.call(this,t,0)}}}function Mo(t){if(D===clearTimeout)return clearTimeout(t);if((D===Qe||!D)&&clearTimeout)return D=clearTimeout,clearTimeout(t);try{return D(t)}catch(e){try{return D.call(null,t)}catch(r){return D.call(this,t)}}}var U=[],te=!1,J,Se=-1;function Po(){!te||!J||(te=!1,J.length?U=J.concat(U):Se=-1,U.length&&jt())}function jt(){if(!te){var t=Wt(Po);te=!0;for(var e=U.length;e;){for(J=U,U=[];++Se<e;)J&&J[Se].run();Se=-1,e=U.length}J=null,te=!1,Mo(t)}}w.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];U.push(new Kt(t,e)),U.length===1&&!te&&Wt(jt)};function Kt(t,e){this.fun=t,this.array=e}Kt.prototype.run=function(){this.fun.apply(null,this.array)};w.title="browser";w.browser=!0;w.env={};w.argv=[];w.version="";w.versions={};function G(){}w.on=G;w.addListener=G;w.once=G;w.off=G;w.removeListener=G;w.removeAllListeners=G;w.emit=G;w.prependListener=G;w.prependOnceListener=G;w.listeners=function(t){return[]};w.binding=function(t){throw new Error("process.binding is not supported")};w.cwd=function(){return"/"};w.chdir=function(t){throw new Error("process.chdir is not supported")};w.umask=function(){return 0}});var u,d,Ii,s=f(()=>{u=C(zt()),d=C(Xt()),Ii=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Jt=f(()=>{"use strict";s()});var Qt=f(()=>{"use strict";s()});var Zt=f(()=>{"use strict";s()});var $t=f(()=>{"use strict";s()});var le=f(()=>{"use strict";s()});var er=f(()=>{"use strict";s()});var tr=f(()=>{"use strict";s()});var rr=f(()=>{"use strict";s()});var nr=f(()=>{"use strict";s()});var or=f(()=>{"use strict";s()});var re=f(()=>{"use strict";s();Qt();Zt();$t();le();er();tr();rr();nr();or()});var Ze,ir,qi,ar,Hi,sr,zi,Wi,ji,cr=f(()=>{"use strict";s();re();Ze={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:"EGLD",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:ir,egldLabel:qi}=Ze["devnet"],{chainId:ar,egldLabel:Hi}=Ze["testnet"],{chainId:sr,egldLabel:zi}=Ze["mainnet"],Wi={["devnet"]:ir,["testnet"]:ar,["mainnet"]:sr},ji={[ir]:"devnet",[ar]:"testnet",[sr]:"mainnet"}});var $e=f(()=>{"use strict";s()});var lr=f(()=>{"use strict";s()});var pr,et=f(()=>{"use strict";s();pr="transaction-status-toast-id"});var B,ur=f(()=>{"use strict";s();B=require("@multiversx/sdk-web-wallet-provider")});var dr,gr,we,mr,be,fr,ne,V=f(()=>{"use strict";s();Jt();cr();$e();lr();et();ur();dr=.01,gr=1500,we=5e4,mr=1e9,be="logout",fr="login",ne="0"});var Ie,tt=f(()=>{"use strict";s();Ie=()=>Date.now()/1e3});var yr=f(()=>{"use strict";s()});var hr=f(()=>{"use strict";s()});var Tr=f(()=>{"use strict";s();tt();yr();hr()});var nt={};K(nt,{getItem:()=>Do,localStorageKeys:()=>Q,removeItem:()=>Bo,setItem:()=>Fo});var Q,rt,Fo,Do,Bo,pe=f(()=>{"use strict";s();Tr();Q={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},rt=typeof localStorage!="undefined",Fo=({key:t,data:e,expires:r})=>{!rt||localStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},Do=t=>{if(!rt)return;let e=localStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Ie()>=r.expires?(localStorage.removeItem(String(t)),null):r.data},Bo=t=>{!rt||localStorage.removeItem(String(t))}});var ot={};K(ot,{clear:()=>br,getItem:()=>Sr,removeItem:()=>wr,setItem:()=>xr,storage:()=>Oo});var xr,Sr,wr,br,Oo,Ir=f(()=>{"use strict";s();xr=({key:t,data:e,expires:r})=>{sessionStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},Sr=t=>{let e=sessionStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(t)),null):r.data},wr=t=>sessionStorage.removeItem(String(t)),br=()=>sessionStorage.clear(),Oo={setItem:xr,getItem:Sr,removeItem:wr,clear:br}});var oe,Ae=f(()=>{"use strict";s();pe();Ir();oe={session:ot,local:nt}});var it,A,ve,q=f(()=>{"use strict";s();it=require("@reduxjs/toolkit");V();A=(0,it.createAction)(be),ve=(0,it.createAction)(fr,t=>({payload:t}))});var st,Ar,vr,ke,at,kr,Er,ba,Lr,Ia,Aa,va,ka,Ea,La,Ra,Rr,ct=f(()=>{"use strict";s();st=require("@multiversx/sdk-core"),Ar=require("@reduxjs/toolkit"),vr=require("redux-persist");V();Ae();pe();q();ke={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:ne},at={address:"",websocketEvent:null,accounts:{"":ke},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},kr=(0,Ar.createSlice)({name:"accountInfoSlice",initialState:at,reducers:{setAddress:(t,e)=>{let r=e.payload;t.address=r,t.publicKey=new st.Address(r).hex()},setAccount:(t,e)=>{let r=t.address===e.payload.address;t.accounts={[t.address]:r?e.payload:ke},t.shard=e.payload.shard,t.isAccountLoading=!1,t.accountLoadingError=null},setAccountNonce:(t,e)=>{let{address:r}=t;t.accounts[r].nonce=e.payload},setAccountShard:(t,e)=>{t.shard=e.payload},setLedgerAccount:(t,e)=>{t.ledgerAccount=e.payload},updateLedgerAccount:(t,e)=>{t.ledgerAccount!=null&&(t.ledgerAccount.index=e.payload.index,t.ledgerAccount.address=e.payload.address)},setWalletConnectAccount:(t,e)=>{t.walletConnectAccount=e.payload},setIsAccountLoading:(t,e)=>{t.isAccountLoading=e.payload,t.accountLoadingError=null},setAccountLoadingError:(t,e)=>{t.accountLoadingError=e.payload,t.isAccountLoading=!1},setWebsocketEvent:(t,e)=>{t.websocketEvent={timestamp:Date.now(),message:e.payload}}},extraReducers:t=>{t.addCase(A,()=>(oe.local.removeItem(Q.loginExpiresAt),at)),t.addCase(ve,(e,r)=>{let{address:n}=r.payload;e.address=n,e.publicKey=new st.Address(n).hex()}),t.addCase(vr.REHYDRATE,(e,r)=>{var m;if(!((m=r.payload)!=null&&m.account))return;let{account:n}=r.payload,{address:o,shard:i,accounts:a,publicKey:p}=n;e.address=o,e.shard=i;let l=a&&o in a;e.accounts=l?a:at.accounts,e.publicKey=p})}}),{setAccount:Er,setAddress:ba,setAccountNonce:Lr,setAccountShard:Ia,setLedgerAccount:Aa,updateLedgerAccount:va,setWalletConnectAccount:ka,setIsAccountLoading:Ea,setAccountLoadingError:La,setWebsocketEvent:Ra}=kr.actions,Rr=kr.reducer});function ue(){return new Date().setHours(new Date().getHours()+24)}function de(t){oe.local.setItem({key:Q.loginExpiresAt,data:t,expires:t})}var lt=f(()=>{"use strict";s();Ae();pe()});var _r,Cr,Nr,Ua,Ga,Va,qa,Ha,za,Mr,Wa,Pr,pt=f(()=>{"use strict";s();_r=require("@reduxjs/toolkit");lt();le();q();Cr={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Nr=(0,_r.createSlice)({name:"loginInfoSlice",initialState:Cr,reducers:{setLoginMethod:(t,e)=>{t.loginMethod=e.payload},setTokenLogin:(t,e)=>{t.tokenLogin=e.payload},setTokenLoginSignature:(t,e)=>{(t==null?void 0:t.tokenLogin)!=null&&(t.tokenLogin.signature=e.payload)},setWalletLogin:(t,e)=>{t.walletLogin=e.payload},setWalletConnectLogin:(t,e)=>{t.walletConnectLogin=e.payload},setLedgerLogin:(t,e)=>{t.ledgerLogin=e.payload},invalidateLoginSession:t=>{t.isLoginSessionInvalid=!0},setLogoutRoute:(t,e)=>{t.logoutRoute=e.payload}},extraReducers:t=>{t.addCase(A,()=>Cr),t.addCase(ve,(e,r)=>{e.loginMethod=r.payload.loginMethod,de(ue())})}}),{setLoginMethod:Ua,setWalletConnectLogin:Ga,setLedgerLogin:Va,setTokenLogin:qa,setTokenLoginSignature:Ha,setWalletLogin:za,invalidateLoginSession:Mr,setLogoutRoute:Wa}=Nr.actions,Pr=Nr.reducer});var Dr,Fr,Br,Xa,ut,Ja,Qa,Or,dt=f(()=>{"use strict";s();Dr=require("@reduxjs/toolkit");q();Fr={},Br=(0,Dr.createSlice)({name:"modalsSlice",initialState:Fr,reducers:{setTxSubmittedModal:(t,e)=>{t.txSubmittedModal=e.payload},setNotificationModal:(t,e)=>{t.notificationModal=e.payload},clearTxSubmittedModal:t=>{t.txSubmittedModal=void 0},clearNotificationModal:t=>{t.notificationModal=void 0}},extraReducers:t=>{t.addCase(A,()=>Fr)}}),{setTxSubmittedModal:Xa,setNotificationModal:ut,clearTxSubmittedModal:Ja,clearNotificationModal:Qa}=Br.actions,Or=Br.reducer});var Ur=f(()=>{"use strict";s()});var Gr=f(()=>{"use strict";s();Ur()});function gt(t){return t[Math.floor(Math.random()*t.length)]}var Vr=f(()=>{"use strict";s()});var qr=f(()=>{"use strict";s();$e()});var Hr=f(()=>{"use strict";s();Gr();Vr();qr()});var zr,Wr,mt,Go,jr,gs,ms,Kr,ft=f(()=>{"use strict";s();zr=require("@reduxjs/toolkit"),Wr=C(require("lodash.omit"));Hr();mt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Go={network:mt,chainID:"-1"},jr=(0,zr.createSlice)({name:"appConfig",initialState:Go,reducers:{initializeNetworkConfig:(t,e)=>{let r=gt(e.payload.walletConnectBridgeAddresses),n=gt(e.payload.walletConnectV2RelayAddresses),o=(0,Wr.default)(e.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");t.network=v(T(T({},t.network),o),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(t,e)=>{t.chainID=e.payload}}}),{initializeNetworkConfig:gs,setChainID:ms}=jr.actions,Kr=jr.reducer});var Yr,yt,Xr,Ss,ws,bs,Ee,Le=f(()=>{"use strict";s();Yr=require("@reduxjs/toolkit");re();q();yt={isSigning:!1,signedSessions:{}},Xr=(0,Yr.createSlice)({name:"signedMessageInfoSliceState",initialState:yt,reducers:{setSignSession:(t,e)=>{let{sessionId:r,signedSession:n,errorMessage:o}=e.payload;return v(T({},t),{errorMessage:o!=null?o:t.errorMessage,isSigning:n.status==="pending",signedSessions:v(T({},t.signedSessions),{[r]:n})})},setSignSessionState:(t,e)=>T(T({},t),e.payload),clearSignedMessageInfo:()=>yt},extraReducers:t=>{t.addCase(A,()=>yt)}}),{setSignSession:Ss,clearSignedMessageInfo:ws,setSignSessionState:bs}=Xr.actions,Ee=Xr.reducer});var Qr,Zr,Jr,$r,Cs,_s,Ns,Ms,Ps,Fs,Re,Ce=f(()=>{"use strict";s();Qr=require("@reduxjs/toolkit"),Zr=require("redux-persist");et();re();tt();q();Jr={customToasts:[],transactionToasts:[],failTransactionToast:null},$r=(0,Qr.createSlice)({name:"toastsSlice",initialState:Jr,reducers:{addCustomToast:(t,e)=>{t.customToasts.push(v(T({},e.payload),{type:"custom",toastId:e.payload.toastId||`custom-toast-${t.customToasts.length+1}`}))},removeCustomToast:(t,e)=>{t.customToasts=t.customToasts.filter(r=>r.toastId!==e.payload)},addTransactionToast:(t,e)=>{t.transactionToasts.push({type:"transaction",startTimestamp:Ie(),toastId:e.payload||`custom-toast-${t.transactionToasts.length+1}`})},removeTransactionToast:(t,e)=>{t.transactionToasts=t.transactionToasts.filter(r=>r.toastId!==e.payload)},addFailTransactionToast:(t,e)=>{t.failTransactionToast=v(T({},e.payload),{toastId:pr})},removeFailTransactionToast:t=>{t.failTransactionToast=null}},extraReducers:t=>{t.addCase(A,()=>Jr),t.addCase(Zr.REHYDRATE,(e,r)=>{var o,i;let n=(i=(o=r.customToasts)==null?void 0:o.filter(a=>!("component"in a)))!=null?i:[];e.customToasts=n})}}),{addCustomToast:Cs,removeCustomToast:_s,addTransactionToast:Ns,removeTransactionToast:Ms,addFailTransactionToast:Ps,removeFailTransactionToast:Fs}=$r.actions,Re=$r.reducer});var en,Vo,qo,Ho,zo,ht,tn,Us,rn,Gs,_e,Ne=f(()=>{"use strict";s();en=require("@reduxjs/toolkit");q();Vo="Transaction failed",qo="Transaction successful",Ho="Processing transaction",zo="Transaction submitted",ht={},tn=(0,en.createSlice)({name:"transactionsInfo",initialState:ht,reducers:{setTransactionsDisplayInfo(t,e){let{sessionId:r,transactionsDisplayInfo:n}=e.payload;r!=null&&(t[r]={errorMessage:(n==null?void 0:n.errorMessage)||Vo,successMessage:(n==null?void 0:n.successMessage)||qo,processingMessage:(n==null?void 0:n.processingMessage)||Ho,submittedMessage:(n==null?void 0:n.submittedMessage)||zo,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(t,e){e.payload!=null&&delete t[e.payload]},clearTransactionsInfo:()=>ht},extraReducers:t=>{t.addCase(A,()=>ht)}}),{clearTransactionsInfo:Us,setTransactionsDisplayInfo:rn,clearTransactionsInfoForSessionId:Gs}=tn.actions,_e=tn.reducer});function nn(t){return t!=null&&(Jo(t)||Zo(t))}function on(t){return t!=null&&(Qo(t)||$o(t))}function Jo(t){return t!=null&&jo.includes(t)}function Qo(t){return t!=null&&Ko.includes(t)}function Zo(t){return t!=null&&Yo.includes(t)}function $o(t){return t!=null&&Xo.includes(t)}var zs,jo,Ko,Ws,js,Yo,Xo,an=f(()=>{"use strict";s();le();zs=["sent"],jo=["success"],Ko=["fail","cancelled","timedOut"],Ws=["timedOut"],js=["pending"],Yo=["success"],Xo=["fail","invalid"]});var sn,cn,ge,ei,ln,$s,ec,pn,tc,rc,nc,oc,ic,un,ac,Me,Pe=f(()=>{"use strict";s();sn=require("@reduxjs/toolkit"),cn=require("redux-persist");le();an();q();ge={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},ei={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},ln=(0,sn.createSlice)({name:"transactionsSlice",initialState:ge,reducers:{moveTransactionsToSignedState:(t,e)=>{var l,m;let{sessionId:r,transactions:n,errorMessage:o,status:i,redirectRoute:a}=e.payload,p=((l=t.customTransactionInformationForSessionId)==null?void 0:l[r])||ei;t.signedTransactions[r]={transactions:n,status:i,errorMessage:o,redirectRoute:a,customTransactionInformation:p},((m=t==null?void 0:t.transactionsToSign)==null?void 0:m.sessionId)===r&&(t.transactionsToSign=ge.transactionsToSign)},clearSignedTransaction:(t,e)=>{t.signedTransactions[e.payload]&&delete t.signedTransactions[e.payload]},clearTransactionToSign:t=>{t!=null&&t.transactionsToSign&&(t.transactionsToSign=null)},updateSignedTransaction:(t,e)=>{t.signedTransactions=T(T({},t.signedTransactions),e.payload)},updateSignedTransactions:(t,e)=>{let{sessionId:r,status:n,errorMessage:o,transactions:i}=e.payload;t.signedTransactions[r]!=null&&(t.signedTransactions[r].status=n,o!=null&&(t.signedTransactions[r].errorMessage=o),i!=null&&(t.signedTransactions[r].transactions=i))},updateSignedTransactionStatus:(t,e)=>{var p,l,m,h,y,S;let{sessionId:r,status:n,errorMessage:o,transactionHash:i}=e.payload,a=(l=(p=t.signedTransactions)==null?void 0:p[r])==null?void 0:l.transactions;if(a!=null){t.signedTransactions[r].transactions=a.map(R=>R.hash===i?v(T({},R),{status:n,errorMessage:o}):R);let b=(h=(m=t.signedTransactions[r])==null?void 0:m.transactions)==null?void 0:h.every(R=>nn(R.status)),N=(S=(y=t.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:S.every(R=>on(R.status));b&&(t.signedTransactions[r].status="success"),N&&(t.signedTransactions[r].status="fail")}},setTransactionsToSign:(t,e)=>{t.transactionsToSign=e.payload;let{sessionId:r,customTransactionInformation:n}=e.payload;t.customTransactionInformationForSessionId[r]=n,t.signTransactionsError=null},clearAllTransactionsToSign:t=>{t.transactionsToSign=ge.transactionsToSign,t.signTransactionsError=null},clearAllSignedTransactions:t=>{t.signedTransactions=ge.signedTransactions},setSignTransactionsError:(t,e)=>{t.signTransactionsError=e.payload},setSignTransactionsCancelMessage:(t,e)=>{t.signTransactionsCancelMessage=e.payload}},extraReducers:t=>{t.addCase(A,()=>ge),t.addCase(cn.REHYDRATE,(e,r)=>{var a;if(e.signTransactionsCancelMessage=null,!((a=r.payload)!=null&&a.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:o}=r.payload.transactions,i=Object.entries(n).reduce((p,[l,m])=>{let h=new Date(l),y=new Date;return y.setHours(y.getHours()+5),y-h>0||(p[l]=m),p},{});o!=null&&(e.customTransactionInformationForSessionId=o),n!=null&&(e.signedTransactions=i)})}}),{updateSignedTransactionStatus:$s,updateSignedTransactions:ec,setTransactionsToSign:pn,clearAllTransactionsToSign:tc,clearAllSignedTransactions:rc,clearSignedTransaction:nc,clearTransactionToSign:oc,setSignTransactionsError:ic,setSignTransactionsCancelMessage:un,moveTransactionsToSignedState:ac}=ln.actions,Me=ln.reducer});var ie=f(()=>{"use strict";s();ct();pt();dt();ft();Le();Ce();Ne();Pe()});var St=f(()=>{"use strict";s()});var xn,Tn,Sn,Qc,Zc,$c,el,tl,rl,wn,bn=f(()=>{"use strict";s();xn=require("@reduxjs/toolkit");q();Tn={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Sn=(0,xn.createSlice)({name:"dappModalsSlice",initialState:Tn,reducers:{setDappModalVisibility:(t,e)=>{t.visible=e.payload},setDappModalHeaderVisibility:(t,e)=>{t.modal.showHeader=e.payload},setDappModalFooterVisibility:(t,e)=>{t.modal.showFooter=e.payload},setDappModalHeaderText:(t,e)=>{t.modal.headerText=e.payload},setDappModalFooterText:(t,e)=>{t.modal.footerText=e.payload},setDappModalConfig:(t,e)=>{t.modal=T({},e.payload)}},extraReducers:t=>{t.addCase(A,()=>Tn)}}),{setDappModalVisibility:Qc,setDappModalHeaderVisibility:Zc,setDappModalFooterVisibility:$c,setDappModalHeaderText:el,setDappModalFooterText:tl,setDappModalConfig:rl}=Sn.actions,wn=Sn.reducer});var In,ii,ai,ae,Oe=f(()=>{"use strict";s();In=require("@reduxjs/toolkit");St();ct();bn();pt();dt();ft();Le();Ce();Ne();Pe();ii={["account"]:Rr,["dappModal"]:wn,["loginInfo"]:Pr,["modals"]:Or,["networkConfig"]:Kr,["signedMessageInfo"]:Ee,["toasts"]:Re,["transactionsInfo"]:_e,["transactions"]:Me},ai=(t={})=>(0,In.combineReducers)(T(T({},ii),t)),ae=ai});var Ln={};K(Ln,{default:()=>di,getSessionStoragePersistConfig:()=>me,localStoragePersistConfig:()=>kn,sessionStorageReducers:()=>En});function me(t,e=[]){return{key:t,version:1,storage:vn.default,blacklist:e}}var W,An,vn,si,ci,li,pi,ui,kn,En,di,Rn=f(()=>{"use strict";s();W=require("redux-persist"),An=C(require("redux-persist/lib/storage")),vn=C(require("redux-persist/lib/storage/session"));Oe();ie();Le();Ce();Ne();Pe();St();si={2:t=>v(T({},t),{networkConfig:mt})};ci=me("sdk-dapp-transactionsInfo"),li=me("sdk-dapp-transactions",["transactionsToSign"]),pi=me("sdk-dapp-toasts"),ui=me("sdk-dapp-signedMessageInfo"),kn={key:"sdk-dapp-store",version:2,storage:An.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,W.createMigrate)(si,{debug:!1})},En={["toasts"]:(0,W.persistReducer)(pi,Re),["transactions"]:(0,W.persistReducer)(li,Me),["transactionsInfo"]:(0,W.persistReducer)(ci,_e),["signedMessageInfo"]:(0,W.persistReducer)(ui,Ee)},di=(0,W.persistReducer)(kn,ae(En))});var Cn={};K(Cn,{default:()=>gi});var gi,_n=f(()=>{"use strict";s();Oe();gi=ae()});var Nn={};K(Nn,{default:()=>fi});var L,mi,fi,Mn=f(()=>{"use strict";s();L=require("redux-persist"),mi=[L.FLUSH,L.REHYDRATE,L.PAUSE,L.PERSIST,L.PURGE,L.REGISTER],fi=mi});var Dn={};K(Dn,{default:()=>Fn});function Fn(t){return(0,Pn.persistStore)(t)}var Pn,Bn=f(()=>{"use strict";s();Pn=require("redux-persist")});var hi={};K(hi,{signTransactions:()=>yi});module.exports=ce(hi);s();var Xn=C(require("bignumber.js"));V();s();ie();s();var dn=C(require("lodash.isequal")),Fe=require("reselect");re();var x=(0,Fe.createSelectorCreator)(Fe.defaultMemoize,dn.default),gn=(t,e)=>t!=""&&Boolean(e);var H=t=>t.account,ti=x(H,t=>t.address),Tt=x(H,ti,(t,e)=>e in t.accounts?t.accounts[e]:ke),wc=x(H,Tt,(t,e)=>{let o=t,{accounts:r}=o,n=vt(o,["accounts"]);return v(T({},n),{account:e})}),mn=x(Tt,t=>t.balance),bc=x(Tt,t=>{var e;return((e=t==null?void 0:t.nonce)==null?void 0:e.valueOf())||0}),Ic=x(H,t=>t.shard),Ac=x(H,t=>t.ledgerAccount),vc=x(H,t=>t.walletConnectAccount),kc=x(H,t=>t.isAccountLoading),Ec=x(H,t=>t.accountLoadingError),Lc=x(H,t=>t.websocketEvent);s();var Z=t=>t.networkConfig,fn=x(Z,t=>t.chainID),_c=x(Z,t=>t.network.walletConnectBridgeAddress),Nc=x(Z,t=>t.network.walletConnectV2RelayAddress),Mc=x(Z,t=>t.network.walletConnectV2ProjectId),Pc=x(Z,t=>t.network.walletConnectV2Options),Fc=x(Z,t=>t.network.walletConnectDeepLink),xt=x(Z,t=>t.network),Dc=x(xt,t=>t.apiAddress),Bc=x(xt,t=>t.explorerAddress),Oc=x(xt,t=>t.egldLabel);ie();s();var wt=require("@reduxjs/toolkit"),Vn=require("react-redux/lib/utils/Subscription");ie();s();var yn=C(require("lodash.throttle"));V();ie();lt();Ae();pe();var ri=[be],De=!1,ni=(0,yn.default)(()=>{de(ue())},5e3),hn=t=>e=>r=>{var l;if(ri.includes(r.type))return e(r);let n=t.getState(),o=oe.local.getItem(Q.loginExpiresAt);if(!gn((l=n==null?void 0:n.loginInfo)==null?void 0:l.loginMethod,n==null?void 0:n.account.address))return e(r);if(o==null)return de(ue());let a=Date.now();return o-a<0&&!De?setTimeout(()=>{De=!0,t.dispatch(Mr())},1e3):(De&&(De=!1),ni()),e(r)};s();s();function Be(){return typeof sessionStorage!="undefined"}var On=Be()?(Rn(),ce(Ln)).default:(_n(),ce(Cn)).default,Un=Be()?(Mn(),ce(Nn)).default:[],Gn=Be()?(Bn(),ce(Dn)).default:t=>t;Oe();var z=(0,wt.configureStore)({reducer:On,middleware:t=>t({serializableCheck:{ignoredActions:[...Un,Lr.type,Er.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(hn)}),Rl=(0,Vn.createSubscription)(z),Cl=Gn(z),_l=(0,wt.configureStore)({reducer:ae});re();s();var qn=C(require("bignumber.js"));V();var Ue=t=>{if(isNaN(t)||t==null||String(t).includes("Infinity"))return!1;let[e,r]=t.split(".");if(r)for(;r.charAt(r.length-1)===ne;)r=r.slice(0,-1);let n=r?[e,r].join("."):e,o=new qn.default(n);return o.toString(10)===n&&o.comparedTo(0)>=0};s();var bt=C(require("bignumber.js"));V();s();var _=require("@multiversx/sdk-core"),jn=require("@multiversx/sdk-network-providers");V();s();s();var Hn=C(require("bignumber.js")),zn=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new Hn.default(r),o=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=o};s();V();s();var Wn={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function Kn({minGasLimit:t=String(we),gasLimit:e,gasPrice:r,data:n,gasPerDataByte:o,gasPriceModifier:i,defaultGasPrice:a=String(mr),chainId:p}){let l=n||"",m=zn(e)?e:t,h=Ue(r)?r:a,y=new _.Transaction({nonce:0,value:_.TokenPayment.egldFromAmount("0"),receiver:new _.Address(Wn.to),sender:new _.Address(Wn.to),gasPrice:parseInt(h),gasLimit:parseInt(m),data:new _.TransactionPayload(l.trim()),chainID:p,version:new _.TransactionVersion(1)}),S=new jn.NetworkConfig;S.MinGasLimit=parseInt(t),S.GasPerDataByte=parseInt(o),S.GasPriceModifier=parseFloat(i);try{return y.computeFee(S).toString(10)}catch(b){return ne}}function Yn(t,e){let r=new bt.default(0);return t.forEach(n=>{let o=Kn({gasPerDataByte:String(gr),gasPriceModifier:String(dr),minGasLimit:String(e),gasLimit:n.getGasLimit().valueOf().toString(),gasPrice:n.getGasPrice().valueOf().toString(),data:n.getData().toString(),chainId:n.getChainID().valueOf()});r=r.plus(new bt.default(o))}),r}function yi(i){return Et(this,arguments,function*({transactions:t,callbackRoute:e,minGasLimit:r=we,customTransactionInformation:n,transactionsDisplayInfo:o}){let a=z.getState(),p=Date.now().toString(),l=mn(a),m=fn(a),h=Array.isArray(t)?t:[t],y=Yn(h,r);if(!new Xn.default(Ue(l)?l:"0").minus(y).isGreaterThan(0)){let j={type:"warning",iconClassName:"text-warning",title:"Insufficient EGLD funds",description:"Current EGLD balance cannot cover the transaction fees."};return z.dispatch(ut(j)),{error:"insufficient funds",sessionId:null}}if(!(h==null?void 0:h.every(j=>j.getChainID().valueOf()===m.valueOf()))){let j={type:"warning",iconClassName:"text-warning",title:"Network change detected",description:"The application tried to change the transaction network"};return z.dispatch(ut(j)),{error:"Invalid ChainID",sessionId:null}}let R={sessionId:p,callbackRoute:e,customTransactionInformation:n,transactions:h.map(j=>j.toPlainObject())};return z.dispatch(un(null)),z.dispatch(pn(R)),z.dispatch(rn({sessionId:p,transactionsDisplayInfo:o})),{sessionId:p}})}0&&(module.exports={signTransactions});
1
+ "use strict";var Jn=Object.create;var se=Object.defineProperty,Qn=Object.defineProperties,Zn=Object.getOwnPropertyDescriptor,$n=Object.getOwnPropertyDescriptors,eo=Object.getOwnPropertyNames,fe=Object.getOwnPropertySymbols,to=Object.getPrototypeOf,Ge=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable;var It=(t,e,r)=>e in t?se(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,T=(t,e)=>{for(var r in e||(e={}))Ge.call(e,r)&&It(t,r,e[r]);if(fe)for(var r of fe(e))vt.call(e,r)&&It(t,r,e[r]);return t},A=(t,e)=>Qn(t,$n(e));var At=(t,e)=>{var r={};for(var n in t)Ge.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&fe)for(var n of fe(t))e.indexOf(n)<0&&vt.call(t,n)&&(r[n]=t[n]);return r};var f=(t,e)=>()=>(t&&(e=t(t=0)),e);var ye=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),K=(t,e)=>{for(var r in e)se(t,r,{get:e[r],enumerable:!0})},kt=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of eo(e))!Ge.call(t,o)&&o!==r&&se(t,o,{get:()=>e[o],enumerable:!(n=Zn(e,o))||n.enumerable});return t};var C=(t,e,r)=>(r=t!=null?Jn(to(t)):{},kt(e||!t||!t.__esModule?se(r,"default",{value:t,enumerable:!0}):r,t)),ce=t=>kt(se({},"__esModule",{value:!0}),t);var Et=(t,e,r)=>new Promise((n,o)=>{var i=l=>{try{p(r.next(l))}catch(m){o(m)}},a=l=>{try{p(r.throw(l))}catch(m){o(m)}},p=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,a);p((r=r.apply(t,e)).next())});var Ct=ye(he=>{"use strict";s();he.byteLength=no;he.toByteArray=io;he.fromByteArray=co;var M=[],E=[],ro=typeof Uint8Array!="undefined"?Uint8Array:Array,Ve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Y=0,Lt=Ve.length;Y<Lt;++Y)M[Y]=Ve[Y],E[Ve.charCodeAt(Y)]=Y;var Y,Lt;E["-".charCodeAt(0)]=62;E["_".charCodeAt(0)]=63;function Rt(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function no(t){var e=Rt(t),r=e[0],n=e[1];return(r+n)*3/4-n}function oo(t,e,r){return(e+r)*3/4-r}function io(t){var e,r=Rt(t),n=r[0],o=r[1],i=new ro(oo(t,n,o)),a=0,p=o>0?n-4:n,l;for(l=0;l<p;l+=4)e=E[t.charCodeAt(l)]<<18|E[t.charCodeAt(l+1)]<<12|E[t.charCodeAt(l+2)]<<6|E[t.charCodeAt(l+3)],i[a++]=e>>16&255,i[a++]=e>>8&255,i[a++]=e&255;return o===2&&(e=E[t.charCodeAt(l)]<<2|E[t.charCodeAt(l+1)]>>4,i[a++]=e&255),o===1&&(e=E[t.charCodeAt(l)]<<10|E[t.charCodeAt(l+1)]<<4|E[t.charCodeAt(l+2)]>>2,i[a++]=e>>8&255,i[a++]=e&255),i}function ao(t){return M[t>>18&63]+M[t>>12&63]+M[t>>6&63]+M[t&63]}function so(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(ao(n));return o.join("")}function co(t){for(var e,r=t.length,n=r%3,o=[],i=16383,a=0,p=r-n;a<p;a+=i)o.push(so(t,a,a+i>p?p:a+i));return n===1?(e=t[r-1],o.push(M[e>>2]+M[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(M[e>>10]+M[e>>4&63]+M[e<<2&63]+"=")),o.join("")}});var _t=ye(qe=>{s();qe.read=function(t,e,r,n,o){var i,a,p=o*8-n-1,l=(1<<p)-1,m=l>>1,h=-7,y=r?o-1:0,S=r?-1:1,b=t[e+y];for(y+=S,i=b&(1<<-h)-1,b>>=-h,h+=p;h>0;i=i*256+t[e+y],y+=S,h-=8);for(a=i&(1<<-h)-1,i>>=-h,h+=n;h>0;a=a*256+t[e+y],y+=S,h-=8);if(i===0)i=1-m;else{if(i===l)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-m}return(b?-1:1)*a*Math.pow(2,i-n)};qe.write=function(t,e,r,n,o,i){var a,p,l,m=i*8-o-1,h=(1<<m)-1,y=h>>1,S=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:i-1,N=n?1:-1,R=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(p=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+y>=1?e+=S/l:e+=S*Math.pow(2,1-y),e*l>=2&&(a++,l/=2),a+y>=h?(p=0,a=h):a+y>=1?(p=(e*l-1)*Math.pow(2,o),a=a+y):(p=e*Math.pow(2,y-1)*Math.pow(2,o),a=0));o>=8;t[r+b]=p&255,b+=N,p/=256,o-=8);for(a=a<<o|p,m+=o;m>0;t[r+b]=a&255,b+=N,a/=256,m-=8);t[r+b-N]|=R*128}});var zt=ye(ee=>{"use strict";s();var He=Ct(),$=_t(),Nt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ee.Buffer=c;ee.SlowBuffer=fo;ee.INSPECT_MAX_BYTES=50;var Te=2147483647;ee.kMaxLength=Te;c.TYPED_ARRAY_SUPPORT=lo();!c.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 lo(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.buffer}});Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.byteOffset}});function O(t){if(t>Te)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Ke(t)}return Ft(t,e,r)}c.poolSize=8192;function Ft(t,e,r){if(typeof t=="string")return uo(t,e);if(ArrayBuffer.isView(t))return go(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(P(t,ArrayBuffer)||t&&P(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(P(t,SharedArrayBuffer)||t&&P(t.buffer,SharedArrayBuffer)))return We(t,e,r);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 c.from(n,e,r);var o=mo(t);if(o)return o;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return c.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}c.from=function(t,e,r){return Ft(t,e,r)};Object.setPrototypeOf(c.prototype,Uint8Array.prototype);Object.setPrototypeOf(c,Uint8Array);function Dt(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 po(t,e,r){return Dt(t),t<=0?O(t):e!==void 0?typeof r=="string"?O(t).fill(e,r):O(t).fill(e):O(t)}c.alloc=function(t,e,r){return po(t,e,r)};function Ke(t){return Dt(t),O(t<0?0:Ye(t)|0)}c.allocUnsafe=function(t){return Ke(t)};c.allocUnsafeSlow=function(t){return Ke(t)};function uo(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Bt(t,e)|0,n=O(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function ze(t){for(var e=t.length<0?0:Ye(t.length)|0,r=O(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function go(t){if(P(t,Uint8Array)){var e=new Uint8Array(t);return We(e.buffer,e.byteOffset,e.byteLength)}return ze(t)}function We(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,c.prototype),n}function mo(t){if(c.isBuffer(t)){var e=Ye(t.length)|0,r=O(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||Xe(t.length)?O(0):ze(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ze(t.data)}function Ye(t){if(t>=Te)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Te.toString(16)+" bytes");return t|0}function fo(t){return+t!=t&&(t=0),c.alloc(+t)}c.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==c.prototype};c.compare=function(e,r){if(P(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),P(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),!c.isBuffer(e)||!c.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,o=r.length,i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0};c.isEncoding=function(e){switch(String(e).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}};c.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return c.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var o=c.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){var a=e[n];if(P(a,Uint8Array))i+a.length>o.length?c.from(a).copy(o,i):Uint8Array.prototype.set.call(o,a,i);else if(c.isBuffer(a))a.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=a.length}return o};function Bt(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||P(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 r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return je(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ht(t).length;default:if(o)return n?-1:je(t).length;e=(""+e).toLowerCase(),o=!0}}c.byteLength=Bt;function yo(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return ko(this,e,r);case"utf8":case"utf-8":return Ut(this,e,r);case"ascii":return vo(this,e,r);case"latin1":case"binary":return Ao(this,e,r);case"base64":return bo(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Eo(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}c.prototype._isBuffer=!0;function X(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)X(this,r,r+1);return this};c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)X(this,r,r+3),X(this,r+1,r+2);return this};c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)X(this,r,r+7),X(this,r+1,r+6),X(this,r+2,r+5),X(this,r+3,r+4);return this};c.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Ut(this,0,e):yo.apply(this,arguments)};c.prototype.toLocaleString=c.prototype.toString;c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:c.compare(this,e)===0};c.prototype.inspect=function(){var e="",r=ee.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Nt&&(c.prototype[Nt]=c.prototype.inspect);c.prototype.compare=function(e,r,n,o,i){if(P(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var a=i-o,p=n-r,l=Math.min(a,p),m=this.slice(o,i),h=e.slice(r,n),y=0;y<l;++y)if(m[y]!==h[y]){a=m[y],p=h[y];break}return a<p?-1:p<a?1:0};function Ot(t,e,r,n,o){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Xe(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof e=="string"&&(e=c.from(e,n)),c.isBuffer(e))return e.length===0?-1:Mt(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Mt(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function Mt(t,e,r,n,o){var i=1,a=t.length,p=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,a/=2,p/=2,r/=2}function l(b,N){return i===1?b[N]:b.readUInt16BE(N*i)}var m;if(o){var h=-1;for(m=r;m<a;m++)if(l(t,m)===l(e,h===-1?0:m-h)){if(h===-1&&(h=m),m-h+1===p)return h*i}else h!==-1&&(m-=m-h),h=-1}else for(r+p>a&&(r=a-p),m=r;m>=0;m--){for(var y=!0,S=0;S<p;S++)if(l(t,m+S)!==l(e,S)){y=!1;break}if(y)return m}return-1}c.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};c.prototype.indexOf=function(e,r,n){return Ot(this,e,r,n,!0)};c.prototype.lastIndexOf=function(e,r,n){return Ot(this,e,r,n,!1)};function ho(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var p=parseInt(e.substr(a*2,2),16);if(Xe(p))return a;t[r+a]=p}return a}function To(t,e,r,n){return xe(je(e,t.length-r),t,r,n)}function xo(t,e,r,n){return xe(Co(e),t,r,n)}function So(t,e,r,n){return xe(Ht(e),t,r,n)}function wo(t,e,r,n){return xe(_o(e,t.length-r),t,r,n)}c.prototype.write=function(e,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var a=!1;;)switch(o){case"hex":return ho(this,e,r,n);case"utf8":case"utf-8":return To(this,e,r,n);case"ascii":case"latin1":case"binary":return xo(this,e,r,n);case"base64":return So(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wo(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),a=!0}};c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function bo(t,e,r){return e===0&&r===t.length?He.fromByteArray(t):He.fromByteArray(t.slice(e,r))}function Ut(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],a=null,p=i>239?4:i>223?3:i>191?2:1;if(o+p<=r){var l,m,h,y;switch(p){case 1:i<128&&(a=i);break;case 2:l=t[o+1],(l&192)===128&&(y=(i&31)<<6|l&63,y>127&&(a=y));break;case 3:l=t[o+1],m=t[o+2],(l&192)===128&&(m&192)===128&&(y=(i&15)<<12|(l&63)<<6|m&63,y>2047&&(y<55296||y>57343)&&(a=y));break;case 4:l=t[o+1],m=t[o+2],h=t[o+3],(l&192)===128&&(m&192)===128&&(h&192)===128&&(y=(i&15)<<18|(l&63)<<12|(m&63)<<6|h&63,y>65535&&y<1114112&&(a=y))}}a===null?(a=65533,p=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),o+=p}return Io(n)}var Pt=4096;function Io(t){var e=t.length;if(e<=Pt)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Pt));return r}function vo(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function Ao(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function ko(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=No[t[i]];return o}function Eo(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}c.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var o=this.subarray(e,r);return Object.setPrototypeOf(o,c.prototype),o};function I(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||I(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return o};c.prototype.readUintBE=c.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||I(e,r,this.length);for(var o=this[e+--r],i=1;r>0&&(i*=256);)o+=this[e+--r]*i;return o};c.prototype.readUint8=c.prototype.readUInt8=function(e,r){return e=e>>>0,r||I(e,1,this.length),this[e]};c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||I(e,2,this.length),this[e]|this[e+1]<<8};c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||I(e,2,this.length),this[e]<<8|this[e+1]};c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||I(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};c.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||I(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};c.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||I(e,r,this.length);for(var o=r,i=1,a=this[e+--o];o>0&&(i*=256);)a+=this[e+--o]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*r)),a};c.prototype.readInt8=function(e,r){return e=e>>>0,r||I(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};c.prototype.readInt16LE=function(e,r){e=e>>>0,r||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};c.prototype.readInt16BE=function(e,r){e=e>>>0,r||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};c.prototype.readInt32LE=function(e,r){return e=e>>>0,r||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};c.prototype.readInt32BE=function(e,r){return e=e>>>0,r||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};c.prototype.readFloatLE=function(e,r){return e=e>>>0,r||I(e,4,this.length),$.read(this,e,!0,23,4)};c.prototype.readFloatBE=function(e,r){return e=e>>>0,r||I(e,4,this.length),$.read(this,e,!1,23,4)};c.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||I(e,8,this.length),$.read(this,e,!0,52,8)};c.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||I(e,8,this.length),$.read(this,e,!1,52,8)};function k(t,e,r,n,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;k(this,e,r,n,i,0)}var a=1,p=0;for(this[r]=e&255;++p<n&&(a*=256);)this[r+p]=e/a&255;return r+n};c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;k(this,e,r,n,i,0)}var a=n-1,p=1;for(this[r+a]=e&255;--a>=0&&(p*=256);)this[r+a]=e/p&255;return r+n};c.prototype.writeUint8=c.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,1,255,0),this[r]=e&255,r+1};c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};c.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);k(this,e,r,n,i-1,-i)}var a=0,p=1,l=0;for(this[r]=e&255;++a<n&&(p*=256);)e<0&&l===0&&this[r+a-1]!==0&&(l=1),this[r+a]=(e/p>>0)-l&255;return r+n};c.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);k(this,e,r,n,i-1,-i)}var a=n-1,p=1,l=0;for(this[r+a]=e&255;--a>=0&&(p*=256);)e<0&&l===0&&this[r+a+1]!==0&&(l=1),this[r+a]=(e/p>>0)-l&255;return r+n};c.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};c.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};c.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Gt(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Vt(t,e,r,n,o){return e=+e,r=r>>>0,o||Gt(t,e,r,4,34028234663852886e22,-34028234663852886e22),$.write(t,e,r,n,23,4),r+4}c.prototype.writeFloatLE=function(e,r,n){return Vt(this,e,r,!0,n)};c.prototype.writeFloatBE=function(e,r,n){return Vt(this,e,r,!1,n)};function qt(t,e,r,n,o){return e=+e,r=r>>>0,o||Gt(t,e,r,8,17976931348623157e292,-17976931348623157e292),$.write(t,e,r,n,52,8),r+8}c.prototype.writeDoubleLE=function(e,r,n){return qt(this,e,r,!0,n)};c.prototype.writeDoubleBE=function(e,r,n){return qt(this,e,r,!1,n)};c.prototype.copy=function(e,r,n,o){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);var i=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),i};c.prototype.fill=function(e,r,n,o){if(typeof e=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!c.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){var i=e.charCodeAt(0);(o==="utf8"&&i<128||o==="latin1")&&(e=i)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var p=c.isBuffer(e)?e:c.from(e,o),l=p.length;if(l===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=p[a%l]}return this};var Lo=/[^+/0-9A-Za-z-_]/g;function Ro(t){if(t=t.split("=")[0],t=t.trim().replace(Lo,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function je(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function Co(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function _o(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function Ht(t){return He.toByteArray(Ro(t))}function xe(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function P(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Xe(t){return t!==t}var No=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()});var Xt=ye((bi,Yt)=>{s();var w=Yt.exports={},F,D;function Je(){throw new Error("setTimeout has not been defined")}function Qe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?F=setTimeout:F=Je}catch(t){F=Je}try{typeof clearTimeout=="function"?D=clearTimeout:D=Qe}catch(t){D=Qe}})();function Wt(t){if(F===setTimeout)return setTimeout(t,0);if((F===Je||!F)&&setTimeout)return F=setTimeout,setTimeout(t,0);try{return F(t,0)}catch(e){try{return F.call(null,t,0)}catch(r){return F.call(this,t,0)}}}function Mo(t){if(D===clearTimeout)return clearTimeout(t);if((D===Qe||!D)&&clearTimeout)return D=clearTimeout,clearTimeout(t);try{return D(t)}catch(e){try{return D.call(null,t)}catch(r){return D.call(this,t)}}}var U=[],te=!1,J,Se=-1;function Po(){!te||!J||(te=!1,J.length?U=J.concat(U):Se=-1,U.length&&jt())}function jt(){if(!te){var t=Wt(Po);te=!0;for(var e=U.length;e;){for(J=U,U=[];++Se<e;)J&&J[Se].run();Se=-1,e=U.length}J=null,te=!1,Mo(t)}}w.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];U.push(new Kt(t,e)),U.length===1&&!te&&Wt(jt)};function Kt(t,e){this.fun=t,this.array=e}Kt.prototype.run=function(){this.fun.apply(null,this.array)};w.title="browser";w.browser=!0;w.env={};w.argv=[];w.version="";w.versions={};function G(){}w.on=G;w.addListener=G;w.once=G;w.off=G;w.removeListener=G;w.removeAllListeners=G;w.emit=G;w.prependListener=G;w.prependOnceListener=G;w.listeners=function(t){return[]};w.binding=function(t){throw new Error("process.binding is not supported")};w.cwd=function(){return"/"};w.chdir=function(t){throw new Error("process.chdir is not supported")};w.umask=function(){return 0}});var u,d,Ii,s=f(()=>{u=C(zt()),d=C(Xt()),Ii=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Jt=f(()=>{"use strict";s()});var Qt=f(()=>{"use strict";s()});var Zt=f(()=>{"use strict";s()});var $t=f(()=>{"use strict";s()});var le=f(()=>{"use strict";s()});var er=f(()=>{"use strict";s()});var tr=f(()=>{"use strict";s()});var rr=f(()=>{"use strict";s()});var nr=f(()=>{"use strict";s()});var or=f(()=>{"use strict";s()});var re=f(()=>{"use strict";s();Qt();Zt();$t();le();er();tr();rr();nr();or()});var Ze,ir,qi,ar,Hi,sr,zi,Wi,ji,cr=f(()=>{"use strict";s();re();Ze={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:"EGLD",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:ir,egldLabel:qi}=Ze["devnet"],{chainId:ar,egldLabel:Hi}=Ze["testnet"],{chainId:sr,egldLabel:zi}=Ze["mainnet"],Wi={["devnet"]:ir,["testnet"]:ar,["mainnet"]:sr},ji={[ir]:"devnet",[ar]:"testnet",[sr]:"mainnet"}});var $e=f(()=>{"use strict";s()});var lr=f(()=>{"use strict";s()});var pr,et=f(()=>{"use strict";s();pr="transaction-status-toast-id"});var B,ur=f(()=>{"use strict";s();B=require("@multiversx/sdk-web-wallet-provider")});var dr,gr,we,mr,be,fr,ne,V=f(()=>{"use strict";s();Jt();cr();$e();lr();et();ur();dr=.01,gr=1500,we=5e4,mr=1e9,be="logout",fr="login",ne="0"});var Ie,tt=f(()=>{"use strict";s();Ie=()=>Date.now()/1e3});var yr=f(()=>{"use strict";s()});var hr=f(()=>{"use strict";s()});var Tr=f(()=>{"use strict";s();tt();yr();hr()});var nt={};K(nt,{getItem:()=>Do,localStorageKeys:()=>Q,removeItem:()=>Bo,setItem:()=>Fo});var Q,rt,Fo,Do,Bo,pe=f(()=>{"use strict";s();Tr();Q={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},rt=typeof localStorage!="undefined",Fo=({key:t,data:e,expires:r})=>{!rt||localStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},Do=t=>{if(!rt)return;let e=localStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Ie()>=r.expires?(localStorage.removeItem(String(t)),null):r.data},Bo=t=>{!rt||localStorage.removeItem(String(t))}});var ot={};K(ot,{clear:()=>br,getItem:()=>Sr,removeItem:()=>wr,setItem:()=>xr,storage:()=>Oo});var xr,Sr,wr,br,Oo,Ir=f(()=>{"use strict";s();xr=({key:t,data:e,expires:r})=>{sessionStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},Sr=t=>{let e=sessionStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(t)),null):r.data},wr=t=>sessionStorage.removeItem(String(t)),br=()=>sessionStorage.clear(),Oo={setItem:xr,getItem:Sr,removeItem:wr,clear:br}});var oe,ve=f(()=>{"use strict";s();pe();Ir();oe={session:ot,local:nt}});var it,v,Ae,q=f(()=>{"use strict";s();it=require("@reduxjs/toolkit");V();v=(0,it.createAction)(be),Ae=(0,it.createAction)(fr,t=>({payload:t}))});var st,vr,Ar,ke,at,kr,Er,ba,Lr,Ia,va,Aa,ka,Ea,La,Ra,Rr,ct=f(()=>{"use strict";s();st=require("@multiversx/sdk-core"),vr=require("@reduxjs/toolkit"),Ar=require("redux-persist");V();ve();pe();q();ke={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:ne},at={address:"",websocketEvent:null,accounts:{"":ke},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},kr=(0,vr.createSlice)({name:"accountInfoSlice",initialState:at,reducers:{setAddress:(t,e)=>{let r=e.payload;t.address=r,t.publicKey=new st.Address(r).hex()},setAccount:(t,e)=>{let r=t.address===e.payload.address;t.accounts={[t.address]:r?e.payload:ke},t.shard=e.payload.shard,t.isAccountLoading=!1,t.accountLoadingError=null},setAccountNonce:(t,e)=>{let{address:r}=t;t.accounts[r].nonce=e.payload},setAccountShard:(t,e)=>{t.shard=e.payload},setLedgerAccount:(t,e)=>{t.ledgerAccount=e.payload},updateLedgerAccount:(t,e)=>{t.ledgerAccount!=null&&(t.ledgerAccount.index=e.payload.index,t.ledgerAccount.address=e.payload.address)},setWalletConnectAccount:(t,e)=>{t.walletConnectAccount=e.payload},setIsAccountLoading:(t,e)=>{t.isAccountLoading=e.payload,t.accountLoadingError=null},setAccountLoadingError:(t,e)=>{t.accountLoadingError=e.payload,t.isAccountLoading=!1},setWebsocketEvent:(t,e)=>{t.websocketEvent={timestamp:Date.now(),message:e.payload}}},extraReducers:t=>{t.addCase(v,()=>(oe.local.removeItem(Q.loginExpiresAt),at)),t.addCase(Ae,(e,r)=>{let{address:n}=r.payload;e.address=n,e.publicKey=new st.Address(n).hex()}),t.addCase(Ar.REHYDRATE,(e,r)=>{var m;if(!((m=r.payload)!=null&&m.account))return;let{account:n}=r.payload,{address:o,shard:i,accounts:a,publicKey:p}=n;e.address=o,e.shard=i;let l=a&&o in a;e.accounts=l?a:at.accounts,e.publicKey=p})}}),{setAccount:Er,setAddress:ba,setAccountNonce:Lr,setAccountShard:Ia,setLedgerAccount:va,updateLedgerAccount:Aa,setWalletConnectAccount:ka,setIsAccountLoading:Ea,setAccountLoadingError:La,setWebsocketEvent:Ra}=kr.actions,Rr=kr.reducer});function ue(){return new Date().setHours(new Date().getHours()+24)}function de(t){oe.local.setItem({key:Q.loginExpiresAt,data:t,expires:t})}var lt=f(()=>{"use strict";s();ve();pe()});var _r,Cr,Nr,Ua,Ga,Va,qa,Ha,za,Mr,Wa,Pr,pt=f(()=>{"use strict";s();_r=require("@reduxjs/toolkit");lt();le();q();Cr={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Nr=(0,_r.createSlice)({name:"loginInfoSlice",initialState:Cr,reducers:{setLoginMethod:(t,e)=>{t.loginMethod=e.payload},setTokenLogin:(t,e)=>{t.tokenLogin=e.payload},setTokenLoginSignature:(t,e)=>{(t==null?void 0:t.tokenLogin)!=null&&(t.tokenLogin.signature=e.payload)},setWalletLogin:(t,e)=>{t.walletLogin=e.payload},setWalletConnectLogin:(t,e)=>{t.walletConnectLogin=e.payload},setLedgerLogin:(t,e)=>{t.ledgerLogin=e.payload},invalidateLoginSession:t=>{t.isLoginSessionInvalid=!0},setLogoutRoute:(t,e)=>{t.logoutRoute=e.payload}},extraReducers:t=>{t.addCase(v,()=>Cr),t.addCase(Ae,(e,r)=>{e.loginMethod=r.payload.loginMethod,de(ue())})}}),{setLoginMethod:Ua,setWalletConnectLogin:Ga,setLedgerLogin:Va,setTokenLogin:qa,setTokenLoginSignature:Ha,setWalletLogin:za,invalidateLoginSession:Mr,setLogoutRoute:Wa}=Nr.actions,Pr=Nr.reducer});var Dr,Fr,Br,Xa,ut,Ja,Qa,Or,dt=f(()=>{"use strict";s();Dr=require("@reduxjs/toolkit");q();Fr={},Br=(0,Dr.createSlice)({name:"modalsSlice",initialState:Fr,reducers:{setTxSubmittedModal:(t,e)=>{t.txSubmittedModal=e.payload},setNotificationModal:(t,e)=>{t.notificationModal=e.payload},clearTxSubmittedModal:t=>{t.txSubmittedModal=void 0},clearNotificationModal:t=>{t.notificationModal=void 0}},extraReducers:t=>{t.addCase(v,()=>Fr)}}),{setTxSubmittedModal:Xa,setNotificationModal:ut,clearTxSubmittedModal:Ja,clearNotificationModal:Qa}=Br.actions,Or=Br.reducer});var Ur=f(()=>{"use strict";s()});var Gr=f(()=>{"use strict";s();Ur()});function gt(t){return t[Math.floor(Math.random()*t.length)]}var Vr=f(()=>{"use strict";s()});var qr=f(()=>{"use strict";s();$e()});var Hr=f(()=>{"use strict";s();Gr();Vr();qr()});var zr,Wr,mt,Go,jr,gs,ms,Kr,ft=f(()=>{"use strict";s();zr=require("@reduxjs/toolkit"),Wr=C(require("lodash.omit"));Hr();mt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Go={network:mt,chainID:"-1"},jr=(0,zr.createSlice)({name:"appConfig",initialState:Go,reducers:{initializeNetworkConfig:(t,e)=>{let r=gt(e.payload.walletConnectBridgeAddresses),n=gt(e.payload.walletConnectV2RelayAddresses),o=(0,Wr.default)(e.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");t.network=A(T(T({},t.network),o),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(t,e)=>{t.chainID=e.payload}}}),{initializeNetworkConfig:gs,setChainID:ms}=jr.actions,Kr=jr.reducer});var Yr,yt,Xr,Ss,ws,bs,Ee,Le=f(()=>{"use strict";s();Yr=require("@reduxjs/toolkit");re();q();yt={isSigning:!1,signedSessions:{}},Xr=(0,Yr.createSlice)({name:"signedMessageInfoSliceState",initialState:yt,reducers:{setSignSession:(t,e)=>{let{sessionId:r,signedSession:n,errorMessage:o}=e.payload;return A(T({},t),{errorMessage:o!=null?o:t.errorMessage,isSigning:n.status==="pending",signedSessions:A(T({},t.signedSessions),{[r]:n})})},setSignSessionState:(t,e)=>T(T({},t),e.payload),clearSignedMessageInfo:()=>yt},extraReducers:t=>{t.addCase(v,()=>yt)}}),{setSignSession:Ss,clearSignedMessageInfo:ws,setSignSessionState:bs}=Xr.actions,Ee=Xr.reducer});var Qr,Zr,Jr,$r,Cs,_s,Ns,Ms,Ps,Fs,Re,Ce=f(()=>{"use strict";s();Qr=require("@reduxjs/toolkit"),Zr=require("redux-persist");et();re();tt();q();Jr={customToasts:[],transactionToasts:[],failTransactionToast:null},$r=(0,Qr.createSlice)({name:"toastsSlice",initialState:Jr,reducers:{addCustomToast:(t,e)=>{t.customToasts.push(A(T({},e.payload),{type:"custom",toastId:e.payload.toastId||`custom-toast-${t.customToasts.length+1}`}))},removeCustomToast:(t,e)=>{t.customToasts=t.customToasts.filter(r=>r.toastId!==e.payload)},addTransactionToast:(t,e)=>{t.transactionToasts.push({type:"transaction",startTimestamp:Ie(),toastId:e.payload||`custom-toast-${t.transactionToasts.length+1}`})},removeTransactionToast:(t,e)=>{t.transactionToasts=t.transactionToasts.filter(r=>r.toastId!==e.payload)},addFailTransactionToast:(t,e)=>{t.failTransactionToast=A(T({},e.payload),{toastId:pr})},removeFailTransactionToast:t=>{t.failTransactionToast=null}},extraReducers:t=>{t.addCase(v,()=>Jr),t.addCase(Zr.REHYDRATE,(e,r)=>{var o,i;let n=(i=(o=r.customToasts)==null?void 0:o.filter(a=>!("component"in a)))!=null?i:[];e.customToasts=n})}}),{addCustomToast:Cs,removeCustomToast:_s,addTransactionToast:Ns,removeTransactionToast:Ms,addFailTransactionToast:Ps,removeFailTransactionToast:Fs}=$r.actions,Re=$r.reducer});var en,Vo,qo,Ho,zo,ht,tn,Us,rn,Gs,_e,Ne=f(()=>{"use strict";s();en=require("@reduxjs/toolkit");q();Vo="Transaction failed",qo="Transaction successful",Ho="Processing transaction",zo="Transaction submitted",ht={},tn=(0,en.createSlice)({name:"transactionsInfo",initialState:ht,reducers:{setTransactionsDisplayInfo(t,e){let{sessionId:r,transactionsDisplayInfo:n}=e.payload;r!=null&&(t[r]={errorMessage:(n==null?void 0:n.errorMessage)||Vo,successMessage:(n==null?void 0:n.successMessage)||qo,processingMessage:(n==null?void 0:n.processingMessage)||Ho,submittedMessage:(n==null?void 0:n.submittedMessage)||zo,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(t,e){e.payload!=null&&delete t[e.payload]},clearTransactionsInfo:()=>ht},extraReducers:t=>{t.addCase(v,()=>ht)}}),{clearTransactionsInfo:Us,setTransactionsDisplayInfo:rn,clearTransactionsInfoForSessionId:Gs}=tn.actions,_e=tn.reducer});function nn(t){return t!=null&&(Jo(t)||Zo(t))}function on(t){return t!=null&&(Qo(t)||$o(t))}function Jo(t){return t!=null&&jo.includes(t)}function Qo(t){return t!=null&&Ko.includes(t)}function Zo(t){return t!=null&&Yo.includes(t)}function $o(t){return t!=null&&Xo.includes(t)}var zs,jo,Ko,Ws,js,Yo,Xo,an=f(()=>{"use strict";s();le();zs=["sent"],jo=["success"],Ko=["fail","cancelled","timedOut"],Ws=["timedOut"],js=["pending"],Yo=["success"],Xo=["fail","invalid"]});var sn,cn,ge,ei,ln,$s,ec,pn,tc,rc,nc,oc,ic,un,ac,Me,Pe=f(()=>{"use strict";s();sn=require("@reduxjs/toolkit"),cn=require("redux-persist");le();an();q();ge={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},ei={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},ln=(0,sn.createSlice)({name:"transactionsSlice",initialState:ge,reducers:{moveTransactionsToSignedState:(t,e)=>{var l,m;let{sessionId:r,transactions:n,errorMessage:o,status:i,redirectRoute:a}=e.payload,p=((l=t.customTransactionInformationForSessionId)==null?void 0:l[r])||ei;t.signedTransactions[r]={transactions:n,status:i,errorMessage:o,redirectRoute:a,customTransactionInformation:p},((m=t==null?void 0:t.transactionsToSign)==null?void 0:m.sessionId)===r&&(t.transactionsToSign=ge.transactionsToSign)},clearSignedTransaction:(t,e)=>{t.signedTransactions[e.payload]&&delete t.signedTransactions[e.payload]},clearTransactionToSign:t=>{t!=null&&t.transactionsToSign&&(t.transactionsToSign=null)},updateSignedTransaction:(t,e)=>{t.signedTransactions=T(T({},t.signedTransactions),e.payload)},updateSignedTransactions:(t,e)=>{let{sessionId:r,status:n,errorMessage:o,transactions:i}=e.payload;t.signedTransactions[r]!=null&&(t.signedTransactions[r].status=n,o!=null&&(t.signedTransactions[r].errorMessage=o),i!=null&&(t.signedTransactions[r].transactions=i))},updateSignedTransactionStatus:(t,e)=>{var p,l,m,h,y,S;let{sessionId:r,status:n,errorMessage:o,transactionHash:i}=e.payload,a=(l=(p=t.signedTransactions)==null?void 0:p[r])==null?void 0:l.transactions;if(a!=null){t.signedTransactions[r].transactions=a.map(R=>R.hash===i?A(T({},R),{status:n,errorMessage:o}):R);let b=(h=(m=t.signedTransactions[r])==null?void 0:m.transactions)==null?void 0:h.every(R=>nn(R.status)),N=(S=(y=t.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:S.every(R=>on(R.status));b&&(t.signedTransactions[r].status="success"),N&&(t.signedTransactions[r].status="fail")}},setTransactionsToSign:(t,e)=>{t.transactionsToSign=e.payload;let{sessionId:r,customTransactionInformation:n}=e.payload;t.customTransactionInformationForSessionId[r]=n,t.signTransactionsError=null},clearAllTransactionsToSign:t=>{t.transactionsToSign=ge.transactionsToSign,t.signTransactionsError=null},clearAllSignedTransactions:t=>{t.signedTransactions=ge.signedTransactions},setSignTransactionsError:(t,e)=>{t.signTransactionsError=e.payload},setSignTransactionsCancelMessage:(t,e)=>{t.signTransactionsCancelMessage=e.payload}},extraReducers:t=>{t.addCase(v,()=>ge),t.addCase(cn.REHYDRATE,(e,r)=>{var a;if(e.signTransactionsCancelMessage=null,!((a=r.payload)!=null&&a.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:o}=r.payload.transactions,i=Object.entries(n).reduce((p,[l,m])=>{let h=new Date(l),y=new Date;return y.setHours(y.getHours()+5),y-h>0||(p[l]=m),p},{});o!=null&&(e.customTransactionInformationForSessionId=o),n!=null&&(e.signedTransactions=i)})}}),{updateSignedTransactionStatus:$s,updateSignedTransactions:ec,setTransactionsToSign:pn,clearAllTransactionsToSign:tc,clearAllSignedTransactions:rc,clearSignedTransaction:nc,clearTransactionToSign:oc,setSignTransactionsError:ic,setSignTransactionsCancelMessage:un,moveTransactionsToSignedState:ac}=ln.actions,Me=ln.reducer});var ie=f(()=>{"use strict";s();ct();pt();dt();ft();Le();Ce();Ne();Pe()});var St=f(()=>{"use strict";s()});var xn,Tn,Sn,Qc,Zc,$c,el,tl,rl,wn,bn=f(()=>{"use strict";s();xn=require("@reduxjs/toolkit");q();Tn={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Sn=(0,xn.createSlice)({name:"dappModalsSlice",initialState:Tn,reducers:{setDappModalVisibility:(t,e)=>{t.visible=e.payload},setDappModalHeaderVisibility:(t,e)=>{t.modal.showHeader=e.payload},setDappModalFooterVisibility:(t,e)=>{t.modal.showFooter=e.payload},setDappModalHeaderText:(t,e)=>{t.modal.headerText=e.payload},setDappModalFooterText:(t,e)=>{t.modal.footerText=e.payload},setDappModalConfig:(t,e)=>{t.modal=T({},e.payload)}},extraReducers:t=>{t.addCase(v,()=>Tn)}}),{setDappModalVisibility:Qc,setDappModalHeaderVisibility:Zc,setDappModalFooterVisibility:$c,setDappModalHeaderText:el,setDappModalFooterText:tl,setDappModalConfig:rl}=Sn.actions,wn=Sn.reducer});var In,ii,ai,ae,Oe=f(()=>{"use strict";s();In=require("@reduxjs/toolkit");St();ct();bn();pt();dt();ft();Le();Ce();Ne();Pe();ii={["account"]:Rr,["dappModal"]:wn,["loginInfo"]:Pr,["modals"]:Or,["networkConfig"]:Kr,["signedMessageInfo"]:Ee,["toasts"]:Re,["transactionsInfo"]:_e,["transactions"]:Me},ai=(t={})=>(0,In.combineReducers)(T(T({},ii),t)),ae=ai});var Ln={};K(Ln,{default:()=>di,getSessionStoragePersistConfig:()=>me,localStoragePersistConfig:()=>kn,sessionStorageReducers:()=>En});function me(t,e=[]){return{key:t,version:1,storage:An.default,blacklist:e}}var W,vn,An,si,ci,li,pi,ui,kn,En,di,Rn=f(()=>{"use strict";s();W=require("redux-persist"),vn=C(require("redux-persist/lib/storage")),An=C(require("redux-persist/lib/storage/session"));Oe();ie();Le();Ce();Ne();Pe();St();si={2:t=>A(T({},t),{networkConfig:mt})};ci=me("sdk-dapp-transactionsInfo"),li=me("sdk-dapp-transactions",["transactionsToSign"]),pi=me("sdk-dapp-toasts"),ui=me("sdk-dapp-signedMessageInfo"),kn={key:"sdk-dapp-store",version:2,storage:vn.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,W.createMigrate)(si,{debug:!1})},En={["toasts"]:(0,W.persistReducer)(pi,Re),["transactions"]:(0,W.persistReducer)(li,Me),["transactionsInfo"]:(0,W.persistReducer)(ci,_e),["signedMessageInfo"]:(0,W.persistReducer)(ui,Ee)},di=(0,W.persistReducer)(kn,ae(En))});var Cn={};K(Cn,{default:()=>gi});var gi,_n=f(()=>{"use strict";s();Oe();gi=ae()});var Nn={};K(Nn,{default:()=>fi});var L,mi,fi,Mn=f(()=>{"use strict";s();L=require("redux-persist"),mi=[L.FLUSH,L.REHYDRATE,L.PAUSE,L.PERSIST,L.PURGE,L.REGISTER],fi=mi});var Dn={};K(Dn,{default:()=>Fn});function Fn(t){return(0,Pn.persistStore)(t)}var Pn,Bn=f(()=>{"use strict";s();Pn=require("redux-persist")});var hi={};K(hi,{signTransactions:()=>yi});module.exports=ce(hi);s();var Xn=C(require("bignumber.js"));V();s();ie();s();var dn=C(require("lodash.isequal")),Fe=require("reselect");re();var x=(0,Fe.createSelectorCreator)(Fe.defaultMemoize,dn.default),gn=(t,e)=>t!=""&&Boolean(e);var H=t=>t.account,ti=x(H,t=>t.address),Tt=x(H,ti,(t,e)=>e in t.accounts?t.accounts[e]:ke),wc=x(H,Tt,(t,e)=>{let o=t,{accounts:r}=o,n=At(o,["accounts"]);return A(T({},n),{account:e})}),mn=x(Tt,t=>t.balance),bc=x(Tt,t=>{var e;return((e=t==null?void 0:t.nonce)==null?void 0:e.valueOf())||0}),Ic=x(H,t=>t.shard),vc=x(H,t=>t.ledgerAccount),Ac=x(H,t=>t.walletConnectAccount),kc=x(H,t=>t.isAccountLoading),Ec=x(H,t=>t.accountLoadingError),Lc=x(H,t=>t.websocketEvent);s();var Z=t=>t.networkConfig,fn=x(Z,t=>t.chainID),_c=x(Z,t=>t.network.walletConnectBridgeAddress),Nc=x(Z,t=>t.network.walletConnectV2RelayAddress),Mc=x(Z,t=>t.network.walletConnectV2ProjectId),Pc=x(Z,t=>t.network.walletConnectV2Options),Fc=x(Z,t=>t.network.walletConnectDeepLink),xt=x(Z,t=>t.network),Dc=x(xt,t=>t.apiAddress),Bc=x(xt,t=>t.explorerAddress),Oc=x(xt,t=>t.egldLabel);ie();s();var wt=require("@reduxjs/toolkit"),Vn=require("react-redux/lib/utils/Subscription");ie();s();var yn=C(require("lodash.throttle"));V();ie();lt();ve();pe();var ri=[be],De=!1,ni=(0,yn.default)(()=>{de(ue())},5e3),hn=t=>e=>r=>{var l;if(ri.includes(r.type))return e(r);let n=t.getState(),o=oe.local.getItem(Q.loginExpiresAt);if(!gn((l=n==null?void 0:n.loginInfo)==null?void 0:l.loginMethod,n==null?void 0:n.account.address))return e(r);if(o==null)return de(ue());let a=Date.now();return o-a<0&&!De?setTimeout(()=>{De=!0,t.dispatch(Mr())},1e3):(De&&(De=!1),ni()),e(r)};s();s();function Be(){return typeof sessionStorage!="undefined"}var On=Be()?(Rn(),ce(Ln)).default:(_n(),ce(Cn)).default,Un=Be()?(Mn(),ce(Nn)).default:[],Gn=Be()?(Bn(),ce(Dn)).default:t=>t;Oe();var z=(0,wt.configureStore)({reducer:On,middleware:t=>t({serializableCheck:{ignoredActions:[...Un,Lr.type,Er.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(hn)}),Rl=(0,Vn.createSubscription)(z),Cl=Gn(z),_l=(0,wt.configureStore)({reducer:ae});re();s();var qn=C(require("bignumber.js"));V();var Ue=t=>{if(isNaN(t)||t==null||String(t).includes("Infinity"))return!1;let[e,r]=t.split(".");if(r)for(;r.charAt(r.length-1)===ne;)r=r.slice(0,-1);let n=r?[e,r].join("."):e,o=new qn.default(n);return o.toString(10)===n&&o.comparedTo(0)>=0};s();var bt=C(require("bignumber.js"));V();s();var _=require("@multiversx/sdk-core"),jn=require("@multiversx/sdk-network-providers");V();s();s();var Hn=C(require("bignumber.js")),zn=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new Hn.default(r),o=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=o};s();V();s();var Wn={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function Kn({minGasLimit:t=String(we),gasLimit:e,gasPrice:r,data:n,gasPerDataByte:o,gasPriceModifier:i,defaultGasPrice:a=String(mr),chainId:p}){let l=n||"",m=zn(e)?e:t,h=Ue(r)?r:a,y=new _.Transaction({nonce:0,value:_.TokenPayment.egldFromAmount("0"),receiver:new _.Address(Wn.to),sender:new _.Address(Wn.to),gasPrice:parseInt(h),gasLimit:parseInt(m),data:new _.TransactionPayload(l.trim()),chainID:p,version:new _.TransactionVersion(1)}),S=new jn.NetworkConfig;S.MinGasLimit=parseInt(t),S.GasPerDataByte=parseInt(o),S.GasPriceModifier=parseFloat(i);try{return y.computeFee(S).toString(10)}catch(b){return ne}}function Yn(t,e){let r=new bt.default(0);return t.forEach(n=>{let o=Kn({gasPerDataByte:String(gr),gasPriceModifier:String(dr),minGasLimit:String(e),gasLimit:n.getGasLimit().valueOf().toString(),gasPrice:n.getGasPrice().valueOf().toString(),data:n.getData().toString(),chainId:n.getChainID().valueOf()});r=r.plus(new bt.default(o))}),r}function yi(i){return Et(this,arguments,function*({transactions:t,callbackRoute:e,minGasLimit:r=we,customTransactionInformation:n,transactionsDisplayInfo:o}){let a=z.getState(),p=Date.now().toString(),l=mn(a),m=fn(a),h=Array.isArray(t)?t:[t],y=Yn(h,r);if(!new Xn.default(Ue(l)?l:"0").minus(y).isGreaterThan(0)){let j={type:"warning",iconClassName:"text-warning",title:"Insufficient EGLD funds",description:"Current EGLD balance cannot cover the transaction fees."};return z.dispatch(ut(j)),{error:"insufficient funds",sessionId:null}}if(!(h==null?void 0:h.every(j=>j.getChainID().valueOf()===m.valueOf()))){let j={type:"warning",iconClassName:"text-warning",title:"Network change detected",description:"The application tried to change the transaction network"};return z.dispatch(ut(j)),{error:"Invalid ChainID",sessionId:null}}let R={sessionId:p,callbackRoute:e,customTransactionInformation:n,transactions:h.map(j=>j.toPlainObject())};return z.dispatch(un(null)),z.dispatch(pn(R)),z.dispatch(rn({sessionId:p,transactionsDisplayInfo:o})),{sessionId:p}})}0&&(module.exports={signTransactions});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *