@multiversx/sdk-dapp 3.0.8 → 3.0.9

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 (693) hide show
  1. package/UI/Denominate/index.js +1 -1
  2. package/UI/ExplorerLink/ExplorerLink.js +1 -1
  3. package/UI/ExplorerLink/index.js +1 -1
  4. package/UI/FormatAmount/FormatAmount.js +1 -1
  5. package/UI/FormatAmount/index.js +1 -1
  6. package/UI/NotificationModal/NotificationModal.js +1 -1
  7. package/UI/NotificationModal/index.js +1 -1
  8. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  9. package/UI/SignTransactionsModals/SignWithCrossWindowWalletModal/SignWithCrossWindowWalletModal.js +1 -1
  10. package/UI/SignTransactionsModals/SignWithCrossWindowWalletModal/index.js +1 -1
  11. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  12. package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
  13. package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
  14. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/ConfirmAmount.js +1 -1
  15. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountData/ConfirmAmountData.js +1 -1
  16. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountData/index.js +1 -1
  17. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountNftSft/ConfirmAmountNftSft.js +1 -1
  18. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountNftSft/index.js +1 -1
  19. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/index.js +1 -1
  20. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/index.js +1 -1
  21. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/ConfirmFee.js +1 -1
  22. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/index.js +1 -1
  23. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/ConfirmReceiver.js +1 -1
  24. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/index.js +1 -1
  25. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/index.js +1 -1
  26. package/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +1 -1
  27. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  28. package/UI/SignTransactionsModals/SignWithExtensionModal/SignWithExtensionModal.js +1 -1
  29. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  30. package/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
  31. package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  32. package/UI/SignTransactionsModals/SignWithIframeModal/SignWithIframeModal.js +1 -1
  33. package/UI/SignTransactionsModals/SignWithIframeModal/index.js +1 -1
  34. package/UI/SignTransactionsModals/SignWithLedgerModal/LedgerGuardianSigningModalError.js +1 -1
  35. package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
  36. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  37. package/UI/SignTransactionsModals/SignWithMetamaskModal/SignWithMetamaskModal.js +1 -1
  38. package/UI/SignTransactionsModals/SignWithMetamaskModal/index.js +1 -1
  39. package/UI/SignTransactionsModals/SignWithPasskeyModal/SignWithPasskeyModal.js +1 -1
  40. package/UI/SignTransactionsModals/SignWithPasskeyModal/index.js +1 -1
  41. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  42. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  43. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  44. package/UI/SignTransactionsModals/components/index.js +1 -1
  45. package/UI/SignTransactionsModals/index.js +1 -1
  46. package/UI/TokenDetails/index.js +1 -1
  47. package/UI/TransactionDetails/TransactionDetails.js +1 -1
  48. package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  49. package/UI/TransactionDetails/components/index.js +1 -1
  50. package/UI/TransactionDetails/index.js +1 -1
  51. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  52. package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
  53. package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
  54. package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
  55. package/UI/TransactionInfo/components/EventsList/index.js +1 -1
  56. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  57. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  58. package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
  59. package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  60. package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  61. package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
  62. package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  63. package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
  64. package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
  65. package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
  66. package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
  67. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
  68. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
  69. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
  70. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
  71. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
  72. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
  73. package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
  74. package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
  75. package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
  76. package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
  77. package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
  78. package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
  79. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
  80. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
  81. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
  82. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
  83. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
  84. package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
  85. package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
  86. package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
  87. package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
  88. package/UI/TransactionInfo/components/index.js +1 -1
  89. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
  90. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
  91. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
  92. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
  93. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
  94. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +1 -1
  95. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
  96. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
  97. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
  98. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
  99. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  100. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  101. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
  102. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/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/AccountName.js +1 -1
  113. package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
  114. package/UI/TransactionsTable/components/TransactionHash.js +1 -1
  115. package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
  116. package/UI/TransactionsTable/components/TransactionRow.js +1 -1
  117. package/UI/TransactionsTable/components/TransactionSender.js +1 -1
  118. package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
  119. package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
  120. package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
  121. package/UI/TransactionsTable/components/index.js +1 -1
  122. package/UI/TransactionsTable/index.js +1 -1
  123. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  124. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  125. package/UI/TransactionsToastList/components/CustomToast/components/CustomComponentToast.js +1 -1
  126. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  127. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  128. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  129. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  130. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  131. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  132. package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  133. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  134. package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  135. package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  136. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  137. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  138. package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
  139. package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
  140. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  141. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  142. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  143. package/UI/TransactionsToastList/components/index.js +1 -1
  144. package/UI/TransactionsToastList/index.js +1 -1
  145. package/UI/Trim/Trim.js +1 -1
  146. package/UI/Trim/index.js +1 -1
  147. package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
  148. package/UI/extension/ExtensionLoginButton/index.js +1 -1
  149. package/UI/iframe/IframeLoginButton/IframeButton.js +1 -1
  150. package/UI/iframe/IframeLoginButton/index.js +1 -1
  151. package/UI/index.js +1 -1
  152. package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
  153. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  154. package/UI/ledger/LedgerLoginContainer/AddressRow/AddressRow.js +1 -1
  155. package/UI/ledger/LedgerLoginContainer/AddressRow/index.js +1 -1
  156. package/UI/ledger/LedgerLoginContainer/AddressTable/AddressTable.js +1 -1
  157. package/UI/ledger/LedgerLoginContainer/AddressTable/index.js +1 -1
  158. package/UI/ledger/LedgerLoginContainer/ConfirmAddress/ConfirmAddress.js +1 -1
  159. package/UI/ledger/LedgerLoginContainer/ConfirmAddress/index.js +1 -1
  160. package/UI/ledger/LedgerLoginContainer/LedgerLoginContainer.js +1 -1
  161. package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/LedgerLoginContent.js +1 -1
  162. package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/index.js +1 -1
  163. package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/LedgerLoginContentBody.js +1 -1
  164. package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/index.js +1 -1
  165. package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/LedgerScamPhishingAlert.js +1 -1
  166. package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/index.js +1 -1
  167. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  168. package/UI/ledger/index.js +1 -1
  169. package/UI/metamask/MetamaskLoginButton/MetamaskLoginButton.js +1 -1
  170. package/UI/metamask/MetamaskLoginButton/index.js +1 -1
  171. package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
  172. package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  173. package/UI/pages/UnlockPage/index.js +1 -1
  174. package/UI/pages/index.js +1 -1
  175. package/UI/passkey/PasskeyLoginButton/PasskeyLoginButton.js +1 -1
  176. package/UI/passkey/PasskeyLoginButton/index.js +1 -1
  177. package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
  178. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  179. package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContainer.js +1 -1
  180. package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/WalletConnectLoginContent.js +1 -1
  181. package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/index.js +1 -1
  182. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  183. package/UI/walletConnect/index.js +1 -1
  184. package/UI/webWallet/CrossWindowLoginButton/CrossWindowLoginButton.js +1 -1
  185. package/UI/webWallet/CrossWindowLoginButton/index.js +1 -1
  186. package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
  187. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  188. package/UI/webWallet/XaliasCrossWindowLoginButton/XaliasCrossWindowLoginButton.js +1 -1
  189. package/UI/webWallet/XaliasCrossWindowLoginButton/index.js +1 -1
  190. package/UI/webWallet/XaliasLoginButton/XaliasLoginButton.js +1 -1
  191. package/UI/webWallet/XaliasLoginButton/index.js +1 -1
  192. package/__chunks__/{chunk-5CJ6IE6Q.js → chunk-225HZJHK.js} +2 -2
  193. package/__chunks__/{chunk-QN3D3GQS.js → chunk-23GIXZDM.js} +2 -2
  194. package/__chunks__/{chunk-WLNBW7GC.js → chunk-247E64B6.js} +2 -2
  195. package/__chunks__/{chunk-F7WNT3RS.js → chunk-27KPEBU5.js} +2 -2
  196. package/__chunks__/{chunk-7ZE6G4RG.js → chunk-2BOCDKMS.js} +2 -2
  197. package/__chunks__/{chunk-IEHHSCCD.js → chunk-2WGFX2YG.js} +2 -2
  198. package/__chunks__/{chunk-KEEFSA4L.js → chunk-33RJ27OR.js} +2 -2
  199. package/__chunks__/{chunk-JUGZK4UG.js → chunk-3CEMTV5A.js} +2 -2
  200. package/__chunks__/{chunk-VFCWKUUR.js → chunk-3CJO6BQE.js} +2 -2
  201. package/__chunks__/{chunk-VQHUKSVO.js → chunk-3GCZ3DDR.js} +2 -2
  202. package/__chunks__/{chunk-5BV66L7J.js → chunk-3GKM54AA.js} +2 -2
  203. package/__chunks__/{chunk-ESYOBNTO.js → chunk-3HD6BPBN.js} +2 -2
  204. package/__chunks__/{chunk-AHUGKKN7.js → chunk-3OALONT3.js} +2 -2
  205. package/__chunks__/{chunk-FEBSZPER.js → chunk-3UXPJGHM.js} +2 -2
  206. package/__chunks__/{chunk-SBYBVYBD.js → chunk-46UUCRAK.js} +2 -2
  207. package/__chunks__/{chunk-66P35NAF.js → chunk-47FS6457.js} +2 -2
  208. package/__chunks__/{chunk-PKKGGTAI.js → chunk-4CFPZSH7.js} +2 -2
  209. package/__chunks__/{chunk-UVDDOTIH.js → chunk-4KLRSPDJ.js} +2 -2
  210. package/__chunks__/{chunk-MNR7BR6R.js → chunk-4KLTQXVQ.js} +2 -2
  211. package/__chunks__/{chunk-3FIFSPCB.js → chunk-4M3UXUMD.js} +2 -2
  212. package/__chunks__/chunk-4NJ44PQS.js +2 -0
  213. package/__chunks__/{chunk-64RLOSLW.js → chunk-4PZ7DR3R.js} +2 -2
  214. package/__chunks__/{chunk-MVGCNTWJ.js → chunk-4SXMDIY3.js} +2 -2
  215. package/__chunks__/{chunk-VLIJ2TRJ.js → chunk-4TEM3SAR.js} +2 -2
  216. package/__chunks__/{chunk-S4HTQRUW.js → chunk-56AW2P53.js} +2 -2
  217. package/__chunks__/{chunk-BKIYYQFE.js → chunk-57E724VK.js} +2 -2
  218. package/__chunks__/{chunk-2HKCX4E4.js → chunk-57EE7KUS.js} +2 -2
  219. package/__chunks__/{chunk-BPXA5G25.js → chunk-5HQVLXRD.js} +2 -2
  220. package/__chunks__/{chunk-64JHXL5T.js → chunk-5PRPNZZ4.js} +2 -2
  221. package/__chunks__/{chunk-JYSD7PPL.js → chunk-5YZTCZ7U.js} +2 -2
  222. package/__chunks__/{chunk-UZATURBL.js → chunk-64OH5BKZ.js} +2 -2
  223. package/__chunks__/chunk-6A2FXTJ6.js +2 -0
  224. package/__chunks__/{chunk-TKZZJSHH.js → chunk-6EQAZCUP.js} +2 -2
  225. package/__chunks__/{chunk-L5PBEB4Q.js → chunk-6EXTINYR.js} +2 -2
  226. package/__chunks__/{chunk-GMNTAWQ6.js → chunk-6GTA6ZJX.js} +2 -2
  227. package/__chunks__/{chunk-65UH33U2.js → chunk-6HVXPEPM.js} +2 -2
  228. package/__chunks__/{chunk-C6VLXRBT.js → chunk-6K4TQULN.js} +2 -2
  229. package/__chunks__/{chunk-GBSNP5MY.js → chunk-6NLXK6WB.js} +2 -2
  230. package/__chunks__/{chunk-CM24JBH3.js → chunk-6OQ2774H.js} +2 -2
  231. package/__chunks__/{chunk-N6J3YLFQ.js → chunk-6P46Z6ZB.js} +2 -2
  232. package/__chunks__/{chunk-JOW5A7HG.js → chunk-6SBXON4Y.js} +2 -2
  233. package/__chunks__/{chunk-H4UL5VM2.js → chunk-6SIY2FSK.js} +2 -2
  234. package/__chunks__/{chunk-MT5JU7LW.js → chunk-6THCGINT.js} +2 -2
  235. package/__chunks__/{chunk-GUY56WBE.js → chunk-6THV6TWM.js} +2 -2
  236. package/__chunks__/{chunk-A2DDVNLJ.js → chunk-6WFH47AK.js} +2 -2
  237. package/__chunks__/{chunk-45SWSAUE.js → chunk-74IE7QYF.js} +2 -2
  238. package/__chunks__/chunk-75EF4RJF.js +2 -0
  239. package/__chunks__/{chunk-JWXMSTVS.js → chunk-77MAKGXE.js} +2 -2
  240. package/__chunks__/{chunk-PLL5UUB5.js → chunk-7AH4YEC4.js} +2 -2
  241. package/__chunks__/{chunk-ZD2KYQAN.js → chunk-7ATIJ7BO.js} +2 -2
  242. package/__chunks__/{chunk-Q5MQM367.js → chunk-7INYUQUS.js} +2 -2
  243. package/__chunks__/{chunk-XYUOOZQU.js → chunk-ACF73YAY.js} +2 -2
  244. package/__chunks__/{chunk-XCDUW5WS.js → chunk-ADDDI2KY.js} +2 -2
  245. package/__chunks__/{chunk-66WHZSIV.js → chunk-AKBRBV2J.js} +2 -2
  246. package/__chunks__/{chunk-53YU3BAT.js → chunk-ALDH6L7G.js} +2 -2
  247. package/__chunks__/{chunk-27GUGOD4.js → chunk-AOJZHLIG.js} +2 -2
  248. package/__chunks__/chunk-AWLT5JR4.js +2 -0
  249. package/__chunks__/{chunk-FVY7CG4H.js → chunk-AWONX7EX.js} +2 -2
  250. package/__chunks__/{chunk-HNUK6KFU.js → chunk-AWQFSEKZ.js} +2 -2
  251. package/__chunks__/{chunk-6OK4EHFI.js → chunk-BK4IXYBN.js} +2 -2
  252. package/__chunks__/{chunk-L3VKVL4I.js → chunk-BRRMIYK3.js} +2 -2
  253. package/__chunks__/chunk-BTC74X6A.js +2 -0
  254. package/__chunks__/{chunk-QC2HPPLX.js → chunk-BVF3WCOD.js} +2 -2
  255. package/__chunks__/{chunk-AENWOGAH.js → chunk-BXS2LYMG.js} +2 -2
  256. package/__chunks__/{chunk-ROJFLE67.js → chunk-C3OTURNQ.js} +2 -2
  257. package/__chunks__/{chunk-RLZ6N4SV.js → chunk-C4AUYJBL.js} +2 -2
  258. package/__chunks__/{chunk-5EBDAYJD.js → chunk-C4HWWK7J.js} +2 -2
  259. package/__chunks__/{chunk-JGA5P4GC.js → chunk-C4XRJTVN.js} +2 -2
  260. package/__chunks__/{chunk-A3E7GC2G.js → chunk-C6W47ZJ3.js} +2 -2
  261. package/__chunks__/{chunk-6L5SKVQK.js → chunk-CGGSOSPR.js} +2 -2
  262. package/__chunks__/{chunk-RO5TXP7P.js → chunk-CZSYZOZR.js} +2 -2
  263. package/__chunks__/{chunk-S4DFSLI6.js → chunk-D6FT5QAB.js} +2 -2
  264. package/__chunks__/{chunk-NRHB4QXB.js → chunk-D7TTVRDY.js} +2 -2
  265. package/__chunks__/{chunk-T5TVOQQK.js → chunk-DA5MA5LA.js} +2 -2
  266. package/__chunks__/{chunk-I3M642DJ.js → chunk-DNT4GJBC.js} +2 -2
  267. package/__chunks__/{chunk-OD2IB4HA.js → chunk-DRT35UHI.js} +2 -2
  268. package/__chunks__/{chunk-VT5VFUYQ.js → chunk-DVBXD7ZT.js} +2 -2
  269. package/__chunks__/{chunk-K7O3X435.js → chunk-DZUCT7UU.js} +2 -2
  270. package/__chunks__/{chunk-AGQVM4FD.js → chunk-DZUFYVRG.js} +2 -2
  271. package/__chunks__/chunk-E6NEVU4H.js +2 -0
  272. package/__chunks__/{chunk-K2ENH5CC.js → chunk-EAL2B6Z5.js} +2 -2
  273. package/__chunks__/{chunk-UMZU7PNQ.js → chunk-EDHTEWA4.js} +2 -2
  274. package/__chunks__/{chunk-4R5B2ACM.js → chunk-EDYDB4VL.js} +2 -2
  275. package/__chunks__/{chunk-PZUHIRYT.js → chunk-EHCHQYP3.js} +2 -2
  276. package/__chunks__/{chunk-QHJF2GXX.js → chunk-EJR6PMSV.js} +2 -2
  277. package/__chunks__/{chunk-TBUGU7KD.js → chunk-ELKWJNVZ.js} +2 -2
  278. package/__chunks__/{chunk-DS3QHY66.js → chunk-EM36ETJZ.js} +2 -2
  279. package/__chunks__/{chunk-EC52PVHU.js → chunk-ENPP26UH.js} +2 -2
  280. package/__chunks__/{chunk-K7RKVYUE.js → chunk-EXS7AWLY.js} +2 -2
  281. package/__chunks__/{chunk-YLDOCJTL.js → chunk-F3K3FFLX.js} +2 -2
  282. package/__chunks__/{chunk-P42KOY3I.js → chunk-FDHNQRZY.js} +2 -2
  283. package/__chunks__/{chunk-5LI5EKWO.js → chunk-FDX5CSGR.js} +2 -2
  284. package/__chunks__/{chunk-5M32WPEK.js → chunk-FKZSAFDZ.js} +2 -2
  285. package/__chunks__/{chunk-DEZ677TH.js → chunk-FQYM66YE.js} +2 -2
  286. package/__chunks__/{chunk-VSP6KZBZ.js → chunk-FRCPKCQN.js} +2 -2
  287. package/__chunks__/{chunk-YIGPXZOS.js → chunk-FVA3WK6H.js} +2 -2
  288. package/__chunks__/{chunk-CXKYGJ6G.js → chunk-FZWYC4XS.js} +2 -2
  289. package/__chunks__/{chunk-LYVBDS4I.js → chunk-G73YCAR2.js} +2 -2
  290. package/__chunks__/{chunk-NMIEKBQ6.js → chunk-GF66TDND.js} +2 -2
  291. package/__chunks__/{chunk-2JM2LE62.js → chunk-GPNMUAAE.js} +2 -2
  292. package/__chunks__/{chunk-H6XXB53Q.js → chunk-GUYVOS2S.js} +2 -2
  293. package/__chunks__/{chunk-MF6HTRY4.js → chunk-GUZSCCRV.js} +2 -2
  294. package/__chunks__/{chunk-LWC22WIO.js → chunk-GWWEV6XV.js} +2 -2
  295. package/__chunks__/{chunk-OE2NVTCK.js → chunk-H4LHU5FD.js} +2 -2
  296. package/__chunks__/chunk-H4VHLR3D.js +2 -0
  297. package/__chunks__/chunk-HDENMR4K.js +2 -0
  298. package/__chunks__/{chunk-PH6HZ32O.js → chunk-HEVE5QYR.js} +2 -2
  299. package/__chunks__/{chunk-X5O4DB6N.js → chunk-HFBYVS3E.js} +2 -2
  300. package/__chunks__/{chunk-6JPKZETV.js → chunk-HP7FEG5U.js} +2 -2
  301. package/__chunks__/{chunk-XSETAQBP.js → chunk-HQ657SMK.js} +2 -2
  302. package/__chunks__/{chunk-ZE3FWJJW.js → chunk-I7NVQY44.js} +2 -2
  303. package/__chunks__/{chunk-4GGM6VAU.js → chunk-IH5SD2EX.js} +2 -2
  304. package/__chunks__/{chunk-JTGMDBI5.js → chunk-IJZV3RCX.js} +2 -2
  305. package/__chunks__/chunk-IZB5C57D.js +2 -0
  306. package/__chunks__/{chunk-LOU4CXBZ.js → chunk-JB5N5JVZ.js} +2 -2
  307. package/__chunks__/{chunk-G6F2NJHA.js → chunk-JSWGJECL.js} +2 -2
  308. package/__chunks__/{chunk-N3I6AXOX.js → chunk-JVYIDZYD.js} +2 -2
  309. package/__chunks__/{chunk-SNKKJ32N.js → chunk-K34HFGFF.js} +2 -2
  310. package/__chunks__/{chunk-7FFQWNPR.js → chunk-K4UURHSU.js} +2 -2
  311. package/__chunks__/{chunk-65BHVY6E.js → chunk-K75G7FCW.js} +2 -2
  312. package/__chunks__/chunk-K77PFT7S.js +2 -0
  313. package/__chunks__/{chunk-EVWLV66U.js → chunk-KKHAYCFC.js} +2 -2
  314. package/__chunks__/{chunk-SMCPAHAC.js → chunk-KPZLUJQI.js} +2 -2
  315. package/__chunks__/chunk-KRNIB7YY.js +2 -0
  316. package/__chunks__/{chunk-IHDJIE5W.js → chunk-KSFMQOGZ.js} +2 -2
  317. package/__chunks__/{chunk-OISRU7QJ.js → chunk-KXD3U6U2.js} +2 -2
  318. package/__chunks__/{chunk-GGLF5YZA.js → chunk-LD4YC4CO.js} +2 -2
  319. package/__chunks__/{chunk-BRBIDM2V.js → chunk-LDMAZ7N7.js} +2 -2
  320. package/__chunks__/{chunk-6IINBL6M.js → chunk-LDSLZ437.js} +2 -2
  321. package/__chunks__/{chunk-SYR3DF6E.js → chunk-LM43CRRU.js} +2 -2
  322. package/__chunks__/{chunk-R4Y3SFQM.js → chunk-LOPBEE6K.js} +2 -2
  323. package/__chunks__/{chunk-FR5XNYF6.js → chunk-LQ3S4QZF.js} +2 -2
  324. package/__chunks__/{chunk-TGMJYMNN.js → chunk-LR3J7SP5.js} +2 -2
  325. package/__chunks__/{chunk-5TOUGRCQ.js → chunk-LRORAKWE.js} +2 -2
  326. package/__chunks__/{chunk-JNHPXJ3I.js → chunk-LRYMIOMS.js} +2 -2
  327. package/__chunks__/{chunk-O53VBSOA.js → chunk-M6HCFZXI.js} +2 -2
  328. package/__chunks__/{chunk-P2N4FLKV.js → chunk-MAARHG3A.js} +2 -2
  329. package/__chunks__/{chunk-DDR6TPIC.js → chunk-MEVWY6SS.js} +2 -2
  330. package/__chunks__/{chunk-3GEMFEOC.js → chunk-MHWMPXUJ.js} +2 -2
  331. package/__chunks__/{chunk-7Z4MYVC2.js → chunk-MWK5RUHM.js} +2 -2
  332. package/__chunks__/{chunk-AJD3JPIV.js → chunk-NFY7ADGP.js} +2 -2
  333. package/__chunks__/{chunk-XYKKDSV5.js → chunk-NM2SCWP5.js} +2 -2
  334. package/__chunks__/{chunk-V6JRSOQZ.js → chunk-NRELYNNK.js} +2 -2
  335. package/__chunks__/{chunk-6ZVI6ORO.js → chunk-NVGVLV65.js} +2 -2
  336. package/__chunks__/{chunk-TAI6SRWE.js → chunk-NXDQ6KYN.js} +2 -2
  337. package/__chunks__/{chunk-R7F7BKCD.js → chunk-OKMY5Q66.js} +2 -2
  338. package/__chunks__/{chunk-TE3SSOA6.js → chunk-OO73FTJV.js} +2 -2
  339. package/__chunks__/chunk-OQMXZJND.js +2 -0
  340. package/__chunks__/{chunk-MV5UBGXZ.js → chunk-OVWX2NU2.js} +2 -2
  341. package/__chunks__/{chunk-N3HAV3VE.js → chunk-OWXHUSOF.js} +2 -2
  342. package/__chunks__/{chunk-NDSCP5TN.js → chunk-OYLZTIRZ.js} +2 -2
  343. package/__chunks__/{chunk-2MSLELFS.js → chunk-P527XIG5.js} +2 -2
  344. package/__chunks__/{chunk-BHUA4FT4.js → chunk-P6LFMXFA.js} +2 -2
  345. package/__chunks__/{chunk-466OKEV3.js → chunk-PD4X2AO3.js} +2 -2
  346. package/__chunks__/{chunk-KIMNA75F.js → chunk-PNQZTDEI.js} +2 -2
  347. package/__chunks__/{chunk-JCVGZY7D.js → chunk-PS5XYMPB.js} +2 -2
  348. package/__chunks__/{chunk-5WMCBKZZ.js → chunk-QGHK5PBO.js} +2 -2
  349. package/__chunks__/{chunk-3KC6LN64.js → chunk-QM2IBXWL.js} +2 -2
  350. package/__chunks__/{chunk-73XW2ASH.js → chunk-QMQUARUV.js} +2 -2
  351. package/__chunks__/{chunk-47ZI2UXK.js → chunk-QSNMG75I.js} +2 -2
  352. package/__chunks__/{chunk-E5A6KGY5.js → chunk-QZFYWDLG.js} +2 -2
  353. package/__chunks__/{chunk-HQJHP7XK.js → chunk-QZMVVNX6.js} +2 -2
  354. package/__chunks__/{chunk-WHQZH4KE.js → chunk-R4GI364F.js} +2 -2
  355. package/__chunks__/{chunk-A3EQG74O.js → chunk-RNQOM633.js} +2 -2
  356. package/__chunks__/{chunk-ZRRYO4SF.js → chunk-RQXK2UUC.js} +2 -2
  357. package/__chunks__/{chunk-2BTSFNGF.js → chunk-RYSEZLWQ.js} +2 -2
  358. package/__chunks__/{chunk-CMD4JYWQ.js → chunk-S7QRSAAK.js} +2 -2
  359. package/__chunks__/{chunk-UPBGY57R.js → chunk-SB3WULZC.js} +2 -2
  360. package/__chunks__/chunk-SCFQBZOQ.js +2 -0
  361. package/__chunks__/{chunk-YQFM5WKZ.js → chunk-SFGUWNGT.js} +2 -2
  362. package/__chunks__/chunk-SH27NUQK.js +2 -0
  363. package/__chunks__/chunk-SQ3KFXJR.js +2 -0
  364. package/__chunks__/{chunk-X3A2KFCE.js → chunk-SU7BJ7KW.js} +2 -2
  365. package/__chunks__/{chunk-NTJATHF4.js → chunk-T2DG52NK.js} +2 -2
  366. package/__chunks__/{chunk-ORMA5FAH.js → chunk-TBR3QO44.js} +2 -2
  367. package/__chunks__/{chunk-WC4TFYWZ.js → chunk-TJUOZZLD.js} +2 -2
  368. package/__chunks__/chunk-TQUFLT64.js +2 -0
  369. package/__chunks__/{chunk-REHUVSMC.js → chunk-TSYM3LTJ.js} +2 -2
  370. package/__chunks__/chunk-TZYWTGXU.js +2 -0
  371. package/__chunks__/{chunk-V74OLYKL.js → chunk-U52KAO3Z.js} +2 -2
  372. package/__chunks__/{chunk-XGZLLTIY.js → chunk-U6JJEFXV.js} +2 -2
  373. package/__chunks__/{chunk-FPQKDU75.js → chunk-U6O3EYN5.js} +2 -2
  374. package/__chunks__/{chunk-EWGRZ6AL.js → chunk-U7UNVEF3.js} +2 -2
  375. package/__chunks__/{chunk-ICTCXNBG.js → chunk-UCZGQK7Z.js} +2 -2
  376. package/__chunks__/{chunk-PDWO73EF.js → chunk-UHHNTEFX.js} +2 -2
  377. package/__chunks__/{chunk-FPRYPPOV.js → chunk-UMNZ3PQN.js} +2 -2
  378. package/__chunks__/{chunk-457KZLV7.js → chunk-V5SLNK4K.js} +2 -2
  379. package/__chunks__/{chunk-LQMTOST2.js → chunk-VJ2NX7YF.js} +2 -2
  380. package/__chunks__/{chunk-2QGCLEW2.js → chunk-VTHS5CNB.js} +2 -2
  381. package/__chunks__/{chunk-LSY3KAPG.js → chunk-VYRIYHGH.js} +2 -2
  382. package/__chunks__/chunk-W6DTMK7U.js +2 -0
  383. package/__chunks__/{chunk-FM4B5FKA.js → chunk-W7HECLWX.js} +2 -2
  384. package/__chunks__/{chunk-NHQUCADO.js → chunk-WB6D6UQT.js} +2 -2
  385. package/__chunks__/{chunk-AKQCAN2F.js → chunk-WGAZHXAY.js} +2 -2
  386. package/__chunks__/{chunk-EV5TBEKU.js → chunk-WLRNXKBJ.js} +2 -2
  387. package/__chunks__/{chunk-DAVKQ5QI.js → chunk-WWN34WAT.js} +2 -2
  388. package/__chunks__/{chunk-GLW2NSPS.js → chunk-WZG62UEQ.js} +2 -2
  389. package/__chunks__/{chunk-FGQUPQZX.js → chunk-XEPO7N6W.js} +2 -2
  390. package/__chunks__/chunk-XGJWVXIC.js +2 -0
  391. package/__chunks__/{chunk-AEDISANL.js → chunk-XGUJ5GAK.js} +2 -2
  392. package/__chunks__/{chunk-JGBONDTL.js → chunk-XSLKH7XR.js} +2 -2
  393. package/__chunks__/{chunk-2CZMQXOK.js → chunk-Y73LTVJE.js} +2 -2
  394. package/__chunks__/{chunk-DYPVZ2X6.js → chunk-YHRWVNXL.js} +2 -2
  395. package/__chunks__/{chunk-GKDDBS3L.js → chunk-YJT45VLT.js} +2 -2
  396. package/__chunks__/{chunk-GK766ECN.js → chunk-YNLASJ6J.js} +2 -2
  397. package/__chunks__/{chunk-3SGNNWNA.js → chunk-YV7XPQSW.js} +2 -2
  398. package/__chunks__/{chunk-SPU5IPR2.js → chunk-Z3BUMU55.js} +2 -2
  399. package/__chunks__/{chunk-YKKWQPK7.js → chunk-Z4EESLJX.js} +2 -2
  400. package/__chunks__/{chunk-MME3YSQ5.js → chunk-Z5NC5XWQ.js} +2 -2
  401. package/__chunks__/{chunk-3BOKX5OU.js → chunk-Z5PHCQER.js} +2 -2
  402. package/__chunks__/{chunk-AKU5UPWD.js → chunk-ZEGLMBUA.js} +2 -2
  403. package/__chunks__/chunk-ZF2GEQJ4.js +2 -0
  404. package/__chunks__/{chunk-LAX4EXZI.js → chunk-ZIUHA5IG.js} +2 -2
  405. package/__chunks__/{chunk-WQ44QEUF.js → chunk-ZKSSHMG7.js} +2 -2
  406. package/__chunks__/{chunk-YHV2CNUL.js → chunk-ZOQFIKVE.js} +2 -2
  407. package/__chunks__/{chunk-SWYD4GAQ.js → chunk-ZSGJQVNX.js} +2 -2
  408. package/__chunks__/{chunk-2BQWRHQL.js → chunk-ZVP7VNXC.js} +2 -2
  409. package/__chunks__/{chunk-H5HDVO4D.js → chunk-ZXHHGEWE.js} +2 -2
  410. package/__chunks__/{chunk-UDZF7S4P.js → chunk-ZY5G6SKL.js} +2 -2
  411. package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  412. package/__commonjs/UI/SignTransactionsModals/SignWithCrossWindowWalletModal/SignWithCrossWindowWalletModal.js +5 -5
  413. package/__commonjs/UI/SignTransactionsModals/SignWithCrossWindowWalletModal/index.js +5 -5
  414. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
  415. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  416. package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
  417. package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  418. package/__commonjs/UI/SignTransactionsModals/SignWithIframeModal/SignWithIframeModal.js +5 -5
  419. package/__commonjs/UI/SignTransactionsModals/SignWithIframeModal/index.js +5 -5
  420. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
  421. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  422. package/__commonjs/UI/SignTransactionsModals/SignWithMetamaskModal/SignWithMetamaskModal.js +1 -1
  423. package/__commonjs/UI/SignTransactionsModals/SignWithMetamaskModal/index.js +1 -1
  424. package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  425. package/__commonjs/UI/SignTransactionsModals/components/index.js +1 -1
  426. package/__commonjs/UI/SignTransactionsModals/index.js +1 -1
  427. package/__commonjs/UI/TransactionInfo/TransactionInfo.js +40 -40
  428. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +36 -36
  429. package/__commonjs/UI/TransactionInfo/index.js +41 -41
  430. package/__commonjs/UI/TransactionsTable/components/TransactionReceiver.js +4 -4
  431. package/__commonjs/UI/TransactionsTable/components/TransactionSender.js +5 -5
  432. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +5 -5
  433. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +4 -4
  434. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +5 -5
  435. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/components/index.js +6 -6
  436. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +4 -4
  437. package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +4 -4
  438. package/__commonjs/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
  439. package/__commonjs/UI/extension/ExtensionLoginButton/index.js +1 -1
  440. package/__commonjs/UI/iframe/IframeLoginButton/IframeButton.js +3 -3
  441. package/__commonjs/UI/iframe/IframeLoginButton/index.js +3 -3
  442. package/__commonjs/UI/index.js +2 -2
  443. package/__commonjs/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
  444. package/__commonjs/UI/ledger/LedgerLoginButton/index.js +1 -1
  445. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoginContainer.js +1 -1
  446. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoginContent/LedgerLoginContent.js +1 -1
  447. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoginContent/index.js +1 -1
  448. package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +1 -1
  449. package/__commonjs/UI/ledger/index.js +1 -1
  450. package/__commonjs/UI/metamask/MetamaskLoginButton/MetamaskLoginButton.js +1 -1
  451. package/__commonjs/UI/metamask/MetamaskLoginButton/index.js +1 -1
  452. package/__commonjs/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
  453. package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  454. package/__commonjs/UI/pages/UnlockPage/index.js +1 -1
  455. package/__commonjs/UI/pages/index.js +1 -1
  456. package/__commonjs/UI/passkey/PasskeyLoginButton/PasskeyLoginButton.js +1 -1
  457. package/__commonjs/UI/passkey/PasskeyLoginButton/index.js +1 -1
  458. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +7 -7
  459. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +3 -3
  460. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContainer.js +6 -6
  461. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/WalletConnectLoginContent.js +5 -5
  462. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/index.js +5 -5
  463. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  464. package/__commonjs/UI/walletConnect/index.js +4 -4
  465. package/__commonjs/UI/webWallet/CrossWindowLoginButton/CrossWindowLoginButton.js +2 -2
  466. package/__commonjs/UI/webWallet/CrossWindowLoginButton/index.js +2 -2
  467. package/__commonjs/UI/webWallet/XaliasCrossWindowLoginButton/XaliasCrossWindowLoginButton.js +2 -2
  468. package/__commonjs/UI/webWallet/XaliasCrossWindowLoginButton/index.js +2 -2
  469. package/__commonjs/__mocks__/index.js +3 -3
  470. package/__commonjs/__mocks__/utils/index.js +1 -1
  471. package/__commonjs/__mocks__/utils/renderWithProvider.js +2 -2
  472. package/__commonjs/components/ProviderInitializer/ProviderInitializer.js +1 -1
  473. package/__commonjs/components/ProviderInitializer/index.js +1 -1
  474. package/__commonjs/hooks/index.js +1 -1
  475. package/__commonjs/hooks/login/helpers/clearInitiatedLogins.d.ts +1 -1
  476. package/__commonjs/hooks/login/helpers/clearInitiatedLogins.js +1 -1
  477. package/__commonjs/hooks/login/helpers/index.js +1 -1
  478. package/__commonjs/hooks/login/index.js +1 -1
  479. package/__commonjs/hooks/login/useCrossWindowLogin.js +1 -1
  480. package/__commonjs/hooks/login/useExtensionLogin.js +1 -1
  481. package/__commonjs/hooks/login/useIframeLogin.js +1 -1
  482. package/__commonjs/hooks/login/useLedgerLogin.js +1 -1
  483. package/__commonjs/hooks/login/useMetamaskLogin.js +1 -1
  484. package/__commonjs/hooks/login/useOperaLogin.js +1 -1
  485. package/__commonjs/hooks/login/usePasskeyLogin.js +1 -1
  486. package/__commonjs/hooks/login/useWalletConnectV2Login.js +1 -1
  487. package/__commonjs/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
  488. package/__commonjs/hooks/transactions/helpers/index.js +1 -1
  489. package/__commonjs/hooks/transactions/index.js +1 -1
  490. package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
  491. package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  492. package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  493. package/__commonjs/utils/index.js +1 -1
  494. package/__commonjs/utils/transactions/builtCallbackUrl.js +1 -1
  495. package/__commonjs/utils/transactions/index.js +1 -1
  496. package/__commonjs/wrappers/DappProvider/DappProvider.js +1 -1
  497. package/__commonjs/wrappers/DappProvider/index.js +1 -1
  498. package/__commonjs/wrappers/index.js +1 -1
  499. package/__mocks__/index.js +1 -1
  500. package/__mocks__/utils/index.js +1 -1
  501. package/__mocks__/utils/renderWithProvider.js +1 -1
  502. package/apiCalls/accounts/getAccountFromApi.js +1 -1
  503. package/apiCalls/accounts/index.js +1 -1
  504. package/apiCalls/accounts/useGetAccountFromApi.js +1 -1
  505. package/apiCalls/configuration/getNetworkConfig.js +1 -1
  506. package/apiCalls/configuration/index.js +1 -1
  507. package/apiCalls/configuration/useGetNetworkConfigFromApi.js +1 -1
  508. package/apiCalls/configuration/useGetServerConfigurationFromApi.js +1 -1
  509. package/apiCalls/economics/getEconomicsInfo.js +1 -1
  510. package/apiCalls/economics/index.js +1 -1
  511. package/apiCalls/economics/useGetEconomicsInfoFromApi.js +1 -1
  512. package/apiCalls/index.js +1 -1
  513. package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  514. package/apiCalls/transactions/index.js +1 -1
  515. package/apiCalls/transactions/sendSignedBatchTransactions.js +1 -1
  516. package/apiCalls/transactions/sendSignedTransactions.js +1 -1
  517. package/apiCalls/transactions/useGetTransactionsFromApi.js +1 -1
  518. package/apiCalls/utils/getCleanApiAddress.js +1 -1
  519. package/apiCalls/utils/getScamAddressData.js +1 -1
  520. package/apiCalls/utils/index.js +1 -1
  521. package/apiCalls/utils/useApiFetch.js +1 -1
  522. package/components/LogoutListener/LogoutListener.js +1 -1
  523. package/components/LogoutListener/helpers/index.js +1 -1
  524. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  525. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  526. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  527. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  528. package/components/LogoutListener/index.js +1 -1
  529. package/components/ProviderInitializer/ProviderInitializer.js +1 -1
  530. package/components/ProviderInitializer/helpers/index.js +1 -1
  531. package/components/ProviderInitializer/helpers/processModifiedAccount.js +1 -1
  532. package/components/ProviderInitializer/hooks/index.js +1 -1
  533. package/components/ProviderInitializer/hooks/useSetLedgerProvider.js +1 -1
  534. package/components/ProviderInitializer/index.js +1 -1
  535. package/components/TransactionSender/TransactionSender.js +1 -1
  536. package/components/TransactionSender/index.js +1 -1
  537. package/components/TransactionSender/utils/invokeSendTransactions.js +1 -1
  538. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  539. package/components/TransactionsTracker/index.js +1 -1
  540. package/hooks/account/index.js +1 -1
  541. package/hooks/account/useGetAccount.js +1 -1
  542. package/hooks/account/useGetAccountInfo.js +1 -1
  543. package/hooks/account/useGetBatchWebsocketEvent.js +1 -1
  544. package/hooks/account/useGetIsLoggedIn.js +1 -1
  545. package/hooks/account/useGetIsWalletConnectV2Initialized.js +1 -1
  546. package/hooks/account/useGetLoginInfo.js +1 -1
  547. package/hooks/account/useGetWebsocketEvent.js +1 -1
  548. package/hooks/economics/index.js +1 -1
  549. package/hooks/economics/useGetEgldPrice.js +1 -1
  550. package/hooks/index.js +1 -1
  551. package/hooks/login/helpers/clearInitiatedLogins.d.ts +1 -1
  552. package/hooks/login/helpers/clearInitiatedLogins.js +1 -1
  553. package/hooks/login/helpers/index.js +1 -1
  554. package/hooks/login/index.js +1 -1
  555. package/hooks/login/useCrossWindowLogin.js +1 -1
  556. package/hooks/login/useExtensionLogin.js +1 -1
  557. package/hooks/login/useGetModalLoginMethods.js +1 -1
  558. package/hooks/login/useIframeLogin.js +1 -1
  559. package/hooks/login/useLedgerLogin.js +1 -1
  560. package/hooks/login/useLoginService.js +1 -1
  561. package/hooks/login/useMetamaskLogin.js +1 -1
  562. package/hooks/login/useOperaLogin.js +1 -1
  563. package/hooks/login/usePasskeyLogin.js +1 -1
  564. package/hooks/login/useWalletConnectV2Login.js +1 -1
  565. package/hooks/login/useWebViewLogin.js +1 -1
  566. package/hooks/login/useWebWalletLogin.js +1 -1
  567. package/hooks/login/useXaliasLogin.js +1 -1
  568. package/hooks/signMessage/index.js +1 -1
  569. package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  570. package/hooks/signMessage/useGetSignMessageSession.js +1 -1
  571. package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
  572. package/hooks/signMessage/useSignMessage.js +1 -1
  573. package/hooks/toasts/index.js +1 -1
  574. package/hooks/toasts/useGetToasts.js +1 -1
  575. package/hooks/toasts/useTransactionsToasts.js +1 -1
  576. package/hooks/transactions/batch/tracker/useBatchTransactionsTracker.js +1 -1
  577. package/hooks/transactions/batch/tracker/useCheckBatch.js +1 -1
  578. package/hooks/transactions/batch/tracker/useCheckBatchesOnWsFailureFallback.js +1 -1
  579. package/hooks/transactions/batch/tracker/useCheckHangingBatchesFallback.js +1 -1
  580. package/hooks/transactions/batch/tracker/useUpdateBatch.js +1 -1
  581. package/hooks/transactions/batch/tracker/useVerifyBatchStatus.js +1 -1
  582. package/hooks/transactions/batch/useGetBatchStatus.js +1 -1
  583. package/hooks/transactions/batch/useResolveBatchStatusResponse.js +1 -1
  584. package/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
  585. package/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
  586. package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
  587. package/hooks/transactions/helpers/index.js +1 -1
  588. package/hooks/transactions/helpers/useGetLedgerProvider.js +1 -1
  589. package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
  590. package/hooks/transactions/index.js +1 -1
  591. package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
  592. package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  593. package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  594. package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  595. package/hooks/transactions/useGetFailedTransactions.js +1 -1
  596. package/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
  597. package/hooks/transactions/useGetPendingTransactions.js +1 -1
  598. package/hooks/transactions/useGetPollingInterval.js +1 -1
  599. package/hooks/transactions/useGetSignTransactionsError.js +1 -1
  600. package/hooks/transactions/useGetSignedTransactions.js +1 -1
  601. package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  602. package/hooks/transactions/useGetTokenDetails.js +1 -1
  603. package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
  604. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  605. package/hooks/transactions/useSignMultipleTransactions.js +1 -1
  606. package/hooks/transactions/useSignTransactions.js +1 -1
  607. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  608. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  609. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  610. package/hooks/transactions/useTrackTransactionStatus.js +1 -1
  611. package/hooks/transactions/useTransactionsTracker.js +1 -1
  612. package/hooks/useGetNetworkConfig.js +1 -1
  613. package/hooks/useGetNotification.js +1 -1
  614. package/hooks/websocketListener/index.js +1 -1
  615. package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
  616. package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  617. package/package.json +1 -1
  618. package/providers/experimentalWebViewProvider/ExperimentalWebviewProvider.js +1 -1
  619. package/providers/experimentalWebViewProvider/index.js +1 -1
  620. package/reduxStore/selectors/index.js +1 -1
  621. package/reduxStore/selectors/transactionsSelectors.js +1 -1
  622. package/services/index.js +1 -1
  623. package/services/nativeAuth/helpers/getAuthorizationInfo.js +1 -1
  624. package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
  625. package/services/nativeAuth/helpers/index.js +1 -1
  626. package/services/transactions/clearTransactions.js +1 -1
  627. package/services/transactions/getBatchTransactionsStatus.js +1 -1
  628. package/services/transactions/getTransactionsDetails.js +1 -1
  629. package/services/transactions/index.js +1 -1
  630. package/services/transactions/sendBatchTransactions.js +1 -1
  631. package/services/transactions/sendBatchTransactions.test.js +1 -1
  632. package/services/transactions/sendTransactions.js +1 -1
  633. package/services/transactions/transformAndSignTransactions.js +1 -1
  634. package/services/transactions/utils/transformTransactionsToSign.js +1 -1
  635. package/utils/account/getAccount.js +1 -1
  636. package/utils/account/getAccountBalance.js +1 -1
  637. package/utils/account/getAccountShard.js +1 -1
  638. package/utils/account/getAddress.js +1 -1
  639. package/utils/account/getLatestNonce.js +1 -1
  640. package/utils/account/getWebviewToken.js +1 -1
  641. package/utils/account/index.js +1 -1
  642. package/utils/account/refreshAccount.js +1 -1
  643. package/utils/account/signMessage.js +1 -1
  644. package/utils/getIsLoggedIn.js +1 -1
  645. package/utils/index.js +1 -1
  646. package/utils/logout.js +1 -1
  647. package/utils/network/getChainID.js +1 -1
  648. package/utils/network/getEgldLabel.js +1 -1
  649. package/utils/network/getNetworkConfig.js +1 -1
  650. package/utils/network/index.js +1 -1
  651. package/utils/transactions/batch/updateBatchTransactionsStatuses.js +1 -1
  652. package/utils/transactions/builtCallbackUrl.js +1 -1
  653. package/utils/transactions/getAllTransactionsLink.js +1 -1
  654. package/utils/transactions/getOperationsDetails.js +1 -1
  655. package/utils/transactions/getTransactionLink.js +1 -1
  656. package/utils/transactions/index.js +1 -1
  657. package/utils/waitForChainID.js +1 -1
  658. package/web/hooks/index.js +1 -1
  659. package/web/hooks/useIdleTimer.js +1 -1
  660. package/web/index.js +1 -1
  661. package/wrappers/AppInitializer.js +1 -1
  662. package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
  663. package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  664. package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
  665. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
  666. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
  667. package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  668. package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  669. package/wrappers/AxiosInterceptorContext/index.js +1 -1
  670. package/wrappers/DappProvider/CustomComponents.js +1 -1
  671. package/wrappers/DappProvider/DappProvider.js +1 -1
  672. package/wrappers/DappProvider/index.js +1 -1
  673. package/wrappers/index.js +1 -1
  674. package/__chunks__/chunk-37DJEUQB.js +0 -2
  675. package/__chunks__/chunk-3B6YDP5O.js +0 -2
  676. package/__chunks__/chunk-5RSMXFUS.js +0 -2
  677. package/__chunks__/chunk-AM6GYS3H.js +0 -2
  678. package/__chunks__/chunk-AOFZIQIE.js +0 -2
  679. package/__chunks__/chunk-AY65ON7E.js +0 -2
  680. package/__chunks__/chunk-BHVIESYI.js +0 -2
  681. package/__chunks__/chunk-BV2CV4EL.js +0 -2
  682. package/__chunks__/chunk-C727YCOY.js +0 -2
  683. package/__chunks__/chunk-CBLZZNAK.js +0 -2
  684. package/__chunks__/chunk-EJET2LTL.js +0 -2
  685. package/__chunks__/chunk-H37VJDY3.js +0 -2
  686. package/__chunks__/chunk-IV4BPOVR.js +0 -2
  687. package/__chunks__/chunk-J3FEAZ3N.js +0 -2
  688. package/__chunks__/chunk-KFVN4X5Z.js +0 -2
  689. package/__chunks__/chunk-KHNWYG2D.js +0 -2
  690. package/__chunks__/chunk-OFJIAORY.js +0 -2
  691. package/__chunks__/chunk-SMEGIYIL.js +0 -2
  692. package/__chunks__/chunk-XUSDAC2K.js +0 -2
  693. package/__chunks__/chunk-Z7Z33RML.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";var Ws=Object.create;var _e=Object.defineProperty,Vs=Object.defineProperties,Gs=Object.getOwnPropertyDescriptor,$s=Object.getOwnPropertyDescriptors,Hs=Object.getOwnPropertyNames,Je=Object.getOwnPropertySymbols,qs=Object.getPrototypeOf,Zt=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable;var an=(e,t,r)=>t in e?_e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))Zt.call(t,r)&&an(e,r,t[r]);if(Je)for(var r of Je(t))cn.call(t,r)&&an(e,r,t[r]);return e},w=(e,t)=>Vs(e,$s(t));var Qe=(e,t)=>{var r={};for(var o in e)Zt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Je)for(var o of Je(e))t.indexOf(o)<0&&cn.call(e,o)&&(r[o]=e[o]);return r};var f=(e,t)=>()=>(e&&(t=e(e=0)),t);var M=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),me=(e,t)=>{for(var r in t)_e(e,r,{get:t[r],enumerable:!0})},ln=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Hs(t))!Zt.call(e,i)&&i!==r&&_e(e,i,{get:()=>t[i],enumerable:!(o=Gs(t,i))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?Ws(qs(e)):{},ln(t||!e||!e.__esModule?_e(r,"default",{value:e,enumerable:!0}):r,e)),Oe=e=>ln(_e({},"__esModule",{value:!0}),e);var v=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(T){i(T)}},p=m=>{try{d(r.throw(m))}catch(T){i(T)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var dn=M(et=>{"use strict";n();et.byteLength=zs;et.toByteArray=Xs;et.fromByteArray=Js;var X=[],B=[],js=typeof Uint8Array!="undefined"?Uint8Array:Array,Jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ge=0,pn=Jt.length;ge<pn;++ge)X[ge]=Jt[ge],B[Jt.charCodeAt(ge)]=ge;var ge,pn;B["-".charCodeAt(0)]=62;B["_".charCodeAt(0)]=63;function un(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function zs(e){var t=un(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Ks(e,t,r){return(t+r)*3/4-r}function Xs(e){var t,r=un(e),o=r[0],i=r[1],l=new js(Ks(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=B[e.charCodeAt(m)]<<18|B[e.charCodeAt(m+1)]<<12|B[e.charCodeAt(m+2)]<<6|B[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=B[e.charCodeAt(m)]<<2|B[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=B[e.charCodeAt(m)]<<10|B[e.charCodeAt(m+1)]<<4|B[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Ys(e){return X[e>>18&63]+X[e>>12&63]+X[e>>6&63]+X[e&63]}function Zs(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(Ys(o));return i.join("")}function Js(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(Zs(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(X[t>>2]+X[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(X[t>>10]+X[t>>4&63]+X[t<<2&63]+"=")),i.join("")}});var mn=M(Qt=>{n();Qt.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,T=m>>1,S=-7,h=r?i-1:0,x=r?-1:1,k=e[t+h];for(h+=x,l=k&(1<<-S)-1,k>>=-S,S+=d;S>0;l=l*256+e[t+h],h+=x,S-=8);for(p=l&(1<<-S)-1,l>>=-S,S+=o;S>0;p=p*256+e[t+h],h+=x,S-=8);if(l===0)l=1-T;else{if(l===m)return p?NaN:(k?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-T}return(k?-1:1)*p*Math.pow(2,l-o)};Qt.write=function(e,t,r,o,i,l){var p,d,m,T=l*8-i-1,S=(1<<T)-1,h=S>>1,x=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=o?0:l-1,b=o?1:-1,R=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,p=S):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+h>=1?t+=x/m:t+=x*Math.pow(2,1-h),t*m>=2&&(p++,m/=2),p+h>=S?(d=0,p=S):p+h>=1?(d=(t*m-1)*Math.pow(2,i),p=p+h):(d=t*Math.pow(2,h-1)*Math.pow(2,i),p=0));i>=8;e[r+k]=d&255,k+=b,d/=256,i-=8);for(p=p<<i|d,T+=i;T>0;e[r+k]=p&255,k+=b,p/=256,T-=8);e[r+k-b]|=R*128}});var kn=M(Ie=>{"use strict";n();var er=dn(),ve=mn(),gn=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ie.Buffer=u;Ie.SlowBuffer=oa;Ie.INSPECT_MAX_BYTES=50;var tt=2147483647;Ie.kMaxLength=tt;u.TYPED_ARRAY_SUPPORT=Qs();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Qs(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function ne(e){if(e>tt)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return or(e)}return yn(e,t,r)}u.poolSize=8192;function yn(e,t,r){if(typeof e=="string")return ta(e,t);if(ArrayBuffer.isView(e))return ra(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(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return rr(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=na(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return yn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function hn(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 ea(e,t,r){return hn(e),e<=0?ne(e):t!==void 0?typeof r=="string"?ne(e).fill(t,r):ne(e).fill(t):ne(e)}u.alloc=function(e,t,r){return ea(e,t,r)};function or(e){return hn(e),ne(e<0?0:ir(e)|0)}u.allocUnsafe=function(e){return or(e)};u.allocUnsafeSlow=function(e){return or(e)};function ta(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=xn(e,t)|0,o=ne(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function tr(e){for(var t=e.length<0?0:ir(e.length)|0,r=ne(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function ra(e){if(Y(e,Uint8Array)){var t=new Uint8Array(e);return rr(t.buffer,t.byteOffset,t.byteLength)}return tr(e)}function rr(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function na(e){if(u.isBuffer(e)){var t=ir(e.length)|0,r=ne(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||sr(e.length)?ne(0):tr(e);if(e.type==="Buffer"&&Array.isArray(e.data))return tr(e.data)}function ir(e){if(e>=tt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+tt.toString(16)+" bytes");return e|0}function oa(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),Y(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(Y(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function xn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return nr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return bn(e).length;default:if(i)return o?-1:nr(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=xn;function ia(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return fa(this,t,r);case"utf8":case"utf-8":return wn(this,t,r);case"ascii":return ma(this,t,r);case"latin1":case"binary":return ga(this,t,r);case"base64":return ua(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ta(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function fe(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)fe(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)fe(this,r,r+3),fe(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)fe(this,r,r+7),fe(this,r+1,r+6),fe(this,r+2,r+5),fe(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?wn(this,0,t):ia.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=Ie.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};gn&&(u.prototype[gn]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,d=o-r,m=Math.min(p,d),T=this.slice(i,l),S=t.slice(r,o),h=0;h<m;++h)if(T[h]!==S[h]){p=T[h],d=S[h];break}return p<d?-1:d<p?1:0};function Sn(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,sr(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:fn(e,t,r,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):fn(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function fn(e,t,r,o,i){var l=1,p=e.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,d/=2,r/=2}function m(k,b){return l===1?k[b]:k.readUInt16BE(b*l)}var T;if(i){var S=-1;for(T=r;T<p;T++)if(m(e,T)===m(t,S===-1?0:T-S)){if(S===-1&&(S=T),T-S+1===d)return S*l}else S!==-1&&(T-=T-S),S=-1}else for(r+d>p&&(r=p-d),T=r;T>=0;T--){for(var h=!0,x=0;x<d;x++)if(m(e,T+x)!==m(t,x)){h=!1;break}if(h)return T}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return Sn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return Sn(this,t,r,o,!1)};function sa(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var d=parseInt(t.substr(p*2,2),16);if(sr(d))return p;e[r+p]=d}return p}function aa(e,t,r,o){return rt(nr(t,e.length-r),e,r,o)}function ca(e,t,r,o){return rt(xa(t),e,r,o)}function la(e,t,r,o){return rt(bn(t),e,r,o)}function pa(e,t,r,o){return rt(Sa(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return sa(this,t,r,o);case"utf8":case"utf-8":return aa(this,t,r,o);case"ascii":case"latin1":case"binary":return ca(this,t,r,o);case"base64":return la(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pa(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ua(e,t,r){return t===0&&r===e.length?er.fromByteArray(e):er.fromByteArray(e.slice(t,r))}function wn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,T,S,h;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(h=(l&31)<<6|m&63,h>127&&(p=h));break;case 3:m=e[i+1],T=e[i+2],(m&192)===128&&(T&192)===128&&(h=(l&15)<<12|(m&63)<<6|T&63,h>2047&&(h<55296||h>57343)&&(p=h));break;case 4:m=e[i+1],T=e[i+2],S=e[i+3],(m&192)===128&&(T&192)===128&&(S&192)===128&&(h=(l&15)<<18|(m&63)<<12|(T&63)<<6|S&63,h>65535&&h<1114112&&(p=h))}}p===null?(p=65533,d=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=d}return da(o)}var Tn=4096;function da(e){var t=e.length;if(t<=Tn)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=Tn));return r}function ma(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function ga(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function fa(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=wa[e[l]];return i}function Ta(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function C(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||C(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||C(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||C(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||C(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||C(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||C(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||C(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||C(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||C(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||C(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||C(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||C(t,4,this.length),ve.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||C(t,4,this.length),ve.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||C(t,8,this.length),ve.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||C(t,8,this.length),ve.read(this,t,!1,52,8)};function D(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;D(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;D(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);D(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);D(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function An(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function vn(e,t,r,o,i){return t=+t,r=r>>>0,i||An(e,t,r,4,34028234663852886e22,-34028234663852886e22),ve.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return vn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return vn(this,t,r,!1,o)};function In(e,t,r,o,i){return t=+t,r=r>>>0,i||An(e,t,r,8,17976931348623157e292,-17976931348623157e292),ve.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return In(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return In(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var ya=/[^+/0-9A-Za-z-_]/g;function ha(e){if(e=e.split("=")[0],e=e.trim().replace(ya,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function nr(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function xa(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Sa(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function bn(e){return er.toByteArray(ha(e))}function rt(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Y(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function sr(e){return e!==e}var wa=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var Rn=M((Tp,Cn)=>{n();var L=Cn.exports={},Z,J;function ar(){throw new Error("setTimeout has not been defined")}function cr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Z=setTimeout:Z=ar}catch(e){Z=ar}try{typeof clearTimeout=="function"?J=clearTimeout:J=cr}catch(e){J=cr}})();function Ln(e){if(Z===setTimeout)return setTimeout(e,0);if((Z===ar||!Z)&&setTimeout)return Z=setTimeout,setTimeout(e,0);try{return Z(e,0)}catch(t){try{return Z.call(null,e,0)}catch(r){return Z.call(this,e,0)}}}function Aa(e){if(J===clearTimeout)return clearTimeout(e);if((J===cr||!J)&&clearTimeout)return J=clearTimeout,clearTimeout(e);try{return J(e)}catch(t){try{return J.call(null,e)}catch(r){return J.call(this,e)}}}var oe=[],be=!1,Te,nt=-1;function va(){!be||!Te||(be=!1,Te.length?oe=Te.concat(oe):nt=-1,oe.length&&En())}function En(){if(!be){var e=Ln(va);be=!0;for(var t=oe.length;t;){for(Te=oe,oe=[];++nt<t;)Te&&Te[nt].run();nt=-1,t=oe.length}Te=null,be=!1,Aa(e)}}L.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];oe.push(new Nn(e,t)),oe.length===1&&!be&&Ln(En)};function Nn(e,t){this.fun=e,this.array=t}Nn.prototype.run=function(){this.fun.apply(null,this.array)};L.title="browser";L.browser=!0;L.env={};L.argv=[];L.version="";L.versions={};function ie(){}L.on=ie;L.addListener=ie;L.once=ie;L.off=ie;L.removeListener=ie;L.removeAllListeners=ie;L.emit=ie;L.prependListener=ie;L.prependOnceListener=ie;L.listeners=function(e){return[]};L.binding=function(e){throw new Error("process.binding is not supported")};L.cwd=function(){return"/"};L.chdir=function(e){throw new Error("process.chdir is not supported")};L.umask=function(){return 0}});var s,c,Ia,a,n=f(()=>{s=A(kn()),c=A(Rn()),Ia=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object),a=Ia});var Dn=f(()=>{"use strict";n()});var _n,mr=f(()=>{"use strict";n();_n="Action not allowed. User is logged in. Call logout() first"});var On=f(()=>{"use strict";n()});var gr,Mn=f(()=>{"use strict";n();gr=(o=>(o.SetGuardian="SetGuardian",o.GuardAccount="GuardAccount",o.UnGuardAccount="UnGuardAccount",o))(gr||{})});var Fn=f(()=>{"use strict";n()});var fr=f(()=>{"use strict";n()});var Bn=f(()=>{"use strict";n()});var Un=f(()=>{"use strict";n()});var Wn=f(()=>{"use strict";n()});var Vn=f(()=>{"use strict";n()});var ye,Le,Me=f(()=>{"use strict";n();ye=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),Le=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums")});var Ee,Gn,_p,$n,Op,H=f(()=>{"use strict";n();Me();Ee=(x=>(x.ledger="ledger",x.walletconnect="walletconnect",x.walletconnectv2="walletconnectv2",x.wallet="wallet",x.crossWindow="crossWindow",x.iframe="iframe",x.extension="extension",x.passkey="passkey",x.metamask="metamask",x.opera="opera",x.extra="extra",x.none="",x))(Ee||{}),Gn=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(Gn||{}),_p=g(g({},Le.WindowProviderRequestEnums),Gn),$n=(t=>(t.reloginResponse="RELOGIN_RESPONSE",t))($n||{}),Op=g(g({},Le.WindowProviderResponseEnums),$n)});var Hn=f(()=>{"use strict";n()});var qn=f(()=>{"use strict";n()});var _=f(()=>{"use strict";n()});var jn=f(()=>{"use strict";n()});var zn=f(()=>{"use strict";n()});var Kn=f(()=>{"use strict";n()});var U=f(()=>{"use strict";n();Un();Wn();Vn();H();Hn();qn();_();jn();zn();Kn()});var Tr,Xn,Jp,Yn,Qp,Zn,eu,tu,ru,Jn=f(()=>{"use strict";n();U();Tr={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",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://devnet-snap-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},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",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://testnet-snap-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},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",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://snap-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:Xn,egldLabel:Jp}=Tr["devnet"],{chainId:Yn,egldLabel:Qp}=Tr["testnet"],{chainId:Zn,egldLabel:eu}=Tr["mainnet"],tu={["devnet"]:Xn,["testnet"]:Yn,["mainnet"]:Zn},ru={[Xn]:"devnet",[Yn]:"testnet",[Zn]:"mainnet"}});var yr=f(()=>{"use strict";n()});var Q,Qn=f(()=>{"use strict";n();Q=require("@multiversx/sdk-web-wallet-provider")});var pe,hr=f(()=>{"use strict";n();pe=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants")});var eo,to,xr,Ea,Na,ro,Sr=f(()=>{"use strict";n();hr();xr=String((to=(eo=pe.safeWindow)==null?void 0:eo.navigator)==null?void 0:to.userAgent),Ea=/^((?!chrome|android).)*safari/i.test(xr),Na=/firefox/i.test(xr)&&/windows/i.test(xr),ro=Ea||Na});var wr,Ar,no,it,oo,Ne,I=f(()=>{"use strict";n();Dn();mr();On();Mn();Fn();fr();Bn();Jn();yr();Qn();Sr();wr=5e4,Ar=1e9,no=1,it="logout",oo="login",Ne="0"});var Ce,st=f(()=>{"use strict";n();Ce=()=>Date.now()/1e3});var io=f(()=>{"use strict";n()});var so=f(()=>{"use strict";n()});var ao=f(()=>{"use strict";n();st();io();so()});var vr={};me(vr,{clear:()=>Da,getItem:()=>Ra,localStorageKeys:()=>he,removeItem:()=>Pa,setItem:()=>Ca});var he,at,Ca,Ra,Pa,Da,Fe=f(()=>{"use strict";n();ao();he={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},at=typeof localStorage!="undefined",Ca=({key:e,data:t,expires:r})=>{!at||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Ra=e=>{if(!at)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Ce()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Pa=e=>{!at||localStorage.removeItem(String(e))},Da=()=>{!at||localStorage.clear()}});var Ir={};me(Ir,{clear:()=>uo,getItem:()=>lo,removeItem:()=>po,setItem:()=>co,storage:()=>_a});var co,lo,po,uo,_a,mo=f(()=>{"use strict";n();co=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},lo=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},po=e=>sessionStorage.removeItem(String(e)),uo=()=>sessionStorage.clear(),_a={setItem:co,getItem:lo,removeItem:po,clear:uo}});var Re,ct=f(()=>{"use strict";n();Fe();mo();Re={session:Ir,local:vr}});var br,E,Pe,W=f(()=>{"use strict";n();br=require("@reduxjs/toolkit");I();E=(0,br.createAction)(it),Pe=(0,br.createAction)(oo,e=>({payload:e}))});var Lr,go,fo,lt,kr,To,pt,yo,ho,Bu,Uu,Wu,Vu,Gu,$u,Hu,qu,ut,dt=f(()=>{"use strict";n();Lr=require("@multiversx/sdk-core"),go=require("@reduxjs/toolkit"),fo=require("redux-persist");I();ct();Fe();W();lt={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:Ne},kr={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":lt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},To=(0,go.createSlice)({name:"accountInfoSlice",initialState:kr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=r?new Lr.Address(r).hex():""},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:lt},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(E,()=>(Re.local.removeItem(he.loginExpiresAt),kr)),e.addCase(Pe,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new Lr.Address(o).hex()}),e.addCase(fo.REHYDRATE,(t,r)=>{var T;if(!((T=r.payload)!=null&&T.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let m=p&&i in p;t.accounts=m?p:kr.accounts,t.publicKey=d})}}),{setAccount:pt,setAddress:yo,setAccountNonce:ho,setAccountShard:Bu,setLedgerAccount:Uu,updateLedgerAccount:Wu,setWalletConnectAccount:Vu,setIsAccountLoading:Gu,setAccountLoadingError:$u,setWebsocketEvent:Hu,setWebsocketBatchEvent:qu}=To.actions,ut=To.reducer});function Be(){return new Date().setHours(new Date().getHours()+24)}function Ue(e){Re.local.setItem({key:he.loginExpiresAt,data:e,expires:e})}var Er=f(()=>{"use strict";n();ct();Fe()});var So,xo,wo,td,rd,nd,mt,od,id,Ao,sd,ad,cd,gt,ft=f(()=>{"use strict";n();So=require("@reduxjs/toolkit");Er();H();W();xo={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,passkeyLogin:null,operaLogin:null,crossWindowLogin:null,iframeWindowLogin:null,isLoginSessionInvalid:!1,webviewLogin:null},wo=(0,So.createSlice)({name:"loginInfoSlice",initialState:xo,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},setWebviewLogin:(e,t)=>{e.webviewLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload},setIsWalletConnectV2Initialized:(e,t)=>{e.isWalletConnectV2Initialized=t.payload}},extraReducers:e=>{e.addCase(E,()=>xo),e.addCase(Pe,(t,r)=>{t.isLoginSessionInvalid=!1,t.loginMethod=r.payload.loginMethod,t.iframeLoginType=r.payload.iframeLoginType,Ue(Be())})}}),{setLoginMethod:td,setWalletConnectLogin:rd,setLedgerLogin:nd,setTokenLogin:mt,setTokenLoginSignature:od,setWalletLogin:id,invalidateLoginSession:Ao,setLogoutRoute:sd,setIsWalletConnectV2Initialized:ad,setWebviewLogin:cd}=wo.actions,gt=wo.reducer});var Io,vo,bo,dd,md,gd,fd,Tt,yt=f(()=>{"use strict";n();Io=require("@reduxjs/toolkit");W();vo={},bo=(0,Io.createSlice)({name:"modalsSlice",initialState:vo,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(E,()=>vo)}}),{setTxSubmittedModal:dd,setNotificationModal:md,clearTxSubmittedModal:gd,clearNotificationModal:fd}=bo.actions,Tt=bo.reducer});var We,ht=f(()=>{"use strict";n();We=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined"});var ee,ue=f(()=>{"use strict";n();ht();ee=()=>{if(!We())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:t,hash:r,origin:o,href:i,search:l}}=window;return{pathname:t,hash:r,origin:o,href:i,search:l}}});var ko=f(()=>{"use strict";n();ue()});var Lo=f(()=>{"use strict";n();xt()});var Eo,No=f(()=>{"use strict";n();hr();Eo=e=>{if(!pe.safeWindow.location)return;if(!new URL(pe.safeWindow.location.href).protocol.startsWith("http"))return pe.safeWindow.location.reload();pe.safeWindow.location.assign(e)}});var xt=f(()=>{"use strict";n();ko();Lo();ue();No()});var Oa,Co,Ro=f(()=>{"use strict";n();xt();Oa=!1,Co=({timeout:e=0,url:t})=>{Oa||setTimeout(()=>{if(!!window)return Eo(t)},e)}});function Po({callbackRoute:e,onLoginRedirect:t,options:r}){let o=Boolean(e),i=typeof t=="function";if(o&&e!=null){if(i)return t(e,r);Co({url:e,timeout:Ma})}}var Ma,Do=f(()=>{"use strict";n();Ro();Ma=200});function _o(e){return e[Math.floor(Math.random()*e.length)]}var Oo=f(()=>{"use strict";n()});var Mo=f(()=>{"use strict";n();fr()});var Nr=f(()=>{"use strict";n();Do();Oo();Mo()});var Fo,Bo,Uo,Cr,Ba,Wo,zd,Kd,Xd,St,wt=f(()=>{"use strict";n();Fo=require("@reduxjs/toolkit"),Bo=A(require("lodash.omit")),Uo=require("redux-persist");yr();W();Nr();Cr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000",roundDuration:6e3},Ba={network:Cr},Wo=(0,Fo.createSlice)({name:"appConfig",initialState:Ba,reducers:{initializeNetworkConfig:(e,t)=>{let r=_o(t.payload.walletConnectV2RelayAddresses),o=(0,Bo.default)(t.payload,"walletConnectV2RelayAddresses");e.network=w(g(g({},e.network),o),{walletConnectV2RelayAddress:r})},updateNetworkConfig:(e,t)=>{e.network=g(g({},e.network),t.payload)},setCustomWalletAddress:(e,t)=>{e.network.customWalletAddress=t.payload}},extraReducers:e=>{e.addCase(E,t=>{t.network.customWalletAddress=void 0}),e.addCase(Uo.REHYDRATE,(t,r)=>{var i,l;if(!((l=(i=r.payload)==null?void 0:i.network)!=null&&l.customWalletAddress))return;let{network:{customWalletAddress:o}}=r.payload;t.network.customWalletAddress=o})}}),{initializeNetworkConfig:zd,updateNetworkConfig:Kd,setCustomWalletAddress:Xd}=Wo.actions,St=Wo.reducer});var Vo,Rr,Go,tm,rm,nm,At,vt=f(()=>{"use strict";n();Vo=require("@reduxjs/toolkit");U();W();Rr={isSigning:!1,signedSessions:{}},Go=(0,Vo.createSlice)({name:"signedMessageInfoSliceState",initialState:Rr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=g(g({},e.signedSessions[r]),o)},setSignSessionState:(e,t)=>g(g({},e),t.payload),clearSignedMessageInfo:()=>Rr},extraReducers:e=>{e.addCase(E,()=>Rr)}}),{setSignSession:tm,clearSignedMessageInfo:rm,setSignSessionState:nm}=Go.actions,At=Go.reducer});var Ho,qo,$o,jo,pm,um,dm,mm,It,bt=f(()=>{"use strict";n();Ho=require("@reduxjs/toolkit"),qo=require("redux-persist");U();st();W();$o={customToasts:[],transactionToasts:[]},jo=(0,Ho.createSlice)({name:"toastsSlice",initialState:$o,reducers:{addCustomToast:(e,t)=>{let r=t.payload.toastId||`custom-toast-${e.customToasts.length+1}`,o=e.customToasts.findIndex(i=>i.toastId===r);if(o!==-1){e.customToasts[o]=w(g(g({},e.customToasts[o]),t.payload),{type:"custom",toastId:r});return}e.customToasts.push(w(g({},t.payload),{type:"custom",toastId:r}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Ce(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)}},extraReducers:e=>{e.addCase(E,()=>$o),e.addCase(qo.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:pm,removeCustomToast:um,addTransactionToast:dm,removeTransactionToast:mm}=jo.actions,It=jo.reducer});var zo,Dr,_r,Or,Ua,Pr,Ko,ym,hm,xm,kt,Lt=f(()=>{"use strict";n();zo=require("@reduxjs/toolkit");W();Dr="Transaction failed",_r="Transaction successful",Or="Processing transaction",Ua="Transaction submitted",Pr={},Ko=(0,zo.createSlice)({name:"transactionsInfo",initialState:Pr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||Dr,successMessage:(o==null?void 0:o.successMessage)||_r,processingMessage:(o==null?void 0:o.processingMessage)||Or,submittedMessage:(o==null?void 0:o.submittedMessage)||Ua,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Pr},extraReducers:e=>{e.addCase(E,()=>Pr)}}),{clearTransactionsInfo:ym,setTransactionsDisplayInfo:hm,clearTransactionsInfoForSessionId:xm}=Ko.actions,kt=Ko.reducer});function Xo(e){return e!=null&&(Ya(e)||tc(e))}function Et(e){return e!=null&&(Za(e)||rc(e))}function Nt(e){return e!=null&&(Ja(e)||nc(e))}function Yo(e){return e!=null&&(Qa(e)||oc(e))}function Zo(e){return e!=null&&ec(e)}function Ya(e){return e!=null&&Va.includes(e)}function Za(e){return e!=null&&Ga.includes(e)}function Ja(e){return e!=null&&$a.includes(e)}function Qa(e){return e!=null&&Ha.includes(e)}function ec(e){return e!=null&&qa.includes(e)}function tc(e){return e!=null&&ja.includes(e)}function rc(e){return e!=null&&za.includes(e)}function nc(e){return e!=null&&Ka.includes(e)}function oc(e){return e!=null&&Xa.includes(e)}var Va,Ga,$a,Ha,qa,ja,za,Ka,Xa,Fr=f(()=>{"use strict";n();H();Va=["sent"],Ga=["success"],$a=["fail","cancelled","timedOut"],Ha=["invalid"],qa=["timedOut"],ja=["pending"],za=["success"],Ka=["fail","invalid"],Xa=["not executed"]});var Jo,Qo,Ve,ic,ei,Em,Nm,Cm,Rm,Pm,Dm,_m,Om,Mm,Fm,Bm,Ct,Rt=f(()=>{"use strict";n();Jo=require("@reduxjs/toolkit"),Qo=require("redux-persist");H();Fr();W();Ve={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},ic={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},ei=(0,Jo.createSlice)({name:"transactionsSlice",initialState:Ve,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,T;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p,customTransactionInformation:d}=t.payload;e.customTransactionInformationForSessionId[r]=g(g(g({},ic),((m=e.signedTransactions[r])==null?void 0:m.customTransactionInformation)||{}),e.customTransactionInformationForSessionId[r]||{}),e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:g(g({},e.customTransactionInformationForSessionId[r]),d!=null?d:{})},((T=e==null?void 0:e.transactionsToSign)==null?void 0:T.sessionId)===r&&(e.transactionsToSign=Ve.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=g(g({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var T,S,h,x,k,b,R,$;let{sessionId:r,status:o,errorMessage:i,transactionHash:l,serverTransaction:p,inTransit:d}=t.payload,m=(S=(T=e.signedTransactions)==null?void 0:T[r])==null?void 0:S.transactions;if(m!=null){e.signedTransactions[r].transactions=m.map(N=>N.hash===l?w(g(g({},p!=null?p:{}),N),{status:o,errorMessage:i,inTransit:d}):N);let j=(x=(h=e.signedTransactions[r])==null?void 0:h.transactions)==null?void 0:x.every(N=>Et(N.status)),z=(b=(k=e.signedTransactions[r])==null?void 0:k.transactions)==null?void 0:b.some(N=>Nt(N.status)),K=($=(R=e.signedTransactions[r])==null?void 0:R.transactions)==null?void 0:$.every(N=>Yo(N.status));j&&(e.signedTransactions[r].status="success"),z&&(e.signedTransactions[r].status="fail"),K&&(e.signedTransactions[r].status="invalid")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=Ve.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Ve.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload},updateSignedTransactionsCustomTransactionInformation:(e,t)=>{let{sessionId:r,customTransactionInformationOverrides:o}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].customTransactionInformation=g(g({},e.signedTransactions[r].customTransactionInformation),o))}},extraReducers:e=>{e.addCase(E,()=>Ve),e.addCase(Qo.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((d,[m,T])=>{let S=new Date(m),h=new Date;return h.setHours(h.getHours()+5),h-S>0||(d[m]=T),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Em,updateSignedTransactions:Nm,setTransactionsToSign:Cm,clearAllTransactionsToSign:Rm,clearAllSignedTransactions:Pm,clearSignedTransaction:Dm,clearTransactionToSign:_m,setSignTransactionsError:Om,setSignTransactionsCancelMessage:Mm,moveTransactionsToSignedState:Fm,updateSignedTransactionsCustomTransactionInformation:Bm}=ei.actions,Ct=ei.reducer});var ti,Br,ri,Gm,$m,Hm,qm,Pt,Dt=f(()=>{"use strict";n();ti=require("@reduxjs/toolkit");W();Br={},ri=(0,ti.createSlice)({name:"batchTransactionsSlice",initialState:Br,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>Br},extraReducers:e=>{e.addCase(E,()=>Br)}}),{setBatchTransactions:Gm,updateBatchTransactions:$m,clearBatchTransactions:Hm,clearAllBatchTransactions:qm}=ri.actions,Pt=ri.reducer});var oi,ni,ii,Xm,si,Ur=f(()=>{"use strict";n();oi=require("@reduxjs/toolkit");W();ni={},ii=(0,oi.createSlice)({name:"dappConfigSlice",initialState:ni,reducers:{setDappConfig:(e,t)=>t.payload},extraReducers:e=>{e.addCase(E,()=>ni)}}),{setDappConfig:Xm}=ii.actions,si=ii.reducer});var de=f(()=>{"use strict";n();dt();ft();yt();wt();vt();bt();Lt();Rt();Dt();Ur()});var Hr=f(()=>{"use strict";n()});var hi,yc,hc,Se,Wt=f(()=>{"use strict";n();hi=require("@reduxjs/toolkit");Hr();dt();Dt();Ur();ft();yt();wt();vt();bt();Lt();Rt();yc={["account"]:ut,["dappConfig"]:si,["loginInfo"]:gt,["modals"]:Tt,["networkConfig"]:St,["signedMessageInfo"]:At,["toasts"]:It,["transactionsInfo"]:kt,["transactions"]:Ct,["batchTransactions"]:Pt},hc=(e={})=>(0,hi.combineReducers)(g(g({},yc),e)),Se=hc});var Ai={};me(Ai,{default:()=>_c,sessionStorageReducers:()=>qr});function ce(e,t=[]){return{key:e,version:1,storage:Si.default,blacklist:t}}var O,xi,Si,xc,$e,Sc,wc,Ac,vc,Ic,bc,kc,Lc,Ec,Nc,wi,Cc,qr,Rc,Pc,Dc,_c,vi=f(()=>{"use strict";n();O=require("redux-persist"),xi=A(require("redux-persist/lib/storage")),Si=A(require("redux-persist/lib/storage/session"));Wt();de();dt();Dt();ft();yt();wt();vt();bt();Lt();Rt();Hr();xc={persistReducersStorageType:"localStorage"},$e={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Sc=ce($e["account"]),wc=ce($e["loginInfo"]),Ac=ce($e["modals"]),vc=ce($e["networkConfig"]),Ic={2:e=>w(g({},e),{networkConfig:Cr})};bc=ce("sdk-dapp-transactionsInfo"),kc=ce("sdk-dapp-transactions",["transactionsToSign"]),Lc=ce("sdk-dapp-batchTransactions",["batchTransactions"]),Ec=ce("sdk-dapp-toasts"),Nc=ce("sdk-dapp-signedMessageInfo"),wi={key:"sdk-dapp-store",version:2,storage:xi.default,whitelist:Object.keys($e),migrate:(0,O.createMigrate)(Ic,{debug:!1})},Cc=w(g({},wi),{whitelist:[]}),qr={["toasts"]:(0,O.persistReducer)(Ec,It),["transactions"]:(0,O.persistReducer)(kc,Ct),["transactionsInfo"]:(0,O.persistReducer)(bc,kt),["batchTransactions"]:(0,O.persistReducer)(Lc,Pt),["signedMessageInfo"]:(0,O.persistReducer)(Nc,At)},Rc=w(g({},qr),{["account"]:(0,O.persistReducer)(Sc,ut),["loginInfo"]:(0,O.persistReducer)(wc,gt),["modals"]:(0,O.persistReducer)(Ac,Tt),["networkConfig"]:(0,O.persistReducer)(vc,St)}),Pc=xc.persistReducersStorageType==="localStorage",Dc=Pc?(0,O.persistReducer)(wi,Se(qr)):(0,O.persistReducer)(Cc,Se(Rc)),_c=Dc});var Ii={};me(Ii,{default:()=>Oc});var Oc,bi=f(()=>{"use strict";n();Wt();Oc=Se()});var ki={};me(ki,{default:()=>Fc});var G,Mc,Fc,Li=f(()=>{"use strict";n();G=require("redux-persist"),Mc=[G.FLUSH,G.REHYDRATE,G.PAUSE,G.PERSIST,G.PURGE,G.REGISTER],Fc=Mc});var Ci={};me(Ci,{default:()=>Ni});function Ni(e){return(0,Ei.persistStore)(e)}var Ei,Ri=f(()=>{"use strict";n();Ei=require("redux-persist")});var Xi=M((cI,Ki)=>{n();var vl=typeof a=="object"&&a&&a.Object===Object&&a;Ki.exports=vl});var Zi=M((lI,Yi)=>{n();var Il=Xi(),bl=typeof self=="object"&&self&&self.Object===Object&&self,kl=Il||bl||Function("return this")();Yi.exports=kl});var Zr=M((pI,Ji)=>{n();var Ll=Zi(),El=Ll.Symbol;Ji.exports=El});var rs=M((uI,ts)=>{n();var Qi=Zr(),es=Object.prototype,Nl=es.hasOwnProperty,Cl=es.toString,ze=Qi?Qi.toStringTag:void 0;function Rl(e){var t=Nl.call(e,ze),r=e[ze];try{e[ze]=void 0;var o=!0}catch(l){}var i=Cl.call(e);return o&&(t?e[ze]=r:delete e[ze]),i}ts.exports=Rl});var os=M((dI,ns)=>{n();var Pl=Object.prototype,Dl=Pl.toString;function _l(e){return Dl.call(e)}ns.exports=_l});var cs=M((mI,as)=>{n();var is=Zr(),Ol=rs(),Ml=os(),Fl="[object Null]",Bl="[object Undefined]",ss=is?is.toStringTag:void 0;function Ul(e){return e==null?e===void 0?Bl:Fl:ss&&ss in Object(e)?Ol(e):Ml(e)}as.exports=Ul});var ps=M((gI,ls)=>{n();var Wl=Array.isArray;ls.exports=Wl});var ds=M((fI,us)=>{n();function Vl(e){return e!=null&&typeof e=="object"}us.exports=Vl});var gs=M((TI,ms)=>{n();var Gl=cs(),$l=ps(),Hl=ds(),ql="[object String]";function jl(e){return typeof e=="string"||!$l(e)&&Hl(e)&&Gl(e)==ql}ms.exports=jl});var pp={};me(pp,{useCrossWindowLogin:()=>lp});module.exports=Oe(pp);n();var rn=require("react");n();n();n();n();var ot="accounts";var lr="blocks";n();n();n();var Pn=require("@lifeomic/axios-fetch"),pr=A(require("axios")),ur=(0,Pn.buildAxiosFetch)(pr.default),dr=(e,t)=>v(void 0,null,function*(){if(!e.ok)throw new Error(`HTTP error! Status: ${e.status}`);let o=e.clone().json(),[i]=yield Promise.all([o]);return{data:i,status:e.status,statusText:e.statusText,headers:e.headers,config:t}});function ba(e,t,r){return v(this,null,function*(){try{let o=yield ur(e,g({method:"POST",body:t?JSON.stringify(t):void 0,headers:g({"Content-Type":"application/json"},(r==null?void 0:r.headers)||{})},r));return dr(o,r)}catch(o){throw console.error("Fetch Error:",o),o}})}function ka(e,t){return v(this,null,function*(){try{let r=yield ur(e,t);if(!r.ok)throw new Error(`HTTP error! Status: ${r.status}`);return dr(r,t)}catch(r){throw console.error("Fetch Error:",r),r}})}function La(e,t,r){return v(this,null,function*(){try{let o=yield ur(e,g({method:"PATCH",body:t?JSON.stringify(t):void 0,headers:(r==null?void 0:r.headers)||{}},r));if(!o.ok)throw new Error(`HTTP error! Status: ${o.status}`);return dr(o,r)}catch(o){throw console.error("Fetch Error:",o),o}})}var ke=pr.default.create();ke.get=ka;ke.post=ba;ke.patch=La;n();n();n();de();n();var ai=A(require("lodash.isequal")),_t=require("reselect"),y=(0,_t.createSelectorCreator)(_t.defaultMemoize,ai.default);var te=e=>e.account,Wr=y(te,e=>e.address),Ge=y(te,Wr,(e,t)=>t in e.accounts?e.accounts[t]:lt),sc=y(te,Ge,(e,t)=>{let i=e,{accounts:r}=i,o=Qe(i,["accounts"]);return w(g({},o),{address:t.address,account:t})}),ug=y(Ge,e=>e.balance),ci=y(Ge,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),dg=y(te,e=>e.shard),mg=y(te,e=>e.ledgerAccount),gg=y(te,e=>e.walletConnectAccount),fg=y(te,e=>e.isAccountLoading),Tg=y(te,e=>e.accountLoadingError),ac=y(te,e=>e.websocketEvent),cc=y(te,e=>e.websocketBatchEvent);n();var lc=e=>e.dappConfig,xg=y(lc,e=>e.shouldUseWebViewProvider);n();var V=e=>e.loginInfo,vg=y(V,e=>e.loginMethod),Vr=y(V,Wr,(e,t)=>Boolean(t)),Ig=y(V,e=>e.walletConnectLogin),bg=y(V,e=>e.ledgerLogin),kg=y(V,e=>e.walletLogin),Lg=y(V,e=>e.isLoginSessionInvalid),li=y(V,e=>e.tokenLogin),Eg=y(V,e=>e.logoutRoute),pc=y(V,e=>e.isWalletConnectV2Initialized);n();var pi=e=>e.modals,Rg=y(pi,e=>e.txSubmittedModal),Pg=y(pi,e=>e.notificationModal);n();var se=e=>e.networkConfig,Og=y(se,e=>e.network.chainId),Mg=y(se,e=>e.network.roundDuration),Fg=y(se,e=>e.network.walletConnectBridgeAddress),Bg=y(se,e=>e.network.walletConnectV2RelayAddress),Ug=y(se,e=>e.network.walletConnectV2ProjectId),Wg=y(se,e=>e.network.walletConnectV2Options),Vg=y(se,e=>e.network.walletConnectDeepLink),ae=y(se,e=>e.network),ui=y(ae,e=>e.apiAddress),di=y(ae,e=>e.explorerAddress),Gg=y(ae,e=>{var t;return(t=e.customWalletAddress)!=null?t:e.walletAddress}),$g=y(ae,e=>e.xAliasAddress),Hg=y(ae,e=>e.egldLabel);n();var Ot=e=>e.signedMessageInfo,zg=y(Ot,e=>e.isSigning),Kg=y(Ot,e=>e.errorMessage),Xg=y(Ot,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),Yg=y(Ot,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var mi=e=>e.toasts,Qg=y(mi,e=>e.customToasts),ef=y(mi,e=>e.transactionToasts);n();de();var gi={errorMessage:Dr,successMessage:_r,processingMessage:Or},uc=e=>e.transactionsInfo,of=y(uc,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||gi);n();n();var re=require("@multiversx/sdk-core");I();n();var Gr=require("@multiversx/sdk-core/out");n();n();function Mt(e){try{let t=atob(e),r=btoa(t),o=s.Buffer.from(e,"base64").toString(),i=s.Buffer.from(o).toString("base64"),l=e===r||r.startsWith(e),p=e===i||i.startsWith(e);if(l&&p)return!0}catch(t){return!1}return!1}function xe(e){return Mt(e)?atob(e):e}n();n();n();n();var fi=e=>{let t=e!=null?e:"";return Mt(t)?Gr.TransactionPayload.fromEncoded(t):new Gr.TransactionPayload(t)};n();I();var Ft=({data:e,onlySetGuardian:t})=>e?t?e.startsWith("SetGuardian"):Object.values(gr).some(r=>e.startsWith(r)):!1;function $r(e){var o,i,l;let t=g({},e);Ft({data:t.data,onlySetGuardian:!0})&&(delete t.senderUsername,delete t.receiverUsername);let r=new re.Transaction(g(g(w(g(w(g({value:t.value.valueOf(),data:fi(t.data),nonce:t.nonce.valueOf(),receiver:new re.Address(t.receiver)},t.receiverUsername?{receiverUsername:t.receiverUsername}:{}),{sender:new re.Address(t.sender)}),t.senderUsername?{senderUsername:t.senderUsername}:{}),{gasLimit:(o=t.gasLimit.valueOf())!=null?o:wr,gasPrice:(i=t.gasPrice.valueOf())!=null?i:Ar,chainID:t.chainID.valueOf(),version:new re.TransactionVersion((l=t.version)!=null?l:no)}),t.options?{options:new re.TransactionOptions(t.options)}:{}),t.guardian?{guardian:new re.Address(t.guardian)}:{}));return t.guardianSignature&&r.applyGuardianSignature(s.Buffer.from(t.guardianSignature,"hex")),t.signature&&r.applySignature(s.Buffer.from(t.signature,"hex")),r}n();n();I();n();n();var jr=require("@reduxjs/toolkit"),Oi=require("react-redux/lib/utils/Subscription");de();n();var Ti=A(require("lodash.throttle"));I();de();Er();ct();Fe();var gc=[it],Bt=!1,fc=(0,Ti.default)(()=>{Ue(Be())},5e3),yi=e=>t=>r=>{if(gc.includes(r.type))return t(r);let o=e.getState(),i=Re.local.getItem(he.loginExpiresAt);if(!Boolean(o==null?void 0:o.account.address))return t(r);if(i==null)return Ue(Be());let p=Date.now();return i-p<0&&!Bt?setTimeout(()=>{Bt=!0,e.dispatch(Ao())},1e3):(Bt&&(Bt=!1),fc()),t(r)};n();n();function Ut(){return typeof sessionStorage!="undefined"}var Pi=Ut()?(vi(),Oe(Ai)).default:(bi(),Oe(Ii)).default,Di=Ut()?(Li(),Oe(ki)).default:[],_i=Ut()?(Ri(),Oe(Ci)).default:e=>e;Wt();var P=(0,jr.configureStore)({reducer:Pi,middleware:e=>e({serializableCheck:{ignoredActions:[...Di,ho.type,pt.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(yi)}),Mi=(0,Oi.createSubscription)(P),gT=_i(P),fT=(0,jr.configureStore)({reducer:Se});n();n();var Uc=require("@multiversx/sdk-core/out");n();I();n();var Bi=require("@multiversx/sdk-core");U();n();var Wc=require("@multiversx/sdk-core");n();n();n();var Vc=require("@multiversx/sdk-core"),Gc=A(require("bignumber.js"));H();n();n();n();n();n();n();_();n();n();_();n();n();n();var Kc=A(require("bignumber.js"));I();n();var zc=require("@multiversx/sdk-core"),zr=A(require("bignumber.js"));I();n();var qc=A(require("bignumber.js"));n();zr.default.config({ROUNDING_MODE:zr.default.ROUND_FLOOR});n();n();n();I();n();n();n();n();I();n();I();n();var Xc=require("@multiversx/sdk-core");I();n();var qe=require("@multiversx/sdk-core"),Zc=A(require("bignumber.js"));I();n();n();var Yc=A(require("bignumber.js"));I();n();I();n();n();n();n();n();n();I();n();I();n();I();n();_();var Qc=["reDelegateRewards","claimRewards","unBond"],el=["wrapEgld","unwrapEgld"],tl=["unStake"],rl=["unDelegate"];n();n();n();I();n();var il=A(require("bignumber.js"));n();n();_();n();var al=A(require("bignumber.js"));n();n();n();n();var ll=A(require("bignumber.js"));U();n();n();n();n();H();n();var dl=require("@multiversx/sdk-web-wallet-provider");I();n();var ul=A(require("qs"));n();xt();ht();n();ht();var ES={search:We()?window.location.search:"",removeParams:[]};n();n();n();ue();n();_();n();n();ue();n();var ml=A(require("linkifyjs"));n();I();n();var gl=A(require("bignumber.js"));n();U();n();n();H();n();H();n();n();n();_();n();_();n();var fl=A(require("bignumber.js"));I();_();n();_();n();var Hi=require("react");U();n();n();_();n();n();var Tl=require("@multiversx/sdk-core/out"),yl=A(require("bignumber.js"));_();n();U();n();n();U();var AA=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var qi=require("react");U();ue();n();var xl=require("react");_();var CA=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Fr();n();var $t=e=>e.transactions,je=y($t,e=>e.signedTransactions),Sv=y($t,e=>e.signTransactionsError),wv=y($t,e=>e.signTransactionsCancelMessage),Ht=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),Av=y(je,Ht(Xo)),vv=y(je,Ht(Et)),Iv=y(je,Ht(Nt)),bv=y(je,Ht(Zo)),kv=y($t,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:w(g({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>$r(r)))||[]})}),Lv=y(je,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});var Yr=e=>{let t=e!=null?e:ui(P.getState());return t.endsWith("/")?t.slice(0,-1):t};n();var Sl=A(require("axios"));n();var wl=A(require("swr"));var Al=e=>{let r=`${Yr()}/${ot}/${e}?withGuardianInfo=true`;return ke.get(r)},ji=e=>v(void 0,null,function*(){if(!e)return null;try{let{data:t}=yield Al(e);return t}catch(t){console.error("error fetching configuration for ",e,t)}return null});var zi=e=>ji(e);n();n();var fs=A(gs());var qt=e=>{if(!e||!(0,fs.default)(e))return null;let t=e.split(".");if(t.length!==4)return null;try{let[r,o,i,l]=t,p=JSON.parse(xe(l)),d=xe(r);return{ttl:Number(i),extraInfo:p,origin:d,blockHash:o}}catch(r){return console.error(`Error trying to decode ${e}:`,r),null}};n();var vs=require("@multiversx/sdk-native-auth-client");n();var xs=A(require("axios"));n();n();n();function Ts(e){return v(this,null,function*(){return yield new Promise(t=>{setTimeout(()=>t(),e)})})}n();var ys=(e,t,r,o=0)=>v(void 0,null,function*(){try{return yield e(...r)}catch(i){return o<t.retries?((t==null?void 0:t.delay)!=null&&(yield Ts(t.delay)),yield ys(e,t,r,o+1)):null}}),hs=(e,t={retries:5,delay:500})=>(...r)=>v(void 0,null,function*(){return yield ys(e,t,r)});var zl=4,Kl=3e4,jt={current:null},we={current:null},Xl=hs((e,t,r)=>v(void 0,null,function*(){if(r){let l=Math.floor(Date.now()/1e3);return{hash:yield r(),timestamp:l}}let{data:o}=yield xs.default.get(`${e}/${lr}?from=${zl}&size=1&fields=hash,timestamp${t?"&shard="+t:""}`),[i]=o;return i}));function Ss(e,t,r,o){return v(this,null,function*(){if(e==null)throw new Error("missing api url");let i=Date.now();if(jt.current!=null&&i<jt.current.timestamp*1e3+Kl&&!o)return jt.current;if(we.current!=null)return yield we.current;we.current=Xl(e,t,r);try{let l=yield we.current;if(l==null)throw we.current=null,new Error("could not get block hash");return jt.current={hash:l.hash,timestamp:l.timestamp},we.current=null,l}catch(l){return we.current=null,null}})}n();n();st();n();function Yl(e){return Object.prototype.toString.call(e)==="[object String]"}var ws=e=>{var r;if(!e||!Yl(e))return null;let t=e.split(".");if(t.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[o,i,l]=t,p=xe(o),d=xe(i),m=qt(d);if(!m)return{address:p,body:d,signature:l,blockHash:"",origin:"",ttl:0};let T=w(g({},m),{address:p,body:d,signature:l});return(r=m.extraInfo)!=null&&r.timestamp||delete T.extraInfo,T}catch(o){return null}};var Jr={isExpired:!1},As=e=>{if(!e)return Jr;let t=ws(e);if(!t)return Jr;let r=Ce(),{ttl:o,extraInfo:i}=t,l=i==null?void 0:i.timestamp;if(!l)return Jr;let p=l+o,d=r>p,m=p-r;return{isExpired:d,expiresAt:p,secondsUntilExpires:m}};n();ue();var Ke={origin:ee().origin,apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},Xe=e=>{var r,o,i,l,p,d;return e===!0?Ke:{origin:(r=e==null?void 0:e.origin)!=null?r:Ke.origin,blockHashShard:e==null?void 0:e.blockHashShard,expirySeconds:(o=e==null?void 0:e.expirySeconds)!=null?o:Ke.expirySeconds,apiAddress:(i=e==null?void 0:e.apiAddress)!=null?i:Ke.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:Ke.tokenExpirationToastWarningSeconds,extraInfo:(p=e==null?void 0:e.extraInfo)!=null?p:{},gatewayUrl:e==null?void 0:e.gatewayUrl,extraRequestHeaders:(d=e==null?void 0:e.extraRequestHeaders)!=null?d:{}}};var Ye=e=>{let{origin:t,apiAddress:r,expirySeconds:o,blockHashShard:i,extraInfo:l,gatewayUrl:p,extraRequestHeaders:d}=Xe(e),m=new vs.NativeAuthClient({origin:t,apiUrl:r,expirySeconds:o,blockHashShard:i,gatewayUrl:p,extraRequestHeaders:d});return{getNativeAuthConfig:Xe,initialize:h=>v(void 0,null,function*(){var z,K;if(!r||!t)return"";let x=()=>m.getCurrentBlockHash(),k=(z=h==null?void 0:h.latestBlockInfo)!=null?z:yield Ss(r,i,x,h==null?void 0:h.noCache),{hash:b,timestamp:R}=k,$=m.encodeValue(JSON.stringify(g(g({},(K=h==null?void 0:h.extraInfo)!=null?K:l),R?{timestamp:R}:{})));return`${m.encodeValue(t)}.${b}.${o}.${$}`}),getToken:({address:h,token:x,signature:k})=>m.getToken(h,x,k),getTokenExpiration:As}};var Is=r=>v(void 0,[r],function*({loginToken:e,extraInfoData:t}){if(e==null||Object.keys(t).length===0)return null;let o=qt(String(e)),T=(o==null?void 0:o.extraInfo)||{},{timestamp:i}=T,l=Qe(T,["timestamp"]);if(!(o&&i!=null))return null;let d={hash:String(o==null?void 0:o.blockHash),timestamp:Number(i)};return yield Ye({extraInfo:g(g({},l),t),expirySeconds:o==null?void 0:o.ttl,origin:o==null?void 0:o.origin}).initialize({latestBlockInfo:d})});var bs=l=>v(void 0,[l],function*({loginToken:e,extraInfoData:t,address:r,signature:o,loginService:i}){let p=yield Is({loginToken:e,extraInfoData:t}),d=t.multisig||t.impersonate||r,m=p!=null?d:r;return p!=null&&i.setLoginToken(p),o&&i.setTokenLoginInfo({signature:o,address:r}),yield zi(m)});Sr();mr();Me();n();n();var Ql=require("@multiversx/sdk-extension-provider"),ep=require("@multiversx/sdk-hw-provider"),tp=require("@multiversx/sdk-metamask-provider/out/metamaskProvider"),rp=require("@multiversx/sdk-opera-provider"),np=require("@multiversx/sdk-passkey-provider/out"),op=require("@multiversx/sdk-web-wallet-provider");I();Me();n();var zt=require("@multiversx/sdk-web-wallet-iframe-provider/out"),Zl=require("@multiversx/sdk-web-wallet-iframe-provider/out/constants");H();n();n();var q=e=>`Unable to perform ${e}, Provider not initialized`,Kt=class{init(){return Promise.resolve(!1)}getAccount(){throw new Error(q("getAccount"))}setAccount(t){throw new Error(q(`setAccount: ${t}`))}login(t){throw new Error(q(`login with options: ${t}`))}logout(t){throw new Error(q(`logout with options: ${t}`))}getAddress(){throw new Error(q("getAddress"))}isInitialized(){return!1}isConnected(){return!1}sendTransaction(t,r){throw new Error(q(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(q(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(q(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(q(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(q(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(q(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},ks=new Kt;var ip=ks;function Ls(e){ip=e}W();n();var Es=require("react"),De=require("react-redux");var sp={store:P,subscription:Mi},Qr=(0,Es.createContext)(sp),hb=(0,De.createStoreHook)(Qr),Xt=(0,De.createDispatchHook)(Qr),F=(0,De.createSelectorHook)(Qr);de();H();n();function Ns(e){let t=P.getState(),r=ci(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}n();function Cs(){return Vr(P.getState())}Nr();ue();n();n();Me();U();var Rs=e=>(Object.values(Ee).forEach(t=>{if((e==null?void 0:e.intiatedLoginMethod)&&t!==e.intiatedLoginMethod)return;let r=ye.CrossWindowProvider.getInstance();r.isInitialized()&&r.dispose();let o=zt.IframeProvider.getInstance();o.isInitialized()&&o.dispose()}),null);n();var _s=require("react"),Yt=require("@multiversx/sdk-core");n();n();var en=()=>F(Ge);n();n();n();n();n();n();n();n();n();var Ze=A(require("react"));var Yb=(0,Ze.createContext)({}),Zb=P.getState();n();var Ds=A(require("react"));n();var tn=A(require("react")),ap=A(require("axios"));n();n();de();n();var cp=(e,t)=>{var r;return t?t===!0?e:(r=t.apiAddress)!=null?r:e:null},Os=e=>{let t=F(ae),r=F(li),o=(0,_s.useRef)(r==null?void 0:r.loginToken),i=cp(t.apiAddress,e),l=Xe(g(g({},e===!0?{}:e),i?{apiAddress:i}:{})),p=Boolean(e),d=Ye(l),{address:m}=en(),T=Xt(),S=b=>{o.current=b,T(mt(g(w(g({},r),{loginToken:b}),i?{nativeAuthConfig:l}:{})))},h=()=>{try{return d.initialize()}catch(b){console.error("Unable to get block. Login failed.",b);return}},x=({address:b,signature:R})=>{let $=o.current;if(!$)throw"Token not found. Call `setLoginToken` first.";if(!p){T(mt({loginToken:$,signature:R}));return}let j=d.getToken({address:b,token:$,signature:R});return T(mt(g({loginToken:$,signature:R,nativeAuthToken:j},i?{nativeAuthConfig:l}:{}))),j};return{configuration:l,setLoginToken:S,getNativeAuthLoginToken:h,setTokenLoginInfo:x,refreshNativeAuthTokenLogin:$=>v(void 0,[$],function*({signMessageCallback:b,nativeAuthClientConfig:R}){let z=yield Ye(R||l).initialize({noCache:Boolean(R)});if(o.current=z,!z)return;let K=new Yt.Message({address:new Yt.Address(m),data:s.Buffer.from(`${m}${z}`)}),N=yield b(K,{});if(!(N!=null&&N.signature))throw"Message not signed";return x({address:m,signature:s.Buffer.from(N.signature).toString("hex")})})}};var lp=({callbackRoute:e,token:t,nativeAuth:r,onLoginRedirect:o,hasConsentPopup:i,walletAddress:l})=>{let[p,d]=(0,rn.useState)(""),[m,T]=(0,rn.useState)(!1),S=r!=null,h=Os(r),x=t,k=F(ae),b=Xt(),R=Cs();function $(){return v(this,null,function*(){if(R)throw new Error(_n);Rs({intiatedLoginMethod:"crossWindow"}),T(!0);let z=yield ye.CrossWindowProvider.getInstance().init(),K=ye.CrossWindowProvider.getInstance().setWalletUrl(l!=null?l:k.walletAddress);try{if(!z){console.warn("Something went wrong trying to redirect to wallet login..");return}let{origin:N,pathname:nn}=ee(),Ms=encodeURIComponent(`${N}${e!=null?e:nn}`);if(S&&!x&&(x=yield h.getNativeAuthLoginToken(),!x)){console.warn("Fetching block failed. Login cancelled.");return}x&&h.setLoginToken(x);let Fs=g({callbackUrl:Ms},x&&{token:x});(ro&&S||i)&&K.setShouldShowConsentPopup(!0);let{signature:on,address:sn,multisig:Bs,impersonate:Us}=yield K.login(Fs);if(Ls(K),!sn){T(!1),console.warn("Login cancelled.");return}let Ae=yield bs({loginToken:x,extraInfoData:{multisig:Bs,impersonate:Us},address:sn,signature:on,loginService:h});if(!Ae)return;b(Pe({address:Ae.address,loginMethod:"crossWindow"})),b(yo(Ae.address)),b(pt(w(g({},Ae),{nonce:Ns(Ae)}))),Po({callbackRoute:e,onLoginRedirect:o,options:{signature:on,address:Ae.address}})}catch(N){console.error("error loging in",N),d("error logging in"+N.message)}finally{T(!1)}})}let j=Boolean(p);return[$,{loginFailed:j,error:p,isLoading:m&&!j,isLoggedIn:R&&!j}]};0&&(module.exports={useCrossWindowLogin});
1
+ "use strict";var Ws=Object.create;var _e=Object.defineProperty,Vs=Object.defineProperties,Gs=Object.getOwnPropertyDescriptor,$s=Object.getOwnPropertyDescriptors,Hs=Object.getOwnPropertyNames,Je=Object.getOwnPropertySymbols,qs=Object.getPrototypeOf,Zt=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable;var an=(e,t,r)=>t in e?_e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))Zt.call(t,r)&&an(e,r,t[r]);if(Je)for(var r of Je(t))cn.call(t,r)&&an(e,r,t[r]);return e},w=(e,t)=>Vs(e,$s(t));var Qe=(e,t)=>{var r={};for(var o in e)Zt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Je)for(var o of Je(e))t.indexOf(o)<0&&cn.call(e,o)&&(r[o]=e[o]);return r};var f=(e,t)=>()=>(e&&(t=e(e=0)),t);var M=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),me=(e,t)=>{for(var r in t)_e(e,r,{get:t[r],enumerable:!0})},ln=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Hs(t))!Zt.call(e,i)&&i!==r&&_e(e,i,{get:()=>t[i],enumerable:!(o=Gs(t,i))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?Ws(qs(e)):{},ln(t||!e||!e.__esModule?_e(r,"default",{value:e,enumerable:!0}):r,e)),Oe=e=>ln(_e({},"__esModule",{value:!0}),e);var v=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(T){i(T)}},p=m=>{try{d(r.throw(m))}catch(T){i(T)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var dn=M(et=>{"use strict";n();et.byteLength=zs;et.toByteArray=Xs;et.fromByteArray=Js;var X=[],B=[],js=typeof Uint8Array!="undefined"?Uint8Array:Array,Jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ge=0,pn=Jt.length;ge<pn;++ge)X[ge]=Jt[ge],B[Jt.charCodeAt(ge)]=ge;var ge,pn;B["-".charCodeAt(0)]=62;B["_".charCodeAt(0)]=63;function un(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function zs(e){var t=un(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Ks(e,t,r){return(t+r)*3/4-r}function Xs(e){var t,r=un(e),o=r[0],i=r[1],l=new js(Ks(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=B[e.charCodeAt(m)]<<18|B[e.charCodeAt(m+1)]<<12|B[e.charCodeAt(m+2)]<<6|B[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=B[e.charCodeAt(m)]<<2|B[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=B[e.charCodeAt(m)]<<10|B[e.charCodeAt(m+1)]<<4|B[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Ys(e){return X[e>>18&63]+X[e>>12&63]+X[e>>6&63]+X[e&63]}function Zs(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(Ys(o));return i.join("")}function Js(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(Zs(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(X[t>>2]+X[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(X[t>>10]+X[t>>4&63]+X[t<<2&63]+"=")),i.join("")}});var mn=M(Qt=>{n();Qt.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,T=m>>1,S=-7,h=r?i-1:0,x=r?-1:1,k=e[t+h];for(h+=x,l=k&(1<<-S)-1,k>>=-S,S+=d;S>0;l=l*256+e[t+h],h+=x,S-=8);for(p=l&(1<<-S)-1,l>>=-S,S+=o;S>0;p=p*256+e[t+h],h+=x,S-=8);if(l===0)l=1-T;else{if(l===m)return p?NaN:(k?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-T}return(k?-1:1)*p*Math.pow(2,l-o)};Qt.write=function(e,t,r,o,i,l){var p,d,m,T=l*8-i-1,S=(1<<T)-1,h=S>>1,x=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=o?0:l-1,b=o?1:-1,R=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,p=S):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+h>=1?t+=x/m:t+=x*Math.pow(2,1-h),t*m>=2&&(p++,m/=2),p+h>=S?(d=0,p=S):p+h>=1?(d=(t*m-1)*Math.pow(2,i),p=p+h):(d=t*Math.pow(2,h-1)*Math.pow(2,i),p=0));i>=8;e[r+k]=d&255,k+=b,d/=256,i-=8);for(p=p<<i|d,T+=i;T>0;e[r+k]=p&255,k+=b,p/=256,T-=8);e[r+k-b]|=R*128}});var kn=M(Ie=>{"use strict";n();var er=dn(),ve=mn(),gn=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ie.Buffer=u;Ie.SlowBuffer=oa;Ie.INSPECT_MAX_BYTES=50;var tt=2147483647;Ie.kMaxLength=tt;u.TYPED_ARRAY_SUPPORT=Qs();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Qs(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function ne(e){if(e>tt)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return or(e)}return yn(e,t,r)}u.poolSize=8192;function yn(e,t,r){if(typeof e=="string")return ta(e,t);if(ArrayBuffer.isView(e))return ra(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(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return rr(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=na(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return yn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function hn(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 ea(e,t,r){return hn(e),e<=0?ne(e):t!==void 0?typeof r=="string"?ne(e).fill(t,r):ne(e).fill(t):ne(e)}u.alloc=function(e,t,r){return ea(e,t,r)};function or(e){return hn(e),ne(e<0?0:ir(e)|0)}u.allocUnsafe=function(e){return or(e)};u.allocUnsafeSlow=function(e){return or(e)};function ta(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=xn(e,t)|0,o=ne(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function tr(e){for(var t=e.length<0?0:ir(e.length)|0,r=ne(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function ra(e){if(Y(e,Uint8Array)){var t=new Uint8Array(e);return rr(t.buffer,t.byteOffset,t.byteLength)}return tr(e)}function rr(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function na(e){if(u.isBuffer(e)){var t=ir(e.length)|0,r=ne(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||sr(e.length)?ne(0):tr(e);if(e.type==="Buffer"&&Array.isArray(e.data))return tr(e.data)}function ir(e){if(e>=tt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+tt.toString(16)+" bytes");return e|0}function oa(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),Y(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(Y(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function xn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return nr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return bn(e).length;default:if(i)return o?-1:nr(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=xn;function ia(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return fa(this,t,r);case"utf8":case"utf-8":return wn(this,t,r);case"ascii":return ma(this,t,r);case"latin1":case"binary":return ga(this,t,r);case"base64":return ua(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ta(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function fe(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)fe(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)fe(this,r,r+3),fe(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)fe(this,r,r+7),fe(this,r+1,r+6),fe(this,r+2,r+5),fe(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?wn(this,0,t):ia.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=Ie.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};gn&&(u.prototype[gn]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,d=o-r,m=Math.min(p,d),T=this.slice(i,l),S=t.slice(r,o),h=0;h<m;++h)if(T[h]!==S[h]){p=T[h],d=S[h];break}return p<d?-1:d<p?1:0};function Sn(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,sr(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:fn(e,t,r,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):fn(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function fn(e,t,r,o,i){var l=1,p=e.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,d/=2,r/=2}function m(k,b){return l===1?k[b]:k.readUInt16BE(b*l)}var T;if(i){var S=-1;for(T=r;T<p;T++)if(m(e,T)===m(t,S===-1?0:T-S)){if(S===-1&&(S=T),T-S+1===d)return S*l}else S!==-1&&(T-=T-S),S=-1}else for(r+d>p&&(r=p-d),T=r;T>=0;T--){for(var h=!0,x=0;x<d;x++)if(m(e,T+x)!==m(t,x)){h=!1;break}if(h)return T}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return Sn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return Sn(this,t,r,o,!1)};function sa(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var d=parseInt(t.substr(p*2,2),16);if(sr(d))return p;e[r+p]=d}return p}function aa(e,t,r,o){return rt(nr(t,e.length-r),e,r,o)}function ca(e,t,r,o){return rt(xa(t),e,r,o)}function la(e,t,r,o){return rt(bn(t),e,r,o)}function pa(e,t,r,o){return rt(Sa(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return sa(this,t,r,o);case"utf8":case"utf-8":return aa(this,t,r,o);case"ascii":case"latin1":case"binary":return ca(this,t,r,o);case"base64":return la(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pa(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ua(e,t,r){return t===0&&r===e.length?er.fromByteArray(e):er.fromByteArray(e.slice(t,r))}function wn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,T,S,h;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(h=(l&31)<<6|m&63,h>127&&(p=h));break;case 3:m=e[i+1],T=e[i+2],(m&192)===128&&(T&192)===128&&(h=(l&15)<<12|(m&63)<<6|T&63,h>2047&&(h<55296||h>57343)&&(p=h));break;case 4:m=e[i+1],T=e[i+2],S=e[i+3],(m&192)===128&&(T&192)===128&&(S&192)===128&&(h=(l&15)<<18|(m&63)<<12|(T&63)<<6|S&63,h>65535&&h<1114112&&(p=h))}}p===null?(p=65533,d=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=d}return da(o)}var Tn=4096;function da(e){var t=e.length;if(t<=Tn)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=Tn));return r}function ma(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function ga(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function fa(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=wa[e[l]];return i}function Ta(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function C(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||C(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||C(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||C(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||C(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||C(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||C(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||C(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||C(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||C(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||C(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||C(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||C(t,4,this.length),ve.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||C(t,4,this.length),ve.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||C(t,8,this.length),ve.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||C(t,8,this.length),ve.read(this,t,!1,52,8)};function D(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;D(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;D(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);D(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);D(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function An(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function vn(e,t,r,o,i){return t=+t,r=r>>>0,i||An(e,t,r,4,34028234663852886e22,-34028234663852886e22),ve.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return vn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return vn(this,t,r,!1,o)};function In(e,t,r,o,i){return t=+t,r=r>>>0,i||An(e,t,r,8,17976931348623157e292,-17976931348623157e292),ve.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return In(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return In(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var ya=/[^+/0-9A-Za-z-_]/g;function ha(e){if(e=e.split("=")[0],e=e.trim().replace(ya,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function nr(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function xa(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Sa(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function bn(e){return er.toByteArray(ha(e))}function rt(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Y(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function sr(e){return e!==e}var wa=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var Rn=M((Tp,Cn)=>{n();var E=Cn.exports={},Z,J;function ar(){throw new Error("setTimeout has not been defined")}function cr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Z=setTimeout:Z=ar}catch(e){Z=ar}try{typeof clearTimeout=="function"?J=clearTimeout:J=cr}catch(e){J=cr}})();function En(e){if(Z===setTimeout)return setTimeout(e,0);if((Z===ar||!Z)&&setTimeout)return Z=setTimeout,setTimeout(e,0);try{return Z(e,0)}catch(t){try{return Z.call(null,e,0)}catch(r){return Z.call(this,e,0)}}}function Aa(e){if(J===clearTimeout)return clearTimeout(e);if((J===cr||!J)&&clearTimeout)return J=clearTimeout,clearTimeout(e);try{return J(e)}catch(t){try{return J.call(null,e)}catch(r){return J.call(this,e)}}}var oe=[],be=!1,Te,nt=-1;function va(){!be||!Te||(be=!1,Te.length?oe=Te.concat(oe):nt=-1,oe.length&&Ln())}function Ln(){if(!be){var e=En(va);be=!0;for(var t=oe.length;t;){for(Te=oe,oe=[];++nt<t;)Te&&Te[nt].run();nt=-1,t=oe.length}Te=null,be=!1,Aa(e)}}E.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];oe.push(new Nn(e,t)),oe.length===1&&!be&&En(Ln)};function Nn(e,t){this.fun=e,this.array=t}Nn.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function ie(){}E.on=ie;E.addListener=ie;E.once=ie;E.off=ie;E.removeListener=ie;E.removeAllListeners=ie;E.emit=ie;E.prependListener=ie;E.prependOnceListener=ie;E.listeners=function(e){return[]};E.binding=function(e){throw new Error("process.binding is not supported")};E.cwd=function(){return"/"};E.chdir=function(e){throw new Error("process.chdir is not supported")};E.umask=function(){return 0}});var s,c,Ia,a,n=f(()=>{s=A(kn()),c=A(Rn()),Ia=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object),a=Ia});var Dn=f(()=>{"use strict";n()});var _n,mr=f(()=>{"use strict";n();_n="Action not allowed. User is logged in. Call logout() first"});var On=f(()=>{"use strict";n()});var gr,Mn=f(()=>{"use strict";n();gr=(o=>(o.SetGuardian="SetGuardian",o.GuardAccount="GuardAccount",o.UnGuardAccount="UnGuardAccount",o))(gr||{})});var Fn=f(()=>{"use strict";n()});var fr=f(()=>{"use strict";n()});var Bn=f(()=>{"use strict";n()});var Un=f(()=>{"use strict";n()});var Wn=f(()=>{"use strict";n()});var Vn=f(()=>{"use strict";n()});var ye,Ee,Me=f(()=>{"use strict";n();ye=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),Ee=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums")});var Le,Gn,_p,$n,Op,H=f(()=>{"use strict";n();Me();Le=(x=>(x.ledger="ledger",x.walletconnect="walletconnect",x.walletconnectv2="walletconnectv2",x.wallet="wallet",x.crossWindow="crossWindow",x.iframe="iframe",x.extension="extension",x.passkey="passkey",x.metamask="metamask",x.opera="opera",x.extra="extra",x.none="",x))(Le||{}),Gn=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(Gn||{}),_p=g(g({},Ee.WindowProviderRequestEnums),Gn),$n=(t=>(t.reloginResponse="RELOGIN_RESPONSE",t))($n||{}),Op=g(g({},Ee.WindowProviderResponseEnums),$n)});var Hn=f(()=>{"use strict";n()});var qn=f(()=>{"use strict";n()});var _=f(()=>{"use strict";n()});var jn=f(()=>{"use strict";n()});var zn=f(()=>{"use strict";n()});var Kn=f(()=>{"use strict";n()});var U=f(()=>{"use strict";n();Un();Wn();Vn();H();Hn();qn();_();jn();zn();Kn()});var Tr,Xn,Jp,Yn,Qp,Zn,eu,tu,ru,Jn=f(()=>{"use strict";n();U();Tr={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",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://devnet-snap-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},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",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://testnet-snap-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},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",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://snap-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:Xn,egldLabel:Jp}=Tr["devnet"],{chainId:Yn,egldLabel:Qp}=Tr["testnet"],{chainId:Zn,egldLabel:eu}=Tr["mainnet"],tu={["devnet"]:Xn,["testnet"]:Yn,["mainnet"]:Zn},ru={[Xn]:"devnet",[Yn]:"testnet",[Zn]:"mainnet"}});var yr=f(()=>{"use strict";n()});var Q,Qn=f(()=>{"use strict";n();Q=require("@multiversx/sdk-web-wallet-provider")});var pe,hr=f(()=>{"use strict";n();pe=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants")});var eo,to,xr,La,Na,ro,Sr=f(()=>{"use strict";n();hr();xr=String((to=(eo=pe.safeWindow)==null?void 0:eo.navigator)==null?void 0:to.userAgent),La=/^((?!chrome|android).)*safari/i.test(xr),Na=/firefox/i.test(xr)&&/windows/i.test(xr),ro=La||Na});var wr,Ar,no,it,oo,Ne,I=f(()=>{"use strict";n();Dn();mr();On();Mn();Fn();fr();Bn();Jn();yr();Qn();Sr();wr=5e4,Ar=1e9,no=1,it="logout",oo="login",Ne="0"});var Ce,st=f(()=>{"use strict";n();Ce=()=>Date.now()/1e3});var io=f(()=>{"use strict";n()});var so=f(()=>{"use strict";n()});var ao=f(()=>{"use strict";n();st();io();so()});var vr={};me(vr,{clear:()=>Da,getItem:()=>Ra,localStorageKeys:()=>he,removeItem:()=>Pa,setItem:()=>Ca});var he,at,Ca,Ra,Pa,Da,Fe=f(()=>{"use strict";n();ao();he={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},at=typeof localStorage!="undefined",Ca=({key:e,data:t,expires:r})=>{!at||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Ra=e=>{if(!at)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Ce()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Pa=e=>{!at||localStorage.removeItem(String(e))},Da=()=>{!at||localStorage.clear()}});var Ir={};me(Ir,{clear:()=>uo,getItem:()=>lo,removeItem:()=>po,setItem:()=>co,storage:()=>_a});var co,lo,po,uo,_a,mo=f(()=>{"use strict";n();co=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},lo=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},po=e=>sessionStorage.removeItem(String(e)),uo=()=>sessionStorage.clear(),_a={setItem:co,getItem:lo,removeItem:po,clear:uo}});var Re,ct=f(()=>{"use strict";n();Fe();mo();Re={session:Ir,local:vr}});var br,L,Pe,W=f(()=>{"use strict";n();br=require("@reduxjs/toolkit");I();L=(0,br.createAction)(it),Pe=(0,br.createAction)(oo,e=>({payload:e}))});var Er,go,fo,lt,kr,To,pt,yo,ho,Bu,Uu,Wu,Vu,Gu,$u,Hu,qu,ut,dt=f(()=>{"use strict";n();Er=require("@multiversx/sdk-core"),go=require("@reduxjs/toolkit"),fo=require("redux-persist");I();ct();Fe();W();lt={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:Ne},kr={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":lt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},To=(0,go.createSlice)({name:"accountInfoSlice",initialState:kr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=r?new Er.Address(r).hex():""},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:lt},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(L,()=>(Re.local.removeItem(he.loginExpiresAt),kr)),e.addCase(Pe,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new Er.Address(o).hex()}),e.addCase(fo.REHYDRATE,(t,r)=>{var T;if(!((T=r.payload)!=null&&T.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let m=p&&i in p;t.accounts=m?p:kr.accounts,t.publicKey=d})}}),{setAccount:pt,setAddress:yo,setAccountNonce:ho,setAccountShard:Bu,setLedgerAccount:Uu,updateLedgerAccount:Wu,setWalletConnectAccount:Vu,setIsAccountLoading:Gu,setAccountLoadingError:$u,setWebsocketEvent:Hu,setWebsocketBatchEvent:qu}=To.actions,ut=To.reducer});function Be(){return new Date().setHours(new Date().getHours()+24)}function Ue(e){Re.local.setItem({key:he.loginExpiresAt,data:e,expires:e})}var Lr=f(()=>{"use strict";n();ct();Fe()});var So,xo,wo,td,rd,nd,mt,od,id,Ao,sd,ad,cd,gt,ft=f(()=>{"use strict";n();So=require("@reduxjs/toolkit");Lr();H();W();xo={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,passkeyLogin:null,operaLogin:null,crossWindowLogin:null,iframeWindowLogin:null,isLoginSessionInvalid:!1,webviewLogin:null},wo=(0,So.createSlice)({name:"loginInfoSlice",initialState:xo,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},setWebviewLogin:(e,t)=>{e.webviewLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload},setIsWalletConnectV2Initialized:(e,t)=>{e.isWalletConnectV2Initialized=t.payload}},extraReducers:e=>{e.addCase(L,()=>xo),e.addCase(Pe,(t,r)=>{t.isLoginSessionInvalid=!1,t.loginMethod=r.payload.loginMethod,t.iframeLoginType=r.payload.iframeLoginType,Ue(Be())})}}),{setLoginMethod:td,setWalletConnectLogin:rd,setLedgerLogin:nd,setTokenLogin:mt,setTokenLoginSignature:od,setWalletLogin:id,invalidateLoginSession:Ao,setLogoutRoute:sd,setIsWalletConnectV2Initialized:ad,setWebviewLogin:cd}=wo.actions,gt=wo.reducer});var Io,vo,bo,dd,md,gd,fd,Tt,yt=f(()=>{"use strict";n();Io=require("@reduxjs/toolkit");W();vo={},bo=(0,Io.createSlice)({name:"modalsSlice",initialState:vo,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(L,()=>vo)}}),{setTxSubmittedModal:dd,setNotificationModal:md,clearTxSubmittedModal:gd,clearNotificationModal:fd}=bo.actions,Tt=bo.reducer});var We,ht=f(()=>{"use strict";n();We=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined"});var ee,ue=f(()=>{"use strict";n();ht();ee=()=>{if(!We())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:t,hash:r,origin:o,href:i,search:l}}=window;return{pathname:t,hash:r,origin:o,href:i,search:l}}});var ko=f(()=>{"use strict";n();ue()});var Eo=f(()=>{"use strict";n();xt()});var Lo,No=f(()=>{"use strict";n();hr();Lo=e=>{if(!pe.safeWindow.location)return;if(!new URL(pe.safeWindow.location.href).protocol.startsWith("http"))return pe.safeWindow.location.reload();pe.safeWindow.location.assign(e)}});var xt=f(()=>{"use strict";n();ko();Eo();ue();No()});var Oa,Co,Ro=f(()=>{"use strict";n();xt();Oa=!1,Co=({timeout:e=0,url:t})=>{Oa||setTimeout(()=>{if(!!window)return Lo(t)},e)}});function Po({callbackRoute:e,onLoginRedirect:t,options:r}){let o=Boolean(e),i=typeof t=="function";if(o&&e!=null){if(i)return t(e,r);Co({url:e,timeout:Ma})}}var Ma,Do=f(()=>{"use strict";n();Ro();Ma=200});function _o(e){return e[Math.floor(Math.random()*e.length)]}var Oo=f(()=>{"use strict";n()});var Mo=f(()=>{"use strict";n();fr()});var Nr=f(()=>{"use strict";n();Do();Oo();Mo()});var Fo,Bo,Uo,Cr,Ba,Wo,zd,Kd,Xd,St,wt=f(()=>{"use strict";n();Fo=require("@reduxjs/toolkit"),Bo=A(require("lodash.omit")),Uo=require("redux-persist");yr();W();Nr();Cr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000",roundDuration:6e3},Ba={network:Cr},Wo=(0,Fo.createSlice)({name:"appConfig",initialState:Ba,reducers:{initializeNetworkConfig:(e,t)=>{let r=_o(t.payload.walletConnectV2RelayAddresses),o=(0,Bo.default)(t.payload,"walletConnectV2RelayAddresses");e.network=w(g(g({},e.network),o),{walletConnectV2RelayAddress:r})},updateNetworkConfig:(e,t)=>{e.network=g(g({},e.network),t.payload)},setCustomWalletAddress:(e,t)=>{e.network.customWalletAddress=t.payload}},extraReducers:e=>{e.addCase(L,t=>{t.network.customWalletAddress=void 0}),e.addCase(Uo.REHYDRATE,(t,r)=>{var i,l;if(!((l=(i=r.payload)==null?void 0:i.network)!=null&&l.customWalletAddress))return;let{network:{customWalletAddress:o}}=r.payload;t.network.customWalletAddress=o})}}),{initializeNetworkConfig:zd,updateNetworkConfig:Kd,setCustomWalletAddress:Xd}=Wo.actions,St=Wo.reducer});var Vo,Rr,Go,tm,rm,nm,At,vt=f(()=>{"use strict";n();Vo=require("@reduxjs/toolkit");U();W();Rr={isSigning:!1,signedSessions:{}},Go=(0,Vo.createSlice)({name:"signedMessageInfoSliceState",initialState:Rr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=g(g({},e.signedSessions[r]),o)},setSignSessionState:(e,t)=>g(g({},e),t.payload),clearSignedMessageInfo:()=>Rr},extraReducers:e=>{e.addCase(L,()=>Rr)}}),{setSignSession:tm,clearSignedMessageInfo:rm,setSignSessionState:nm}=Go.actions,At=Go.reducer});var Ho,qo,$o,jo,pm,um,dm,mm,It,bt=f(()=>{"use strict";n();Ho=require("@reduxjs/toolkit"),qo=require("redux-persist");U();st();W();$o={customToasts:[],transactionToasts:[]},jo=(0,Ho.createSlice)({name:"toastsSlice",initialState:$o,reducers:{addCustomToast:(e,t)=>{let r=t.payload.toastId||`custom-toast-${e.customToasts.length+1}`,o=e.customToasts.findIndex(i=>i.toastId===r);if(o!==-1){e.customToasts[o]=w(g(g({},e.customToasts[o]),t.payload),{type:"custom",toastId:r});return}e.customToasts.push(w(g({},t.payload),{type:"custom",toastId:r}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Ce(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)}},extraReducers:e=>{e.addCase(L,()=>$o),e.addCase(qo.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:pm,removeCustomToast:um,addTransactionToast:dm,removeTransactionToast:mm}=jo.actions,It=jo.reducer});var zo,Dr,_r,Or,Ua,Pr,Ko,ym,hm,xm,kt,Et=f(()=>{"use strict";n();zo=require("@reduxjs/toolkit");W();Dr="Transaction failed",_r="Transaction successful",Or="Processing transaction",Ua="Transaction submitted",Pr={},Ko=(0,zo.createSlice)({name:"transactionsInfo",initialState:Pr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||Dr,successMessage:(o==null?void 0:o.successMessage)||_r,processingMessage:(o==null?void 0:o.processingMessage)||Or,submittedMessage:(o==null?void 0:o.submittedMessage)||Ua,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Pr},extraReducers:e=>{e.addCase(L,()=>Pr)}}),{clearTransactionsInfo:ym,setTransactionsDisplayInfo:hm,clearTransactionsInfoForSessionId:xm}=Ko.actions,kt=Ko.reducer});function Xo(e){return e!=null&&(Ya(e)||tc(e))}function Lt(e){return e!=null&&(Za(e)||rc(e))}function Nt(e){return e!=null&&(Ja(e)||nc(e))}function Yo(e){return e!=null&&(Qa(e)||oc(e))}function Zo(e){return e!=null&&ec(e)}function Ya(e){return e!=null&&Va.includes(e)}function Za(e){return e!=null&&Ga.includes(e)}function Ja(e){return e!=null&&$a.includes(e)}function Qa(e){return e!=null&&Ha.includes(e)}function ec(e){return e!=null&&qa.includes(e)}function tc(e){return e!=null&&ja.includes(e)}function rc(e){return e!=null&&za.includes(e)}function nc(e){return e!=null&&Ka.includes(e)}function oc(e){return e!=null&&Xa.includes(e)}var Va,Ga,$a,Ha,qa,ja,za,Ka,Xa,Fr=f(()=>{"use strict";n();H();Va=["sent"],Ga=["success"],$a=["fail","cancelled","timedOut"],Ha=["invalid"],qa=["timedOut"],ja=["pending"],za=["success"],Ka=["fail","invalid"],Xa=["not executed"]});var Jo,Qo,Ve,ic,ei,Lm,Nm,Cm,Rm,Pm,Dm,_m,Om,Mm,Fm,Bm,Ct,Rt=f(()=>{"use strict";n();Jo=require("@reduxjs/toolkit"),Qo=require("redux-persist");H();Fr();W();Ve={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},ic={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},ei=(0,Jo.createSlice)({name:"transactionsSlice",initialState:Ve,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,T;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p,customTransactionInformation:d}=t.payload;e.customTransactionInformationForSessionId[r]=g(g(g({},ic),((m=e.signedTransactions[r])==null?void 0:m.customTransactionInformation)||{}),e.customTransactionInformationForSessionId[r]||{}),e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:g(g({},e.customTransactionInformationForSessionId[r]),d!=null?d:{})},((T=e==null?void 0:e.transactionsToSign)==null?void 0:T.sessionId)===r&&(e.transactionsToSign=Ve.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=g(g({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var T,S,h,x,k,b,R,$;let{sessionId:r,status:o,errorMessage:i,transactionHash:l,serverTransaction:p,inTransit:d}=t.payload,m=(S=(T=e.signedTransactions)==null?void 0:T[r])==null?void 0:S.transactions;if(m!=null){e.signedTransactions[r].transactions=m.map(N=>N.hash===l?w(g(g({},p!=null?p:{}),N),{status:o,errorMessage:i,inTransit:d}):N);let j=(x=(h=e.signedTransactions[r])==null?void 0:h.transactions)==null?void 0:x.every(N=>Lt(N.status)),z=(b=(k=e.signedTransactions[r])==null?void 0:k.transactions)==null?void 0:b.some(N=>Nt(N.status)),K=($=(R=e.signedTransactions[r])==null?void 0:R.transactions)==null?void 0:$.every(N=>Yo(N.status));j&&(e.signedTransactions[r].status="success"),z&&(e.signedTransactions[r].status="fail"),K&&(e.signedTransactions[r].status="invalid")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=Ve.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Ve.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload},updateSignedTransactionsCustomTransactionInformation:(e,t)=>{let{sessionId:r,customTransactionInformationOverrides:o}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].customTransactionInformation=g(g({},e.signedTransactions[r].customTransactionInformation),o))}},extraReducers:e=>{e.addCase(L,()=>Ve),e.addCase(Qo.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((d,[m,T])=>{let S=new Date(m),h=new Date;return h.setHours(h.getHours()+5),h-S>0||(d[m]=T),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Lm,updateSignedTransactions:Nm,setTransactionsToSign:Cm,clearAllTransactionsToSign:Rm,clearAllSignedTransactions:Pm,clearSignedTransaction:Dm,clearTransactionToSign:_m,setSignTransactionsError:Om,setSignTransactionsCancelMessage:Mm,moveTransactionsToSignedState:Fm,updateSignedTransactionsCustomTransactionInformation:Bm}=ei.actions,Ct=ei.reducer});var ti,Br,ri,Gm,$m,Hm,qm,Pt,Dt=f(()=>{"use strict";n();ti=require("@reduxjs/toolkit");W();Br={},ri=(0,ti.createSlice)({name:"batchTransactionsSlice",initialState:Br,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>Br},extraReducers:e=>{e.addCase(L,()=>Br)}}),{setBatchTransactions:Gm,updateBatchTransactions:$m,clearBatchTransactions:Hm,clearAllBatchTransactions:qm}=ri.actions,Pt=ri.reducer});var oi,ni,ii,Xm,si,Ur=f(()=>{"use strict";n();oi=require("@reduxjs/toolkit");W();ni={},ii=(0,oi.createSlice)({name:"dappConfigSlice",initialState:ni,reducers:{setDappConfig:(e,t)=>t.payload},extraReducers:e=>{e.addCase(L,()=>ni)}}),{setDappConfig:Xm}=ii.actions,si=ii.reducer});var de=f(()=>{"use strict";n();dt();ft();yt();wt();vt();bt();Et();Rt();Dt();Ur()});var Hr=f(()=>{"use strict";n()});var hi,yc,hc,Se,Wt=f(()=>{"use strict";n();hi=require("@reduxjs/toolkit");Hr();dt();Dt();Ur();ft();yt();wt();vt();bt();Et();Rt();yc={["account"]:ut,["dappConfig"]:si,["loginInfo"]:gt,["modals"]:Tt,["networkConfig"]:St,["signedMessageInfo"]:At,["toasts"]:It,["transactionsInfo"]:kt,["transactions"]:Ct,["batchTransactions"]:Pt},hc=(e={})=>(0,hi.combineReducers)(g(g({},yc),e)),Se=hc});var Ai={};me(Ai,{default:()=>_c,sessionStorageReducers:()=>qr});function ce(e,t=[]){return{key:e,version:1,storage:Si.default,blacklist:t}}var O,xi,Si,xc,$e,Sc,wc,Ac,vc,Ic,bc,kc,Ec,Lc,Nc,wi,Cc,qr,Rc,Pc,Dc,_c,vi=f(()=>{"use strict";n();O=require("redux-persist"),xi=A(require("redux-persist/lib/storage")),Si=A(require("redux-persist/lib/storage/session"));Wt();de();dt();Dt();ft();yt();wt();vt();bt();Et();Rt();Hr();xc={persistReducersStorageType:"localStorage"},$e={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Sc=ce($e["account"]),wc=ce($e["loginInfo"]),Ac=ce($e["modals"]),vc=ce($e["networkConfig"]),Ic={2:e=>w(g({},e),{networkConfig:Cr})};bc=ce("sdk-dapp-transactionsInfo"),kc=ce("sdk-dapp-transactions",["transactionsToSign"]),Ec=ce("sdk-dapp-batchTransactions",["batchTransactions"]),Lc=ce("sdk-dapp-toasts"),Nc=ce("sdk-dapp-signedMessageInfo"),wi={key:"sdk-dapp-store",version:2,storage:xi.default,whitelist:Object.keys($e),migrate:(0,O.createMigrate)(Ic,{debug:!1})},Cc=w(g({},wi),{whitelist:[]}),qr={["toasts"]:(0,O.persistReducer)(Lc,It),["transactions"]:(0,O.persistReducer)(kc,Ct),["transactionsInfo"]:(0,O.persistReducer)(bc,kt),["batchTransactions"]:(0,O.persistReducer)(Ec,Pt),["signedMessageInfo"]:(0,O.persistReducer)(Nc,At)},Rc=w(g({},qr),{["account"]:(0,O.persistReducer)(Sc,ut),["loginInfo"]:(0,O.persistReducer)(wc,gt),["modals"]:(0,O.persistReducer)(Ac,Tt),["networkConfig"]:(0,O.persistReducer)(vc,St)}),Pc=xc.persistReducersStorageType==="localStorage",Dc=Pc?(0,O.persistReducer)(wi,Se(qr)):(0,O.persistReducer)(Cc,Se(Rc)),_c=Dc});var Ii={};me(Ii,{default:()=>Oc});var Oc,bi=f(()=>{"use strict";n();Wt();Oc=Se()});var ki={};me(ki,{default:()=>Fc});var G,Mc,Fc,Ei=f(()=>{"use strict";n();G=require("redux-persist"),Mc=[G.FLUSH,G.REHYDRATE,G.PAUSE,G.PERSIST,G.PURGE,G.REGISTER],Fc=Mc});var Ci={};me(Ci,{default:()=>Ni});function Ni(e){return(0,Li.persistStore)(e)}var Li,Ri=f(()=>{"use strict";n();Li=require("redux-persist")});var Xi=M((cI,Ki)=>{n();var vl=typeof a=="object"&&a&&a.Object===Object&&a;Ki.exports=vl});var Zi=M((lI,Yi)=>{n();var Il=Xi(),bl=typeof self=="object"&&self&&self.Object===Object&&self,kl=Il||bl||Function("return this")();Yi.exports=kl});var Zr=M((pI,Ji)=>{n();var El=Zi(),Ll=El.Symbol;Ji.exports=Ll});var rs=M((uI,ts)=>{n();var Qi=Zr(),es=Object.prototype,Nl=es.hasOwnProperty,Cl=es.toString,ze=Qi?Qi.toStringTag:void 0;function Rl(e){var t=Nl.call(e,ze),r=e[ze];try{e[ze]=void 0;var o=!0}catch(l){}var i=Cl.call(e);return o&&(t?e[ze]=r:delete e[ze]),i}ts.exports=Rl});var os=M((dI,ns)=>{n();var Pl=Object.prototype,Dl=Pl.toString;function _l(e){return Dl.call(e)}ns.exports=_l});var cs=M((mI,as)=>{n();var is=Zr(),Ol=rs(),Ml=os(),Fl="[object Null]",Bl="[object Undefined]",ss=is?is.toStringTag:void 0;function Ul(e){return e==null?e===void 0?Bl:Fl:ss&&ss in Object(e)?Ol(e):Ml(e)}as.exports=Ul});var ps=M((gI,ls)=>{n();var Wl=Array.isArray;ls.exports=Wl});var ds=M((fI,us)=>{n();function Vl(e){return e!=null&&typeof e=="object"}us.exports=Vl});var gs=M((TI,ms)=>{n();var Gl=cs(),$l=ps(),Hl=ds(),ql="[object String]";function jl(e){return typeof e=="string"||!$l(e)&&Hl(e)&&Gl(e)==ql}ms.exports=jl});var pp={};me(pp,{useCrossWindowLogin:()=>lp});module.exports=Oe(pp);n();var rn=require("react");n();n();n();n();var ot="accounts";var lr="blocks";n();n();n();var Pn=require("@lifeomic/axios-fetch"),pr=A(require("axios")),ur=(0,Pn.buildAxiosFetch)(pr.default),dr=(e,t)=>v(void 0,null,function*(){if(!e.ok)throw new Error(`HTTP error! Status: ${e.status}`);let o=e.clone().json(),[i]=yield Promise.all([o]);return{data:i,status:e.status,statusText:e.statusText,headers:e.headers,config:t}});function ba(e,t,r){return v(this,null,function*(){try{let o=yield ur(e,g({method:"POST",body:t?JSON.stringify(t):void 0,headers:g({"Content-Type":"application/json"},(r==null?void 0:r.headers)||{})},r));return dr(o,r)}catch(o){throw console.error("Fetch Error:",o),o}})}function ka(e,t){return v(this,null,function*(){try{let r=yield ur(e,t);if(!r.ok)throw new Error(`HTTP error! Status: ${r.status}`);return dr(r,t)}catch(r){throw console.error("Fetch Error:",r),r}})}function Ea(e,t,r){return v(this,null,function*(){try{let o=yield ur(e,g({method:"PATCH",body:t?JSON.stringify(t):void 0,headers:(r==null?void 0:r.headers)||{}},r));if(!o.ok)throw new Error(`HTTP error! Status: ${o.status}`);return dr(o,r)}catch(o){throw console.error("Fetch Error:",o),o}})}var ke=pr.default.create();ke.get=ka;ke.post=ba;ke.patch=Ea;n();n();n();de();n();var ai=A(require("lodash.isequal")),_t=require("reselect"),y=(0,_t.createSelectorCreator)(_t.defaultMemoize,ai.default);var te=e=>e.account,Wr=y(te,e=>e.address),Ge=y(te,Wr,(e,t)=>t in e.accounts?e.accounts[t]:lt),sc=y(te,Ge,(e,t)=>{let i=e,{accounts:r}=i,o=Qe(i,["accounts"]);return w(g({},o),{address:t.address,account:t})}),ug=y(Ge,e=>e.balance),ci=y(Ge,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),dg=y(te,e=>e.shard),mg=y(te,e=>e.ledgerAccount),gg=y(te,e=>e.walletConnectAccount),fg=y(te,e=>e.isAccountLoading),Tg=y(te,e=>e.accountLoadingError),ac=y(te,e=>e.websocketEvent),cc=y(te,e=>e.websocketBatchEvent);n();var lc=e=>e.dappConfig,xg=y(lc,e=>e.shouldUseWebViewProvider);n();var V=e=>e.loginInfo,vg=y(V,e=>e.loginMethod),Vr=y(V,Wr,(e,t)=>Boolean(t)),Ig=y(V,e=>e.walletConnectLogin),bg=y(V,e=>e.ledgerLogin),kg=y(V,e=>e.walletLogin),Eg=y(V,e=>e.isLoginSessionInvalid),li=y(V,e=>e.tokenLogin),Lg=y(V,e=>e.logoutRoute),pc=y(V,e=>e.isWalletConnectV2Initialized);n();var pi=e=>e.modals,Rg=y(pi,e=>e.txSubmittedModal),Pg=y(pi,e=>e.notificationModal);n();var se=e=>e.networkConfig,Og=y(se,e=>e.network.chainId),Mg=y(se,e=>e.network.roundDuration),Fg=y(se,e=>e.network.walletConnectBridgeAddress),Bg=y(se,e=>e.network.walletConnectV2RelayAddress),Ug=y(se,e=>e.network.walletConnectV2ProjectId),Wg=y(se,e=>e.network.walletConnectV2Options),Vg=y(se,e=>e.network.walletConnectDeepLink),ae=y(se,e=>e.network),ui=y(ae,e=>e.apiAddress),di=y(ae,e=>e.explorerAddress),Gg=y(ae,e=>{var t;return(t=e.customWalletAddress)!=null?t:e.walletAddress}),$g=y(ae,e=>e.xAliasAddress),Hg=y(ae,e=>e.egldLabel);n();var Ot=e=>e.signedMessageInfo,zg=y(Ot,e=>e.isSigning),Kg=y(Ot,e=>e.errorMessage),Xg=y(Ot,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),Yg=y(Ot,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var mi=e=>e.toasts,Qg=y(mi,e=>e.customToasts),ef=y(mi,e=>e.transactionToasts);n();de();var gi={errorMessage:Dr,successMessage:_r,processingMessage:Or},uc=e=>e.transactionsInfo,of=y(uc,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||gi);n();n();var re=require("@multiversx/sdk-core");I();n();var Gr=require("@multiversx/sdk-core/out");n();n();function Mt(e){try{let t=atob(e),r=btoa(t),o=s.Buffer.from(e,"base64").toString(),i=s.Buffer.from(o).toString("base64"),l=e===r||r.startsWith(e),p=e===i||i.startsWith(e);if(l&&p)return!0}catch(t){return!1}return!1}function xe(e){return Mt(e)?atob(e):e}n();n();n();n();var fi=e=>{let t=e!=null?e:"";return Mt(t)?Gr.TransactionPayload.fromEncoded(t):new Gr.TransactionPayload(t)};n();I();var Ft=({data:e,onlySetGuardian:t})=>e?t?e.startsWith("SetGuardian"):Object.values(gr).some(r=>e.startsWith(r)):!1;function $r(e){var o,i,l;let t=g({},e);Ft({data:t.data,onlySetGuardian:!0})&&(delete t.senderUsername,delete t.receiverUsername);let r=new re.Transaction(g(g(w(g(w(g({value:t.value.valueOf(),data:fi(t.data),nonce:t.nonce.valueOf(),receiver:new re.Address(t.receiver)},t.receiverUsername?{receiverUsername:t.receiverUsername}:{}),{sender:new re.Address(t.sender)}),t.senderUsername?{senderUsername:t.senderUsername}:{}),{gasLimit:(o=t.gasLimit.valueOf())!=null?o:wr,gasPrice:(i=t.gasPrice.valueOf())!=null?i:Ar,chainID:t.chainID.valueOf(),version:new re.TransactionVersion((l=t.version)!=null?l:no)}),t.options?{options:new re.TransactionOptions(t.options)}:{}),t.guardian?{guardian:new re.Address(t.guardian)}:{}));return t.guardianSignature&&r.applyGuardianSignature(s.Buffer.from(t.guardianSignature,"hex")),t.signature&&r.applySignature(s.Buffer.from(t.signature,"hex")),r}n();n();I();n();n();var jr=require("@reduxjs/toolkit"),Oi=require("react-redux/lib/utils/Subscription");de();n();var Ti=A(require("lodash.throttle"));I();de();Lr();ct();Fe();var gc=[it],Bt=!1,fc=(0,Ti.default)(()=>{Ue(Be())},5e3),yi=e=>t=>r=>{if(gc.includes(r.type))return t(r);let o=e.getState(),i=Re.local.getItem(he.loginExpiresAt);if(!Boolean(o==null?void 0:o.account.address))return t(r);if(i==null)return Ue(Be());let p=Date.now();return i-p<0&&!Bt?setTimeout(()=>{Bt=!0,e.dispatch(Ao())},1e3):(Bt&&(Bt=!1),fc()),t(r)};n();n();function Ut(){return typeof sessionStorage!="undefined"}var Pi=Ut()?(vi(),Oe(Ai)).default:(bi(),Oe(Ii)).default,Di=Ut()?(Ei(),Oe(ki)).default:[],_i=Ut()?(Ri(),Oe(Ci)).default:e=>e;Wt();var P=(0,jr.configureStore)({reducer:Pi,middleware:e=>e({serializableCheck:{ignoredActions:[...Di,ho.type,pt.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(yi)}),Mi=(0,Oi.createSubscription)(P),gT=_i(P),fT=(0,jr.configureStore)({reducer:Se});n();n();var Uc=require("@multiversx/sdk-core/out");n();I();n();var Bi=require("@multiversx/sdk-core");U();n();var Wc=require("@multiversx/sdk-core");n();n();n();var Vc=require("@multiversx/sdk-core"),Gc=A(require("bignumber.js"));H();n();n();n();n();n();n();_();n();n();_();n();n();n();var Kc=A(require("bignumber.js"));I();n();var zc=require("@multiversx/sdk-core"),zr=A(require("bignumber.js"));I();n();var qc=A(require("bignumber.js"));n();zr.default.config({ROUNDING_MODE:zr.default.ROUND_FLOOR});n();n();n();I();n();n();n();n();I();n();I();n();var Xc=require("@multiversx/sdk-core");I();n();var qe=require("@multiversx/sdk-core"),Zc=A(require("bignumber.js"));I();n();n();var Yc=A(require("bignumber.js"));I();n();I();n();n();n();n();n();n();I();n();I();n();I();n();_();var Qc=["reDelegateRewards","claimRewards","unBond"],el=["wrapEgld","unwrapEgld"],tl=["unStake"],rl=["unDelegate"];n();n();n();I();n();var il=A(require("bignumber.js"));n();n();_();n();var al=A(require("bignumber.js"));n();n();n();n();var ll=A(require("bignumber.js"));U();n();n();n();n();H();n();var dl=require("@multiversx/sdk-web-wallet-provider");I();n();var ul=A(require("qs"));n();xt();ht();n();ht();var LS={search:We()?window.location.search:"",removeParams:[]};n();n();n();ue();n();_();n();n();ue();n();var ml=A(require("linkifyjs"));n();I();n();var gl=A(require("bignumber.js"));n();U();n();n();H();n();H();n();n();n();_();n();_();n();var fl=A(require("bignumber.js"));I();_();n();_();n();var Hi=require("react");U();n();n();_();n();n();var Tl=require("@multiversx/sdk-core/out"),yl=A(require("bignumber.js"));_();n();U();n();n();U();var AA=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var qi=require("react");U();ue();n();var xl=require("react");_();var CA=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Fr();n();var $t=e=>e.transactions,je=y($t,e=>e.signedTransactions),Sv=y($t,e=>e.signTransactionsError),wv=y($t,e=>e.signTransactionsCancelMessage),Ht=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),Av=y(je,Ht(Xo)),vv=y(je,Ht(Lt)),Iv=y(je,Ht(Nt)),bv=y(je,Ht(Zo)),kv=y($t,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:w(g({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>$r(r)))||[]})}),Ev=y(je,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});var Yr=e=>{let t=e!=null?e:ui(P.getState());return t.endsWith("/")?t.slice(0,-1):t};n();var Sl=A(require("axios"));n();var wl=A(require("swr"));var Al=e=>{let r=`${Yr()}/${ot}/${e}?withGuardianInfo=true`;return ke.get(r)},ji=e=>v(void 0,null,function*(){if(!e)return null;try{let{data:t}=yield Al(e);return t}catch(t){console.error("error fetching configuration for ",e,t)}return null});var zi=e=>ji(e);n();n();var fs=A(gs());var qt=e=>{if(!e||!(0,fs.default)(e))return null;let t=e.split(".");if(t.length!==4)return null;try{let[r,o,i,l]=t,p=JSON.parse(xe(l)),d=xe(r);return{ttl:Number(i),extraInfo:p,origin:d,blockHash:o}}catch(r){return console.error(`Error trying to decode ${e}:`,r),null}};n();var vs=require("@multiversx/sdk-native-auth-client");n();var xs=A(require("axios"));n();n();n();function Ts(e){return v(this,null,function*(){return yield new Promise(t=>{setTimeout(()=>t(),e)})})}n();var ys=(e,t,r,o=0)=>v(void 0,null,function*(){try{return yield e(...r)}catch(i){return o<t.retries?((t==null?void 0:t.delay)!=null&&(yield Ts(t.delay)),yield ys(e,t,r,o+1)):null}}),hs=(e,t={retries:5,delay:500})=>(...r)=>v(void 0,null,function*(){return yield ys(e,t,r)});var zl=4,Kl=3e4,jt={current:null},we={current:null},Xl=hs((e,t,r)=>v(void 0,null,function*(){if(r){let l=Math.floor(Date.now()/1e3);return{hash:yield r(),timestamp:l}}let{data:o}=yield xs.default.get(`${e}/${lr}?from=${zl}&size=1&fields=hash,timestamp${t?"&shard="+t:""}`),[i]=o;return i}));function Ss(e,t,r,o){return v(this,null,function*(){if(e==null)throw new Error("missing api url");let i=Date.now();if(jt.current!=null&&i<jt.current.timestamp*1e3+Kl&&!o)return jt.current;if(we.current!=null)return yield we.current;we.current=Xl(e,t,r);try{let l=yield we.current;if(l==null)throw we.current=null,new Error("could not get block hash");return jt.current={hash:l.hash,timestamp:l.timestamp},we.current=null,l}catch(l){return we.current=null,null}})}n();n();st();n();function Yl(e){return Object.prototype.toString.call(e)==="[object String]"}var ws=e=>{var r;if(!e||!Yl(e))return null;let t=e.split(".");if(t.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[o,i,l]=t,p=xe(o),d=xe(i),m=qt(d);if(!m)return{address:p,body:d,signature:l,blockHash:"",origin:"",ttl:0};let T=w(g({},m),{address:p,body:d,signature:l});return(r=m.extraInfo)!=null&&r.timestamp||delete T.extraInfo,T}catch(o){return null}};var Jr={isExpired:!1},As=e=>{if(!e)return Jr;let t=ws(e);if(!t)return Jr;let r=Ce(),{ttl:o,extraInfo:i}=t,l=i==null?void 0:i.timestamp;if(!l)return Jr;let p=l+o,d=r>p,m=p-r;return{isExpired:d,expiresAt:p,secondsUntilExpires:m}};n();ue();var Ke={origin:ee().origin,apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},Xe=e=>{var r,o,i,l,p,d;return e===!0?Ke:{origin:(r=e==null?void 0:e.origin)!=null?r:Ke.origin,blockHashShard:e==null?void 0:e.blockHashShard,expirySeconds:(o=e==null?void 0:e.expirySeconds)!=null?o:Ke.expirySeconds,apiAddress:(i=e==null?void 0:e.apiAddress)!=null?i:Ke.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:Ke.tokenExpirationToastWarningSeconds,extraInfo:(p=e==null?void 0:e.extraInfo)!=null?p:{},gatewayUrl:e==null?void 0:e.gatewayUrl,extraRequestHeaders:(d=e==null?void 0:e.extraRequestHeaders)!=null?d:{}}};var Ye=e=>{let{origin:t,apiAddress:r,expirySeconds:o,blockHashShard:i,extraInfo:l,gatewayUrl:p,extraRequestHeaders:d}=Xe(e),m=new vs.NativeAuthClient({origin:t,apiUrl:r,expirySeconds:o,blockHashShard:i,gatewayUrl:p,extraRequestHeaders:d});return{getNativeAuthConfig:Xe,initialize:h=>v(void 0,null,function*(){var z,K;if(!r||!t)return"";let x=()=>m.getCurrentBlockHash(),k=(z=h==null?void 0:h.latestBlockInfo)!=null?z:yield Ss(r,i,x,h==null?void 0:h.noCache),{hash:b,timestamp:R}=k,$=m.encodeValue(JSON.stringify(g(g({},(K=h==null?void 0:h.extraInfo)!=null?K:l),R?{timestamp:R}:{})));return`${m.encodeValue(t)}.${b}.${o}.${$}`}),getToken:({address:h,token:x,signature:k})=>m.getToken(h,x,k),getTokenExpiration:As}};var Is=r=>v(void 0,[r],function*({loginToken:e,extraInfoData:t}){if(e==null||Object.keys(t).length===0)return null;let o=qt(String(e)),T=(o==null?void 0:o.extraInfo)||{},{timestamp:i}=T,l=Qe(T,["timestamp"]);if(!(o&&i!=null))return null;let d={hash:String(o==null?void 0:o.blockHash),timestamp:Number(i)};return yield Ye({extraInfo:g(g({},l),t),expirySeconds:o==null?void 0:o.ttl,origin:o==null?void 0:o.origin}).initialize({latestBlockInfo:d})});var bs=l=>v(void 0,[l],function*({loginToken:e,extraInfoData:t,address:r,signature:o,loginService:i}){let p=yield Is({loginToken:e,extraInfoData:t}),d=t.multisig||t.impersonate||r,m=p!=null?d:r;return p!=null&&i.setLoginToken(p),o&&i.setTokenLoginInfo({signature:o,address:r}),yield zi(m)});Sr();mr();Me();n();n();var Ql=require("@multiversx/sdk-extension-provider"),ep=require("@multiversx/sdk-hw-provider"),tp=require("@multiversx/sdk-metamask-provider/out/metamaskProvider"),rp=require("@multiversx/sdk-opera-provider"),np=require("@multiversx/sdk-passkey-provider/out"),op=require("@multiversx/sdk-web-wallet-provider");I();Me();n();var zt=require("@multiversx/sdk-web-wallet-iframe-provider/out"),Zl=require("@multiversx/sdk-web-wallet-iframe-provider/out/constants");H();n();n();var q=e=>`Unable to perform ${e}, Provider not initialized`,Kt=class{init(){return Promise.resolve(!1)}getAccount(){throw new Error(q("getAccount"))}setAccount(t){throw new Error(q(`setAccount: ${t}`))}login(t){throw new Error(q(`login with options: ${t}`))}logout(t){throw new Error(q(`logout with options: ${t}`))}getAddress(){throw new Error(q("getAddress"))}isInitialized(){return!1}isConnected(){return!1}sendTransaction(t,r){throw new Error(q(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(q(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(q(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(q(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(q(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(q(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},ks=new Kt;var ip=ks;function Es(e){ip=e}W();n();var Ls=require("react"),De=require("react-redux");var sp={store:P,subscription:Mi},Qr=(0,Ls.createContext)(sp),hb=(0,De.createStoreHook)(Qr),Xt=(0,De.createDispatchHook)(Qr),F=(0,De.createSelectorHook)(Qr);de();H();n();function Ns(e){let t=P.getState(),r=ci(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}n();function Cs(){return Vr(P.getState())}Nr();ue();n();n();Me();U();var Rs=e=>(Object.values(Le).forEach(t=>{if(t!==(e==null?void 0:e.skipLoginMethod))switch(t){case"crossWindow":{let r=ye.CrossWindowProvider.getInstance();r.isInitialized()&&r.dispose();break}case"iframe":{let r=zt.IframeProvider.getInstance();r.isInitialized()&&r.dispose();break}default:break}}),null);n();var _s=require("react"),Yt=require("@multiversx/sdk-core");n();n();var en=()=>F(Ge);n();n();n();n();n();n();n();n();n();var Ze=A(require("react"));var Yb=(0,Ze.createContext)({}),Zb=P.getState();n();var Ds=A(require("react"));n();var tn=A(require("react")),ap=A(require("axios"));n();n();de();n();var cp=(e,t)=>{var r;return t?t===!0?e:(r=t.apiAddress)!=null?r:e:null},Os=e=>{let t=F(ae),r=F(li),o=(0,_s.useRef)(r==null?void 0:r.loginToken),i=cp(t.apiAddress,e),l=Xe(g(g({},e===!0?{}:e),i?{apiAddress:i}:{})),p=Boolean(e),d=Ye(l),{address:m}=en(),T=Xt(),S=b=>{o.current=b,T(mt(g(w(g({},r),{loginToken:b}),i?{nativeAuthConfig:l}:{})))},h=()=>{try{return d.initialize()}catch(b){console.error("Unable to get block. Login failed.",b);return}},x=({address:b,signature:R})=>{let $=o.current;if(!$)throw"Token not found. Call `setLoginToken` first.";if(!p){T(mt({loginToken:$,signature:R}));return}let j=d.getToken({address:b,token:$,signature:R});return T(mt(g({loginToken:$,signature:R,nativeAuthToken:j},i?{nativeAuthConfig:l}:{}))),j};return{configuration:l,setLoginToken:S,getNativeAuthLoginToken:h,setTokenLoginInfo:x,refreshNativeAuthTokenLogin:$=>v(void 0,[$],function*({signMessageCallback:b,nativeAuthClientConfig:R}){let z=yield Ye(R||l).initialize({noCache:Boolean(R)});if(o.current=z,!z)return;let K=new Yt.Message({address:new Yt.Address(m),data:s.Buffer.from(`${m}${z}`)}),N=yield b(K,{});if(!(N!=null&&N.signature))throw"Message not signed";return x({address:m,signature:s.Buffer.from(N.signature).toString("hex")})})}};var lp=({callbackRoute:e,token:t,nativeAuth:r,onLoginRedirect:o,hasConsentPopup:i,walletAddress:l})=>{let[p,d]=(0,rn.useState)(""),[m,T]=(0,rn.useState)(!1),S=r!=null,h=Os(r),x=t,k=F(ae),b=Xt(),R=Cs();function $(){return v(this,null,function*(){if(R)throw new Error(_n);Rs({skipLoginMethod:"crossWindow"}),T(!0);let z=yield ye.CrossWindowProvider.getInstance().init(),K=ye.CrossWindowProvider.getInstance().setWalletUrl(l!=null?l:k.walletAddress);try{if(!z){console.warn("Something went wrong trying to redirect to wallet login..");return}let{origin:N,pathname:nn}=ee(),Ms=encodeURIComponent(`${N}${e!=null?e:nn}`);if(S&&!x&&(x=yield h.getNativeAuthLoginToken(),!x)){console.warn("Fetching block failed. Login cancelled.");return}x&&h.setLoginToken(x);let Fs=g({callbackUrl:Ms},x&&{token:x});(ro&&S||i)&&K.setShouldShowConsentPopup(!0);let{signature:on,address:sn,multisig:Bs,impersonate:Us}=yield K.login(Fs);if(Es(K),!sn){T(!1),console.warn("Login cancelled.");return}let Ae=yield bs({loginToken:x,extraInfoData:{multisig:Bs,impersonate:Us},address:sn,signature:on,loginService:h});if(!Ae)return;b(Pe({address:Ae.address,loginMethod:"crossWindow"})),b(yo(Ae.address)),b(pt(w(g({},Ae),{nonce:Ns(Ae)}))),Po({callbackRoute:e,onLoginRedirect:o,options:{signature:on,address:Ae.address}})}catch(N){console.error("error loging in",N),d("error logging in"+N.message)}finally{T(!1)}})}let j=Boolean(p);return[$,{loginFailed:j,error:p,isLoading:m&&!j,isLoggedIn:R&&!j}]};0&&(module.exports={useCrossWindowLogin});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *