@multiversx/sdk-dapp 2.12.6 → 2.12.8

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 (844) hide show
  1. package/UI/DappModal/hooks/index.js +1 -1
  2. package/UI/DappModal/hooks/useDappModal.js +1 -1
  3. package/UI/DappModal/index.js +1 -1
  4. package/UI/Denominate/index.js +1 -1
  5. package/UI/ExplorerLink/ExplorerLink.js +1 -1
  6. package/UI/ExplorerLink/index.js +1 -1
  7. package/UI/FormatAmount/FormatAmount.js +1 -1
  8. package/UI/FormatAmount/index.js +1 -1
  9. package/UI/ModalContainer/ModalContainer.js +1 -1
  10. package/UI/ModalContainer/index.js +1 -1
  11. package/UI/NotificationModal/NotificationModal.js +1 -1
  12. package/UI/NotificationModal/index.js +1 -1
  13. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  14. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  15. package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
  16. package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
  17. package/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +1 -1
  18. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  19. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  20. package/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
  21. package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  22. package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
  23. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  24. package/UI/SignTransactionsModals/SignWithOperaModal/SignWithOperaModal.js +1 -1
  25. package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
  26. package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
  27. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  28. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  29. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  30. package/UI/SignTransactionsModals/components/index.js +1 -1
  31. package/UI/SignTransactionsModals/index.js +1 -1
  32. package/UI/TokenDetails/index.js +1 -1
  33. package/UI/TransactionData/index.js +1 -1
  34. package/UI/TransactionDetails/TransactionDetails.js +1 -1
  35. package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  36. package/UI/TransactionDetails/components/index.js +1 -1
  37. package/UI/TransactionDetails/index.js +1 -1
  38. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  39. package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
  40. package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
  41. package/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
  42. package/UI/TransactionInfo/components/DataDecode/index.js +1 -1
  43. package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
  44. package/UI/TransactionInfo/components/DataField/index.js +1 -1
  45. package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
  46. package/UI/TransactionInfo/components/EventsList/index.js +1 -1
  47. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  48. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  49. package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
  50. package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  51. package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  52. package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
  53. package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  54. package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
  55. package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
  56. package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
  57. package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
  58. package/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
  59. package/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
  60. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
  61. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
  62. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
  63. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
  64. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
  65. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
  66. package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
  67. package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
  68. package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
  69. package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
  70. package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
  71. package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
  72. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
  73. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
  74. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
  75. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
  76. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
  77. package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
  78. package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
  79. package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
  80. package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
  81. package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
  82. package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
  83. package/UI/TransactionInfo/components/index.js +1 -1
  84. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +1 -1
  85. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +1 -1
  86. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +1 -1
  87. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +1 -1
  88. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
  89. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
  90. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
  91. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
  92. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +1 -1
  93. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +1 -1
  94. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +1 -1
  95. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +1 -1
  96. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
  97. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +1 -1
  98. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
  99. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
  100. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
  101. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
  102. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
  103. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
  104. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  105. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  106. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
  107. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
  108. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
  109. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
  110. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
  111. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
  112. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
  113. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
  114. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
  115. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
  116. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  117. package/UI/TransactionInfo/index.js +1 -1
  118. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  119. package/UI/TransactionsTable/components/AccountName.js +1 -1
  120. package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
  121. package/UI/TransactionsTable/components/ScAddressIcon.js +1 -1
  122. package/UI/TransactionsTable/components/ShardSpan.js +1 -1
  123. package/UI/TransactionsTable/components/TransactionHash.js +1 -1
  124. package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
  125. package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
  126. package/UI/TransactionsTable/components/TransactionRow.js +1 -1
  127. package/UI/TransactionsTable/components/TransactionSender.js +1 -1
  128. package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
  129. package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
  130. package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
  131. package/UI/TransactionsTable/components/index.js +1 -1
  132. package/UI/TransactionsTable/index.js +1 -1
  133. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  134. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  135. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  136. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  137. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
  138. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  139. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  140. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  141. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  142. package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  143. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  144. package/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
  145. package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  146. package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  147. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  148. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  149. package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
  150. package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
  151. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  152. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  153. package/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
  154. package/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
  155. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  156. package/UI/TransactionsToastList/components/index.js +1 -1
  157. package/UI/TransactionsToastList/index.js +1 -1
  158. package/UI/Trim/Trim.js +1 -1
  159. package/UI/Trim/index.js +1 -1
  160. package/UI/UsdValue/UsdValue.js +1 -1
  161. package/UI/UsdValue/index.js +1 -1
  162. package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
  163. package/UI/extension/ExtensionLoginButton/index.js +1 -1
  164. package/UI/index.js +1 -1
  165. package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
  166. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  167. package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
  168. package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
  169. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  170. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  171. package/UI/ledger/index.js +1 -1
  172. package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
  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/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
  177. package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
  178. package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
  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.js +1 -1
  183. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  184. package/__chunks__/{chunk-Q3LXMSKA.js → chunk-25TTQGEX.js} +2 -2
  185. package/__chunks__/chunk-2BLNKKQV.js +2 -0
  186. package/__chunks__/chunk-2BTY3EO2.js +2 -0
  187. package/__chunks__/{chunk-IPHIIAMJ.js → chunk-2PENUQYV.js} +2 -2
  188. package/__chunks__/{chunk-KMUXGBEP.js → chunk-2PHNBV5S.js} +2 -2
  189. package/__chunks__/{chunk-42VSVW2Y.js → chunk-2SLPJGXG.js} +2 -2
  190. package/__chunks__/{chunk-22A4BGDM.js → chunk-3HZD5T6Q.js} +2 -2
  191. package/__chunks__/chunk-3LVHX56S.js +2 -0
  192. package/__chunks__/chunk-3OGDWVO7.js +2 -0
  193. package/__chunks__/{chunk-6MPQYEX3.js → chunk-3R7ET7XL.js} +2 -2
  194. package/__chunks__/chunk-3THCFE3J.js +2 -0
  195. package/__chunks__/{chunk-JXNLZIKK.js → chunk-3WFJFXHY.js} +2 -2
  196. package/__chunks__/{chunk-3VEMYIHI.js → chunk-4CAZDF4D.js} +2 -2
  197. package/__chunks__/{chunk-MJGRG63T.js → chunk-4FE3KVGP.js} +2 -2
  198. package/__chunks__/{chunk-HK7JFXLN.js → chunk-4JYZVFIV.js} +2 -2
  199. package/__chunks__/{chunk-G4JUWVAG.js → chunk-4KYCLIP2.js} +2 -2
  200. package/__chunks__/{chunk-MB5IONA4.js → chunk-4TCBBUSU.js} +2 -2
  201. package/__chunks__/{chunk-I4ODQ3LI.js → chunk-53Z7RDHU.js} +2 -2
  202. package/__chunks__/{chunk-7KRJM76K.js → chunk-54KIELDE.js} +2 -2
  203. package/__chunks__/{chunk-CPWND4DW.js → chunk-56B7W2CE.js} +2 -2
  204. package/__chunks__/{chunk-ZWSFBHWI.js → chunk-56SUHXO3.js} +2 -2
  205. package/__chunks__/{chunk-JDN7QTR3.js → chunk-57NMXSRH.js} +2 -2
  206. package/__chunks__/{chunk-YCKI7KFB.js → chunk-5HZXCEQP.js} +2 -2
  207. package/__chunks__/{chunk-WTWI4V3A.js → chunk-5ICW6RLY.js} +2 -2
  208. package/__chunks__/{chunk-5PXSG6WV.js → chunk-5KKL6JIU.js} +2 -2
  209. package/__chunks__/{chunk-VLVIE24T.js → chunk-5NDR2D3X.js} +2 -2
  210. package/__chunks__/chunk-5OHINNEN.js +2 -0
  211. package/__chunks__/chunk-5OYFXQSK.js +2 -0
  212. package/__chunks__/{chunk-HSELUYFT.js → chunk-5RPCQPBF.js} +2 -2
  213. package/__chunks__/{chunk-NYEMKFOR.js → chunk-5WVG4JZ7.js} +2 -2
  214. package/__chunks__/{chunk-Q6T3QBES.js → chunk-5YGIUAD2.js} +2 -2
  215. package/__chunks__/{chunk-74U3XLB5.js → chunk-5ZIX54TL.js} +2 -2
  216. package/__chunks__/{chunk-5NJG63GD.js → chunk-6BNAALDP.js} +2 -2
  217. package/__chunks__/{chunk-R6PGB4AY.js → chunk-6K4XJH5A.js} +2 -2
  218. package/__chunks__/{chunk-TYGYAPBP.js → chunk-6OMJ6CE3.js} +2 -2
  219. package/__chunks__/{chunk-ZGXKMGS5.js → chunk-6QPBOXBF.js} +2 -2
  220. package/__chunks__/{chunk-E74NFQH2.js → chunk-6WNGX2UB.js} +2 -2
  221. package/__chunks__/{chunk-C36KPI4J.js → chunk-74BGZJCF.js} +2 -2
  222. package/__chunks__/chunk-7ETWKK72.js +2 -0
  223. package/__chunks__/{chunk-NBKRZNCH.js → chunk-7HNXQY2P.js} +2 -2
  224. package/__chunks__/chunk-7KVNUW4X.js +2 -0
  225. package/__chunks__/chunk-7N3S4X5Z.js +2 -0
  226. package/__chunks__/{chunk-YVL2E6BG.js → chunk-7UGNRV3L.js} +2 -2
  227. package/__chunks__/{chunk-F42M2XF4.js → chunk-7YF2VSF3.js} +2 -2
  228. package/__chunks__/chunk-7ZSWPMJ4.js +2 -0
  229. package/__chunks__/{chunk-W3SLNSGU.js → chunk-A2CJZ723.js} +2 -2
  230. package/__chunks__/{chunk-MOE2D4HR.js → chunk-AGTRHMNE.js} +2 -2
  231. package/__chunks__/{chunk-YW7HDX4O.js → chunk-AHAGSUXW.js} +2 -2
  232. package/__chunks__/{chunk-XBDNP27C.js → chunk-AZUNNOQY.js} +2 -2
  233. package/__chunks__/{chunk-3OOKJ2ER.js → chunk-B2SQFN7A.js} +2 -2
  234. package/__chunks__/{chunk-RANXSXTE.js → chunk-B76A3L37.js} +2 -2
  235. package/__chunks__/{chunk-T3A353IW.js → chunk-BB2CFNPA.js} +2 -2
  236. package/__chunks__/{chunk-R4MJYIUT.js → chunk-BKXGJHZ3.js} +2 -2
  237. package/__chunks__/{chunk-24VHEX7N.js → chunk-BMDDZG5S.js} +2 -2
  238. package/__chunks__/{chunk-LTLO2UFN.js → chunk-BT4VUQHG.js} +2 -2
  239. package/__chunks__/{chunk-FT6ZVVYG.js → chunk-BTVXK5F6.js} +2 -2
  240. package/__chunks__/chunk-BUNAZAQ2.js +2 -0
  241. package/__chunks__/{chunk-P27KVPG4.js → chunk-BVCSDUY7.js} +2 -2
  242. package/__chunks__/chunk-BZIYSYBS.js +2 -0
  243. package/__chunks__/chunk-C2O57ZZ3.js +2 -0
  244. package/__chunks__/{chunk-PHISDJVG.js → chunk-C3UPWTUL.js} +2 -2
  245. package/__chunks__/{chunk-NQJYE2G7.js → chunk-C4JP2AAG.js} +2 -2
  246. package/__chunks__/{chunk-O6IBA5MC.js → chunk-CE2CKTCJ.js} +2 -2
  247. package/__chunks__/{chunk-ECSLITFK.js → chunk-CIY3BJYV.js} +2 -2
  248. package/__chunks__/{chunk-GLL2RDMN.js → chunk-CLPQUX3I.js} +2 -2
  249. package/__chunks__/{chunk-FQTR766W.js → chunk-CRFC2MYX.js} +1 -1
  250. package/__chunks__/{chunk-EE46SIK7.js → chunk-CS2PI52S.js} +2 -2
  251. package/__chunks__/{chunk-4PNL3CZC.js → chunk-CSONSW5S.js} +2 -2
  252. package/__chunks__/{chunk-ZFKA7XWT.js → chunk-CXX3IDIG.js} +2 -2
  253. package/__chunks__/{chunk-65JKXTOY.js → chunk-DCD6EPNO.js} +2 -2
  254. package/__chunks__/{chunk-2EZZWJ4A.js → chunk-DEHX5LRO.js} +2 -2
  255. package/__chunks__/{chunk-5Y27KEXJ.js → chunk-DELOCRND.js} +2 -2
  256. package/__chunks__/{chunk-C3ALFGDR.js → chunk-DHI6DZRI.js} +2 -2
  257. package/__chunks__/{chunk-TDTF7WFM.js → chunk-DQAQI23Z.js} +2 -2
  258. package/__chunks__/{chunk-QEJ52S3Z.js → chunk-DTARVI54.js} +2 -2
  259. package/__chunks__/{chunk-PUCLTLVZ.js → chunk-DZG4H2UO.js} +2 -2
  260. package/__chunks__/{chunk-4LJO6KG2.js → chunk-E2B7GAGB.js} +2 -2
  261. package/__chunks__/{chunk-QCMJNPMK.js → chunk-E3RKWI4F.js} +2 -2
  262. package/__chunks__/{chunk-4MJVLPVI.js → chunk-E5LS66QV.js} +2 -2
  263. package/__chunks__/{chunk-LDVWUPWF.js → chunk-EAK4AGOD.js} +2 -2
  264. package/__chunks__/{chunk-UR5YPM52.js → chunk-EDS2UEWP.js} +2 -2
  265. package/__chunks__/{chunk-EUSBDREN.js → chunk-EHO2KJIN.js} +2 -2
  266. package/__chunks__/{chunk-OD6OM6CQ.js → chunk-EIM6YCMX.js} +2 -2
  267. package/__chunks__/{chunk-RIT6WHYK.js → chunk-EK6G5G7U.js} +2 -2
  268. package/__chunks__/{chunk-2MR62UP4.js → chunk-ELJKPLDZ.js} +2 -2
  269. package/__chunks__/chunk-EPKOUSPT.js +2 -0
  270. package/__chunks__/{chunk-EZ63SSTN.js → chunk-ERRCJ5WO.js} +2 -2
  271. package/__chunks__/{chunk-M4WR7SBV.js → chunk-ESUOJPFZ.js} +2 -2
  272. package/__chunks__/{chunk-SXISVR5Z.js → chunk-EZYQY5TX.js} +2 -2
  273. package/__chunks__/{chunk-WVI24XU7.js → chunk-F5WM6Q4M.js} +2 -2
  274. package/__chunks__/{chunk-IRYIU5HM.js → chunk-FFPTTQ2Z.js} +2 -2
  275. package/__chunks__/{chunk-6KOMZRWN.js → chunk-FKMZQ6PI.js} +2 -2
  276. package/__chunks__/{chunk-DTLDVTMB.js → chunk-FLSN4Q5V.js} +2 -2
  277. package/__chunks__/{chunk-KANFKNL2.js → chunk-FPFBQQ56.js} +2 -2
  278. package/__chunks__/{chunk-TVV5DBWU.js → chunk-FWJZ5654.js} +2 -2
  279. package/__chunks__/{chunk-DDFD67MI.js → chunk-FWMS2ZOY.js} +2 -2
  280. package/__chunks__/{chunk-QDVANOM7.js → chunk-G5H7YRBS.js} +2 -2
  281. package/__chunks__/{chunk-33IQ42R2.js → chunk-G6X4KVAY.js} +2 -2
  282. package/__chunks__/{chunk-HBT3EV3P.js → chunk-GCPJTM3M.js} +2 -2
  283. package/__chunks__/{chunk-FZCLL7UM.js → chunk-GGBYOLVR.js} +2 -2
  284. package/__chunks__/{chunk-5JDLK5IZ.js → chunk-GXICS4HS.js} +2 -2
  285. package/__chunks__/{chunk-I6R64W27.js → chunk-GZIH5BDU.js} +2 -2
  286. package/__chunks__/{chunk-7N7PCWV6.js → chunk-HC2MOVRO.js} +2 -2
  287. package/__chunks__/{chunk-EUSOFVHV.js → chunk-HI2HYZIX.js} +2 -2
  288. package/__chunks__/{chunk-LKK24GZJ.js → chunk-HST2GGJ4.js} +2 -2
  289. package/__chunks__/{chunk-54RHTKXH.js → chunk-HTLZKHTZ.js} +2 -2
  290. package/__chunks__/{chunk-W5IJPL37.js → chunk-I2SADEBF.js} +2 -2
  291. package/__chunks__/{chunk-AYM5JJZN.js → chunk-I5UOXQG3.js} +2 -2
  292. package/__chunks__/{chunk-V5FL3KG7.js → chunk-IC4MBEJO.js} +2 -2
  293. package/__chunks__/{chunk-7FAEWPZ2.js → chunk-IEO7HJFG.js} +2 -2
  294. package/__chunks__/{chunk-YSKH44IL.js → chunk-IFU3X6UL.js} +2 -2
  295. package/__chunks__/{chunk-RHGBRWCG.js → chunk-IGGV5BN5.js} +2 -2
  296. package/__chunks__/{chunk-2UT73N3Q.js → chunk-IIMMZPAX.js} +2 -2
  297. package/__chunks__/{chunk-BBYO4QOR.js → chunk-ILVOI5JX.js} +2 -2
  298. package/__chunks__/{chunk-XYMU6N2W.js → chunk-ILWO7NM5.js} +2 -2
  299. package/__chunks__/{chunk-2UKIEP56.js → chunk-IT535HRO.js} +2 -2
  300. package/__chunks__/{chunk-PCGFLSJN.js → chunk-ITEK3GYE.js} +2 -2
  301. package/__chunks__/{chunk-UDFF6CV2.js → chunk-ITKI3OPN.js} +2 -2
  302. package/__chunks__/{chunk-VMSDTOVY.js → chunk-J2T752PE.js} +2 -2
  303. package/__chunks__/chunk-J3OGDCG6.js +2 -0
  304. package/__chunks__/chunk-JG3M6MK2.js +2 -0
  305. package/__chunks__/{chunk-IETKO3Q2.js → chunk-JIOI46EQ.js} +2 -2
  306. package/__chunks__/{chunk-KFUGFCIB.js → chunk-JRB42IEO.js} +2 -2
  307. package/__chunks__/{chunk-BAG4CV3S.js → chunk-JRYWXEFU.js} +2 -2
  308. package/__chunks__/{chunk-IAFIDSV7.js → chunk-JTCS3OCP.js} +2 -2
  309. package/__chunks__/chunk-JXE4FVEW.js +2 -0
  310. package/__chunks__/{chunk-4IUIV3HP.js → chunk-K3YZ6F2M.js} +2 -2
  311. package/__chunks__/chunk-K6C3JJYH.js +2 -0
  312. package/__chunks__/{chunk-P6GPL5QL.js → chunk-K6FG7P75.js} +2 -2
  313. package/__chunks__/{chunk-JJQ7I5SV.js → chunk-K7AQ2IOB.js} +2 -2
  314. package/__chunks__/{chunk-4ZHKUGO3.js → chunk-KGRMH2D7.js} +2 -2
  315. package/__chunks__/chunk-KL2XL2VN.js +2 -0
  316. package/__chunks__/{chunk-U5LEC7IQ.js → chunk-KLFHVD2M.js} +2 -2
  317. package/__chunks__/{chunk-ARRDY3GI.js → chunk-KOCSFAOU.js} +2 -2
  318. package/__chunks__/{chunk-4KSP7IY5.js → chunk-KQWUKJ5U.js} +2 -2
  319. package/__chunks__/chunk-KTELSCIW.js +2 -0
  320. package/__chunks__/{chunk-APXIKIH5.js → chunk-KYLDQLLP.js} +2 -2
  321. package/__chunks__/{chunk-DQH4ODE2.js → chunk-L4V3H4JN.js} +2 -2
  322. package/__chunks__/{chunk-EZ64DNFR.js → chunk-L7CJYIRS.js} +2 -2
  323. package/__chunks__/chunk-LDLA5E7Y.js +2 -0
  324. package/__chunks__/{chunk-UWVCGIA3.js → chunk-LHPTACPO.js} +2 -2
  325. package/__chunks__/chunk-LI6PILSE.js +2 -0
  326. package/__chunks__/{chunk-GQFHQXF3.js → chunk-LKA7Z7XC.js} +2 -2
  327. package/__chunks__/{chunk-MU6W7IW4.js → chunk-LWWTVBER.js} +2 -2
  328. package/__chunks__/{chunk-YGO3ADFR.js → chunk-LXWSWQO6.js} +2 -2
  329. package/__chunks__/{chunk-GW7MH7I2.js → chunk-LYF73EYO.js} +2 -2
  330. package/__chunks__/{chunk-B2SFQIRM.js → chunk-LZCS6ZYF.js} +2 -2
  331. package/__chunks__/{chunk-KQ7ITRLS.js → chunk-M2KURDCA.js} +2 -2
  332. package/__chunks__/chunk-MCKCARUG.js +2 -0
  333. package/__chunks__/chunk-MDEPBFNH.js +2 -0
  334. package/__chunks__/{chunk-TIHBURHO.js → chunk-MDMDP7M4.js} +2 -2
  335. package/__chunks__/{chunk-QGESLMYY.js → chunk-MEXHP4J3.js} +2 -2
  336. package/__chunks__/{chunk-W54GUOEP.js → chunk-MGBNT5YC.js} +2 -2
  337. package/__chunks__/{chunk-WM254GJP.js → chunk-MMAQX7PZ.js} +2 -2
  338. package/__chunks__/{chunk-YOAFFOB6.js → chunk-MMCZF45U.js} +2 -2
  339. package/__chunks__/{chunk-A5K54E4H.js → chunk-MV2L3RS5.js} +2 -2
  340. package/__chunks__/{chunk-HSMKWB5J.js → chunk-N4IWZRB4.js} +2 -2
  341. package/__chunks__/{chunk-FUMXQBTW.js → chunk-NAJM6SVE.js} +2 -2
  342. package/__chunks__/{chunk-6IVIBGDO.js → chunk-NDJAQW5J.js} +2 -2
  343. package/__chunks__/{chunk-PJRU7NED.js → chunk-NEJ5Y74B.js} +2 -2
  344. package/__chunks__/{chunk-O3LBNV3Q.js → chunk-NFDTTOW7.js} +2 -2
  345. package/__chunks__/chunk-NGPND2WV.js +2 -0
  346. package/__chunks__/chunk-NOCNQEU6.js +2 -0
  347. package/__chunks__/{chunk-LQW4DRQU.js → chunk-NS3ODARJ.js} +2 -2
  348. package/__chunks__/{chunk-C7RKCDF2.js → chunk-NSFUSSUS.js} +2 -2
  349. package/__chunks__/{chunk-ZYOTBLE2.js → chunk-NV6DLGYN.js} +2 -2
  350. package/__chunks__/{chunk-SQ7YIATY.js → chunk-NWGR33VA.js} +2 -2
  351. package/__chunks__/{chunk-JMVT2UMW.js → chunk-O2RCWISO.js} +2 -2
  352. package/__chunks__/{chunk-SK6LYXAJ.js → chunk-O2V4CCMX.js} +2 -2
  353. package/__chunks__/{chunk-CJ2FXYNO.js → chunk-O6MB6XKF.js} +2 -2
  354. package/__chunks__/{chunk-56XEKPEM.js → chunk-O6PZUAGB.js} +2 -2
  355. package/__chunks__/{chunk-QDHZGBLR.js → chunk-OBCB5GTS.js} +2 -2
  356. package/__chunks__/chunk-OGZDVTVE.js +2 -0
  357. package/__chunks__/{chunk-B762X3V5.js → chunk-OLNZJW3Z.js} +2 -2
  358. package/__chunks__/{chunk-ENEKVKCF.js → chunk-OSQQHPZM.js} +2 -2
  359. package/__chunks__/{chunk-EYMIIRFV.js → chunk-OXFLL7Y7.js} +2 -2
  360. package/__chunks__/chunk-P4YFVYE7.js +2 -0
  361. package/__chunks__/chunk-P7DX33YP.js +2 -0
  362. package/__chunks__/{chunk-KWSACFM6.js → chunk-PCTAH6TR.js} +2 -2
  363. package/__chunks__/{chunk-SZDNQ3ZO.js → chunk-PEMMY7FF.js} +2 -2
  364. package/__chunks__/{chunk-QGH5G7VG.js → chunk-PEXA24OF.js} +2 -2
  365. package/__chunks__/{chunk-DERN5X6K.js → chunk-PEY3BQ4R.js} +2 -2
  366. package/__chunks__/{chunk-I4PAV4C3.js → chunk-PHIGKLSY.js} +2 -2
  367. package/__chunks__/chunk-PKHVN6YW.js +2 -0
  368. package/__chunks__/{chunk-5II7EZNI.js → chunk-PTVVMPSO.js} +2 -2
  369. package/__chunks__/{chunk-WBWWXPS3.js → chunk-PWH7DEFN.js} +2 -2
  370. package/__chunks__/{chunk-24KK7ZLP.js → chunk-PWR23BXD.js} +2 -2
  371. package/__chunks__/{chunk-DUH3CYK4.js → chunk-Q5E266R2.js} +2 -2
  372. package/__chunks__/{chunk-CWO6CM26.js → chunk-QEIPCSYQ.js} +2 -2
  373. package/__chunks__/{chunk-BJTFPFBZ.js → chunk-QEKJFGEB.js} +2 -2
  374. package/__chunks__/{chunk-GJVJSVHP.js → chunk-QOEVYQ2J.js} +2 -2
  375. package/__chunks__/{chunk-YODEUNJU.js → chunk-QW7HUS66.js} +2 -2
  376. package/__chunks__/{chunk-7TGNXGEJ.js → chunk-QYHSBCZR.js} +2 -2
  377. package/__chunks__/{chunk-NTKHZGWR.js → chunk-QYNWZBUP.js} +2 -2
  378. package/__chunks__/{chunk-PQSPUT4B.js → chunk-R3SPPNHA.js} +2 -2
  379. package/__chunks__/{chunk-DNZ3HHEO.js → chunk-R3SUSW6U.js} +2 -2
  380. package/__chunks__/{chunk-EVZMZ2M6.js → chunk-R7OFX7MT.js} +2 -2
  381. package/__chunks__/chunk-RAUSH6GD.js +2 -0
  382. package/__chunks__/chunk-RAXVRHEC.js +2 -0
  383. package/__chunks__/chunk-RISXNP5I.js +2 -0
  384. package/__chunks__/{chunk-O6BSFMJR.js → chunk-RK7YWC7M.js} +2 -2
  385. package/__chunks__/chunk-RVTMBFZS.js +2 -0
  386. package/__chunks__/{chunk-54H4EYRK.js → chunk-RXPUGEMI.js} +2 -2
  387. package/__chunks__/{chunk-PJUVVM6H.js → chunk-RZUBAC4F.js} +2 -2
  388. package/__chunks__/{chunk-635CWMLH.js → chunk-S35I45ZQ.js} +2 -2
  389. package/__chunks__/{chunk-3WCN5GML.js → chunk-S6IMA7JA.js} +2 -2
  390. package/__chunks__/chunk-S7HOS4OW.js +2 -0
  391. package/__chunks__/{chunk-X5ZBDWIN.js → chunk-SEOGCMB7.js} +2 -2
  392. package/__chunks__/{chunk-B3ERZM5E.js → chunk-SGABRPP2.js} +2 -2
  393. package/__chunks__/{chunk-F6CQD7DQ.js → chunk-SGR4M32T.js} +2 -2
  394. package/__chunks__/{chunk-POJO6MMX.js → chunk-SO35Z4MW.js} +2 -2
  395. package/__chunks__/{chunk-PUOI7ORV.js → chunk-SPYQGKPN.js} +2 -2
  396. package/__chunks__/{chunk-BAO6HI6S.js → chunk-SQZGFLHB.js} +2 -2
  397. package/__chunks__/chunk-STBCDKBR.js +2 -0
  398. package/__chunks__/{chunk-RECCQD7W.js → chunk-SUJQA2GW.js} +2 -2
  399. package/__chunks__/{chunk-K2TNCKG2.js → chunk-SXIYWPTT.js} +2 -2
  400. package/__chunks__/{chunk-WPIEQFLH.js → chunk-SYFNYNRB.js} +2 -2
  401. package/__chunks__/{chunk-754BVF77.js → chunk-SYGJB5IB.js} +2 -2
  402. package/__chunks__/{chunk-YLMSGZQS.js → chunk-T3H7IRS4.js} +2 -2
  403. package/__chunks__/chunk-T73GS72T.js +2 -0
  404. package/__chunks__/{chunk-VMVXSDID.js → chunk-TF6HF6WS.js} +2 -2
  405. package/__chunks__/chunk-TILRG3KA.js +2 -0
  406. package/__chunks__/{chunk-6EJPAHUS.js → chunk-TIUQ37EG.js} +2 -2
  407. package/__chunks__/{chunk-5EBT2DVT.js → chunk-TN2C4EIK.js} +2 -2
  408. package/__chunks__/{chunk-PJIJQQXT.js → chunk-TPXVUJ4F.js} +2 -2
  409. package/__chunks__/{chunk-DGS6ETK7.js → chunk-TQBVGRQJ.js} +2 -2
  410. package/__chunks__/{chunk-2H6SDBB6.js → chunk-TSA6LFXL.js} +2 -2
  411. package/__chunks__/{chunk-DYI3WQWM.js → chunk-TUTBPOOU.js} +2 -2
  412. package/__chunks__/{chunk-MQBNTP43.js → chunk-TWVF7JWR.js} +2 -2
  413. package/__chunks__/{chunk-DV6JEZP7.js → chunk-U7MX6NMH.js} +2 -2
  414. package/__chunks__/{chunk-HCA2L7JR.js → chunk-UIVAIKSB.js} +2 -2
  415. package/__chunks__/{chunk-QEKZGB3R.js → chunk-UNO2T253.js} +2 -2
  416. package/__chunks__/{chunk-FBUSL726.js → chunk-UNV3HNHX.js} +2 -2
  417. package/__chunks__/{chunk-DDYXISJJ.js → chunk-UOWJXU7B.js} +2 -2
  418. package/__chunks__/{chunk-4WDBHDVR.js → chunk-UPAK55WQ.js} +2 -2
  419. package/__chunks__/{chunk-EEB4LSSE.js → chunk-V6TTX2GU.js} +2 -2
  420. package/__chunks__/chunk-V72DHDIE.js +2 -0
  421. package/__chunks__/{chunk-RPEYA4P2.js → chunk-VAZCKIPF.js} +2 -2
  422. package/__chunks__/{chunk-ZAAKPVNV.js → chunk-VKB64W7O.js} +2 -2
  423. package/__chunks__/{chunk-PQLUBVOX.js → chunk-VO4HJBT7.js} +2 -2
  424. package/__chunks__/{chunk-PKBDLCTQ.js → chunk-VOBCK75J.js} +2 -2
  425. package/__chunks__/{chunk-NYP3EE3M.js → chunk-VR6NBMGB.js} +2 -2
  426. package/__chunks__/chunk-VTUFVU5E.js +2 -0
  427. package/__chunks__/{chunk-5BE6YUVH.js → chunk-VVNOAZCN.js} +2 -2
  428. package/__chunks__/{chunk-XOAXLXCL.js → chunk-VVNRFT4C.js} +2 -2
  429. package/__chunks__/{chunk-B36XNNUS.js → chunk-VWJGXL3X.js} +2 -2
  430. package/__chunks__/{chunk-XN6TVWTL.js → chunk-VX4YFYDE.js} +2 -2
  431. package/__chunks__/{chunk-ERARCGGG.js → chunk-W4VUUW4H.js} +2 -2
  432. package/__chunks__/{chunk-WMZGEPRE.js → chunk-W5VCGTY2.js} +2 -2
  433. package/__chunks__/{chunk-TZLCXEDM.js → chunk-WBROSYRH.js} +2 -2
  434. package/__chunks__/{chunk-ZSEY3H44.js → chunk-WDIVU4TD.js} +2 -2
  435. package/__chunks__/{chunk-AV42XZWH.js → chunk-WG32V2A5.js} +2 -2
  436. package/__chunks__/{chunk-OP5S4OTU.js → chunk-WJOKG7OZ.js} +2 -2
  437. package/__chunks__/chunk-WRHANSVT.js +2 -0
  438. package/__chunks__/{chunk-INWLBKDE.js → chunk-XBBPF73Z.js} +2 -2
  439. package/__chunks__/chunk-XCCT4TST.js +2 -0
  440. package/__chunks__/chunk-XKEURXOS.js +2 -0
  441. package/__chunks__/{chunk-OU6RVF2K.js → chunk-XKGH4TXG.js} +2 -2
  442. package/__chunks__/{chunk-XGX4NLDC.js → chunk-XQWVYVIL.js} +2 -2
  443. package/__chunks__/{chunk-MH74N345.js → chunk-XSPEML27.js} +2 -2
  444. package/__chunks__/{chunk-4UDZRQOR.js → chunk-XUPYKS5D.js} +2 -2
  445. package/__chunks__/{chunk-DQ55HIYP.js → chunk-XWNVIHRK.js} +2 -2
  446. package/__chunks__/{chunk-DHTRJBJ2.js → chunk-XY3MUJLX.js} +2 -2
  447. package/__chunks__/{chunk-3NWKV3ES.js → chunk-XZQYMTBX.js} +2 -2
  448. package/__chunks__/{chunk-LOMOG3J7.js → chunk-Y4WVBCUE.js} +2 -2
  449. package/__chunks__/{chunk-5FUXPQ5E.js → chunk-Y6RIVHS3.js} +2 -2
  450. package/__chunks__/{chunk-EMQGRYPV.js → chunk-Y7MXTBUL.js} +2 -2
  451. package/__chunks__/{chunk-HZPH647Y.js → chunk-YE3SEFOS.js} +2 -2
  452. package/__chunks__/chunk-YN4DUIRE.js +2 -0
  453. package/__chunks__/chunk-YNX3IGV3.js +2 -0
  454. package/__chunks__/chunk-Z2B7ZPZQ.js +2 -0
  455. package/__chunks__/{chunk-23NY2WUK.js → chunk-Z2TCNCR5.js} +2 -2
  456. package/__chunks__/chunk-Z3L3GZGW.js +2 -0
  457. package/__chunks__/{chunk-3UDQW5BX.js → chunk-Z5IV5H2B.js} +2 -2
  458. package/__chunks__/{chunk-Y324QW64.js → chunk-Z6T4QJTP.js} +2 -2
  459. package/__chunks__/{chunk-OXVTZZQP.js → chunk-ZAOOJQI2.js} +2 -2
  460. package/__chunks__/{chunk-NWT6SIAI.js → chunk-ZB5AGTC4.js} +2 -2
  461. package/__chunks__/{chunk-J2GFMUUO.js → chunk-ZBORIYHN.js} +2 -2
  462. package/__chunks__/chunk-ZCIQDTNG.js +2 -0
  463. package/__chunks__/{chunk-4BADCGHO.js → chunk-ZGL5N2CM.js} +2 -2
  464. package/__chunks__/{chunk-R2CPPFSK.js → chunk-ZH7PXPQS.js} +2 -2
  465. package/__chunks__/{chunk-ZVXR43EE.js → chunk-ZIEQGTNV.js} +2 -2
  466. package/__chunks__/{chunk-D2BBKLPY.js → chunk-ZPDYQNBF.js} +2 -2
  467. package/__chunks__/{chunk-FXGFZDUU.js → chunk-ZYI33ZZI.js} +2 -2
  468. package/__commonjs/UI/DappModal/hooks/index.js +1 -1
  469. package/__commonjs/UI/DappModal/hooks/useDappModal.js +1 -1
  470. package/__commonjs/UI/NotificationModal/NotificationModal.js +2 -2
  471. package/__commonjs/UI/NotificationModal/index.js +2 -2
  472. package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +22 -22
  473. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +6 -6
  474. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +6 -6
  475. package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +3 -3
  476. package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
  477. package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  478. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +6 -6
  479. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +6 -6
  480. package/__commonjs/UI/SignTransactionsModals/SignWithOperaModal/SignWithOperaModal.js +3 -3
  481. package/__commonjs/UI/SignTransactionsModals/SignWithOperaModal/index.js +3 -3
  482. package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +14 -14
  483. package/__commonjs/UI/SignTransactionsModals/components/index.js +14 -14
  484. package/__commonjs/UI/SignTransactionsModals/index.js +22 -22
  485. package/__commonjs/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +3 -3
  486. package/__commonjs/UI/TransactionInfo/components/ScrDetailItem/index.js +3 -3
  487. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +7 -7
  488. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +7 -7
  489. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +6 -6
  490. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +6 -6
  491. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +5 -5
  492. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +5 -5
  493. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +5 -5
  494. package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/index.js +4 -4
  495. package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +2 -2
  496. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +9 -9
  497. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/components/index.js +4 -4
  498. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +9 -9
  499. package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +9 -9
  500. package/__commonjs/UI/index.js +54 -54
  501. package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable.js +4 -4
  502. package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +10 -10
  503. package/__commonjs/__mocks__/accountConfig.js +1 -1
  504. package/__commonjs/__mocks__/index.js +1 -1
  505. package/__commonjs/__mocks__/utils/index.js +1 -1
  506. package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
  507. package/__commonjs/apiCalls/configuration/getApiAddressForChainId.js +1 -1
  508. package/__commonjs/components/LogoutListener/LogoutListener.js +1 -1
  509. package/__commonjs/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  510. package/__commonjs/components/LogoutListener/index.js +1 -1
  511. package/__commonjs/components/ProviderInitializer.js +1 -1
  512. package/__commonjs/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  513. package/__commonjs/constants/network.js +1 -1
  514. package/__commonjs/hooks/index.js +1 -1
  515. package/__commonjs/hooks/signMessage/index.js +1 -1
  516. package/__commonjs/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
  517. package/__commonjs/hooks/transactions/helpers/index.js +1 -1
  518. package/__commonjs/hooks/transactions/index.js +1 -1
  519. package/__commonjs/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  520. package/__commonjs/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  521. package/__commonjs/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
  522. package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
  523. package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  524. package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  525. package/__commonjs/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
  526. package/__commonjs/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  527. package/__commonjs/reduxStore/selectors/modalsSelectors.js +1 -1
  528. package/__commonjs/reduxStore/selectors/networkConfigSelectors.js +1 -1
  529. package/__commonjs/reduxStore/selectors/toastsSelectors.js +1 -1
  530. package/__commonjs/reduxStore/slices/index.js +1 -1
  531. package/__commonjs/reduxStore/slices/transactionsSlice.js +1 -1
  532. package/__commonjs/services/index.js +1 -1
  533. package/__commonjs/services/transactions/index.js +1 -1
  534. package/__commonjs/services/transactions/sendTransactions.d.ts +1 -1
  535. package/__commonjs/services/transactions/sendTransactions.js +1 -1
  536. package/__commonjs/types/transactions.types.d.ts +5 -0
  537. package/__commonjs/types/transactions.types.js +1 -1
  538. package/__commonjs/utils/account/getAddress.js +1 -1
  539. package/__commonjs/utils/account/index.js +1 -1
  540. package/__commonjs/utils/logout.js +1 -1
  541. package/__commonjs/utils/operations/calculateFeeLimit.js +1 -1
  542. package/__commonjs/utils/smartContracts.js +1 -1
  543. package/__commonjs/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
  544. package/__commonjs/utils/transactions/getInterpretedTransaction/index.js +1 -1
  545. package/__commonjs/utils/transactions/parseMultiEsdtTransferData.js +1 -1
  546. package/__commonjs/utils/transactions/removeTransactionParamsFromUrl.js +1 -1
  547. package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
  548. package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
  549. package/__commonjs/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
  550. package/__commonjs/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  551. package/__commonjs/wrappers/index.js +1 -1
  552. package/__mocks__/accountConfig.js +1 -1
  553. package/__mocks__/index.js +1 -1
  554. package/__mocks__/server.js +1 -1
  555. package/__mocks__/utils/index.js +1 -1
  556. package/__mocks__/utils/renderWithProvider.js +1 -1
  557. package/apiCalls/accounts/getAccountFromApi.js +1 -1
  558. package/apiCalls/accounts/index.js +1 -1
  559. package/apiCalls/configuration/getApiAddressForChainId.js +1 -1
  560. package/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
  561. package/apiCalls/configuration/getNetworkConfig.js +1 -1
  562. package/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
  563. package/apiCalls/configuration/index.js +1 -1
  564. package/apiCalls/getScamAddressData.js +1 -1
  565. package/apiCalls/index.js +1 -1
  566. package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  567. package/apiCalls/transactions/index.js +1 -1
  568. package/apiCalls/transactions/sendSignedTransactions.js +1 -1
  569. package/apiCalls/utils/getCleanApiAddress.js +1 -1
  570. package/apiCalls/utils/index.js +1 -1
  571. package/components/LogoutListener/LogoutListener.js +1 -1
  572. package/components/LogoutListener/helpers/index.js +1 -1
  573. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  574. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  575. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  576. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  577. package/components/LogoutListener/index.js +1 -1
  578. package/components/ProviderInitializer.js +1 -1
  579. package/components/TransactionSender/TransactionSender.js +1 -1
  580. package/components/TransactionSender/index.js +1 -1
  581. package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
  582. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  583. package/components/TransactionsTracker/index.js +1 -1
  584. package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  585. package/constants/index.js +1 -1
  586. package/constants/network.js +1 -1
  587. package/hooks/account/index.js +1 -1
  588. package/hooks/account/useGetAccount.js +1 -1
  589. package/hooks/account/useGetAccountInfo.js +1 -1
  590. package/hooks/account/useGetAccountProvider.js +1 -1
  591. package/hooks/account/useGetIsLoggedIn.js +1 -1
  592. package/hooks/account/useGetLoginInfo.js +1 -1
  593. package/hooks/account/useGetWebsocketEvent.js +1 -1
  594. package/hooks/index.js +1 -1
  595. package/hooks/login/index.js +1 -1
  596. package/hooks/login/useExtensionLogin.js +1 -1
  597. package/hooks/login/useLedgerLogin.js +1 -1
  598. package/hooks/login/useLoginService.js +1 -1
  599. package/hooks/login/useOperaLogin.js +1 -1
  600. package/hooks/login/useWalletConnectLogin.js +1 -1
  601. package/hooks/login/useWalletConnectV2Login.js +1 -1
  602. package/hooks/login/useWebViewLogin.js +1 -1
  603. package/hooks/login/useWebWalletLogin.js +1 -1
  604. package/hooks/signMessage/index.js +1 -1
  605. package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  606. package/hooks/signMessage/useGetSignMessageSession.js +1 -1
  607. package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
  608. package/hooks/signMessage/useSignMessage.js +1 -1
  609. package/hooks/transactions/batch/useGetBatches.js +1 -1
  610. package/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
  611. package/hooks/transactions/batch/useTrackBatchTransactions.js +1 -1
  612. package/hooks/transactions/batch/useUpdateBatch.js +1 -1
  613. package/hooks/transactions/batch/useUpdateBatches.js +1 -1
  614. package/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
  615. package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
  616. package/hooks/transactions/helpers/index.js +1 -1
  617. package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
  618. package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
  619. package/hooks/transactions/index.js +1 -1
  620. package/hooks/transactions/useCancelWalletConnectAction.js +1 -1
  621. package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
  622. package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  623. package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
  624. package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
  625. package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  626. package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  627. package/hooks/transactions/useGetFailedTransactions.js +1 -1
  628. package/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
  629. package/hooks/transactions/useGetPendingTransactions.js +1 -1
  630. package/hooks/transactions/useGetSignTransactionsError.js +1 -1
  631. package/hooks/transactions/useGetSignedTransactions.js +1 -1
  632. package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  633. package/hooks/transactions/useGetTokenDetails.js +1 -1
  634. package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
  635. package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
  636. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  637. package/hooks/transactions/useSignMultipleTransactions.js +1 -1
  638. package/hooks/transactions/useSignTransactions.js +1 -1
  639. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  640. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  641. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  642. package/hooks/transactions/useTrackTransactionStatus.js +1 -1
  643. package/hooks/useGetNetworkConfig.js +1 -1
  644. package/hooks/useGetNotification.js +1 -1
  645. package/hooks/userInterface/index.js +1 -1
  646. package/hooks/userInterface/useIsDappModalVisible.js +1 -1
  647. package/hooks/websocketListener/index.js +1 -1
  648. package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
  649. package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  650. package/models/index.js +1 -1
  651. package/models/newTransaction.js +1 -1
  652. package/package.json +1 -1
  653. package/providers/accountProvider.js +1 -1
  654. package/providers/index.js +1 -1
  655. package/providers/utils.js +1 -1
  656. package/providers/webviewProvider/index.js +1 -1
  657. package/providers/webviewProvider/requestMethods.js +1 -1
  658. package/providers/webviewProvider/webviewProvider.js +1 -1
  659. package/reduxStore/DappProviderContext.js +1 -1
  660. package/reduxStore/commonActions.js +1 -1
  661. package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
  662. package/reduxStore/persistConfig.js +1 -1
  663. package/reduxStore/persistedRootReducer.js +1 -1
  664. package/reduxStore/reducers.js +1 -1
  665. package/reduxStore/rootReducer.js +1 -1
  666. package/reduxStore/selectors/accountInfoSelectors.js +1 -1
  667. package/reduxStore/selectors/batchTransactionsSelectors.js +1 -1
  668. package/reduxStore/selectors/dappConfigSelector.js +1 -1
  669. package/reduxStore/selectors/dappModalsSelectors.js +1 -1
  670. package/reduxStore/selectors/helpers.js +1 -1
  671. package/reduxStore/selectors/index.js +1 -1
  672. package/reduxStore/selectors/loginInfoSelectors.js +1 -1
  673. package/reduxStore/selectors/modalsSelectors.js +1 -1
  674. package/reduxStore/selectors/networkConfigSelectors.js +1 -1
  675. package/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
  676. package/reduxStore/selectors/toastsSelectors.js +1 -1
  677. package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
  678. package/reduxStore/selectors/transactionsSelectors.js +1 -1
  679. package/reduxStore/slices/accountInfoSlice.js +1 -1
  680. package/reduxStore/slices/batchTransactionsSlice.js +1 -1
  681. package/reduxStore/slices/dappConfigSlice.js +1 -1
  682. package/reduxStore/slices/dappModalsSlice.js +1 -1
  683. package/reduxStore/slices/index.js +1 -1
  684. package/reduxStore/slices/loginInfoSlice.js +1 -1
  685. package/reduxStore/slices/modalsSlice.js +1 -1
  686. package/reduxStore/slices/signedMessageInfoSlice.js +1 -1
  687. package/reduxStore/slices/toastsSlice.js +1 -1
  688. package/reduxStore/slices/transactionsInfoSlice.js +1 -1
  689. package/reduxStore/slices/transactionsSlice.js +1 -1
  690. package/reduxStore/store.js +1 -1
  691. package/services/index.js +1 -1
  692. package/services/nativeAuth/helpers/getAuthorizationInfo.js +1 -1
  693. package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
  694. package/services/nativeAuth/helpers/index.js +1 -1
  695. package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
  696. package/services/transactions/clearTransactions.js +1 -1
  697. package/services/transactions/getBatchTransactionsStatus.js +1 -1
  698. package/services/transactions/index.js +1 -1
  699. package/services/transactions/isCrossShardTransaction.js +1 -1
  700. package/services/transactions/sendBatchTransactions.js +1 -1
  701. package/services/transactions/sendTransactions.d.ts +1 -1
  702. package/services/transactions/sendTransactions.js +1 -1
  703. package/services/transactions/signTransactions.js +1 -1
  704. package/services/transactions/transformAndSignTransactions.js +1 -1
  705. package/services/transactions/utils.js +1 -1
  706. package/types/index.js +1 -1
  707. package/types/transactions.types.d.ts +5 -0
  708. package/types/transactions.types.js +1 -1
  709. package/utils/account/getAccount.js +1 -1
  710. package/utils/account/getAccountBalance.js +1 -1
  711. package/utils/account/getAccountProviderType.js +1 -1
  712. package/utils/account/getAccountShard.js +1 -1
  713. package/utils/account/getAddress.js +1 -1
  714. package/utils/account/getIsProviderEqualTo.js +1 -1
  715. package/utils/account/getLatestNonce.js +1 -1
  716. package/utils/account/getShardOfAddress.js +1 -1
  717. package/utils/account/index.js +1 -1
  718. package/utils/account/loginWithExternalProvider.js +1 -1
  719. package/utils/account/refreshAccount.js +1 -1
  720. package/utils/account/setNonce.js +1 -1
  721. package/utils/account/signMessage.js +1 -1
  722. package/utils/getIsLoggedIn.js +1 -1
  723. package/utils/index.js +1 -1
  724. package/utils/logout.js +1 -1
  725. package/utils/network/getChainID.js +1 -1
  726. package/utils/network/getEgldLabel.js +1 -1
  727. package/utils/network/getNetworkConfig.js +1 -1
  728. package/utils/network/index.js +1 -1
  729. package/utils/operations/calculateFeeLimit.js +1 -1
  730. package/utils/operations/denominate.js +1 -1
  731. package/utils/operations/formatAmount.js +1 -1
  732. package/utils/operations/index.js +1 -1
  733. package/utils/operations/nominate.js +1 -1
  734. package/utils/operations/parseAmount.js +1 -1
  735. package/utils/smartContracts.js +1 -1
  736. package/utils/toasts/customToastsActions.js +1 -1
  737. package/utils/toasts/index.js +1 -1
  738. package/utils/transactions/batch/updateBatchTransactionsStatuses.js +1 -1
  739. package/utils/transactions/getAllTransactionsLink.js +1 -1
  740. package/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
  741. package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
  742. package/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
  743. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
  744. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
  745. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
  746. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
  747. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
  748. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
  749. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
  750. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
  751. package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
  752. package/utils/transactions/getInterpretedTransaction/index.js +1 -1
  753. package/utils/transactions/getTransactionLink.js +1 -1
  754. package/utils/transactions/index.js +1 -1
  755. package/utils/transactions/parseMultiEsdtTransferData.js +1 -1
  756. package/utils/transactions/parseTransactionAfterSigning.js +1 -1
  757. package/utils/transactions/removeTransactionParamsFromUrl.js +1 -1
  758. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
  759. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
  760. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
  761. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
  762. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
  763. package/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
  764. package/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
  765. package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
  766. package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
  767. package/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
  768. package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
  769. package/utils/transactions/transactionInfoHelpers/index.js +1 -1
  770. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
  771. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/mexUnwrapper.js +1 -1
  772. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
  773. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/transactionActionUnwrapper.js +1 -1
  774. package/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
  775. package/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
  776. package/utils/validation/index.js +1 -1
  777. package/utils/validation/maxDecimals.js +1 -1
  778. package/utils/validation/stringIsFloat.js +1 -1
  779. package/utils/walletconnect/__mocks__/sdkWalletconnectProvider.js +1 -1
  780. package/web/hooks/index.js +1 -1
  781. package/web/hooks/useIdleTimer.js +1 -1
  782. package/web/index.js +1 -1
  783. package/wrappers/AppInitializer.js +1 -1
  784. package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
  785. package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  786. package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
  787. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
  788. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
  789. package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  790. package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  791. package/wrappers/AxiosInterceptorContext/index.js +1 -1
  792. package/wrappers/DappProvider/CustomComponents.js +1 -1
  793. package/wrappers/DappProvider/DappProvider.js +1 -1
  794. package/wrappers/DappProvider/index.js +1 -1
  795. package/wrappers/index.js +1 -1
  796. package/__chunks__/chunk-2DF5QDRY.js +0 -2
  797. package/__chunks__/chunk-2IKYBOID.js +0 -2
  798. package/__chunks__/chunk-3I4WSHUC.js +0 -2
  799. package/__chunks__/chunk-3UTHLT6A.js +0 -2
  800. package/__chunks__/chunk-4IOA75W6.js +0 -2
  801. package/__chunks__/chunk-4O6PWAKS.js +0 -2
  802. package/__chunks__/chunk-4PMLV6U3.js +0 -2
  803. package/__chunks__/chunk-6NEOCIRB.js +0 -2
  804. package/__chunks__/chunk-6XM3EBUS.js +0 -2
  805. package/__chunks__/chunk-72OGWB73.js +0 -2
  806. package/__chunks__/chunk-7CERDE75.js +0 -2
  807. package/__chunks__/chunk-7P4F7I5K.js +0 -2
  808. package/__chunks__/chunk-BH655BLS.js +0 -2
  809. package/__chunks__/chunk-BLWD4PKR.js +0 -2
  810. package/__chunks__/chunk-BN4BJQWE.js +0 -2
  811. package/__chunks__/chunk-BQFC2GGQ.js +0 -2
  812. package/__chunks__/chunk-BWHZUT7S.js +0 -2
  813. package/__chunks__/chunk-CL3YOGNK.js +0 -2
  814. package/__chunks__/chunk-EOVJZE2V.js +0 -2
  815. package/__chunks__/chunk-FWHFV2GY.js +0 -2
  816. package/__chunks__/chunk-G2MDLSAP.js +0 -2
  817. package/__chunks__/chunk-HFF63CWA.js +0 -2
  818. package/__chunks__/chunk-HQ64MG47.js +0 -2
  819. package/__chunks__/chunk-KS7XN62J.js +0 -2
  820. package/__chunks__/chunk-KSDVGCPP.js +0 -2
  821. package/__chunks__/chunk-KU6MQG4T.js +0 -2
  822. package/__chunks__/chunk-M3KWJSVP.js +0 -2
  823. package/__chunks__/chunk-MDLJLBON.js +0 -2
  824. package/__chunks__/chunk-MH3ZESL5.js +0 -2
  825. package/__chunks__/chunk-MNEZR55O.js +0 -2
  826. package/__chunks__/chunk-O252YP3B.js +0 -2
  827. package/__chunks__/chunk-OGBWOFC5.js +0 -2
  828. package/__chunks__/chunk-PD2665ST.js +0 -2
  829. package/__chunks__/chunk-QRNKLOPS.js +0 -2
  830. package/__chunks__/chunk-QUYLH34E.js +0 -2
  831. package/__chunks__/chunk-SHPUY3H6.js +0 -2
  832. package/__chunks__/chunk-SR2NXF6S.js +0 -2
  833. package/__chunks__/chunk-SVC7DYDE.js +0 -2
  834. package/__chunks__/chunk-UI4DV6BF.js +0 -2
  835. package/__chunks__/chunk-VKPM6HWY.js +0 -2
  836. package/__chunks__/chunk-VWHAHJ7M.js +0 -2
  837. package/__chunks__/chunk-WGZYZ3J4.js +0 -2
  838. package/__chunks__/chunk-WZAWFI47.js +0 -2
  839. package/__chunks__/chunk-XG7OX5T2.js +0 -2
  840. package/__chunks__/chunk-XVJ73AJ4.js +0 -2
  841. package/__chunks__/chunk-YC7PF6LQ.js +0 -2
  842. package/__chunks__/chunk-YJVSP7IH.js +0 -2
  843. package/__chunks__/chunk-ZGUJTQO2.js +0 -2
  844. package/__chunks__/chunk-ZK6VVULN.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";var _r=Object.create;var M=Object.defineProperty;var Lr=Object.getOwnPropertyDescriptor;var Ur=Object.getOwnPropertyNames;var Dr=Object.getPrototypeOf,Nr=Object.prototype.hasOwnProperty;var Pr=(t,r)=>()=>(t&&(r=t(t=0)),r);var G=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Mr=(t,r)=>{for(var e in r)M(t,e,{get:r[e],enumerable:!0})},er=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Ur(r))!Nr.call(t,i)&&i!==e&&M(t,i,{get:()=>r[i],enumerable:!(n=Lr(r,i))||n.enumerable});return t};var tr=(t,r,e)=>(e=t!=null?_r(Dr(t)):{},er(r||!t||!t.__esModule?M(e,"default",{value:t,enumerable:!0}):e,t)),Gr=t=>er(M({},"__esModule",{value:!0}),t);var ar=G(O=>{"use strict";c();O.byteLength=Hr;O.toByteArray=Wr;O.fromByteArray=zr;var S=[],v=[],Or=typeof Uint8Array!="undefined"?Uint8Array:Array,V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(R=0,nr=V.length;R<nr;++R)S[R]=V[R],v[V.charCodeAt(R)]=R;var R,nr;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function ir(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function Hr(t){var r=ir(t),e=r[0],n=r[1];return(e+n)*3/4-n}function qr(t,r,e){return(r+e)*3/4-e}function Wr(t){var r,e=ir(t),n=e[0],i=e[1],a=new Or(qr(t,n,i)),o=0,u=i>0?n-4:n,p;for(p=0;p<u;p+=4)r=v[t.charCodeAt(p)]<<18|v[t.charCodeAt(p+1)]<<12|v[t.charCodeAt(p+2)]<<6|v[t.charCodeAt(p+3)],a[o++]=r>>16&255,a[o++]=r>>8&255,a[o++]=r&255;return i===2&&(r=v[t.charCodeAt(p)]<<2|v[t.charCodeAt(p+1)]>>4,a[o++]=r&255),i===1&&(r=v[t.charCodeAt(p)]<<10|v[t.charCodeAt(p+1)]<<4|v[t.charCodeAt(p+2)]>>2,a[o++]=r>>8&255,a[o++]=r&255),a}function Vr(t){return S[t>>18&63]+S[t>>12&63]+S[t>>6&63]+S[t&63]}function Yr(t,r,e){for(var n,i=[],a=r;a<e;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(Vr(n));return i.join("")}function zr(t){for(var r,e=t.length,n=e%3,i=[],a=16383,o=0,u=e-n;o<u;o+=a)i.push(Yr(t,o,o+a>u?u:o+a));return n===1?(r=t[e-1],i.push(S[r>>2]+S[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(S[r>>10]+S[r>>4&63]+S[r<<2&63]+"=")),i.join("")}});var or=G(Y=>{c();Y.read=function(t,r,e,n,i){var a,o,u=i*8-n-1,p=(1<<u)-1,f=p>>1,g=-7,l=e?i-1:0,F=e?-1:1,w=t[r+l];for(l+=F,a=w&(1<<-g)-1,w>>=-g,g+=u;g>0;a=a*256+t[r+l],l+=F,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[r+l],l+=F,g-=8);if(a===0)a=1-f;else{if(a===p)return o?NaN:(w?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-f}return(w?-1:1)*o*Math.pow(2,a-n)};Y.write=function(t,r,e,n,i,a){var o,u,p,f=a*8-i-1,g=(1<<f)-1,l=g>>1,F=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:a-1,L=n?1:-1,Cr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,o=g):(o=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-o))<1&&(o--,p*=2),o+l>=1?r+=F/p:r+=F*Math.pow(2,1-l),r*p>=2&&(o++,p/=2),o+l>=g?(u=0,o=g):o+l>=1?(u=(r*p-1)*Math.pow(2,i),o=o+l):(u=r*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[e+w]=u&255,w+=L,u/=256,i-=8);for(o=o<<i|u,f+=i;f>0;t[e+w]=o&255,w+=L,o/=256,f-=8);t[e+w-L]|=Cr*128}});var Tr=G(D=>{"use strict";c();var z=ar(),U=or(),sr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;D.Buffer=s;D.SlowBuffer=Zr;D.INSPECT_MAX_BYTES=50;var H=2147483647;D.kMaxLength=H;s.TYPED_ARRAY_SUPPORT=Qr();!s.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 Qr(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function B(t){if(t>H)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,s.prototype),r}function s(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return K(t)}return cr(t,r,e)}s.poolSize=8192;function cr(t,r,e){if(typeof t=="string")return Jr(t,r);if(ArrayBuffer.isView(t))return Kr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(b(t,ArrayBuffer)||t&&b(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(b(t,SharedArrayBuffer)||t&&b(t.buffer,SharedArrayBuffer)))return X(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,r,e);var i=jr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,r,e){return cr(t,r,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function lr(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function Xr(t,r,e){return lr(t),t<=0?B(t):r!==void 0?typeof e=="string"?B(t).fill(r,e):B(t).fill(r):B(t)}s.alloc=function(t,r,e){return Xr(t,r,e)};function K(t){return lr(t),B(t<0?0:j(t)|0)}s.allocUnsafe=function(t){return K(t)};s.allocUnsafeSlow=function(t){return K(t)};function Jr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=fr(t,r)|0,n=B(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function Q(t){for(var r=t.length<0?0:j(t.length)|0,e=B(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function Kr(t){if(b(t,Uint8Array)){var r=new Uint8Array(t);return X(r.buffer,r.byteOffset,r.byteLength)}return Q(t)}function X(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,s.prototype),n}function jr(t){if(s.isBuffer(t)){var r=j(t.length)|0,e=B(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||Z(t.length)?B(0):Q(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Q(t.data)}function j(t){if(t>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return t|0}function Zr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,e){if(b(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),b(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(r)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,i=e.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==e[a]){n=r[a],i=e[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=s.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var o=r[n];if(b(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function fr(t,r){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||b(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return mr(t).length;default:if(i)return n?-1:J(t).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=fr;function $r(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return pe(this,r,e);case"utf8":case"utf-8":return hr(this,r,e);case"ascii":return se(this,r,e);case"latin1":case"binary":return ue(this,r,e);case"base64":return ae(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function C(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}s.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)C(this,e,e+1);return this};s.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)C(this,e,e+3),C(this,e+1,e+2);return this};s.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)C(this,e,e+7),C(this,e+1,e+6),C(this,e+2,e+5),C(this,e+3,e+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?hr(this,0,r):$r.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",e=D.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};sr&&(s.prototype[sr]=s.prototype.inspect);s.prototype.compare=function(r,e,n,i,a){if(b(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,u=n-e,p=Math.min(o,u),f=this.slice(i,a),g=r.slice(e,n),l=0;l<p;++l)if(f[l]!==g[l]){o=f[l],u=g[l];break}return o<u?-1:u<o?1:0};function gr(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,Z(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=s.from(r,n)),s.isBuffer(r))return r.length===0?-1:ur(t,r,e,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):ur(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function ur(t,r,e,n,i){var a=1,o=t.length,u=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,u/=2,e/=2}function p(w,L){return a===1?w[L]:w.readUInt16BE(L*a)}var f;if(i){var g=-1;for(f=e;f<o;f++)if(p(t,f)===p(r,g===-1?0:f-g)){if(g===-1&&(g=f),f-g+1===u)return g*a}else g!==-1&&(f-=f-g),g=-1}else for(e+u>o&&(e=o-u),f=e;f>=0;f--){for(var l=!0,F=0;F<u;F++)if(p(t,f+F)!==p(r,F)){l=!1;break}if(l)return f}return-1}s.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};s.prototype.indexOf=function(r,e,n){return gr(this,r,e,n,!0)};s.prototype.lastIndexOf=function(r,e,n){return gr(this,r,e,n,!1)};function re(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var u=parseInt(r.substr(o*2,2),16);if(Z(u))return o;t[e+o]=u}return o}function ee(t,r,e,n){return q(J(r,t.length-e),t,e,n)}function te(t,r,e,n){return q(ge(r),t,e,n)}function ne(t,r,e,n){return q(mr(r),t,e,n)}function ie(t,r,e,n){return q(he(r,t.length-e),t,e,n)}s.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return re(this,r,e,n);case"utf8":case"utf-8":return ee(this,r,e,n);case"ascii":case"latin1":case"binary":return te(this,r,e,n);case"base64":return ne(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,r,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ae(t,r,e){return r===0&&e===t.length?z.fromByteArray(t):z.fromByteArray(t.slice(r,e))}function hr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var a=t[i],o=null,u=a>239?4:a>223?3:a>191?2:1;if(i+u<=e){var p,f,g,l;switch(u){case 1:a<128&&(o=a);break;case 2:p=t[i+1],(p&192)===128&&(l=(a&31)<<6|p&63,l>127&&(o=l));break;case 3:p=t[i+1],f=t[i+2],(p&192)===128&&(f&192)===128&&(l=(a&15)<<12|(p&63)<<6|f&63,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:p=t[i+1],f=t[i+2],g=t[i+3],(p&192)===128&&(f&192)===128&&(g&192)===128&&(l=(a&15)<<18|(p&63)<<12|(f&63)<<6|g&63,l>65535&&l<1114112&&(o=l))}}o===null?(o=65533,u=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=u}return oe(n)}var pr=4096;function oe(t){var r=t.length;if(r<=pr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=pr));return e}function se(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function ue(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function pe(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",a=r;a<e;++a)i+=de[t[a]];return i}function ce(t,r,e){for(var n=t.slice(r,e),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i=this.subarray(r,e);return Object.setPrototypeOf(i,s.prototype),i};function x(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||x(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||x(r,e,this.length);for(var i=this[r+--e],a=1;e>0&&(a*=256);)i+=this[r+--e]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,e){return r=r>>>0,e||x(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||x(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||x(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||x(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||x(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||x(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||x(r,e,this.length);for(var i=e,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};s.prototype.readInt8=function(r,e){return r=r>>>0,e||x(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,e){r=r>>>0,e||x(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(r,e){r=r>>>0,e||x(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(r,e){return r=r>>>0,e||x(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,e){return r=r>>>0,e||x(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,e){return r=r>>>0,e||x(r,4,this.length),U.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,e){return r=r>>>0,e||x(r,4,this.length),U.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||x(r,8,this.length),U.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||x(r,8,this.length),U.read(this,r,!1,52,8)};function T(t,r,e,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,r,e,n,a,0)}var o=1,u=0;for(this[e]=r&255;++u<n&&(o*=256);)this[e+u]=r/o&255;return e+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,r,e,n,a,0)}var o=n-1,u=1;for(this[e+o]=r&255;--o>=0&&(u*=256);)this[e+o]=r/u&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,1,255,0),this[e]=r&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};s.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);T(this,r,e,n,a-1,-a)}var o=0,u=1,p=0;for(this[e]=r&255;++o<n&&(u*=256);)r<0&&p===0&&this[e+o-1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);T(this,r,e,n,a-1,-a)}var o=n-1,u=1,p=0;for(this[e+o]=r&255;--o>=0&&(u*=256);)r<0&&p===0&&this[e+o+1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};s.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};s.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function dr(t,r,e,n,i,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function yr(t,r,e,n,i){return r=+r,e=e>>>0,i||dr(t,r,e,4,34028234663852886e22,-34028234663852886e22),U.write(t,r,e,n,23,4),e+4}s.prototype.writeFloatLE=function(r,e,n){return yr(this,r,e,!0,n)};s.prototype.writeFloatBE=function(r,e,n){return yr(this,r,e,!1,n)};function xr(t,r,e,n,i){return r=+r,e=e>>>0,i||dr(t,r,e,8,17976931348623157e292,-17976931348623157e292),U.write(t,r,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(r,e,n){return xr(this,r,e,!0,n)};s.prototype.writeDoubleBE=function(r,e,n){return xr(this,r,e,!1,n)};s.prototype.copy=function(r,e,n,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var a=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),e),a};s.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<n;++o)this[o]=r;else{var u=s.isBuffer(r)?r:s.from(r,i),p=u.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=u[o%p]}return this};var le=/[^+/0-9A-Za-z-_]/g;function fe(t){if(t=t.split("=")[0],t=t.trim().replace(le,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(t,r){r=r||1/0;for(var e,n=t.length,i=null,a=[],o=0;o<n;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function ge(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function he(t,r){for(var e,n,i,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),n=e>>8,i=e%256,a.push(i),a.push(n);return a}function mr(t){return z.toByteArray(fe(t))}function q(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function b(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function Z(t){return t!==t}var de=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()});var br=G((Ae,Sr)=>{c();var h=Sr.exports={},I,k;function $(){throw new Error("setTimeout has not been defined")}function rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=$}catch(t){I=$}try{typeof clearTimeout=="function"?k=clearTimeout:k=rr}catch(t){k=rr}})();function wr(t){if(I===setTimeout)return setTimeout(t,0);if((I===$||!I)&&setTimeout)return I=setTimeout,setTimeout(t,0);try{return I(t,0)}catch(r){try{return I.call(null,t,0)}catch(e){return I.call(this,t,0)}}}function ye(t){if(k===clearTimeout)return clearTimeout(t);if((k===rr||!k)&&clearTimeout)return k=clearTimeout,clearTimeout(t);try{return k(t)}catch(r){try{return k.call(null,t)}catch(e){return k.call(this,t)}}}var A=[],N=!1,_,W=-1;function xe(){!N||!_||(N=!1,_.length?A=_.concat(A):W=-1,A.length&&vr())}function vr(){if(!N){var t=wr(xe);N=!0;for(var r=A.length;r;){for(_=A,A=[];++W<r;)_&&_[W].run();W=-1,r=A.length}_=null,N=!1,ye(t)}}h.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];A.push(new Fr(t,r)),A.length===1&&!N&&wr(vr)};function Fr(t,r){this.fun=t,this.array=r}Fr.prototype.run=function(){this.fun.apply(null,this.array)};h.title="browser";h.browser=!0;h.env={};h.argv=[];h.version="";h.versions={};function E(){}h.on=E;h.addListener=E;h.once=E;h.off=E;h.removeListener=E;h.removeAllListeners=E;h.emit=E;h.prependListener=E;h.prependOnceListener=E;h.listeners=function(t){return[]};h.binding=function(t){throw new Error("process.binding is not supported")};h.cwd=function(){return"/"};h.chdir=function(t){throw new Error("process.chdir is not supported")};h.umask=function(){return 0}});var d,y,Ee,c=Pr(()=>{d=tr(Tr()),y=tr(br()),Ee=function(t){function r(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var Se={};Mr(Se,{ESDTTransferTypes:()=>Ar,getAddressFromDataField:()=>Rr,isContract:()=>Te,isSelfESDTContract:()=>Er});module.exports=Gr(Se);c();var P=require("@multiversx/sdk-core");c();c();c();c();c();c();c();c();c();c();c();c();var Ir=require("@multiversx/sdk-core");function me(t){try{let r=new Ir.Address(t);return Boolean(r.bech32())}catch(r){return!1}}function kr(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&me(t)}c();function Br(t){try{let r=atob(t),e=btoa(r),n=d.Buffer.from(t,"base64").toString(),i=d.Buffer.from(n).toString("base64");if(t===e&&t===i||r===n)return!0}catch(r){return!1}return!1}var Ar=["ESDTNFTTransfer","ESDTNFTBurn","ESDTNFTAddQuantity","ESDTNFTCreate","MultiESDTNFTTransfer","ESDTTransfer","ESDTBurn","ESDTLocalMint","ESDTLocalBurn","ESDTWipe","ESDTFreeze"];function Te(t,r,e=""){if(!kr(t))return!1;if(new P.Address(t).isContractAddress())return!0;let a=Rr({receiver:t,data:e});return a?new P.Address(a).isContractAddress()||Er(t,r,e):!1}var we=t=>t.toLowerCase().match(/[0-9a-f]/g),ve=t=>t.length%2===0;function Er(t,r,e){let n=e==null?void 0:e.split("@");if(n==null)return!1;let[i,...a]=n,o=r!=null&&t!=null&&t===r,u=Ar.includes(i),p=a.every(f=>we(f)&&ve(f));return o&&u&&p}function Rr({receiver:t,data:r}){try{if(!r)return t;let e=Br(r)?P.TransactionPayload.fromEncoded(r).toString():r,n=Fe(e),i=e.split("@");return n>-1?i[n]:t}catch(e){console.log(e);return}}function Fe(t){return t.includes("MultiESDTNFTTransfer")?1:t.includes("ESDTNFTTransfer")?4:-1}0&&(module.exports={ESDTTransferTypes,getAddressFromDataField,isContract,isSelfESDTContract});
1
+ "use strict";var _r=Object.create;var M=Object.defineProperty;var Lr=Object.getOwnPropertyDescriptor;var Ur=Object.getOwnPropertyNames;var Dr=Object.getPrototypeOf,Nr=Object.prototype.hasOwnProperty;var Pr=(t,r)=>()=>(t&&(r=t(t=0)),r);var G=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Mr=(t,r)=>{for(var e in r)M(t,e,{get:r[e],enumerable:!0})},er=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Ur(r))!Nr.call(t,i)&&i!==e&&M(t,i,{get:()=>r[i],enumerable:!(n=Lr(r,i))||n.enumerable});return t};var tr=(t,r,e)=>(e=t!=null?_r(Dr(t)):{},er(r||!t||!t.__esModule?M(e,"default",{value:t,enumerable:!0}):e,t)),Gr=t=>er(M({},"__esModule",{value:!0}),t);var ar=G(O=>{"use strict";c();O.byteLength=Hr;O.toByteArray=Wr;O.fromByteArray=zr;var S=[],v=[],Or=typeof Uint8Array!="undefined"?Uint8Array:Array,V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(R=0,nr=V.length;R<nr;++R)S[R]=V[R],v[V.charCodeAt(R)]=R;var R,nr;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function ir(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function Hr(t){var r=ir(t),e=r[0],n=r[1];return(e+n)*3/4-n}function qr(t,r,e){return(r+e)*3/4-e}function Wr(t){var r,e=ir(t),n=e[0],i=e[1],a=new Or(qr(t,n,i)),o=0,u=i>0?n-4:n,p;for(p=0;p<u;p+=4)r=v[t.charCodeAt(p)]<<18|v[t.charCodeAt(p+1)]<<12|v[t.charCodeAt(p+2)]<<6|v[t.charCodeAt(p+3)],a[o++]=r>>16&255,a[o++]=r>>8&255,a[o++]=r&255;return i===2&&(r=v[t.charCodeAt(p)]<<2|v[t.charCodeAt(p+1)]>>4,a[o++]=r&255),i===1&&(r=v[t.charCodeAt(p)]<<10|v[t.charCodeAt(p+1)]<<4|v[t.charCodeAt(p+2)]>>2,a[o++]=r>>8&255,a[o++]=r&255),a}function Vr(t){return S[t>>18&63]+S[t>>12&63]+S[t>>6&63]+S[t&63]}function Yr(t,r,e){for(var n,i=[],a=r;a<e;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(Vr(n));return i.join("")}function zr(t){for(var r,e=t.length,n=e%3,i=[],a=16383,o=0,u=e-n;o<u;o+=a)i.push(Yr(t,o,o+a>u?u:o+a));return n===1?(r=t[e-1],i.push(S[r>>2]+S[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(S[r>>10]+S[r>>4&63]+S[r<<2&63]+"=")),i.join("")}});var or=G(Y=>{c();Y.read=function(t,r,e,n,i){var a,o,u=i*8-n-1,p=(1<<u)-1,f=p>>1,g=-7,l=e?i-1:0,F=e?-1:1,w=t[r+l];for(l+=F,a=w&(1<<-g)-1,w>>=-g,g+=u;g>0;a=a*256+t[r+l],l+=F,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[r+l],l+=F,g-=8);if(a===0)a=1-f;else{if(a===p)return o?NaN:(w?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-f}return(w?-1:1)*o*Math.pow(2,a-n)};Y.write=function(t,r,e,n,i,a){var o,u,p,f=a*8-i-1,g=(1<<f)-1,l=g>>1,F=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:a-1,L=n?1:-1,Cr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,o=g):(o=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-o))<1&&(o--,p*=2),o+l>=1?r+=F/p:r+=F*Math.pow(2,1-l),r*p>=2&&(o++,p/=2),o+l>=g?(u=0,o=g):o+l>=1?(u=(r*p-1)*Math.pow(2,i),o=o+l):(u=r*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[e+w]=u&255,w+=L,u/=256,i-=8);for(o=o<<i|u,f+=i;f>0;t[e+w]=o&255,w+=L,o/=256,f-=8);t[e+w-L]|=Cr*128}});var Tr=G(D=>{"use strict";c();var z=ar(),U=or(),sr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;D.Buffer=s;D.SlowBuffer=Zr;D.INSPECT_MAX_BYTES=50;var H=2147483647;D.kMaxLength=H;s.TYPED_ARRAY_SUPPORT=Qr();!s.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 Qr(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function B(t){if(t>H)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,s.prototype),r}function s(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return K(t)}return cr(t,r,e)}s.poolSize=8192;function cr(t,r,e){if(typeof t=="string")return Jr(t,r);if(ArrayBuffer.isView(t))return Kr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(b(t,ArrayBuffer)||t&&b(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(b(t,SharedArrayBuffer)||t&&b(t.buffer,SharedArrayBuffer)))return X(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,r,e);var i=jr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,r,e){return cr(t,r,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function lr(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function Xr(t,r,e){return lr(t),t<=0?B(t):r!==void 0?typeof e=="string"?B(t).fill(r,e):B(t).fill(r):B(t)}s.alloc=function(t,r,e){return Xr(t,r,e)};function K(t){return lr(t),B(t<0?0:j(t)|0)}s.allocUnsafe=function(t){return K(t)};s.allocUnsafeSlow=function(t){return K(t)};function Jr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=fr(t,r)|0,n=B(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function Q(t){for(var r=t.length<0?0:j(t.length)|0,e=B(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function Kr(t){if(b(t,Uint8Array)){var r=new Uint8Array(t);return X(r.buffer,r.byteOffset,r.byteLength)}return Q(t)}function X(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,s.prototype),n}function jr(t){if(s.isBuffer(t)){var r=j(t.length)|0,e=B(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||Z(t.length)?B(0):Q(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Q(t.data)}function j(t){if(t>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return t|0}function Zr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,e){if(b(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),b(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(r)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,i=e.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==e[a]){n=r[a],i=e[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=s.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var o=r[n];if(b(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function fr(t,r){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||b(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return mr(t).length;default:if(i)return n?-1:J(t).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=fr;function $r(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return pe(this,r,e);case"utf8":case"utf-8":return hr(this,r,e);case"ascii":return se(this,r,e);case"latin1":case"binary":return ue(this,r,e);case"base64":return ae(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function C(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}s.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)C(this,e,e+1);return this};s.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)C(this,e,e+3),C(this,e+1,e+2);return this};s.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)C(this,e,e+7),C(this,e+1,e+6),C(this,e+2,e+5),C(this,e+3,e+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?hr(this,0,r):$r.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",e=D.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};sr&&(s.prototype[sr]=s.prototype.inspect);s.prototype.compare=function(r,e,n,i,a){if(b(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,u=n-e,p=Math.min(o,u),f=this.slice(i,a),g=r.slice(e,n),l=0;l<p;++l)if(f[l]!==g[l]){o=f[l],u=g[l];break}return o<u?-1:u<o?1:0};function gr(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,Z(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=s.from(r,n)),s.isBuffer(r))return r.length===0?-1:ur(t,r,e,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):ur(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function ur(t,r,e,n,i){var a=1,o=t.length,u=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,u/=2,e/=2}function p(w,L){return a===1?w[L]:w.readUInt16BE(L*a)}var f;if(i){var g=-1;for(f=e;f<o;f++)if(p(t,f)===p(r,g===-1?0:f-g)){if(g===-1&&(g=f),f-g+1===u)return g*a}else g!==-1&&(f-=f-g),g=-1}else for(e+u>o&&(e=o-u),f=e;f>=0;f--){for(var l=!0,F=0;F<u;F++)if(p(t,f+F)!==p(r,F)){l=!1;break}if(l)return f}return-1}s.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};s.prototype.indexOf=function(r,e,n){return gr(this,r,e,n,!0)};s.prototype.lastIndexOf=function(r,e,n){return gr(this,r,e,n,!1)};function re(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var u=parseInt(r.substr(o*2,2),16);if(Z(u))return o;t[e+o]=u}return o}function ee(t,r,e,n){return q(J(r,t.length-e),t,e,n)}function te(t,r,e,n){return q(ge(r),t,e,n)}function ne(t,r,e,n){return q(mr(r),t,e,n)}function ie(t,r,e,n){return q(he(r,t.length-e),t,e,n)}s.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return re(this,r,e,n);case"utf8":case"utf-8":return ee(this,r,e,n);case"ascii":case"latin1":case"binary":return te(this,r,e,n);case"base64":return ne(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,r,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ae(t,r,e){return r===0&&e===t.length?z.fromByteArray(t):z.fromByteArray(t.slice(r,e))}function hr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var a=t[i],o=null,u=a>239?4:a>223?3:a>191?2:1;if(i+u<=e){var p,f,g,l;switch(u){case 1:a<128&&(o=a);break;case 2:p=t[i+1],(p&192)===128&&(l=(a&31)<<6|p&63,l>127&&(o=l));break;case 3:p=t[i+1],f=t[i+2],(p&192)===128&&(f&192)===128&&(l=(a&15)<<12|(p&63)<<6|f&63,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:p=t[i+1],f=t[i+2],g=t[i+3],(p&192)===128&&(f&192)===128&&(g&192)===128&&(l=(a&15)<<18|(p&63)<<12|(f&63)<<6|g&63,l>65535&&l<1114112&&(o=l))}}o===null?(o=65533,u=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=u}return oe(n)}var pr=4096;function oe(t){var r=t.length;if(r<=pr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=pr));return e}function se(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function ue(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function pe(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",a=r;a<e;++a)i+=de[t[a]];return i}function ce(t,r,e){for(var n=t.slice(r,e),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i=this.subarray(r,e);return Object.setPrototypeOf(i,s.prototype),i};function x(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||x(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||x(r,e,this.length);for(var i=this[r+--e],a=1;e>0&&(a*=256);)i+=this[r+--e]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,e){return r=r>>>0,e||x(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||x(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||x(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||x(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||x(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||x(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||x(r,e,this.length);for(var i=e,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};s.prototype.readInt8=function(r,e){return r=r>>>0,e||x(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,e){r=r>>>0,e||x(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(r,e){r=r>>>0,e||x(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(r,e){return r=r>>>0,e||x(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,e){return r=r>>>0,e||x(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,e){return r=r>>>0,e||x(r,4,this.length),U.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,e){return r=r>>>0,e||x(r,4,this.length),U.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||x(r,8,this.length),U.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||x(r,8,this.length),U.read(this,r,!1,52,8)};function T(t,r,e,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,r,e,n,a,0)}var o=1,u=0;for(this[e]=r&255;++u<n&&(o*=256);)this[e+u]=r/o&255;return e+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,r,e,n,a,0)}var o=n-1,u=1;for(this[e+o]=r&255;--o>=0&&(u*=256);)this[e+o]=r/u&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,1,255,0),this[e]=r&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};s.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);T(this,r,e,n,a-1,-a)}var o=0,u=1,p=0;for(this[e]=r&255;++o<n&&(u*=256);)r<0&&p===0&&this[e+o-1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);T(this,r,e,n,a-1,-a)}var o=n-1,u=1,p=0;for(this[e+o]=r&255;--o>=0&&(u*=256);)r<0&&p===0&&this[e+o+1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};s.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};s.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||T(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function dr(t,r,e,n,i,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function yr(t,r,e,n,i){return r=+r,e=e>>>0,i||dr(t,r,e,4,34028234663852886e22,-34028234663852886e22),U.write(t,r,e,n,23,4),e+4}s.prototype.writeFloatLE=function(r,e,n){return yr(this,r,e,!0,n)};s.prototype.writeFloatBE=function(r,e,n){return yr(this,r,e,!1,n)};function xr(t,r,e,n,i){return r=+r,e=e>>>0,i||dr(t,r,e,8,17976931348623157e292,-17976931348623157e292),U.write(t,r,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(r,e,n){return xr(this,r,e,!0,n)};s.prototype.writeDoubleBE=function(r,e,n){return xr(this,r,e,!1,n)};s.prototype.copy=function(r,e,n,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var a=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),e),a};s.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<n;++o)this[o]=r;else{var u=s.isBuffer(r)?r:s.from(r,i),p=u.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=u[o%p]}return this};var le=/[^+/0-9A-Za-z-_]/g;function fe(t){if(t=t.split("=")[0],t=t.trim().replace(le,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(t,r){r=r||1/0;for(var e,n=t.length,i=null,a=[],o=0;o<n;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function ge(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function he(t,r){for(var e,n,i,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),n=e>>8,i=e%256,a.push(i),a.push(n);return a}function mr(t){return z.toByteArray(fe(t))}function q(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function b(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function Z(t){return t!==t}var de=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()});var br=G((Ae,Sr)=>{c();var h=Sr.exports={},k,I;function $(){throw new Error("setTimeout has not been defined")}function rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?k=setTimeout:k=$}catch(t){k=$}try{typeof clearTimeout=="function"?I=clearTimeout:I=rr}catch(t){I=rr}})();function wr(t){if(k===setTimeout)return setTimeout(t,0);if((k===$||!k)&&setTimeout)return k=setTimeout,setTimeout(t,0);try{return k(t,0)}catch(r){try{return k.call(null,t,0)}catch(e){return k.call(this,t,0)}}}function ye(t){if(I===clearTimeout)return clearTimeout(t);if((I===rr||!I)&&clearTimeout)return I=clearTimeout,clearTimeout(t);try{return I(t)}catch(r){try{return I.call(null,t)}catch(e){return I.call(this,t)}}}var A=[],N=!1,_,W=-1;function xe(){!N||!_||(N=!1,_.length?A=_.concat(A):W=-1,A.length&&vr())}function vr(){if(!N){var t=wr(xe);N=!0;for(var r=A.length;r;){for(_=A,A=[];++W<r;)_&&_[W].run();W=-1,r=A.length}_=null,N=!1,ye(t)}}h.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];A.push(new Fr(t,r)),A.length===1&&!N&&wr(vr)};function Fr(t,r){this.fun=t,this.array=r}Fr.prototype.run=function(){this.fun.apply(null,this.array)};h.title="browser";h.browser=!0;h.env={};h.argv=[];h.version="";h.versions={};function E(){}h.on=E;h.addListener=E;h.once=E;h.off=E;h.removeListener=E;h.removeAllListeners=E;h.emit=E;h.prependListener=E;h.prependOnceListener=E;h.listeners=function(t){return[]};h.binding=function(t){throw new Error("process.binding is not supported")};h.cwd=function(){return"/"};h.chdir=function(t){throw new Error("process.chdir is not supported")};h.umask=function(){return 0}});var d,y,Ee,c=Pr(()=>{d=tr(Tr()),y=tr(br()),Ee=function(t){function r(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var Se={};Mr(Se,{ESDTTransferTypes:()=>Ar,getAddressFromDataField:()=>Rr,isContract:()=>Te,isSelfESDTContract:()=>Er});module.exports=Gr(Se);c();var P=require("@multiversx/sdk-core");c();c();c();c();c();c();c();c();c();c();c();c();var kr=require("@multiversx/sdk-core");function me(t){try{let r=new kr.Address(t);return Boolean(r.bech32())}catch(r){return!1}}function Ir(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&me(t)}c();function Br(t){try{let r=atob(t),e=btoa(r),n=d.Buffer.from(t,"base64").toString(),i=d.Buffer.from(n).toString("base64");if(t===e&&t===i||r===n)return!0}catch(r){return!1}return!1}var Ar=["ESDTNFTTransfer","ESDTNFTBurn","ESDTNFTAddQuantity","ESDTNFTCreate","MultiESDTNFTTransfer","ESDTTransfer","ESDTBurn","ESDTLocalMint","ESDTLocalBurn","ESDTWipe","ESDTFreeze"];function Te(t,r,e=""){if(!Ir(t))return!1;if(new P.Address(t).isContractAddress())return!0;let a=Rr({receiver:t,data:e});return a?new P.Address(a).isContractAddress()||Er(t,r,e):!1}var we=t=>t.toLowerCase().match(/[0-9a-f]/g),ve=t=>t.length%2===0;function Er(t,r,e){let n=e==null?void 0:e.split("@");if(n==null)return!1;let[i,...a]=n,o=r!=null&&t!=null&&t===r,u=Ar.includes(i),p=a.every(f=>we(f)&&ve(f));return o&&u&&p}function Rr({receiver:t,data:r}){try{if(!r)return t;let e=Br(r)?P.TransactionPayload.fromEncoded(r).toString():r,n=Fe(e),i=e.split("@");return n>-1?i[n]:t}catch(e){console.log(e);return}}function Fe(t){return t.includes("MultiESDTNFTTransfer")?1:t.includes("ESDTNFTTransfer")?4:-1}0&&(module.exports={ESDTTransferTypes,getAddressFromDataField,isContract,isSelfESDTContract});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";var kr=Object.create;var q=Object.defineProperty,Ir=Object.defineProperties,Er=Object.getOwnPropertyDescriptor,Sr=Object.getOwnPropertyDescriptors,Ar=Object.getOwnPropertyNames,Se=Object.getOwnPropertySymbols,Nr=Object.getPrototypeOf,Ne=Object.prototype.hasOwnProperty,Dr=Object.prototype.propertyIsEnumerable;var Ae=(t,e,r)=>e in t?q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ne=(t,e)=>{for(var r in e||(e={}))Ne.call(e,r)&&Ae(t,r,e[r]);if(Se)for(var r of Se(e))Dr.call(e,r)&&Ae(t,r,e[r]);return t},ie=(t,e)=>Ir(t,Sr(e));var _r=(t,e)=>()=>(t&&(e=t(t=0)),e);var X=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Rr=(t,e)=>{for(var r in e)q(t,r,{get:e[r],enumerable:!0})},De=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ar(e))!Ne.call(t,i)&&i!==r&&q(t,i,{get:()=>e[i],enumerable:!(n=Er(e,i))||n.enumerable});return t};var N=(t,e,r)=>(r=t!=null?kr(Nr(t)):{},De(e||!t||!t.__esModule?q(r,"default",{value:t,enumerable:!0}):r,t)),Lr=t=>De(q({},"__esModule",{value:!0}),t);var Le=X(Y=>{"use strict";a();Y.byteLength=Cr;Y.toByteArray=Br;Y.fromByteArray=Mr;var k=[],v=[],Fr=typeof Uint8Array!="undefined"?Uint8Array:Array,oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(B=0,_e=oe.length;B<_e;++B)k[B]=oe[B],v[oe.charCodeAt(B)]=B;var B,_e;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function Re(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Cr(t){var e=Re(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Or(t,e,r){return(e+r)*3/4-r}function Br(t){var e,r=Re(t),n=r[0],i=r[1],o=new Fr(Or(t,n,i)),s=0,m=i>0?n-4:n,g;for(g=0;g<m;g+=4)e=v[t.charCodeAt(g)]<<18|v[t.charCodeAt(g+1)]<<12|v[t.charCodeAt(g+2)]<<6|v[t.charCodeAt(g+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=v[t.charCodeAt(g)]<<2|v[t.charCodeAt(g+1)]>>4,o[s++]=e&255),i===1&&(e=v[t.charCodeAt(g)]<<10|v[t.charCodeAt(g+1)]<<4|v[t.charCodeAt(g+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function Ur(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function Pr(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(Ur(n));return i.join("")}function Mr(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,m=r-n;s<m;s+=o)i.push(Pr(t,s,s+o>m?m:s+o));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var Fe=X(ae=>{a();ae.read=function(t,e,r,n,i){var o,s,m=i*8-n-1,g=(1<<m)-1,f=g>>1,h=-7,d=r?i-1:0,w=r?-1:1,x=t[e+d];for(d+=w,o=x&(1<<-h)-1,x>>=-h,h+=m;h>0;o=o*256+t[e+d],d+=w,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=s*256+t[e+d],d+=w,h-=8);if(o===0)o=1-f;else{if(o===g)return s?NaN:(x?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-f}return(x?-1:1)*s*Math.pow(2,o-n)};ae.write=function(t,e,r,n,i,o){var s,m,g,f=o*8-i-1,h=(1<<f)-1,d=h>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:o-1,L=n?1:-1,K=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(m=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(g=Math.pow(2,-s))<1&&(s--,g*=2),s+d>=1?e+=w/g:e+=w*Math.pow(2,1-d),e*g>=2&&(s++,g/=2),s+d>=h?(m=0,s=h):s+d>=1?(m=(e*g-1)*Math.pow(2,i),s=s+d):(m=e*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;t[r+x]=m&255,x+=L,m/=256,i-=8);for(s=s<<i|m,f+=i;f>0;t[r+x]=s&255,x+=L,s/=256,f-=8);t[r+x-L]|=K*128}});var ze=X(G=>{"use strict";a();var se=Le(),$=Fe(),Ce=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;G.Buffer=c;G.SlowBuffer=qr;G.INSPECT_MAX_BYTES=50;var Z=2147483647;G.kMaxLength=Z;c.TYPED_ARRAY_SUPPORT=$r();!c.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function $r(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.buffer}});Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.byteOffset}});function D(t){if(t>Z)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return pe(t)}return Ue(t,e,r)}c.poolSize=8192;function Ue(t,e,r){if(typeof t=="string")return Vr(t,e);if(ArrayBuffer.isView(t))return Hr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return le(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return c.from(n,e,r);var i=Wr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return c.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}c.from=function(t,e,r){return Ue(t,e,r)};Object.setPrototypeOf(c.prototype,Uint8Array.prototype);Object.setPrototypeOf(c,Uint8Array);function Pe(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function Gr(t,e,r){return Pe(t),t<=0?D(t):e!==void 0?typeof r=="string"?D(t).fill(e,r):D(t).fill(e):D(t)}c.alloc=function(t,e,r){return Gr(t,e,r)};function pe(t){return Pe(t),D(t<0?0:me(t)|0)}c.allocUnsafe=function(t){return pe(t)};c.allocUnsafeSlow=function(t){return pe(t)};function Vr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Me(t,e)|0,n=D(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ce(t){for(var e=t.length<0?0:me(t.length)|0,r=D(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Hr(t){if(I(t,Uint8Array)){var e=new Uint8Array(t);return le(e.buffer,e.byteOffset,e.byteLength)}return ce(t)}function le(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,c.prototype),n}function Wr(t){if(c.isBuffer(t)){var e=me(t.length)|0,r=D(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ge(t.length)?D(0):ce(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ce(t.data)}function me(t){if(t>=Z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Z.toString(16)+" bytes");return t|0}function qr(t){return+t!=t&&(t=0),c.alloc(+t)}c.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==c.prototype};c.compare=function(e,r){if(I(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),I(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),!c.isBuffer(e)||!c.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,s=Math.min(n,i);o<s;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};c.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return c.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=c.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var s=e[n];if(I(s,Uint8Array))o+s.length>i.length?c.from(s).copy(i,o):Uint8Array.prototype.set.call(i,s,o);else if(c.isBuffer(s))s.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length}return i};function Me(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ue(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return qe(t).length;default:if(i)return n?-1:ue(t).length;e=(""+e).toLowerCase(),i=!0}}c.byteLength=Me;function zr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return tt(this,e,r);case"utf8":case"utf-8":return Ge(this,e,r);case"ascii":return et(this,e,r);case"latin1":case"binary":return rt(this,e,r);case"base64":return Qr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nt(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}c.prototype._isBuffer=!0;function U(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)U(this,r,r+1);return this};c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)U(this,r,r+3),U(this,r+1,r+2);return this};c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)U(this,r,r+7),U(this,r+1,r+6),U(this,r+2,r+5),U(this,r+3,r+4);return this};c.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Ge(this,0,e):zr.apply(this,arguments)};c.prototype.toLocaleString=c.prototype.toString;c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:c.compare(this,e)===0};c.prototype.inspect=function(){var e="",r=G.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Ce&&(c.prototype[Ce]=c.prototype.inspect);c.prototype.compare=function(e,r,n,i,o){if(I(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var s=o-i,m=n-r,g=Math.min(s,m),f=this.slice(i,o),h=e.slice(r,n),d=0;d<g;++d)if(f[d]!==h[d]){s=f[d],m=h[d];break}return s<m?-1:m<s?1:0};function $e(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ge(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=c.from(e,n)),c.isBuffer(e))return e.length===0?-1:Oe(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Oe(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Oe(t,e,r,n,i){var o=1,s=t.length,m=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,s/=2,m/=2,r/=2}function g(x,L){return o===1?x[L]:x.readUInt16BE(L*o)}var f;if(i){var h=-1;for(f=r;f<s;f++)if(g(t,f)===g(e,h===-1?0:f-h)){if(h===-1&&(h=f),f-h+1===m)return h*o}else h!==-1&&(f-=f-h),h=-1}else for(r+m>s&&(r=s-m),f=r;f>=0;f--){for(var d=!0,w=0;w<m;w++)if(g(t,f+w)!==g(e,w)){d=!1;break}if(d)return f}return-1}c.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};c.prototype.indexOf=function(e,r,n){return $e(this,e,r,n,!0)};c.prototype.lastIndexOf=function(e,r,n){return $e(this,e,r,n,!1)};function jr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var m=parseInt(e.substr(s*2,2),16);if(ge(m))return s;t[r+s]=m}return s}function Kr(t,e,r,n){return Q(ue(e,t.length-r),t,r,n)}function Xr(t,e,r,n){return Q(at(e),t,r,n)}function Yr(t,e,r,n){return Q(qe(e),t,r,n)}function Zr(t,e,r,n){return Q(st(e,t.length-r),t,r,n)}c.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return jr(this,e,r,n);case"utf8":case"utf-8":return Kr(this,e,r,n);case"ascii":case"latin1":case"binary":return Xr(this,e,r,n);case"base64":return Yr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zr(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Qr(t,e,r){return e===0&&r===t.length?se.fromByteArray(t):se.fromByteArray(t.slice(e,r))}function Ge(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],s=null,m=o>239?4:o>223?3:o>191?2:1;if(i+m<=r){var g,f,h,d;switch(m){case 1:o<128&&(s=o);break;case 2:g=t[i+1],(g&192)===128&&(d=(o&31)<<6|g&63,d>127&&(s=d));break;case 3:g=t[i+1],f=t[i+2],(g&192)===128&&(f&192)===128&&(d=(o&15)<<12|(g&63)<<6|f&63,d>2047&&(d<55296||d>57343)&&(s=d));break;case 4:g=t[i+1],f=t[i+2],h=t[i+3],(g&192)===128&&(f&192)===128&&(h&192)===128&&(d=(o&15)<<18|(g&63)<<12|(f&63)<<6|h&63,d>65535&&d<1114112&&(s=d))}}s===null?(s=65533,m=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=m}return Jr(n)}var Be=4096;function Jr(t){var e=t.length;if(e<=Be)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Be));return r}function et(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function rt(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function tt(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=ct[t[o]];return i}function nt(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}c.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,c.prototype),i};function y(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e],o=1,s=0;++s<r&&(o*=256);)i+=this[e+s]*o;return i};c.prototype.readUintBE=c.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};c.prototype.readUint8=c.prototype.readUInt8=function(e,r){return e=e>>>0,r||y(e,1,this.length),this[e]};c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||y(e,2,this.length),this[e]|this[e+1]<<8};c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||y(e,2,this.length),this[e]<<8|this[e+1]};c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};c.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e],o=1,s=0;++s<r&&(o*=256);)i+=this[e+s]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};c.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=r,o=1,s=this[e+--i];i>0&&(o*=256);)s+=this[e+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*r)),s};c.prototype.readInt8=function(e,r){return e=e>>>0,r||y(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};c.prototype.readInt16LE=function(e,r){e=e>>>0,r||y(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};c.prototype.readInt16BE=function(e,r){e=e>>>0,r||y(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};c.prototype.readInt32LE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};c.prototype.readInt32BE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};c.prototype.readFloatLE=function(e,r){return e=e>>>0,r||y(e,4,this.length),$.read(this,e,!0,23,4)};c.prototype.readFloatBE=function(e,r){return e=e>>>0,r||y(e,4,this.length),$.read(this,e,!1,23,4)};c.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||y(e,8,this.length),$.read(this,e,!0,52,8)};c.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||y(e,8,this.length),$.read(this,e,!1,52,8)};function b(t,e,r,n,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;b(this,e,r,n,o,0)}var s=1,m=0;for(this[r]=e&255;++m<n&&(s*=256);)this[r+m]=e/s&255;return r+n};c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;b(this,e,r,n,o,0)}var s=n-1,m=1;for(this[r+s]=e&255;--s>=0&&(m*=256);)this[r+s]=e/m&255;return r+n};c.prototype.writeUint8=c.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,255,0),this[r]=e&255,r+1};c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};c.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);b(this,e,r,n,o-1,-o)}var s=0,m=1,g=0;for(this[r]=e&255;++s<n&&(m*=256);)e<0&&g===0&&this[r+s-1]!==0&&(g=1),this[r+s]=(e/m>>0)-g&255;return r+n};c.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);b(this,e,r,n,o-1,-o)}var s=n-1,m=1,g=0;for(this[r+s]=e&255;--s>=0&&(m*=256);)e<0&&g===0&&this[r+s+1]!==0&&(g=1),this[r+s]=(e/m>>0)-g&255;return r+n};c.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};c.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};c.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ve(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function He(t,e,r,n,i){return e=+e,r=r>>>0,i||Ve(t,e,r,4,34028234663852886e22,-34028234663852886e22),$.write(t,e,r,n,23,4),r+4}c.prototype.writeFloatLE=function(e,r,n){return He(this,e,r,!0,n)};c.prototype.writeFloatBE=function(e,r,n){return He(this,e,r,!1,n)};function We(t,e,r,n,i){return e=+e,r=r>>>0,i||Ve(t,e,r,8,17976931348623157e292,-17976931348623157e292),$.write(t,e,r,n,52,8),r+8}c.prototype.writeDoubleLE=function(e,r,n){return We(this,e,r,!0,n)};c.prototype.writeDoubleBE=function(e,r,n){return We(this,e,r,!1,n)};c.prototype.copy=function(e,r,n,i){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};c.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var s;if(typeof e=="number")for(s=r;s<n;++s)this[s]=e;else{var m=c.isBuffer(e)?e:c.from(e,i),g=m.length;if(g===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<n-r;++s)this[s+r]=m[s%g]}return this};var it=/[^+/0-9A-Za-z-_]/g;function ot(t){if(t=t.split("=")[0],t=t.trim().replace(it,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ue(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function at(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function st(t,e){for(var r,n,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function qe(t){return se.toByteArray(ot(t))}function Q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function I(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ge(t){return t!==t}var ct=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Ze=X((Ht,Ye)=>{a();var T=Ye.exports={},E,S;function de(){throw new Error("setTimeout has not been defined")}function fe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=de}catch(t){E=de}try{typeof clearTimeout=="function"?S=clearTimeout:S=fe}catch(t){S=fe}})();function je(t){if(E===setTimeout)return setTimeout(t,0);if((E===de||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function lt(t){if(S===clearTimeout)return clearTimeout(t);if((S===fe||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(t);try{return S(t)}catch(e){try{return S.call(null,t)}catch(r){return S.call(this,t)}}}var _=[],V=!1,P,J=-1;function ut(){!V||!P||(V=!1,P.length?_=P.concat(_):J=-1,_.length&&Ke())}function Ke(){if(!V){var t=je(ut);V=!0;for(var e=_.length;e;){for(P=_,_=[];++J<e;)P&&P[J].run();J=-1,e=_.length}P=null,V=!1,lt(t)}}T.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];_.push(new Xe(t,e)),_.length===1&&!V&&je(Ke)};function Xe(t,e){this.fun=t,this.array=e}Xe.prototype.run=function(){this.fun.apply(null,this.array)};T.title="browser";T.browser=!0;T.env={};T.argv=[];T.version="";T.versions={};function R(){}T.on=R;T.addListener=R;T.once=R;T.off=R;T.removeListener=R;T.removeAllListeners=R;T.emit=R;T.prependListener=R;T.prependOnceListener=R;T.listeners=function(t){return[]};T.binding=function(t){throw new Error("process.binding is not supported")};T.cwd=function(){return"/"};T.chdir=function(t){throw new Error("process.chdir is not supported")};T.umask=function(){return 0}});var l,u,Wt,a=_r(()=>{l=N(ze()),u=N(Ze()),Wt=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Pt={};Rr(Pt,{getInterpretedTransaction:()=>Ut});module.exports=Lr(Pt);a();a();var z=require("@multiversx/sdk-core");a();a();a();a();a();a();a();a();a();a();a();a();var Qe=require("@multiversx/sdk-core");function pt(t){try{let e=new Qe.Address(t);return Boolean(e.bech32())}catch(e){return!1}}function ee(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&pt(t)}a();function Je(t){try{let e=atob(t),r=btoa(e),n=l.Buffer.from(t,"base64").toString(),i=l.Buffer.from(n).toString("base64");if(t===r&&t===i||e===n)return!0}catch(e){return!1}return!1}var mt=["ESDTNFTTransfer","ESDTNFTBurn","ESDTNFTAddQuantity","ESDTNFTCreate","MultiESDTNFTTransfer","ESDTTransfer","ESDTBurn","ESDTLocalMint","ESDTLocalBurn","ESDTWipe","ESDTFreeze"];function er(t,e,r=""){if(!ee(t))return!1;if(new z.Address(t).isContractAddress())return!0;let o=ht({receiver:t,data:r});return o?new z.Address(o).isContractAddress()||ft(t,e,r):!1}var gt=t=>t.toLowerCase().match(/[0-9a-f]/g),dt=t=>t.length%2===0;function ft(t,e,r){let n=r==null?void 0:r.split("@");if(n==null)return!1;let[i,...o]=n,s=e!=null&&t!=null&&t===e,m=mt.includes(i),g=o.every(f=>gt(f)&&dt(f));return s&&m&&g}function ht({receiver:t,data:e}){try{if(!e)return t;let r=Je(e)?z.TransactionPayload.fromEncoded(e).toString():e,n=Tt(r),i=r.split("@");return n>-1?i[n]:t}catch(r){console.log(r);return}}function Tt(t){return t.includes("MultiESDTNFTTransfer")?1:t.includes("ESDTNFTTransfer")?4:-1}a();var Te=require("@multiversx/sdk-core"),ye=N(require("bignumber.js"));a();a();function rr(t){for(let e=0;e<t.length;e++)if(t.charCodeAt(e)>127)return!1;return!0}function tr(t){let e=t;try{let r=l.Buffer.from(t,"hex").toString();rr(r)&&r.length>1&&(e=r)}catch(r){}return e}var he={tokenId:"",amount:""},yt=t=>t.split("@").map((o,s)=>[2,3].includes(s)?o:tr(o));function nr(t){if(!t)return he;let e=t.startsWith("ESDTTransfer"),r=t.startsWith("ESDTNFTTransfer")&&t.includes("@");if(e){let[,n,i]=t.split("@");try{let o=l.Buffer.from(n,"hex").toString("ascii");if(!o)return he;let s=new ye.default("0x"+i.replace("0x","")).toString(10);return{tokenId:o,amount:s}}catch(o){console.error("Error getting token from transaction data",o)}}if(r)try{let[,n,i,o,s]=yt(t);if([n,i,o,s].every(m=>Boolean(m))&&ee(new Te.Address(s).bech32()))return{tokenId:`${n}-${i}`,amount:new ye.default(o,16).toString(10),collection:n,nonce:i,receiver:new Te.Address(s).bech32()}}catch(n){}return he}a();a();a();var F="accounts";var ir="blocks",or="code",ar="collections";var sr="contracts";var cr="identities";var lr="locked-accounts",ur="logs",pr="miniblocks";var xe="nfts",mr="nodes",be="providers",gr="roles",we="sc-results";var H="tokens";var M="transactions";var C={shard:t=>`/${ir}?shard=${t}`,receiverShard:t=>`/${M}?receivershard=${t}`,senderShard:t=>`/${M}?sendershard=${t}`,transactionDetails:t=>`/${M}/${t}`,transactionDetailsScResults:t=>`/${M}/${t}/${we}`,transactionDetailsLogs:t=>`/${M}/${t}/${ur}`,nodeDetails:t=>`/${mr}/${t}`,accountDetails:t=>`/${F}/${t}`,accountDetailsContractCode:t=>`/${F}/${t}/${or}`,accountDetailsTokens:t=>`/${F}/${t}/${H}`,accountDetailsNfts:t=>`/${F}/${t}/${xe}`,accountDetailsScResults:t=>`/${F}/${t}/${we}`,accountDetailsContracts:t=>`/${F}/${t}/${sr}`,identityDetails:t=>`/${cr}/${t}`,tokenDetails:t=>`/${H}/${t}`,tokenDetailsAccounts:t=>`/${H}/${t}/${F}`,tokenDetailsLockedAccounts:t=>`/${H}/${t}/${lr}`,tokenDetailsRoles:t=>`/${H}/${t}/${gr}`,collectionDetails:t=>`/${ar}/${t}`,nftDetails:t=>`/${xe}/${t}`,providerDetails:t=>`/${be}/${t}`,providerDetailsTransactions:t=>`/${be}/${t}/${M}`,miniblockDetails:t=>`/${pr}/${t}`};a();var ve=t=>{var e,r,n,i;if(t.action){let o=[(e=t.action.arguments)==null?void 0:e.token,(r=t.action.arguments)==null?void 0:r.token1,(n=t.action.arguments)==null?void 0:n.token2,(i=t.action.arguments)==null?void 0:i.transfers].filter(m=>m!=null);return[].concat(...o)}return[]};a();a();function re(t){var r,n;let e=t.receiver;return(n=(r=t.action)==null?void 0:r.arguments)!=null&&n.receiver&&(e=t.action.arguments.receiver),e}function dr(t){let e=re(t);return t.receiver===e?t.receiverAssets:void 0}a();var fr=t=>{var n,i,o,s,m,g;let e="Transaction";return((n=t.action)==null?void 0:n.name)&&((i=t.action)==null?void 0:i.category)&&(((o=t.action)==null?void 0:o.category)==="esdtNft"&&((s=t.action)==null?void 0:s.name)==="transfer"?e="Transaction":t.action&&(e=t.action.name),(g=(m=t.action)==null?void 0:m.arguments)!=null&&g.functionName&&(e=t.action.arguments.functionName)),e};a();var hr=!1;function bt(t){hr||(console.error(t),hr=!0)}function W({explorerAddress:t,to:e}){try{return new URL(e).href}catch(r){return e.startsWith("/")||(bt(`Link not prepended by / : ${e}`),e=`/${e}`),t?`${t}${e}`:e}}a();function Tr(t,e,r){let n=t===e.sender,i=t===r,o=n&&i,s=(e==null?void 0:e.type)==="SmartContractResult";switch(!0){case s:return"Internal";case o:return"Self";case i:return"In";case n:default:return"Out"}}a();a();a();var It=N(require("bignumber.js"));a();a();a();var ke={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:yr,egldLabel:qn}=ke["devnet"],{chainId:xr,egldLabel:zn}=ke["testnet"],{chainId:br,egldLabel:jn}=ke["mainnet"];var Kn={["devnet"]:yr,["testnet"]:xr,["mainnet"]:br},Xn={[yr]:"devnet",[xr]:"testnet",[br]:"mainnet"};a();a();a();a();var A=require("@multiversx/sdk-web-wallet-provider");a();a();var kt=require("@multiversx/sdk-core"),Ie=N(require("bignumber.js"));a();var wt=N(require("bignumber.js"));a();Ie.default.config({ROUNDING_MODE:Ie.default.ROUND_FLOOR});a();a();a();a();a();a();a();a();a();var Et=require("@multiversx/sdk-core");a();var j=require("@multiversx/sdk-core"),At=require("@multiversx/sdk-network-providers");a();a();var St=N(require("bignumber.js"));a();a();a();a();a();a();a();var Dt=["reDelegateRewards","claimRewards","unBond"],_t=["wrapEgld","unwrapEgld"],Rt=["unStake"],Lt=["unDelegate"];a();a();a();a();var Ot=N(require("bignumber.js"));a();a();a();a();a();a();var Bt=N(require("bignumber.js"));function Ut({transaction:t,address:e,explorerAddress:r}){var K;let n=(K=t.tokenIdentifier)!=null?K:nr(t.data).tokenId,i=re(t),o=dr(t),s=Tr(e,t,i),m=fr(t),g=ve(t),f=W({explorerAddress:r,to:C.accountDetails(t.sender)}),h=W({explorerAddress:r,to:C.accountDetails(i)}),d=W({explorerAddress:r,to:C.senderShard(t.senderShard)}),w=W({explorerAddress:r,to:C.receiverShard(t.receiverShard)}),x=t.originalTxHash?`${t.originalTxHash}#${t.txHash}`:t.txHash,L=W({explorerAddress:r,to:C.transactionDetails(x)});return ie(ne({},t),{tokenIdentifier:n,receiver:i,receiverAssets:o,transactionDetails:{direction:s,method:m,transactionTokens:g,isContract:er(t.sender)},links:{senderLink:f,receiverLink:h,senderShardLink:d,receiverShardLink:w,transactionLink:L}})}0&&(module.exports={getInterpretedTransaction});
1
+ "use strict";var kr=Object.create;var q=Object.defineProperty,Ir=Object.defineProperties,Er=Object.getOwnPropertyDescriptor,Sr=Object.getOwnPropertyDescriptors,Ar=Object.getOwnPropertyNames,Se=Object.getOwnPropertySymbols,Nr=Object.getPrototypeOf,Ne=Object.prototype.hasOwnProperty,Dr=Object.prototype.propertyIsEnumerable;var Ae=(t,e,r)=>e in t?q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ne=(t,e)=>{for(var r in e||(e={}))Ne.call(e,r)&&Ae(t,r,e[r]);if(Se)for(var r of Se(e))Dr.call(e,r)&&Ae(t,r,e[r]);return t},ie=(t,e)=>Ir(t,Sr(e));var _r=(t,e)=>()=>(t&&(e=t(t=0)),e);var X=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Rr=(t,e)=>{for(var r in e)q(t,r,{get:e[r],enumerable:!0})},De=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ar(e))!Ne.call(t,i)&&i!==r&&q(t,i,{get:()=>e[i],enumerable:!(n=Er(e,i))||n.enumerable});return t};var N=(t,e,r)=>(r=t!=null?kr(Nr(t)):{},De(e||!t||!t.__esModule?q(r,"default",{value:t,enumerable:!0}):r,t)),Lr=t=>De(q({},"__esModule",{value:!0}),t);var Le=X(Y=>{"use strict";a();Y.byteLength=Cr;Y.toByteArray=Br;Y.fromByteArray=Mr;var k=[],v=[],Fr=typeof Uint8Array!="undefined"?Uint8Array:Array,oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(B=0,_e=oe.length;B<_e;++B)k[B]=oe[B],v[oe.charCodeAt(B)]=B;var B,_e;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function Re(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Cr(t){var e=Re(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Or(t,e,r){return(e+r)*3/4-r}function Br(t){var e,r=Re(t),n=r[0],i=r[1],o=new Fr(Or(t,n,i)),s=0,m=i>0?n-4:n,g;for(g=0;g<m;g+=4)e=v[t.charCodeAt(g)]<<18|v[t.charCodeAt(g+1)]<<12|v[t.charCodeAt(g+2)]<<6|v[t.charCodeAt(g+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=v[t.charCodeAt(g)]<<2|v[t.charCodeAt(g+1)]>>4,o[s++]=e&255),i===1&&(e=v[t.charCodeAt(g)]<<10|v[t.charCodeAt(g+1)]<<4|v[t.charCodeAt(g+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function Ur(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function Pr(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(Ur(n));return i.join("")}function Mr(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,m=r-n;s<m;s+=o)i.push(Pr(t,s,s+o>m?m:s+o));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var Fe=X(ae=>{a();ae.read=function(t,e,r,n,i){var o,s,m=i*8-n-1,g=(1<<m)-1,f=g>>1,h=-7,d=r?i-1:0,w=r?-1:1,x=t[e+d];for(d+=w,o=x&(1<<-h)-1,x>>=-h,h+=m;h>0;o=o*256+t[e+d],d+=w,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=s*256+t[e+d],d+=w,h-=8);if(o===0)o=1-f;else{if(o===g)return s?NaN:(x?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-f}return(x?-1:1)*s*Math.pow(2,o-n)};ae.write=function(t,e,r,n,i,o){var s,m,g,f=o*8-i-1,h=(1<<f)-1,d=h>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:o-1,L=n?1:-1,K=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(m=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(g=Math.pow(2,-s))<1&&(s--,g*=2),s+d>=1?e+=w/g:e+=w*Math.pow(2,1-d),e*g>=2&&(s++,g/=2),s+d>=h?(m=0,s=h):s+d>=1?(m=(e*g-1)*Math.pow(2,i),s=s+d):(m=e*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;t[r+x]=m&255,x+=L,m/=256,i-=8);for(s=s<<i|m,f+=i;f>0;t[r+x]=s&255,x+=L,s/=256,f-=8);t[r+x-L]|=K*128}});var ze=X($=>{"use strict";a();var se=Le(),G=Fe(),Ce=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$.Buffer=c;$.SlowBuffer=qr;$.INSPECT_MAX_BYTES=50;var Z=2147483647;$.kMaxLength=Z;c.TYPED_ARRAY_SUPPORT=Gr();!c.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Gr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.buffer}});Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.byteOffset}});function D(t){if(t>Z)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return pe(t)}return Ue(t,e,r)}c.poolSize=8192;function Ue(t,e,r){if(typeof t=="string")return Vr(t,e);if(ArrayBuffer.isView(t))return Hr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return le(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return c.from(n,e,r);var i=Wr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return c.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}c.from=function(t,e,r){return Ue(t,e,r)};Object.setPrototypeOf(c.prototype,Uint8Array.prototype);Object.setPrototypeOf(c,Uint8Array);function Pe(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function $r(t,e,r){return Pe(t),t<=0?D(t):e!==void 0?typeof r=="string"?D(t).fill(e,r):D(t).fill(e):D(t)}c.alloc=function(t,e,r){return $r(t,e,r)};function pe(t){return Pe(t),D(t<0?0:me(t)|0)}c.allocUnsafe=function(t){return pe(t)};c.allocUnsafeSlow=function(t){return pe(t)};function Vr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Me(t,e)|0,n=D(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ce(t){for(var e=t.length<0?0:me(t.length)|0,r=D(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Hr(t){if(I(t,Uint8Array)){var e=new Uint8Array(t);return le(e.buffer,e.byteOffset,e.byteLength)}return ce(t)}function le(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,c.prototype),n}function Wr(t){if(c.isBuffer(t)){var e=me(t.length)|0,r=D(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ge(t.length)?D(0):ce(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ce(t.data)}function me(t){if(t>=Z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Z.toString(16)+" bytes");return t|0}function qr(t){return+t!=t&&(t=0),c.alloc(+t)}c.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==c.prototype};c.compare=function(e,r){if(I(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),I(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),!c.isBuffer(e)||!c.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,s=Math.min(n,i);o<s;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};c.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return c.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=c.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var s=e[n];if(I(s,Uint8Array))o+s.length>i.length?c.from(s).copy(i,o):Uint8Array.prototype.set.call(i,s,o);else if(c.isBuffer(s))s.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length}return i};function Me(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ue(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return qe(t).length;default:if(i)return n?-1:ue(t).length;e=(""+e).toLowerCase(),i=!0}}c.byteLength=Me;function zr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return tt(this,e,r);case"utf8":case"utf-8":return $e(this,e,r);case"ascii":return et(this,e,r);case"latin1":case"binary":return rt(this,e,r);case"base64":return Qr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nt(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}c.prototype._isBuffer=!0;function U(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)U(this,r,r+1);return this};c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)U(this,r,r+3),U(this,r+1,r+2);return this};c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)U(this,r,r+7),U(this,r+1,r+6),U(this,r+2,r+5),U(this,r+3,r+4);return this};c.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?$e(this,0,e):zr.apply(this,arguments)};c.prototype.toLocaleString=c.prototype.toString;c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:c.compare(this,e)===0};c.prototype.inspect=function(){var e="",r=$.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Ce&&(c.prototype[Ce]=c.prototype.inspect);c.prototype.compare=function(e,r,n,i,o){if(I(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var s=o-i,m=n-r,g=Math.min(s,m),f=this.slice(i,o),h=e.slice(r,n),d=0;d<g;++d)if(f[d]!==h[d]){s=f[d],m=h[d];break}return s<m?-1:m<s?1:0};function Ge(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ge(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=c.from(e,n)),c.isBuffer(e))return e.length===0?-1:Oe(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Oe(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Oe(t,e,r,n,i){var o=1,s=t.length,m=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,s/=2,m/=2,r/=2}function g(x,L){return o===1?x[L]:x.readUInt16BE(L*o)}var f;if(i){var h=-1;for(f=r;f<s;f++)if(g(t,f)===g(e,h===-1?0:f-h)){if(h===-1&&(h=f),f-h+1===m)return h*o}else h!==-1&&(f-=f-h),h=-1}else for(r+m>s&&(r=s-m),f=r;f>=0;f--){for(var d=!0,w=0;w<m;w++)if(g(t,f+w)!==g(e,w)){d=!1;break}if(d)return f}return-1}c.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};c.prototype.indexOf=function(e,r,n){return Ge(this,e,r,n,!0)};c.prototype.lastIndexOf=function(e,r,n){return Ge(this,e,r,n,!1)};function jr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var m=parseInt(e.substr(s*2,2),16);if(ge(m))return s;t[r+s]=m}return s}function Kr(t,e,r,n){return Q(ue(e,t.length-r),t,r,n)}function Xr(t,e,r,n){return Q(at(e),t,r,n)}function Yr(t,e,r,n){return Q(qe(e),t,r,n)}function Zr(t,e,r,n){return Q(st(e,t.length-r),t,r,n)}c.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return jr(this,e,r,n);case"utf8":case"utf-8":return Kr(this,e,r,n);case"ascii":case"latin1":case"binary":return Xr(this,e,r,n);case"base64":return Yr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zr(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Qr(t,e,r){return e===0&&r===t.length?se.fromByteArray(t):se.fromByteArray(t.slice(e,r))}function $e(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],s=null,m=o>239?4:o>223?3:o>191?2:1;if(i+m<=r){var g,f,h,d;switch(m){case 1:o<128&&(s=o);break;case 2:g=t[i+1],(g&192)===128&&(d=(o&31)<<6|g&63,d>127&&(s=d));break;case 3:g=t[i+1],f=t[i+2],(g&192)===128&&(f&192)===128&&(d=(o&15)<<12|(g&63)<<6|f&63,d>2047&&(d<55296||d>57343)&&(s=d));break;case 4:g=t[i+1],f=t[i+2],h=t[i+3],(g&192)===128&&(f&192)===128&&(h&192)===128&&(d=(o&15)<<18|(g&63)<<12|(f&63)<<6|h&63,d>65535&&d<1114112&&(s=d))}}s===null?(s=65533,m=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=m}return Jr(n)}var Be=4096;function Jr(t){var e=t.length;if(e<=Be)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Be));return r}function et(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function rt(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function tt(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=ct[t[o]];return i}function nt(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}c.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,c.prototype),i};function y(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e],o=1,s=0;++s<r&&(o*=256);)i+=this[e+s]*o;return i};c.prototype.readUintBE=c.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};c.prototype.readUint8=c.prototype.readUInt8=function(e,r){return e=e>>>0,r||y(e,1,this.length),this[e]};c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||y(e,2,this.length),this[e]|this[e+1]<<8};c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||y(e,2,this.length),this[e]<<8|this[e+1]};c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};c.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e],o=1,s=0;++s<r&&(o*=256);)i+=this[e+s]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};c.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=r,o=1,s=this[e+--i];i>0&&(o*=256);)s+=this[e+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*r)),s};c.prototype.readInt8=function(e,r){return e=e>>>0,r||y(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};c.prototype.readInt16LE=function(e,r){e=e>>>0,r||y(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};c.prototype.readInt16BE=function(e,r){e=e>>>0,r||y(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};c.prototype.readInt32LE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};c.prototype.readInt32BE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};c.prototype.readFloatLE=function(e,r){return e=e>>>0,r||y(e,4,this.length),G.read(this,e,!0,23,4)};c.prototype.readFloatBE=function(e,r){return e=e>>>0,r||y(e,4,this.length),G.read(this,e,!1,23,4)};c.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||y(e,8,this.length),G.read(this,e,!0,52,8)};c.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||y(e,8,this.length),G.read(this,e,!1,52,8)};function b(t,e,r,n,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;b(this,e,r,n,o,0)}var s=1,m=0;for(this[r]=e&255;++m<n&&(s*=256);)this[r+m]=e/s&255;return r+n};c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;b(this,e,r,n,o,0)}var s=n-1,m=1;for(this[r+s]=e&255;--s>=0&&(m*=256);)this[r+s]=e/m&255;return r+n};c.prototype.writeUint8=c.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,255,0),this[r]=e&255,r+1};c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};c.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);b(this,e,r,n,o-1,-o)}var s=0,m=1,g=0;for(this[r]=e&255;++s<n&&(m*=256);)e<0&&g===0&&this[r+s-1]!==0&&(g=1),this[r+s]=(e/m>>0)-g&255;return r+n};c.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);b(this,e,r,n,o-1,-o)}var s=n-1,m=1,g=0;for(this[r+s]=e&255;--s>=0&&(m*=256);)e<0&&g===0&&this[r+s+1]!==0&&(g=1),this[r+s]=(e/m>>0)-g&255;return r+n};c.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};c.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};c.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ve(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function He(t,e,r,n,i){return e=+e,r=r>>>0,i||Ve(t,e,r,4,34028234663852886e22,-34028234663852886e22),G.write(t,e,r,n,23,4),r+4}c.prototype.writeFloatLE=function(e,r,n){return He(this,e,r,!0,n)};c.prototype.writeFloatBE=function(e,r,n){return He(this,e,r,!1,n)};function We(t,e,r,n,i){return e=+e,r=r>>>0,i||Ve(t,e,r,8,17976931348623157e292,-17976931348623157e292),G.write(t,e,r,n,52,8),r+8}c.prototype.writeDoubleLE=function(e,r,n){return We(this,e,r,!0,n)};c.prototype.writeDoubleBE=function(e,r,n){return We(this,e,r,!1,n)};c.prototype.copy=function(e,r,n,i){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};c.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var s;if(typeof e=="number")for(s=r;s<n;++s)this[s]=e;else{var m=c.isBuffer(e)?e:c.from(e,i),g=m.length;if(g===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<n-r;++s)this[s+r]=m[s%g]}return this};var it=/[^+/0-9A-Za-z-_]/g;function ot(t){if(t=t.split("=")[0],t=t.trim().replace(it,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ue(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function at(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function st(t,e){for(var r,n,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function qe(t){return se.toByteArray(ot(t))}function Q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function I(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ge(t){return t!==t}var ct=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Ze=X((Ht,Ye)=>{a();var T=Ye.exports={},E,S;function de(){throw new Error("setTimeout has not been defined")}function fe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=de}catch(t){E=de}try{typeof clearTimeout=="function"?S=clearTimeout:S=fe}catch(t){S=fe}})();function je(t){if(E===setTimeout)return setTimeout(t,0);if((E===de||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function lt(t){if(S===clearTimeout)return clearTimeout(t);if((S===fe||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(t);try{return S(t)}catch(e){try{return S.call(null,t)}catch(r){return S.call(this,t)}}}var _=[],V=!1,P,J=-1;function ut(){!V||!P||(V=!1,P.length?_=P.concat(_):J=-1,_.length&&Ke())}function Ke(){if(!V){var t=je(ut);V=!0;for(var e=_.length;e;){for(P=_,_=[];++J<e;)P&&P[J].run();J=-1,e=_.length}P=null,V=!1,lt(t)}}T.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];_.push(new Xe(t,e)),_.length===1&&!V&&je(Ke)};function Xe(t,e){this.fun=t,this.array=e}Xe.prototype.run=function(){this.fun.apply(null,this.array)};T.title="browser";T.browser=!0;T.env={};T.argv=[];T.version="";T.versions={};function R(){}T.on=R;T.addListener=R;T.once=R;T.off=R;T.removeListener=R;T.removeAllListeners=R;T.emit=R;T.prependListener=R;T.prependOnceListener=R;T.listeners=function(t){return[]};T.binding=function(t){throw new Error("process.binding is not supported")};T.cwd=function(){return"/"};T.chdir=function(t){throw new Error("process.chdir is not supported")};T.umask=function(){return 0}});var l,u,Wt,a=_r(()=>{l=N(ze()),u=N(Ze()),Wt=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Pt={};Rr(Pt,{getInterpretedTransaction:()=>Ut});module.exports=Lr(Pt);a();a();var z=require("@multiversx/sdk-core");a();a();a();a();a();a();a();a();a();a();a();a();var Qe=require("@multiversx/sdk-core");function pt(t){try{let e=new Qe.Address(t);return Boolean(e.bech32())}catch(e){return!1}}function ee(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&pt(t)}a();function Je(t){try{let e=atob(t),r=btoa(e),n=l.Buffer.from(t,"base64").toString(),i=l.Buffer.from(n).toString("base64");if(t===r&&t===i||e===n)return!0}catch(e){return!1}return!1}var mt=["ESDTNFTTransfer","ESDTNFTBurn","ESDTNFTAddQuantity","ESDTNFTCreate","MultiESDTNFTTransfer","ESDTTransfer","ESDTBurn","ESDTLocalMint","ESDTLocalBurn","ESDTWipe","ESDTFreeze"];function er(t,e,r=""){if(!ee(t))return!1;if(new z.Address(t).isContractAddress())return!0;let o=ht({receiver:t,data:r});return o?new z.Address(o).isContractAddress()||ft(t,e,r):!1}var gt=t=>t.toLowerCase().match(/[0-9a-f]/g),dt=t=>t.length%2===0;function ft(t,e,r){let n=r==null?void 0:r.split("@");if(n==null)return!1;let[i,...o]=n,s=e!=null&&t!=null&&t===e,m=mt.includes(i),g=o.every(f=>gt(f)&&dt(f));return s&&m&&g}function ht({receiver:t,data:e}){try{if(!e)return t;let r=Je(e)?z.TransactionPayload.fromEncoded(e).toString():e,n=Tt(r),i=r.split("@");return n>-1?i[n]:t}catch(r){console.log(r);return}}function Tt(t){return t.includes("MultiESDTNFTTransfer")?1:t.includes("ESDTNFTTransfer")?4:-1}a();var Te=require("@multiversx/sdk-core"),ye=N(require("bignumber.js"));a();a();function rr(t){for(let e=0;e<t.length;e++)if(t.charCodeAt(e)>127)return!1;return!0}function tr(t){let e=t;try{let r=l.Buffer.from(t,"hex").toString();rr(r)&&r.length>1&&(e=r)}catch(r){}return e}var he={tokenId:"",amount:""},yt=t=>t.split("@").map((o,s)=>[2,3].includes(s)?o:tr(o));function nr(t){if(!t)return he;let e=t.startsWith("ESDTTransfer"),r=t.startsWith("ESDTNFTTransfer")&&t.includes("@");if(e){let[,n,i]=t.split("@");try{let o=l.Buffer.from(n,"hex").toString("ascii");if(!o)return he;let s=new ye.default("0x"+i.replace("0x","")).toString(10);return{tokenId:o,amount:s}}catch(o){console.error("Error getting token from transaction data",o)}}if(r)try{let[,n,i,o,s]=yt(t);if([n,i,o,s].every(m=>Boolean(m))&&ee(new Te.Address(s).bech32()))return{tokenId:`${n}-${i}`,amount:new ye.default(o,16).toString(10),collection:n,nonce:i,receiver:new Te.Address(s).bech32()}}catch(n){}return he}a();a();a();var F="accounts";var ir="blocks",or="code",ar="collections";var sr="contracts";var cr="identities";var lr="locked-accounts",ur="logs",pr="miniblocks";var xe="nfts",mr="nodes",be="providers",gr="roles",we="sc-results";var H="tokens";var M="transactions";var C={shard:t=>`/${ir}?shard=${t}`,receiverShard:t=>`/${M}?receivershard=${t}`,senderShard:t=>`/${M}?sendershard=${t}`,transactionDetails:t=>`/${M}/${t}`,transactionDetailsScResults:t=>`/${M}/${t}/${we}`,transactionDetailsLogs:t=>`/${M}/${t}/${ur}`,nodeDetails:t=>`/${mr}/${t}`,accountDetails:t=>`/${F}/${t}`,accountDetailsContractCode:t=>`/${F}/${t}/${or}`,accountDetailsTokens:t=>`/${F}/${t}/${H}`,accountDetailsNfts:t=>`/${F}/${t}/${xe}`,accountDetailsScResults:t=>`/${F}/${t}/${we}`,accountDetailsContracts:t=>`/${F}/${t}/${sr}`,identityDetails:t=>`/${cr}/${t}`,tokenDetails:t=>`/${H}/${t}`,tokenDetailsAccounts:t=>`/${H}/${t}/${F}`,tokenDetailsLockedAccounts:t=>`/${H}/${t}/${lr}`,tokenDetailsRoles:t=>`/${H}/${t}/${gr}`,collectionDetails:t=>`/${ar}/${t}`,nftDetails:t=>`/${xe}/${t}`,providerDetails:t=>`/${be}/${t}`,providerDetailsTransactions:t=>`/${be}/${t}/${M}`,miniblockDetails:t=>`/${pr}/${t}`};a();var ve=t=>{var e,r,n,i;if(t.action){let o=[(e=t.action.arguments)==null?void 0:e.token,(r=t.action.arguments)==null?void 0:r.token1,(n=t.action.arguments)==null?void 0:n.token2,(i=t.action.arguments)==null?void 0:i.transfers].filter(m=>m!=null);return[].concat(...o)}return[]};a();a();function re(t){var r,n;let e=t.receiver;return(n=(r=t.action)==null?void 0:r.arguments)!=null&&n.receiver&&(e=t.action.arguments.receiver),e}function dr(t){let e=re(t);return t.receiver===e?t.receiverAssets:void 0}a();var fr=t=>{var n,i,o,s,m,g;let e="Transaction";return((n=t.action)==null?void 0:n.name)&&((i=t.action)==null?void 0:i.category)&&(((o=t.action)==null?void 0:o.category)==="esdtNft"&&((s=t.action)==null?void 0:s.name)==="transfer"?e="Transaction":t.action&&(e=t.action.name),(g=(m=t.action)==null?void 0:m.arguments)!=null&&g.functionName&&(e=t.action.arguments.functionName)),e};a();var hr=!1;function bt(t){hr||(console.error(t),hr=!0)}function W({explorerAddress:t,to:e}){try{return new URL(e).href}catch(r){return e.startsWith("/")||(bt(`Link not prepended by / : ${e}`),e=`/${e}`),t?`${t}${e}`:e}}a();function Tr(t,e,r){let n=t===e.sender,i=t===r,o=n&&i,s=(e==null?void 0:e.type)==="SmartContractResult";switch(!0){case s:return"Internal";case o:return"Self";case i:return"In";case n:default:return"Out"}}a();a();a();var It=N(require("bignumber.js"));a();a();a();var ke={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:yr,egldLabel:qn}=ke["devnet"],{chainId:xr,egldLabel:zn}=ke["testnet"],{chainId:br,egldLabel:jn}=ke["mainnet"];var Kn={["devnet"]:yr,["testnet"]:xr,["mainnet"]:br},Xn={[yr]:"devnet",[xr]:"testnet",[br]:"mainnet"};a();a();a();a();var A=require("@multiversx/sdk-web-wallet-provider");a();a();var kt=require("@multiversx/sdk-core"),Ie=N(require("bignumber.js"));a();var wt=N(require("bignumber.js"));a();Ie.default.config({ROUNDING_MODE:Ie.default.ROUND_FLOOR});a();a();a();a();a();a();a();a();a();var Et=require("@multiversx/sdk-core");a();var j=require("@multiversx/sdk-core"),At=require("@multiversx/sdk-network-providers");a();a();var St=N(require("bignumber.js"));a();a();a();a();a();a();a();var Dt=["reDelegateRewards","claimRewards","unBond"],_t=["wrapEgld","unwrapEgld"],Rt=["unStake"],Lt=["unDelegate"];a();a();a();a();var Ot=N(require("bignumber.js"));a();a();a();a();a();a();var Bt=N(require("bignumber.js"));function Ut({transaction:t,address:e,explorerAddress:r}){var K;let n=(K=t.tokenIdentifier)!=null?K:nr(t.data).tokenId,i=re(t),o=dr(t),s=Tr(e,t,i),m=fr(t),g=ve(t),f=W({explorerAddress:r,to:C.accountDetails(t.sender)}),h=W({explorerAddress:r,to:C.accountDetails(i)}),d=W({explorerAddress:r,to:C.senderShard(t.senderShard)}),w=W({explorerAddress:r,to:C.receiverShard(t.receiverShard)}),x=t.originalTxHash?`${t.originalTxHash}#${t.txHash}`:t.txHash,L=W({explorerAddress:r,to:C.transactionDetails(x)});return ie(ne({},t),{tokenIdentifier:n,receiver:i,receiverAssets:o,transactionDetails:{direction:s,method:m,transactionTokens:g,isContract:er(t.sender)},links:{senderLink:f,receiverLink:h,senderShardLink:d,receiverShardLink:w,transactionLink:L}})}0&&(module.exports={getInterpretedTransaction});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";var Ar=Object.create;var q=Object.defineProperty,Nr=Object.defineProperties,Dr=Object.getOwnPropertyDescriptor,_r=Object.getOwnPropertyDescriptors,Rr=Object.getOwnPropertyNames,Se=Object.getOwnPropertySymbols,Lr=Object.getPrototypeOf,Ne=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable;var Ae=(t,e,r)=>e in t?q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ne=(t,e)=>{for(var r in e||(e={}))Ne.call(e,r)&&Ae(t,r,e[r]);if(Se)for(var r of Se(e))Fr.call(e,r)&&Ae(t,r,e[r]);return t},ie=(t,e)=>Nr(t,_r(e));var Cr=(t,e)=>()=>(t&&(e=t(t=0)),e);var X=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Or=(t,e)=>{for(var r in e)q(t,r,{get:e[r],enumerable:!0})},De=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Rr(e))!Ne.call(t,i)&&i!==r&&q(t,i,{get:()=>e[i],enumerable:!(n=Dr(e,i))||n.enumerable});return t};var N=(t,e,r)=>(r=t!=null?Ar(Lr(t)):{},De(e||!t||!t.__esModule?q(r,"default",{value:t,enumerable:!0}):r,t)),Br=t=>De(q({},"__esModule",{value:!0}),t);var Le=X(Y=>{"use strict";a();Y.byteLength=Pr;Y.toByteArray=$r;Y.fromByteArray=Hr;var k=[],v=[],Ur=typeof Uint8Array!="undefined"?Uint8Array:Array,oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(B=0,_e=oe.length;B<_e;++B)k[B]=oe[B],v[oe.charCodeAt(B)]=B;var B,_e;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function Re(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Pr(t){var e=Re(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Mr(t,e,r){return(e+r)*3/4-r}function $r(t){var e,r=Re(t),n=r[0],i=r[1],o=new Ur(Mr(t,n,i)),s=0,m=i>0?n-4:n,g;for(g=0;g<m;g+=4)e=v[t.charCodeAt(g)]<<18|v[t.charCodeAt(g+1)]<<12|v[t.charCodeAt(g+2)]<<6|v[t.charCodeAt(g+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=v[t.charCodeAt(g)]<<2|v[t.charCodeAt(g+1)]>>4,o[s++]=e&255),i===1&&(e=v[t.charCodeAt(g)]<<10|v[t.charCodeAt(g+1)]<<4|v[t.charCodeAt(g+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function Gr(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function Vr(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(Gr(n));return i.join("")}function Hr(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,m=r-n;s<m;s+=o)i.push(Vr(t,s,s+o>m?m:s+o));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var Fe=X(ae=>{a();ae.read=function(t,e,r,n,i){var o,s,m=i*8-n-1,g=(1<<m)-1,f=g>>1,h=-7,d=r?i-1:0,w=r?-1:1,x=t[e+d];for(d+=w,o=x&(1<<-h)-1,x>>=-h,h+=m;h>0;o=o*256+t[e+d],d+=w,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=s*256+t[e+d],d+=w,h-=8);if(o===0)o=1-f;else{if(o===g)return s?NaN:(x?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-f}return(x?-1:1)*s*Math.pow(2,o-n)};ae.write=function(t,e,r,n,i,o){var s,m,g,f=o*8-i-1,h=(1<<f)-1,d=h>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:o-1,L=n?1:-1,K=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(m=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(g=Math.pow(2,-s))<1&&(s--,g*=2),s+d>=1?e+=w/g:e+=w*Math.pow(2,1-d),e*g>=2&&(s++,g/=2),s+d>=h?(m=0,s=h):s+d>=1?(m=(e*g-1)*Math.pow(2,i),s=s+d):(m=e*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;t[r+x]=m&255,x+=L,m/=256,i-=8);for(s=s<<i|m,f+=i;f>0;t[r+x]=s&255,x+=L,s/=256,f-=8);t[r+x-L]|=K*128}});var ze=X(G=>{"use strict";a();var se=Le(),$=Fe(),Ce=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;G.Buffer=c;G.SlowBuffer=Xr;G.INSPECT_MAX_BYTES=50;var Z=2147483647;G.kMaxLength=Z;c.TYPED_ARRAY_SUPPORT=Wr();!c.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Wr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.buffer}});Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.byteOffset}});function D(t){if(t>Z)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return pe(t)}return Ue(t,e,r)}c.poolSize=8192;function Ue(t,e,r){if(typeof t=="string")return zr(t,e);if(ArrayBuffer.isView(t))return jr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return le(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return c.from(n,e,r);var i=Kr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return c.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}c.from=function(t,e,r){return Ue(t,e,r)};Object.setPrototypeOf(c.prototype,Uint8Array.prototype);Object.setPrototypeOf(c,Uint8Array);function Pe(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function qr(t,e,r){return Pe(t),t<=0?D(t):e!==void 0?typeof r=="string"?D(t).fill(e,r):D(t).fill(e):D(t)}c.alloc=function(t,e,r){return qr(t,e,r)};function pe(t){return Pe(t),D(t<0?0:me(t)|0)}c.allocUnsafe=function(t){return pe(t)};c.allocUnsafeSlow=function(t){return pe(t)};function zr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Me(t,e)|0,n=D(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ce(t){for(var e=t.length<0?0:me(t.length)|0,r=D(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function jr(t){if(I(t,Uint8Array)){var e=new Uint8Array(t);return le(e.buffer,e.byteOffset,e.byteLength)}return ce(t)}function le(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,c.prototype),n}function Kr(t){if(c.isBuffer(t)){var e=me(t.length)|0,r=D(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ge(t.length)?D(0):ce(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ce(t.data)}function me(t){if(t>=Z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Z.toString(16)+" bytes");return t|0}function Xr(t){return+t!=t&&(t=0),c.alloc(+t)}c.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==c.prototype};c.compare=function(e,r){if(I(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),I(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),!c.isBuffer(e)||!c.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,s=Math.min(n,i);o<s;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};c.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return c.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=c.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var s=e[n];if(I(s,Uint8Array))o+s.length>i.length?c.from(s).copy(i,o):Uint8Array.prototype.set.call(i,s,o);else if(c.isBuffer(s))s.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length}return i};function Me(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ue(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return qe(t).length;default:if(i)return n?-1:ue(t).length;e=(""+e).toLowerCase(),i=!0}}c.byteLength=Me;function Yr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return at(this,e,r);case"utf8":case"utf-8":return Ge(this,e,r);case"ascii":return it(this,e,r);case"latin1":case"binary":return ot(this,e,r);case"base64":return tt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return st(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}c.prototype._isBuffer=!0;function U(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)U(this,r,r+1);return this};c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)U(this,r,r+3),U(this,r+1,r+2);return this};c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)U(this,r,r+7),U(this,r+1,r+6),U(this,r+2,r+5),U(this,r+3,r+4);return this};c.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Ge(this,0,e):Yr.apply(this,arguments)};c.prototype.toLocaleString=c.prototype.toString;c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:c.compare(this,e)===0};c.prototype.inspect=function(){var e="",r=G.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Ce&&(c.prototype[Ce]=c.prototype.inspect);c.prototype.compare=function(e,r,n,i,o){if(I(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var s=o-i,m=n-r,g=Math.min(s,m),f=this.slice(i,o),h=e.slice(r,n),d=0;d<g;++d)if(f[d]!==h[d]){s=f[d],m=h[d];break}return s<m?-1:m<s?1:0};function $e(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ge(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=c.from(e,n)),c.isBuffer(e))return e.length===0?-1:Oe(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Oe(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Oe(t,e,r,n,i){var o=1,s=t.length,m=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,s/=2,m/=2,r/=2}function g(x,L){return o===1?x[L]:x.readUInt16BE(L*o)}var f;if(i){var h=-1;for(f=r;f<s;f++)if(g(t,f)===g(e,h===-1?0:f-h)){if(h===-1&&(h=f),f-h+1===m)return h*o}else h!==-1&&(f-=f-h),h=-1}else for(r+m>s&&(r=s-m),f=r;f>=0;f--){for(var d=!0,w=0;w<m;w++)if(g(t,f+w)!==g(e,w)){d=!1;break}if(d)return f}return-1}c.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};c.prototype.indexOf=function(e,r,n){return $e(this,e,r,n,!0)};c.prototype.lastIndexOf=function(e,r,n){return $e(this,e,r,n,!1)};function Zr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var m=parseInt(e.substr(s*2,2),16);if(ge(m))return s;t[r+s]=m}return s}function Qr(t,e,r,n){return Q(ue(e,t.length-r),t,r,n)}function Jr(t,e,r,n){return Q(ut(e),t,r,n)}function et(t,e,r,n){return Q(qe(e),t,r,n)}function rt(t,e,r,n){return Q(pt(e,t.length-r),t,r,n)}c.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return Zr(this,e,r,n);case"utf8":case"utf-8":return Qr(this,e,r,n);case"ascii":case"latin1":case"binary":return Jr(this,e,r,n);case"base64":return et(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rt(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function tt(t,e,r){return e===0&&r===t.length?se.fromByteArray(t):se.fromByteArray(t.slice(e,r))}function Ge(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],s=null,m=o>239?4:o>223?3:o>191?2:1;if(i+m<=r){var g,f,h,d;switch(m){case 1:o<128&&(s=o);break;case 2:g=t[i+1],(g&192)===128&&(d=(o&31)<<6|g&63,d>127&&(s=d));break;case 3:g=t[i+1],f=t[i+2],(g&192)===128&&(f&192)===128&&(d=(o&15)<<12|(g&63)<<6|f&63,d>2047&&(d<55296||d>57343)&&(s=d));break;case 4:g=t[i+1],f=t[i+2],h=t[i+3],(g&192)===128&&(f&192)===128&&(h&192)===128&&(d=(o&15)<<18|(g&63)<<12|(f&63)<<6|h&63,d>65535&&d<1114112&&(s=d))}}s===null?(s=65533,m=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=m}return nt(n)}var Be=4096;function nt(t){var e=t.length;if(e<=Be)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Be));return r}function it(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function ot(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function at(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=mt[t[o]];return i}function st(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}c.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,c.prototype),i};function y(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e],o=1,s=0;++s<r&&(o*=256);)i+=this[e+s]*o;return i};c.prototype.readUintBE=c.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};c.prototype.readUint8=c.prototype.readUInt8=function(e,r){return e=e>>>0,r||y(e,1,this.length),this[e]};c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||y(e,2,this.length),this[e]|this[e+1]<<8};c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||y(e,2,this.length),this[e]<<8|this[e+1]};c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};c.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e],o=1,s=0;++s<r&&(o*=256);)i+=this[e+s]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};c.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=r,o=1,s=this[e+--i];i>0&&(o*=256);)s+=this[e+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*r)),s};c.prototype.readInt8=function(e,r){return e=e>>>0,r||y(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};c.prototype.readInt16LE=function(e,r){e=e>>>0,r||y(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};c.prototype.readInt16BE=function(e,r){e=e>>>0,r||y(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};c.prototype.readInt32LE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};c.prototype.readInt32BE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};c.prototype.readFloatLE=function(e,r){return e=e>>>0,r||y(e,4,this.length),$.read(this,e,!0,23,4)};c.prototype.readFloatBE=function(e,r){return e=e>>>0,r||y(e,4,this.length),$.read(this,e,!1,23,4)};c.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||y(e,8,this.length),$.read(this,e,!0,52,8)};c.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||y(e,8,this.length),$.read(this,e,!1,52,8)};function b(t,e,r,n,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;b(this,e,r,n,o,0)}var s=1,m=0;for(this[r]=e&255;++m<n&&(s*=256);)this[r+m]=e/s&255;return r+n};c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;b(this,e,r,n,o,0)}var s=n-1,m=1;for(this[r+s]=e&255;--s>=0&&(m*=256);)this[r+s]=e/m&255;return r+n};c.prototype.writeUint8=c.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,255,0),this[r]=e&255,r+1};c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};c.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);b(this,e,r,n,o-1,-o)}var s=0,m=1,g=0;for(this[r]=e&255;++s<n&&(m*=256);)e<0&&g===0&&this[r+s-1]!==0&&(g=1),this[r+s]=(e/m>>0)-g&255;return r+n};c.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);b(this,e,r,n,o-1,-o)}var s=n-1,m=1,g=0;for(this[r+s]=e&255;--s>=0&&(m*=256);)e<0&&g===0&&this[r+s+1]!==0&&(g=1),this[r+s]=(e/m>>0)-g&255;return r+n};c.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};c.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};c.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ve(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function He(t,e,r,n,i){return e=+e,r=r>>>0,i||Ve(t,e,r,4,34028234663852886e22,-34028234663852886e22),$.write(t,e,r,n,23,4),r+4}c.prototype.writeFloatLE=function(e,r,n){return He(this,e,r,!0,n)};c.prototype.writeFloatBE=function(e,r,n){return He(this,e,r,!1,n)};function We(t,e,r,n,i){return e=+e,r=r>>>0,i||Ve(t,e,r,8,17976931348623157e292,-17976931348623157e292),$.write(t,e,r,n,52,8),r+8}c.prototype.writeDoubleLE=function(e,r,n){return We(this,e,r,!0,n)};c.prototype.writeDoubleBE=function(e,r,n){return We(this,e,r,!1,n)};c.prototype.copy=function(e,r,n,i){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};c.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var s;if(typeof e=="number")for(s=r;s<n;++s)this[s]=e;else{var m=c.isBuffer(e)?e:c.from(e,i),g=m.length;if(g===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<n-r;++s)this[s+r]=m[s%g]}return this};var ct=/[^+/0-9A-Za-z-_]/g;function lt(t){if(t=t.split("=")[0],t=t.trim().replace(ct,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ue(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function ut(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function pt(t,e){for(var r,n,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function qe(t){return se.toByteArray(lt(t))}function Q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function I(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ge(t){return t!==t}var mt=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Ze=X((Ht,Ye)=>{a();var T=Ye.exports={},E,S;function de(){throw new Error("setTimeout has not been defined")}function fe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=de}catch(t){E=de}try{typeof clearTimeout=="function"?S=clearTimeout:S=fe}catch(t){S=fe}})();function je(t){if(E===setTimeout)return setTimeout(t,0);if((E===de||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function gt(t){if(S===clearTimeout)return clearTimeout(t);if((S===fe||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(t);try{return S(t)}catch(e){try{return S.call(null,t)}catch(r){return S.call(this,t)}}}var _=[],V=!1,P,J=-1;function dt(){!V||!P||(V=!1,P.length?_=P.concat(_):J=-1,_.length&&Ke())}function Ke(){if(!V){var t=je(dt);V=!0;for(var e=_.length;e;){for(P=_,_=[];++J<e;)P&&P[J].run();J=-1,e=_.length}P=null,V=!1,gt(t)}}T.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];_.push(new Xe(t,e)),_.length===1&&!V&&je(Ke)};function Xe(t,e){this.fun=t,this.array=e}Xe.prototype.run=function(){this.fun.apply(null,this.array)};T.title="browser";T.browser=!0;T.env={};T.argv=[];T.version="";T.versions={};function R(){}T.on=R;T.addListener=R;T.once=R;T.off=R;T.removeListener=R;T.removeAllListeners=R;T.emit=R;T.prependListener=R;T.prependOnceListener=R;T.listeners=function(t){return[]};T.binding=function(t){throw new Error("process.binding is not supported")};T.cwd=function(){return"/"};T.chdir=function(t){throw new Error("process.chdir is not supported")};T.umask=function(){return 0}});var l,u,Wt,a=Cr(()=>{l=N(ze()),u=N(Ze()),Wt=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Pt={};Or(Pt,{ACTIONS_WITH_EGLD_VALUE:()=>Ir,ACTIONS_WITH_MANDATORY_OPERATIONS:()=>kr,ACTIONS_WITH_VALUE_IN_ACTION_FIELD:()=>Sr,ACTIONS_WITH_VALUE_IN_DATA_FIELD:()=>Er,getInterpretedTransaction:()=>Ut});module.exports=Br(Pt);a();a();a();var z=require("@multiversx/sdk-core");a();a();a();a();a();a();a();a();a();a();a();a();var Qe=require("@multiversx/sdk-core");function ft(t){try{let e=new Qe.Address(t);return Boolean(e.bech32())}catch(e){return!1}}function ee(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&ft(t)}a();function Je(t){try{let e=atob(t),r=btoa(e),n=l.Buffer.from(t,"base64").toString(),i=l.Buffer.from(n).toString("base64");if(t===r&&t===i||e===n)return!0}catch(e){return!1}return!1}var ht=["ESDTNFTTransfer","ESDTNFTBurn","ESDTNFTAddQuantity","ESDTNFTCreate","MultiESDTNFTTransfer","ESDTTransfer","ESDTBurn","ESDTLocalMint","ESDTLocalBurn","ESDTWipe","ESDTFreeze"];function er(t,e,r=""){if(!ee(t))return!1;if(new z.Address(t).isContractAddress())return!0;let o=bt({receiver:t,data:r});return o?new z.Address(o).isContractAddress()||xt(t,e,r):!1}var Tt=t=>t.toLowerCase().match(/[0-9a-f]/g),yt=t=>t.length%2===0;function xt(t,e,r){let n=r==null?void 0:r.split("@");if(n==null)return!1;let[i,...o]=n,s=e!=null&&t!=null&&t===e,m=ht.includes(i),g=o.every(f=>Tt(f)&&yt(f));return s&&m&&g}function bt({receiver:t,data:e}){try{if(!e)return t;let r=Je(e)?z.TransactionPayload.fromEncoded(e).toString():e,n=wt(r),i=r.split("@");return n>-1?i[n]:t}catch(r){console.log(r);return}}function wt(t){return t.includes("MultiESDTNFTTransfer")?1:t.includes("ESDTNFTTransfer")?4:-1}a();var Te=require("@multiversx/sdk-core"),ye=N(require("bignumber.js"));a();a();function rr(t){for(let e=0;e<t.length;e++)if(t.charCodeAt(e)>127)return!1;return!0}function tr(t){let e=t;try{let r=l.Buffer.from(t,"hex").toString();rr(r)&&r.length>1&&(e=r)}catch(r){}return e}var he={tokenId:"",amount:""},vt=t=>t.split("@").map((o,s)=>[2,3].includes(s)?o:tr(o));function nr(t){if(!t)return he;let e=t.startsWith("ESDTTransfer"),r=t.startsWith("ESDTNFTTransfer")&&t.includes("@");if(e){let[,n,i]=t.split("@");try{let o=l.Buffer.from(n,"hex").toString("ascii");if(!o)return he;let s=new ye.default("0x"+i.replace("0x","")).toString(10);return{tokenId:o,amount:s}}catch(o){console.error("Error getting token from transaction data",o)}}if(r)try{let[,n,i,o,s]=vt(t);if([n,i,o,s].every(m=>Boolean(m))&&ee(new Te.Address(s).bech32()))return{tokenId:`${n}-${i}`,amount:new ye.default(o,16).toString(10),collection:n,nonce:i,receiver:new Te.Address(s).bech32()}}catch(n){}return he}a();a();a();var F="accounts";var ir="blocks",or="code",ar="collections";var sr="contracts";var cr="identities";var lr="locked-accounts",ur="logs",pr="miniblocks";var xe="nfts",mr="nodes",be="providers",gr="roles",we="sc-results";var H="tokens";var M="transactions";var C={shard:t=>`/${ir}?shard=${t}`,receiverShard:t=>`/${M}?receivershard=${t}`,senderShard:t=>`/${M}?sendershard=${t}`,transactionDetails:t=>`/${M}/${t}`,transactionDetailsScResults:t=>`/${M}/${t}/${we}`,transactionDetailsLogs:t=>`/${M}/${t}/${ur}`,nodeDetails:t=>`/${mr}/${t}`,accountDetails:t=>`/${F}/${t}`,accountDetailsContractCode:t=>`/${F}/${t}/${or}`,accountDetailsTokens:t=>`/${F}/${t}/${H}`,accountDetailsNfts:t=>`/${F}/${t}/${xe}`,accountDetailsScResults:t=>`/${F}/${t}/${we}`,accountDetailsContracts:t=>`/${F}/${t}/${sr}`,identityDetails:t=>`/${cr}/${t}`,tokenDetails:t=>`/${H}/${t}`,tokenDetailsAccounts:t=>`/${H}/${t}/${F}`,tokenDetailsLockedAccounts:t=>`/${H}/${t}/${lr}`,tokenDetailsRoles:t=>`/${H}/${t}/${gr}`,collectionDetails:t=>`/${ar}/${t}`,nftDetails:t=>`/${xe}/${t}`,providerDetails:t=>`/${be}/${t}`,providerDetailsTransactions:t=>`/${be}/${t}/${M}`,miniblockDetails:t=>`/${pr}/${t}`};a();var ve=t=>{var e,r,n,i;if(t.action){let o=[(e=t.action.arguments)==null?void 0:e.token,(r=t.action.arguments)==null?void 0:r.token1,(n=t.action.arguments)==null?void 0:n.token2,(i=t.action.arguments)==null?void 0:i.transfers].filter(m=>m!=null);return[].concat(...o)}return[]};a();a();function re(t){var r,n;let e=t.receiver;return(n=(r=t.action)==null?void 0:r.arguments)!=null&&n.receiver&&(e=t.action.arguments.receiver),e}function dr(t){let e=re(t);return t.receiver===e?t.receiverAssets:void 0}a();var fr=t=>{var n,i,o,s,m,g;let e="Transaction";return((n=t.action)==null?void 0:n.name)&&((i=t.action)==null?void 0:i.category)&&(((o=t.action)==null?void 0:o.category)==="esdtNft"&&((s=t.action)==null?void 0:s.name)==="transfer"?e="Transaction":t.action&&(e=t.action.name),(g=(m=t.action)==null?void 0:m.arguments)!=null&&g.functionName&&(e=t.action.arguments.functionName)),e};a();var hr=!1;function It(t){hr||(console.error(t),hr=!0)}function W({explorerAddress:t,to:e}){try{return new URL(e).href}catch(r){return e.startsWith("/")||(It(`Link not prepended by / : ${e}`),e=`/${e}`),t?`${t}${e}`:e}}a();function Tr(t,e,r){let n=t===e.sender,i=t===r,o=n&&i,s=(e==null?void 0:e.type)==="SmartContractResult";switch(!0){case s:return"Internal";case o:return"Self";case i:return"In";case n:default:return"Out"}}a();a();a();var Nt=N(require("bignumber.js"));a();a();a();var ke={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:yr,egldLabel:qn}=ke["devnet"],{chainId:xr,egldLabel:zn}=ke["testnet"],{chainId:br,egldLabel:jn}=ke["mainnet"];var Kn={["devnet"]:yr,["testnet"]:xr,["mainnet"]:br},Xn={[yr]:"devnet",[xr]:"testnet",[br]:"mainnet"};a();a();a();a();var A=require("@multiversx/sdk-web-wallet-provider");a();a();var At=require("@multiversx/sdk-core"),Ie=N(require("bignumber.js"));a();var Et=N(require("bignumber.js"));a();Ie.default.config({ROUNDING_MODE:Ie.default.ROUND_FLOOR});a();a();a();a();a();a();a();a();a();var Dt=require("@multiversx/sdk-core");a();var j=require("@multiversx/sdk-core"),Rt=require("@multiversx/sdk-network-providers");a();a();var _t=N(require("bignumber.js"));a();a();a();a();a();a();a();var kr=["reDelegateRewards","claimRewards","unBond"],Ir=["wrapEgld","unwrapEgld"],Er=["unStake"],Sr=["unDelegate"];a();a();a();a();var Ot=N(require("bignumber.js"));a();a();a();a();a();a();var Bt=N(require("bignumber.js"));function Ut({transaction:t,address:e,explorerAddress:r}){var K;let n=(K=t.tokenIdentifier)!=null?K:nr(t.data).tokenId,i=re(t),o=dr(t),s=Tr(e,t,i),m=fr(t),g=ve(t),f=W({explorerAddress:r,to:C.accountDetails(t.sender)}),h=W({explorerAddress:r,to:C.accountDetails(i)}),d=W({explorerAddress:r,to:C.senderShard(t.senderShard)}),w=W({explorerAddress:r,to:C.receiverShard(t.receiverShard)}),x=t.originalTxHash?`${t.originalTxHash}#${t.txHash}`:t.txHash,L=W({explorerAddress:r,to:C.transactionDetails(x)});return ie(ne({},t),{tokenIdentifier:n,receiver:i,receiverAssets:o,transactionDetails:{direction:s,method:m,transactionTokens:g,isContract:er(t.sender)},links:{senderLink:f,receiverLink:h,senderShardLink:d,receiverShardLink:w,transactionLink:L}})}0&&(module.exports={ACTIONS_WITH_EGLD_VALUE,ACTIONS_WITH_MANDATORY_OPERATIONS,ACTIONS_WITH_VALUE_IN_ACTION_FIELD,ACTIONS_WITH_VALUE_IN_DATA_FIELD,getInterpretedTransaction});
1
+ "use strict";var Ar=Object.create;var q=Object.defineProperty,Nr=Object.defineProperties,Dr=Object.getOwnPropertyDescriptor,_r=Object.getOwnPropertyDescriptors,Rr=Object.getOwnPropertyNames,Se=Object.getOwnPropertySymbols,Lr=Object.getPrototypeOf,Ne=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable;var Ae=(t,e,r)=>e in t?q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ne=(t,e)=>{for(var r in e||(e={}))Ne.call(e,r)&&Ae(t,r,e[r]);if(Se)for(var r of Se(e))Fr.call(e,r)&&Ae(t,r,e[r]);return t},ie=(t,e)=>Nr(t,_r(e));var Cr=(t,e)=>()=>(t&&(e=t(t=0)),e);var X=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Or=(t,e)=>{for(var r in e)q(t,r,{get:e[r],enumerable:!0})},De=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Rr(e))!Ne.call(t,i)&&i!==r&&q(t,i,{get:()=>e[i],enumerable:!(n=Dr(e,i))||n.enumerable});return t};var N=(t,e,r)=>(r=t!=null?Ar(Lr(t)):{},De(e||!t||!t.__esModule?q(r,"default",{value:t,enumerable:!0}):r,t)),Br=t=>De(q({},"__esModule",{value:!0}),t);var Le=X(Y=>{"use strict";a();Y.byteLength=Pr;Y.toByteArray=Gr;Y.fromByteArray=Hr;var k=[],v=[],Ur=typeof Uint8Array!="undefined"?Uint8Array:Array,oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(B=0,_e=oe.length;B<_e;++B)k[B]=oe[B],v[oe.charCodeAt(B)]=B;var B,_e;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function Re(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Pr(t){var e=Re(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Mr(t,e,r){return(e+r)*3/4-r}function Gr(t){var e,r=Re(t),n=r[0],i=r[1],o=new Ur(Mr(t,n,i)),s=0,m=i>0?n-4:n,g;for(g=0;g<m;g+=4)e=v[t.charCodeAt(g)]<<18|v[t.charCodeAt(g+1)]<<12|v[t.charCodeAt(g+2)]<<6|v[t.charCodeAt(g+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=v[t.charCodeAt(g)]<<2|v[t.charCodeAt(g+1)]>>4,o[s++]=e&255),i===1&&(e=v[t.charCodeAt(g)]<<10|v[t.charCodeAt(g+1)]<<4|v[t.charCodeAt(g+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function $r(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function Vr(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push($r(n));return i.join("")}function Hr(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,m=r-n;s<m;s+=o)i.push(Vr(t,s,s+o>m?m:s+o));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var Fe=X(ae=>{a();ae.read=function(t,e,r,n,i){var o,s,m=i*8-n-1,g=(1<<m)-1,f=g>>1,h=-7,d=r?i-1:0,w=r?-1:1,x=t[e+d];for(d+=w,o=x&(1<<-h)-1,x>>=-h,h+=m;h>0;o=o*256+t[e+d],d+=w,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=s*256+t[e+d],d+=w,h-=8);if(o===0)o=1-f;else{if(o===g)return s?NaN:(x?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-f}return(x?-1:1)*s*Math.pow(2,o-n)};ae.write=function(t,e,r,n,i,o){var s,m,g,f=o*8-i-1,h=(1<<f)-1,d=h>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:o-1,L=n?1:-1,K=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(m=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(g=Math.pow(2,-s))<1&&(s--,g*=2),s+d>=1?e+=w/g:e+=w*Math.pow(2,1-d),e*g>=2&&(s++,g/=2),s+d>=h?(m=0,s=h):s+d>=1?(m=(e*g-1)*Math.pow(2,i),s=s+d):(m=e*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;t[r+x]=m&255,x+=L,m/=256,i-=8);for(s=s<<i|m,f+=i;f>0;t[r+x]=s&255,x+=L,s/=256,f-=8);t[r+x-L]|=K*128}});var ze=X($=>{"use strict";a();var se=Le(),G=Fe(),Ce=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$.Buffer=c;$.SlowBuffer=Xr;$.INSPECT_MAX_BYTES=50;var Z=2147483647;$.kMaxLength=Z;c.TYPED_ARRAY_SUPPORT=Wr();!c.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Wr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.buffer}});Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.byteOffset}});function D(t){if(t>Z)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return pe(t)}return Ue(t,e,r)}c.poolSize=8192;function Ue(t,e,r){if(typeof t=="string")return zr(t,e);if(ArrayBuffer.isView(t))return jr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return le(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return c.from(n,e,r);var i=Kr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return c.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}c.from=function(t,e,r){return Ue(t,e,r)};Object.setPrototypeOf(c.prototype,Uint8Array.prototype);Object.setPrototypeOf(c,Uint8Array);function Pe(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function qr(t,e,r){return Pe(t),t<=0?D(t):e!==void 0?typeof r=="string"?D(t).fill(e,r):D(t).fill(e):D(t)}c.alloc=function(t,e,r){return qr(t,e,r)};function pe(t){return Pe(t),D(t<0?0:me(t)|0)}c.allocUnsafe=function(t){return pe(t)};c.allocUnsafeSlow=function(t){return pe(t)};function zr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Me(t,e)|0,n=D(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ce(t){for(var e=t.length<0?0:me(t.length)|0,r=D(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function jr(t){if(I(t,Uint8Array)){var e=new Uint8Array(t);return le(e.buffer,e.byteOffset,e.byteLength)}return ce(t)}function le(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,c.prototype),n}function Kr(t){if(c.isBuffer(t)){var e=me(t.length)|0,r=D(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ge(t.length)?D(0):ce(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ce(t.data)}function me(t){if(t>=Z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Z.toString(16)+" bytes");return t|0}function Xr(t){return+t!=t&&(t=0),c.alloc(+t)}c.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==c.prototype};c.compare=function(e,r){if(I(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),I(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),!c.isBuffer(e)||!c.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,s=Math.min(n,i);o<s;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};c.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return c.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=c.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var s=e[n];if(I(s,Uint8Array))o+s.length>i.length?c.from(s).copy(i,o):Uint8Array.prototype.set.call(i,s,o);else if(c.isBuffer(s))s.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length}return i};function Me(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ue(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return qe(t).length;default:if(i)return n?-1:ue(t).length;e=(""+e).toLowerCase(),i=!0}}c.byteLength=Me;function Yr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return at(this,e,r);case"utf8":case"utf-8":return $e(this,e,r);case"ascii":return it(this,e,r);case"latin1":case"binary":return ot(this,e,r);case"base64":return tt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return st(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}c.prototype._isBuffer=!0;function U(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)U(this,r,r+1);return this};c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)U(this,r,r+3),U(this,r+1,r+2);return this};c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)U(this,r,r+7),U(this,r+1,r+6),U(this,r+2,r+5),U(this,r+3,r+4);return this};c.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?$e(this,0,e):Yr.apply(this,arguments)};c.prototype.toLocaleString=c.prototype.toString;c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:c.compare(this,e)===0};c.prototype.inspect=function(){var e="",r=$.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Ce&&(c.prototype[Ce]=c.prototype.inspect);c.prototype.compare=function(e,r,n,i,o){if(I(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var s=o-i,m=n-r,g=Math.min(s,m),f=this.slice(i,o),h=e.slice(r,n),d=0;d<g;++d)if(f[d]!==h[d]){s=f[d],m=h[d];break}return s<m?-1:m<s?1:0};function Ge(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ge(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=c.from(e,n)),c.isBuffer(e))return e.length===0?-1:Oe(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Oe(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Oe(t,e,r,n,i){var o=1,s=t.length,m=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,s/=2,m/=2,r/=2}function g(x,L){return o===1?x[L]:x.readUInt16BE(L*o)}var f;if(i){var h=-1;for(f=r;f<s;f++)if(g(t,f)===g(e,h===-1?0:f-h)){if(h===-1&&(h=f),f-h+1===m)return h*o}else h!==-1&&(f-=f-h),h=-1}else for(r+m>s&&(r=s-m),f=r;f>=0;f--){for(var d=!0,w=0;w<m;w++)if(g(t,f+w)!==g(e,w)){d=!1;break}if(d)return f}return-1}c.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};c.prototype.indexOf=function(e,r,n){return Ge(this,e,r,n,!0)};c.prototype.lastIndexOf=function(e,r,n){return Ge(this,e,r,n,!1)};function Zr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var m=parseInt(e.substr(s*2,2),16);if(ge(m))return s;t[r+s]=m}return s}function Qr(t,e,r,n){return Q(ue(e,t.length-r),t,r,n)}function Jr(t,e,r,n){return Q(ut(e),t,r,n)}function et(t,e,r,n){return Q(qe(e),t,r,n)}function rt(t,e,r,n){return Q(pt(e,t.length-r),t,r,n)}c.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return Zr(this,e,r,n);case"utf8":case"utf-8":return Qr(this,e,r,n);case"ascii":case"latin1":case"binary":return Jr(this,e,r,n);case"base64":return et(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rt(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function tt(t,e,r){return e===0&&r===t.length?se.fromByteArray(t):se.fromByteArray(t.slice(e,r))}function $e(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],s=null,m=o>239?4:o>223?3:o>191?2:1;if(i+m<=r){var g,f,h,d;switch(m){case 1:o<128&&(s=o);break;case 2:g=t[i+1],(g&192)===128&&(d=(o&31)<<6|g&63,d>127&&(s=d));break;case 3:g=t[i+1],f=t[i+2],(g&192)===128&&(f&192)===128&&(d=(o&15)<<12|(g&63)<<6|f&63,d>2047&&(d<55296||d>57343)&&(s=d));break;case 4:g=t[i+1],f=t[i+2],h=t[i+3],(g&192)===128&&(f&192)===128&&(h&192)===128&&(d=(o&15)<<18|(g&63)<<12|(f&63)<<6|h&63,d>65535&&d<1114112&&(s=d))}}s===null?(s=65533,m=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=m}return nt(n)}var Be=4096;function nt(t){var e=t.length;if(e<=Be)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Be));return r}function it(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function ot(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function at(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=mt[t[o]];return i}function st(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}c.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,c.prototype),i};function y(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e],o=1,s=0;++s<r&&(o*=256);)i+=this[e+s]*o;return i};c.prototype.readUintBE=c.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};c.prototype.readUint8=c.prototype.readUInt8=function(e,r){return e=e>>>0,r||y(e,1,this.length),this[e]};c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||y(e,2,this.length),this[e]|this[e+1]<<8};c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||y(e,2,this.length),this[e]<<8|this[e+1]};c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};c.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e],o=1,s=0;++s<r&&(o*=256);)i+=this[e+s]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};c.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=r,o=1,s=this[e+--i];i>0&&(o*=256);)s+=this[e+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*r)),s};c.prototype.readInt8=function(e,r){return e=e>>>0,r||y(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};c.prototype.readInt16LE=function(e,r){e=e>>>0,r||y(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};c.prototype.readInt16BE=function(e,r){e=e>>>0,r||y(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};c.prototype.readInt32LE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};c.prototype.readInt32BE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};c.prototype.readFloatLE=function(e,r){return e=e>>>0,r||y(e,4,this.length),G.read(this,e,!0,23,4)};c.prototype.readFloatBE=function(e,r){return e=e>>>0,r||y(e,4,this.length),G.read(this,e,!1,23,4)};c.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||y(e,8,this.length),G.read(this,e,!0,52,8)};c.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||y(e,8,this.length),G.read(this,e,!1,52,8)};function b(t,e,r,n,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;b(this,e,r,n,o,0)}var s=1,m=0;for(this[r]=e&255;++m<n&&(s*=256);)this[r+m]=e/s&255;return r+n};c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;b(this,e,r,n,o,0)}var s=n-1,m=1;for(this[r+s]=e&255;--s>=0&&(m*=256);)this[r+s]=e/m&255;return r+n};c.prototype.writeUint8=c.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,255,0),this[r]=e&255,r+1};c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};c.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);b(this,e,r,n,o-1,-o)}var s=0,m=1,g=0;for(this[r]=e&255;++s<n&&(m*=256);)e<0&&g===0&&this[r+s-1]!==0&&(g=1),this[r+s]=(e/m>>0)-g&255;return r+n};c.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);b(this,e,r,n,o-1,-o)}var s=n-1,m=1,g=0;for(this[r+s]=e&255;--s>=0&&(m*=256);)e<0&&g===0&&this[r+s+1]!==0&&(g=1),this[r+s]=(e/m>>0)-g&255;return r+n};c.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};c.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};c.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ve(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function He(t,e,r,n,i){return e=+e,r=r>>>0,i||Ve(t,e,r,4,34028234663852886e22,-34028234663852886e22),G.write(t,e,r,n,23,4),r+4}c.prototype.writeFloatLE=function(e,r,n){return He(this,e,r,!0,n)};c.prototype.writeFloatBE=function(e,r,n){return He(this,e,r,!1,n)};function We(t,e,r,n,i){return e=+e,r=r>>>0,i||Ve(t,e,r,8,17976931348623157e292,-17976931348623157e292),G.write(t,e,r,n,52,8),r+8}c.prototype.writeDoubleLE=function(e,r,n){return We(this,e,r,!0,n)};c.prototype.writeDoubleBE=function(e,r,n){return We(this,e,r,!1,n)};c.prototype.copy=function(e,r,n,i){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};c.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var s;if(typeof e=="number")for(s=r;s<n;++s)this[s]=e;else{var m=c.isBuffer(e)?e:c.from(e,i),g=m.length;if(g===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<n-r;++s)this[s+r]=m[s%g]}return this};var ct=/[^+/0-9A-Za-z-_]/g;function lt(t){if(t=t.split("=")[0],t=t.trim().replace(ct,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ue(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function ut(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function pt(t,e){for(var r,n,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function qe(t){return se.toByteArray(lt(t))}function Q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function I(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ge(t){return t!==t}var mt=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Ze=X((Ht,Ye)=>{a();var T=Ye.exports={},E,S;function de(){throw new Error("setTimeout has not been defined")}function fe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=de}catch(t){E=de}try{typeof clearTimeout=="function"?S=clearTimeout:S=fe}catch(t){S=fe}})();function je(t){if(E===setTimeout)return setTimeout(t,0);if((E===de||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function gt(t){if(S===clearTimeout)return clearTimeout(t);if((S===fe||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(t);try{return S(t)}catch(e){try{return S.call(null,t)}catch(r){return S.call(this,t)}}}var _=[],V=!1,P,J=-1;function dt(){!V||!P||(V=!1,P.length?_=P.concat(_):J=-1,_.length&&Ke())}function Ke(){if(!V){var t=je(dt);V=!0;for(var e=_.length;e;){for(P=_,_=[];++J<e;)P&&P[J].run();J=-1,e=_.length}P=null,V=!1,gt(t)}}T.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];_.push(new Xe(t,e)),_.length===1&&!V&&je(Ke)};function Xe(t,e){this.fun=t,this.array=e}Xe.prototype.run=function(){this.fun.apply(null,this.array)};T.title="browser";T.browser=!0;T.env={};T.argv=[];T.version="";T.versions={};function R(){}T.on=R;T.addListener=R;T.once=R;T.off=R;T.removeListener=R;T.removeAllListeners=R;T.emit=R;T.prependListener=R;T.prependOnceListener=R;T.listeners=function(t){return[]};T.binding=function(t){throw new Error("process.binding is not supported")};T.cwd=function(){return"/"};T.chdir=function(t){throw new Error("process.chdir is not supported")};T.umask=function(){return 0}});var l,u,Wt,a=Cr(()=>{l=N(ze()),u=N(Ze()),Wt=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Pt={};Or(Pt,{ACTIONS_WITH_EGLD_VALUE:()=>Ir,ACTIONS_WITH_MANDATORY_OPERATIONS:()=>kr,ACTIONS_WITH_VALUE_IN_ACTION_FIELD:()=>Sr,ACTIONS_WITH_VALUE_IN_DATA_FIELD:()=>Er,getInterpretedTransaction:()=>Ut});module.exports=Br(Pt);a();a();a();var z=require("@multiversx/sdk-core");a();a();a();a();a();a();a();a();a();a();a();a();var Qe=require("@multiversx/sdk-core");function ft(t){try{let e=new Qe.Address(t);return Boolean(e.bech32())}catch(e){return!1}}function ee(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&ft(t)}a();function Je(t){try{let e=atob(t),r=btoa(e),n=l.Buffer.from(t,"base64").toString(),i=l.Buffer.from(n).toString("base64");if(t===r&&t===i||e===n)return!0}catch(e){return!1}return!1}var ht=["ESDTNFTTransfer","ESDTNFTBurn","ESDTNFTAddQuantity","ESDTNFTCreate","MultiESDTNFTTransfer","ESDTTransfer","ESDTBurn","ESDTLocalMint","ESDTLocalBurn","ESDTWipe","ESDTFreeze"];function er(t,e,r=""){if(!ee(t))return!1;if(new z.Address(t).isContractAddress())return!0;let o=bt({receiver:t,data:r});return o?new z.Address(o).isContractAddress()||xt(t,e,r):!1}var Tt=t=>t.toLowerCase().match(/[0-9a-f]/g),yt=t=>t.length%2===0;function xt(t,e,r){let n=r==null?void 0:r.split("@");if(n==null)return!1;let[i,...o]=n,s=e!=null&&t!=null&&t===e,m=ht.includes(i),g=o.every(f=>Tt(f)&&yt(f));return s&&m&&g}function bt({receiver:t,data:e}){try{if(!e)return t;let r=Je(e)?z.TransactionPayload.fromEncoded(e).toString():e,n=wt(r),i=r.split("@");return n>-1?i[n]:t}catch(r){console.log(r);return}}function wt(t){return t.includes("MultiESDTNFTTransfer")?1:t.includes("ESDTNFTTransfer")?4:-1}a();var Te=require("@multiversx/sdk-core"),ye=N(require("bignumber.js"));a();a();function rr(t){for(let e=0;e<t.length;e++)if(t.charCodeAt(e)>127)return!1;return!0}function tr(t){let e=t;try{let r=l.Buffer.from(t,"hex").toString();rr(r)&&r.length>1&&(e=r)}catch(r){}return e}var he={tokenId:"",amount:""},vt=t=>t.split("@").map((o,s)=>[2,3].includes(s)?o:tr(o));function nr(t){if(!t)return he;let e=t.startsWith("ESDTTransfer"),r=t.startsWith("ESDTNFTTransfer")&&t.includes("@");if(e){let[,n,i]=t.split("@");try{let o=l.Buffer.from(n,"hex").toString("ascii");if(!o)return he;let s=new ye.default("0x"+i.replace("0x","")).toString(10);return{tokenId:o,amount:s}}catch(o){console.error("Error getting token from transaction data",o)}}if(r)try{let[,n,i,o,s]=vt(t);if([n,i,o,s].every(m=>Boolean(m))&&ee(new Te.Address(s).bech32()))return{tokenId:`${n}-${i}`,amount:new ye.default(o,16).toString(10),collection:n,nonce:i,receiver:new Te.Address(s).bech32()}}catch(n){}return he}a();a();a();var F="accounts";var ir="blocks",or="code",ar="collections";var sr="contracts";var cr="identities";var lr="locked-accounts",ur="logs",pr="miniblocks";var xe="nfts",mr="nodes",be="providers",gr="roles",we="sc-results";var H="tokens";var M="transactions";var C={shard:t=>`/${ir}?shard=${t}`,receiverShard:t=>`/${M}?receivershard=${t}`,senderShard:t=>`/${M}?sendershard=${t}`,transactionDetails:t=>`/${M}/${t}`,transactionDetailsScResults:t=>`/${M}/${t}/${we}`,transactionDetailsLogs:t=>`/${M}/${t}/${ur}`,nodeDetails:t=>`/${mr}/${t}`,accountDetails:t=>`/${F}/${t}`,accountDetailsContractCode:t=>`/${F}/${t}/${or}`,accountDetailsTokens:t=>`/${F}/${t}/${H}`,accountDetailsNfts:t=>`/${F}/${t}/${xe}`,accountDetailsScResults:t=>`/${F}/${t}/${we}`,accountDetailsContracts:t=>`/${F}/${t}/${sr}`,identityDetails:t=>`/${cr}/${t}`,tokenDetails:t=>`/${H}/${t}`,tokenDetailsAccounts:t=>`/${H}/${t}/${F}`,tokenDetailsLockedAccounts:t=>`/${H}/${t}/${lr}`,tokenDetailsRoles:t=>`/${H}/${t}/${gr}`,collectionDetails:t=>`/${ar}/${t}`,nftDetails:t=>`/${xe}/${t}`,providerDetails:t=>`/${be}/${t}`,providerDetailsTransactions:t=>`/${be}/${t}/${M}`,miniblockDetails:t=>`/${pr}/${t}`};a();var ve=t=>{var e,r,n,i;if(t.action){let o=[(e=t.action.arguments)==null?void 0:e.token,(r=t.action.arguments)==null?void 0:r.token1,(n=t.action.arguments)==null?void 0:n.token2,(i=t.action.arguments)==null?void 0:i.transfers].filter(m=>m!=null);return[].concat(...o)}return[]};a();a();function re(t){var r,n;let e=t.receiver;return(n=(r=t.action)==null?void 0:r.arguments)!=null&&n.receiver&&(e=t.action.arguments.receiver),e}function dr(t){let e=re(t);return t.receiver===e?t.receiverAssets:void 0}a();var fr=t=>{var n,i,o,s,m,g;let e="Transaction";return((n=t.action)==null?void 0:n.name)&&((i=t.action)==null?void 0:i.category)&&(((o=t.action)==null?void 0:o.category)==="esdtNft"&&((s=t.action)==null?void 0:s.name)==="transfer"?e="Transaction":t.action&&(e=t.action.name),(g=(m=t.action)==null?void 0:m.arguments)!=null&&g.functionName&&(e=t.action.arguments.functionName)),e};a();var hr=!1;function It(t){hr||(console.error(t),hr=!0)}function W({explorerAddress:t,to:e}){try{return new URL(e).href}catch(r){return e.startsWith("/")||(It(`Link not prepended by / : ${e}`),e=`/${e}`),t?`${t}${e}`:e}}a();function Tr(t,e,r){let n=t===e.sender,i=t===r,o=n&&i,s=(e==null?void 0:e.type)==="SmartContractResult";switch(!0){case s:return"Internal";case o:return"Self";case i:return"In";case n:default:return"Out"}}a();a();a();var Nt=N(require("bignumber.js"));a();a();a();var ke={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:yr,egldLabel:qn}=ke["devnet"],{chainId:xr,egldLabel:zn}=ke["testnet"],{chainId:br,egldLabel:jn}=ke["mainnet"];var Kn={["devnet"]:yr,["testnet"]:xr,["mainnet"]:br},Xn={[yr]:"devnet",[xr]:"testnet",[br]:"mainnet"};a();a();a();a();var A=require("@multiversx/sdk-web-wallet-provider");a();a();var At=require("@multiversx/sdk-core"),Ie=N(require("bignumber.js"));a();var Et=N(require("bignumber.js"));a();Ie.default.config({ROUNDING_MODE:Ie.default.ROUND_FLOOR});a();a();a();a();a();a();a();a();a();var Dt=require("@multiversx/sdk-core");a();var j=require("@multiversx/sdk-core"),Rt=require("@multiversx/sdk-network-providers");a();a();var _t=N(require("bignumber.js"));a();a();a();a();a();a();a();var kr=["reDelegateRewards","claimRewards","unBond"],Ir=["wrapEgld","unwrapEgld"],Er=["unStake"],Sr=["unDelegate"];a();a();a();a();var Ot=N(require("bignumber.js"));a();a();a();a();a();a();var Bt=N(require("bignumber.js"));function Ut({transaction:t,address:e,explorerAddress:r}){var K;let n=(K=t.tokenIdentifier)!=null?K:nr(t.data).tokenId,i=re(t),o=dr(t),s=Tr(e,t,i),m=fr(t),g=ve(t),f=W({explorerAddress:r,to:C.accountDetails(t.sender)}),h=W({explorerAddress:r,to:C.accountDetails(i)}),d=W({explorerAddress:r,to:C.senderShard(t.senderShard)}),w=W({explorerAddress:r,to:C.receiverShard(t.receiverShard)}),x=t.originalTxHash?`${t.originalTxHash}#${t.txHash}`:t.txHash,L=W({explorerAddress:r,to:C.transactionDetails(x)});return ie(ne({},t),{tokenIdentifier:n,receiver:i,receiverAssets:o,transactionDetails:{direction:s,method:m,transactionTokens:g,isContract:er(t.sender)},links:{senderLink:f,receiverLink:h,senderShardLink:d,receiverShardLink:w,transactionLink:L}})}0&&(module.exports={ACTIONS_WITH_EGLD_VALUE,ACTIONS_WITH_MANDATORY_OPERATIONS,ACTIONS_WITH_VALUE_IN_ACTION_FIELD,ACTIONS_WITH_VALUE_IN_DATA_FIELD,getInterpretedTransaction});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *