@multiversx/sdk-dapp 2.3.0 → 2.3.1

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 (305) 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/ExplorerLink/ExplorerLink.js +1 -1
  5. package/UI/ExplorerLink/index.js +1 -1
  6. package/UI/ModalContainer/ModalContainer.js +1 -1
  7. package/UI/ModalContainer/index.js +1 -1
  8. package/UI/NotificationModal/index.js +1 -1
  9. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  10. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  11. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  12. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  13. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  14. package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
  15. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  16. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  17. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  18. package/UI/SignTransactionsModals/components/index.js +1 -1
  19. package/UI/SignTransactionsModals/index.js +1 -1
  20. package/UI/TimeAgo/TimeAgo.js +1 -1
  21. package/UI/TimeAgo/index.js +1 -1
  22. package/UI/TokenDetails/index.js +1 -1
  23. package/UI/TransactionDetails/TransactionDetails.js +1 -1
  24. package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  25. package/UI/TransactionDetails/components/index.js +1 -1
  26. package/UI/TransactionDetails/index.js +1 -1
  27. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  28. package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
  29. package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
  30. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  31. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  32. package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
  33. package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  34. package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  35. package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
  36. package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  37. package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
  38. package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
  39. package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
  40. package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
  41. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
  42. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
  43. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
  44. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
  45. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
  46. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
  47. package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
  48. package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
  49. package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
  50. package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
  51. package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
  52. package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
  53. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
  54. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
  55. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
  56. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
  57. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
  58. package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
  59. package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
  60. package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
  61. package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
  62. package/UI/TransactionInfo/components/index.js +1 -1
  63. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +1 -1
  64. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +1 -1
  65. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
  66. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
  67. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
  68. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
  69. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
  70. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
  71. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
  72. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
  73. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  74. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  75. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
  76. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
  77. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
  78. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
  79. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
  80. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
  81. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
  82. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
  83. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  84. package/UI/TransactionInfo/index.js +1 -1
  85. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  86. package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
  87. package/UI/TransactionsTable/components/TransactionHash.js +1 -1
  88. package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
  89. package/UI/TransactionsTable/components/TransactionRow.js +1 -1
  90. package/UI/TransactionsTable/components/TransactionSender.js +1 -1
  91. package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
  92. package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
  93. package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
  94. package/UI/TransactionsTable/components/index.js +1 -1
  95. package/UI/TransactionsTable/index.js +1 -1
  96. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  97. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  98. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  99. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  100. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  101. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  102. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  103. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  104. package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  105. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  106. package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  107. package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  108. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  109. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  110. package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
  111. package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
  112. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  113. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  114. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  115. package/UI/TransactionsToastList/components/index.js +1 -1
  116. package/UI/TransactionsToastList/index.js +1 -1
  117. package/UI/extension/ExtensionLoginButton/index.js +1 -1
  118. package/UI/index.js +1 -1
  119. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  120. package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
  121. package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
  122. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  123. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  124. package/UI/ledger/index.js +1 -1
  125. package/UI/pages/UnlockPage/index.js +1 -1
  126. package/UI/pages/index.js +1 -1
  127. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  128. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  129. package/UI/walletConnect/index.js +1 -1
  130. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  131. package/__chunks__/{chunk-3PWOZSFG.js → chunk-6JPAXTK6.js} +2 -2
  132. package/__chunks__/{chunk-6BKASPUT.js → chunk-7NFQGQ5Q.js} +2 -2
  133. package/__chunks__/{chunk-IYJJQRS2.js → chunk-JVO3OTWJ.js} +2 -2
  134. package/__chunks__/{chunk-BHP7MLTJ.js → chunk-PAYBBQDI.js} +2 -2
  135. package/__chunks__/chunk-Q3JOZ2CP.js +2 -0
  136. package/__chunks__/chunk-T7D7BT5X.js +2 -0
  137. package/__chunks__/{chunk-6XBUOELQ.js → chunk-U2L6FONJ.js} +2 -2
  138. package/__chunks__/{chunk-2BOUSQ3X.js → chunk-VMMI6YPU.js} +2 -2
  139. package/__chunks__/{chunk-6W5JFCQR.js → chunk-VSFOSOV7.js} +2 -2
  140. package/__commonjs/UI/DappModal/index.js +2 -2
  141. package/__commonjs/UI/ModalContainer/ModalContainer.js +2 -2
  142. package/__commonjs/UI/ModalContainer/index.js +2 -2
  143. package/__commonjs/UI/NotificationModal/index.js +2 -2
  144. package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +3 -3
  145. package/__commonjs/UI/SignTransactionsModals/index.js +21 -21
  146. package/__commonjs/UI/TimeAgo/TimeAgo.js +2 -2
  147. package/__commonjs/UI/TimeAgo/index.js +2 -2
  148. package/__commonjs/UI/TransactionInfo/TransactionInfo.js +22 -22
  149. package/__commonjs/UI/TransactionInfo/components/OperationsList/OperationList.js +2 -2
  150. package/__commonjs/UI/TransactionInfo/components/index.js +24 -24
  151. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +4 -4
  152. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +4 -4
  153. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +2 -2
  154. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +13 -13
  155. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +13 -13
  156. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +2 -2
  157. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +2 -2
  158. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +22 -22
  159. package/__commonjs/UI/TransactionInfo/index.js +24 -24
  160. package/__commonjs/UI/TransactionsTable/TransactionsTable.js +8 -8
  161. package/__commonjs/UI/TransactionsTable/components/LockedTokenAddressIcon.js +2 -2
  162. package/__commonjs/UI/TransactionsTable/components/TransactionRow.js +9 -9
  163. package/__commonjs/UI/TransactionsTable/index.js +11 -11
  164. package/__commonjs/UI/index.js +1 -1
  165. package/__commonjs/UI/ledger/LedgerLoginContainer/AddressRow.js +3 -3
  166. package/__commonjs/__mocks__/index.js +1 -1
  167. package/__commonjs/__mocks__/utils/index.js +1 -1
  168. package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
  169. package/__commonjs/apiCalls/configuration/index.js +1 -1
  170. package/__commonjs/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  171. package/__commonjs/components/ProviderInitializer.js +1 -1
  172. package/__commonjs/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  173. package/__commonjs/hooks/transactions/index.js +1 -1
  174. package/__commonjs/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  175. package/__commonjs/hooks/transactions/useGetFailedTransactions.js +1 -1
  176. package/__commonjs/hooks/transactions/useGetSignTransactionsError.js +1 -1
  177. package/__commonjs/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  178. package/__commonjs/hooks/useGetNetworkConfig.js +1 -1
  179. package/__commonjs/utils/account/getAccountShard.js +1 -1
  180. package/__commonjs/utils/account/getLatestNonce.js +1 -1
  181. package/__commonjs/utils/network/index.js +1 -1
  182. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getHumanReadableTimeFormat.js +1 -1
  183. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/index.js +2 -2
  184. package/__commonjs/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  185. package/__commonjs/wrappers/DappProvider/index.js +1 -1
  186. package/__commonjs/wrappers/index.js +1 -1
  187. package/__mocks__/index.js +1 -1
  188. package/__mocks__/utils/index.js +1 -1
  189. package/__mocks__/utils/renderWithProvider.js +1 -1
  190. package/apiCalls/accounts/getAccountFromApi.js +1 -1
  191. package/apiCalls/accounts/index.js +1 -1
  192. package/apiCalls/configuration/getNetworkConfig.js +1 -1
  193. package/apiCalls/configuration/index.js +1 -1
  194. package/apiCalls/getScamAddressData.js +1 -1
  195. package/apiCalls/index.js +1 -1
  196. package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  197. package/apiCalls/transactions/index.js +1 -1
  198. package/apiCalls/transactions/sendSignedTransactions.js +1 -1
  199. package/apiCalls/utils/getCleanApiAddress.js +1 -1
  200. package/apiCalls/utils/index.js +1 -1
  201. package/components/LogoutListener/LogoutListener.js +1 -1
  202. package/components/LogoutListener/helpers/index.js +1 -1
  203. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  204. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  205. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  206. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  207. package/components/LogoutListener/index.js +1 -1
  208. package/components/ProviderInitializer.js +1 -1
  209. package/components/TransactionSender/TransactionSender.js +1 -1
  210. package/components/TransactionSender/index.js +1 -1
  211. package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
  212. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  213. package/components/TransactionsTracker/index.js +1 -1
  214. package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  215. package/hooks/account/index.js +1 -1
  216. package/hooks/account/useGetAccount.js +1 -1
  217. package/hooks/account/useGetAccountInfo.js +1 -1
  218. package/hooks/account/useGetIsLoggedIn.js +1 -1
  219. package/hooks/account/useGetLoginInfo.js +1 -1
  220. package/hooks/account/useGetWebsocketEvent.js +1 -1
  221. package/hooks/index.js +1 -1
  222. package/hooks/login/index.js +1 -1
  223. package/hooks/login/useExtensionLogin.js +1 -1
  224. package/hooks/login/useLedgerLogin.js +1 -1
  225. package/hooks/login/useLoginService.js +1 -1
  226. package/hooks/login/useWalletConnectLogin.js +1 -1
  227. package/hooks/login/useWalletConnectV2Login.js +1 -1
  228. package/hooks/login/useWebWalletLogin.js +1 -1
  229. package/hooks/signMessage/index.js +1 -1
  230. package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  231. package/hooks/signMessage/useGetSignMessageSession.js +1 -1
  232. package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
  233. package/hooks/signMessage/useSignMessage.js +1 -1
  234. package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
  235. package/hooks/transactions/helpers/index.js +1 -1
  236. package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
  237. package/hooks/transactions/index.js +1 -1
  238. package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
  239. package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  240. package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  241. package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  242. package/hooks/transactions/useGetFailedTransactions.js +1 -1
  243. package/hooks/transactions/useGetPendingTransactions.js +1 -1
  244. package/hooks/transactions/useGetSignTransactionsError.js +1 -1
  245. package/hooks/transactions/useGetSignedTransactions.js +1 -1
  246. package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  247. package/hooks/transactions/useGetTokenDetails.js +1 -1
  248. package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
  249. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  250. package/hooks/transactions/useSignTransactions.js +1 -1
  251. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  252. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  253. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  254. package/hooks/transactions/useTrackTransactionStatus.js +1 -1
  255. package/hooks/useGetNetworkConfig.js +1 -1
  256. package/hooks/useGetNotification.js +1 -1
  257. package/hooks/websocketListener/index.js +1 -1
  258. package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
  259. package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  260. package/package.json +1 -1
  261. package/reduxStore/selectors/index.js +1 -1
  262. package/reduxStore/selectors/transactionsSelectors.js +1 -1
  263. package/services/index.js +1 -1
  264. package/services/transactions/index.js +1 -1
  265. package/services/transactions/sendTransactions.js +1 -1
  266. package/services/transactions/transformAndSignTransactions.js +1 -1
  267. package/utils/account/getAccount.js +1 -1
  268. package/utils/account/getAccountBalance.js +1 -1
  269. package/utils/account/getAccountShard.js +1 -1
  270. package/utils/account/getAddress.js +1 -1
  271. package/utils/account/getLatestNonce.js +1 -1
  272. package/utils/account/index.js +1 -1
  273. package/utils/account/refreshAccount.js +1 -1
  274. package/utils/account/signMessage.js +1 -1
  275. package/utils/getIsLoggedIn.js +1 -1
  276. package/utils/index.js +1 -1
  277. package/utils/logout.js +1 -1
  278. package/utils/network/getChainID.js +1 -1
  279. package/utils/network/getEgldLabel.js +1 -1
  280. package/utils/network/getNetworkConfig.js +1 -1
  281. package/utils/network/index.js +1 -1
  282. package/utils/transactions/getAllTransactionsLink.js +1 -1
  283. package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
  284. package/utils/transactions/getInterpretedTransaction/helpers/getHumanReadableTimeFormat.d.ts +2 -1
  285. package/utils/transactions/getInterpretedTransaction/helpers/getHumanReadableTimeFormat.js +1 -1
  286. package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
  287. package/utils/transactions/getInterpretedTransaction/index.js +1 -1
  288. package/utils/transactions/getTransactionLink.js +1 -1
  289. package/utils/transactions/index.js +1 -1
  290. package/web/hooks/index.js +1 -1
  291. package/web/hooks/useIdleTimer.js +1 -1
  292. package/web/index.js +1 -1
  293. package/wrappers/AppInitializer.js +1 -1
  294. package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  295. package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
  296. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
  297. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
  298. package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  299. package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  300. package/wrappers/AxiosInterceptorContext/index.js +1 -1
  301. package/wrappers/DappProvider/CustomComponents.js +1 -1
  302. package/wrappers/DappProvider/index.js +1 -1
  303. package/wrappers/index.js +1 -1
  304. package/__chunks__/chunk-EXJ5ZTBR.js +0 -2
  305. package/__chunks__/chunk-ZPDZ3RNC.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";var Ur=Object.create;var b=Object.defineProperty;var Ir=Object.getOwnPropertyDescriptor;var dr=Object.getOwnPropertyNames;var Cr=Object.getPrototypeOf,Sr=Object.prototype.hasOwnProperty;var Lr=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Rr=(e,r)=>{for(var t in r)b(e,t,{get:r[t],enumerable:!0})},tr=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of dr(r))!Sr.call(e,n)&&n!==t&&b(e,n,{get:()=>r[n],enumerable:!(i=Ir(r,n))||i.enumerable});return e};var er=(e,r,t)=>(t=e!=null?Ur(Cr(e)):{},tr(r||!e||!e.__esModule?b(t,"default",{value:e,enumerable:!0}):t,e)),_r=e=>tr(b({},"__esModule",{value:!0}),e);var or=N($=>{"use strict";F();$.byteLength=kr;$.toByteArray=br;$.fromByteArray=Hr;var g=[],E=[],Mr=typeof Uint8Array!="undefined"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(C=0,ir=X.length;C<ir;++C)g[C]=X[C],E[X.charCodeAt(C)]=C;var C,ir;E["-".charCodeAt(0)]=62;E["_".charCodeAt(0)]=63;function nr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]}function kr(e){var r=nr(e),t=r[0],i=r[1];return(t+i)*3/4-i}function Dr(e,r,t){return(r+t)*3/4-t}function br(e){var r,t=nr(e),i=t[0],n=t[1],o=new Mr(Dr(e,i,n)),u=0,h=n>0?i-4:i,f;for(f=0;f<h;f+=4)r=E[e.charCodeAt(f)]<<18|E[e.charCodeAt(f+1)]<<12|E[e.charCodeAt(f+2)]<<6|E[e.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return n===2&&(r=E[e.charCodeAt(f)]<<2|E[e.charCodeAt(f+1)]>>4,o[u++]=r&255),n===1&&(r=E[e.charCodeAt(f)]<<10|E[e.charCodeAt(f+1)]<<4|E[e.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Nr(e){return g[e>>18&63]+g[e>>12&63]+g[e>>6&63]+g[e&63]}function $r(e,r,t){for(var i,n=[],o=r;o<t;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(Nr(i));return n.join("")}function Hr(e){for(var r,t=e.length,i=t%3,n=[],o=16383,u=0,h=t-i;u<h;u+=o)n.push($r(e,u,u+o>h?h:u+o));return i===1?(r=e[t-1],n.push(g[r>>2]+g[r<<4&63]+"==")):i===2&&(r=(e[t-2]<<8)+e[t-1],n.push(g[r>>10]+g[r>>4&63]+g[r<<2&63]+"=")),n.join("")}});var ur=N(z=>{F();z.read=function(e,r,t,i,n){var o,u,h=n*8-i-1,f=(1<<h)-1,c=f>>1,l=-7,p=t?n-1:0,m=t?-1:1,y=e[r+p];for(p+=m,o=y&(1<<-l)-1,y>>=-l,l+=h;l>0;o=o*256+e[r+p],p+=m,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=i;l>0;u=u*256+e[r+p],p+=m,l-=8);if(o===0)o=1-c;else{if(o===f)return u?NaN:(y?-1:1)*(1/0);u=u+Math.pow(2,i),o=o-c}return(y?-1:1)*u*Math.pow(2,o-i)};z.write=function(e,r,t,i,n,o){var u,h,f,c=o*8-n-1,l=(1<<c)-1,p=l>>1,m=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=i?0:o-1,d=i?1:-1,G=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?r+=m/f:r+=m*Math.pow(2,1-p),r*f>=2&&(u++,f/=2),u+p>=l?(h=0,u=l):u+p>=1?(h=(r*f-1)*Math.pow(2,n),u=u+p):(h=r*Math.pow(2,p-1)*Math.pow(2,n),u=0));n>=8;e[t+y]=h&255,y+=d,h/=256,n-=8);for(u=u<<n|h,c+=n;c>0;e[t+y]=u&255,y+=d,u/=256,c-=8);e[t+y-d]|=G*128}});var Fr=N(_=>{"use strict";F();var J=or(),R=ur(),ar=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_.Buffer=a;_.SlowBuffer=zr;_.INSPECT_MAX_BYTES=50;var W=2147483647;_.kMaxLength=W;a.TYPED_ARRAY_SUPPORT=Wr();!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Wr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function T(e){if(e>W)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(e)}return pr(e,r,t)}a.poolSize=8192;function pr(e,r,t){if(typeof e=="string")return qr(e,r);if(ArrayBuffer.isView(e))return Gr(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return V(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return a.from(i,r,t);var n=Xr(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return pr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function cr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Yr(e,r,t){return cr(e),e<=0?T(e):r!==void 0?typeof t=="string"?T(e).fill(r,t):T(e).fill(r):T(e)}a.alloc=function(e,r,t){return Yr(e,r,t)};function O(e){return cr(e),T(e<0?0:Z(e)|0)}a.allocUnsafe=function(e){return O(e)};a.allocUnsafeSlow=function(e){return O(e)};function qr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=lr(e,r)|0,i=T(t),n=i.write(e,r);return n!==t&&(i=i.slice(0,n)),i}function Q(e){for(var r=e.length<0?0:Z(e.length)|0,t=T(r),i=0;i<r;i+=1)t[i]=e[i]&255;return t}function Gr(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return V(r.buffer,r.byteOffset,r.byteLength)}return Q(e)}function V(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&t===void 0?i=new Uint8Array(e):t===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,t),Object.setPrototypeOf(i,a.prototype),i}function Xr(e){if(a.isBuffer(e)){var r=Z(e.length)|0,t=T(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||P(e.length)?T(0):Q(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Q(e.data)}function Z(e){if(e>=W)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+W.toString(16)+" bytes");return e|0}function zr(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var i=r.length,n=t.length,o=0,u=Math.min(i,n);o<u;++o)if(r[o]!==t[o]){i=r[o],n=t[o];break}return i<n?-1:n<i?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;var n=a.allocUnsafe(t),o=0;for(i=0;i<r.length;++i){var u=r[i];if(B(u,Uint8Array))o+u.length>n.length?a.from(u).copy(n,o):Uint8Array.prototype.set.call(n,u,o);else if(a.isBuffer(u))u.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return n};function lr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Er(e).length;default:if(n)return i?-1:K(e).length;r=(""+r).toLowerCase(),n=!0}}a.byteLength=lr;function Jr(e,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return et(this,r,t);case"utf8":case"utf-8":return wr(this,r,t);case"ascii":return rt(this,r,t);case"latin1":case"binary":return tt(this,r,t);case"base64":return Pr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function S(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)S(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?wr(this,0,r):Jr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=_.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};ar&&(a.prototype[ar]=a.prototype.inspect);a.prototype.compare=function(r,t,i,n,o){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var u=o-n,h=i-t,f=Math.min(u,h),c=this.slice(n,o),l=r.slice(t,i),p=0;p<f;++p)if(c[p]!==l[p]){u=c[p],h=l[p];break}return u<h?-1:h<u?1:0};function sr(e,r,t,i,n){if(e.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,P(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),a.isBuffer(r))return r.length===0?-1:hr(e,r,t,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):hr(e,[r],t,i,n);throw new TypeError("val must be string, number or Buffer")}function hr(e,r,t,i,n){var o=1,u=e.length,h=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,h/=2,t/=2}function f(y,d){return o===1?y[d]:y.readUInt16BE(d*o)}var c;if(n){var l=-1;for(c=t;c<u;c++)if(f(e,c)===f(r,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===h)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(t+h>u&&(t=u-h),c=t;c>=0;c--){for(var p=!0,m=0;m<h;m++)if(f(e,c+m)!==f(r,m)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};a.prototype.indexOf=function(r,t,i){return sr(this,r,t,i,!0)};a.prototype.lastIndexOf=function(r,t,i){return sr(this,r,t,i,!1)};function Qr(e,r,t,i){t=Number(t)||0;var n=e.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);for(var u=0;u<i;++u){var h=parseInt(r.substr(u*2,2),16);if(P(h))return u;e[t+u]=h}return u}function Vr(e,r,t,i){return Y(K(r,e.length-t),e,t,i)}function Kr(e,r,t,i){return Y(ut(r),e,t,i)}function Or(e,r,t,i){return Y(Er(r),e,t,i)}function Zr(e,r,t,i){return Y(at(r,e.length-t),e,t,i)}a.prototype.write=function(r,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return Qr(this,r,t,i);case"utf8":case"utf-8":return Vr(this,r,t,i);case"ascii":case"latin1":case"binary":return Kr(this,r,t,i);case"base64":return Or(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zr(this,r,t,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Pr(e,r,t){return r===0&&t===e.length?J.fromByteArray(e):J.fromByteArray(e.slice(r,t))}function wr(e,r,t){t=Math.min(e.length,t);for(var i=[],n=r;n<t;){var o=e[n],u=null,h=o>239?4:o>223?3:o>191?2:1;if(n+h<=t){var f,c,l,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=e[n+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=e[n+1],c=e[n+2],(f&192)===128&&(c&192)===128&&(p=(o&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:f=e[n+1],c=e[n+2],l=e[n+3],(f&192)===128&&(c&192)===128&&(l&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|l&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|u&1023),i.push(u),n+=h}return jr(i)}var fr=4096;function jr(e){var r=e.length;if(r<=fr)return String.fromCharCode.apply(String,e);for(var t="",i=0;i<r;)t+=String.fromCharCode.apply(String,e.slice(i,i+=fr));return t}function rt(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]&127);return i}function tt(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]);return i}function et(e,r,t){var i=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);for(var n="",o=r;o<t;++o)n+=ht[e[o]];return n}function it(e,r,t){for(var i=e.slice(r,t),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}a.prototype.slice=function(r,t){var i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,a.prototype),n};function w(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return n};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r+--t],o=1;t>0&&(o*=256);)n+=this[r+--t]*o;return n};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n};a.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=t,o=1,u=this[r+--n];n>0&&(o*=256);)u+=this[r+--n]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!1,52,8)};function x(e,r,t,i,n,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(t+i>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;x(this,r,t,i,o,0)}var u=1,h=0;for(this[t]=r&255;++h<i&&(u*=256);)this[t+h]=r/u&255;return t+i};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;x(this,r,t,i,o,0)}var u=i-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+i};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);x(this,r,t,i,o-1,-o)}var u=0,h=1,f=0;for(this[t]=r&255;++u<i&&(h*=256);)r<0&&f===0&&this[t+u-1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);x(this,r,t,i,o-1,-o)}var u=i-1,h=1,f=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&f===0&&this[t+u+1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function yr(e,r,t,i,n,o){if(t+i>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function xr(e,r,t,i,n){return r=+r,t=t>>>0,n||yr(e,r,t,4,34028234663852886e22,-34028234663852886e22),R.write(e,r,t,i,23,4),t+4}a.prototype.writeFloatLE=function(r,t,i){return xr(this,r,t,!0,i)};a.prototype.writeFloatBE=function(r,t,i){return xr(this,r,t,!1,i)};function mr(e,r,t,i,n){return r=+r,t=t>>>0,n||yr(e,r,t,8,17976931348623157e292,-17976931348623157e292),R.write(e,r,t,i,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,i){return mr(this,r,t,!0,i)};a.prototype.writeDoubleBE=function(r,t,i){return mr(this,r,t,!1,i)};a.prototype.copy=function(r,t,i,n){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-i&&(n=r.length-t+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),t),o};a.prototype.fill=function(r,t,i,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<i;++u)this[u]=r;else{var h=a.isBuffer(r)?r:a.from(r,n),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<i-t;++u)this[u+t]=h[u%f]}return this};var nt=/[^+/0-9A-Za-z-_]/g;function ot(e){if(e=e.split("=")[0],e=e.trim().replace(nt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function K(e,r){r=r||1/0;for(var t,i=e.length,n=null,o=[],u=0;u<i;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ut(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function at(e,r){for(var t,i,n,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),i=t>>8,n=t%256,o.push(n),o.push(i);return o}function Er(e){return J.toByteArray(ot(e))}function Y(e,r,t,i){for(var n=0;n<i&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function P(e){return e!==e}var ht=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var i=t*16,n=0;n<16;++n)r[i+n]=e[t]+e[n];return r}()});var Tr=N((Et,vr)=>{F();var s=vr.exports={},A,v;function j(){throw new Error("setTimeout has not been defined")}function rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=j}catch(e){A=j}try{typeof clearTimeout=="function"?v=clearTimeout:v=rr}catch(e){v=rr}})();function gr(e){if(A===setTimeout)return setTimeout(e,0);if((A===j||!A)&&setTimeout)return A=setTimeout,setTimeout(e,0);try{return A(e,0)}catch(r){try{return A.call(null,e,0)}catch(t){return A.call(this,e,0)}}}function ft(e){if(v===clearTimeout)return clearTimeout(e);if((v===rr||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var U=[],M=!1,L,q=-1;function pt(){!M||!L||(M=!1,L.length?U=L.concat(U):q=-1,U.length&&Br())}function Br(){if(!M){var e=gr(pt);M=!0;for(var r=U.length;r;){for(L=U,U=[];++q<r;)L&&L[q].run();q=-1,r=U.length}L=null,M=!1,ft(e)}}s.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];U.push(new Ar(e,r)),U.length===1&&!M&&gr(Br)};function Ar(e,r){this.fun=e,this.array=r}Ar.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function I(){}s.on=I;s.addListener=I;s.once=I;s.off=I;s.removeListener=I;s.removeAllListeners=I;s.emit=I;s.prependListener=I;s.prependOnceListener=I;s.listeners=function(e){return[]};s.binding=function(e){throw new Error("process.binding is not supported")};s.cwd=function(){return"/"};s.chdir=function(e){throw new Error("process.chdir is not supported")};s.umask=function(){return 0}});var k,D,Ft,F=Lr(()=>{k=er(Fr()),D=er(Tr()),Ft=function(e){function r(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var lt={};Rr(lt,{getHumanReadableTimeFormat:()=>ct});module.exports=_r(lt);F();function ct({value:e,noSeconds:r,utc:t}){let i=new Date(e*1e3),[,n]=i.toLocaleString("en-US",{hour:"numeric",hour12:!0}).split(" "),o=i.toUTCString(),[,u]=o.split(","),[h,f,c,l]=u.trim().split(" "),[p,m,y]=l.split(":"),d=`:${y}`,G=`${p}:${m}${r?"":d}`;return`${f} ${h}, ${c} ${G} ${n}${t?" UTC":""}`}0&&(module.exports={getHumanReadableTimeFormat});
1
+ "use strict";var dr=Object.create;var D=Object.defineProperty;var Cr=Object.getOwnPropertyDescriptor;var Sr=Object.getOwnPropertyNames;var Lr=Object.getPrototypeOf,Rr=Object.prototype.hasOwnProperty;var _r=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Mr=(e,r)=>{for(var t in r)D(e,t,{get:r[t],enumerable:!0})},tr=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Sr(r))!Rr.call(e,n)&&n!==t&&D(e,n,{get:()=>r[n],enumerable:!(i=Cr(r,n))||i.enumerable});return e};var er=(e,r,t)=>(t=e!=null?dr(Lr(e)):{},tr(r||!e||!e.__esModule?D(t,"default",{value:e,enumerable:!0}):t,e)),br=e=>tr(D({},"__esModule",{value:!0}),e);var or=N($=>{"use strict";F();$.byteLength=Dr;$.toByteArray=$r;$.fromByteArray=Yr;var g=[],E=[],kr=typeof Uint8Array!="undefined"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(C=0,ir=X.length;C<ir;++C)g[C]=X[C],E[X.charCodeAt(C)]=C;var C,ir;E["-".charCodeAt(0)]=62;E["_".charCodeAt(0)]=63;function nr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]}function Dr(e){var r=nr(e),t=r[0],i=r[1];return(t+i)*3/4-i}function Nr(e,r,t){return(r+t)*3/4-t}function $r(e){var r,t=nr(e),i=t[0],n=t[1],o=new kr(Nr(e,i,n)),u=0,h=n>0?i-4:i,f;for(f=0;f<h;f+=4)r=E[e.charCodeAt(f)]<<18|E[e.charCodeAt(f+1)]<<12|E[e.charCodeAt(f+2)]<<6|E[e.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return n===2&&(r=E[e.charCodeAt(f)]<<2|E[e.charCodeAt(f+1)]>>4,o[u++]=r&255),n===1&&(r=E[e.charCodeAt(f)]<<10|E[e.charCodeAt(f+1)]<<4|E[e.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Hr(e){return g[e>>18&63]+g[e>>12&63]+g[e>>6&63]+g[e&63]}function Wr(e,r,t){for(var i,n=[],o=r;o<t;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(Hr(i));return n.join("")}function Yr(e){for(var r,t=e.length,i=t%3,n=[],o=16383,u=0,h=t-i;u<h;u+=o)n.push(Wr(e,u,u+o>h?h:u+o));return i===1?(r=e[t-1],n.push(g[r>>2]+g[r<<4&63]+"==")):i===2&&(r=(e[t-2]<<8)+e[t-1],n.push(g[r>>10]+g[r>>4&63]+g[r<<2&63]+"=")),n.join("")}});var ur=N(z=>{F();z.read=function(e,r,t,i,n){var o,u,h=n*8-i-1,f=(1<<h)-1,c=f>>1,l=-7,p=t?n-1:0,m=t?-1:1,y=e[r+p];for(p+=m,o=y&(1<<-l)-1,y>>=-l,l+=h;l>0;o=o*256+e[r+p],p+=m,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=i;l>0;u=u*256+e[r+p],p+=m,l-=8);if(o===0)o=1-c;else{if(o===f)return u?NaN:(y?-1:1)*(1/0);u=u+Math.pow(2,i),o=o-c}return(y?-1:1)*u*Math.pow(2,o-i)};z.write=function(e,r,t,i,n,o){var u,h,f,c=o*8-n-1,l=(1<<c)-1,p=l>>1,m=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=i?0:o-1,d=i?1:-1,G=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?r+=m/f:r+=m*Math.pow(2,1-p),r*f>=2&&(u++,f/=2),u+p>=l?(h=0,u=l):u+p>=1?(h=(r*f-1)*Math.pow(2,n),u=u+p):(h=r*Math.pow(2,p-1)*Math.pow(2,n),u=0));n>=8;e[t+y]=h&255,y+=d,h/=256,n-=8);for(u=u<<n|h,c+=n;c>0;e[t+y]=u&255,y+=d,u/=256,c-=8);e[t+y-d]|=G*128}});var Fr=N(_=>{"use strict";F();var J=or(),R=ur(),ar=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_.Buffer=a;_.SlowBuffer=Qr;_.INSPECT_MAX_BYTES=50;var W=2147483647;_.kMaxLength=W;a.TYPED_ARRAY_SUPPORT=qr();!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function qr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function T(e){if(e>W)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(e)}return pr(e,r,t)}a.poolSize=8192;function pr(e,r,t){if(typeof e=="string")return Xr(e,r);if(ArrayBuffer.isView(e))return zr(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return V(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return a.from(i,r,t);var n=Jr(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return pr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function cr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Gr(e,r,t){return cr(e),e<=0?T(e):r!==void 0?typeof t=="string"?T(e).fill(r,t):T(e).fill(r):T(e)}a.alloc=function(e,r,t){return Gr(e,r,t)};function O(e){return cr(e),T(e<0?0:Z(e)|0)}a.allocUnsafe=function(e){return O(e)};a.allocUnsafeSlow=function(e){return O(e)};function Xr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=lr(e,r)|0,i=T(t),n=i.write(e,r);return n!==t&&(i=i.slice(0,n)),i}function Q(e){for(var r=e.length<0?0:Z(e.length)|0,t=T(r),i=0;i<r;i+=1)t[i]=e[i]&255;return t}function zr(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return V(r.buffer,r.byteOffset,r.byteLength)}return Q(e)}function V(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&t===void 0?i=new Uint8Array(e):t===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,t),Object.setPrototypeOf(i,a.prototype),i}function Jr(e){if(a.isBuffer(e)){var r=Z(e.length)|0,t=T(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||P(e.length)?T(0):Q(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Q(e.data)}function Z(e){if(e>=W)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+W.toString(16)+" bytes");return e|0}function Qr(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var i=r.length,n=t.length,o=0,u=Math.min(i,n);o<u;++o)if(r[o]!==t[o]){i=r[o],n=t[o];break}return i<n?-1:n<i?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;var n=a.allocUnsafe(t),o=0;for(i=0;i<r.length;++i){var u=r[i];if(B(u,Uint8Array))o+u.length>n.length?a.from(u).copy(n,o):Uint8Array.prototype.set.call(n,u,o);else if(a.isBuffer(u))u.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return n};function lr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Er(e).length;default:if(n)return i?-1:K(e).length;r=(""+r).toLowerCase(),n=!0}}a.byteLength=lr;function Vr(e,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return nt(this,r,t);case"utf8":case"utf-8":return wr(this,r,t);case"ascii":return et(this,r,t);case"latin1":case"binary":return it(this,r,t);case"base64":return rt(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ot(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function S(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)S(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?wr(this,0,r):Vr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=_.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};ar&&(a.prototype[ar]=a.prototype.inspect);a.prototype.compare=function(r,t,i,n,o){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var u=o-n,h=i-t,f=Math.min(u,h),c=this.slice(n,o),l=r.slice(t,i),p=0;p<f;++p)if(c[p]!==l[p]){u=c[p],h=l[p];break}return u<h?-1:h<u?1:0};function sr(e,r,t,i,n){if(e.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,P(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),a.isBuffer(r))return r.length===0?-1:hr(e,r,t,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):hr(e,[r],t,i,n);throw new TypeError("val must be string, number or Buffer")}function hr(e,r,t,i,n){var o=1,u=e.length,h=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,h/=2,t/=2}function f(y,d){return o===1?y[d]:y.readUInt16BE(d*o)}var c;if(n){var l=-1;for(c=t;c<u;c++)if(f(e,c)===f(r,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===h)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(t+h>u&&(t=u-h),c=t;c>=0;c--){for(var p=!0,m=0;m<h;m++)if(f(e,c+m)!==f(r,m)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};a.prototype.indexOf=function(r,t,i){return sr(this,r,t,i,!0)};a.prototype.lastIndexOf=function(r,t,i){return sr(this,r,t,i,!1)};function Kr(e,r,t,i){t=Number(t)||0;var n=e.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);for(var u=0;u<i;++u){var h=parseInt(r.substr(u*2,2),16);if(P(h))return u;e[t+u]=h}return u}function Or(e,r,t,i){return Y(K(r,e.length-t),e,t,i)}function Zr(e,r,t,i){return Y(ht(r),e,t,i)}function Pr(e,r,t,i){return Y(Er(r),e,t,i)}function jr(e,r,t,i){return Y(ft(r,e.length-t),e,t,i)}a.prototype.write=function(r,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return Kr(this,r,t,i);case"utf8":case"utf-8":return Or(this,r,t,i);case"ascii":case"latin1":case"binary":return Zr(this,r,t,i);case"base64":return Pr(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jr(this,r,t,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function rt(e,r,t){return r===0&&t===e.length?J.fromByteArray(e):J.fromByteArray(e.slice(r,t))}function wr(e,r,t){t=Math.min(e.length,t);for(var i=[],n=r;n<t;){var o=e[n],u=null,h=o>239?4:o>223?3:o>191?2:1;if(n+h<=t){var f,c,l,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=e[n+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=e[n+1],c=e[n+2],(f&192)===128&&(c&192)===128&&(p=(o&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:f=e[n+1],c=e[n+2],l=e[n+3],(f&192)===128&&(c&192)===128&&(l&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|l&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|u&1023),i.push(u),n+=h}return tt(i)}var fr=4096;function tt(e){var r=e.length;if(r<=fr)return String.fromCharCode.apply(String,e);for(var t="",i=0;i<r;)t+=String.fromCharCode.apply(String,e.slice(i,i+=fr));return t}function et(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]&127);return i}function it(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]);return i}function nt(e,r,t){var i=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);for(var n="",o=r;o<t;++o)n+=pt[e[o]];return n}function ot(e,r,t){for(var i=e.slice(r,t),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}a.prototype.slice=function(r,t){var i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,a.prototype),n};function w(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return n};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r+--t],o=1;t>0&&(o*=256);)n+=this[r+--t]*o;return n};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n};a.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=t,o=1,u=this[r+--n];n>0&&(o*=256);)u+=this[r+--n]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!1,52,8)};function x(e,r,t,i,n,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(t+i>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;x(this,r,t,i,o,0)}var u=1,h=0;for(this[t]=r&255;++h<i&&(u*=256);)this[t+h]=r/u&255;return t+i};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;x(this,r,t,i,o,0)}var u=i-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+i};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);x(this,r,t,i,o-1,-o)}var u=0,h=1,f=0;for(this[t]=r&255;++u<i&&(h*=256);)r<0&&f===0&&this[t+u-1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);x(this,r,t,i,o-1,-o)}var u=i-1,h=1,f=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&f===0&&this[t+u+1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function yr(e,r,t,i,n,o){if(t+i>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function xr(e,r,t,i,n){return r=+r,t=t>>>0,n||yr(e,r,t,4,34028234663852886e22,-34028234663852886e22),R.write(e,r,t,i,23,4),t+4}a.prototype.writeFloatLE=function(r,t,i){return xr(this,r,t,!0,i)};a.prototype.writeFloatBE=function(r,t,i){return xr(this,r,t,!1,i)};function mr(e,r,t,i,n){return r=+r,t=t>>>0,n||yr(e,r,t,8,17976931348623157e292,-17976931348623157e292),R.write(e,r,t,i,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,i){return mr(this,r,t,!0,i)};a.prototype.writeDoubleBE=function(r,t,i){return mr(this,r,t,!1,i)};a.prototype.copy=function(r,t,i,n){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-i&&(n=r.length-t+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),t),o};a.prototype.fill=function(r,t,i,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<i;++u)this[u]=r;else{var h=a.isBuffer(r)?r:a.from(r,n),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<i-t;++u)this[u+t]=h[u%f]}return this};var ut=/[^+/0-9A-Za-z-_]/g;function at(e){if(e=e.split("=")[0],e=e.trim().replace(ut,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function K(e,r){r=r||1/0;for(var t,i=e.length,n=null,o=[],u=0;u<i;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ht(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function ft(e,r){for(var t,i,n,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),i=t>>8,n=t%256,o.push(n),o.push(i);return o}function Er(e){return J.toByteArray(at(e))}function Y(e,r,t,i){for(var n=0;n<i&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function P(e){return e!==e}var pt=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var i=t*16,n=0;n<16;++n)r[i+n]=e[t]+e[n];return r}()});var Tr=N((Bt,vr)=>{F();var s=vr.exports={},A,v;function j(){throw new Error("setTimeout has not been defined")}function rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=j}catch(e){A=j}try{typeof clearTimeout=="function"?v=clearTimeout:v=rr}catch(e){v=rr}})();function gr(e){if(A===setTimeout)return setTimeout(e,0);if((A===j||!A)&&setTimeout)return A=setTimeout,setTimeout(e,0);try{return A(e,0)}catch(r){try{return A.call(null,e,0)}catch(t){return A.call(this,e,0)}}}function ct(e){if(v===clearTimeout)return clearTimeout(e);if((v===rr||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var U=[],M=!1,L,q=-1;function lt(){!M||!L||(M=!1,L.length?U=L.concat(U):q=-1,U.length&&Br())}function Br(){if(!M){var e=gr(lt);M=!0;for(var r=U.length;r;){for(L=U,U=[];++q<r;)L&&L[q].run();q=-1,r=U.length}L=null,M=!1,ct(e)}}s.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];U.push(new Ar(e,r)),U.length===1&&!M&&gr(Br)};function Ar(e,r){this.fun=e,this.array=r}Ar.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function I(){}s.on=I;s.addListener=I;s.once=I;s.off=I;s.removeListener=I;s.removeAllListeners=I;s.emit=I;s.prependListener=I;s.prependOnceListener=I;s.listeners=function(e){return[]};s.binding=function(e){throw new Error("process.binding is not supported")};s.cwd=function(){return"/"};s.chdir=function(e){throw new Error("process.chdir is not supported")};s.umask=function(){return 0}});var b,k,At,F=_r(()=>{b=er(Fr()),k=er(Tr()),At=function(e){function r(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var wt={};Mr(wt,{getHumanReadableTimeFormat:()=>st});module.exports=br(wt);F();function st({value:e,noSeconds:r,utc:t,meridiem:i=!0}){let n=new Date(e*1e3),[,o]=n.toLocaleString("en-US",{hour:"numeric",hour12:i}).split(" "),u=n.toUTCString(),[,h]=u.split(","),[f,c,l,p]=h.trim().split(" "),[m,y,d]=p.split(":"),G=`:${d}`,Ur=`${m}:${y}${r?"":G}`,Ir=`${i?o:""} ${t?"UTC":""}`.trim();return`${c} ${f}, ${l} ${Ur} ${Ir}`.trim()}0&&(module.exports={getHumanReadableTimeFormat});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,5 +1,5 @@
1
- "use strict";var Gr=Object.create;var Z=Object.defineProperty,Hr=Object.defineProperties,zr=Object.getOwnPropertyDescriptor,jr=Object.getOwnPropertyDescriptors,qr=Object.getOwnPropertyNames,Ce=Object.getOwnPropertySymbols,Wr=Object.getPrototypeOf,Be=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable;var Oe=(t,e,r)=>e in t?Z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ne=(t,e)=>{for(var r in e||(e={}))Be.call(e,r)&&Oe(t,r,e[r]);if(Ce)for(var r of Ce(e))Yr.call(e,r)&&Oe(t,r,e[r]);return t},ie=(t,e)=>Hr(t,jr(e));var Zr=(t,e)=>()=>(t&&(e=t(t=0)),e);var oe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Kr=(t,e)=>{for(var r in e)Z(t,r,{get:e[r],enumerable:!0})},Ue=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of qr(e))!Be.call(t,i)&&i!==r&&Z(t,i,{get:()=>e[i],enumerable:!(n=zr(e,i))||n.enumerable});return t};var U=(t,e,r)=>(r=t!=null?Gr(Wr(t)):{},Ue(e||!t||!t.__esModule?Z(r,"default",{value:t,enumerable:!0}):r,t)),Xr=t=>Ue(Z({},"__esModule",{value:!0}),t);var $e=oe(ae=>{"use strict";s();ae.byteLength=Qr;ae.toByteArray=rt;ae.fromByteArray=it;var N=[],I=[],Jr=typeof Uint8Array!="undefined"?Uint8Array:Array,de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for($=0,Pe=de.length;$<Pe;++$)N[$]=de[$],I[de.charCodeAt($)]=$;var $,Pe;I["-".charCodeAt(0)]=62;I["_".charCodeAt(0)]=63;function Me(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 Qr(t){var e=Me(t),r=e[0],n=e[1];return(r+n)*3/4-n}function et(t,e,r){return(e+r)*3/4-r}function rt(t){var e,r=Me(t),n=r[0],i=r[1],o=new Jr(et(t,n,i)),a=0,c=i>0?n-4:n,u;for(u=0;u<c;u+=4)e=I[t.charCodeAt(u)]<<18|I[t.charCodeAt(u+1)]<<12|I[t.charCodeAt(u+2)]<<6|I[t.charCodeAt(u+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=I[t.charCodeAt(u)]<<2|I[t.charCodeAt(u+1)]>>4,o[a++]=e&255),i===1&&(e=I[t.charCodeAt(u)]<<10|I[t.charCodeAt(u+1)]<<4|I[t.charCodeAt(u+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function tt(t){return N[t>>18&63]+N[t>>12&63]+N[t>>6&63]+N[t&63]}function nt(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(tt(n));return i.join("")}function it(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(nt(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(N[e>>2]+N[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(N[e>>10]+N[e>>4&63]+N[e<<2&63]+"=")),i.join("")}});var Ve=oe(fe=>{s();fe.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,u=(1<<c)-1,d=u>>1,h=-7,f=r?i-1:0,y=r?-1:1,T=t[e+f];for(f+=y,o=T&(1<<-h)-1,T>>=-h,h+=c;h>0;o=o*256+t[e+f],f+=y,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=a*256+t[e+f],f+=y,h-=8);if(o===0)o=1-d;else{if(o===u)return a?NaN:(T?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-d}return(T?-1:1)*a*Math.pow(2,o-n)};fe.write=function(t,e,r,n,i,o){var a,c,u,d=o*8-i-1,h=(1<<d)-1,f=h>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:o-1,b=n?1:-1,B=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+f>=1?e+=y/u:e+=y*Math.pow(2,1-f),e*u>=2&&(a++,u/=2),a+f>=h?(c=0,a=h):a+f>=1?(c=(e*u-1)*Math.pow(2,i),a=a+f):(c=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[r+T]=c&255,T+=b,c/=256,i-=8);for(a=a<<i|c,d+=i;d>0;t[r+T]=a&255,T+=b,a/=256,d-=8);t[r+T-b]|=B*128}});var er=oe(j=>{"use strict";s();var he=$e(),z=Ve(),Ge=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;j.Buffer=l;j.SlowBuffer=ut;j.INSPECT_MAX_BYTES=50;var se=2147483647;j.kMaxLength=se;l.TYPED_ARRAY_SUPPORT=ot();!l.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 ot(){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(l.prototype,"parent",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.buffer}});Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.byteOffset}});function R(t){if(t>se)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(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 we(t)}return je(t,e,r)}l.poolSize=8192;function je(t,e,r){if(typeof t=="string")return st(t,e);if(ArrayBuffer.isView(t))return lt(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(S(t,ArrayBuffer)||t&&S(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(S(t,SharedArrayBuffer)||t&&S(t.buffer,SharedArrayBuffer)))return Te(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 l.from(n,e,r);var i=ct(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return l.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)}l.from=function(t,e,r){return je(t,e,r)};Object.setPrototypeOf(l.prototype,Uint8Array.prototype);Object.setPrototypeOf(l,Uint8Array);function qe(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 at(t,e,r){return qe(t),t<=0?R(t):e!==void 0?typeof r=="string"?R(t).fill(e,r):R(t).fill(e):R(t)}l.alloc=function(t,e,r){return at(t,e,r)};function we(t){return qe(t),R(t<0?0:be(t)|0)}l.allocUnsafe=function(t){return we(t)};l.allocUnsafeSlow=function(t){return we(t)};function st(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=We(t,e)|0,n=R(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ye(t){for(var e=t.length<0?0:be(t.length)|0,r=R(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function lt(t){if(S(t,Uint8Array)){var e=new Uint8Array(t);return Te(e.buffer,e.byteOffset,e.byteLength)}return ye(t)}function Te(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,l.prototype),n}function ct(t){if(l.isBuffer(t)){var e=be(t.length)|0,r=R(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ve(t.length)?R(0):ye(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ye(t.data)}function be(t){if(t>=se)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+se.toString(16)+" bytes");return t|0}function ut(t){return+t!=t&&(t=0),l.alloc(+t)}l.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==l.prototype};l.compare=function(e,r){if(S(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),S(r,Uint8Array)&&(r=l.from(r,r.offset,r.byteLength)),!l.isBuffer(e)||!l.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,a=Math.min(n,i);o<a;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};l.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}};l.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return l.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=l.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[n];if(S(a,Uint8Array))o+a.length>i.length?l.from(a).copy(i,o):Uint8Array.prototype.set.call(i,a,o);else if(l.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function We(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||S(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 xe(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:xe(t).length;e=(""+e).toLowerCase(),i=!0}}l.byteLength=We;function pt(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 bt(this,e,r);case"utf8":case"utf-8":return Ze(this,e,r);case"ascii":return xt(this,e,r);case"latin1":case"binary":return wt(this,e,r);case"base64":return yt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vt(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}l.prototype._isBuffer=!0;function V(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}l.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)V(this,r,r+1);return this};l.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)V(this,r,r+3),V(this,r+1,r+2);return this};l.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)V(this,r,r+7),V(this,r+1,r+6),V(this,r+2,r+5),V(this,r+3,r+4);return this};l.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Ze(this,0,e):pt.apply(this,arguments)};l.prototype.toLocaleString=l.prototype.toString;l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:l.compare(this,e)===0};l.prototype.inspect=function(){var e="",r=j.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Ge&&(l.prototype[Ge]=l.prototype.inspect);l.prototype.compare=function(e,r,n,i,o){if(S(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.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 a=o-i,c=n-r,u=Math.min(a,c),d=this.slice(i,o),h=e.slice(r,n),f=0;f<u;++f)if(d[f]!==h[f]){a=d[f],c=h[f];break}return a<c?-1:c<a?1:0};function Ye(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,ve(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=l.from(e,n)),l.isBuffer(e))return e.length===0?-1:He(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):He(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function He(t,e,r,n,i){var o=1,a=t.length,c=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,a/=2,c/=2,r/=2}function u(T,b){return o===1?T[b]:T.readUInt16BE(b*o)}var d;if(i){var h=-1;for(d=r;d<a;d++)if(u(t,d)===u(e,h===-1?0:d-h)){if(h===-1&&(h=d),d-h+1===c)return h*o}else h!==-1&&(d-=d-h),h=-1}else for(r+c>a&&(r=a-c),d=r;d>=0;d--){for(var f=!0,y=0;y<c;y++)if(u(t,d+y)!==u(e,y)){f=!1;break}if(f)return d}return-1}l.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};l.prototype.indexOf=function(e,r,n){return Ye(this,e,r,n,!0)};l.prototype.lastIndexOf=function(e,r,n){return Ye(this,e,r,n,!1)};function mt(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 a=0;a<n;++a){var c=parseInt(e.substr(a*2,2),16);if(ve(c))return a;t[r+a]=c}return a}function gt(t,e,r,n){return le(xe(e,t.length-r),t,r,n)}function dt(t,e,r,n){return le(Et(e),t,r,n)}function ft(t,e,r,n){return le(Qe(e),t,r,n)}function ht(t,e,r,n){return le(At(e,t.length-r),t,r,n)}l.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 a=!1;;)switch(i){case"hex":return mt(this,e,r,n);case"utf8":case"utf-8":return gt(this,e,r,n);case"ascii":case"latin1":case"binary":return dt(this,e,r,n);case"base64":return ft(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ht(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function yt(t,e,r){return e===0&&r===t.length?he.fromByteArray(t):he.fromByteArray(t.slice(e,r))}function Ze(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,c=o>239?4:o>223?3:o>191?2:1;if(i+c<=r){var u,d,h,f;switch(c){case 1:o<128&&(a=o);break;case 2:u=t[i+1],(u&192)===128&&(f=(o&31)<<6|u&63,f>127&&(a=f));break;case 3:u=t[i+1],d=t[i+2],(u&192)===128&&(d&192)===128&&(f=(o&15)<<12|(u&63)<<6|d&63,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:u=t[i+1],d=t[i+2],h=t[i+3],(u&192)===128&&(d&192)===128&&(h&192)===128&&(f=(o&15)<<18|(u&63)<<12|(d&63)<<6|h&63,f>65535&&f<1114112&&(a=f))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=c}return Tt(n)}var ze=4096;function Tt(t){var e=t.length;if(e<=ze)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=ze));return r}function xt(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 wt(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 bt(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+=Nt[t[o]];return i}function vt(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}l.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,l.prototype),i};function w(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")}l.prototype.readUintLE=l.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};l.prototype.readUintBE=l.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};l.prototype.readUint8=l.prototype.readUInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]};l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]|this[e+1]<<8};l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]<<8|this[e+1]};l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};l.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};l.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};l.prototype.readInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};l.prototype.readInt16LE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};l.prototype.readInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};l.prototype.readFloatLE=function(e,r){return e=e>>>0,r||w(e,4,this.length),z.read(this,e,!0,23,4)};l.prototype.readFloatBE=function(e,r){return e=e>>>0,r||w(e,4,this.length),z.read(this,e,!1,23,4)};l.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||w(e,8,this.length),z.read(this,e,!0,52,8)};l.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||w(e,8,this.length),z.read(this,e,!1,52,8)};function v(t,e,r,n,i,o){if(!l.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")}l.prototype.writeUintLE=l.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;v(this,e,r,n,o,0)}var a=1,c=0;for(this[r]=e&255;++c<n&&(a*=256);)this[r+c]=e/a&255;return r+n};l.prototype.writeUintBE=l.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;v(this,e,r,n,o,0)}var a=n-1,c=1;for(this[r+a]=e&255;--a>=0&&(c*=256);)this[r+a]=e/c&255;return r+n};l.prototype.writeUint8=l.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,1,255,0),this[r]=e&255,r+1};l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||v(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};l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||v(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};l.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);v(this,e,r,n,o-1,-o)}var a=0,c=1,u=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&u===0&&this[r+a-1]!==0&&(u=1),this[r+a]=(e/c>>0)-u&255;return r+n};l.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);v(this,e,r,n,o-1,-o)}var a=n-1,c=1,u=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&u===0&&this[r+a+1]!==0&&(u=1),this[r+a]=(e/c>>0)-u&255;return r+n};l.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};l.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};l.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};l.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||v(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};l.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||v(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 Ke(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 Xe(t,e,r,n,i){return e=+e,r=r>>>0,i||Ke(t,e,r,4,34028234663852886e22,-34028234663852886e22),z.write(t,e,r,n,23,4),r+4}l.prototype.writeFloatLE=function(e,r,n){return Xe(this,e,r,!0,n)};l.prototype.writeFloatBE=function(e,r,n){return Xe(this,e,r,!1,n)};function Je(t,e,r,n,i){return e=+e,r=r>>>0,i||Ke(t,e,r,8,17976931348623157e292,-17976931348623157e292),z.write(t,e,r,n,52,8),r+8}l.prototype.writeDoubleLE=function(e,r,n){return Je(this,e,r,!0,n)};l.prototype.writeDoubleBE=function(e,r,n){return Je(this,e,r,!1,n)};l.prototype.copy=function(e,r,n,i){if(!l.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};l.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"&&!l.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 a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var c=l.isBuffer(e)?e:l.from(e,i),u=c.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%u]}return this};var kt=/[^+/0-9A-Za-z-_]/g;function It(t){if(t=t.split("=")[0],t=t.trim().replace(kt,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function xe(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+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 Et(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function At(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Qe(t){return he.toByteArray(It(t))}function le(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 S(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ve(t){return t!==t}var Nt=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 or=oe((Kt,ir)=>{s();var x=ir.exports={},D,_;function ke(){throw new Error("setTimeout has not been defined")}function Ie(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?D=setTimeout:D=ke}catch(t){D=ke}try{typeof clearTimeout=="function"?_=clearTimeout:_=Ie}catch(t){_=Ie}})();function rr(t){if(D===setTimeout)return setTimeout(t,0);if((D===ke||!D)&&setTimeout)return D=setTimeout,setTimeout(t,0);try{return D(t,0)}catch(e){try{return D.call(null,t,0)}catch(r){return D.call(this,t,0)}}}function St(t){if(_===clearTimeout)return clearTimeout(t);if((_===Ie||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(t);try{return _(t)}catch(e){try{return _.call(null,t)}catch(r){return _.call(this,t)}}}var F=[],q=!1,G,ce=-1;function Dt(){!q||!G||(q=!1,G.length?F=G.concat(F):ce=-1,F.length&&tr())}function tr(){if(!q){var t=rr(Dt);q=!0;for(var e=F.length;e;){for(G=F,F=[];++ce<e;)G&&G[ce].run();ce=-1,e=F.length}G=null,q=!1,St(t)}}x.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];F.push(new nr(t,e)),F.length===1&&!q&&rr(tr)};function nr(t,e){this.fun=t,this.array=e}nr.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function L(){}x.on=L;x.addListener=L;x.once=L;x.off=L;x.removeListener=L;x.removeAllListeners=L;x.emit=L;x.prependListener=L;x.prependOnceListener=L;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var p,m,Xt,s=Zr(()=>{p=U(er()),m=U(or()),Xt=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 zt={};Kr(zt,{explorerUrlBuilder:()=>K,getExplorerLink:()=>Ct,getHumanReadableTimeFormat:()=>Bt,getOperationsMessages:()=>Ut,getReceiptMessage:()=>Mt,getTransactionMethod:()=>Ft,getTransactionReceiver:()=>De,getTransactionReceiverAssets:()=>_t,getTransactionTokens:()=>Se,getTransactionTransferType:()=>Ot,getTransactionValue:()=>Ht});module.exports=Xr(zt);s();s();s();var P="accounts",H="transactions";var W="tokens",ar="blocks";var sr="nodes",lr="identities",cr="collections",Ee="nfts",Ae="providers",Ne="sc-results",ur="contracts",pr="logs",mr="code",gr="locked-accounts",dr="roles";var K={shard:t=>`/${ar}?shard=${t}`,receiverShard:t=>`/${H}?receivershard=${t}`,senderShard:t=>`/${H}?sendershard=${t}`,transactionDetails:t=>`/${H}/${t}`,transactionDetailsScResults:t=>`/${H}/${t}/${Ne}`,transactionDetailsLogs:t=>`/${H}/${t}/${pr}`,nodeDetails:t=>`/${sr}/${t}`,accountDetails:t=>`/${P}/${t}`,accountDetailsContractCode:t=>`/${P}/${t}/${mr}`,accountDetailsTokens:t=>`/${P}/${t}/${W}`,accountDetailsNfts:t=>`/${P}/${t}/${Ee}`,accountDetailsScResults:t=>`/${P}/${t}/${Ne}`,accountDetailsContracts:t=>`/${P}/${t}/${ur}`,identityDetails:t=>`/${lr}/${t}`,tokenDetails:t=>`/${W}/${t}`,tokenDetailsAccounts:t=>`/${W}/${t}/${P}`,tokenDetailsLockedAccounts:t=>`/${W}/${t}/${gr}`,tokenDetailsRoles:t=>`/${W}/${t}/${dr}`,collectionDetails:t=>`/${cr}/${t}`,nftDetails:t=>`/${Ee}/${t}`,providerDetails:t=>`/${Ae}/${t}`,providerDetailsTransactions:t=>`/${Ae}/${t}/${H}`};s();var Se=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(c=>c!=null);return[].concat(...o)}return[]};s();s();function De(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 _t(t){let e=De(t);return t.receiver===e?t.receiverAssets:void 0}s();s();var _e=(n=>(n.nft="nft",n.esdt="esdt",n.egld="egld",n))(_e||{});var Ft=t=>{var n,i,o,a,c,u;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"&&((a=t.action)==null?void 0:a.name)==="transfer"?e="Transaction":t.action&&(e=t.action.name),(u=(c=t.action)==null?void 0:c.arguments)!=null&&u.functionName&&(e=t.action.arguments.functionName)),e};s();var fr=!1;function Lt(t){fr||(console.error(t),fr=!0)}function Ct({explorerAddress:t,to:e}){try{return new URL(e).href}catch(r){return e.startsWith("/")||(Lt(`Link not prepended by / : ${e}`),e=`/${e}`),t?`${t}${e}`:e}}s();function Ot(t,e,r){let n=t===e.sender,i=t===r,o=n&&i,a=(e==null?void 0:e.type)==="SmartContractResult";switch(!0){case a:return"Internal";case o:return"Self";case i:return"In";case n:default:return"Out"}}s();function Bt({value:t,noSeconds:e,utc:r}){let n=new Date(t*1e3),[,i]=n.toLocaleString("en-US",{hour:"numeric",hour12:!0}).split(" "),o=n.toUTCString(),[,a]=o.split(","),[c,u,d,h]=a.trim().split(" "),[f,y,T]=h.split(":"),b=`:${T}`,B=`${f}:${y}${e?"":b}`;return`${u} ${c}, ${d} ${B} ${i}${r?" UTC":""}`}s();function Ut(t){var e,r;return(r=(e=t==null?void 0:t.operations)==null?void 0:e.map(n=>n.message).filter(n=>Boolean(n)))!=null?r:[]}s();var vr=U(require("bignumber.js"));s();s();s();s();s();s();s();s();s();s();s();s();var Re={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:hr,egldLabel:Bn}=Re["devnet"],{chainId:yr,egldLabel:Un}=Re["testnet"],{chainId:Tr,egldLabel:Pn}=Re["mainnet"];var Mn={["devnet"]:hr,["testnet"]:yr,["mainnet"]:Tr},$n={[hr]:"devnet",[yr]:"testnet",[Tr]:"mainnet"};s();s();s();var k=18,X=4;var xr="refundedGas";var ue="0";s();var br=require("@multiversx/sdk-core"),M=U(require("bignumber.js"));s();var wr=U(require("bignumber.js")),Fe=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new wr.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};s();function C(t){return{if:function(e){return e?{then:r=>r instanceof Function?C(r(t)):C(r)}:{then:()=>C(t)}},then:e=>e instanceof Function?C(e(t)):C(e),valueOf:function(){return t}}}M.default.config({ROUNDING_MODE:M.default.ROUND_FLOOR});function O({input:t,decimals:e=k,digits:r=X,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:o=!1}){if(!Fe(t,!1))throw new Error("Invalid input");let a=new M.default(t).isNegative(),c=t;return a&&(c=t.substring(1)),C(c).then(()=>br.TokenPayment.fungibleFromBigInteger("",c,e).toRationalNumber()).then(u=>{let d=new M.default(u);if(d.isZero())return ue;let h=d.toString(10),[f,y]=h.split("."),T=new M.default(y||0),b=C(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(T.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),B=y&&r>=1&&r<=y.length&&T.isGreaterThan(0)&&new M.default(y.substring(0,r)).isZero(),Q=d.toFormat(b);return C(h).if(o).then(Q).if(Boolean(B)).then(ee=>{let Y=new M.default(f).isZero(),[A,re]=ee.split("."),te=new Array(r-1).fill(0),$r=[...te,0].join(""),Vr=[...te,1].join("");return Y?i?`<${A}.${Vr}`:n?`${A}.${re}`:A:`${A}.${$r}`}).if(Boolean(!B&&y)).then(ee=>{let[Y]=ee.split("."),A=y.substring(0,b);if(n){let re=r-A.length;if(re>0){let te=Array(re).fill(0).join("");return A=`${A}${te}`,`${Y}.${A}`}return ee}return A?`${Y}.${A}`:Y}).valueOf()}).if(a).then(u=>`-${u}`).valueOf()}var Pt=t=>{var e,r;if(!((e=t.receipt)!=null&&e.value))return"";if(((r=t.receipt)==null?void 0:r.data)===xr){let n=O({input:t.receipt.value,decimals:k,digits:X,showLastNonZeroDecimal:!0});return new vr.default(n).times(t.gasPrice).times(100).toFixed()}return t.receipt.value};function Mt(t){var i;let e=(i=t.receipt)==null?void 0:i.data;if(!e)return"";let r=Pt(t),n=r?`: ${r}`:"";return`${e}${n}`}s();s();s();s();var pe=(n=>(n.NonFungibleESDT="NonFungibleESDT",n.SemiFungibleESDT="SemiFungibleESDT",n.MetaESDT="MetaESDT",n))(pe||{});s();s();s();s();s();var $t=require("@multiversx/sdk-core");s();var J=require("@multiversx/sdk-core"),Gt=require("@multiversx/sdk-network-providers");s();s();var Vt=U(require("bignumber.js"));s();s();var Le={isEsdt:!1,isNft:!1,isEgld:!1};function kr(t){let e=t==null?void 0:t.split("-").length;return e===2?ie(ne({},Le),{isEsdt:!0}):e===3?ie(ne({},Le),{isNft:!0}):ie(ne({},Le),{isEgld:!0})}s();s();s();function me({token:t,noValue:e,showLastNonZeroDecimal:r}){var d;let n=!e&&t.value&&t.type!=="NonFungibleESDT",i=t.decimals!=null,o="";t.type==="NonFungibleESDT"&&(o="NFT"),t.type==="SemiFungibleESDT"&&(o="SFT"),t.type==="MetaESDT"&&(o="Meta-ESDT");let a="";n&&i&&(a=i?O({input:t.value,decimals:t.decimals,digits:2,showLastNonZeroDecimal:r}):Number(t.value).toLocaleString("en"));let c=K.nftDetails(String(t.identifier)),u=t.ticker===t.collection&&(d=t.identifier)!=null?d:t.ticker;return{badgeText:o,tokenFormattedAmount:n?a:null,tokenExplorerLink:c,tokenLinkText:u,token:t,noValue:e,showLastNonZeroDecimal:r}}s();function ge({token:t,noValue:e,showLastNonZeroDecimal:r}){var c;let n=Boolean(!e&&t.value),i=n?O({input:t.value,decimals:(c=t.decimals)!=null?c:k,digits:2,showLastNonZeroDecimal:r,addCommas:!0}):null,o=K.tokenDetails(String(t.token)),a=t.ticker;return{tokenExplorerLink:o,tokenFormattedAmount:i,showFormattedAmount:n,tokenLinkText:a,token:t,showLastNonZeroDecimal:r}}s();var Ir=["reDelegateRewards","claimRewards","unBond"],Er=["wrapEgld","unwrapEgld"],Ar=["unStake"],Nr=["unDelegate"];s();s();var Sr=t=>{let e=t.map(n=>{let{isNft:i}=kr(n.type);if(i){let{badgeText:h,tokenFormattedAmount:f,tokenLinkText:y}=me({token:n});return`${h!=null?`(${h}) `:""}${f} ${y}`}let{tokenFormattedAmount:o,tokenLinkText:a,token:c}=ge({token:n}),u=c.collection?c.identifier:c.token;return`${o} ${a} (${u})`});return decodeURI(e.join("%0A"))};s();var E=t=>({egldValueData:{value:t,formattedValue:O({input:t}),decimals:k}});s();var Rr=U(require("bignumber.js"));s();s();s();s();function Dr(t){return atob(t)}var _r=!1;function Fr(t){var e;try{let n=Dr(t.data).replace(`${(e=t.action)==null?void 0:e.name}@`,""),i=new Rr.default(n,16);if(!i.isNaN())return E(i.toString(10))}catch(r){_r||(console.error(`Unable to extract value for txHash: ${t.txHash}`),_r=!0)}return E(t.value)}s();s();var Lr=t=>{var r,n;return(n=(r=t==null?void 0:t.operations)==null?void 0:r.filter(i=>Object.values(_e).includes(i.type)))!=null?n:[]};var Cr=!1,Or=t=>{Cr||(console.error(`Operations field missing for txHash: ${t}.
2
- Unable to compute value field.`),Cr=!0)};function Br(t){try{if(t.operations){let[e]=Lr(t);return E(e==null?void 0:e.value)}else Or(t.txHash)}catch(e){Or(t.txHash)}return E(t.value)}s();var Pr=U(require("bignumber.js"));var Ur=!1;function Mr(t){var r,n,i,o,a;return new Pr.default((n=(r=t.action)==null?void 0:r.arguments)==null?void 0:n.value).isNaN()?(Ur||(console.error(`Unable to interpret ${(a=t.action)==null?void 0:a.name} data for txHash: ${t.txHash}`),Ur=!0),E(t.value)):E((o=(i=t.action)==null?void 0:i.arguments)==null?void 0:o.value)}var Ht=({transaction:t,hideMultipleBadge:e})=>{var r;if(t.action){if(Er.includes(t.action.name))return E(t.value);if(Ar.includes(t.action.name))return Fr(t);if(Ir.includes(t.action.name))return Br(t);if(Nr.includes(t.action.name))return Mr(t);let n=Se(t);if(n.length){let i=n[0],o=Object.values(pe).includes(i.type),c=!e&&n.length>1?Sr(n):"";if(o){let{badgeText:T,tokenFormattedAmount:b,tokenExplorerLink:B,tokenLinkText:Q}=me({token:i});return{nftValueData:{badgeText:T,tokenFormattedAmount:b,tokenExplorerLink:B,tokenLinkText:Q,transactionTokens:n,token:i,value:b!=null?i.value:null,decimals:b!=null?i.decimals:null,titleText:c}}}let{tokenExplorerLink:u,showFormattedAmount:d,tokenFormattedAmount:h,tokenLinkText:f,token:y}=ge({token:i});return{tokenValueData:{tokenExplorerLink:u,showFormattedAmount:d,tokenFormattedAmount:h,tokenLinkText:f,transactionTokens:n,token:y,value:i.value,decimals:(r=i.decimals)!=null?r:k,titleText:c}}}}return E(t.value)};0&&(module.exports={explorerUrlBuilder,getExplorerLink,getHumanReadableTimeFormat,getOperationsMessages,getReceiptMessage,getTransactionMethod,getTransactionReceiver,getTransactionReceiverAssets,getTransactionTokens,getTransactionTransferType,getTransactionValue});
1
+ "use strict";var Hr=Object.create;var X=Object.defineProperty,zr=Object.defineProperties,jr=Object.getOwnPropertyDescriptor,qr=Object.getOwnPropertyDescriptors,Wr=Object.getOwnPropertyNames,Ce=Object.getOwnPropertySymbols,Yr=Object.getPrototypeOf,Be=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable;var Oe=(t,e,r)=>e in t?X(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ne=(t,e)=>{for(var r in e||(e={}))Be.call(e,r)&&Oe(t,r,e[r]);if(Ce)for(var r of Ce(e))Zr.call(e,r)&&Oe(t,r,e[r]);return t},ie=(t,e)=>zr(t,qr(e));var Kr=(t,e)=>()=>(t&&(e=t(t=0)),e);var oe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Xr=(t,e)=>{for(var r in e)X(t,r,{get:e[r],enumerable:!0})},Ue=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Wr(e))!Be.call(t,i)&&i!==r&&X(t,i,{get:()=>e[i],enumerable:!(n=jr(e,i))||n.enumerable});return t};var U=(t,e,r)=>(r=t!=null?Hr(Yr(t)):{},Ue(e||!t||!t.__esModule?X(r,"default",{value:t,enumerable:!0}):r,t)),Jr=t=>Ue(X({},"__esModule",{value:!0}),t);var $e=oe(ae=>{"use strict";s();ae.byteLength=et;ae.toByteArray=tt;ae.fromByteArray=ot;var N=[],I=[],Qr=typeof Uint8Array!="undefined"?Uint8Array:Array,fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(V=0,Pe=fe.length;V<Pe;++V)N[V]=fe[V],I[fe.charCodeAt(V)]=V;var V,Pe;I["-".charCodeAt(0)]=62;I["_".charCodeAt(0)]=63;function Me(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 et(t){var e=Me(t),r=e[0],n=e[1];return(r+n)*3/4-n}function rt(t,e,r){return(e+r)*3/4-r}function tt(t){var e,r=Me(t),n=r[0],i=r[1],o=new Qr(rt(t,n,i)),a=0,c=i>0?n-4:n,u;for(u=0;u<c;u+=4)e=I[t.charCodeAt(u)]<<18|I[t.charCodeAt(u+1)]<<12|I[t.charCodeAt(u+2)]<<6|I[t.charCodeAt(u+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=I[t.charCodeAt(u)]<<2|I[t.charCodeAt(u+1)]>>4,o[a++]=e&255),i===1&&(e=I[t.charCodeAt(u)]<<10|I[t.charCodeAt(u+1)]<<4|I[t.charCodeAt(u+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function nt(t){return N[t>>18&63]+N[t>>12&63]+N[t>>6&63]+N[t&63]}function it(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(nt(n));return i.join("")}function ot(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(it(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(N[e>>2]+N[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(N[e>>10]+N[e>>4&63]+N[e<<2&63]+"=")),i.join("")}});var Ve=oe(de=>{s();de.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,u=(1<<c)-1,f=u>>1,h=-7,d=r?i-1:0,y=r?-1:1,T=t[e+d];for(d+=y,o=T&(1<<-h)-1,T>>=-h,h+=c;h>0;o=o*256+t[e+d],d+=y,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=a*256+t[e+d],d+=y,h-=8);if(o===0)o=1-f;else{if(o===u)return a?NaN:(T?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-f}return(T?-1:1)*a*Math.pow(2,o-n)};de.write=function(t,e,r,n,i,o){var a,c,u,f=o*8-i-1,h=(1<<f)-1,d=h>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:o-1,b=n?1:-1,B=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+d>=1?e+=y/u:e+=y*Math.pow(2,1-d),e*u>=2&&(a++,u/=2),a+d>=h?(c=0,a=h):a+d>=1?(c=(e*u-1)*Math.pow(2,i),a=a+d):(c=e*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;t[r+T]=c&255,T+=b,c/=256,i-=8);for(a=a<<i|c,f+=i;f>0;t[r+T]=a&255,T+=b,a/=256,f-=8);t[r+T-b]|=B*128}});var er=oe(q=>{"use strict";s();var he=$e(),j=Ve(),Ge=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=l;q.SlowBuffer=pt;q.INSPECT_MAX_BYTES=50;var se=2147483647;q.kMaxLength=se;l.TYPED_ARRAY_SUPPORT=at();!l.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 at(){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(l.prototype,"parent",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.buffer}});Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.byteOffset}});function R(t){if(t>se)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(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 we(t)}return je(t,e,r)}l.poolSize=8192;function je(t,e,r){if(typeof t=="string")return lt(t,e);if(ArrayBuffer.isView(t))return ct(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(S(t,ArrayBuffer)||t&&S(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(S(t,SharedArrayBuffer)||t&&S(t.buffer,SharedArrayBuffer)))return Te(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 l.from(n,e,r);var i=ut(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return l.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)}l.from=function(t,e,r){return je(t,e,r)};Object.setPrototypeOf(l.prototype,Uint8Array.prototype);Object.setPrototypeOf(l,Uint8Array);function qe(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 st(t,e,r){return qe(t),t<=0?R(t):e!==void 0?typeof r=="string"?R(t).fill(e,r):R(t).fill(e):R(t)}l.alloc=function(t,e,r){return st(t,e,r)};function we(t){return qe(t),R(t<0?0:be(t)|0)}l.allocUnsafe=function(t){return we(t)};l.allocUnsafeSlow=function(t){return we(t)};function lt(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=We(t,e)|0,n=R(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ye(t){for(var e=t.length<0?0:be(t.length)|0,r=R(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function ct(t){if(S(t,Uint8Array)){var e=new Uint8Array(t);return Te(e.buffer,e.byteOffset,e.byteLength)}return ye(t)}function Te(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,l.prototype),n}function ut(t){if(l.isBuffer(t)){var e=be(t.length)|0,r=R(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ve(t.length)?R(0):ye(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ye(t.data)}function be(t){if(t>=se)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+se.toString(16)+" bytes");return t|0}function pt(t){return+t!=t&&(t=0),l.alloc(+t)}l.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==l.prototype};l.compare=function(e,r){if(S(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),S(r,Uint8Array)&&(r=l.from(r,r.offset,r.byteLength)),!l.isBuffer(e)||!l.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,a=Math.min(n,i);o<a;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};l.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}};l.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return l.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=l.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[n];if(S(a,Uint8Array))o+a.length>i.length?l.from(a).copy(i,o):Uint8Array.prototype.set.call(i,a,o);else if(l.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function We(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||S(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 xe(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:xe(t).length;e=(""+e).toLowerCase(),i=!0}}l.byteLength=We;function mt(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 vt(this,e,r);case"utf8":case"utf-8":return Ze(this,e,r);case"ascii":return wt(this,e,r);case"latin1":case"binary":return bt(this,e,r);case"base64":return Tt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kt(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}l.prototype._isBuffer=!0;function G(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}l.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)G(this,r,r+1);return this};l.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)G(this,r,r+3),G(this,r+1,r+2);return this};l.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)G(this,r,r+7),G(this,r+1,r+6),G(this,r+2,r+5),G(this,r+3,r+4);return this};l.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Ze(this,0,e):mt.apply(this,arguments)};l.prototype.toLocaleString=l.prototype.toString;l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:l.compare(this,e)===0};l.prototype.inspect=function(){var e="",r=q.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Ge&&(l.prototype[Ge]=l.prototype.inspect);l.prototype.compare=function(e,r,n,i,o){if(S(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.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 a=o-i,c=n-r,u=Math.min(a,c),f=this.slice(i,o),h=e.slice(r,n),d=0;d<u;++d)if(f[d]!==h[d]){a=f[d],c=h[d];break}return a<c?-1:c<a?1:0};function Ye(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,ve(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=l.from(e,n)),l.isBuffer(e))return e.length===0?-1:He(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):He(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function He(t,e,r,n,i){var o=1,a=t.length,c=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,a/=2,c/=2,r/=2}function u(T,b){return o===1?T[b]:T.readUInt16BE(b*o)}var f;if(i){var h=-1;for(f=r;f<a;f++)if(u(t,f)===u(e,h===-1?0:f-h)){if(h===-1&&(h=f),f-h+1===c)return h*o}else h!==-1&&(f-=f-h),h=-1}else for(r+c>a&&(r=a-c),f=r;f>=0;f--){for(var d=!0,y=0;y<c;y++)if(u(t,f+y)!==u(e,y)){d=!1;break}if(d)return f}return-1}l.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};l.prototype.indexOf=function(e,r,n){return Ye(this,e,r,n,!0)};l.prototype.lastIndexOf=function(e,r,n){return Ye(this,e,r,n,!1)};function gt(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 a=0;a<n;++a){var c=parseInt(e.substr(a*2,2),16);if(ve(c))return a;t[r+a]=c}return a}function ft(t,e,r,n){return le(xe(e,t.length-r),t,r,n)}function dt(t,e,r,n){return le(At(e),t,r,n)}function ht(t,e,r,n){return le(Qe(e),t,r,n)}function yt(t,e,r,n){return le(Nt(e,t.length-r),t,r,n)}l.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 a=!1;;)switch(i){case"hex":return gt(this,e,r,n);case"utf8":case"utf-8":return ft(this,e,r,n);case"ascii":case"latin1":case"binary":return dt(this,e,r,n);case"base64":return ht(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yt(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};l.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?he.fromByteArray(t):he.fromByteArray(t.slice(e,r))}function Ze(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,c=o>239?4:o>223?3:o>191?2:1;if(i+c<=r){var u,f,h,d;switch(c){case 1:o<128&&(a=o);break;case 2:u=t[i+1],(u&192)===128&&(d=(o&31)<<6|u&63,d>127&&(a=d));break;case 3:u=t[i+1],f=t[i+2],(u&192)===128&&(f&192)===128&&(d=(o&15)<<12|(u&63)<<6|f&63,d>2047&&(d<55296||d>57343)&&(a=d));break;case 4:u=t[i+1],f=t[i+2],h=t[i+3],(u&192)===128&&(f&192)===128&&(h&192)===128&&(d=(o&15)<<18|(u&63)<<12|(f&63)<<6|h&63,d>65535&&d<1114112&&(a=d))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=c}return xt(n)}var ze=4096;function xt(t){var e=t.length;if(e<=ze)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=ze));return r}function wt(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 bt(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 vt(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+=St[t[o]];return i}function kt(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}l.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,l.prototype),i};function w(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")}l.prototype.readUintLE=l.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};l.prototype.readUintBE=l.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};l.prototype.readUint8=l.prototype.readUInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]};l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]|this[e+1]<<8};l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]<<8|this[e+1]};l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};l.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};l.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};l.prototype.readInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};l.prototype.readInt16LE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};l.prototype.readInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};l.prototype.readFloatLE=function(e,r){return e=e>>>0,r||w(e,4,this.length),j.read(this,e,!0,23,4)};l.prototype.readFloatBE=function(e,r){return e=e>>>0,r||w(e,4,this.length),j.read(this,e,!1,23,4)};l.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||w(e,8,this.length),j.read(this,e,!0,52,8)};l.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||w(e,8,this.length),j.read(this,e,!1,52,8)};function v(t,e,r,n,i,o){if(!l.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")}l.prototype.writeUintLE=l.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;v(this,e,r,n,o,0)}var a=1,c=0;for(this[r]=e&255;++c<n&&(a*=256);)this[r+c]=e/a&255;return r+n};l.prototype.writeUintBE=l.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;v(this,e,r,n,o,0)}var a=n-1,c=1;for(this[r+a]=e&255;--a>=0&&(c*=256);)this[r+a]=e/c&255;return r+n};l.prototype.writeUint8=l.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,1,255,0),this[r]=e&255,r+1};l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||v(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};l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||v(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};l.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);v(this,e,r,n,o-1,-o)}var a=0,c=1,u=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&u===0&&this[r+a-1]!==0&&(u=1),this[r+a]=(e/c>>0)-u&255;return r+n};l.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);v(this,e,r,n,o-1,-o)}var a=n-1,c=1,u=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&u===0&&this[r+a+1]!==0&&(u=1),this[r+a]=(e/c>>0)-u&255;return r+n};l.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};l.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};l.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};l.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||v(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};l.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||v(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 Ke(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 Xe(t,e,r,n,i){return e=+e,r=r>>>0,i||Ke(t,e,r,4,34028234663852886e22,-34028234663852886e22),j.write(t,e,r,n,23,4),r+4}l.prototype.writeFloatLE=function(e,r,n){return Xe(this,e,r,!0,n)};l.prototype.writeFloatBE=function(e,r,n){return Xe(this,e,r,!1,n)};function Je(t,e,r,n,i){return e=+e,r=r>>>0,i||Ke(t,e,r,8,17976931348623157e292,-17976931348623157e292),j.write(t,e,r,n,52,8),r+8}l.prototype.writeDoubleLE=function(e,r,n){return Je(this,e,r,!0,n)};l.prototype.writeDoubleBE=function(e,r,n){return Je(this,e,r,!1,n)};l.prototype.copy=function(e,r,n,i){if(!l.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};l.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"&&!l.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 a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var c=l.isBuffer(e)?e:l.from(e,i),u=c.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%u]}return this};var It=/[^+/0-9A-Za-z-_]/g;function Et(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 xe(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+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 Nt(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Qe(t){return he.toByteArray(Et(t))}function le(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 S(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ve(t){return t!==t}var St=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 or=oe((Kt,ir)=>{s();var x=ir.exports={},D,_;function ke(){throw new Error("setTimeout has not been defined")}function Ie(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?D=setTimeout:D=ke}catch(t){D=ke}try{typeof clearTimeout=="function"?_=clearTimeout:_=Ie}catch(t){_=Ie}})();function rr(t){if(D===setTimeout)return setTimeout(t,0);if((D===ke||!D)&&setTimeout)return D=setTimeout,setTimeout(t,0);try{return D(t,0)}catch(e){try{return D.call(null,t,0)}catch(r){return D.call(this,t,0)}}}function Dt(t){if(_===clearTimeout)return clearTimeout(t);if((_===Ie||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(t);try{return _(t)}catch(e){try{return _.call(null,t)}catch(r){return _.call(this,t)}}}var F=[],W=!1,H,ce=-1;function _t(){!W||!H||(W=!1,H.length?F=H.concat(F):ce=-1,F.length&&tr())}function tr(){if(!W){var t=rr(_t);W=!0;for(var e=F.length;e;){for(H=F,F=[];++ce<e;)H&&H[ce].run();ce=-1,e=F.length}H=null,W=!1,Dt(t)}}x.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];F.push(new nr(t,e)),F.length===1&&!W&&rr(tr)};function nr(t,e){this.fun=t,this.array=e}nr.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function L(){}x.on=L;x.addListener=L;x.once=L;x.off=L;x.removeListener=L;x.removeAllListeners=L;x.emit=L;x.prependListener=L;x.prependOnceListener=L;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var p,m,Xt,s=Kr(()=>{p=U(er()),m=U(or()),Xt=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var jt={};Xr(jt,{explorerUrlBuilder:()=>J,getExplorerLink:()=>Ot,getHumanReadableTimeFormat:()=>Ut,getOperationsMessages:()=>Pt,getReceiptMessage:()=>$t,getTransactionMethod:()=>Lt,getTransactionReceiver:()=>De,getTransactionReceiverAssets:()=>Rt,getTransactionTokens:()=>Se,getTransactionTransferType:()=>Bt,getTransactionValue:()=>zt});module.exports=Jr(jt);s();s();s();var P="accounts",z="transactions";var Y="tokens",ar="blocks";var sr="nodes",lr="identities",cr="collections",Ee="nfts",Ae="providers",Ne="sc-results",ur="contracts",pr="logs",mr="code",gr="locked-accounts",fr="roles";var J={shard:t=>`/${ar}?shard=${t}`,receiverShard:t=>`/${z}?receivershard=${t}`,senderShard:t=>`/${z}?sendershard=${t}`,transactionDetails:t=>`/${z}/${t}`,transactionDetailsScResults:t=>`/${z}/${t}/${Ne}`,transactionDetailsLogs:t=>`/${z}/${t}/${pr}`,nodeDetails:t=>`/${sr}/${t}`,accountDetails:t=>`/${P}/${t}`,accountDetailsContractCode:t=>`/${P}/${t}/${mr}`,accountDetailsTokens:t=>`/${P}/${t}/${Y}`,accountDetailsNfts:t=>`/${P}/${t}/${Ee}`,accountDetailsScResults:t=>`/${P}/${t}/${Ne}`,accountDetailsContracts:t=>`/${P}/${t}/${ur}`,identityDetails:t=>`/${lr}/${t}`,tokenDetails:t=>`/${Y}/${t}`,tokenDetailsAccounts:t=>`/${Y}/${t}/${P}`,tokenDetailsLockedAccounts:t=>`/${Y}/${t}/${gr}`,tokenDetailsRoles:t=>`/${Y}/${t}/${fr}`,collectionDetails:t=>`/${cr}/${t}`,nftDetails:t=>`/${Ee}/${t}`,providerDetails:t=>`/${Ae}/${t}`,providerDetailsTransactions:t=>`/${Ae}/${t}/${z}`};s();var Se=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(c=>c!=null);return[].concat(...o)}return[]};s();s();function De(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 Rt(t){let e=De(t);return t.receiver===e?t.receiverAssets:void 0}s();s();var _e=(n=>(n.nft="nft",n.esdt="esdt",n.egld="egld",n))(_e||{});var Lt=t=>{var n,i,o,a,c,u;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"&&((a=t.action)==null?void 0:a.name)==="transfer"?e="Transaction":t.action&&(e=t.action.name),(u=(c=t.action)==null?void 0:c.arguments)!=null&&u.functionName&&(e=t.action.arguments.functionName)),e};s();var dr=!1;function Ct(t){dr||(console.error(t),dr=!0)}function Ot({explorerAddress:t,to:e}){try{return new URL(e).href}catch(r){return e.startsWith("/")||(Ct(`Link not prepended by / : ${e}`),e=`/${e}`),t?`${t}${e}`:e}}s();function Bt(t,e,r){let n=t===e.sender,i=t===r,o=n&&i,a=(e==null?void 0:e.type)==="SmartContractResult";switch(!0){case a:return"Internal";case o:return"Self";case i:return"In";case n:default:return"Out"}}s();function Ut({value:t,noSeconds:e,utc:r,meridiem:n=!0}){let i=new Date(t*1e3),[,o]=i.toLocaleString("en-US",{hour:"numeric",hour12:n}).split(" "),a=i.toUTCString(),[,c]=a.split(","),[u,f,h,d]=c.trim().split(" "),[y,T,b]=d.split(":"),B=`:${b}`,Z=`${y}:${T}${e?"":B}`,$=`${n?o:""} ${r?"UTC":""}`.trim();return`${f} ${u}, ${h} ${Z} ${$}`.trim()}s();function Pt(t){var e,r;return(r=(e=t==null?void 0:t.operations)==null?void 0:e.map(n=>n.message).filter(n=>Boolean(n)))!=null?r:[]}s();var vr=U(require("bignumber.js"));s();s();s();s();s();s();s();s();s();s();s();s();var Re={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:hr,egldLabel:Bn}=Re["devnet"],{chainId:yr,egldLabel:Un}=Re["testnet"],{chainId:Tr,egldLabel:Pn}=Re["mainnet"];var Mn={["devnet"]:hr,["testnet"]:yr,["mainnet"]:Tr},$n={[hr]:"devnet",[yr]:"testnet",[Tr]:"mainnet"};s();s();s();var k=18,Q=4;var xr="refundedGas";var ue="0";s();var br=require("@multiversx/sdk-core"),M=U(require("bignumber.js"));s();var wr=U(require("bignumber.js")),Fe=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new wr.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};s();function C(t){return{if:function(e){return e?{then:r=>r instanceof Function?C(r(t)):C(r)}:{then:()=>C(t)}},then:e=>e instanceof Function?C(e(t)):C(e),valueOf:function(){return t}}}M.default.config({ROUNDING_MODE:M.default.ROUND_FLOOR});function O({input:t,decimals:e=k,digits:r=Q,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:o=!1}){if(!Fe(t,!1))throw new Error("Invalid input");let a=new M.default(t).isNegative(),c=t;return a&&(c=t.substring(1)),C(c).then(()=>br.TokenPayment.fungibleFromBigInteger("",c,e).toRationalNumber()).then(u=>{let f=new M.default(u);if(f.isZero())return ue;let h=f.toString(10),[d,y]=h.split("."),T=new M.default(y||0),b=C(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(T.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),B=y&&r>=1&&r<=y.length&&T.isGreaterThan(0)&&new M.default(y.substring(0,r)).isZero(),Z=f.toFormat(b);return C(h).if(o).then(Z).if(Boolean(B)).then(K=>{let $=new M.default(d).isZero(),[A,re]=K.split("."),te=new Array(r-1).fill(0),Vr=[...te,0].join(""),Gr=[...te,1].join("");return $?i?`<${A}.${Gr}`:n?`${A}.${re}`:A:`${A}.${Vr}`}).if(Boolean(!B&&y)).then(K=>{let[$]=K.split("."),A=y.substring(0,b);if(n){let re=r-A.length;if(re>0){let te=Array(re).fill(0).join("");return A=`${A}${te}`,`${$}.${A}`}return K}return A?`${$}.${A}`:$}).valueOf()}).if(a).then(u=>`-${u}`).valueOf()}var Mt=t=>{var e,r;if(!((e=t.receipt)!=null&&e.value))return"";if(((r=t.receipt)==null?void 0:r.data)===xr){let n=O({input:t.receipt.value,decimals:k,digits:Q,showLastNonZeroDecimal:!0});return new vr.default(n).times(t.gasPrice).times(100).toFixed()}return t.receipt.value};function $t(t){var i;let e=(i=t.receipt)==null?void 0:i.data;if(!e)return"";let r=Mt(t),n=r?`: ${r}`:"";return`${e}${n}`}s();s();s();s();var pe=(n=>(n.NonFungibleESDT="NonFungibleESDT",n.SemiFungibleESDT="SemiFungibleESDT",n.MetaESDT="MetaESDT",n))(pe||{});s();s();s();s();s();var Vt=require("@multiversx/sdk-core");s();var ee=require("@multiversx/sdk-core"),Ht=require("@multiversx/sdk-network-providers");s();s();var Gt=U(require("bignumber.js"));s();s();var Le={isEsdt:!1,isNft:!1,isEgld:!1};function kr(t){let e=t==null?void 0:t.split("-").length;return e===2?ie(ne({},Le),{isEsdt:!0}):e===3?ie(ne({},Le),{isNft:!0}):ie(ne({},Le),{isEgld:!0})}s();s();s();function me({token:t,noValue:e,showLastNonZeroDecimal:r}){var f;let n=!e&&t.value&&t.type!=="NonFungibleESDT",i=t.decimals!=null,o="";t.type==="NonFungibleESDT"&&(o="NFT"),t.type==="SemiFungibleESDT"&&(o="SFT"),t.type==="MetaESDT"&&(o="Meta-ESDT");let a="";n&&i&&(a=i?O({input:t.value,decimals:t.decimals,digits:2,showLastNonZeroDecimal:r}):Number(t.value).toLocaleString("en"));let c=J.nftDetails(String(t.identifier)),u=t.ticker===t.collection&&(f=t.identifier)!=null?f:t.ticker;return{badgeText:o,tokenFormattedAmount:n?a:null,tokenExplorerLink:c,tokenLinkText:u,token:t,noValue:e,showLastNonZeroDecimal:r}}s();function ge({token:t,noValue:e,showLastNonZeroDecimal:r}){var c;let n=Boolean(!e&&t.value),i=n?O({input:t.value,decimals:(c=t.decimals)!=null?c:k,digits:2,showLastNonZeroDecimal:r,addCommas:!0}):null,o=J.tokenDetails(String(t.token)),a=t.ticker;return{tokenExplorerLink:o,tokenFormattedAmount:i,showFormattedAmount:n,tokenLinkText:a,token:t,showLastNonZeroDecimal:r}}s();var Ir=["reDelegateRewards","claimRewards","unBond"],Er=["wrapEgld","unwrapEgld"],Ar=["unStake"],Nr=["unDelegate"];s();s();var Sr=t=>{let e=t.map(n=>{let{isNft:i}=kr(n.type);if(i){let{badgeText:h,tokenFormattedAmount:d,tokenLinkText:y}=me({token:n});return`${h!=null?`(${h}) `:""}${d} ${y}`}let{tokenFormattedAmount:o,tokenLinkText:a,token:c}=ge({token:n}),u=c.collection?c.identifier:c.token;return`${o} ${a} (${u})`});return decodeURI(e.join("%0A"))};s();var E=t=>({egldValueData:{value:t,formattedValue:O({input:t}),decimals:k}});s();var Rr=U(require("bignumber.js"));s();s();s();s();function Dr(t){return atob(t)}var _r=!1;function Fr(t){var e;try{let n=Dr(t.data).replace(`${(e=t.action)==null?void 0:e.name}@`,""),i=new Rr.default(n,16);if(!i.isNaN())return E(i.toString(10))}catch(r){_r||(console.error(`Unable to extract value for txHash: ${t.txHash}`),_r=!0)}return E(t.value)}s();s();var Lr=t=>{var r,n;return(n=(r=t==null?void 0:t.operations)==null?void 0:r.filter(i=>Object.values(_e).includes(i.type)))!=null?n:[]};var Cr=!1,Or=t=>{Cr||(console.error(`Operations field missing for txHash: ${t}.
2
+ Unable to compute value field.`),Cr=!0)};function Br(t){try{if(t.operations){let[e]=Lr(t);return E(e==null?void 0:e.value)}else Or(t.txHash)}catch(e){Or(t.txHash)}return E(t.value)}s();var Pr=U(require("bignumber.js"));var Ur=!1;function Mr(t){var r,n,i,o,a;return new Pr.default((n=(r=t.action)==null?void 0:r.arguments)==null?void 0:n.value).isNaN()?(Ur||(console.error(`Unable to interpret ${(a=t.action)==null?void 0:a.name} data for txHash: ${t.txHash}`),Ur=!0),E(t.value)):E((o=(i=t.action)==null?void 0:i.arguments)==null?void 0:o.value)}var zt=({transaction:t,hideMultipleBadge:e})=>{var r;if(t.action){if(Er.includes(t.action.name))return E(t.value);if(Ar.includes(t.action.name))return Fr(t);if(Ir.includes(t.action.name))return Br(t);if(Nr.includes(t.action.name))return Mr(t);let n=Se(t);if(n.length){let i=n[0],o=Object.values(pe).includes(i.type),c=!e&&n.length>1?Sr(n):"";if(o){let{badgeText:T,tokenFormattedAmount:b,tokenExplorerLink:B,tokenLinkText:Z}=me({token:i});return{nftValueData:{badgeText:T,tokenFormattedAmount:b,tokenExplorerLink:B,tokenLinkText:Z,transactionTokens:n,token:i,value:b!=null?i.value:null,decimals:b!=null?i.decimals:null,titleText:c}}}let{tokenExplorerLink:u,showFormattedAmount:f,tokenFormattedAmount:h,tokenLinkText:d,token:y}=ge({token:i});return{tokenValueData:{tokenExplorerLink:u,showFormattedAmount:f,tokenFormattedAmount:h,tokenLinkText:d,transactionTokens:n,token:y,value:i.value,decimals:(r=i.decimals)!=null?r:k,titleText:c}}}}return E(t.value)};0&&(module.exports={explorerUrlBuilder,getExplorerLink,getHumanReadableTimeFormat,getOperationsMessages,getReceiptMessage,getTransactionMethod,getTransactionReceiver,getTransactionReceiverAssets,getTransactionTokens,getTransactionTransferType,getTransactionValue});
3
3
  /*!
4
4
  * The buffer module from node.js, for the browser.
5
5
  *