@multiversx/sdk-dapp 2.8.1 → 2.8.3

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 (329) 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/ScamPhishingAlert/ScamPhishingAlert.js +1 -1
  10. package/UI/ScamPhishingAlert/index.js +1 -1
  11. package/UI/ScamPhishingAlert/scamPhishingStyles.js +1 -1
  12. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  13. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  14. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  15. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  16. package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  17. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  18. package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
  19. package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
  20. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  21. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  22. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  23. package/UI/SignTransactionsModals/components/index.js +1 -1
  24. package/UI/SignTransactionsModals/index.js +1 -1
  25. package/UI/TokenDetails/index.js +1 -1
  26. package/UI/TransactionDetails/TransactionDetails.js +1 -1
  27. package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  28. package/UI/TransactionDetails/components/index.js +1 -1
  29. package/UI/TransactionDetails/index.js +1 -1
  30. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  31. package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
  32. package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
  33. package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
  34. package/UI/TransactionInfo/components/EventsList/index.js +1 -1
  35. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  36. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  37. package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
  38. package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  39. package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  40. package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
  41. package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  42. package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
  43. package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
  44. package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
  45. package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
  46. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
  47. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
  48. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
  49. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
  50. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
  51. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
  52. package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
  53. package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
  54. package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
  55. package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
  56. package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
  57. package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
  58. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
  59. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
  60. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
  61. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
  62. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
  63. package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
  64. package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
  65. package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
  66. package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
  67. package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
  68. package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
  69. package/UI/TransactionInfo/components/index.js +1 -1
  70. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
  71. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
  72. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
  73. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
  74. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
  75. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
  76. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
  77. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
  78. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  79. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  80. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
  81. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
  82. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
  83. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
  84. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
  85. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
  86. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
  87. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
  88. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
  89. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
  90. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  91. package/UI/TransactionInfo/index.js +1 -1
  92. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  93. package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
  94. package/UI/TransactionsTable/components/TransactionHash.js +1 -1
  95. package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
  96. package/UI/TransactionsTable/components/TransactionRow.js +1 -1
  97. package/UI/TransactionsTable/components/TransactionSender.js +1 -1
  98. package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
  99. package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
  100. package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
  101. package/UI/TransactionsTable/components/index.js +1 -1
  102. package/UI/TransactionsTable/index.js +1 -1
  103. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  104. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  105. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  106. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  107. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  108. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  109. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  110. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  111. package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  112. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  113. package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  114. package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  115. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  116. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  117. package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
  118. package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
  119. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  120. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  121. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  122. package/UI/TransactionsToastList/components/index.js +1 -1
  123. package/UI/TransactionsToastList/index.js +1 -1
  124. package/UI/extension/ExtensionLoginButton/index.js +1 -1
  125. package/UI/index.js +1 -1
  126. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  127. package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
  128. package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
  129. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.d.ts +1 -0
  130. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  131. package/UI/ledger/LedgerLoginContainer/LedgerConnect.d.ts +2 -0
  132. package/UI/ledger/LedgerLoginContainer/LedgerConnect.js +1 -1
  133. package/UI/ledger/LedgerLoginContainer/LedgerLoading/LedgerLoading.d.ts +2 -0
  134. package/UI/ledger/LedgerLoginContainer/LedgerLoading/LedgerLoading.js +1 -1
  135. package/UI/ledger/LedgerLoginContainer/LedgerLoading/index.js +1 -1
  136. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  137. package/UI/ledger/index.js +1 -1
  138. package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  139. package/UI/pages/UnlockPage/index.js +1 -1
  140. package/UI/pages/index.js +1 -1
  141. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  142. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  143. package/UI/walletConnect/index.js +1 -1
  144. package/UI/walletConnect/types.d.ts +1 -0
  145. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  146. package/__chunks__/chunk-2AL5B426.js +2 -0
  147. package/__chunks__/{chunk-BWVJ6UWD.js → chunk-4KJ3K4N2.js} +2 -2
  148. package/__chunks__/{chunk-BEMRDNUN.js → chunk-6ATSOJLJ.js} +2 -2
  149. package/__chunks__/chunk-7A3YEKYD.js +2 -0
  150. package/__chunks__/{chunk-GMWCN3O3.js → chunk-ALX2EFCU.js} +2 -2
  151. package/__chunks__/{chunk-HR3MPAXI.js → chunk-EO7PQVL5.js} +7 -5
  152. package/__chunks__/{chunk-MYRVMVPS.js → chunk-FUFSVKPE.js} +2 -2
  153. package/__chunks__/{chunk-STR6RVDD.js → chunk-GCAYZMIA.js} +2 -2
  154. package/__chunks__/{chunk-NBMZOZJA.js → chunk-IPYOO5SF.js} +2 -2
  155. package/__chunks__/chunk-JZKZMOAT.js +2 -0
  156. package/__chunks__/{chunk-QVR6ILJY.js → chunk-OOWD2UVN.js} +3 -3
  157. package/__chunks__/{chunk-XR7PQAFV.js → chunk-QH6XD7FF.js} +2 -2
  158. package/__chunks__/chunk-SKQFVP4A.js +2 -0
  159. package/__chunks__/{chunk-O2BIDGUY.js → chunk-XTN47CAH.js} +2 -2
  160. package/__chunks__/chunk-YRCUGAVR.js +2 -0
  161. package/__chunks__/{chunk-YVK7TEMH.js → chunk-Z55BDNGH.js} +2 -2
  162. package/__chunks__/{chunk-LDA3WK6Z.js → chunk-ZLV3NX7P.js} +2 -2
  163. package/__commonjs/UI/ScamPhishingAlert/ScamPhishingAlert.js +5 -3
  164. package/__commonjs/UI/ScamPhishingAlert/index.js +5 -3
  165. package/__commonjs/UI/ScamPhishingAlert/scamPhishingStyles.js +7 -5
  166. package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +4 -4
  167. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/index.js +12 -12
  168. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +8 -8
  169. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +8 -8
  170. package/__commonjs/UI/index.js +75 -73
  171. package/__commonjs/UI/ledger/LedgerLoginButton/index.js +18 -16
  172. package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable.js +6 -6
  173. package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +2 -2
  174. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerConnect.js +3 -3
  175. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoading/LedgerLoading.js +3 -3
  176. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoading/index.js +3 -3
  177. package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +17 -15
  178. package/__commonjs/UI/ledger/index.js +18 -16
  179. package/__commonjs/UI/pages/UnlockPage/index.js +24 -22
  180. package/__commonjs/UI/pages/index.js +24 -22
  181. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +12 -10
  182. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +11 -9
  183. package/__commonjs/UI/walletConnect/index.js +12 -10
  184. package/__commonjs/UI/walletConnect/types.js +1 -1
  185. package/__commonjs/services/index.js +1 -1
  186. package/__commonjs/services/transactions/index.js +1 -1
  187. package/__commonjs/services/transactions/sendTransactions.js +1 -1
  188. package/__commonjs/services/transactions/signTransactions.js +1 -1
  189. package/__commonjs/services/transactions/utils.js +1 -1
  190. package/__commonjs/utils/account/signMessage.js +1 -1
  191. package/__commonjs/utils/index.js +1 -1
  192. package/__commonjs/utils/operations/calculateFeeLimit.js +1 -1
  193. package/__commonjs/utils/operations/index.js +1 -1
  194. package/__commonjs/utils/validation/index.js +1 -1
  195. package/__commonjs/utils/validation/stringIsFloat.js +1 -1
  196. package/__mocks__/index.js +1 -1
  197. package/__mocks__/utils/index.js +1 -1
  198. package/__mocks__/utils/renderWithProvider.js +1 -1
  199. package/apiCalls/accounts/getAccountFromApi.js +1 -1
  200. package/apiCalls/accounts/index.js +1 -1
  201. package/apiCalls/configuration/getNetworkConfig.js +1 -1
  202. package/apiCalls/configuration/index.js +1 -1
  203. package/apiCalls/getScamAddressData.js +1 -1
  204. package/apiCalls/index.js +1 -1
  205. package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  206. package/apiCalls/transactions/index.js +1 -1
  207. package/apiCalls/transactions/sendSignedTransactions.js +1 -1
  208. package/apiCalls/utils/getCleanApiAddress.js +1 -1
  209. package/apiCalls/utils/index.js +1 -1
  210. package/components/LogoutListener/LogoutListener.js +1 -1
  211. package/components/LogoutListener/helpers/index.js +1 -1
  212. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  213. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  214. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  215. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  216. package/components/LogoutListener/index.js +1 -1
  217. package/components/ProviderInitializer.js +1 -1
  218. package/components/TransactionSender/TransactionSender.js +1 -1
  219. package/components/TransactionSender/index.js +1 -1
  220. package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
  221. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  222. package/components/TransactionsTracker/index.js +1 -1
  223. package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  224. package/hooks/account/index.js +1 -1
  225. package/hooks/account/useGetAccount.js +1 -1
  226. package/hooks/account/useGetAccountInfo.js +1 -1
  227. package/hooks/account/useGetIsLoggedIn.js +1 -1
  228. package/hooks/account/useGetLoginInfo.js +1 -1
  229. package/hooks/account/useGetWebsocketEvent.js +1 -1
  230. package/hooks/index.js +1 -1
  231. package/hooks/login/index.js +1 -1
  232. package/hooks/login/useExtensionLogin.js +1 -1
  233. package/hooks/login/useLedgerLogin.js +1 -1
  234. package/hooks/login/useLoginService.js +1 -1
  235. package/hooks/login/useOperaLogin.js +1 -1
  236. package/hooks/login/useWalletConnectLogin.js +1 -1
  237. package/hooks/login/useWalletConnectV2Login.js +1 -1
  238. package/hooks/login/useWebWalletLogin.js +1 -1
  239. package/hooks/signMessage/index.js +1 -1
  240. package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  241. package/hooks/signMessage/useGetSignMessageSession.js +1 -1
  242. package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
  243. package/hooks/signMessage/useSignMessage.js +1 -1
  244. package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
  245. package/hooks/transactions/helpers/index.js +1 -1
  246. package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
  247. package/hooks/transactions/index.js +1 -1
  248. package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
  249. package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  250. package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  251. package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  252. package/hooks/transactions/useGetFailedTransactions.js +1 -1
  253. package/hooks/transactions/useGetPendingTransactions.js +1 -1
  254. package/hooks/transactions/useGetSignTransactionsError.js +1 -1
  255. package/hooks/transactions/useGetSignedTransactions.js +1 -1
  256. package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  257. package/hooks/transactions/useGetTokenDetails.js +1 -1
  258. package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
  259. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  260. package/hooks/transactions/useSignTransactions.js +1 -1
  261. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  262. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  263. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  264. package/hooks/transactions/useTrackTransactionStatus.js +1 -1
  265. package/hooks/useGetNetworkConfig.js +1 -1
  266. package/hooks/useGetNotification.js +1 -1
  267. package/hooks/websocketListener/index.js +1 -1
  268. package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
  269. package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  270. package/package.json +1 -1
  271. package/reduxStore/selectors/index.js +1 -1
  272. package/reduxStore/selectors/transactionsSelectors.js +1 -1
  273. package/services/index.js +1 -1
  274. package/services/transactions/index.js +1 -1
  275. package/services/transactions/sendTransactions.js +1 -1
  276. package/services/transactions/signTransactions.js +1 -1
  277. package/services/transactions/transformAndSignTransactions.js +1 -1
  278. package/services/transactions/utils.js +1 -1
  279. package/utils/account/getAccount.js +1 -1
  280. package/utils/account/getAccountBalance.js +1 -1
  281. package/utils/account/getAccountShard.js +1 -1
  282. package/utils/account/getAddress.js +1 -1
  283. package/utils/account/getLatestNonce.js +1 -1
  284. package/utils/account/index.js +1 -1
  285. package/utils/account/refreshAccount.js +1 -1
  286. package/utils/account/signMessage.js +1 -1
  287. package/utils/getIsLoggedIn.js +1 -1
  288. package/utils/index.js +1 -1
  289. package/utils/logout.js +1 -1
  290. package/utils/network/getChainID.js +1 -1
  291. package/utils/network/getEgldLabel.js +1 -1
  292. package/utils/network/getNetworkConfig.js +1 -1
  293. package/utils/network/index.js +1 -1
  294. package/utils/operations/calculateFeeLimit.js +1 -1
  295. package/utils/operations/index.js +1 -1
  296. package/utils/transactions/getAllTransactionsLink.js +1 -1
  297. package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
  298. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
  299. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
  300. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
  301. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
  302. package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
  303. package/utils/transactions/getInterpretedTransaction/index.js +1 -1
  304. package/utils/transactions/getTransactionLink.js +1 -1
  305. package/utils/transactions/index.js +1 -1
  306. package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
  307. package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
  308. package/utils/transactions/transactionInfoHelpers/index.js +1 -1
  309. package/utils/validation/index.js +1 -1
  310. package/utils/validation/stringIsFloat.js +1 -1
  311. package/web/hooks/index.js +1 -1
  312. package/web/hooks/useIdleTimer.js +1 -1
  313. package/web/index.js +1 -1
  314. package/wrappers/AppInitializer.js +1 -1
  315. package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  316. package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
  317. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
  318. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
  319. package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  320. package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  321. package/wrappers/AxiosInterceptorContext/index.js +1 -1
  322. package/wrappers/DappProvider/CustomComponents.js +1 -1
  323. package/wrappers/DappProvider/index.js +1 -1
  324. package/wrappers/index.js +1 -1
  325. package/__chunks__/chunk-3W2EMKHA.js +0 -2
  326. package/__chunks__/chunk-4ZLY6RKY.js +0 -2
  327. package/__chunks__/chunk-5JDH4CVH.js +0 -2
  328. package/__chunks__/chunk-IWMLAXC6.js +0 -2
  329. package/__chunks__/chunk-JMDJZFGV.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";var sr=Object.create;var Z=Object.defineProperty;var lr=Object.getOwnPropertyDescriptor;var cr=Object.getOwnPropertyNames;var ur=Object.getPrototypeOf,pr=Object.prototype.hasOwnProperty;var dr=(t,e)=>()=>(t&&(e=t(t=0)),e);var Q=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),gr=(t,e)=>{for(var r in e)Z(t,r,{get:e[r],enumerable:!0})},we=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of cr(e))!pr.call(t,i)&&i!==r&&Z(t,i,{get:()=>e[i],enumerable:!(n=lr(e,i))||n.enumerable});return t};var H=(t,e,r)=>(r=t!=null?sr(ur(t)):{},we(e||!t||!t.__esModule?Z(r,"default",{value:t,enumerable:!0}):r,t)),fr=t=>we(Z({},"__esModule",{value:!0}),t);var ve=Q(K=>{"use strict";l();K.byteLength=hr;K.toByteArray=xr;K.fromByteArray=Tr;var E=[],v=[],mr=typeof Uint8Array!="undefined"?Uint8Array:Array,ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(P=0,be=ie.length;P<be;++P)E[P]=ie[P],v[ie.charCodeAt(P)]=P;var P,be;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function Te(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 hr(t){var e=Te(t),r=e[0],n=e[1];return(r+n)*3/4-n}function yr(t,e,r){return(e+r)*3/4-r}function xr(t){var e,r=Te(t),n=r[0],i=r[1],a=new mr(yr(t,n,i)),o=0,c=i>0?n-4:n,u;for(u=0;u<c;u+=4)e=v[t.charCodeAt(u)]<<18|v[t.charCodeAt(u+1)]<<12|v[t.charCodeAt(u+2)]<<6|v[t.charCodeAt(u+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=v[t.charCodeAt(u)]<<2|v[t.charCodeAt(u+1)]>>4,a[o++]=e&255),i===1&&(e=v[t.charCodeAt(u)]<<10|v[t.charCodeAt(u+1)]<<4|v[t.charCodeAt(u+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function wr(t){return E[t>>18&63]+E[t>>12&63]+E[t>>6&63]+E[t&63]}function br(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(wr(n));return i.join("")}function Tr(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,c=r-n;o<c;o+=a)i.push(br(t,o,o+a>c?c:o+a));return n===1?(e=t[r-1],i.push(E[e>>2]+E[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(E[e>>10]+E[e>>4&63]+E[e<<2&63]+"=")),i.join("")}});var ke=Q(ae=>{l();ae.read=function(t,e,r,n,i){var a,o,c=i*8-n-1,u=(1<<c)-1,d=u>>1,g=-7,p=r?i-1:0,y=r?-1:1,w=t[e+p];for(p+=y,a=w&(1<<-g)-1,w>>=-g,g+=c;g>0;a=a*256+t[e+p],p+=y,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+p],p+=y,g-=8);if(a===0)a=1-d;else{if(a===u)return o?NaN:(w?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(w?-1:1)*o*Math.pow(2,a-n)};ae.write=function(t,e,r,n,i,a){var o,c,u,d=a*8-i-1,g=(1<<d)-1,p=g>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:a-1,_=n?1:-1,W=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+p>=1?e+=y/u:e+=y*Math.pow(2,1-p),e*u>=2&&(o++,u/=2),o+p>=g?(c=0,o=g):o+p>=1?(c=(e*u-1)*Math.pow(2,i),o=o+p):(c=e*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[r+w]=c&255,w+=_,c/=256,i-=8);for(o=o<<i|c,d+=i;d>0;t[r+w]=o&255,w+=_,o/=256,d-=8);t[r+w-_]|=W*128}});var Ue=Q(q=>{"use strict";l();var oe=ve(),G=ke(),Ie=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=s;q.SlowBuffer=Ar;q.INSPECT_MAX_BYTES=50;var J=2147483647;q.kMaxLength=J;s.TYPED_ARRAY_SUPPORT=vr();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function vr(){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(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function N(t){if(t>J)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(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 ue(t)}return Ae(t,e,r)}s.poolSize=8192;function Ae(t,e,r){if(typeof t=="string")return Ir(t,e);if(ArrayBuffer.isView(t))return _r(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(A(t,ArrayBuffer)||t&&A(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(A(t,SharedArrayBuffer)||t&&A(t.buffer,SharedArrayBuffer)))return le(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=Er(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.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)}s.from=function(t,e,r){return Ae(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function Re(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 kr(t,e,r){return Re(t),t<=0?N(t):e!==void 0?typeof r=="string"?N(t).fill(e,r):N(t).fill(e):N(t)}s.alloc=function(t,e,r){return kr(t,e,r)};function ue(t){return Re(t),N(t<0?0:pe(t)|0)}s.allocUnsafe=function(t){return ue(t)};s.allocUnsafeSlow=function(t){return ue(t)};function Ir(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Se(t,e)|0,n=N(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function se(t){for(var e=t.length<0?0:pe(t.length)|0,r=N(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function _r(t){if(A(t,Uint8Array)){var e=new Uint8Array(t);return le(e.buffer,e.byteOffset,e.byteLength)}return se(t)}function le(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function Er(t){if(s.isBuffer(t)){var e=pe(t.length)|0,r=N(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||de(t.length)?N(0):se(t);if(t.type==="Buffer"&&Array.isArray(t.data))return se(t.data)}function pe(t){if(t>=J)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+J.toString(16)+" bytes");return t|0}function Ar(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),A(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.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,a=0,o=Math.min(n,i);a<o;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};s.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}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var o=e[n];if(A(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function Se(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||A(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 ce(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Be(t).length;default:if(i)return n?-1:ce(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=Se;function Rr(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 Mr(this,e,r);case"utf8":case"utf-8":return Fe(this,e,r);case"ascii":return Ur(this,e,r);case"latin1":case"binary":return Pr(this,e,r);case"base64":return Cr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Or(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function M(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.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)M(this,r,r+1);return this};s.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)M(this,r,r+3),M(this,r+1,r+2);return this};s.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)M(this,r,r+7),M(this,r+1,r+6),M(this,r+2,r+5),M(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Fe(this,0,e):Rr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.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+">"};Ie&&(s.prototype[Ie]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.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),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,c=n-r,u=Math.min(o,c),d=this.slice(i,a),g=e.slice(r,n),p=0;p<u;++p)if(d[p]!==g[p]){o=d[p],c=g[p];break}return o<c?-1:c<o?1:0};function Le(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,de(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=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:_e(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):_e(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _e(t,e,r,n,i){var a=1,o=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;a=2,o/=2,c/=2,r/=2}function u(w,_){return a===1?w[_]:w.readUInt16BE(_*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(u(t,d)===u(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+c>o&&(r=o-c),d=r;d>=0;d--){for(var p=!0,y=0;y<c;y++)if(u(t,d+y)!==u(e,y)){p=!1;break}if(p)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return Le(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return Le(this,e,r,n,!1)};function Sr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var c=parseInt(e.substr(o*2,2),16);if(de(c))return o;t[r+o]=c}return o}function Lr(t,e,r,n){return ee(ce(e,t.length-r),t,r,n)}function Fr(t,e,r,n){return ee(zr(e),t,r,n)}function Nr(t,e,r,n){return ee(Be(e),t,r,n)}function Dr(t,e,r,n){return ee(jr(e,t.length-r),t,r,n)}s.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 a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Sr(this,e,r,n);case"utf8":case"utf-8":return Lr(this,e,r,n);case"ascii":case"latin1":case"binary":return Fr(this,e,r,n);case"base64":return Nr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Dr(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Cr(t,e,r){return e===0&&r===t.length?oe.fromByteArray(t):oe.fromByteArray(t.slice(e,r))}function Fe(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,c=a>239?4:a>223?3:a>191?2:1;if(i+c<=r){var u,d,g,p;switch(c){case 1:a<128&&(o=a);break;case 2:u=t[i+1],(u&192)===128&&(p=(a&31)<<6|u&63,p>127&&(o=p));break;case 3:u=t[i+1],d=t[i+2],(u&192)===128&&(d&192)===128&&(p=(a&15)<<12|(u&63)<<6|d&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:u=t[i+1],d=t[i+2],g=t[i+3],(u&192)===128&&(d&192)===128&&(g&192)===128&&(p=(a&15)<<18|(u&63)<<12|(d&63)<<6|g&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,c=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=c}return Br(n)}var Ee=4096;function Br(t){var e=t.length;if(e<=Ee)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Ee));return r}function Ur(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 Pr(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 Mr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=Vr[t[a]];return i}function Or(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.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,s.prototype),i};function b(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")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||b(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||b(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||b(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||b(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||b(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||b(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||b(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||b(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||b(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||b(e,4,this.length),G.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||b(e,4,this.length),G.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||b(e,8,this.length),G.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||b(e,8,this.length),G.read(this,e,!1,52,8)};function T(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,e,r,n,a,0)}var o=1,c=0;for(this[r]=e&255;++c<n&&(o*=256);)this[r+c]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,e,r,n,a,0)}var o=n-1,c=1;for(this[r+o]=e&255;--o>=0&&(c*=256);)this[r+o]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||T(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};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||T(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};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);T(this,e,r,n,a-1,-a)}var o=0,c=1,u=0;for(this[r]=e&255;++o<n&&(c*=256);)e<0&&u===0&&this[r+o-1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);T(this,e,r,n,a-1,-a)}var o=n-1,c=1,u=0;for(this[r+o]=e&255;--o>=0&&(c*=256);)e<0&&u===0&&this[r+o+1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||T(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};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||T(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 Ne(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function De(t,e,r,n,i){return e=+e,r=r>>>0,i||Ne(t,e,r,4,34028234663852886e22,-34028234663852886e22),G.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return De(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return De(this,e,r,!1,n)};function Ce(t,e,r,n,i){return e=+e,r=r>>>0,i||Ne(t,e,r,8,17976931348623157e292,-17976931348623157e292),G.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Ce(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Ce(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.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 a=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),a};s.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"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}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 o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),u=c.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=c[o%u]}return this};var Gr=/[^+/0-9A-Za-z-_]/g;function qr(t){if(t=t.split("=")[0],t=t.trim().replace(Gr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ce(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function zr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function jr(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Be(t){return oe.toByteArray(qr(t))}function ee(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 A(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function de(t){return t!==t}var Vr=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 qe=Q((lt,Ge)=>{l();var x=Ge.exports={},R,S;function ge(){throw new Error("setTimeout has not been defined")}function fe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?R=setTimeout:R=ge}catch(t){R=ge}try{typeof clearTimeout=="function"?S=clearTimeout:S=fe}catch(t){S=fe}})();function Pe(t){if(R===setTimeout)return setTimeout(t,0);if((R===ge||!R)&&setTimeout)return R=setTimeout,setTimeout(t,0);try{return R(t,0)}catch(e){try{return R.call(null,t,0)}catch(r){return R.call(this,t,0)}}}function Hr(t){if(S===clearTimeout)return clearTimeout(t);if((S===fe||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(t);try{return S(t)}catch(e){try{return S.call(null,t)}catch(r){return S.call(this,t)}}}var D=[],z=!1,O,re=-1;function Wr(){!z||!O||(z=!1,O.length?D=O.concat(D):re=-1,D.length&&Me())}function Me(){if(!z){var t=Pe(Wr);z=!0;for(var e=D.length;e;){for(O=D,D=[];++re<e;)O&&O[re].run();re=-1,e=D.length}O=null,z=!1,Hr(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];D.push(new Oe(t,e)),D.length===1&&!z&&Pe(Me)};function Oe(t,e){this.fun=t,this.array=e}Oe.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function C(){}x.on=C;x.addListener=C;x.once=C;x.off=C;x.removeListener=C;x.removeAllListeners=C;x.emit=C;x.prependListener=C;x.prependOnceListener=C;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 f,m,ct,l=dr(()=>{f=H(Ue()),m=H(qe()),ct=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 tt={};gr(tt,{calculateFeeLimit:()=>Xr,denominate:()=>$r,formatAmount:()=>he,getRemainingTime:()=>xe,getUsdValue:()=>Zr,nominate:()=>Yr,parseAmount:()=>ye,pipe:()=>F,timeAgo:()=>et,timeRemaining:()=>Kr,truncate:()=>rt});module.exports=fr(tt);l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();var me={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:ze,egldLabel:Rt}=me["devnet"],{chainId:je,egldLabel:St}=me["testnet"],{chainId:Ve,egldLabel:Lt}=me["mainnet"];var Ft={["devnet"]:ze,["testnet"]:je,["mainnet"]:Ve},Nt={[ze]:"devnet",[je]:"testnet",[Ve]:"mainnet"};l();l();l();l();var L=require("@multiversx/sdk-web-wallet-provider");var He=5e4,We=1e9,B=18,te=4;var j="0";l();var Ye=require("@multiversx/sdk-core"),U=H(require("bignumber.js"));l();var $e=H(require("bignumber.js")),ne=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new $e.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};l();function F(t){return{if:function(e){return e?{then:r=>r instanceof Function?F(r(t)):F(r)}:{then:()=>F(t)}},then:e=>e instanceof Function?F(e(t)):F(e),valueOf:function(){return t}}}U.default.config({ROUNDING_MODE:U.default.ROUND_FLOOR});function he({input:t,decimals:e=B,digits:r=te,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:a=!1}){if(!ne(t,!1))throw new Error("Invalid input");let o=new U.default(t).isNegative(),c=t;return o&&(c=t.substring(1)),F(c).then(()=>Ye.TokenPayment.fungibleFromBigInteger("",c,e).toRationalNumber()).then(u=>{let d=new U.default(u);if(d.isZero())return j;let g=d.toString(10),[p,y]=g.split("."),w=new U.default(y||0),_=F(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(w.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),W=y&&r>=1&&r<=y.length&&w.isGreaterThan(0)&&new U.default(y.substring(0,r)).isZero(),ir=d.toFormat(_);return F(g).if(a).then(ir).if(Boolean(W)).then($=>{let V=new U.default(p).isZero(),[k,Y]=$.split("."),X=new Array(r-1).fill(0),ar=[...X,0].join(""),or=[...X,1].join("");return V?i?`<${k}.${or}`:n?`${k}.${Y}`:k:`${k}.${ar}`}).if(Boolean(!W&&y)).then($=>{let[V]=$.split("."),k=y.substring(0,_);if(n){let Y=r-k.length;if(Y>0){let X=Array(Y).fill(0).join("");return k=`${k}${X}`,`${V}.${k}`}return $}return k?`${V}.${k}`:V}).valueOf()}).if(o).then(u=>`-${u}`).valueOf()}var Xe=!1;function $r({input:t,denomination:e=B,decimals:r=te,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:a=!1}){return Xe||(console.warn('!!! Be aware !!! The "denominate" function is deprecated. Please use "formatAmount" instead.'),Xe=!0),he({input:t,decimals:e,addCommas:a,digits:r,showIsLessThanDecimalsLabel:i,showLastNonZeroDecimal:n})}l();l();var Ze=require("@multiversx/sdk-core");function ye(t,e=B){return Ze.TokenPayment.fungibleFromAmount("",t,e).toString()}var Qe=!1;function Yr(t,e=B){return Qe||(console.warn('!!! Be aware !!! The "nominate" function is deprecated. Please use "parseAmount" instead.'),Qe=!0),ye(t,e)}l();var I=require("@multiversx/sdk-core"),rr=require("@multiversx/sdk-network-providers");l();l();var Ke=H(require("bignumber.js"));var Je=t=>{if(isNaN(t)||String(t).includes("Infinity"))return!1;let[e,r]=t.split(".");if(r)for(;r.charAt(r.length-1)===j;)r=r.slice(0,-1);let n=r?[e,r].join("."):e,i=new Ke.default(n);return i.toString(10)===n&&i.comparedTo(0)>=0};l();l();var er={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function Xr({minGasLimit:t=String(He),gasLimit:e,gasPrice:r,data:n,gasPerDataByte:i,gasPriceModifier:a,defaultGasPrice:o=String(We),chainId:c}){let u=n||"",d=ne(e)?e:t,g=Je(r)?r:o,p=new I.Transaction({nonce:0,value:I.TokenPayment.egldFromAmount("0"),receiver:new I.Address(er.to),sender:new I.Address(er.to),gasPrice:parseInt(g),gasLimit:parseInt(d),data:new I.TransactionPayload(u.trim()),chainID:c,version:new I.TransactionVersion(1)}),y=new rr.NetworkConfig;y.MinGasLimit=parseInt(t),y.GasPerDataByte=parseInt(i),y.GasPriceModifier=parseFloat(a);try{return p.computeFee(y).toString(10)}catch(w){return j}}l();var Zr=({amount:t,usd:e,decimals:r=2,addEqualSign:n})=>{let i=(parseFloat(t)*e).toFixed(r),a=parseFloat(i).toLocaleString("en",{maximumFractionDigits:r,minimumFractionDigits:r}),o=parseFloat(t)>0?"\u2248":"=";return`${n?`${o} `:""}$${a}`};l();function xe(t){let e=Math.floor(t/864e5),r=t%(24*60*60*1e3),n=Math.floor(r/(60*60*1e3)),i=r%(60*60*1e3),a=Math.floor(i/(60*1e3)),o=i%(60*1e3),c=Math.floor(o/1e3),u=c+" sec",d=a+" min",g=n+" hr",p=e+" day";if(c>1&&(u=c+" sec"),a>1&&(d=a+" min"),n>1&&(g=n+" hrs"),e>1&&(p=e+" days"),e>=1)return p+" "+g;if(n>=1){let y=a===0?"":" "+d;return g+y}if(a>=1){let y=c===0?"":" "+u;return d+y}return u}function nr(t){let e=t.split(" ");return e.length>1?`${e[0]} ${e[1]}`:t}var tr=(t=new Date,e=0)=>Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()+e,t.getUTCMilliseconds());function Qr(t){let e=new Date,r=tr(e),n=tr(e,t);return Math.max(n-r,0)}function Kr(t,e=!0){let r=Qr(t),n=xe(r);return e?nr(n):n}function Jr(t){let r=new Date().getTime()-t;return Math.max(r,0)}function et(t,e=!0){let r=Jr(t),n=xe(r);return e?nr(n):n}l();function rt(t,e,r="..."){return isNaN(e)&&(e=10),r||(r="..."),t!=null&&(t.length<=e||t.length-r.length<=e)?t:String(t).substring(0,e-r.length)+r}0&&(module.exports={calculateFeeLimit,denominate,formatAmount,getRemainingTime,getUsdValue,nominate,parseAmount,pipe,timeAgo,timeRemaining,truncate});
1
+ "use strict";var sr=Object.create;var Z=Object.defineProperty;var lr=Object.getOwnPropertyDescriptor;var cr=Object.getOwnPropertyNames;var ur=Object.getPrototypeOf,pr=Object.prototype.hasOwnProperty;var dr=(t,e)=>()=>(t&&(e=t(t=0)),e);var Q=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),gr=(t,e)=>{for(var r in e)Z(t,r,{get:e[r],enumerable:!0})},we=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of cr(e))!pr.call(t,i)&&i!==r&&Z(t,i,{get:()=>e[i],enumerable:!(n=lr(e,i))||n.enumerable});return t};var H=(t,e,r)=>(r=t!=null?sr(ur(t)):{},we(e||!t||!t.__esModule?Z(r,"default",{value:t,enumerable:!0}):r,t)),fr=t=>we(Z({},"__esModule",{value:!0}),t);var ve=Q(K=>{"use strict";l();K.byteLength=hr;K.toByteArray=xr;K.fromByteArray=Tr;var E=[],v=[],mr=typeof Uint8Array!="undefined"?Uint8Array:Array,ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(P=0,be=ie.length;P<be;++P)E[P]=ie[P],v[ie.charCodeAt(P)]=P;var P,be;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function Te(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 hr(t){var e=Te(t),r=e[0],n=e[1];return(r+n)*3/4-n}function yr(t,e,r){return(e+r)*3/4-r}function xr(t){var e,r=Te(t),n=r[0],i=r[1],a=new mr(yr(t,n,i)),o=0,c=i>0?n-4:n,u;for(u=0;u<c;u+=4)e=v[t.charCodeAt(u)]<<18|v[t.charCodeAt(u+1)]<<12|v[t.charCodeAt(u+2)]<<6|v[t.charCodeAt(u+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=v[t.charCodeAt(u)]<<2|v[t.charCodeAt(u+1)]>>4,a[o++]=e&255),i===1&&(e=v[t.charCodeAt(u)]<<10|v[t.charCodeAt(u+1)]<<4|v[t.charCodeAt(u+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function wr(t){return E[t>>18&63]+E[t>>12&63]+E[t>>6&63]+E[t&63]}function br(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(wr(n));return i.join("")}function Tr(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,c=r-n;o<c;o+=a)i.push(br(t,o,o+a>c?c:o+a));return n===1?(e=t[r-1],i.push(E[e>>2]+E[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(E[e>>10]+E[e>>4&63]+E[e<<2&63]+"=")),i.join("")}});var ke=Q(ae=>{l();ae.read=function(t,e,r,n,i){var a,o,c=i*8-n-1,u=(1<<c)-1,d=u>>1,g=-7,p=r?i-1:0,y=r?-1:1,w=t[e+p];for(p+=y,a=w&(1<<-g)-1,w>>=-g,g+=c;g>0;a=a*256+t[e+p],p+=y,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+p],p+=y,g-=8);if(a===0)a=1-d;else{if(a===u)return o?NaN:(w?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(w?-1:1)*o*Math.pow(2,a-n)};ae.write=function(t,e,r,n,i,a){var o,c,u,d=a*8-i-1,g=(1<<d)-1,p=g>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:a-1,_=n?1:-1,W=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+p>=1?e+=y/u:e+=y*Math.pow(2,1-p),e*u>=2&&(o++,u/=2),o+p>=g?(c=0,o=g):o+p>=1?(c=(e*u-1)*Math.pow(2,i),o=o+p):(c=e*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[r+w]=c&255,w+=_,c/=256,i-=8);for(o=o<<i|c,d+=i;d>0;t[r+w]=o&255,w+=_,o/=256,d-=8);t[r+w-_]|=W*128}});var Ue=Q(q=>{"use strict";l();var oe=ve(),G=ke(),Ie=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=s;q.SlowBuffer=Ar;q.INSPECT_MAX_BYTES=50;var J=2147483647;q.kMaxLength=J;s.TYPED_ARRAY_SUPPORT=vr();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function vr(){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(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function N(t){if(t>J)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(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 ue(t)}return Ae(t,e,r)}s.poolSize=8192;function Ae(t,e,r){if(typeof t=="string")return Ir(t,e);if(ArrayBuffer.isView(t))return _r(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(A(t,ArrayBuffer)||t&&A(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(A(t,SharedArrayBuffer)||t&&A(t.buffer,SharedArrayBuffer)))return le(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=Er(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.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)}s.from=function(t,e,r){return Ae(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function Re(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 kr(t,e,r){return Re(t),t<=0?N(t):e!==void 0?typeof r=="string"?N(t).fill(e,r):N(t).fill(e):N(t)}s.alloc=function(t,e,r){return kr(t,e,r)};function ue(t){return Re(t),N(t<0?0:pe(t)|0)}s.allocUnsafe=function(t){return ue(t)};s.allocUnsafeSlow=function(t){return ue(t)};function Ir(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Se(t,e)|0,n=N(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function se(t){for(var e=t.length<0?0:pe(t.length)|0,r=N(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function _r(t){if(A(t,Uint8Array)){var e=new Uint8Array(t);return le(e.buffer,e.byteOffset,e.byteLength)}return se(t)}function le(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function Er(t){if(s.isBuffer(t)){var e=pe(t.length)|0,r=N(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||de(t.length)?N(0):se(t);if(t.type==="Buffer"&&Array.isArray(t.data))return se(t.data)}function pe(t){if(t>=J)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+J.toString(16)+" bytes");return t|0}function Ar(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),A(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.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,a=0,o=Math.min(n,i);a<o;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};s.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}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var o=e[n];if(A(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function Se(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||A(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 ce(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Be(t).length;default:if(i)return n?-1:ce(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=Se;function Rr(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 Mr(this,e,r);case"utf8":case"utf-8":return Fe(this,e,r);case"ascii":return Ur(this,e,r);case"latin1":case"binary":return Pr(this,e,r);case"base64":return Cr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Or(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function M(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.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)M(this,r,r+1);return this};s.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)M(this,r,r+3),M(this,r+1,r+2);return this};s.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)M(this,r,r+7),M(this,r+1,r+6),M(this,r+2,r+5),M(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Fe(this,0,e):Rr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.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+">"};Ie&&(s.prototype[Ie]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.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),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,c=n-r,u=Math.min(o,c),d=this.slice(i,a),g=e.slice(r,n),p=0;p<u;++p)if(d[p]!==g[p]){o=d[p],c=g[p];break}return o<c?-1:c<o?1:0};function Le(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,de(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=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:_e(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):_e(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _e(t,e,r,n,i){var a=1,o=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;a=2,o/=2,c/=2,r/=2}function u(w,_){return a===1?w[_]:w.readUInt16BE(_*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(u(t,d)===u(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+c>o&&(r=o-c),d=r;d>=0;d--){for(var p=!0,y=0;y<c;y++)if(u(t,d+y)!==u(e,y)){p=!1;break}if(p)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return Le(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return Le(this,e,r,n,!1)};function Sr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var c=parseInt(e.substr(o*2,2),16);if(de(c))return o;t[r+o]=c}return o}function Lr(t,e,r,n){return ee(ce(e,t.length-r),t,r,n)}function Fr(t,e,r,n){return ee(zr(e),t,r,n)}function Nr(t,e,r,n){return ee(Be(e),t,r,n)}function Dr(t,e,r,n){return ee(jr(e,t.length-r),t,r,n)}s.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 a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Sr(this,e,r,n);case"utf8":case"utf-8":return Lr(this,e,r,n);case"ascii":case"latin1":case"binary":return Fr(this,e,r,n);case"base64":return Nr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Dr(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Cr(t,e,r){return e===0&&r===t.length?oe.fromByteArray(t):oe.fromByteArray(t.slice(e,r))}function Fe(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,c=a>239?4:a>223?3:a>191?2:1;if(i+c<=r){var u,d,g,p;switch(c){case 1:a<128&&(o=a);break;case 2:u=t[i+1],(u&192)===128&&(p=(a&31)<<6|u&63,p>127&&(o=p));break;case 3:u=t[i+1],d=t[i+2],(u&192)===128&&(d&192)===128&&(p=(a&15)<<12|(u&63)<<6|d&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:u=t[i+1],d=t[i+2],g=t[i+3],(u&192)===128&&(d&192)===128&&(g&192)===128&&(p=(a&15)<<18|(u&63)<<12|(d&63)<<6|g&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,c=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=c}return Br(n)}var Ee=4096;function Br(t){var e=t.length;if(e<=Ee)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Ee));return r}function Ur(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 Pr(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 Mr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=Vr[t[a]];return i}function Or(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.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,s.prototype),i};function b(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")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||b(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||b(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||b(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||b(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||b(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||b(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||b(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||b(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||b(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||b(e,4,this.length),G.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||b(e,4,this.length),G.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||b(e,8,this.length),G.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||b(e,8,this.length),G.read(this,e,!1,52,8)};function T(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,e,r,n,a,0)}var o=1,c=0;for(this[r]=e&255;++c<n&&(o*=256);)this[r+c]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,e,r,n,a,0)}var o=n-1,c=1;for(this[r+o]=e&255;--o>=0&&(c*=256);)this[r+o]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||T(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};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||T(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};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);T(this,e,r,n,a-1,-a)}var o=0,c=1,u=0;for(this[r]=e&255;++o<n&&(c*=256);)e<0&&u===0&&this[r+o-1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);T(this,e,r,n,a-1,-a)}var o=n-1,c=1,u=0;for(this[r+o]=e&255;--o>=0&&(c*=256);)e<0&&u===0&&this[r+o+1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||T(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};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||T(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 Ne(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function De(t,e,r,n,i){return e=+e,r=r>>>0,i||Ne(t,e,r,4,34028234663852886e22,-34028234663852886e22),G.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return De(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return De(this,e,r,!1,n)};function Ce(t,e,r,n,i){return e=+e,r=r>>>0,i||Ne(t,e,r,8,17976931348623157e292,-17976931348623157e292),G.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Ce(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Ce(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.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 a=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),a};s.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"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}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 o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),u=c.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=c[o%u]}return this};var Gr=/[^+/0-9A-Za-z-_]/g;function qr(t){if(t=t.split("=")[0],t=t.trim().replace(Gr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ce(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function zr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function jr(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Be(t){return oe.toByteArray(qr(t))}function ee(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 A(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function de(t){return t!==t}var Vr=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 qe=Q((lt,Ge)=>{l();var x=Ge.exports={},R,S;function ge(){throw new Error("setTimeout has not been defined")}function fe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?R=setTimeout:R=ge}catch(t){R=ge}try{typeof clearTimeout=="function"?S=clearTimeout:S=fe}catch(t){S=fe}})();function Pe(t){if(R===setTimeout)return setTimeout(t,0);if((R===ge||!R)&&setTimeout)return R=setTimeout,setTimeout(t,0);try{return R(t,0)}catch(e){try{return R.call(null,t,0)}catch(r){return R.call(this,t,0)}}}function Hr(t){if(S===clearTimeout)return clearTimeout(t);if((S===fe||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(t);try{return S(t)}catch(e){try{return S.call(null,t)}catch(r){return S.call(this,t)}}}var D=[],z=!1,O,re=-1;function Wr(){!z||!O||(z=!1,O.length?D=O.concat(D):re=-1,D.length&&Me())}function Me(){if(!z){var t=Pe(Wr);z=!0;for(var e=D.length;e;){for(O=D,D=[];++re<e;)O&&O[re].run();re=-1,e=D.length}O=null,z=!1,Hr(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];D.push(new Oe(t,e)),D.length===1&&!z&&Pe(Me)};function Oe(t,e){this.fun=t,this.array=e}Oe.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function C(){}x.on=C;x.addListener=C;x.once=C;x.off=C;x.removeListener=C;x.removeAllListeners=C;x.emit=C;x.prependListener=C;x.prependOnceListener=C;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 f,m,ct,l=dr(()=>{f=H(Ue()),m=H(qe()),ct=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 tt={};gr(tt,{calculateFeeLimit:()=>Xr,denominate:()=>$r,formatAmount:()=>he,getRemainingTime:()=>xe,getUsdValue:()=>Zr,nominate:()=>Yr,parseAmount:()=>ye,pipe:()=>F,timeAgo:()=>et,timeRemaining:()=>Kr,truncate:()=>rt});module.exports=fr(tt);l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();var me={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:ze,egldLabel:Rt}=me["devnet"],{chainId:je,egldLabel:St}=me["testnet"],{chainId:Ve,egldLabel:Lt}=me["mainnet"];var Ft={["devnet"]:ze,["testnet"]:je,["mainnet"]:Ve},Nt={[ze]:"devnet",[je]:"testnet",[Ve]:"mainnet"};l();l();l();l();var L=require("@multiversx/sdk-web-wallet-provider");var He=5e4,We=1e9,B=18,te=4;var j="0";l();var Ye=require("@multiversx/sdk-core"),U=H(require("bignumber.js"));l();var $e=H(require("bignumber.js")),ne=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new $e.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};l();function F(t){return{if:function(e){return e?{then:r=>r instanceof Function?F(r(t)):F(r)}:{then:()=>F(t)}},then:e=>e instanceof Function?F(e(t)):F(e),valueOf:function(){return t}}}U.default.config({ROUNDING_MODE:U.default.ROUND_FLOOR});function he({input:t,decimals:e=B,digits:r=te,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:a=!1}){if(!ne(t,!1))throw new Error("Invalid input");let o=new U.default(t).isNegative(),c=t;return o&&(c=t.substring(1)),F(c).then(()=>Ye.TokenPayment.fungibleFromBigInteger("",c,e).toRationalNumber()).then(u=>{let d=new U.default(u);if(d.isZero())return j;let g=d.toString(10),[p,y]=g.split("."),w=new U.default(y||0),_=F(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(w.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),W=y&&r>=1&&r<=y.length&&w.isGreaterThan(0)&&new U.default(y.substring(0,r)).isZero(),ir=d.toFormat(_);return F(g).if(a).then(ir).if(Boolean(W)).then($=>{let V=new U.default(p).isZero(),[k,Y]=$.split("."),X=new Array(r-1).fill(0),ar=[...X,0].join(""),or=[...X,1].join("");return V?i?`<${k}.${or}`:n?`${k}.${Y}`:k:`${k}.${ar}`}).if(Boolean(!W&&y)).then($=>{let[V]=$.split("."),k=y.substring(0,_);if(n){let Y=r-k.length;if(Y>0){let X=Array(Y).fill(0).join("");return k=`${k}${X}`,`${V}.${k}`}return $}return k?`${V}.${k}`:V}).valueOf()}).if(o).then(u=>`-${u}`).valueOf()}var Xe=!1;function $r({input:t,denomination:e=B,decimals:r=te,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:a=!1}){return Xe||(console.warn('!!! Be aware !!! The "denominate" function is deprecated. Please use "formatAmount" instead.'),Xe=!0),he({input:t,decimals:e,addCommas:a,digits:r,showIsLessThanDecimalsLabel:i,showLastNonZeroDecimal:n})}l();l();var Ze=require("@multiversx/sdk-core");function ye(t,e=B){return Ze.TokenPayment.fungibleFromAmount("",t,e).toString()}var Qe=!1;function Yr(t,e=B){return Qe||(console.warn('!!! Be aware !!! The "nominate" function is deprecated. Please use "parseAmount" instead.'),Qe=!0),ye(t,e)}l();var I=require("@multiversx/sdk-core"),rr=require("@multiversx/sdk-network-providers");l();l();var Ke=H(require("bignumber.js"));var Je=t=>{if(isNaN(t)||t==null||String(t).includes("Infinity"))return!1;let[e,r]=t.split(".");if(r)for(;r.charAt(r.length-1)===j;)r=r.slice(0,-1);let n=r?[e,r].join("."):e,i=new Ke.default(n);return i.toString(10)===n&&i.comparedTo(0)>=0};l();l();var er={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function Xr({minGasLimit:t=String(He),gasLimit:e,gasPrice:r,data:n,gasPerDataByte:i,gasPriceModifier:a,defaultGasPrice:o=String(We),chainId:c}){let u=n||"",d=ne(e)?e:t,g=Je(r)?r:o,p=new I.Transaction({nonce:0,value:I.TokenPayment.egldFromAmount("0"),receiver:new I.Address(er.to),sender:new I.Address(er.to),gasPrice:parseInt(g),gasLimit:parseInt(d),data:new I.TransactionPayload(u.trim()),chainID:c,version:new I.TransactionVersion(1)}),y=new rr.NetworkConfig;y.MinGasLimit=parseInt(t),y.GasPerDataByte=parseInt(i),y.GasPriceModifier=parseFloat(a);try{return p.computeFee(y).toString(10)}catch(w){return j}}l();var Zr=({amount:t,usd:e,decimals:r=2,addEqualSign:n})=>{let i=(parseFloat(t)*e).toFixed(r),a=parseFloat(i).toLocaleString("en",{maximumFractionDigits:r,minimumFractionDigits:r}),o=parseFloat(t)>0?"\u2248":"=";return`${n?`${o} `:""}$${a}`};l();function xe(t){let e=Math.floor(t/864e5),r=t%(24*60*60*1e3),n=Math.floor(r/(60*60*1e3)),i=r%(60*60*1e3),a=Math.floor(i/(60*1e3)),o=i%(60*1e3),c=Math.floor(o/1e3),u=c+" sec",d=a+" min",g=n+" hr",p=e+" day";if(c>1&&(u=c+" sec"),a>1&&(d=a+" min"),n>1&&(g=n+" hrs"),e>1&&(p=e+" days"),e>=1)return p+" "+g;if(n>=1){let y=a===0?"":" "+d;return g+y}if(a>=1){let y=c===0?"":" "+u;return d+y}return u}function nr(t){let e=t.split(" ");return e.length>1?`${e[0]} ${e[1]}`:t}var tr=(t=new Date,e=0)=>Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()+e,t.getUTCMilliseconds());function Qr(t){let e=new Date,r=tr(e),n=tr(e,t);return Math.max(n-r,0)}function Kr(t,e=!0){let r=Qr(t),n=xe(r);return e?nr(n):n}function Jr(t){let r=new Date().getTime()-t;return Math.max(r,0)}function et(t,e=!0){let r=Jr(t),n=xe(r);return e?nr(n):n}l();function rt(t,e,r="..."){return isNaN(e)&&(e=10),r||(r="..."),t!=null&&(t.length<=e||t.length-r.length<=e)?t:String(t).substring(0,e-r.length)+r}0&&(module.exports={calculateFeeLimit,denominate,formatAmount,getRemainingTime,getUsdValue,nominate,parseAmount,pipe,timeAgo,timeRemaining,truncate});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";var Ge=Object.create;var P=Object.defineProperty,ze=Object.defineProperties,qe=Object.getOwnPropertyDescriptor,je=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertyNames,oe=Object.getOwnPropertySymbols,Ve=Object.getPrototypeOf,le=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable;var se=(t,e,r)=>e in t?P(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,M=(t,e)=>{for(var r in e||(e={}))le.call(e,r)&&se(t,r,e[r]);if(oe)for(var r of oe(e))We.call(e,r)&&se(t,r,e[r]);return t},G=(t,e)=>ze(t,je(e));var Ye=(t,e)=>()=>(t&&(e=t(t=0)),e);var z=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Xe=(t,e)=>{for(var r in e)P(t,r,{get:e[r],enumerable:!0})},ce=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of He(e))!le.call(t,i)&&i!==r&&P(t,i,{get:()=>e[i],enumerable:!(n=qe(e,i))||n.enumerable});return t};var q=(t,e,r)=>(r=t!=null?Ge(Ve(t)):{},ce(e||!t||!t.__esModule?P(r,"default",{value:t,enumerable:!0}):r,t)),Qe=t=>ce(P({},"__esModule",{value:!0}),t);var de=z(j=>{"use strict";l();j.byteLength=Ze;j.toByteArray=$e;j.fromByteArray=tr;var k=[],T=[],Ke=typeof Uint8Array!="undefined"?Uint8Array:Array,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(N=0,ue=Y.length;N<ue;++N)k[N]=Y[N],T[Y.charCodeAt(N)]=N;var N,ue;T["-".charCodeAt(0)]=62;T["_".charCodeAt(0)]=63;function pe(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 Ze(t){var e=pe(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Je(t,e,r){return(e+r)*3/4-r}function $e(t){var e,r=pe(t),n=r[0],i=r[1],a=new Ke(Je(t,n,i)),o=0,c=i>0?n-4:n,u;for(u=0;u<c;u+=4)e=T[t.charCodeAt(u)]<<18|T[t.charCodeAt(u+1)]<<12|T[t.charCodeAt(u+2)]<<6|T[t.charCodeAt(u+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=T[t.charCodeAt(u)]<<2|T[t.charCodeAt(u+1)]>>4,a[o++]=e&255),i===1&&(e=T[t.charCodeAt(u)]<<10|T[t.charCodeAt(u+1)]<<4|T[t.charCodeAt(u+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function er(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function rr(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(er(n));return i.join("")}function tr(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,c=r-n;o<c;o+=a)i.push(rr(t,o,o+a>c?c:o+a));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var ge=z(X=>{l();X.read=function(t,e,r,n,i){var a,o,c=i*8-n-1,u=(1<<c)-1,d=u>>1,g=-7,p=r?i-1:0,v=r?-1:1,b=t[e+p];for(p+=v,a=b&(1<<-g)-1,b>>=-g,g+=c;g>0;a=a*256+t[e+p],p+=v,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+p],p+=v,g-=8);if(a===0)a=1-d;else{if(a===u)return o?NaN:(b?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(b?-1:1)*o*Math.pow(2,a-n)};X.write=function(t,e,r,n,i,a){var o,c,u,d=a*8-i-1,g=(1<<d)-1,p=g>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,D=n?1:-1,Me=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+p>=1?e+=v/u:e+=v*Math.pow(2,1-p),e*u>=2&&(o++,u/=2),o+p>=g?(c=0,o=g):o+p>=1?(c=(e*u-1)*Math.pow(2,i),o=o+p):(c=e*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[r+b]=c&255,b+=D,c/=256,i-=8);for(o=o<<i|c,d+=i;d>0;t[r+b]=o&255,b+=D,o/=256,d-=8);t[r+b-D]|=Me*128}});var Ee=z(U=>{"use strict";l();var Q=de(),B=ge(),fe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;U.Buffer=s;U.SlowBuffer=lr;U.INSPECT_MAX_BYTES=50;var H=2147483647;U.kMaxLength=H;s.TYPED_ARRAY_SUPPORT=nr();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function nr(){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(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function A(t){if(t>H)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(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 $(t)}return ye(t,e,r)}s.poolSize=8192;function ye(t,e,r){if(typeof t=="string")return ar(t,e);if(ArrayBuffer.isView(t))return or(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(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return Z(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 s.from(n,e,r);var i=sr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.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)}s.from=function(t,e,r){return ye(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function xe(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 ir(t,e,r){return xe(t),t<=0?A(t):e!==void 0?typeof r=="string"?A(t).fill(e,r):A(t).fill(e):A(t)}s.alloc=function(t,e,r){return ir(t,e,r)};function $(t){return xe(t),A(t<0?0:ee(t)|0)}s.allocUnsafe=function(t){return $(t)};s.allocUnsafeSlow=function(t){return $(t)};function ar(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=we(t,e)|0,n=A(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function K(t){for(var e=t.length<0?0:ee(t.length)|0,r=A(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function or(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return Z(e.buffer,e.byteOffset,e.byteLength)}return K(t)}function Z(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,s.prototype),n}function sr(t){if(s.isBuffer(t)){var e=ee(t.length)|0,r=A(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||re(t.length)?A(0):K(t);if(t.type==="Buffer"&&Array.isArray(t.data))return K(t.data)}function ee(t){if(t>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return t|0}function lr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),_(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.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,a=0,o=Math.min(n,i);a<o;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};s.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}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var o=e[n];if(_(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function we(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(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 J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ie(t).length;default:if(i)return n?-1:J(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=we;function cr(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 wr(this,e,r);case"utf8":case"utf-8":return Te(this,e,r);case"ascii":return yr(this,e,r);case"latin1":case"binary":return xr(this,e,r);case"base64":return mr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return br(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function F(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.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)F(this,r,r+1);return this};s.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)F(this,r,r+3),F(this,r+1,r+2);return this};s.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)F(this,r,r+7),F(this,r+1,r+6),F(this,r+2,r+5),F(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Te(this,0,e):cr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=U.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};fe&&(s.prototype[fe]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.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),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,c=n-r,u=Math.min(o,c),d=this.slice(i,a),g=e.slice(r,n),p=0;p<u;++p)if(d[p]!==g[p]){o=d[p],c=g[p];break}return o<c?-1:c<o?1:0};function be(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,re(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=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:me(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):me(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function me(t,e,r,n,i){var a=1,o=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;a=2,o/=2,c/=2,r/=2}function u(b,D){return a===1?b[D]:b.readUInt16BE(D*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(u(t,d)===u(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+c>o&&(r=o-c),d=r;d>=0;d--){for(var p=!0,v=0;v<c;v++)if(u(t,d+v)!==u(e,v)){p=!1;break}if(p)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return be(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return be(this,e,r,n,!1)};function ur(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var c=parseInt(e.substr(o*2,2),16);if(re(c))return o;t[r+o]=c}return o}function pr(t,e,r,n){return V(J(e,t.length-r),t,r,n)}function dr(t,e,r,n){return V(kr(e),t,r,n)}function gr(t,e,r,n){return V(Ie(e),t,r,n)}function fr(t,e,r,n){return V(_r(e,t.length-r),t,r,n)}s.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 a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return ur(this,e,r,n);case"utf8":case"utf-8":return pr(this,e,r,n);case"ascii":case"latin1":case"binary":return dr(this,e,r,n);case"base64":return gr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fr(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function mr(t,e,r){return e===0&&r===t.length?Q.fromByteArray(t):Q.fromByteArray(t.slice(e,r))}function Te(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,c=a>239?4:a>223?3:a>191?2:1;if(i+c<=r){var u,d,g,p;switch(c){case 1:a<128&&(o=a);break;case 2:u=t[i+1],(u&192)===128&&(p=(a&31)<<6|u&63,p>127&&(o=p));break;case 3:u=t[i+1],d=t[i+2],(u&192)===128&&(d&192)===128&&(p=(a&15)<<12|(u&63)<<6|d&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:u=t[i+1],d=t[i+2],g=t[i+3],(u&192)===128&&(d&192)===128&&(g&192)===128&&(p=(a&15)<<18|(u&63)<<12|(d&63)<<6|g&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,c=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=c}return hr(n)}var he=4096;function hr(t){var e=t.length;if(e<=he)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=he));return r}function yr(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 xr(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 wr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=Ir[t[a]];return i}function br(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.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,s.prototype),i};function x(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")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!1,52,8)};function w(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,e,r,n,a,0)}var o=1,c=0;for(this[r]=e&255;++c<n&&(o*=256);)this[r+c]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,e,r,n,a,0)}var o=n-1,c=1;for(this[r+o]=e&255;--o>=0&&(c*=256);)this[r+o]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);w(this,e,r,n,a-1,-a)}var o=0,c=1,u=0;for(this[r]=e&255;++o<n&&(c*=256);)e<0&&u===0&&this[r+o-1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);w(this,e,r,n,a-1,-a)}var o=n-1,c=1,u=0;for(this[r+o]=e&255;--o>=0&&(c*=256);)e<0&&u===0&&this[r+o+1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function ve(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function ke(t,e,r,n,i){return e=+e,r=r>>>0,i||ve(t,e,r,4,34028234663852886e22,-34028234663852886e22),B.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return ke(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return ke(this,e,r,!1,n)};function _e(t,e,r,n,i){return e=+e,r=r>>>0,i||ve(t,e,r,8,17976931348623157e292,-17976931348623157e292),B.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return _e(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return _e(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.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 a=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),a};s.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"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}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 o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),u=c.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=c[o%u]}return this};var Tr=/[^+/0-9A-Za-z-_]/g;function vr(t){if(t=t.split("=")[0],t=t.trim().replace(Tr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function kr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function _r(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Ie(t){return Q.toByteArray(vr(t))}function V(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 _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function re(t){return t!==t}var Ir=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 Ne=z((Or,Le)=>{l();var y=Le.exports={},I,E;function te(){throw new Error("setTimeout has not been defined")}function ne(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=te}catch(t){I=te}try{typeof clearTimeout=="function"?E=clearTimeout:E=ne}catch(t){E=ne}})();function Re(t){if(I===setTimeout)return setTimeout(t,0);if((I===te||!I)&&setTimeout)return I=setTimeout,setTimeout(t,0);try{return I(t,0)}catch(e){try{return I.call(null,t,0)}catch(r){return I.call(this,t,0)}}}function Er(t){if(E===clearTimeout)return clearTimeout(t);if((E===ne||!E)&&clearTimeout)return E=clearTimeout,clearTimeout(t);try{return E(t)}catch(e){try{return E.call(null,t)}catch(r){return E.call(this,t)}}}var S=[],O=!1,C,W=-1;function Rr(){!O||!C||(O=!1,C.length?S=C.concat(S):W=-1,S.length&&Ae())}function Ae(){if(!O){var t=Re(Rr);O=!0;for(var e=S.length;e;){for(C=S,S=[];++W<e;)C&&C[W].run();W=-1,e=S.length}C=null,O=!1,Er(t)}}y.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];S.push(new Se(t,e)),S.length===1&&!O&&Re(Ae)};function Se(t,e){this.fun=t,this.array=e}Se.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function L(){}y.on=L;y.addListener=L;y.once=L;y.off=L;y.removeListener=L;y.removeAllListeners=L;y.emit=L;y.prependListener=L;y.prependOnceListener=L;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var f,m,Pr,l=Ye(()=>{f=q(Ee()),m=q(Ne()),Pr=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 Fr={};Xe(Fr,{getIdentifierType:()=>Nr,maxDecimals:()=>Lr,stringIsFloat:()=>Sr,stringIsInteger:()=>Ar});module.exports=Qe(Fr);l();l();var Fe=q(require("bignumber.js")),Ar=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new Fe.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};l();var Pe=q(require("bignumber.js"));l();l();l();l();l();l();l();l();l();l();l();l();l();var ie={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Ce,egldLabel:it}=ie["devnet"],{chainId:De,egldLabel:at}=ie["testnet"],{chainId:Be,egldLabel:ot}=ie["mainnet"];var st={["devnet"]:Ce,["testnet"]:De,["mainnet"]:Be},lt={[Ce]:"devnet",[De]:"testnet",[Be]:"mainnet"};l();l();l();l();var R=require("@multiversx/sdk-web-wallet-provider");var Ue=18;var Oe="0";var Sr=t=>{if(isNaN(t)||String(t).includes("Infinity"))return!1;let[e,r]=t.split(".");if(r)for(;r.charAt(r.length-1)===Oe;)r=r.slice(0,-1);let n=r?[e,r].join("."):e,i=new Pe.default(n);return i.toString(10)===n&&i.comparedTo(0)>=0};l();var Lr=(t,e)=>{let r=e===void 0?Ue:e;return!(t!=null&&t.toString().indexOf(".")>=0&&t.toString().split(".").pop().length>r)};l();var ae={isEsdt:!1,isNft:!1,isEgld:!1};function Nr(t){let e=t==null?void 0:t.split("-").length;return e===2?G(M({},ae),{isEsdt:!0}):e===3?G(M({},ae),{isNft:!0}):G(M({},ae),{isEgld:!0})}0&&(module.exports={getIdentifierType,maxDecimals,stringIsFloat,stringIsInteger});
1
+ "use strict";var Ge=Object.create;var P=Object.defineProperty,ze=Object.defineProperties,qe=Object.getOwnPropertyDescriptor,je=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertyNames,oe=Object.getOwnPropertySymbols,Ve=Object.getPrototypeOf,le=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable;var se=(t,e,r)=>e in t?P(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,M=(t,e)=>{for(var r in e||(e={}))le.call(e,r)&&se(t,r,e[r]);if(oe)for(var r of oe(e))We.call(e,r)&&se(t,r,e[r]);return t},G=(t,e)=>ze(t,je(e));var Ye=(t,e)=>()=>(t&&(e=t(t=0)),e);var z=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Xe=(t,e)=>{for(var r in e)P(t,r,{get:e[r],enumerable:!0})},ce=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of He(e))!le.call(t,i)&&i!==r&&P(t,i,{get:()=>e[i],enumerable:!(n=qe(e,i))||n.enumerable});return t};var q=(t,e,r)=>(r=t!=null?Ge(Ve(t)):{},ce(e||!t||!t.__esModule?P(r,"default",{value:t,enumerable:!0}):r,t)),Qe=t=>ce(P({},"__esModule",{value:!0}),t);var de=z(j=>{"use strict";l();j.byteLength=Ze;j.toByteArray=$e;j.fromByteArray=tr;var k=[],T=[],Ke=typeof Uint8Array!="undefined"?Uint8Array:Array,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(N=0,ue=Y.length;N<ue;++N)k[N]=Y[N],T[Y.charCodeAt(N)]=N;var N,ue;T["-".charCodeAt(0)]=62;T["_".charCodeAt(0)]=63;function pe(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 Ze(t){var e=pe(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Je(t,e,r){return(e+r)*3/4-r}function $e(t){var e,r=pe(t),n=r[0],i=r[1],a=new Ke(Je(t,n,i)),o=0,c=i>0?n-4:n,u;for(u=0;u<c;u+=4)e=T[t.charCodeAt(u)]<<18|T[t.charCodeAt(u+1)]<<12|T[t.charCodeAt(u+2)]<<6|T[t.charCodeAt(u+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=T[t.charCodeAt(u)]<<2|T[t.charCodeAt(u+1)]>>4,a[o++]=e&255),i===1&&(e=T[t.charCodeAt(u)]<<10|T[t.charCodeAt(u+1)]<<4|T[t.charCodeAt(u+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function er(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function rr(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(er(n));return i.join("")}function tr(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,c=r-n;o<c;o+=a)i.push(rr(t,o,o+a>c?c:o+a));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var ge=z(X=>{l();X.read=function(t,e,r,n,i){var a,o,c=i*8-n-1,u=(1<<c)-1,d=u>>1,g=-7,p=r?i-1:0,v=r?-1:1,b=t[e+p];for(p+=v,a=b&(1<<-g)-1,b>>=-g,g+=c;g>0;a=a*256+t[e+p],p+=v,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+p],p+=v,g-=8);if(a===0)a=1-d;else{if(a===u)return o?NaN:(b?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(b?-1:1)*o*Math.pow(2,a-n)};X.write=function(t,e,r,n,i,a){var o,c,u,d=a*8-i-1,g=(1<<d)-1,p=g>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,D=n?1:-1,Me=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+p>=1?e+=v/u:e+=v*Math.pow(2,1-p),e*u>=2&&(o++,u/=2),o+p>=g?(c=0,o=g):o+p>=1?(c=(e*u-1)*Math.pow(2,i),o=o+p):(c=e*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[r+b]=c&255,b+=D,c/=256,i-=8);for(o=o<<i|c,d+=i;d>0;t[r+b]=o&255,b+=D,o/=256,d-=8);t[r+b-D]|=Me*128}});var Ee=z(U=>{"use strict";l();var Q=de(),B=ge(),fe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;U.Buffer=s;U.SlowBuffer=lr;U.INSPECT_MAX_BYTES=50;var H=2147483647;U.kMaxLength=H;s.TYPED_ARRAY_SUPPORT=nr();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function nr(){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(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function A(t){if(t>H)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(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 $(t)}return ye(t,e,r)}s.poolSize=8192;function ye(t,e,r){if(typeof t=="string")return ar(t,e);if(ArrayBuffer.isView(t))return or(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(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return Z(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 s.from(n,e,r);var i=sr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.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)}s.from=function(t,e,r){return ye(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function xe(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 ir(t,e,r){return xe(t),t<=0?A(t):e!==void 0?typeof r=="string"?A(t).fill(e,r):A(t).fill(e):A(t)}s.alloc=function(t,e,r){return ir(t,e,r)};function $(t){return xe(t),A(t<0?0:ee(t)|0)}s.allocUnsafe=function(t){return $(t)};s.allocUnsafeSlow=function(t){return $(t)};function ar(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=we(t,e)|0,n=A(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function K(t){for(var e=t.length<0?0:ee(t.length)|0,r=A(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function or(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return Z(e.buffer,e.byteOffset,e.byteLength)}return K(t)}function Z(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,s.prototype),n}function sr(t){if(s.isBuffer(t)){var e=ee(t.length)|0,r=A(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||re(t.length)?A(0):K(t);if(t.type==="Buffer"&&Array.isArray(t.data))return K(t.data)}function ee(t){if(t>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return t|0}function lr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),_(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.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,a=0,o=Math.min(n,i);a<o;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};s.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}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var o=e[n];if(_(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function we(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(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 J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ie(t).length;default:if(i)return n?-1:J(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=we;function cr(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 wr(this,e,r);case"utf8":case"utf-8":return Te(this,e,r);case"ascii":return yr(this,e,r);case"latin1":case"binary":return xr(this,e,r);case"base64":return hr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return br(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function F(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.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)F(this,r,r+1);return this};s.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)F(this,r,r+3),F(this,r+1,r+2);return this};s.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)F(this,r,r+7),F(this,r+1,r+6),F(this,r+2,r+5),F(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Te(this,0,e):cr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=U.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};fe&&(s.prototype[fe]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.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),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,c=n-r,u=Math.min(o,c),d=this.slice(i,a),g=e.slice(r,n),p=0;p<u;++p)if(d[p]!==g[p]){o=d[p],c=g[p];break}return o<c?-1:c<o?1:0};function be(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,re(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=s.from(e,n)),s.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 a=1,o=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;a=2,o/=2,c/=2,r/=2}function u(b,D){return a===1?b[D]:b.readUInt16BE(D*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(u(t,d)===u(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+c>o&&(r=o-c),d=r;d>=0;d--){for(var p=!0,v=0;v<c;v++)if(u(t,d+v)!==u(e,v)){p=!1;break}if(p)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return be(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return be(this,e,r,n,!1)};function ur(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var c=parseInt(e.substr(o*2,2),16);if(re(c))return o;t[r+o]=c}return o}function pr(t,e,r,n){return V(J(e,t.length-r),t,r,n)}function dr(t,e,r,n){return V(kr(e),t,r,n)}function gr(t,e,r,n){return V(Ie(e),t,r,n)}function fr(t,e,r,n){return V(_r(e,t.length-r),t,r,n)}s.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 a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return ur(this,e,r,n);case"utf8":case"utf-8":return pr(this,e,r,n);case"ascii":case"latin1":case"binary":return dr(this,e,r,n);case"base64":return gr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fr(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function hr(t,e,r){return e===0&&r===t.length?Q.fromByteArray(t):Q.fromByteArray(t.slice(e,r))}function Te(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,c=a>239?4:a>223?3:a>191?2:1;if(i+c<=r){var u,d,g,p;switch(c){case 1:a<128&&(o=a);break;case 2:u=t[i+1],(u&192)===128&&(p=(a&31)<<6|u&63,p>127&&(o=p));break;case 3:u=t[i+1],d=t[i+2],(u&192)===128&&(d&192)===128&&(p=(a&15)<<12|(u&63)<<6|d&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:u=t[i+1],d=t[i+2],g=t[i+3],(u&192)===128&&(d&192)===128&&(g&192)===128&&(p=(a&15)<<18|(u&63)<<12|(d&63)<<6|g&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,c=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=c}return mr(n)}var me=4096;function mr(t){var e=t.length;if(e<=me)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=me));return r}function yr(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 xr(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 wr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=Ir[t[a]];return i}function br(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.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,s.prototype),i};function x(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")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!1,52,8)};function w(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,e,r,n,a,0)}var o=1,c=0;for(this[r]=e&255;++c<n&&(o*=256);)this[r+c]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,e,r,n,a,0)}var o=n-1,c=1;for(this[r+o]=e&255;--o>=0&&(c*=256);)this[r+o]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);w(this,e,r,n,a-1,-a)}var o=0,c=1,u=0;for(this[r]=e&255;++o<n&&(c*=256);)e<0&&u===0&&this[r+o-1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);w(this,e,r,n,a-1,-a)}var o=n-1,c=1,u=0;for(this[r+o]=e&255;--o>=0&&(c*=256);)e<0&&u===0&&this[r+o+1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function ve(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function ke(t,e,r,n,i){return e=+e,r=r>>>0,i||ve(t,e,r,4,34028234663852886e22,-34028234663852886e22),B.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return ke(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return ke(this,e,r,!1,n)};function _e(t,e,r,n,i){return e=+e,r=r>>>0,i||ve(t,e,r,8,17976931348623157e292,-17976931348623157e292),B.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return _e(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return _e(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.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 a=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),a};s.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"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}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 o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),u=c.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=c[o%u]}return this};var Tr=/[^+/0-9A-Za-z-_]/g;function vr(t){if(t=t.split("=")[0],t=t.trim().replace(Tr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function kr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function _r(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Ie(t){return Q.toByteArray(vr(t))}function V(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 _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function re(t){return t!==t}var Ir=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 Ne=z((Or,Le)=>{l();var y=Le.exports={},I,E;function te(){throw new Error("setTimeout has not been defined")}function ne(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=te}catch(t){I=te}try{typeof clearTimeout=="function"?E=clearTimeout:E=ne}catch(t){E=ne}})();function Re(t){if(I===setTimeout)return setTimeout(t,0);if((I===te||!I)&&setTimeout)return I=setTimeout,setTimeout(t,0);try{return I(t,0)}catch(e){try{return I.call(null,t,0)}catch(r){return I.call(this,t,0)}}}function Er(t){if(E===clearTimeout)return clearTimeout(t);if((E===ne||!E)&&clearTimeout)return E=clearTimeout,clearTimeout(t);try{return E(t)}catch(e){try{return E.call(null,t)}catch(r){return E.call(this,t)}}}var S=[],O=!1,C,W=-1;function Rr(){!O||!C||(O=!1,C.length?S=C.concat(S):W=-1,S.length&&Ae())}function Ae(){if(!O){var t=Re(Rr);O=!0;for(var e=S.length;e;){for(C=S,S=[];++W<e;)C&&C[W].run();W=-1,e=S.length}C=null,O=!1,Er(t)}}y.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];S.push(new Se(t,e)),S.length===1&&!O&&Re(Ae)};function Se(t,e){this.fun=t,this.array=e}Se.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function L(){}y.on=L;y.addListener=L;y.once=L;y.off=L;y.removeListener=L;y.removeAllListeners=L;y.emit=L;y.prependListener=L;y.prependOnceListener=L;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var f,h,Pr,l=Ye(()=>{f=q(Ee()),h=q(Ne()),Pr=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 Fr={};Xe(Fr,{getIdentifierType:()=>Nr,maxDecimals:()=>Lr,stringIsFloat:()=>Sr,stringIsInteger:()=>Ar});module.exports=Qe(Fr);l();l();var Fe=q(require("bignumber.js")),Ar=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new Fe.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};l();var Pe=q(require("bignumber.js"));l();l();l();l();l();l();l();l();l();l();l();l();l();var ie={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Ce,egldLabel:it}=ie["devnet"],{chainId:De,egldLabel:at}=ie["testnet"],{chainId:Be,egldLabel:ot}=ie["mainnet"];var st={["devnet"]:Ce,["testnet"]:De,["mainnet"]:Be},lt={[Ce]:"devnet",[De]:"testnet",[Be]:"mainnet"};l();l();l();l();var R=require("@multiversx/sdk-web-wallet-provider");var Ue=18;var Oe="0";var Sr=t=>{if(isNaN(t)||t==null||String(t).includes("Infinity"))return!1;let[e,r]=t.split(".");if(r)for(;r.charAt(r.length-1)===Oe;)r=r.slice(0,-1);let n=r?[e,r].join("."):e,i=new Pe.default(n);return i.toString(10)===n&&i.comparedTo(0)>=0};l();var Lr=(t,e)=>{let r=e===void 0?Ue:e;return!(t!=null&&t.toString().indexOf(".")>=0&&t.toString().split(".").pop().length>r)};l();var ae={isEsdt:!1,isNft:!1,isEgld:!1};function Nr(t){let e=t==null?void 0:t.split("-").length;return e===2?G(M({},ae),{isEsdt:!0}):e===3?G(M({},ae),{isNft:!0}):G(M({},ae),{isEgld:!0})}0&&(module.exports={getIdentifierType,maxDecimals,stringIsFloat,stringIsInteger});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";var Fe=Object.create;var P=Object.defineProperty;var Ce=Object.getOwnPropertyDescriptor;var De=Object.getOwnPropertyNames;var Be=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var Oe=(t,e)=>()=>(t&&(e=t(t=0)),e);var M=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Pe=(t,e)=>{for(var r in e)P(t,r,{get:e[r],enumerable:!0})},ne=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of De(e))!Ue.call(t,i)&&i!==r&&P(t,i,{get:()=>e[i],enumerable:!(n=Ce(e,i))||n.enumerable});return t};var H=(t,e,r)=>(r=t!=null?Fe(Be(t)):{},ne(e||!t||!t.__esModule?P(r,"default",{value:t,enumerable:!0}):r,t)),Me=t=>ne(P({},"__esModule",{value:!0}),t);var oe=M(G=>{"use strict";u();G.byteLength=ze;G.toByteArray=je;G.fromByteArray=We;var k=[],T=[],Ge=typeof Uint8Array!="undefined"?Uint8Array:Array,V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(N=0,ie=V.length;N<ie;++N)k[N]=V[N],T[V.charCodeAt(N)]=N;var N,ie;T["-".charCodeAt(0)]=62;T["_".charCodeAt(0)]=63;function ae(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 ze(t){var e=ae(t),r=e[0],n=e[1];return(r+n)*3/4-n}function qe(t,e,r){return(e+r)*3/4-r}function je(t){var e,r=ae(t),n=r[0],i=r[1],a=new Ge(qe(t,n,i)),o=0,l=i>0?n-4:n,c;for(c=0;c<l;c+=4)e=T[t.charCodeAt(c)]<<18|T[t.charCodeAt(c+1)]<<12|T[t.charCodeAt(c+2)]<<6|T[t.charCodeAt(c+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=T[t.charCodeAt(c)]<<2|T[t.charCodeAt(c+1)]>>4,a[o++]=e&255),i===1&&(e=T[t.charCodeAt(c)]<<10|T[t.charCodeAt(c+1)]<<4|T[t.charCodeAt(c+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function He(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function Ve(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(He(n));return i.join("")}function We(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(Ve(t,o,o+a>l?l:o+a));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var se=M(W=>{u();W.read=function(t,e,r,n,i){var a,o,l=i*8-n-1,c=(1<<l)-1,d=c>>1,g=-7,p=r?i-1:0,v=r?-1:1,b=t[e+p];for(p+=v,a=b&(1<<-g)-1,b>>=-g,g+=l;g>0;a=a*256+t[e+p],p+=v,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+p],p+=v,g-=8);if(a===0)a=1-d;else{if(a===c)return o?NaN:(b?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(b?-1:1)*o*Math.pow(2,a-n)};W.write=function(t,e,r,n,i,a){var o,l,c,d=a*8-i-1,g=(1<<d)-1,p=g>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,D=n?1:-1,Ne=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+p>=1?e+=v/c:e+=v*Math.pow(2,1-p),e*c>=2&&(o++,c/=2),o+p>=g?(l=0,o=g):o+p>=1?(l=(e*c-1)*Math.pow(2,i),o=o+p):(l=e*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[r+b]=l&255,b+=D,l/=256,i-=8);for(o=o<<i|l,d+=i;d>0;t[r+b]=o&255,b+=D,o/=256,d-=8);t[r+b-D]|=Ne*128}});var be=M(U=>{"use strict";u();var Y=oe(),B=se(),le=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;U.Buffer=s;U.SlowBuffer=Je;U.INSPECT_MAX_BYTES=50;var z=2147483647;U.kMaxLength=z;s.TYPED_ARRAY_SUPPORT=Ye();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Ye(){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(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function A(t){if(t>z)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(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 Z(t)}return pe(t,e,r)}s.poolSize=8192;function pe(t,e,r){if(typeof t=="string")return Qe(t,e);if(ArrayBuffer.isView(t))return Ke(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(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return Q(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 s.from(n,e,r);var i=Ze(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.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)}s.from=function(t,e,r){return pe(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function de(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 Xe(t,e,r){return de(t),t<=0?A(t):e!==void 0?typeof r=="string"?A(t).fill(e,r):A(t).fill(e):A(t)}s.alloc=function(t,e,r){return Xe(t,e,r)};function Z(t){return de(t),A(t<0?0:J(t)|0)}s.allocUnsafe=function(t){return Z(t)};s.allocUnsafeSlow=function(t){return Z(t)};function Qe(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=ge(t,e)|0,n=A(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function X(t){for(var e=t.length<0?0:J(t.length)|0,r=A(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Ke(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return Q(e.buffer,e.byteOffset,e.byteLength)}return X(t)}function Q(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,s.prototype),n}function Ze(t){if(s.isBuffer(t)){var e=J(t.length)|0,r=A(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||$(t.length)?A(0):X(t);if(t.type==="Buffer"&&Array.isArray(t.data))return X(t.data)}function J(t){if(t>=z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+z.toString(16)+" bytes");return t|0}function Je(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),_(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.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,a=0,o=Math.min(n,i);a<o;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};s.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}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var o=e[n];if(_(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function ge(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(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 K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return we(t).length;default:if(i)return n?-1:K(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=ge;function $e(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 cr(this,e,r);case"utf8":case"utf-8":return fe(this,e,r);case"ascii":return sr(this,e,r);case"latin1":case"binary":return lr(this,e,r);case"base64":return ar(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ur(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function F(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.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)F(this,r,r+1);return this};s.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)F(this,r,r+3),F(this,r+1,r+2);return this};s.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)F(this,r,r+7),F(this,r+1,r+6),F(this,r+2,r+5),F(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?fe(this,0,e):$e.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=U.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};le&&(s.prototype[le]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.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),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,l=n-r,c=Math.min(o,l),d=this.slice(i,a),g=e.slice(r,n),p=0;p<c;++p)if(d[p]!==g[p]){o=d[p],l=g[p];break}return o<l?-1:l<o?1:0};function he(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,$(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=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:ce(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):ce(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ce(t,e,r,n,i){var a=1,o=t.length,l=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;a=2,o/=2,l/=2,r/=2}function c(b,D){return a===1?b[D]:b.readUInt16BE(D*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(c(t,d)===c(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===l)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+l>o&&(r=o-l),d=r;d>=0;d--){for(var p=!0,v=0;v<l;v++)if(c(t,d+v)!==c(e,v)){p=!1;break}if(p)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return he(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return he(this,e,r,n,!1)};function er(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var l=parseInt(e.substr(o*2,2),16);if($(l))return o;t[r+o]=l}return o}function rr(t,e,r,n){return q(K(e,t.length-r),t,r,n)}function tr(t,e,r,n){return q(gr(e),t,r,n)}function nr(t,e,r,n){return q(we(e),t,r,n)}function ir(t,e,r,n){return q(hr(e,t.length-r),t,r,n)}s.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 a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return er(this,e,r,n);case"utf8":case"utf-8":return rr(this,e,r,n);case"ascii":case"latin1":case"binary":return tr(this,e,r,n);case"base64":return nr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ir(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ar(t,e,r){return e===0&&r===t.length?Y.fromByteArray(t):Y.fromByteArray(t.slice(e,r))}function fe(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,l=a>239?4:a>223?3:a>191?2:1;if(i+l<=r){var c,d,g,p;switch(l){case 1:a<128&&(o=a);break;case 2:c=t[i+1],(c&192)===128&&(p=(a&31)<<6|c&63,p>127&&(o=p));break;case 3:c=t[i+1],d=t[i+2],(c&192)===128&&(d&192)===128&&(p=(a&15)<<12|(c&63)<<6|d&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:c=t[i+1],d=t[i+2],g=t[i+3],(c&192)===128&&(d&192)===128&&(g&192)===128&&(p=(a&15)<<18|(c&63)<<12|(d&63)<<6|g&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=l}return or(n)}var ue=4096;function or(t){var e=t.length;if(e<=ue)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=ue));return r}function sr(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 lr(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 cr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=fr[t[a]];return i}function ur(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.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,s.prototype),i};function x(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")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!1,52,8)};function w(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,e,r,n,a,0)}var o=1,l=0;for(this[r]=e&255;++l<n&&(o*=256);)this[r+l]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,e,r,n,a,0)}var o=n-1,l=1;for(this[r+o]=e&255;--o>=0&&(l*=256);)this[r+o]=e/l&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);w(this,e,r,n,a-1,-a)}var o=0,l=1,c=0;for(this[r]=e&255;++o<n&&(l*=256);)e<0&&c===0&&this[r+o-1]!==0&&(c=1),this[r+o]=(e/l>>0)-c&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);w(this,e,r,n,a-1,-a)}var o=n-1,l=1,c=0;for(this[r+o]=e&255;--o>=0&&(l*=256);)e<0&&c===0&&this[r+o+1]!==0&&(c=1),this[r+o]=(e/l>>0)-c&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(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 me(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function ye(t,e,r,n,i){return e=+e,r=r>>>0,i||me(t,e,r,4,34028234663852886e22,-34028234663852886e22),B.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return ye(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return ye(this,e,r,!1,n)};function xe(t,e,r,n,i){return e=+e,r=r>>>0,i||me(t,e,r,8,17976931348623157e292,-17976931348623157e292),B.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return xe(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return xe(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.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 a=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),a};s.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"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}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 o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var l=s.isBuffer(e)?e:s.from(e,i),c=l.length;if(c===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=l[o%c]}return this};var pr=/[^+/0-9A-Za-z-_]/g;function dr(t){if(t=t.split("=")[0],t=t.trim().replace(pr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function K(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function gr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function hr(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function we(t){return Y.toByteArray(dr(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function $(t){return t!==t}var fr=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 Ie=M((_r,_e)=>{u();var y=_e.exports={},I,E;function ee(){throw new Error("setTimeout has not been defined")}function re(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=ee}catch(t){I=ee}try{typeof clearTimeout=="function"?E=clearTimeout:E=re}catch(t){E=re}})();function Te(t){if(I===setTimeout)return setTimeout(t,0);if((I===ee||!I)&&setTimeout)return I=setTimeout,setTimeout(t,0);try{return I(t,0)}catch(e){try{return I.call(null,t,0)}catch(r){return I.call(this,t,0)}}}function mr(t){if(E===clearTimeout)return clearTimeout(t);if((E===re||!E)&&clearTimeout)return E=clearTimeout,clearTimeout(t);try{return E(t)}catch(e){try{return E.call(null,t)}catch(r){return E.call(this,t)}}}var S=[],O=!1,C,j=-1;function yr(){!O||!C||(O=!1,C.length?S=C.concat(S):j=-1,S.length&&ve())}function ve(){if(!O){var t=Te(yr);O=!0;for(var e=S.length;e;){for(C=S,S=[];++j<e;)C&&C[j].run();j=-1,e=S.length}C=null,O=!1,mr(t)}}y.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];S.push(new ke(t,e)),S.length===1&&!O&&Te(ve)};function ke(t,e){this.fun=t,this.array=e}ke.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function L(){}y.on=L;y.addListener=L;y.once=L;y.off=L;y.removeListener=L;y.removeAllListeners=L;y.emit=L;y.prependListener=L;y.prependOnceListener=L;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var h,f,Ir,u=Oe(()=>{h=H(be()),f=H(Ie()),Ir=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 wr={};Pe(wr,{stringIsFloat:()=>xr});module.exports=Me(wr);u();var Le=H(require("bignumber.js"));u();u();u();u();u();u();u();u();u();u();u();u();u();var te={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Ee,egldLabel:Hr}=te["devnet"],{chainId:Re,egldLabel:Vr}=te["testnet"],{chainId:Ae,egldLabel:Wr}=te["mainnet"];var Yr={["devnet"]:Ee,["testnet"]:Re,["mainnet"]:Ae},Xr={[Ee]:"devnet",[Re]:"testnet",[Ae]:"mainnet"};u();u();u();u();var R=require("@multiversx/sdk-web-wallet-provider");var Se="0";var xr=t=>{if(isNaN(t)||String(t).includes("Infinity"))return!1;let[e,r]=t.split(".");if(r)for(;r.charAt(r.length-1)===Se;)r=r.slice(0,-1);let n=r?[e,r].join("."):e,i=new Le.default(n);return i.toString(10)===n&&i.comparedTo(0)>=0};0&&(module.exports={stringIsFloat});
1
+ "use strict";var Fe=Object.create;var P=Object.defineProperty;var Ce=Object.getOwnPropertyDescriptor;var De=Object.getOwnPropertyNames;var Be=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var Oe=(t,e)=>()=>(t&&(e=t(t=0)),e);var M=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Pe=(t,e)=>{for(var r in e)P(t,r,{get:e[r],enumerable:!0})},ne=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of De(e))!Ue.call(t,i)&&i!==r&&P(t,i,{get:()=>e[i],enumerable:!(n=Ce(e,i))||n.enumerable});return t};var H=(t,e,r)=>(r=t!=null?Fe(Be(t)):{},ne(e||!t||!t.__esModule?P(r,"default",{value:t,enumerable:!0}):r,t)),Me=t=>ne(P({},"__esModule",{value:!0}),t);var oe=M(G=>{"use strict";u();G.byteLength=ze;G.toByteArray=je;G.fromByteArray=We;var k=[],T=[],Ge=typeof Uint8Array!="undefined"?Uint8Array:Array,V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(N=0,ie=V.length;N<ie;++N)k[N]=V[N],T[V.charCodeAt(N)]=N;var N,ie;T["-".charCodeAt(0)]=62;T["_".charCodeAt(0)]=63;function ae(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 ze(t){var e=ae(t),r=e[0],n=e[1];return(r+n)*3/4-n}function qe(t,e,r){return(e+r)*3/4-r}function je(t){var e,r=ae(t),n=r[0],i=r[1],a=new Ge(qe(t,n,i)),o=0,l=i>0?n-4:n,c;for(c=0;c<l;c+=4)e=T[t.charCodeAt(c)]<<18|T[t.charCodeAt(c+1)]<<12|T[t.charCodeAt(c+2)]<<6|T[t.charCodeAt(c+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=T[t.charCodeAt(c)]<<2|T[t.charCodeAt(c+1)]>>4,a[o++]=e&255),i===1&&(e=T[t.charCodeAt(c)]<<10|T[t.charCodeAt(c+1)]<<4|T[t.charCodeAt(c+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function He(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function Ve(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(He(n));return i.join("")}function We(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(Ve(t,o,o+a>l?l:o+a));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var se=M(W=>{u();W.read=function(t,e,r,n,i){var a,o,l=i*8-n-1,c=(1<<l)-1,d=c>>1,g=-7,p=r?i-1:0,v=r?-1:1,b=t[e+p];for(p+=v,a=b&(1<<-g)-1,b>>=-g,g+=l;g>0;a=a*256+t[e+p],p+=v,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+p],p+=v,g-=8);if(a===0)a=1-d;else{if(a===c)return o?NaN:(b?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(b?-1:1)*o*Math.pow(2,a-n)};W.write=function(t,e,r,n,i,a){var o,l,c,d=a*8-i-1,g=(1<<d)-1,p=g>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,D=n?1:-1,Ne=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+p>=1?e+=v/c:e+=v*Math.pow(2,1-p),e*c>=2&&(o++,c/=2),o+p>=g?(l=0,o=g):o+p>=1?(l=(e*c-1)*Math.pow(2,i),o=o+p):(l=e*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[r+b]=l&255,b+=D,l/=256,i-=8);for(o=o<<i|l,d+=i;d>0;t[r+b]=o&255,b+=D,o/=256,d-=8);t[r+b-D]|=Ne*128}});var be=M(U=>{"use strict";u();var Y=oe(),B=se(),le=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;U.Buffer=s;U.SlowBuffer=Je;U.INSPECT_MAX_BYTES=50;var z=2147483647;U.kMaxLength=z;s.TYPED_ARRAY_SUPPORT=Ye();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Ye(){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(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function A(t){if(t>z)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(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 Z(t)}return pe(t,e,r)}s.poolSize=8192;function pe(t,e,r){if(typeof t=="string")return Qe(t,e);if(ArrayBuffer.isView(t))return Ke(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(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return Q(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 s.from(n,e,r);var i=Ze(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.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)}s.from=function(t,e,r){return pe(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function de(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 Xe(t,e,r){return de(t),t<=0?A(t):e!==void 0?typeof r=="string"?A(t).fill(e,r):A(t).fill(e):A(t)}s.alloc=function(t,e,r){return Xe(t,e,r)};function Z(t){return de(t),A(t<0?0:J(t)|0)}s.allocUnsafe=function(t){return Z(t)};s.allocUnsafeSlow=function(t){return Z(t)};function Qe(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=ge(t,e)|0,n=A(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function X(t){for(var e=t.length<0?0:J(t.length)|0,r=A(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Ke(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return Q(e.buffer,e.byteOffset,e.byteLength)}return X(t)}function Q(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,s.prototype),n}function Ze(t){if(s.isBuffer(t)){var e=J(t.length)|0,r=A(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||$(t.length)?A(0):X(t);if(t.type==="Buffer"&&Array.isArray(t.data))return X(t.data)}function J(t){if(t>=z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+z.toString(16)+" bytes");return t|0}function Je(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),_(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.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,a=0,o=Math.min(n,i);a<o;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};s.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}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var o=e[n];if(_(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function ge(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(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 K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return we(t).length;default:if(i)return n?-1:K(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=ge;function $e(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 cr(this,e,r);case"utf8":case"utf-8":return fe(this,e,r);case"ascii":return sr(this,e,r);case"latin1":case"binary":return lr(this,e,r);case"base64":return ar(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ur(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function F(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.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)F(this,r,r+1);return this};s.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)F(this,r,r+3),F(this,r+1,r+2);return this};s.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)F(this,r,r+7),F(this,r+1,r+6),F(this,r+2,r+5),F(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?fe(this,0,e):$e.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=U.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};le&&(s.prototype[le]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.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),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,l=n-r,c=Math.min(o,l),d=this.slice(i,a),g=e.slice(r,n),p=0;p<c;++p)if(d[p]!==g[p]){o=d[p],l=g[p];break}return o<l?-1:l<o?1:0};function he(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,$(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=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:ce(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):ce(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ce(t,e,r,n,i){var a=1,o=t.length,l=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;a=2,o/=2,l/=2,r/=2}function c(b,D){return a===1?b[D]:b.readUInt16BE(D*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(c(t,d)===c(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===l)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+l>o&&(r=o-l),d=r;d>=0;d--){for(var p=!0,v=0;v<l;v++)if(c(t,d+v)!==c(e,v)){p=!1;break}if(p)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return he(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return he(this,e,r,n,!1)};function er(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var l=parseInt(e.substr(o*2,2),16);if($(l))return o;t[r+o]=l}return o}function rr(t,e,r,n){return q(K(e,t.length-r),t,r,n)}function tr(t,e,r,n){return q(gr(e),t,r,n)}function nr(t,e,r,n){return q(we(e),t,r,n)}function ir(t,e,r,n){return q(hr(e,t.length-r),t,r,n)}s.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 a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return er(this,e,r,n);case"utf8":case"utf-8":return rr(this,e,r,n);case"ascii":case"latin1":case"binary":return tr(this,e,r,n);case"base64":return nr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ir(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ar(t,e,r){return e===0&&r===t.length?Y.fromByteArray(t):Y.fromByteArray(t.slice(e,r))}function fe(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,l=a>239?4:a>223?3:a>191?2:1;if(i+l<=r){var c,d,g,p;switch(l){case 1:a<128&&(o=a);break;case 2:c=t[i+1],(c&192)===128&&(p=(a&31)<<6|c&63,p>127&&(o=p));break;case 3:c=t[i+1],d=t[i+2],(c&192)===128&&(d&192)===128&&(p=(a&15)<<12|(c&63)<<6|d&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:c=t[i+1],d=t[i+2],g=t[i+3],(c&192)===128&&(d&192)===128&&(g&192)===128&&(p=(a&15)<<18|(c&63)<<12|(d&63)<<6|g&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=l}return or(n)}var ue=4096;function or(t){var e=t.length;if(e<=ue)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=ue));return r}function sr(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 lr(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 cr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=fr[t[a]];return i}function ur(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.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,s.prototype),i};function x(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")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!1,52,8)};function w(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,e,r,n,a,0)}var o=1,l=0;for(this[r]=e&255;++l<n&&(o*=256);)this[r+l]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,e,r,n,a,0)}var o=n-1,l=1;for(this[r+o]=e&255;--o>=0&&(l*=256);)this[r+o]=e/l&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);w(this,e,r,n,a-1,-a)}var o=0,l=1,c=0;for(this[r]=e&255;++o<n&&(l*=256);)e<0&&c===0&&this[r+o-1]!==0&&(c=1),this[r+o]=(e/l>>0)-c&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);w(this,e,r,n,a-1,-a)}var o=n-1,l=1,c=0;for(this[r+o]=e&255;--o>=0&&(l*=256);)e<0&&c===0&&this[r+o+1]!==0&&(c=1),this[r+o]=(e/l>>0)-c&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(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 me(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function ye(t,e,r,n,i){return e=+e,r=r>>>0,i||me(t,e,r,4,34028234663852886e22,-34028234663852886e22),B.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return ye(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return ye(this,e,r,!1,n)};function xe(t,e,r,n,i){return e=+e,r=r>>>0,i||me(t,e,r,8,17976931348623157e292,-17976931348623157e292),B.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return xe(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return xe(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.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 a=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),a};s.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"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}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 o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var l=s.isBuffer(e)?e:s.from(e,i),c=l.length;if(c===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=l[o%c]}return this};var pr=/[^+/0-9A-Za-z-_]/g;function dr(t){if(t=t.split("=")[0],t=t.trim().replace(pr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function K(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function gr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function hr(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function we(t){return Y.toByteArray(dr(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function $(t){return t!==t}var fr=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 Ie=M((_r,_e)=>{u();var y=_e.exports={},I,E;function ee(){throw new Error("setTimeout has not been defined")}function re(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=ee}catch(t){I=ee}try{typeof clearTimeout=="function"?E=clearTimeout:E=re}catch(t){E=re}})();function Te(t){if(I===setTimeout)return setTimeout(t,0);if((I===ee||!I)&&setTimeout)return I=setTimeout,setTimeout(t,0);try{return I(t,0)}catch(e){try{return I.call(null,t,0)}catch(r){return I.call(this,t,0)}}}function mr(t){if(E===clearTimeout)return clearTimeout(t);if((E===re||!E)&&clearTimeout)return E=clearTimeout,clearTimeout(t);try{return E(t)}catch(e){try{return E.call(null,t)}catch(r){return E.call(this,t)}}}var S=[],O=!1,C,j=-1;function yr(){!O||!C||(O=!1,C.length?S=C.concat(S):j=-1,S.length&&ve())}function ve(){if(!O){var t=Te(yr);O=!0;for(var e=S.length;e;){for(C=S,S=[];++j<e;)C&&C[j].run();j=-1,e=S.length}C=null,O=!1,mr(t)}}y.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];S.push(new ke(t,e)),S.length===1&&!O&&Te(ve)};function ke(t,e){this.fun=t,this.array=e}ke.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function L(){}y.on=L;y.addListener=L;y.once=L;y.off=L;y.removeListener=L;y.removeAllListeners=L;y.emit=L;y.prependListener=L;y.prependOnceListener=L;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var h,f,Ir,u=Oe(()=>{h=H(be()),f=H(Ie()),Ir=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 wr={};Pe(wr,{stringIsFloat:()=>xr});module.exports=Me(wr);u();var Le=H(require("bignumber.js"));u();u();u();u();u();u();u();u();u();u();u();u();u();var te={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Ee,egldLabel:Hr}=te["devnet"],{chainId:Re,egldLabel:Vr}=te["testnet"],{chainId:Ae,egldLabel:Wr}=te["mainnet"];var Yr={["devnet"]:Ee,["testnet"]:Re,["mainnet"]:Ae},Xr={[Ee]:"devnet",[Re]:"testnet",[Ae]:"mainnet"};u();u();u();u();var R=require("@multiversx/sdk-web-wallet-provider");var Se="0";var xr=t=>{if(isNaN(t)||t==null||String(t).includes("Infinity"))return!1;let[e,r]=t.split(".");if(r)for(;r.charAt(r.length-1)===Se;)r=r.slice(0,-1);let n=r?[e,r].join("."):e,i=new Le.default(n);return i.toString(10)===n&&i.comparedTo(0)>=0};0&&(module.exports={stringIsFloat});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *