@multiversx/sdk-dapp 2.10.13 → 2.10.15

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 (741) hide show
  1. package/UI/CopyButton/CopyButton.d.ts +7 -0
  2. package/UI/CopyButton/CopyButton.js +2 -0
  3. package/UI/CopyButton/copyButton.styles.js +2 -0
  4. package/UI/CopyButton/index.d.ts +1 -6
  5. package/UI/CopyButton/index.js +1 -1
  6. package/UI/DappModal/hooks/index.js +1 -1
  7. package/UI/DappModal/hooks/useDappModal.js +1 -1
  8. package/UI/DappModal/index.js +1 -1
  9. package/UI/ExplorerLink/ExplorerLink.js +1 -1
  10. package/UI/ExplorerLink/index.js +1 -1
  11. package/UI/Loader/Loader.d.ts +8 -0
  12. package/UI/Loader/Loader.js +2 -0
  13. package/UI/Loader/index.d.ts +1 -7
  14. package/UI/Loader/index.js +1 -1
  15. package/UI/ModalContainer/ModalContainer.js +1 -1
  16. package/UI/ModalContainer/index.js +1 -1
  17. package/UI/NotificationModal/NotificationModal.d.ts +3 -0
  18. package/UI/NotificationModal/NotificationModal.js +2 -0
  19. package/UI/NotificationModal/index.d.ts +1 -2
  20. package/UI/NotificationModal/index.js +1 -1
  21. package/UI/PageState/PageState.d.ts +16 -0
  22. package/UI/PageState/PageState.js +2 -0
  23. package/UI/PageState/index.d.ts +1 -15
  24. package/UI/PageState/index.js +1 -1
  25. package/UI/PageState/pageState.styles.js +2 -0
  26. package/UI/Progress/index.js +1 -1
  27. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  28. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  29. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  30. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  31. package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  32. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  33. package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
  34. package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
  35. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  36. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  37. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  38. package/UI/SignTransactionsModals/components/index.js +1 -1
  39. package/UI/SignTransactionsModals/index.js +1 -1
  40. package/UI/TokenDetails/index.js +1 -1
  41. package/UI/TransactionDetails/TransactionDetails.js +1 -1
  42. package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  43. package/UI/TransactionDetails/components/index.js +1 -1
  44. package/UI/TransactionDetails/index.js +1 -1
  45. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  46. package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
  47. package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
  48. package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
  49. package/UI/TransactionInfo/components/DataField/components/Linkified/index.js +1 -1
  50. package/UI/TransactionInfo/components/DataField/components/index.js +1 -1
  51. package/UI/TransactionInfo/components/DataField/index.js +1 -1
  52. package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
  53. package/UI/TransactionInfo/components/EventsList/index.js +1 -1
  54. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  55. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  56. package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
  57. package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  58. package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  59. package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
  60. package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  61. package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
  62. package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
  63. package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
  64. package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
  65. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
  66. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
  67. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
  68. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
  69. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
  70. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
  71. package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
  72. package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
  73. package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
  74. package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
  75. package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
  76. package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
  77. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
  78. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
  79. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
  80. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
  81. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
  82. package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
  83. package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
  84. package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
  85. package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
  86. package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
  87. package/UI/TransactionInfo/components/TransactionStatus/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/TransactionInfoHash/TransactionInfoHash.js +1 -1
  94. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoHash/index.js +1 -1
  95. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
  96. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
  97. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
  98. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
  99. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
  100. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
  101. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  102. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  103. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
  104. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
  105. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
  106. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
  107. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
  108. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
  109. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
  110. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
  111. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
  112. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
  113. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  114. package/UI/TransactionInfo/index.js +1 -1
  115. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  116. package/UI/TransactionsTable/components/AccountName.js +1 -1
  117. package/UI/TransactionsTable/components/FailedTransactions.js +1 -1
  118. package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
  119. package/UI/TransactionsTable/components/NoTransactions.js +1 -1
  120. package/UI/TransactionsTable/components/TransactionHash.js +1 -1
  121. package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
  122. package/UI/TransactionsTable/components/TransactionRow.js +1 -1
  123. package/UI/TransactionsTable/components/TransactionSender.js +1 -1
  124. package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
  125. package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
  126. package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
  127. package/UI/TransactionsTable/components/index.js +1 -1
  128. package/UI/TransactionsTable/index.js +1 -1
  129. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  130. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  131. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  132. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  133. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
  134. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  135. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  136. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  137. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  138. package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  139. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  140. package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  141. package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  142. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  143. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  144. package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
  145. package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
  146. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  147. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  148. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  149. package/UI/TransactionsToastList/components/index.js +1 -1
  150. package/UI/TransactionsToastList/index.js +1 -1
  151. package/UI/Trim/Trim.js +1 -1
  152. package/UI/Trim/index.js +1 -1
  153. package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.d.ts +11 -0
  154. package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +2 -0
  155. package/UI/extension/ExtensionLoginButton/index.d.ts +1 -10
  156. package/UI/extension/ExtensionLoginButton/index.js +1 -1
  157. package/UI/extension/ExtensionLoginButton/stories/ExtensionLoginButton.stories.d.ts +2 -2
  158. package/UI/index.js +1 -1
  159. package/UI/ledger/LedgerLoginButton/LedgerLoginButton.d.ts +21 -0
  160. package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +2 -0
  161. package/UI/ledger/LedgerLoginButton/index.d.ts +1 -20
  162. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  163. package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
  164. package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
  165. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  166. package/UI/ledger/LedgerLoginContainer/LedgerLoading/LedgerLoading.js +1 -1
  167. package/UI/ledger/LedgerLoginContainer/LedgerLoading/index.js +1 -1
  168. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  169. package/UI/ledger/index.js +1 -1
  170. package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.d.ts +11 -0
  171. package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +2 -0
  172. package/UI/operaWallet/OperaWalletLoginButton/index.d.ts +1 -10
  173. package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  174. package/UI/pages/UnlockPage/index.js +1 -1
  175. package/UI/pages/index.js +1 -1
  176. package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.d.ts +24 -0
  177. package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +2 -0
  178. package/UI/walletConnect/WalletConnectLoginButton/index.d.ts +1 -23
  179. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  180. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  181. package/UI/walletConnect/index.js +1 -1
  182. package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.d.ts +11 -0
  183. package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +2 -0
  184. package/UI/webWallet/WebWalletLoginButton/index.d.ts +1 -10
  185. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  186. package/__chunks__/{chunk-F3AVUQ3Q.js → chunk-2E2HMRKZ.js} +2 -2
  187. package/__chunks__/chunk-2NOBNZNB.js +2 -0
  188. package/__chunks__/{chunk-F463UYOE.js → chunk-2PH4LIL6.js} +2 -2
  189. package/__chunks__/{chunk-GRBHVVDL.js → chunk-2SN4QENG.js} +2 -2
  190. package/__chunks__/{chunk-ZRXJS5T5.js → chunk-2UVX4W2D.js} +2 -2
  191. package/__chunks__/chunk-2WTJBT7G.js +2 -0
  192. package/__chunks__/{chunk-ZMMKPRGK.js → chunk-2Z2QXVLI.js} +2 -2
  193. package/__chunks__/{chunk-6KKQ74VE.js → chunk-33MFEXVQ.js} +2 -2
  194. package/__chunks__/chunk-3BXT2WOT.js +2 -0
  195. package/__chunks__/{chunk-4OAQ4URI.js → chunk-3ESYSDU5.js} +2 -2
  196. package/__chunks__/chunk-3K2N6SKG.js +2 -0
  197. package/__chunks__/{chunk-RFTSZMLB.js → chunk-3N6AXCO4.js} +2 -2
  198. package/__chunks__/{chunk-AUOA6UZL.js → chunk-3NFAPWH3.js} +2 -2
  199. package/__chunks__/{chunk-3ZEHVB3H.js → chunk-3OYGFYCF.js} +2 -2
  200. package/__chunks__/chunk-3WFFH2J6.js +2 -0
  201. package/__chunks__/{chunk-SNQ636EB.js → chunk-4CHM2RXE.js} +2 -2
  202. package/__chunks__/{chunk-Z6AUQ4MN.js → chunk-4DWHCJPG.js} +2 -2
  203. package/__chunks__/chunk-4FTRS7WH.js +2 -0
  204. package/__chunks__/{chunk-TOMGFZXR.js → chunk-4MC5GAOQ.js} +2 -2
  205. package/__chunks__/chunk-4PYDSCRN.js +2 -0
  206. package/__chunks__/{chunk-PFJPVEA5.js → chunk-4WHEFZYP.js} +2 -2
  207. package/__chunks__/{chunk-EM3WUS42.js → chunk-53AQIAT4.js} +2 -2
  208. package/__chunks__/{chunk-VQEFMS67.js → chunk-5776LOR3.js} +2 -2
  209. package/__chunks__/{chunk-4FGMG4G4.js → chunk-57DCJZEG.js} +2 -2
  210. package/__chunks__/{chunk-I3UIQ6LV.js → chunk-57R2O5D6.js} +2 -2
  211. package/__chunks__/chunk-5AYFOKV6.js +2 -0
  212. package/__chunks__/chunk-5MWJLURQ.js +2 -0
  213. package/__chunks__/chunk-5N2PW264.js +2 -0
  214. package/__chunks__/chunk-5QAYJEKI.js +2 -0
  215. package/__chunks__/{chunk-YNWFYOCX.js → chunk-5SFMQW2S.js} +2 -2
  216. package/__chunks__/{chunk-GOOK6RGM.js → chunk-5Y2KUNZC.js} +2 -2
  217. package/__chunks__/chunk-65SPWFQD.js +2 -0
  218. package/__chunks__/{chunk-C5DUKJM6.js → chunk-6DISBGTQ.js} +2 -2
  219. package/__chunks__/{chunk-AWU42Z2S.js → chunk-6HPWD7YU.js} +2 -2
  220. package/__chunks__/{chunk-HSUU5363.js → chunk-6N7MYHUH.js} +2 -2
  221. package/__chunks__/{chunk-52ZTHK4F.js → chunk-6WYWU6DE.js} +2 -2
  222. package/__chunks__/{chunk-2HO7KQPF.js → chunk-7ASGWXQY.js} +2 -2
  223. package/__chunks__/{chunk-BZKA5REH.js → chunk-7AVNFPYP.js} +2 -2
  224. package/__chunks__/{chunk-MH5LERQQ.js → chunk-7CBSHHWS.js} +2 -2
  225. package/__chunks__/{chunk-EK527UEJ.js → chunk-7GEPBHM4.js} +2 -2
  226. package/__chunks__/{chunk-T367ZKEH.js → chunk-7ICYICU6.js} +2 -2
  227. package/__chunks__/{chunk-EZNCLVAX.js → chunk-7IYAUVNG.js} +2 -2
  228. package/__chunks__/{chunk-JFNEHOAZ.js → chunk-7JYJ4M2G.js} +2 -2
  229. package/__chunks__/chunk-7W53YHPV.js +2 -0
  230. package/__chunks__/{chunk-TH5EB6YT.js → chunk-A4N3QLYH.js} +2 -2
  231. package/__chunks__/{chunk-F4HEJYZM.js → chunk-A6VLMMNB.js} +2 -2
  232. package/__chunks__/{chunk-2NJMQP6S.js → chunk-A74HMWQT.js} +2 -2
  233. package/__chunks__/chunk-ACNALFD3.js +2 -0
  234. package/__chunks__/{chunk-KSQ7YGP4.js → chunk-AI5U7SI5.js} +2 -2
  235. package/__chunks__/chunk-ALLREWNE.js +2 -0
  236. package/__chunks__/{chunk-HECUT4N6.js → chunk-ALOISJGM.js} +2 -2
  237. package/__chunks__/chunk-AMX3GHWT.js +2 -0
  238. package/__chunks__/{chunk-CK6MHPAA.js → chunk-AUUV5DLY.js} +2 -2
  239. package/__chunks__/{chunk-5VZ3BAF7.js → chunk-AVQL3MUX.js} +2 -2
  240. package/__chunks__/{chunk-C4P4AGWC.js → chunk-AXP7UKGB.js} +2 -2
  241. package/__chunks__/{chunk-FSYWTBZC.js → chunk-AZG2J2JR.js} +2 -2
  242. package/__chunks__/{chunk-P4WOTWEX.js → chunk-B2MLQYUZ.js} +2 -2
  243. package/__chunks__/{chunk-M5FLDYFF.js → chunk-BC27YZS5.js} +2 -2
  244. package/__chunks__/{chunk-MKFTPOFZ.js → chunk-BDTCNMUJ.js} +2 -2
  245. package/__chunks__/chunk-BI4RLQI7.js +2 -0
  246. package/__chunks__/{chunk-ODQ5CUU7.js → chunk-BM3CKUP5.js} +2 -2
  247. package/__chunks__/{chunk-BYCAREMN.js → chunk-BNPI4ADN.js} +2 -2
  248. package/__chunks__/{chunk-2YRWUVGG.js → chunk-C6C3KDHI.js} +2 -2
  249. package/__chunks__/{chunk-OXDVRRIX.js → chunk-C7GYK6AF.js} +2 -2
  250. package/__chunks__/chunk-CBJHNYUT.js +2 -0
  251. package/__chunks__/{chunk-24TPMQEJ.js → chunk-CH52CCVX.js} +2 -2
  252. package/__chunks__/{chunk-NJCJPV3R.js → chunk-COTVGAOI.js} +2 -2
  253. package/__chunks__/{chunk-QUZSP7U6.js → chunk-CU4YPDUN.js} +2 -2
  254. package/__chunks__/{chunk-6ASWZUEE.js → chunk-D7MLEKTY.js} +2 -2
  255. package/__chunks__/{chunk-ZKILGOR4.js → chunk-DAS7GF5P.js} +2 -2
  256. package/__chunks__/chunk-DDWGVQQS.js +8 -0
  257. package/__chunks__/chunk-DM34GVTH.js +2 -0
  258. package/__chunks__/{chunk-ABPUDXZL.js → chunk-DXQJBR46.js} +2 -2
  259. package/__chunks__/{chunk-XAHGUOEE.js → chunk-E3JXHEIO.js} +2 -2
  260. package/__chunks__/{chunk-RJWEQ72B.js → chunk-E63U5EGA.js} +2 -2
  261. package/__chunks__/{chunk-AO5IDAJ5.js → chunk-EONVXINX.js} +2 -2
  262. package/__chunks__/{chunk-IJVZERMR.js → chunk-EOO5VMDY.js} +2 -2
  263. package/__chunks__/{chunk-VXF5FISB.js → chunk-F7X2QHK5.js} +2 -2
  264. package/__chunks__/{chunk-LSRQAPD5.js → chunk-FAUGRR6A.js} +2 -2
  265. package/__chunks__/chunk-FCOHD5RR.js +2 -0
  266. package/__chunks__/{chunk-N4WPIG37.js → chunk-FFV66LPG.js} +2 -2
  267. package/__chunks__/{chunk-4X4DKRC3.js → chunk-FW5F5ZKG.js} +2 -2
  268. package/__chunks__/{chunk-K2FMMFZX.js → chunk-FXFHIAHV.js} +2 -2
  269. package/__chunks__/chunk-GEU35I4H.js +2 -0
  270. package/__chunks__/{chunk-TUELF2OQ.js → chunk-GFM6WMJJ.js} +2 -2
  271. package/__chunks__/{chunk-XFUK5WUM.js → chunk-GLRQIFUL.js} +2 -2
  272. package/__chunks__/{chunk-AUMFYOGC.js → chunk-GMN5XPUC.js} +2 -2
  273. package/__chunks__/{chunk-353HDBKH.js → chunk-GU2COZ3N.js} +2 -2
  274. package/__chunks__/chunk-GWS36QM2.js +2 -0
  275. package/__chunks__/chunk-HFOGW2VP.js +2 -0
  276. package/__chunks__/{chunk-LYDAHNMD.js → chunk-HIIXIIO2.js} +2 -2
  277. package/__chunks__/{chunk-YTZB7V4K.js → chunk-HK3E7OH3.js} +2 -2
  278. package/__chunks__/{chunk-EIJMAMB3.js → chunk-HKMZHNGU.js} +2 -2
  279. package/__chunks__/{chunk-2UUH53PT.js → chunk-HKT7ICZP.js} +2 -2
  280. package/__chunks__/{chunk-YPEPVZAA.js → chunk-HT2EGSH6.js} +2 -2
  281. package/__chunks__/{chunk-RXCMLUIN.js → chunk-I2GU2SK6.js} +2 -2
  282. package/__chunks__/{chunk-ELH5XOAE.js → chunk-I55IS57L.js} +2 -2
  283. package/__chunks__/{chunk-IPHTIY5Z.js → chunk-IFDTTVNG.js} +2 -2
  284. package/__chunks__/{chunk-KXR5G7DX.js → chunk-II5SQM3J.js} +2 -2
  285. package/__chunks__/{chunk-C4MIRANK.js → chunk-IJS7NA7S.js} +2 -2
  286. package/__chunks__/{chunk-3ZBCAUKM.js → chunk-ITXRUDLD.js} +2 -2
  287. package/__chunks__/{chunk-624XFGTT.js → chunk-J2OCNS6H.js} +2 -2
  288. package/__chunks__/{chunk-HKGUGR4Q.js → chunk-J5MEFGJ3.js} +2 -2
  289. package/__chunks__/{chunk-4Z6ZYP35.js → chunk-JI42XC5O.js} +2 -2
  290. package/__chunks__/{chunk-ZCH2ITSI.js → chunk-JKCUMFK5.js} +2 -2
  291. package/__chunks__/{chunk-CMU7IITC.js → chunk-JUS3TYVF.js} +2 -2
  292. package/__chunks__/{chunk-KSWLRCXD.js → chunk-KTXR7LEE.js} +2 -2
  293. package/__chunks__/{chunk-ZYV25C5T.js → chunk-KUQSHVV2.js} +2 -2
  294. package/__chunks__/{chunk-JFMKAVGI.js → chunk-L3QHN3RP.js} +2 -2
  295. package/__chunks__/{chunk-2ESK2CWS.js → chunk-LGACOKUH.js} +2 -2
  296. package/__chunks__/{chunk-JN6SZX7B.js → chunk-LIHBSEAD.js} +2 -2
  297. package/__chunks__/{chunk-YNQGTRYW.js → chunk-LPFVOPRA.js} +2 -2
  298. package/__chunks__/{chunk-QHJW6HRM.js → chunk-LSAKF7ZT.js} +2 -2
  299. package/__chunks__/{chunk-JUYKW7WB.js → chunk-LVLQKZTL.js} +2 -2
  300. package/__chunks__/{chunk-Y2LNLTGJ.js → chunk-LWIURWB3.js} +2 -2
  301. package/__chunks__/{chunk-ZZ7OYACG.js → chunk-LXUD7AIW.js} +2 -2
  302. package/__chunks__/{chunk-57LPPB5T.js → chunk-MFOGDRIL.js} +2 -2
  303. package/__chunks__/{chunk-GGVZOSWG.js → chunk-MMKRBYLZ.js} +2 -2
  304. package/__chunks__/{chunk-MTA6RD33.js → chunk-MZRUU4CD.js} +2 -2
  305. package/__chunks__/{chunk-QO77I6KD.js → chunk-NFUDNRJ5.js} +2 -2
  306. package/__chunks__/{chunk-UR45UQPL.js → chunk-NI6VP5QU.js} +2 -2
  307. package/__chunks__/{chunk-ZO7IKVB4.js → chunk-NSSZCJ4M.js} +2 -2
  308. package/__chunks__/{chunk-2ETHWQDW.js → chunk-NXWXHWMN.js} +2 -2
  309. package/__chunks__/{chunk-OWSA44CF.js → chunk-NY5HBS6V.js} +2 -2
  310. package/__chunks__/{chunk-NDBEWBW4.js → chunk-NYVSQ3S5.js} +2 -2
  311. package/__chunks__/{chunk-JWRTCBJG.js → chunk-O3OHUVJA.js} +2 -2
  312. package/__chunks__/{chunk-WZZ2ZH2A.js → chunk-O3RF5FGF.js} +2 -2
  313. package/__chunks__/chunk-O5LM2OJA.js +2 -0
  314. package/__chunks__/chunk-ODNPHKQJ.js +2 -0
  315. package/__chunks__/{chunk-Y2S5RIOR.js → chunk-OFSN5TDI.js} +2 -2
  316. package/__chunks__/{chunk-OYDXNIBP.js → chunk-OHXVEKU2.js} +2 -2
  317. package/__chunks__/{chunk-HWAAYDRV.js → chunk-OI5VNINT.js} +2 -2
  318. package/__chunks__/{chunk-BCKQWB2D.js → chunk-OQLSZVKU.js} +2 -2
  319. package/__chunks__/{chunk-KTY2ZZVU.js → chunk-OX2QPQSJ.js} +2 -2
  320. package/__chunks__/{chunk-AGE7H4AQ.js → chunk-OXJEK3XJ.js} +2 -2
  321. package/__chunks__/{chunk-DSD2MNFY.js → chunk-PAUIKWWL.js} +2 -2
  322. package/__chunks__/{chunk-AI56TVAK.js → chunk-PHJASQAA.js} +2 -2
  323. package/__chunks__/{chunk-Q334IC67.js → chunk-PLK7XLRV.js} +2 -2
  324. package/__chunks__/{chunk-BXF53CWY.js → chunk-PM252ITF.js} +2 -2
  325. package/__chunks__/chunk-PQ67BTK6.js +2 -0
  326. package/__chunks__/{chunk-72PJ3MLB.js → chunk-PRASIG23.js} +2 -2
  327. package/__chunks__/{chunk-TLO4HKFP.js → chunk-PRWVI7DA.js} +2 -2
  328. package/__chunks__/{chunk-FVGOQLDW.js → chunk-PTZV2NC6.js} +2 -2
  329. package/__chunks__/{chunk-HLWXIF6X.js → chunk-PYSR7GYB.js} +2 -2
  330. package/__chunks__/{chunk-J5YAJXBF.js → chunk-Q52XRGW5.js} +2 -2
  331. package/__chunks__/{chunk-7TNTABCF.js → chunk-Q6BLCS2G.js} +2 -2
  332. package/__chunks__/{chunk-A6IB3HHB.js → chunk-QBROYR4N.js} +2 -2
  333. package/__chunks__/{chunk-ZVNFGIIJ.js → chunk-QKSM2CAV.js} +2 -2
  334. package/__chunks__/{chunk-3GOMAM3K.js → chunk-QZRSZQQG.js} +2 -2
  335. package/__chunks__/{chunk-R2ZYJLNQ.js → chunk-R4EW5XRH.js} +2 -2
  336. package/__chunks__/{chunk-GDZNJ4CF.js → chunk-R4JBGOND.js} +2 -2
  337. package/__chunks__/{chunk-BGLJNZHY.js → chunk-R7RB3YFC.js} +2 -2
  338. package/__chunks__/{chunk-XIVSYXPG.js → chunk-RD4FLHH5.js} +2 -2
  339. package/__chunks__/{chunk-YA2XRGZD.js → chunk-RFRTZ543.js} +2 -2
  340. package/__chunks__/chunk-RFVGUQXV.js +2 -0
  341. package/__chunks__/{chunk-YQQLR63O.js → chunk-RHD4OTG2.js} +2 -2
  342. package/__chunks__/{chunk-TJDE5G3S.js → chunk-RHPXT74R.js} +2 -2
  343. package/__chunks__/{chunk-XKFPO726.js → chunk-S2EJSEXB.js} +2 -2
  344. package/__chunks__/{chunk-5TWMJ6YJ.js → chunk-SAWIKMWZ.js} +2 -2
  345. package/__chunks__/chunk-SB3EUHV3.js +2 -0
  346. package/__chunks__/{chunk-SI5TLADF.js → chunk-SBPG6D4F.js} +2 -2
  347. package/__chunks__/chunk-SCCCWUJD.js +2 -0
  348. package/__chunks__/{chunk-PO7P2NDG.js → chunk-SUJQHC6G.js} +2 -2
  349. package/__chunks__/{chunk-LJLFS42K.js → chunk-SUZXRANX.js} +2 -2
  350. package/__chunks__/{chunk-EELRENYX.js → chunk-SY447DWG.js} +2 -2
  351. package/__chunks__/{chunk-XDRM3WUB.js → chunk-SYGGFJH4.js} +2 -2
  352. package/__chunks__/{chunk-RG6L237G.js → chunk-T5ZFQJ52.js} +2 -2
  353. package/__chunks__/chunk-T6Q63BMA.js +2 -0
  354. package/__chunks__/{chunk-LAM66C2O.js → chunk-TKWIZCLJ.js} +2 -2
  355. package/__chunks__/{chunk-EBAIZ7N2.js → chunk-TR7CUFAV.js} +2 -2
  356. package/__chunks__/{chunk-VUYY6CED.js → chunk-TTQTR2AD.js} +2 -2
  357. package/__chunks__/chunk-TVURH4UP.js +2 -0
  358. package/__chunks__/{chunk-ZK2ND3MN.js → chunk-U3YEIZCJ.js} +2 -2
  359. package/__chunks__/{chunk-5IKG6Z4P.js → chunk-UGN3WMKY.js} +2 -2
  360. package/__chunks__/chunk-V2AWNLQW.js +2 -0
  361. package/__chunks__/{chunk-MZJP6Y25.js → chunk-V4RA4ZLP.js} +2 -2
  362. package/__chunks__/{chunk-73N6Q7HY.js → chunk-V7YSLFWP.js} +2 -2
  363. package/__chunks__/{chunk-EM645X3G.js → chunk-VAWVUZD4.js} +2 -2
  364. package/__chunks__/{chunk-7WTJNS3Q.js → chunk-VD73JZSS.js} +2 -2
  365. package/__chunks__/chunk-VKHAQUPZ.js +2 -0
  366. package/__chunks__/chunk-VPPV32IU.js +2 -0
  367. package/__chunks__/chunk-VSTXBAWB.js +2 -0
  368. package/__chunks__/{chunk-2ULU2HRV.js → chunk-VVJHCL7P.js} +2 -2
  369. package/__chunks__/{chunk-X7BTMMYK.js → chunk-W6YVJXVU.js} +2 -2
  370. package/__chunks__/{chunk-56GQX7HT.js → chunk-WB2RHTTH.js} +2 -2
  371. package/__chunks__/{chunk-DIQCION4.js → chunk-WCVTGH27.js} +2 -2
  372. package/__chunks__/{chunk-52FW4RSP.js → chunk-WFP47YEN.js} +2 -2
  373. package/__chunks__/{chunk-S25DY7VJ.js → chunk-WG4N7AG4.js} +2 -2
  374. package/__chunks__/{chunk-S3RBNZKT.js → chunk-WHJGO3AG.js} +2 -2
  375. package/__chunks__/{chunk-6L5T2ZSC.js → chunk-WJKSHLHT.js} +2 -2
  376. package/__chunks__/{chunk-EA4X56L7.js → chunk-WOQN27V4.js} +2 -2
  377. package/__chunks__/chunk-WOY3DRDS.js +2 -0
  378. package/__chunks__/{chunk-2UNO4XQM.js → chunk-WTXY73SH.js} +2 -2
  379. package/__chunks__/{chunk-DLLMWYMZ.js → chunk-WUI6TKFB.js} +2 -2
  380. package/__chunks__/{chunk-6N344DW7.js → chunk-X7ZFQQ4H.js} +2 -2
  381. package/__chunks__/{chunk-UJ5F7NZJ.js → chunk-XA7MEYFH.js} +2 -2
  382. package/__chunks__/{chunk-AK5WFGPH.js → chunk-XGANUHCI.js} +2 -2
  383. package/__chunks__/{chunk-EBW3XI3N.js → chunk-XM5Q6CQZ.js} +2 -2
  384. package/__chunks__/{chunk-654M5JYO.js → chunk-XNYJQDG2.js} +2 -2
  385. package/__chunks__/{chunk-2I6FWZ3G.js → chunk-XRQXCSCM.js} +3 -3
  386. package/__chunks__/{chunk-DTS6JNMK.js → chunk-XVSZNHGU.js} +2 -2
  387. package/__chunks__/{chunk-EGC7VXER.js → chunk-XXCWTSDG.js} +2 -2
  388. package/__chunks__/{chunk-KOFXRGMN.js → chunk-Y7E46NZY.js} +2 -2
  389. package/__chunks__/{chunk-NM3OUXIH.js → chunk-YBEMGTRP.js} +2 -2
  390. package/__chunks__/{chunk-XKPVTYAC.js → chunk-YBKC5AFW.js} +2 -2
  391. package/__chunks__/{chunk-ZATNS3YI.js → chunk-YBRLROEH.js} +2 -2
  392. package/__chunks__/{chunk-5ZVY3G6I.js → chunk-YEQVI36P.js} +2 -2
  393. package/__chunks__/{chunk-O7JNS4MH.js → chunk-YFRGELFT.js} +2 -2
  394. package/__chunks__/chunk-YO5D3RWU.js +2 -0
  395. package/__chunks__/chunk-YRHGCRZP.js +2 -0
  396. package/__chunks__/{chunk-ZBNQAQR7.js → chunk-YTCYFRWK.js} +2 -2
  397. package/__chunks__/{chunk-NKEUQVOF.js → chunk-YYOIIUGC.js} +2 -2
  398. package/__chunks__/{chunk-4G6Q66UH.js → chunk-ZE24ZRZN.js} +2 -2
  399. package/__chunks__/{chunk-J6H36V6J.js → chunk-ZJPCJ4LX.js} +2 -2
  400. package/__commonjs/UI/CopyButton/CopyButton.d.ts +7 -0
  401. package/__commonjs/UI/CopyButton/CopyButton.js +11 -0
  402. package/__commonjs/UI/CopyButton/{copyButtonStyles.js → copyButton.styles.js} +3 -3
  403. package/__commonjs/UI/CopyButton/index.d.ts +1 -6
  404. package/__commonjs/UI/CopyButton/index.js +2 -2
  405. package/__commonjs/UI/Loader/Loader.d.ts +8 -0
  406. package/__commonjs/UI/Loader/Loader.js +2709 -0
  407. package/__commonjs/UI/Loader/index.d.ts +1 -7
  408. package/__commonjs/UI/Loader/index.js +4 -4
  409. package/__commonjs/UI/NotificationModal/NotificationModal.d.ts +3 -0
  410. package/__commonjs/UI/NotificationModal/NotificationModal.js +2775 -0
  411. package/__commonjs/UI/NotificationModal/index.d.ts +1 -2
  412. package/__commonjs/UI/NotificationModal/index.js +4 -4
  413. package/__commonjs/UI/PageState/PageState.d.ts +16 -0
  414. package/__commonjs/UI/PageState/PageState.js +2709 -0
  415. package/__commonjs/UI/PageState/index.d.ts +1 -15
  416. package/__commonjs/UI/PageState/index.js +4 -4
  417. package/__commonjs/UI/PageState/{pageStateStyles.js → pageState.styles.js} +4 -4
  418. package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +19 -19
  419. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +3 -3
  420. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +3 -3
  421. package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +3 -3
  422. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +3 -3
  423. package/__commonjs/UI/SignTransactionsModals/SignWithOperaModal/index.js +3 -3
  424. package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +3 -3
  425. package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +2 -2
  426. package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +2 -2
  427. package/__commonjs/UI/SignTransactionsModals/components/TransactionStatusToast.js +4 -4
  428. package/__commonjs/UI/SignTransactionsModals/components/index.js +2 -2
  429. package/__commonjs/UI/SignTransactionsModals/index.js +5 -5
  430. package/__commonjs/UI/TransactionDetails/TransactionDetails.js +4 -4
  431. package/__commonjs/UI/TransactionDetails/components/TransactionDetailsBody.js +4 -4
  432. package/__commonjs/UI/TransactionDetails/components/index.js +4 -4
  433. package/__commonjs/UI/TransactionDetails/index.js +4 -4
  434. package/__commonjs/UI/TransactionInfo/TransactionInfo.js +6 -6
  435. package/__commonjs/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +7 -7
  436. package/__commonjs/UI/TransactionInfo/components/AddressDetailItem/index.js +7 -7
  437. package/__commonjs/UI/TransactionInfo/components/EventsList/EventsList.js +4 -4
  438. package/__commonjs/UI/TransactionInfo/components/EventsList/index.js +4 -4
  439. package/__commonjs/UI/TransactionInfo/components/OperationsList/OperationList.js +12 -12
  440. package/__commonjs/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +6 -6
  441. package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +6 -6
  442. package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +6 -6
  443. package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationText.js +6 -6
  444. package/__commonjs/UI/TransactionInfo/components/OperationsList/components/index.js +6 -6
  445. package/__commonjs/UI/TransactionInfo/components/OperationsList/index.js +6 -6
  446. package/__commonjs/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +6 -6
  447. package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +4 -4
  448. package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +3 -3
  449. package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +6 -6
  450. package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +6 -6
  451. package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +6 -6
  452. package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +6 -6
  453. package/__commonjs/UI/TransactionInfo/components/ScResultsList/index.js +6 -6
  454. package/__commonjs/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +4 -4
  455. package/__commonjs/UI/TransactionInfo/components/ScrDetailItem/index.js +4 -4
  456. package/__commonjs/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +7 -7
  457. package/__commonjs/UI/TransactionInfo/components/TransactionLogs/index.js +7 -7
  458. package/__commonjs/UI/TransactionInfo/components/index.js +6 -6
  459. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +7 -7
  460. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +7 -7
  461. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoHash/TransactionInfoHash.js +4 -4
  462. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoHash/index.js +2 -2
  463. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +4 -4
  464. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +4 -4
  465. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +6 -6
  466. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +6 -6
  467. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +13 -13
  468. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +7 -7
  469. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +6 -6
  470. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +13 -13
  471. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +7 -7
  472. package/__commonjs/UI/TransactionInfo/index.js +6 -6
  473. package/__commonjs/UI/TransactionsTable/TransactionsTable.js +2 -2
  474. package/__commonjs/UI/TransactionsTable/components/FailedTransactions.js +4 -4
  475. package/__commonjs/UI/TransactionsTable/components/NoTransactions.js +4 -4
  476. package/__commonjs/UI/TransactionsTable/components/TransactionRow.js +2 -2
  477. package/__commonjs/UI/TransactionsTable/components/index.js +6 -6
  478. package/__commonjs/UI/TransactionsTable/index.js +2 -2
  479. package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +3 -3
  480. package/__commonjs/UI/TransactionsToastList/components/CustomToast/CustomToast.js +4 -4
  481. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +4 -4
  482. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +4 -4
  483. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +4 -4
  484. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +4 -4
  485. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +4 -4
  486. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +4 -4
  487. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +4 -4
  488. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/index.js +4 -4
  489. package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/index.js +4 -4
  490. package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +4 -4
  491. package/__commonjs/UI/TransactionsToastList/components/CustomToast/index.js +4 -4
  492. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +4 -4
  493. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +4 -4
  494. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/components/index.js +4 -4
  495. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +4 -4
  496. package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +4 -4
  497. package/__commonjs/UI/TransactionsToastList/components/index.js +4 -4
  498. package/__commonjs/UI/TransactionsToastList/index.js +3 -3
  499. package/__commonjs/UI/extension/ExtensionLoginButton/ExtensionLoginButton.d.ts +11 -0
  500. package/__commonjs/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +2747 -0
  501. package/__commonjs/UI/extension/ExtensionLoginButton/index.d.ts +1 -10
  502. package/__commonjs/UI/extension/ExtensionLoginButton/index.js +1 -1
  503. package/__commonjs/UI/extension/ExtensionLoginButton/stories/ExtensionLoginButton.stories.d.ts +2 -2
  504. package/__commonjs/UI/index.js +11 -11
  505. package/__commonjs/UI/ledger/LedgerLoginButton/LedgerLoginButton.d.ts +21 -0
  506. package/__commonjs/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +3367 -0
  507. package/__commonjs/UI/ledger/LedgerLoginButton/index.d.ts +1 -20
  508. package/__commonjs/UI/ledger/LedgerLoginButton/index.js +4 -4
  509. package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable.js +3 -3
  510. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoading/LedgerLoading.js +4 -4
  511. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoading/index.js +5 -5
  512. package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +3 -3
  513. package/__commonjs/UI/ledger/index.js +14 -14
  514. package/__commonjs/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.d.ts +11 -0
  515. package/__commonjs/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +2729 -0
  516. package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.d.ts +1 -10
  517. package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  518. package/__commonjs/UI/pages/UnlockPage/index.js +7 -7
  519. package/__commonjs/UI/pages/index.js +7 -7
  520. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.d.ts +24 -0
  521. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +3002 -0
  522. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.d.ts +1 -23
  523. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +4 -4
  524. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +3 -3
  525. package/__commonjs/UI/walletConnect/index.js +4 -4
  526. package/__commonjs/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.d.ts +11 -0
  527. package/__commonjs/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +2729 -0
  528. package/__commonjs/UI/webWallet/WebWalletLoginButton/index.d.ts +1 -10
  529. package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  530. package/__commonjs/__mocks__/index.js +1 -1
  531. package/__commonjs/__mocks__/utils/index.js +1 -1
  532. package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
  533. package/__commonjs/components/TransactionStatusToast/FailedTransactionStatusToast.js +4 -4
  534. package/__commonjs/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.d.ts +9 -0
  535. package/__commonjs/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +9 -0
  536. package/__commonjs/wrappers/AuthenticatedRoutesWrapper/index.d.ts +1 -8
  537. package/__commonjs/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  538. package/__commonjs/wrappers/DappProvider/DappProvider.d.ts +17 -0
  539. package/__commonjs/wrappers/DappProvider/DappProvider.js +9 -0
  540. package/__commonjs/wrappers/DappProvider/index.d.ts +1 -16
  541. package/__commonjs/wrappers/DappProvider/index.js +1 -1
  542. package/__commonjs/wrappers/index.js +1 -1
  543. package/__mocks__/index.js +1 -1
  544. package/__mocks__/utils/index.js +1 -1
  545. package/__mocks__/utils/renderWithProvider.js +1 -1
  546. package/apiCalls/accounts/getAccountFromApi.js +1 -1
  547. package/apiCalls/accounts/index.js +1 -1
  548. package/apiCalls/configuration/getNetworkConfig.js +1 -1
  549. package/apiCalls/configuration/index.js +1 -1
  550. package/apiCalls/getScamAddressData.js +1 -1
  551. package/apiCalls/index.js +1 -1
  552. package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  553. package/apiCalls/transactions/index.js +1 -1
  554. package/apiCalls/transactions/sendSignedTransactions.js +1 -1
  555. package/apiCalls/utils/getCleanApiAddress.js +1 -1
  556. package/apiCalls/utils/index.js +1 -1
  557. package/components/LogoutListener/LogoutListener.js +1 -1
  558. package/components/LogoutListener/helpers/index.js +1 -1
  559. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  560. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  561. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  562. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  563. package/components/LogoutListener/index.js +1 -1
  564. package/components/ProviderInitializer.js +1 -1
  565. package/components/TransactionSender/TransactionSender.js +1 -1
  566. package/components/TransactionSender/index.js +1 -1
  567. package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
  568. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  569. package/components/TransactionsTracker/index.js +1 -1
  570. package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  571. package/hooks/account/index.js +1 -1
  572. package/hooks/account/useGetAccount.js +1 -1
  573. package/hooks/account/useGetAccountInfo.js +1 -1
  574. package/hooks/account/useGetIsLoggedIn.js +1 -1
  575. package/hooks/account/useGetLoginInfo.js +1 -1
  576. package/hooks/account/useGetWebsocketEvent.js +1 -1
  577. package/hooks/index.js +1 -1
  578. package/hooks/login/index.js +1 -1
  579. package/hooks/login/useExtensionLogin.js +1 -1
  580. package/hooks/login/useLedgerLogin.js +1 -1
  581. package/hooks/login/useLoginService.js +1 -1
  582. package/hooks/login/useOperaLogin.js +1 -1
  583. package/hooks/login/useWalletConnectLogin.js +1 -1
  584. package/hooks/login/useWalletConnectV2Login.js +1 -1
  585. package/hooks/login/useWebViewLogin.js +1 -1
  586. package/hooks/login/useWebWalletLogin.js +1 -1
  587. package/hooks/signMessage/index.js +1 -1
  588. package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  589. package/hooks/signMessage/useGetSignMessageSession.js +1 -1
  590. package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
  591. package/hooks/signMessage/useSignMessage.js +1 -1
  592. package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
  593. package/hooks/transactions/helpers/index.js +1 -1
  594. package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
  595. package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
  596. package/hooks/transactions/index.js +1 -1
  597. package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
  598. package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  599. package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
  600. package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
  601. package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  602. package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  603. package/hooks/transactions/useGetFailedTransactions.js +1 -1
  604. package/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
  605. package/hooks/transactions/useGetPendingTransactions.js +1 -1
  606. package/hooks/transactions/useGetSignTransactionsError.js +1 -1
  607. package/hooks/transactions/useGetSignedTransactions.js +1 -1
  608. package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  609. package/hooks/transactions/useGetTokenDetails.js +1 -1
  610. package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
  611. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  612. package/hooks/transactions/useSignTransactions.js +1 -1
  613. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  614. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  615. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  616. package/hooks/transactions/useTrackTransactionStatus.js +1 -1
  617. package/hooks/useGetNetworkConfig.js +1 -1
  618. package/hooks/useGetNotification.js +1 -1
  619. package/hooks/userInterface/index.js +1 -1
  620. package/hooks/userInterface/useIsDappModalVisible.js +1 -1
  621. package/hooks/websocketListener/index.js +1 -1
  622. package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
  623. package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  624. package/package.json +1 -1
  625. package/providers/webviewProvider/index.js +1 -1
  626. package/providers/webviewProvider/requestMethods.js +1 -1
  627. package/providers/webviewProvider/webviewProvider.js +1 -1
  628. package/reduxStore/DappProviderContext.js +1 -1
  629. package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
  630. package/reduxStore/persistConfig.js +1 -1
  631. package/reduxStore/persistedRootReducer.js +1 -1
  632. package/reduxStore/reducers.js +1 -1
  633. package/reduxStore/rootReducer.js +1 -1
  634. package/reduxStore/selectors/accountInfoSelectors.js +1 -1
  635. package/reduxStore/selectors/index.js +1 -1
  636. package/reduxStore/selectors/loginInfoSelectors.js +1 -1
  637. package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
  638. package/reduxStore/selectors/transactionsSelectors.js +1 -1
  639. package/reduxStore/slices/accountInfoSlice.js +1 -1
  640. package/reduxStore/slices/index.js +1 -1
  641. package/reduxStore/slices/loginInfoSlice.js +1 -1
  642. package/reduxStore/store.js +1 -1
  643. package/services/index.js +1 -1
  644. package/services/nativeAuth/helpers/getAuthorizationInfo.js +1 -1
  645. package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
  646. package/services/nativeAuth/helpers/index.js +1 -1
  647. package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
  648. package/services/transactions/clearTransactions.js +1 -1
  649. package/services/transactions/index.js +1 -1
  650. package/services/transactions/sendTransactions.js +1 -1
  651. package/services/transactions/signTransactions.js +1 -1
  652. package/services/transactions/transformAndSignTransactions.js +1 -1
  653. package/storage/local.js +1 -1
  654. package/utils/account/getAccount.js +1 -1
  655. package/utils/account/getAccountBalance.js +1 -1
  656. package/utils/account/getAccountShard.js +1 -1
  657. package/utils/account/getAddress.js +1 -1
  658. package/utils/account/getLatestNonce.js +1 -1
  659. package/utils/account/index.js +1 -1
  660. package/utils/account/loginWithExternalProvider.js +1 -1
  661. package/utils/account/refreshAccount.js +1 -1
  662. package/utils/account/setNonce.js +1 -1
  663. package/utils/account/signMessage.js +1 -1
  664. package/utils/dateTime/index.js +1 -1
  665. package/utils/getIsLoggedIn.js +1 -1
  666. package/utils/index.js +1 -1
  667. package/utils/logout.js +1 -1
  668. package/utils/network/getChainID.js +1 -1
  669. package/utils/network/getEgldLabel.js +1 -1
  670. package/utils/network/getNetworkConfig.js +1 -1
  671. package/utils/network/index.js +1 -1
  672. package/utils/storage/index.js +1 -1
  673. package/utils/storage/local.js +1 -1
  674. package/utils/toasts/customToastsActions.js +1 -1
  675. package/utils/toasts/index.js +1 -1
  676. package/utils/transactions/getAllTransactionsLink.js +1 -1
  677. package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
  678. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
  679. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
  680. package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
  681. package/utils/transactions/getInterpretedTransaction/index.js +1 -1
  682. package/utils/transactions/getTransactionLink.js +1 -1
  683. package/utils/transactions/index.js +1 -1
  684. package/utils/transactions/transactionInfoHelpers/index.js +1 -1
  685. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
  686. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
  687. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/transactionActionUnwrapper.js +1 -1
  688. package/web/hooks/index.js +1 -1
  689. package/web/hooks/useIdleTimer.js +1 -1
  690. package/web/index.js +1 -1
  691. package/wrappers/AppInitializer.js +1 -1
  692. package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.d.ts +9 -0
  693. package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +2 -0
  694. package/wrappers/AuthenticatedRoutesWrapper/index.d.ts +1 -8
  695. package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  696. package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
  697. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
  698. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
  699. package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  700. package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  701. package/wrappers/AxiosInterceptorContext/index.js +1 -1
  702. package/wrappers/DappProvider/CustomComponents.js +1 -1
  703. package/wrappers/DappProvider/DappProvider.d.ts +17 -0
  704. package/wrappers/DappProvider/DappProvider.js +2 -0
  705. package/wrappers/DappProvider/index.d.ts +1 -16
  706. package/wrappers/DappProvider/index.js +1 -1
  707. package/wrappers/index.js +1 -1
  708. package/UI/CopyButton/copyButtonStyles.js +0 -2
  709. package/UI/NotificationModal/notificationModalStyles.js +0 -4
  710. package/UI/PageState/pageStateStyles.js +0 -2
  711. package/UI/walletConnect/WalletConnectLoginButton/walletConnectLoginButtonStyles.js +0 -4
  712. package/__chunks__/chunk-236ACT4A.js +0 -2
  713. package/__chunks__/chunk-3TXSWWRL.js +0 -2
  714. package/__chunks__/chunk-46UB3COV.js +0 -2
  715. package/__chunks__/chunk-476OLYPT.js +0 -2
  716. package/__chunks__/chunk-6FWDWBMN.js +0 -2
  717. package/__chunks__/chunk-6XR6BLIB.js +0 -2
  718. package/__chunks__/chunk-BEE4DVSV.js +0 -2
  719. package/__chunks__/chunk-CIA5WJBY.js +0 -2
  720. package/__chunks__/chunk-EAIRBVG2.js +0 -2
  721. package/__chunks__/chunk-ELUPZJBP.js +0 -2
  722. package/__chunks__/chunk-EOKRDYGE.js +0 -2
  723. package/__chunks__/chunk-FNVBJOAM.js +0 -2
  724. package/__chunks__/chunk-G4JD2Q3A.js +0 -2
  725. package/__chunks__/chunk-HWQ4HWF7.js +0 -2
  726. package/__chunks__/chunk-KS3I3MRD.js +0 -2
  727. package/__chunks__/chunk-LKAKVL7O.js +0 -2
  728. package/__chunks__/chunk-Q644J7BS.js +0 -8
  729. package/__chunks__/chunk-QUCTPCT3.js +0 -2
  730. package/__chunks__/chunk-R5KCMOKA.js +0 -2
  731. package/__chunks__/chunk-S2UGJM4S.js +0 -2
  732. package/__chunks__/chunk-TRVXCKJV.js +0 -2
  733. package/__chunks__/chunk-TZQXU63P.js +0 -2
  734. package/__chunks__/chunk-ULF6TFUK.js +0 -2
  735. package/__chunks__/chunk-XAOZX6PT.js +0 -2
  736. package/__chunks__/chunk-YS4IFDG4.js +0 -2
  737. package/__chunks__/chunk-ZAHYBLR3.js +0 -2
  738. package/__chunks__/chunk-ZJ62HJA4.js +0 -2
  739. package/__chunks__/chunk-ZOS2BWPU.js +0 -2
  740. package/__commonjs/UI/NotificationModal/notificationModalStyles.js +0 -11
  741. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/walletConnectLoginButtonStyles.js +0 -11
@@ -0,0 +1,9 @@
1
+ "use strict";var xl=Object.create;var Jt=Object.defineProperty,wl=Object.defineProperties,vl=Object.getOwnPropertyDescriptor,Al=Object.getOwnPropertyDescriptors,Il=Object.getOwnPropertyNames,yr=Object.getOwnPropertySymbols,bl=Object.getPrototypeOf,En=Object.prototype.hasOwnProperty,Ho=Object.prototype.propertyIsEnumerable;var Vo=(e,t,r)=>t in e?Jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))En.call(t,r)&&Vo(e,r,t[r]);if(yr)for(var r of yr(t))Ho.call(t,r)&&Vo(e,r,t[r]);return e},E=(e,t)=>wl(e,Al(t));var jo=e=>typeof e=="symbol"?e:e+"",Ze=(e,t)=>{var r={};for(var o in e)En.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&yr)for(var o of yr(e))t.indexOf(o)<0&&Ho.call(e,o)&&(r[o]=e[o]);return r};var v=(e,t)=>()=>(e&&(t=e(e=0)),t);var ae=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qe=(e,t)=>{for(var r in t)Jt(e,r,{get:t[r],enumerable:!0})},zo=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Il(t))!En.call(e,i)&&i!==r&&Jt(e,i,{get:()=>t[i],enumerable:!(o=vl(t,i))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?xl(bl(e)):{},zo(t||!e||!e.__esModule?Jt(r,"default",{value:e,enumerable:!0}):r,e)),Yt=e=>zo(Jt({},"__esModule",{value:!0}),e);var f=(e,t,r)=>new Promise((o,i)=>{var p=d=>{try{u(r.next(d))}catch(g){i(g)}},l=d=>{try{u(r.throw(d))}catch(g){i(g)}},u=d=>d.done?o(d.value):Promise.resolve(d.value).then(p,l);u((r=r.apply(e,t)).next())});var Jo=ae(hr=>{"use strict";n();hr.byteLength=Ll;hr.toByteArray=Pl;hr.fromByteArray=Dl;var he=[],de=[],El=typeof Uint8Array!="undefined"?Uint8Array:Array,Ln="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(et=0,qo=Ln.length;et<qo;++et)he[et]=Ln[et],de[Ln.charCodeAt(et)]=et;var et,qo;de["-".charCodeAt(0)]=62;de["_".charCodeAt(0)]=63;function Ko(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 Ll(e){var t=Ko(e),r=t[0],o=t[1];return(r+o)*3/4-o}function kl(e,t,r){return(t+r)*3/4-r}function Pl(e){var t,r=Ko(e),o=r[0],i=r[1],p=new El(kl(e,o,i)),l=0,u=i>0?o-4:o,d;for(d=0;d<u;d+=4)t=de[e.charCodeAt(d)]<<18|de[e.charCodeAt(d+1)]<<12|de[e.charCodeAt(d+2)]<<6|de[e.charCodeAt(d+3)],p[l++]=t>>16&255,p[l++]=t>>8&255,p[l++]=t&255;return i===2&&(t=de[e.charCodeAt(d)]<<2|de[e.charCodeAt(d+1)]>>4,p[l++]=t&255),i===1&&(t=de[e.charCodeAt(d)]<<10|de[e.charCodeAt(d+1)]<<4|de[e.charCodeAt(d+2)]>>2,p[l++]=t>>8&255,p[l++]=t&255),p}function Cl(e){return he[e>>18&63]+he[e>>12&63]+he[e>>6&63]+he[e&63]}function Nl(e,t,r){for(var o,i=[],p=t;p<r;p+=3)o=(e[p]<<16&16711680)+(e[p+1]<<8&65280)+(e[p+2]&255),i.push(Cl(o));return i.join("")}function Dl(e){for(var t,r=e.length,o=r%3,i=[],p=16383,l=0,u=r-o;l<u;l+=p)i.push(Nl(e,l,l+p>u?u:l+p));return o===1?(t=e[r-1],i.push(he[t>>2]+he[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(he[t>>10]+he[t>>4&63]+he[t<<2&63]+"=")),i.join("")}});var Yo=ae(kn=>{n();kn.read=function(e,t,r,o,i){var p,l,u=i*8-o-1,d=(1<<u)-1,g=d>>1,y=-7,h=r?i-1:0,b=r?-1:1,P=e[t+h];for(h+=b,p=P&(1<<-y)-1,P>>=-y,y+=u;y>0;p=p*256+e[t+h],h+=b,y-=8);for(l=p&(1<<-y)-1,p>>=-y,y+=o;y>0;l=l*256+e[t+h],h+=b,y-=8);if(p===0)p=1-g;else{if(p===d)return l?NaN:(P?-1:1)*(1/0);l=l+Math.pow(2,o),p=p-g}return(P?-1:1)*l*Math.pow(2,p-o)};kn.write=function(e,t,r,o,i,p){var l,u,d,g=p*8-i-1,y=(1<<g)-1,h=y>>1,b=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=o?0:p-1,L=o?1:-1,I=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,l=y):(l=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-l))<1&&(l--,d*=2),l+h>=1?t+=b/d:t+=b*Math.pow(2,1-h),t*d>=2&&(l++,d/=2),l+h>=y?(u=0,l=y):l+h>=1?(u=(t*d-1)*Math.pow(2,i),l=l+h):(u=t*Math.pow(2,h-1)*Math.pow(2,i),l=0));i>=8;e[r+P]=u&255,P+=L,u/=256,i-=8);for(l=l<<i|u,g+=i;g>0;e[r+P]=l&255,P+=L,l/=256,g-=8);e[r+P-L]|=I*128}});var li=ae(bt=>{"use strict";n();var Pn=Jo(),It=Yo(),Xo=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;bt.Buffer=m;bt.SlowBuffer=Ul;bt.INSPECT_MAX_BYTES=50;var Sr=2147483647;bt.kMaxLength=Sr;m.TYPED_ARRAY_SUPPORT=Rl();!m.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 Rl(){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(m.prototype,"parent",{enumerable:!0,get:function(){if(!!m.isBuffer(this))return this.buffer}});Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(!!m.isBuffer(this))return this.byteOffset}});function Le(e){if(e>Sr)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,m.prototype),t}function m(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 Rn(e)}return ei(e,t,r)}m.poolSize=8192;function ei(e,t,r){if(typeof e=="string")return Ol(e,t);if(ArrayBuffer.isView(e))return _l(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(Se(e,ArrayBuffer)||e&&Se(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Se(e,SharedArrayBuffer)||e&&Se(e.buffer,SharedArrayBuffer)))return Nn(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 m.from(o,t,r);var i=Fl(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return m.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)}m.from=function(e,t,r){return ei(e,t,r)};Object.setPrototypeOf(m.prototype,Uint8Array.prototype);Object.setPrototypeOf(m,Uint8Array);function ti(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 Ml(e,t,r){return ti(e),e<=0?Le(e):t!==void 0?typeof r=="string"?Le(e).fill(t,r):Le(e).fill(t):Le(e)}m.alloc=function(e,t,r){return Ml(e,t,r)};function Rn(e){return ti(e),Le(e<0?0:Mn(e)|0)}m.allocUnsafe=function(e){return Rn(e)};m.allocUnsafeSlow=function(e){return Rn(e)};function Ol(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!m.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=ri(e,t)|0,o=Le(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Cn(e){for(var t=e.length<0?0:Mn(e.length)|0,r=Le(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function _l(e){if(Se(e,Uint8Array)){var t=new Uint8Array(e);return Nn(t.buffer,t.byteOffset,t.byteLength)}return Cn(e)}function Nn(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,m.prototype),o}function Fl(e){if(m.isBuffer(e)){var t=Mn(e.length)|0,r=Le(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||On(e.length)?Le(0):Cn(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Cn(e.data)}function Mn(e){if(e>=Sr)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Sr.toString(16)+" bytes");return e|0}function Ul(e){return+e!=e&&(e=0),m.alloc(+e)}m.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==m.prototype};m.compare=function(t,r){if(Se(t,Uint8Array)&&(t=m.from(t,t.offset,t.byteLength)),Se(r,Uint8Array)&&(r=m.from(r,r.offset,r.byteLength)),!m.isBuffer(t)||!m.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,p=0,l=Math.min(o,i);p<l;++p)if(t[p]!==r[p]){o=t[p],i=r[p];break}return o<i?-1:i<o?1:0};m.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}};m.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return m.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=m.allocUnsafe(r),p=0;for(o=0;o<t.length;++o){var l=t[o];if(Se(l,Uint8Array))p+l.length>i.length?m.from(l).copy(i,p):Uint8Array.prototype.set.call(i,l,p);else if(m.isBuffer(l))l.copy(i,p);else throw new TypeError('"list" argument must be an Array of Buffers');p+=l.length}return i};function ri(e,t){if(m.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Se(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 Dn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ci(e).length;default:if(i)return o?-1:Dn(e).length;t=(""+t).toLowerCase(),i=!0}}m.byteLength=ri;function Bl(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 Jl(this,t,r);case"utf8":case"utf-8":return oi(this,t,r);case"ascii":return ql(this,t,r);case"latin1":case"binary":return Kl(this,t,r);case"base64":return jl(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Yl(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}m.prototype._isBuffer=!0;function tt(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}m.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)tt(this,r,r+1);return this};m.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)tt(this,r,r+3),tt(this,r+1,r+2);return this};m.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)tt(this,r,r+7),tt(this,r+1,r+6),tt(this,r+2,r+5),tt(this,r+3,r+4);return this};m.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?oi(this,0,t):Bl.apply(this,arguments)};m.prototype.toLocaleString=m.prototype.toString;m.prototype.equals=function(t){if(!m.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:m.compare(this,t)===0};m.prototype.inspect=function(){var t="",r=bt.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Xo&&(m.prototype[Xo]=m.prototype.inspect);m.prototype.compare=function(t,r,o,i,p){if(Se(t,Uint8Array)&&(t=m.from(t,t.offset,t.byteLength)),!m.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),p===void 0&&(p=this.length),r<0||o>t.length||i<0||p>this.length)throw new RangeError("out of range index");if(i>=p&&r>=o)return 0;if(i>=p)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,p>>>=0,this===t)return 0;for(var l=p-i,u=o-r,d=Math.min(l,u),g=this.slice(i,p),y=t.slice(r,o),h=0;h<d;++h)if(g[h]!==y[h]){l=g[h],u=y[h];break}return l<u?-1:u<l?1:0};function ni(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,On(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=m.from(t,o)),m.isBuffer(t))return t.length===0?-1:Zo(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):Zo(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function Zo(e,t,r,o,i){var p=1,l=e.length,u=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;p=2,l/=2,u/=2,r/=2}function d(P,L){return p===1?P[L]:P.readUInt16BE(L*p)}var g;if(i){var y=-1;for(g=r;g<l;g++)if(d(e,g)===d(t,y===-1?0:g-y)){if(y===-1&&(y=g),g-y+1===u)return y*p}else y!==-1&&(g-=g-y),y=-1}else for(r+u>l&&(r=l-u),g=r;g>=0;g--){for(var h=!0,b=0;b<u;b++)if(d(e,g+b)!==d(t,b)){h=!1;break}if(h)return g}return-1}m.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};m.prototype.indexOf=function(t,r,o){return ni(this,t,r,o,!0)};m.prototype.lastIndexOf=function(t,r,o){return ni(this,t,r,o,!1)};function Wl(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var p=t.length;o>p/2&&(o=p/2);for(var l=0;l<o;++l){var u=parseInt(t.substr(l*2,2),16);if(On(u))return l;e[r+l]=u}return l}function Gl(e,t,r,o){return xr(Dn(t,e.length-r),e,r,o)}function $l(e,t,r,o){return xr(Ql(t),e,r,o)}function Vl(e,t,r,o){return xr(ci(t),e,r,o)}function Hl(e,t,r,o){return xr(ep(t,e.length-r),e,r,o)}m.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 p=this.length-r;if((o===void 0||o>p)&&(o=p),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var l=!1;;)switch(i){case"hex":return Wl(this,t,r,o);case"utf8":case"utf-8":return Gl(this,t,r,o);case"ascii":case"latin1":case"binary":return $l(this,t,r,o);case"base64":return Vl(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Hl(this,t,r,o);default:if(l)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),l=!0}};m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function jl(e,t,r){return t===0&&r===e.length?Pn.fromByteArray(e):Pn.fromByteArray(e.slice(t,r))}function oi(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var p=e[i],l=null,u=p>239?4:p>223?3:p>191?2:1;if(i+u<=r){var d,g,y,h;switch(u){case 1:p<128&&(l=p);break;case 2:d=e[i+1],(d&192)===128&&(h=(p&31)<<6|d&63,h>127&&(l=h));break;case 3:d=e[i+1],g=e[i+2],(d&192)===128&&(g&192)===128&&(h=(p&15)<<12|(d&63)<<6|g&63,h>2047&&(h<55296||h>57343)&&(l=h));break;case 4:d=e[i+1],g=e[i+2],y=e[i+3],(d&192)===128&&(g&192)===128&&(y&192)===128&&(h=(p&15)<<18|(d&63)<<12|(g&63)<<6|y&63,h>65535&&h<1114112&&(l=h))}}l===null?(l=65533,u=1):l>65535&&(l-=65536,o.push(l>>>10&1023|55296),l=56320|l&1023),o.push(l),i+=u}return zl(o)}var Qo=4096;function zl(e){var t=e.length;if(t<=Qo)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=Qo));return r}function ql(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 Kl(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 Jl(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",p=t;p<r;++p)i+=tp[e[p]];return i}function Yl(e,t,r){for(var o=e.slice(t,r),i="",p=0;p<o.length-1;p+=2)i+=String.fromCharCode(o[p]+o[p+1]*256);return i}m.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,m.prototype),i};function V(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}m.prototype.readUintLE=m.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||V(t,r,this.length);for(var i=this[t],p=1,l=0;++l<r&&(p*=256);)i+=this[t+l]*p;return i};m.prototype.readUintBE=m.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||V(t,r,this.length);for(var i=this[t+--r],p=1;r>0&&(p*=256);)i+=this[t+--r]*p;return i};m.prototype.readUint8=m.prototype.readUInt8=function(t,r){return t=t>>>0,r||V(t,1,this.length),this[t]};m.prototype.readUint16LE=m.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||V(t,2,this.length),this[t]|this[t+1]<<8};m.prototype.readUint16BE=m.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||V(t,2,this.length),this[t]<<8|this[t+1]};m.prototype.readUint32LE=m.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||V(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};m.prototype.readUint32BE=m.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||V(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};m.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||V(t,r,this.length);for(var i=this[t],p=1,l=0;++l<r&&(p*=256);)i+=this[t+l]*p;return p*=128,i>=p&&(i-=Math.pow(2,8*r)),i};m.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||V(t,r,this.length);for(var i=r,p=1,l=this[t+--i];i>0&&(p*=256);)l+=this[t+--i]*p;return p*=128,l>=p&&(l-=Math.pow(2,8*r)),l};m.prototype.readInt8=function(t,r){return t=t>>>0,r||V(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};m.prototype.readInt16LE=function(t,r){t=t>>>0,r||V(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};m.prototype.readInt16BE=function(t,r){t=t>>>0,r||V(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};m.prototype.readInt32LE=function(t,r){return t=t>>>0,r||V(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};m.prototype.readInt32BE=function(t,r){return t=t>>>0,r||V(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};m.prototype.readFloatLE=function(t,r){return t=t>>>0,r||V(t,4,this.length),It.read(this,t,!0,23,4)};m.prototype.readFloatBE=function(t,r){return t=t>>>0,r||V(t,4,this.length),It.read(this,t,!1,23,4)};m.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||V(t,8,this.length),It.read(this,t,!0,52,8)};m.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||V(t,8,this.length),It.read(this,t,!1,52,8)};function re(e,t,r,o,i,p){if(!m.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<p)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}m.prototype.writeUintLE=m.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var p=Math.pow(2,8*o)-1;re(this,t,r,o,p,0)}var l=1,u=0;for(this[r]=t&255;++u<o&&(l*=256);)this[r+u]=t/l&255;return r+o};m.prototype.writeUintBE=m.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var p=Math.pow(2,8*o)-1;re(this,t,r,o,p,0)}var l=o-1,u=1;for(this[r+l]=t&255;--l>=0&&(u*=256);)this[r+l]=t/u&255;return r+o};m.prototype.writeUint8=m.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||re(this,t,r,1,255,0),this[r]=t&255,r+1};m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||re(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||re(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||re(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};m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||re(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};m.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var p=Math.pow(2,8*o-1);re(this,t,r,o,p-1,-p)}var l=0,u=1,d=0;for(this[r]=t&255;++l<o&&(u*=256);)t<0&&d===0&&this[r+l-1]!==0&&(d=1),this[r+l]=(t/u>>0)-d&255;return r+o};m.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var p=Math.pow(2,8*o-1);re(this,t,r,o,p-1,-p)}var l=o-1,u=1,d=0;for(this[r+l]=t&255;--l>=0&&(u*=256);)t<0&&d===0&&this[r+l+1]!==0&&(d=1),this[r+l]=(t/u>>0)-d&255;return r+o};m.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||re(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};m.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||re(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};m.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||re(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};m.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||re(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};m.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||re(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 ii(e,t,r,o,i,p){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function si(e,t,r,o,i){return t=+t,r=r>>>0,i||ii(e,t,r,4,34028234663852886e22,-34028234663852886e22),It.write(e,t,r,o,23,4),r+4}m.prototype.writeFloatLE=function(t,r,o){return si(this,t,r,!0,o)};m.prototype.writeFloatBE=function(t,r,o){return si(this,t,r,!1,o)};function ai(e,t,r,o,i){return t=+t,r=r>>>0,i||ii(e,t,r,8,17976931348623157e292,-17976931348623157e292),It.write(e,t,r,o,52,8),r+8}m.prototype.writeDoubleLE=function(t,r,o){return ai(this,t,r,!0,o)};m.prototype.writeDoubleBE=function(t,r,o){return ai(this,t,r,!1,o)};m.prototype.copy=function(t,r,o,i){if(!m.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 p=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),p};m.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"&&!m.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var p=t.charCodeAt(0);(i==="utf8"&&p<128||i==="latin1")&&(t=p)}}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 l;if(typeof t=="number")for(l=r;l<o;++l)this[l]=t;else{var u=m.isBuffer(t)?t:m.from(t,i),d=u.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(l=0;l<o-r;++l)this[l+r]=u[l%d]}return this};var Xl=/[^+/0-9A-Za-z-_]/g;function Zl(e){if(e=e.split("=")[0],e=e.trim().replace(Xl,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Dn(e,t){t=t||1/0;for(var r,o=e.length,i=null,p=[],l=0;l<o;++l){if(r=e.charCodeAt(l),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&p.push(239,191,189);continue}else if(l+1===o){(t-=3)>-1&&p.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&p.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&p.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;p.push(r)}else if(r<2048){if((t-=2)<0)break;p.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;p.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;p.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return p}function Ql(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function ep(e,t){for(var r,o,i,p=[],l=0;l<e.length&&!((t-=2)<0);++l)r=e.charCodeAt(l),o=r>>8,i=r%256,p.push(i),p.push(o);return p}function ci(e){return Pn.toByteArray(Zl(e))}function xr(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 Se(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function On(e){return e!==e}var tp=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 gi=ae((bm,mi)=>{n();var U=mi.exports={},xe,we;function _n(){throw new Error("setTimeout has not been defined")}function Fn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?xe=setTimeout:xe=_n}catch(e){xe=_n}try{typeof clearTimeout=="function"?we=clearTimeout:we=Fn}catch(e){we=Fn}})();function pi(e){if(xe===setTimeout)return setTimeout(e,0);if((xe===_n||!xe)&&setTimeout)return xe=setTimeout,setTimeout(e,0);try{return xe(e,0)}catch(t){try{return xe.call(null,e,0)}catch(r){return xe.call(this,e,0)}}}function rp(e){if(we===clearTimeout)return clearTimeout(e);if((we===Fn||!we)&&clearTimeout)return we=clearTimeout,clearTimeout(e);try{return we(e)}catch(t){try{return we.call(null,e)}catch(r){return we.call(this,e)}}}var ke=[],Et=!1,rt,wr=-1;function np(){!Et||!rt||(Et=!1,rt.length?ke=rt.concat(ke):wr=-1,ke.length&&ui())}function ui(){if(!Et){var e=pi(np);Et=!0;for(var t=ke.length;t;){for(rt=ke,ke=[];++wr<t;)rt&&rt[wr].run();wr=-1,t=ke.length}rt=null,Et=!1,rp(e)}}U.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];ke.push(new di(e,t)),ke.length===1&&!Et&&pi(ui)};function di(e,t){this.fun=e,this.array=t}di.prototype.run=function(){this.fun.apply(null,this.array)};U.title="browser";U.browser=!0;U.env={};U.argv=[];U.version="";U.versions={};function Pe(){}U.on=Pe;U.addListener=Pe;U.once=Pe;U.off=Pe;U.removeListener=Pe;U.removeAllListeners=Pe;U.emit=Pe;U.prependListener=Pe;U.prependOnceListener=Pe;U.listeners=function(e){return[]};U.binding=function(e){throw new Error("process.binding is not supported")};U.cwd=function(){return"/"};U.chdir=function(e){throw new Error("process.chdir is not supported")};U.umask=function(){return 0}});var a,c,op,s,n=v(()=>{a=A(li()),c=A(gi()),op=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),s=op});var nt=v(()=>{"use strict";n()});var fi=v(()=>{"use strict";n()});var Ti=v(()=>{"use strict";n()});var yi=v(()=>{"use strict";n()});var M=v(()=>{"use strict";n()});var hi=v(()=>{"use strict";n()});var Si=v(()=>{"use strict";n()});var ne=v(()=>{"use strict";n()});var xi=v(()=>{"use strict";n()});var wi=v(()=>{"use strict";n()});var B=v(()=>{"use strict";n();fi();Ti();yi();M();hi();Si();ne();xi();wi()});var ot,vi,Hm,Ai,jm,Ii,zm,qm,ip,Lt=v(()=>{"use strict";n();B();ot={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:vi,egldLabel:Hm}=ot["devnet"],{chainId:Ai,egldLabel:jm}=ot["testnet"],{chainId:Ii,egldLabel:zm}=ot["mainnet"],qm={["devnet"]:vi,["testnet"]:Ai,["mainnet"]:Ii},ip={[vi]:"devnet",[Ai]:"testnet",[Ii]:"mainnet"}});var Un=v(()=>{"use strict";n()});var bi=v(()=>{"use strict";n()});var vr,Bn=v(()=>{"use strict";n();vr="transaction-status-toast-id"});var ve,Ei=v(()=>{"use strict";n();ve=require("@multiversx/sdk-web-wallet-provider")});var Li=v(()=>{"use strict";n()});var Xt,Ar,ki,Pi,Ir,Ci,kt,N=v(()=>{"use strict";n();nt();Lt();Un();bi();Bn();Ei();Li();Xt=5e4,Ar=1e9,ki=1,Pi=1,Ir="logout",Ci="login",kt="0"});var Pt,br=v(()=>{"use strict";n();Pt=()=>Date.now()/1e3});var Ni=v(()=>{"use strict";n()});var Di=v(()=>{"use strict";n()});var Wn=v(()=>{"use strict";n();br();Ni();Di()});var $n={};Qe($n,{getItem:()=>ap,localStorageKeys:()=>ce,removeItem:()=>cp,setItem:()=>sp});var ce,Gn,sp,ap,cp,it=v(()=>{"use strict";n();Wn();ce={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Gn=typeof localStorage!="undefined",sp=({key:e,data:t,expires:r})=>{!Gn||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},ap=e=>{if(!Gn)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:Pt()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},cp=e=>{!Gn||localStorage.removeItem(String(e))}});var Vn={};Qe(Vn,{clear:()=>_i,getItem:()=>Mi,removeItem:()=>Oi,setItem:()=>Ri,storage:()=>lp});var Ri,Mi,Oi,_i,lp,Fi=v(()=>{"use strict";n();Ri=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Mi=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},Oi=e=>sessionStorage.removeItem(String(e)),_i=()=>sessionStorage.clear(),lp={setItem:Ri,getItem:Mi,removeItem:Oi,clear:_i}});var Ae,Ct=v(()=>{"use strict";n();it();Fi();Ae={session:Vn,local:$n}});var Hn,W,Y,H=v(()=>{"use strict";n();Hn=require("@reduxjs/toolkit");N();W=(0,Hn.createAction)(Ir),Y=(0,Hn.createAction)(Ci,e=>({payload:e}))});var zn,Ui,Bi,Er,jn,Wi,st,bg,Lr,Eg,qn,pp,Lg,Nt,Gi,$i,kr,Pr=v(()=>{"use strict";n();zn=require("@multiversx/sdk-core"),Ui=require("@reduxjs/toolkit"),Bi=require("redux-persist");N();Ct();it();H();Er={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:kt},jn={address:"",websocketEvent:null,accounts:{"":Er},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Wi=(0,Ui.createSlice)({name:"accountInfoSlice",initialState:jn,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new zn.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Er},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(W,()=>(Ae.local.removeItem(ce.loginExpiresAt),jn)),e.addCase(Y,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new zn.Address(o).hex()}),e.addCase(Bi.REHYDRATE,(t,r)=>{var g;if(!((g=r.payload)!=null&&g.account))return;let{account:o}=r.payload,{address:i,shard:p,accounts:l,publicKey:u}=o;t.address=i,t.shard=p;let d=l&&i in l;t.accounts=d?l:jn.accounts,t.publicKey=u})}}),{setAccount:st,setAddress:bg,setAccountNonce:Lr,setAccountShard:Eg,setLedgerAccount:qn,updateLedgerAccount:pp,setWalletConnectAccount:Lg,setIsAccountLoading:Nt,setAccountLoadingError:Gi,setWebsocketEvent:$i}=Wi.actions,kr=Wi.reducer});function Zt(){return new Date().setHours(new Date().getHours()+24)}function Qt(e){Ae.local.setItem({key:ce.loginExpiresAt,data:e,expires:e})}var Kn=v(()=>{"use strict";n();Ct();it()});var Hi,Vi,ji,Fg,Cr,up,Ge,Ug,Nr,zi,qi,Dr,er=v(()=>{"use strict";n();Hi=require("@reduxjs/toolkit");Kn();M();H();Vi={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},ji=(0,Hi.createSlice)({name:"loginInfoSlice",initialState:Vi,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload}},extraReducers:e=>{e.addCase(W,()=>Vi),e.addCase(Y,(t,r)=>{t.loginMethod=r.payload.loginMethod,Qt(Zt())})}}),{setLoginMethod:Fg,setWalletConnectLogin:Cr,setLedgerLogin:up,setTokenLogin:Ge,setTokenLoginSignature:Ug,setWalletLogin:Nr,invalidateLoginSession:zi,setLogoutRoute:qi}=ji.actions,Dr=ji.reducer});var Ji,Ki,Yi,Xi,dp,$g,mp,Rr,Mr=v(()=>{"use strict";n();Ji=require("@reduxjs/toolkit");H();Ki={},Yi=(0,Ji.createSlice)({name:"modalsSlice",initialState:Ki,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(W,()=>Ki)}}),{setTxSubmittedModal:Xi,setNotificationModal:dp,clearTxSubmittedModal:$g,clearNotificationModal:mp}=Yi.actions,Rr=Yi.reducer});var Zi,Qi,at,Dt=v(()=>{"use strict";n();Zi=!1,Qi=(e=!0)=>{Zi=e},at=(e,t=0)=>{Zi||setTimeout(()=>{!window||(window.location.href=e,window.location.assign(e))},t)}});function ct({callbackRoute:e,onLoginRedirect:t,options:r}){let o=Boolean(e),i=typeof t=="function",p=i?0:gp;o&&e!=null&&setTimeout(()=>{if(i)return t(e,r);window!=null&&window.location.pathname.includes(e)||at(e)},p)}var gp,es=v(()=>{"use strict";n();Dt();gp=200});function Jn(e){return e[Math.floor(Math.random()*e.length)]}var ts=v(()=>{"use strict";n()});var Yn=v(()=>{"use strict";n();Un()});var lt=v(()=>{"use strict";n();es();ts();Yn()});var rs,ns,Xn,fp,os,Zn,is,Or,tr=v(()=>{"use strict";n();rs=require("@reduxjs/toolkit"),ns=A(require("lodash.omit"));lt();Xn={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},fp={network:Xn,chainID:"-1"},os=(0,rs.createSlice)({name:"appConfig",initialState:fp,reducers:{initializeNetworkConfig:(e,t)=>{let r=Jn(t.payload.walletConnectBridgeAddresses),o=Jn(t.payload.walletConnectV2RelayAddresses),i=(0,ns.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=E(T(T({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Zn,setChainID:is}=os.actions,Or=os.reducer});var ss,Qn,as,lf,pf,uf,_r,Fr=v(()=>{"use strict";n();ss=require("@reduxjs/toolkit");B();H();Qn={isSigning:!1,signedSessions:{}},as=(0,ss.createSlice)({name:"signedMessageInfoSliceState",initialState:Qn,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]=o},setSignSessionState:(e,t)=>T(T({},e),t.payload),clearSignedMessageInfo:()=>Qn},extraReducers:e=>{e.addCase(W,()=>Qn)}}),{setSignSession:lf,clearSignedMessageInfo:pf,setSignSessionState:uf}=as.actions,_r=as.reducer});var ls,ps,cs,us,eo,to,Sf,xf,wf,vf,Ur,Br=v(()=>{"use strict";n();ls=require("@reduxjs/toolkit"),ps=require("redux-persist");Bn();B();br();H();cs={customToasts:[],transactionToasts:[],failTransactionToast:null},us=(0,ls.createSlice)({name:"toastsSlice",initialState:cs,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(E(T({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Pt(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=E(T({},t.payload),{toastId:vr})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(W,()=>cs),e.addCase(ps.REHYDRATE,(t,r)=>{var i,p;let o=(p=(i=r.customToasts)==null?void 0:i.filter(l=>!("component"in l)))!=null?p:[];t.customToasts=o})}}),{addCustomToast:eo,removeCustomToast:to,addTransactionToast:Sf,removeTransactionToast:xf,addFailTransactionToast:wf,removeFailTransactionToast:vf}=us.actions,Ur=us.reducer});var ds,no,oo,io,Tp,ro,ms,Ef,yp,so,Wr,Gr=v(()=>{"use strict";n();ds=require("@reduxjs/toolkit");H();no="Transaction failed",oo="Transaction successful",io="Processing transaction",Tp="Transaction submitted",ro={},ms=(0,ds.createSlice)({name:"transactionsInfo",initialState:ro,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||no,successMessage:(o==null?void 0:o.successMessage)||oo,processingMessage:(o==null?void 0:o.processingMessage)||io,submittedMessage:(o==null?void 0:o.submittedMessage)||Tp,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>ro},extraReducers:e=>{e.addCase(W,()=>ro)}}),{clearTransactionsInfo:Ef,setTransactionsDisplayInfo:yp,clearTransactionsInfoForSessionId:so}=ms.actions,Wr=ms.reducer});function Ce(e){return e!=null&&(bp(e)||Pp(e))}function ut(e){return e!=null&&(Ep(e)||Cp(e))}function dt(e){return e!=null&&(Lp(e)||Np(e))}function ao(e){return e!=null&&kp(e)}function bp(e){return e!=null&&hp.includes(e)}function Ep(e){return e!=null&&Sp.includes(e)}function Lp(e){return e!=null&&xp.includes(e)}function kp(e){return e!=null&&wp.includes(e)}function Pp(e){return e!=null&&vp.includes(e)}function Cp(e){return e!=null&&Ap.includes(e)}function Np(e){return e!=null&&Ip.includes(e)}var hp,Sp,xp,wp,vp,Ap,Ip,Rt=v(()=>{"use strict";n();M();hp=["sent"],Sp=["success"],xp=["fail","cancelled","timedOut"],wp=["timedOut"],vp=["pending"],Ap=["success"],Ip=["fail","invalid"]});var gs,fs,rr,Dp,Ts,nr,mt,Rp,Mt,Mp,Op,Of,_p,$r,co,Vr,Hr=v(()=>{"use strict";n();gs=require("@reduxjs/toolkit"),fs=require("redux-persist");M();Rt();H();rr={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Dp={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Ts=(0,gs.createSlice)({name:"transactionsSlice",initialState:rr,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,g;let{sessionId:r,transactions:o,errorMessage:i,status:p,redirectRoute:l}=t.payload,u=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||Dp;e.signedTransactions[r]={transactions:o,status:p,errorMessage:i,redirectRoute:l,customTransactionInformation:u},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===r&&(e.transactionsToSign=rr.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=T(T({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:p}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),p!=null&&(e.signedTransactions[r].transactions=p))},updateSignedTransactionStatus:(e,t)=>{var u,d,g,y,h,b;let{sessionId:r,status:o,errorMessage:i,transactionHash:p}=t.payload,l=(d=(u=e.signedTransactions)==null?void 0:u[r])==null?void 0:d.transactions;if(l!=null){e.signedTransactions[r].transactions=l.map(I=>I.hash===p?E(T({},I),{status:o,errorMessage:i}):I);let P=(y=(g=e.signedTransactions[r])==null?void 0:g.transactions)==null?void 0:y.every(I=>ut(I.status)),L=(b=(h=e.signedTransactions[r])==null?void 0:h.transactions)==null?void 0:b.every(I=>dt(I.status));P&&(e.signedTransactions[r].status="success"),L&&(e.signedTransactions[r].status="fail")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=rr.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=rr.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(W,()=>rr),e.addCase(fs.REHYDRATE,(t,r)=>{var l;if(t.signTransactionsCancelMessage=null,!((l=r.payload)!=null&&l.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,p=Object.entries(o).reduce((u,[d,g])=>{let y=new Date(d),h=new Date;return h.setHours(h.getHours()+5),h-y>0||(u[d]=g),u},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=p)})}}),{updateSignedTransactionStatus:nr,updateSignedTransactions:mt,setTransactionsToSign:Rp,clearAllTransactionsToSign:Mt,clearAllSignedTransactions:Mp,clearSignedTransaction:Op,clearTransactionToSign:Of,setSignTransactionsError:_p,setSignTransactionsCancelMessage:$r,moveTransactionsToSignedState:co}=Ts.actions,Vr=Ts.reducer});var C=v(()=>{"use strict";n();Pr();er();Mr();tr();Fr();Br();Gr();Hr()});var mo=v(()=>{"use strict";n()});var Os,Ms,_s,BT,WT,GT,$T,VT,HT,Fs,Us=v(()=>{"use strict";n();Os=require("@reduxjs/toolkit");H();Ms={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},_s=(0,Os.createSlice)({name:"dappModalsSlice",initialState:Ms,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=T({},t.payload)}},extraReducers:e=>{e.addCase(W,()=>Ms)}}),{setDappModalVisibility:BT,setDappModalHeaderVisibility:WT,setDappModalFooterVisibility:GT,setDappModalHeaderText:$T,setDappModalFooterText:VT,setDappModalConfig:HT}=_s.actions,Fs=_s.reducer});var Bs,Hp,jp,Tt,en=v(()=>{"use strict";n();Bs=require("@reduxjs/toolkit");mo();Pr();Us();er();Mr();tr();Fr();Br();Gr();Hr();Hp={["account"]:kr,["dappModal"]:Fs,["loginInfo"]:Dr,["modals"]:Rr,["networkConfig"]:Or,["signedMessageInfo"]:_r,["toasts"]:Ur,["transactionsInfo"]:Wr,["transactions"]:Vr},jp=(e={})=>(0,Bs.combineReducers)(T(T({},Hp),e)),Tt=jp});var Vs={};Qe(Vs,{default:()=>su,sessionStorageReducers:()=>go});function He(e,t=[]){return{key:e,version:1,storage:Gs.default,blacklist:t}}var pe,Ws,Gs,zp,sr,qp,Kp,Jp,Yp,Xp,Zp,Qp,eu,tu,$s,ru,go,nu,ou,iu,su,Hs=v(()=>{"use strict";n();pe=require("redux-persist"),Ws=A(require("redux-persist/lib/storage")),Gs=A(require("redux-persist/lib/storage/session"));en();C();Pr();er();Mr();tr();Fr();Br();Gr();Hr();mo();zp={persistReducersStorageType:"localStorage"},sr={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},qp=He(sr["account"]),Kp=He(sr["loginInfo"]),Jp=He(sr["modals"]),Yp=He(sr["networkConfig"]),Xp={2:e=>E(T({},e),{networkConfig:Xn})};Zp=He("sdk-dapp-transactionsInfo"),Qp=He("sdk-dapp-transactions",["transactionsToSign"]),eu=He("sdk-dapp-toasts"),tu=He("sdk-dapp-signedMessageInfo"),$s={key:"sdk-dapp-store",version:2,storage:Ws.default,whitelist:Object.keys(sr),migrate:(0,pe.createMigrate)(Xp,{debug:!1})},ru=E(T({},$s),{whitelist:[]}),go={["toasts"]:(0,pe.persistReducer)(eu,Ur),["transactions"]:(0,pe.persistReducer)(Qp,Vr),["transactionsInfo"]:(0,pe.persistReducer)(Zp,Wr),["signedMessageInfo"]:(0,pe.persistReducer)(tu,_r)},nu=E(T({},go),{["account"]:(0,pe.persistReducer)(qp,kr),["loginInfo"]:(0,pe.persistReducer)(Kp,Dr),["modals"]:(0,pe.persistReducer)(Jp,Rr),["networkConfig"]:(0,pe.persistReducer)(Yp,Or)}),ou=zp.persistReducersStorageType==="localStorage",iu=ou?(0,pe.persistReducer)($s,Tt(go)):(0,pe.persistReducer)(ru,Tt(nu)),su=iu});var js={};Qe(js,{default:()=>au});var au,zs=v(()=>{"use strict";n();en();au=Tt()});var qs={};Qe(qs,{default:()=>lu});var ge,cu,lu,Ks=v(()=>{"use strict";n();ge=require("redux-persist"),cu=[ge.FLUSH,ge.REHYDRATE,ge.PAUSE,ge.PERSIST,ge.PURGE,ge.REGISTER],lu=cu});var Xs={};Qe(Xs,{default:()=>Ys});function Ys(e){return(0,Js.persistStore)(e)}var Js,Zs=v(()=>{"use strict";n();Js=require("redux-persist")});var $a=ae((ME,Ga)=>{n();var ld=typeof s=="object"&&s&&s.Object===Object&&s;Ga.exports=ld});var Ha=ae((OE,Va)=>{n();var pd=$a(),ud=typeof self=="object"&&self&&self.Object===Object&&self,dd=pd||ud||Function("return this")();Va.exports=dd});var ko=ae((_E,ja)=>{n();var md=Ha(),gd=md.Symbol;ja.exports=gd});var Ja=ae((FE,Ka)=>{n();var za=ko(),qa=Object.prototype,fd=qa.hasOwnProperty,Td=qa.toString,gr=za?za.toStringTag:void 0;function yd(e){var t=fd.call(e,gr),r=e[gr];try{e[gr]=void 0;var o=!0}catch(p){}var i=Td.call(e);return o&&(t?e[gr]=r:delete e[gr]),i}Ka.exports=yd});var Xa=ae((UE,Ya)=>{n();var hd=Object.prototype,Sd=hd.toString;function xd(e){return Sd.call(e)}Ya.exports=xd});var tc=ae((BE,ec)=>{n();var Za=ko(),wd=Ja(),vd=Xa(),Ad="[object Null]",Id="[object Undefined]",Qa=Za?Za.toStringTag:void 0;function bd(e){return e==null?e===void 0?Id:Ad:Qa&&Qa in Object(e)?wd(e):vd(e)}ec.exports=bd});var nc=ae((WE,rc)=>{n();var Ed=Array.isArray;rc.exports=Ed});var ic=ae((GE,oc)=>{n();function Ld(e){return e!=null&&typeof e=="object"}oc.exports=Ld});var ac=ae(($E,sc)=>{n();var kd=tc(),Pd=nc(),Cd=ic(),Nd="[object String]";function Dd(e){return typeof e=="string"||!Pd(e)&&Cd(e)&&kd(e)==Nd}sc.exports=Dd});var Sm={};Qe(Sm,{DappProvider:()=>hm});module.exports=Yt(Sm);n();var zt=A(require("react")),yl=require("react-redux"),hl=require("redux-persist/integration/react");n();var _e=require("react"),wc=require("@multiversx/sdk-extension-provider"),vc=require("@multiversx/sdk-hw-provider"),Ac=require("@multiversx/sdk-opera-provider");n();n();n();var va=A(require("axios"));n();n();C();n();var ys=A(require("lodash.isequal")),jr=require("reselect");B();var x=(0,jr.createSelectorCreator)(jr.defaultMemoize,ys.default),or=(e,t)=>e!=""&&Boolean(t);var Ne=e=>e.account,De=x(Ne,e=>e.address),Ve=x(Ne,De,(e,t)=>t in e.accounts?e.accounts[t]:Er),hs=x(Ne,Ve,(e,t)=>{let i=e,{accounts:r}=i,o=Ze(i,["accounts"]);return E(T({},o),{account:t})}),Fp=x(Ve,e=>e.balance),Ss=x(Ve,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Yf=x(Ne,e=>e.shard),lo=x(Ne,e=>e.ledgerAccount),Xf=x(Ne,e=>e.walletConnectAccount),Zf=x(Ne,e=>e.isAccountLoading),Qf=x(Ne,e=>e.accountLoadingError),po=x(Ne,e=>e.websocketEvent);n();var Z=e=>e.loginInfo,xs=x(Z,e=>e.loginMethod),gt=x(Z,De,(e,t)=>or(e.loginMethod,t)),ws=x(Z,e=>e.walletConnectLogin),vs=x(Z,e=>e.ledgerLogin),zr=x(Z,e=>e.walletLogin),As=x(Z,e=>e.isLoginSessionInvalid),qr=x(Z,e=>e.tokenLogin),Ot=x(Z,e=>e.logoutRoute);n();var Is=e=>e.modals,iT=x(Is,e=>e.txSubmittedModal),Up=x(Is,e=>e.notificationModal);n();var Ie=e=>e.networkConfig,ir=x(Ie,e=>e.chainID),bs=x(Ie,e=>e.network.walletConnectBridgeAddress),Es=x(Ie,e=>e.network.walletConnectV2RelayAddress),Ls=x(Ie,e=>e.network.walletConnectV2ProjectId),ks=x(Ie,e=>e.network.walletConnectV2Options),Kr=x(Ie,e=>e.network.walletConnectDeepLink),me=x(Ie,e=>e.network),Jr=x(me,e=>e.apiAddress),Ps=x(me,e=>e.explorerAddress),Cs=x(me,e=>e.egldLabel);n();var Yr=e=>e.signedMessageInfo,pT=x(Yr,e=>e.isSigning),uT=x(Yr,e=>e.errorMessage),dT=x(Yr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),mT=x(Yr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var uo=e=>e.toasts,TT=x(uo,e=>e.customToasts),yT=x(uo,e=>e.transactionToasts),hT=x(uo,e=>e.failTransactionToast);n();C();var Ns={errorMessage:no,successMessage:oo,processingMessage:io},Bp=e=>e.transactionsInfo,Wp=x(Bp,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Ns);n();n();var le=require("@multiversx/sdk-core");N();n();function Xr(e){try{return a.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function ft(e){return Xr(e)?atob(e):e}function _t(e){var i,p,l;let{data:t}=e,r=Xr(t!=null?t:"")?le.TransactionPayload.fromEncoded(t):new le.TransactionPayload(t),o=new le.Transaction(T({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new le.Address(e.receiver),sender:new le.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:Xt,gasPrice:(p=e.gasPrice.valueOf())!=null?p:Ar,chainID:e.chainID.valueOf(),version:new le.TransactionVersion((l=e.version)!=null?l:ki)},e.options?{options:new le.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new le.Address(e.sender)),o}n();n();n();n();var fo=require("@reduxjs/toolkit"),ra=require("react-redux/lib/utils/Subscription");C();n();var Ds=A(require("lodash.throttle"));N();C();Kn();Ct();it();var Gp=[Ir],Zr=!1,$p=(0,Ds.default)(()=>{Qt(Zt())},5e3),Rs=e=>t=>r=>{var d;if(Gp.includes(r.type))return t(r);let o=e.getState(),i=Ae.local.getItem(ce.loginExpiresAt);if(!or((d=o==null?void 0:o.loginInfo)==null?void 0:d.loginMethod,o==null?void 0:o.account.address))return t(r);if(i==null)return Qt(Zt());let l=Date.now();return i-l<0&&!Zr?setTimeout(()=>{Zr=!0,e.dispatch(zi())},1e3):(Zr&&(Zr=!1),$p()),t(r)};n();n();function Qr(){return typeof sessionStorage!="undefined"}var Qs=Qr()?(Hs(),Yt(Vs)).default:(zs(),Yt(js)).default,ea=Qr()?(Ks(),Yt(qs)).default:[],ta=Qr()?(Zs(),Yt(Xs)).default:e=>e;en();var w=(0,fo.configureStore)({reducer:Qs,middleware:e=>e({serializableCheck:{ignoredActions:[...ea,Lr.type,st.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Rs)}),na=(0,ra.createSubscription)(w),oa=ta(w),wy=(0,fo.configureStore)({reducer:Tt});n();n();var uu=require("@multiversx/sdk-core/out");n();N();n();var sa=require("@multiversx/sdk-core");B();n();var ia=require("@multiversx/sdk-core");function du(e){try{let t=new ia.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function ar(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&du(e)}n();n();n();var gu=require("@multiversx/sdk-core"),fu=A(require("bignumber.js"));M();n();n();n();n();n();var la="dapp/config",pa="network/config";var tn="accounts";var To="blocks";n();n();n();n();ne();n();n();ne();n();n();n();var Au=A(require("bignumber.js"));N();n();var vu=require("@multiversx/sdk-core"),yo=A(require("bignumber.js"));N();n();var xu=A(require("bignumber.js"));n();yo.default.config({ROUNDING_MODE:yo.default.ROUND_FLOOR});n();n();n();N();n();n();n();n();N();n();N();n();var Iu=require("@multiversx/sdk-core");N();n();var cr=require("@multiversx/sdk-core"),Lu=require("@multiversx/sdk-network-providers");N();n();n();var bu=A(require("bignumber.js"));N();n();N();n();n();n();n();n();N();n();ne();var Pu=["reDelegateRewards","claimRewards","unBond"],Cu=["wrapEgld","unwrapEgld"],Nu=["unStake"],Du=["unDelegate"];n();n();n();N();n();var _u=A(require("bignumber.js"));n();n();n();n();ne();n();var Fu=A(require("bignumber.js"));n();n();n();var Wu=A(require("bignumber.js"));B();n();n();n();n();M();n();n();n();n();ne();n();n();n();var Gu=A(require("linkifyjs"));n();N();n();var $u=A(require("bignumber.js"));n();B();n();n();M();n();M();n();n();n();ne();n();ne();n();var Vu=A(require("bignumber.js"));N();ne();n();ne();n();var Ta=require("react");B();n();n();ne();n();n();var Hu=require("@multiversx/sdk-core/out"),ju=A(require("bignumber.js"));ne();n();B();n();n();B();var qv=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var ya=require("react");B();n();var qu=require("react");ne();var eA=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Rt();var sn=e=>e.transactions,ze=x(sn,e=>e.signedTransactions),Ku=x(sn,e=>e.signTransactionsError),ha=x(sn,e=>e.signTransactionsCancelMessage),an=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),So=x(ze,an(Ce)),Sa=x(ze,an(ut)),xa=x(ze,an(dt)),Ju=x(ze,an(ao)),wa=x(sn,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:E(T({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>_t(r)))||[]})}),Yu=x(ze,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function Aa(e){return f(this,null,function*(){let{apiAddress:t,apiTimeout:r}=me(w.getState()),o=e.map(p=>va.default.post(`${t}/transactions`,p.toPlainObject(),{timeout:parseInt(r)}));return(yield Promise.all(o)).map(({data:p})=>p.txHash)})}n();var Ia=A(require("axios"));function cn(e){return f(this,null,function*(){let t=Jr(w.getState()),r=e.map(i=>i.hash),{data:o}=yield Ia.default.get(`${t}/transactions`,{params:{hashes:r.join(","),withScResults:!0}});return e.map(({hash:i,previousStatus:p})=>{let l=o.find(u=>(u==null?void 0:u.txHash)===i);return{hash:i,data:l==null?void 0:l.data,invalidTransaction:l==null,status:l==null?void 0:l.status,results:l==null?void 0:l.results,sender:l==null?void 0:l.sender,receiver:l==null?void 0:l.receiver,previousStatus:p,hasStatusChanged:l&&l.status!==p}})})}n();var Zu=A(require("axios"));n();n();var Qu=A(require("axios"));n();var ed=A(require("axios"));n();n();n();var Ea=A(require("axios"));n();n();var ln=e=>{let t=e!=null?e:Jr(w.getState());return t.endsWith("/")?t.slice(0,-1):t};function La(e){return f(this,null,function*(){if(!e)return null;let r=`${ln()}/${tn}/${e}`;try{let{data:o}=yield Ea.default.get(r);return o}catch(o){console.error("error fetching configuration for ",r)}return null})}n();n();Lt();n();var ka=A(require("axios"));function xo(e){return f(this,null,function*(){let t=`${e}/${la}`;try{let{data:o}=yield ka.default.get(t);if(o!=null){let i="egldDenomination";if(i in o){let r=o,{[i]:p,decimals:l}=r,u=Ze(r,[jo(i),"decimals"]);return E(T({},u),{decimals:p,digits:l})}return o}}catch(o){console.error("error fetching configuration for ",t)}return null})}n();var Pa=A(require("axios"));function Ca(){return f(this,null,function*(){var r;let t=`${ln()}/${pa}`;try{let{data:o}=yield Pa.default.get(t);if(o!=null)return(r=o==null?void 0:o.data)==null?void 0:r.config}catch(o){console.error("error fetching configuration for ",t)}return null})}n();Lt();n();Lt();n();var td=A(require("axios"));n();var mc=require("react"),fn=require("@multiversx/sdk-core");n();n();n();var Na=require("react"),Ft=require("react-redux");var rd={store:w,subscription:na},lr=(0,Na.createContext)(rd),sb=(0,Ft.createStoreHook)(lr),D=(0,Ft.createDispatchHook)(lr),S=(0,Ft.createSelectorHook)(lr);var Re=()=>S(hs);n();var Ut=()=>S(Ve);n();n();n();n();n();var pr=A(require("react"));var wb=(0,pr.createContext)({}),vb=w.getState();n();var Ra=A(require("react"));n();var wo=A(require("react")),nd=A(require("axios"));n();n();n();n();n();var Ma=require("@multiversx/sdk-extension-provider"),Oa=require("@multiversx/sdk-hw-provider"),_a=require("@multiversx/sdk-opera-provider"),vo=require("@multiversx/sdk-web-wallet-provider");N();M();n();var ur=Bt,pn=ur;var od="/dapp/init",yt=e=>{switch(e==null?void 0:e.constructor){case vo.WalletProvider:return"wallet";case ur:return"walletconnect";case pn:return"walletconnectv2";case Oa.HWProvider:return"ledger";case Ma.ExtensionProvider:return"extension";case _a.OperaProvider:return"opera";case Bt:return"";default:return"extra"}},Ao=e=>new vo.WalletProvider(`${e}${od}`),Io=e=>f(void 0,null,function*(){if(!e.isInitialized())throw new Error("Unable to get version. Provider not initialized");let t=e.hwApp,{contractData:r,version:o}=yield t.getAppConfiguration();return{version:o,dataEnabled:r===Pi}}),Me=e=>`Unable to perform ${e}, Provider not initialized`,Bt=class{init(){return Promise.resolve(!1)}login(t){throw new Error(Me(`login with options: ${t}`))}logout(t){throw new Error(Me(`logout with options: ${t}`))}getAddress(){throw new Error(Me("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(Me(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(Me(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(Me(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(Me(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(Me(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(Me(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},dr=new Bt;var Eo=dr,bo=null;function ue(e){Eo=e}function Lo(e){bo=e}function un(){bo!=null&&(Eo=bo)}function oe(){return Eo||dr}var mr=()=>{let e=oe(),t=yt(e);return{provider:e,providerType:t}};n();C();n();n();n();var id=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),Wt=e=>id(a.Buffer.from(e,"utf8").toString("base64"));n();var Ba=A(require("axios"));n();n();n();function Fa(e){return f(this,null,function*(){return yield new Promise(t=>{setTimeout(()=>t(),e)})})}n();var Ua=(e,t,r,o=0)=>f(void 0,null,function*(){try{return yield e(...r)}catch(i){return o<t.retries?((t==null?void 0:t.delay)!=null&&(yield Fa(t.delay)),yield Ua(e,t,r,o+1)):null}}),dn=(e,t={retries:5,delay:500})=>(...r)=>f(void 0,null,function*(){return yield Ua(e,t,r)});var sd=4,ad=3e4,mn={current:null},ht={current:null},cd=dn((e,t)=>f(void 0,null,function*(){let{data:r}=yield Ba.default.get(`${e}/${To}?from=${sd}&size=1&fields=hash,timestamp${t?"&shard="+t:""}`),[o]=r;return o}));function Wa(e,t){return f(this,null,function*(){if(e==null)throw new Error("missing api url");let r=Date.now();if(mn.current!=null&&r<mn.current.timestamp*1e3+ad)return mn.current;if(ht.current!=null)return yield ht.current;ht.current=cd(e,t);try{let o=yield ht.current;if(o==null)throw ht.current=null,new Error("could not get block hash");return mn.current={hash:o.hash,timestamp:o.timestamp},ht.current=null,o}catch(o){return ht.current=null,null}})}n();n();br();n();n();var cc=A(ac());var lc=e=>{if(!e||!(0,cc.default)(e))return null;let t=e.split(".");if(t.length!==4)return console.error("Invalid loginToken. You may be trying to decode a nativeAuthToken. Try using decodeNativeAuthToken method instead"),null;try{let[r,o,i,p]=t,l=JSON.parse(ft(p)),u=ft(r);return{ttl:Number(i),extraInfo:l,origin:u,blockHash:o}}catch(r){return console.error(`Error trying to decode ${e}:`,r),null}};function Rd(e){return Object.prototype.toString.call(e)==="[object String]"}var gn=e=>{var r;if(!e||!Rd(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,p]=t,l=ft(o),u=ft(i),d=lc(u);if(!d)return{address:l,body:u,signature:p,blockHash:"",origin:"",ttl:0};let g=E(T({},d),{address:l,body:u,signature:p});return(r=d.extraInfo)!=null&&r.timestamp||delete g.extraInfo,g}catch(o){return null}};var Gt=e=>{let t=gn(e);if(!t)return{isExpired:!1};let r=Pt(),{ttl:o,extraInfo:i}=t,p=i==null?void 0:i.timestamp;if(!p)return{isExpired:!1};let l=p+o,u=r>l,d=l-r;return{isExpired:u,expiresAt:l,secondsUntilExpires:d}};n();var pc,fr={origin:typeof window!="undefined"?(pc=window==null?void 0:window.location)==null?void 0:pc.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},Tr=e=>{var r,o,i,p,l;return e===!0?fr:{origin:(r=e==null?void 0:e.origin)!=null?r:fr.origin,blockHashShard:(o=e==null?void 0:e.blockHashShard)!=null?o:null,expirySeconds:(i=e==null?void 0:e.expirySeconds)!=null?i:fr.expirySeconds,apiAddress:(p=e==null?void 0:e.apiAddress)!=null?p:fr.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:fr.tokenExpirationToastWarningSeconds}};n();var uc=({address:e,token:t,signature:r})=>{let o=Wt(e),i=Wt(t);return`${o}.${i}.${r}`};var dc=e=>{let{origin:t,apiAddress:r,expirySeconds:o,blockHashShard:i}=Tr(e);return{getNativeAuthConfig:Tr,initialize:(...d)=>f(void 0,[...d],function*(l={},u){if(!r||!t)return"";let g=u!=null?u:yield Wa(r,i),{hash:y,timestamp:h}=g,b=Wt(JSON.stringify(T(T({},l),h?{timestamp:h}:{})));return`${Wt(t)}.${y}.${o}.${b}`}),getToken:uc,getTokenExpiration:Gt}};var Md=(e,t)=>{var r;return t?t===!0?e:(r=t.apiAddress)!=null?r:e:null},be=e=>{let t=S(me),r=S(qr),o=(0,mc.useRef)(r==null?void 0:r.loginToken),i=Md(t.apiAddress,e),p=Tr(T(T({},e===!0?{}:e),i?{apiAddress:i}:{})),l=Boolean(e),u=dc(p),{address:d}=Ut(),g=D(),y=L=>{o.current=L,g(Ge(T({loginToken:L},i?{nativeAuthConfig:p}:{})))},h=()=>f(void 0,null,function*(){try{return yield u.initialize()}catch(L){console.error("Unable to get block. Login failed.",L);return}}),b=({address:L,signature:I})=>{let _=o.current;if(!_)throw"Token not found. Call `setLoginToken` first.";if(!l){g(Ge({loginToken:_,signature:I}));return}let R=u.getToken({address:L,token:_,signature:I});g(Ge(T({loginToken:_,signature:I,nativeAuthToken:R},i?{nativeAuthConfig:p}:{})))};return{configuration:p,setLoginToken:y,getNativeAuthLoginToken:h,setTokenLoginInfo:b,refreshNativeAuthTokenLogin:I=>f(void 0,[I],function*({signMessageCallback:L}){let _=yield h();if(o.current=_,!_)return;let R=new fn.SignableMessage({address:new fn.Address(d),message:a.Buffer.from(_)}),j=yield L(R,{});b({address:d,signature:j.toJSON().signature})})}};n();var Ke=require("react");n();var Tn=require("react");function $t(e,t=[]){let r=(0,Tn.useRef)(!0);(0,Tn.useEffect)(()=>{r.current?r.current=!1:e()},t)}H();C();M();n();n();function gc(){let e=oe();return yt(e)}function fe(e){return gc()===e}n();function Te(){return gt(w.getState())}lt();n();H();B();n();n();M();function Oe(){let e=window==null?void 0:window.location.search,t=w.getState(),r=oe(),o=De(t),i=gt(t),p=zr(t);if(!r)throw"provider not initialized";return fe("ledger")&&i?new Promise(l=>{l(o)}):!fe("")&&!fe("wallet")&&!fe("extra")?r.getAddress():new Promise(l=>{if(p!=null){let u=new URLSearchParams(e),d=Object.fromEntries(u);ar(d.address)&&l(d.address)}i&&l(o),l("")})}n();function qe(e){return f(this,null,function*(){return yield La(e)})}n();C();function fc(e){w.dispatch(Lr(e))}n();function Vt(e){let t=w.getState(),r=Ss(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}n();n();C();var Tc=()=>f(void 0,null,function*(){try{let e=yield Oe();try{let t=yield qe(e);if(t!=null){let r=E(T({},t),{nonce:Vt(t)});return w.dispatch(st(r)),r}}catch(t){console.error("Failed getting account ",t)}}catch(e){console.error("Failed getting address ",e)}return null});function yn(){return f(this,null,function*(){let e=oe();if(e==null)throw"Provider not initialized";if(!e.isInitialized||e.isInitialized())return Tc();try{if(!e.init)throw"Current provider does not have init() function";return(yield e.init())?Tc():void 0}catch(t){console.error("Failed initializing provider ",t)}})}n();var yc=require("@multiversx/sdk-core");n();H();B();Dt();Ct();it();var Od=e=>{let t=Ae.local.getItem(ce.logoutEvent),{data:r}=t?JSON.parse(t):{data:e};e===r&&(Ae.local.setItem({key:ce.logoutEvent,data:e,expires:0}),Ae.local.removeItem(ce.logoutEvent))};function Q(e,t,r=!0){return f(this,null,function*(){let o=oe(),i=yt(o),p=Te(),l=i==="wallet";if(r&&(o==null?void 0:o.relogin)!=null)return yield o.relogin();if(!p||!o){Po(e,t,!1);return}try{let u=yield Oe();Od(u)}catch(u){Po(e,t,!1),console.error("error fetching logout address",u)}l&&Qi(),w.dispatch(W());try{let d=l&&!e?window==null?void 0:window.location.origin:e;l?setTimeout(()=>{o.logout({callbackUrl:d})}):(yield o.logout({callbackUrl:d}),Po(e,t,l))}catch(u){console.error("error logging out",u)}})}function Po(e,t,r){e&&!r&&(typeof t=="function"?t(e):at(e))}var Co=({logoutRoute:e,callbackRoute:t,nativeAuth:r,token:o,onLoginRedirect:i})=>{let p=D(),l=15e3,u=r!=null,d=be(r),g=o,[y,h]=(0,Ke.useState)(""),[b,P]=(0,Ke.useState)(""),{provider:L}=mr(),I=S(bs),_=S(Kr),R=(0,Ke.useRef)(L),j=(0,Ke.useRef)(!0),ie,ee=Boolean(b),Je=!ee,Be=ee?`${_}?wallet-connect=${encodeURIComponent(b)}`:"";(0,Ke.useEffect)(()=>{Xe();let F=setInterval(()=>{Xe()},l);return()=>clearInterval(F)},[L]),$t(()=>{!o||vt()},[o]),$t(()=>{R.current=L},[L]);let G=()=>{Q(e)},Ye=()=>{j.current=!1};function Xe(){return f(this,null,function*(){var se,z;if(L==null||!fe("walletconnect")||!Boolean((z=(se=R.current)==null?void 0:se.walletConnector)==null?void 0:z.connected))return;let K={method:"heartbeat",params:{}};try{yield R.current.sendCustomMessage(K)}catch(te){console.error("Connection lost",te),G()}})}function qt(){return f(this,null,function*(){var F;try{let K=R.current;if(Te()||K==null||!fe("walletconnect"))return;if(!j.current){try{yield(F=R.current)==null?void 0:F.logout()}catch(q){console.warn("Unable to logout")}return}let z=yield K.getAddress();if(!z){console.warn("Login cancelled.");return}let te=yield K.getSignature(),At={address:z,loginMethod:"walletconnect"},$={logoutRoute:e,loginType:"walletConnect",callbackRoute:t!=null?t:window==null?void 0:window.location.href};p(Cr($)),te&&d.setTokenLoginInfo({signature:te,address:z}),p(Y(At)),K.walletConnector.on("heartbeat",()=>{clearInterval(ie),ie=setInterval(()=>{console.log("xPortal Mobile Wallet Connection Lost"),G(),clearInterval(ie)},15e4)}),ct({callbackRoute:t,onLoginRedirect:i,options:{address:z,signature:te}})}catch(K){h("Invalid address"),console.error(K)}})}function Kt(F=!0){return f(this,null,function*(){var te,At;let K=F&&!b;if(!I||((At=(te=R==null?void 0:R.current)==null?void 0:te.isInitialized)==null?void 0:At.call(te))&&!K)return;let se={onClientLogin:qt,onClientLogout:G},z=new ur(I,se);yield z.init(),j.current=!0,ue(z),R.current=z,F&&vt()})}function vt(){return f(this,null,function*(){var z;if(!I)return;let F=yield(z=R.current)==null?void 0:z.login();if(!Boolean(F))return;if(u&&!g&&(g=yield d.getNativeAuthLoginToken(),!g)){console.warn("Fetching block failed. Login cancelled.");return}if(!g){P(F);return}d.setLoginToken(g);let se=`${F}&token=${g}`;P(se)})}let k=Boolean(y),O=Te();return[Kt,{error:y,loginFailed:k,isLoading:Je&&!k,isLoggedIn:O&&!k},{uriDeepLink:Be,walletConnectUri:b,cancelLogin:Ye}]};n();var Ee=require("react");H();C();M();lt();var No=({callbackRoute:e,logoutRoute:t,token:r,nativeAuth:o,onLoginRedirect:i})=>{let p=D(),l=o!=null,u=be(o),d=r,[g,y]=(0,Ee.useState)(""),[h,b]=(0,Ee.useState)(""),[P,L]=(0,Ee.useState)(!0),[I,_]=(0,Ee.useState)([]),R=oe(),j=S(Es),ie=S(Ls),ee=S(ks),Je=S(ir),Be=S(Kr),G=(0,Ee.useRef)(R),Ye=(0,Ee.useRef)(!0),Xe=["erd_cancelAction","multiversx_cancelAction"],qt=P?"":`${Be}?wallet-connect=${encodeURIComponent(h)}`;$t(()=>{!r||z()},[r]),$t(()=>{G.current=R},[R]),(0,Ee.useEffect)(()=>{L(!Boolean(h))},[h]);let Kt=()=>{Q(t)},vt=$=>{console.log("wc2 session event: ",$)},k=()=>{Ye.current=!1};function O(){return f(this,null,function*(){var $;try{let q=G.current;if(Te()||q==null||!fe("walletconnectv2"))return;if(!Ye.current){try{yield($=G.current)==null?void 0:$.logout()}catch(xm){console.warn("Unable to logout")}return}let ye=yield q.getAddress();if(!ye){console.warn("Login cancelled.");return}let We=yield q.getSignature(),bn={address:ye,loginMethod:"walletconnectv2"},Sl={logoutRoute:t,loginType:"walletconnectv2",callbackRoute:e!=null?e:window==null?void 0:window.location.href};p(Cr(Sl)),We&&u.setTokenLoginInfo({signature:We,address:ye}),p(Y(bn)),ct({callbackRoute:e,onLoginRedirect:i,options:{address:ye,signature:We}})}catch(q){y("Invalid address"),console.error(q)}})}function F($=!0){return f(this,null,function*(){if(!ie||!j){y("Invalid WalletConnect setup");return}let q={onClientLogin:O,onClientLogout:Kt,onClientEvent:vt},J=new pn(q,Je,j,ie,ee);yield J.init(),Ye.current=!0,ue(J),_(J.pairings),G.current=J,$&&z()})}function K($){return f(this,null,function*(){var q,J,ye;if(!j||!ie){y("Invalid WalletConnect setup");return}if(!$||!$.topic){y("Expired connection");return}try{let{approval:We}=yield(q=G.current)==null?void 0:q.connect({topic:$.topic,methods:Xe});if(l&&!d&&(d=yield u.getNativeAuthLoginToken(),!d)){console.warn("Fetching block failed. Login cancelled.");return}d&&u.setLoginToken(d);try{yield(J=G.current)==null?void 0:J.login({approval:We,token:d})}catch(bn){y("User rejected existing connection proposal"),L(!0),yield F()}}catch(We){console.error("Unable to connect to existing session",We),y("Unable to connect to existing session")}finally{_((ye=G.current)==null?void 0:ye.pairings)}})}function se($){return f(this,null,function*(){var q,J;try{$&&(yield(q=G.current)==null?void 0:q.logout({topic:$}))}catch(ye){console.error("Unable to remove existing pairing",ye),y("Unable to remove existing pairing")}finally{_((J=G.current)==null?void 0:J.pairings)}})}function z(){return f(this,null,function*(){var $,q;if(!j||!ie){y("Invalid WalletConnect setup");return}try{let{uri:J,approval:ye}=yield($=G.current)==null?void 0:$.connect({methods:Xe});if(!Boolean(J))return;if(b(J),l&&!d&&(d=yield u.getNativeAuthLoginToken(),!d)){console.warn("Fetching block failed. Login cancelled.");return}d&&u.setLoginToken(d);try{yield(q=G.current)==null?void 0:q.login({approval:ye,token:d})}catch(bn){y("User rejected connection proposal"),L(!0),yield F()}}catch(J){console.error("Unable to connect",J)}})}let te=Boolean(g),At=Te();return[F,{error:g,loginFailed:te,isLoading:P&&!te,isLoggedIn:At&&!te},{uriDeepLink:qt,walletConnectUri:h,cancelLogin:k,connectExisting:K,removeExistingPairing:se,wcPairings:I}]};H();C();M();n();n();var Do=e=>{let t=new URLSearchParams(e).toString(),r=window==null?void 0:window.location.pathname,o=t?`?${t}`:"",i=r?`${r}${o}`:"./";setTimeout(()=>{window==null||window.history.replaceState({},document==null?void 0:document.title,i)})};var hc,_d={search:(hc=window==null?void 0:window.location)==null?void 0:hc.search,removeParams:[]},Ro=(e,t=_d)=>{var p,l;let r={},o=(l=t.search)!=null?l:(p=window==null?void 0:window.location)==null?void 0:p.search;if(o){let u=o?new URLSearchParams(o):[];r=Object.fromEntries(u)}let i={};return e.forEach(u=>{i[u]=r[u],delete r[u]}),t.removeParams!=null&&Object.keys(r).forEach(u=>{var g,y;let[d]=u.split("[");(((g=t.removeParams)==null?void 0:g.includes(u))||((y=t.removeParams)==null?void 0:y.includes(d)))&&delete r[u]}),{remainingParams:i,params:r,clearNavigationHistory:()=>Do(r)}};n();var Sc=require("react");n();H();C();B();function hn(e,t){let r=gn(e);if(r==null)return;let o=t!=null?t:w.dispatch,{signature:i,address:p}=r;i&&e&&p&&(o(W()),setTimeout(()=>{o(Ge({loginToken:e,signature:i,nativeAuthToken:e})),o(Y({address:p,loginMethod:"extra"}))}))}function xc(){var p;let e=D(),t=typeof window!="undefined"?(p=window==null?void 0:window.location)==null?void 0:p.search:"",r=new URLSearchParams(t),o=Object.fromEntries(r),i=o==null?void 0:o.accessToken;(0,Sc.useEffect)(()=>{hn(i,e)},[i])}function Ic(){let e=S(me),t=S(ws),r=S(xs),o=S(zr),i=S(De),p=S(lo),l=S(vs),u=S(gt),d=S(Ot),[g,y]=(0,_e.useState)(),h=S(qr),b=h==null?void 0:h.nativeAuthConfig,P=be(b||!1),L=(0,_e.useRef)(!1),I=D();xc();let{callbackRoute:_,logoutRoute:R}=t||{callbackRoute:"",logoutRoute:""},[j]=Co({callbackRoute:_,logoutRoute:R}),[ie]=No({callbackRoute:_,logoutRoute:R});(0,_e.useEffect)(()=>{ee()},[e]),(0,_e.useEffect)(()=>{vt()},[r]),(0,_e.useEffect)(()=>{Be()},[i,e]),(0,_e.useEffect)(()=>{Je()},[p,u,g]);function ee(){return f(this,null,function*(){try{let k=yield Ca();k&&I(is(k.erd_chain_id))}catch(k){console.error("failed refreshing chainId ",k)}})}function Je(){p==null&&l!=null&&g&&I(qn({index:l.index,address:i,hasContractDataEnabled:g.dataEnabled,version:g.version}))}function Be(){return f(this,null,function*(){if(I(Nt(!0)),L.current){L.current=!1,I(Nt(!1));return}if(i)try{let k=yield qe(i);k&&I(st(E(T({},k),{address:i,nonce:k.nonce.valueOf()})))}catch(k){I(Gi("Failed getting account")),console.error("Failed getting account ",k)}I(Nt(!1))})}function G(){return f(this,null,function*(){let k=Ao(e.walletAddress);if(ue(k),o!=null){try{let O=yield Oe(),{clearNavigationHistory:F,remainingParams:{signature:K}}=Ro(["signature","loginToken","address"]);if(!O)return ue(dr),I(Ge(null)),I(Nr(null)),F();K&&P.setTokenLoginInfo({signature:K,address:O});let se=yield qe(O);se&&(L.current=!0,I(Nt(!0)),I(Y({address:O,loginMethod:"wallet"})),I(st(E(T({},se),{nonce:Vt(se)}))),I(Nt(!1))),F()}catch(O){console.error("Failed authenticating wallet user ",O)}I(Nr(null))}})}function Ye(){return f(this,null,function*(){let k=new vc.HWProvider,O=k.isInitialized();if(O||(O=yield k.init()),!O&&u){console.warn("Could not initialise ledger app"),Q(d);return}return(l==null?void 0:l.index)!=null&&(k.addressIndex=l.index),k})}function Xe(){return f(this,null,function*(){try{let k=yield Ye();if(!k)return;let O=yield Io(k);ue(k),y(O)}catch(k){console.error("Could not initialise ledger app",k),Q(d)}})}function qt(){return f(this,null,function*(){try{let k=yield Oe(),O=wc.ExtensionProvider.getInstance().setAddress(k);(yield O.init())?ue(O):console.error("Could not initialise extension, make sure MultiversX wallet extension is installed.")}catch(k){console.error("Unable to login to ExtensionProvider",k)}})}function Kt(){return f(this,null,function*(){try{let k=yield Oe(),O=Ac.OperaProvider.getInstance().setAddress(k);(yield O.init())?ue(O):console.error("Could not initialise opera crypto wallet, make sure that opera crypto wallet is installed.")}catch(k){console.error("Unable to login to OperaProvider",k)}})}function vt(){if(r!=null)switch(r){case"ledger":{Xe();break}case"walletconnect":{j(!1);break}case"walletconnectv2":{ie(!1);break}case"extension":{qt();break}case"opera":{Kt();break}case"extra":{un();break}case"wallet":case"":{G();break}default:return}}return null}n();n();var Oo=require("@multiversx/sdk-core");B();n();M();var bc=typeof window!="undefined"?window:{},Lc=()=>bc.ReactNativeWebView?"reactNative":bc.webkit?"ios":"web";n();B();var Sn={signTransactions:{["ios"]:e=>window.webkit.messageHandlers.signTransactions.postMessage(e,St),["reactNative"]:e=>window==null?void 0:window.ReactNativeWebView.postMessage(JSON.stringify({type:"SIGN_TRANSACTIONS_REQUEST",message:e})),["web"]:e=>window==null?void 0:window.postMessage(JSON.stringify({type:"SIGN_TRANSACTIONS_REQUEST",message:e}),St)},signMessage:{["ios"]:e=>window.webkit.messageHandlers.signMessage.postMessage(e),["reactNative"]:e=>window==null?void 0:window.ReactNativeWebView.postMessage(JSON.stringify({type:"SIGN_MESSAGE_REQUEST",message:e})),["web"]:e=>window==null?void 0:window.postMessage(JSON.stringify({type:"SIGN_MESSAGE_REQUEST",message:e}),St)},logout:{["ios"]:()=>window.webkit.messageHandlers.logout.postMessage(),["reactNative"]:()=>window==null?void 0:window.ReactNativeWebView.postMessage(JSON.stringify({type:"LOGOUT_REQUEST"})),["web"]:()=>window==null?void 0:window.postMessage(JSON.stringify({type:"LOGOUT_REQUEST"}),St)},login:{["ios"]:()=>window.webkit.messageHandlers.login.postMessage(),["reactNative"]:()=>window==null?void 0:window.ReactNativeWebView.postMessage(JSON.stringify({type:"LOGIN_REQUEST"})),["web"]:()=>window==null?void 0:window.postMessage(JSON.stringify({type:"LOGIN_REQUEST"}),St)}};var Mo=e=>()=>{throw new Error(`Unable to perform ${e}, Provider not initialized`)},xn=Lc(),Pc,Cc,St=typeof window!="undefined"&&(Cc=(Pc=window==null?void 0:window.parent)==null?void 0:Pc.origin)!=null?Cc:"*",kc=e=>{let t=r=>{let o=r.data;if(!(r.target.origin!=St&&xn!="reactNative"))try{o=JSON.parse(o),e(o)}catch(i){console.error("error parsing response")}};document.addEventListener("message",t),window.addEventListener("message",t)},Nc={init:()=>f(void 0,null,function*(){return!0}),login:()=>f(void 0,null,function*(){return!0}),relogin:()=>f(void 0,null,function*(){try{return Sn.login[xn](),yield new Promise((t,r)=>{function o(i){let{message:p,type:l}=i;if(l==="LOGIN_RESPONSE")try{let{accessToken:u,error:d}=p;d?r(d):(hn(u),un(),t(u))}catch(u){r("Unable to login")}document.removeEventListener("message",o)}kc(o)})}catch(e){throw console.error("error logging in",e),e}}),logout:()=>(Sn.logout[xn](),new Promise(e=>{e(!0)})),getAddress:Mo("getAddress"),isInitialized:()=>!0,isConnected:()=>f(void 0,null,function*(){return!0}),sendTransaction:Mo("sendTransaction"),signMessage:Mo("signMessage"),signTransactions:e=>f(void 0,null,function*(){try{let t=e.map(o=>o.toPlainObject());return Sn.signTransactions[xn](t),yield new Promise((o,i)=>{window.transactionsSigned=(l,u)=>{if(l=JSON.parse(l),u){i(u),window.transactionsSigned=null;return}o(l.map(d=>Oo.Transaction.fromPlainObject(d))),window.transactionsSigned=null};function p(l){let{message:u,type:d}=l;if(d==="SIGN_TRANSACTIONS_RESPONSE"){let{transactions:g,error:y}=u;try{y?i(y):o(g.map(h=>Oo.Transaction.fromPlainObject(h)))}catch(h){i("Unable to sign")}}document.removeEventListener("message",p)}kc(p)})}catch(t){throw console.error("error sending transaction",t),t}}),signTransaction:function(e){return f(this,null,function*(){return(yield this.signTransactions([e]))[0]})}};n();var Fe=A(require("react")),Dc=require("@multiversx/sdk-core/out");Lt();er();tr();function Rc({customNetworkConfig:e={},children:t,environment:r,logoutRoute:o}){let[i,p]=(0,Fe.useState)(!1),l=Re(),u=S(As),{address:d,publicKey:g}=l,y=D();function h(){return f(this,null,function*(){let P=!(e!=null&&e.skipFetchFromServer),L=e==null?void 0:e.apiAddress,I=ot[r]||{},_=T(T({},I),e);if(P){let R=I==null?void 0:I.apiAddress,j=yield xo(L||R);if(j!=null){let ie=T(T(T({},I),j),e);y(Zn(ie));return}}y(Zn(_))})}function b(){return f(this,null,function*(){y(qi(o)),yield h(),p(!0)})}return(0,Fe.useEffect)(()=>{d&&new Dc.Address(d).hex()!==g&&Q(o)},[d,g,o]),(0,Fe.useEffect)(()=>{b()},[e,r,o]),(0,Fe.useEffect)(()=>{l.address&&u&&Q(o)},[u,l.address,o]),i?Fe.default.createElement(Fe.default.Fragment,null,t):null}n();var jt=A(require("react"));n();n();n();n();var tl=require("react");n();n();var _o=()=>S(Ie);n();C();n();n();n();n();function Fo(){let e=S(So),t=Object.entries(e),r=(t==null?void 0:t.length)>0;return{pendingTransactions:e,pendingTransactionsArray:t,hasPendingTransactions:r}}Rt();n();C();M();n();Rt();function Mc(e,t){return e.reduce((o,{status:i,hash:p})=>(p!=null&&!t.includes(p)&&Ce(i)&&o.push({hash:p,previousStatus:i}),o),[])}n();C();M();function Oc({results:e,hash:t,sessionId:r}){let o=e==null?void 0:e.find(i=>(i==null?void 0:i.returnMessage)!=="");w.dispatch(nr({transactionHash:t,sessionId:r,status:"fail",errorMessage:o==null?void 0:o.returnMessage})),w.dispatch(mt({sessionId:r,status:"fail",errorMessage:o==null?void 0:o.returnMessage}))}n();C();B();function Uo(e){w.dispatch(mt({sessionId:e,status:"timedOut"}))}var wn={},Bo=[];function Fd({serverTransaction:e,sessionId:t,customTransactionInformation:r,shouldRefreshBalance:o}){let{hash:i,status:p,results:l,invalidTransaction:u,hasStatusChanged:d}=e;try{if(Bo.includes(i))return;if(wn[i]>30){Uo(t);return}if(u||Ce(p)){wn[i]=wn[i]?wn[i]+1:1;return}d&&(ut(p)&&(r==null?void 0:r.completedTransactionsDelay)!=null?(Bo.push(i),setTimeout(()=>w.dispatch(nr({sessionId:t,status:"success",transactionHash:i})),r==null?void 0:r.completedTransactionsDelay)):w.dispatch(nr({sessionId:t,status:p,transactionHash:i}))),o||yn(),dt(p)&&Oc({sessionId:t,hash:i,results:l})}catch(g){console.error(g),Uo(t)}}function _c(p){return f(this,arguments,function*({sessionId:e,transactionBatch:{transactions:t,customTransactionInformation:r},getTransactionsByHash:o=cn,shouldRefreshBalance:i}){try{if(t==null)return;let l=Mc(t,Bo),u=yield o(l);for(let d of u)Fd({serverTransaction:d,sessionId:e,customTransactionInformation:r,shouldRefreshBalance:i})}catch(l){console.error(l)}})}function Fc(){let{pendingTransactionsArray:e}=Fo();function t(r){return f(this,null,function*(){let o=e.filter(([i,p])=>i!=null&&Ce(p.status));if(o.length>0)for(let[i,p]of o)yield _c(T({sessionId:i,transactionBatch:p},r));r.shouldRefreshBalance&&yn()})}return t}n();n();n();B();n();n();n();n();var Ud=A(require("axios")),Bd=A(require("swr"));n();n();var Uc=require("react");n();var Gd=require("react"),Wc=require("@multiversx/sdk-web-wallet-provider"),$d=A(require("qs"));N();C();M();n();var Gc=require("react");Yn();n();var Vc=require("react"),Yd=require("@multiversx/sdk-extension-provider");N();C();M();n();n();n();n();var $c=require("react"),zd=require("@multiversx/sdk-extension-provider");N();C();n();C();B();Dt();n();nt();C();n();n();var rm=require("react");n();n();n();C();n();n();var Qd=A(require("bignumber.js"));N();C();B();n();var Zd=A(require("bignumber.js"));N();n();var em=require("@multiversx/sdk-core"),tm=A(require("bignumber.js"));N();M();Rt();n();var Hc=require("react");n();n();var nm=require("react"),om=require("@multiversx/sdk-extension-provider");nt();H();M();lt();n();var im=require("react"),sm=require("@multiversx/sdk-opera-provider");nt();H();M();lt();n();var lm=require("react");nt();C();n();n();Wn();n();n();var am=A(require("platform"));n();n();n();n();n();n();n();n();n();Dt();Ct();n();n();n();C();var cm={};var jc=e=>{if(e.component!=null){let t=e,{component:r}=t,o=Ze(t,["component"]),{payload:i}=w.dispatch(eo(E(T({},o),{component:null})));return cm[i.toastId]=r,i}return w.dispatch(eo(e)).payload};n();n();var zc=A(require("axios"));function Go(e){return f(this,null,function*(){try{let{data:t}=yield zc.default.get(`${e}/websocket/config`);return`wss://${t.url}`}catch(t){throw console.error(t),new Error("Can not get websocket url")}})}n();n();var qc=require("react"),um=require("@multiversx/sdk-hw-provider");nt();H();C();M();lt();n();var pm=require("react");n();n();var Kc=require("react");n();var Xc=require("react");n();var xt=require("react"),Jc=require("socket.io-client");C();n();var Ue={current:null,status:"not_initialized"};var dm=3e3,mm=3,gm=500,fm=1e3;function Yc(){let e=(0,xt.useRef)(null),{address:t}=Ut(),r=D(),{network:o}=_o(),i=l=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{r($i(l))},fm)},p=(0,xt.useCallback)(dn(()=>f(this,null,function*(){Ue.status="pending";let l=yield Go(o.apiAddress);if(l==null){console.warn("Can not get websocket url");return}Ue.current=(0,Jc.io)(l,{forceNew:!0,reconnectionAttempts:mm,timeout:dm,query:{address:t}}),Ue.status="completed",Ue.current.onAny(u=>{i(u)})}),{retries:2,delay:gm}),[t]);(0,xt.useEffect)(()=>{t&&Ue.status==="not_initialized"&&!Ue.current&&p()},[t,Ue.current]),(0,xt.useEffect)(()=>()=>{var l;(l=Ue.current)==null||l.close(),e.current&&clearTimeout(e.current)},[])}function Zc(e){Yc();let t=S(po);(0,Xc.useEffect)(()=>{let r=t==null?void 0:t.message;r&&e(r)},[e,t])}n();n();n();var Qc=e=>e.dappModal,Tm=x(Qc,e=>e.visible),vn=x(Qc,e=>e.modal),VO=x(vn,e=>e.showHeader),HO=x(vn,e=>e.showFooter),jO=x(vn,e=>e.headerText),zO=x(vn,e=>e.footerText);it();var{logoutEvent:ym}=ce,el="storage",rl=()=>{let{address:e}=Re(),t=S(Ot);(0,tl.useEffect)(()=>{let r=o=>{if(!(o.key!==ym||!o.newValue))try{let{data:i}=JSON.parse(o.newValue);i===e&&Q(t)}catch(i){return}};return window==null||window.addEventListener(el,r),()=>{window==null||window.removeEventListener(el,r)}},[e,t])};n();n();var An=require("react"),ol=require("@fortawesome/free-solid-svg-icons"),$o=A(require("bignumber.js"));n();n();var wt=A(require("bignumber.js")),nl=e=>{let t=new wt.default(e).dividedBy(1e3).integerValue(wt.default.ROUND_FLOOR),r=new wt.default(t).dividedBy(60).integerValue(wt.default.ROUND_FLOOR),o=new wt.default(r).dividedBy(60).integerValue(wt.default.ROUND_FLOOR),i=o.modulo(60).isGreaterThan(1),p=r.modulo(60).isGreaterThan(1),l=r.modulo(60).isLessThan(1);return i?`${o} hours`:p?`${r} minutes`:l?"less than 1 minute":`${r} minute`};var il=()=>{let{address:e}=Re(),{tokenLogin:t}=S(Z),{secondsUntilExpires:r,expiresAt:o}=Gt(t==null?void 0:t.nativeAuthToken),i=(0,An.useRef)();return(0,An.useEffect)(()=>{var u;let p=new $o.default(String(r)),l=p.times(1e3);if(!(!r||p.isLessThanOrEqualTo(0))){if((u=t==null?void 0:t.nativeAuthConfig)!=null&&u.tokenExpirationToastWarningSeconds){clearTimeout(i.current);let g=new $o.default(t.nativeAuthConfig.tokenExpirationToastWarningSeconds).times(1e3),y=p.times(1e3).minus(g),h=nl(l.toNumber()),b=y.isLessThanOrEqualTo(0)?0:y.toNumber();i.current=setTimeout(()=>{jc({toastId:"nativeAuthTokenExpiration",type:"custom",title:"Session Expiration Warning",icon:ol.faRefresh,message:`Your token will expire in ${h}!`})},b)}return()=>{clearTimeout(i.current)}}},[o,e,t==null?void 0:t.nativeAuthConfig]),null};n();var Ht=require("react"),sl=A(require("bignumber.js"));var al=()=>{let{address:e}=Re(),{tokenLogin:t}=S(Z),r=S(Ot),{isExpired:o,secondsUntilExpires:i,expiresAt:p}=Gt(t==null?void 0:t.nativeAuthToken),l=(0,Ht.useRef)(""),u=(0,Ht.useRef)();return(0,Ht.useEffect)(()=>{e&&o&&Q(r)},[o,e,r]),(0,Ht.useEffect)(()=>{let d=new sl.default(String(i)),g=`${e}_${p}`,y=l.current===g;if(!(i&&d.isGreaterThan(0))||y)return;l.current=g,clearTimeout(u.current);let b=d.times(1e3);return u.current=setTimeout(()=>{Q(r)},b.toNumber()),()=>{clearTimeout(u.current)}},[p,e,r]),null};var cl=()=>(il(),rl(),al(),null);n();n();var In=require("react"),pl=require("@multiversx/sdk-core"),ul=require("@multiversx/sdk-core/out/signature");C();M();Dt();var ll=e=>{let t=e.redirectRoute;t&&at(t)},dl=({sendSignedTransactionsAsync:e=Aa})=>{let t=S(Ve),r=S(ze),o=(0,In.useRef)(!1),i=D(),p=()=>{i(Mt()),o.current=!1};function l(){return f(this,null,function*(){var d;let u=Object.keys(r);for(let g of u){let y=r==null?void 0:r[g],h=(d=y==null?void 0:y.customTransactionInformation)==null?void 0:d.signWithoutSending;if(!g||h){ll(y);continue}try{if(!(r[g].status==="signed"&&!o.current))continue;let{transactions:L}=r[g];if(!L)continue;o.current=!0;let I=L.map(ee=>{let Je=new pl.Address(ee.sender),Be=_t(ee),G=new ul.Signature(ee.signature);return Be.applySignature(G,Je),Be}),_=yield e(I),R="pending",j=L.map(ee=>_.includes(ee.hash)?E(T({},ee),{status:R}):ee);i(Xi({sessionId:g,submittedMessage:"submitted"})),i(mt({sessionId:g,status:"sent",transactions:j})),p(),fc(t.nonce+L.length),ll(y),history.pushState({},document==null?void 0:document.title,"?")}catch(b){console.error("Unable to send transactions",b),i(mt({sessionId:g,status:"fail",errorMessage:b.message})),p()}finally{o.current=!1}}})}return(0,In.useEffect)(()=>{l()},[r,t]),null};n();n();n();var ml=require("react");function gl(e){var i;let t=Fc(),r=(i=e==null?void 0:e.getTransactionsByHash)!=null?i:cn,o=()=>{t({shouldRefreshBalance:!0,getTransactionsByHash:r})};Zc(o),(0,ml.useEffect)(()=>{let p=setInterval(o,3e4);return()=>{clearInterval(p)}},[o])}function fl({getTransactionsByHash:e}){return gl({getTransactionsByHash:e}),null}function Tl({customComponents:e}){var p,l;let t=e==null?void 0:e.transactionSender,r=e==null?void 0:e.transactionTracker,o=(p=t==null?void 0:t.component)!=null?p:dl,i=(l=r==null?void 0:r.component)!=null?l:fl;return jt.default.createElement(jt.default.Fragment,null,jt.default.createElement(o,T({},t==null?void 0:t.props)),jt.default.createElement(i,T({},r==null?void 0:r.props)),jt.default.createElement(cl,null))}var hm=({children:e,customNetworkConfig:t={},externalProvider:r,environment:o,customComponents:i,dappConfig:p})=>{if(!o)throw new Error("missing environment flag");return r!=null&&Lo(r),p!=null&&p.shouldUseWebViewProvider&&Lo(Nc),zt.default.createElement(yl.Provider,{context:lr,store:w},zt.default.createElement(hl.PersistGate,{persistor:oa,loading:null},zt.default.createElement(Rc,{environment:o,customNetworkConfig:t,logoutRoute:p==null?void 0:p.logoutRoute},zt.default.createElement(Ic,null),zt.default.createElement(Tl,{customComponents:i}),e)))};0&&(module.exports={DappProvider});
2
+ /*!
3
+ * The buffer module from node.js, for the browser.
4
+ *
5
+ * @author Feross Aboukhadijeh <https://feross.org>
6
+ * @license MIT
7
+ */
8
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
9
+ //# sourceMappingURL=DappProvider.js.map
@@ -1,17 +1,2 @@
1
- import React, { ReactElement } from 'react';
2
- import { CustomNetworkType, EnvironmentsEnum, IDappProvider } from 'types';
3
- import { CustomComponentsType } from './CustomComponents';
4
- export declare type DappConfigType = {
5
- logoutRoute?: string;
6
- shouldUseWebViewProvider?: boolean;
7
- };
8
- export interface DappProviderPropsType {
9
- children: React.ReactNode | ReactElement;
10
- customNetworkConfig?: CustomNetworkType;
11
- externalProvider?: IDappProvider;
12
- environment: 'testnet' | 'mainnet' | 'devnet' | EnvironmentsEnum;
13
- customComponents?: CustomComponentsType;
14
- dappConfig?: DappConfigType;
15
- }
16
- export declare const DappProvider: ({ children, customNetworkConfig, externalProvider, environment, customComponents, dappConfig }: DappProviderPropsType) => JSX.Element;
1
+ export * from './DappProvider';
17
2
  //# sourceMappingURL=index.d.ts.map