@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 Ur=Object.create;var X=Object.defineProperty;var Ir=Object.getOwnPropertyDescriptor;var Cr=Object.getOwnPropertyNames;var dr=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty;var Sr=(e,r)=>()=>(e&&(r=e(e=0)),r);var D=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var rr=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Cr(r))!Lr.call(e,n)&&n!==t&&X(e,n,{get:()=>r[n],enumerable:!(i=Ir(r,n))||i.enumerable});return e};var tr=(e,r,t)=>(t=e!=null?Ur(dr(e)):{},rr(r||!e||!e.__esModule?X(t,"default",{value:e,enumerable:!0}):t,e)),Rr=e=>rr(X({},"__esModule",{value:!0}),e);var nr=D(b=>{"use strict";g();b.byteLength=Mr;b.toByteArray=kr;b.fromByteArray=Wr;var F=[],m=[],_r=typeof Uint8Array!="undefined"?Uint8Array:Array,G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(C=0,er=G.length;C<er;++C)F[C]=G[C],m[G.charCodeAt(C)]=C;var C,er;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function ir(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]}function Mr(e){var r=ir(e),t=r[0],i=r[1];return(t+i)*3/4-i}function Nr(e,r,t){return(r+t)*3/4-t}function kr(e){var r,t=ir(e),i=t[0],n=t[1],o=new _r(Nr(e,i,n)),u=0,h=n>0?i-4:i,f;for(f=0;f<h;f+=4)r=m[e.charCodeAt(f)]<<18|m[e.charCodeAt(f+1)]<<12|m[e.charCodeAt(f+2)]<<6|m[e.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return n===2&&(r=m[e.charCodeAt(f)]<<2|m[e.charCodeAt(f+1)]>>4,o[u++]=r&255),n===1&&(r=m[e.charCodeAt(f)]<<10|m[e.charCodeAt(f+1)]<<4|m[e.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Dr(e){return F[e>>18&63]+F[e>>12&63]+F[e>>6&63]+F[e&63]}function br(e,r,t){for(var i,n=[],o=r;o<t;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(Dr(i));return n.join("")}function Wr(e){for(var r,t=e.length,i=t%3,n=[],o=16383,u=0,h=t-i;u<h;u+=o)n.push(br(e,u,u+o>h?h:u+o));return i===1?(r=e[t-1],n.push(F[r>>2]+F[r<<4&63]+"==")):i===2&&(r=(e[t-2]<<8)+e[t-1],n.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),n.join("")}});var or=D(Q=>{g();Q.read=function(e,r,t,i,n){var o,u,h=n*8-i-1,f=(1<<h)-1,c=f>>1,l=-7,p=t?n-1:0,E=t?-1:1,x=e[r+p];for(p+=E,o=x&(1<<-l)-1,x>>=-l,l+=h;l>0;o=o*256+e[r+p],p+=E,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=i;l>0;u=u*256+e[r+p],p+=E,l-=8);if(o===0)o=1-c;else{if(o===f)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,i),o=o-c}return(x?-1:1)*u*Math.pow(2,o-i)};Q.write=function(e,r,t,i,n,o){var u,h,f,c=o*8-n-1,l=(1<<c)-1,p=l>>1,E=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=i?0:o-1,S=i?1:-1,Tr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?r+=E/f:r+=E*Math.pow(2,1-p),r*f>=2&&(u++,f/=2),u+p>=l?(h=0,u=l):u+p>=1?(h=(r*f-1)*Math.pow(2,n),u=u+p):(h=r*Math.pow(2,p-1)*Math.pow(2,n),u=0));n>=8;e[t+x]=h&255,x+=S,h/=256,n-=8);for(u=u<<n|h,c+=n;c>0;e[t+x]=u&255,x+=S,u/=256,c-=8);e[t+x-S]|=Tr*128}});var Er=D(_=>{"use strict";g();var z=nr(),R=or(),ur=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_.Buffer=a;_.SlowBuffer=Qr;_.INSPECT_MAX_BYTES=50;var Y=2147483647;_.kMaxLength=Y;a.TYPED_ARRAY_SUPPORT=Yr();!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Yr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function T(e){if(e>Y)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(e)}return fr(e,r,t)}a.poolSize=8192;function fr(e,r,t){if(typeof e=="string")return Hr(e,r);if(ArrayBuffer.isView(e))return Xr(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return V(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return a.from(i,r,t);var n=Gr(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return fr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function pr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function qr(e,r,t){return pr(e),e<=0?T(e):r!==void 0?typeof t=="string"?T(e).fill(r,t):T(e).fill(r):T(e)}a.alloc=function(e,r,t){return qr(e,r,t)};function O(e){return pr(e),T(e<0?0:P(e)|0)}a.allocUnsafe=function(e){return O(e)};a.allocUnsafeSlow=function(e){return O(e)};function Hr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=cr(e,r)|0,i=T(t),n=i.write(e,r);return n!==t&&(i=i.slice(0,n)),i}function J(e){for(var r=e.length<0?0:P(e.length)|0,t=T(r),i=0;i<r;i+=1)t[i]=e[i]&255;return t}function Xr(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return V(r.buffer,r.byteOffset,r.byteLength)}return J(e)}function V(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&t===void 0?i=new Uint8Array(e):t===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,t),Object.setPrototypeOf(i,a.prototype),i}function Gr(e){if(a.isBuffer(e)){var r=P(e.length)|0,t=T(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||Z(e.length)?T(0):J(e);if(e.type==="Buffer"&&Array.isArray(e.data))return J(e.data)}function P(e){if(e>=Y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Y.toString(16)+" bytes");return e|0}function Qr(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var i=r.length,n=t.length,o=0,u=Math.min(i,n);o<u;++o)if(r[o]!==t[o]){i=r[o],n=t[o];break}return i<n?-1:n<i?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;var n=a.allocUnsafe(t),o=0;for(i=0;i<r.length;++i){var u=r[i];if(B(u,Uint8Array))o+u.length>n.length?a.from(u).copy(n,o):Uint8Array.prototype.set.call(n,u,o);else if(a.isBuffer(u))u.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return n};function cr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return mr(e).length;default:if(n)return i?-1:K(e).length;r=(""+r).toLowerCase(),n=!0}}a.byteLength=cr;function zr(e,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return tt(this,r,t);case"utf8":case"utf-8":return sr(this,r,t);case"ascii":return jr(this,r,t);case"latin1":case"binary":return rt(this,r,t);case"base64":return Zr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function d(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)d(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?sr(this,0,r):zr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=_.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};ur&&(a.prototype[ur]=a.prototype.inspect);a.prototype.compare=function(r,t,i,n,o){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var u=o-n,h=i-t,f=Math.min(u,h),c=this.slice(n,o),l=r.slice(t,i),p=0;p<f;++p)if(c[p]!==l[p]){u=c[p],h=l[p];break}return u<h?-1:h<u?1:0};function lr(e,r,t,i,n){if(e.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Z(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),a.isBuffer(r))return r.length===0?-1:ar(e,r,t,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):ar(e,[r],t,i,n);throw new TypeError("val must be string, number or Buffer")}function ar(e,r,t,i,n){var o=1,u=e.length,h=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,h/=2,t/=2}function f(x,S){return o===1?x[S]:x.readUInt16BE(S*o)}var c;if(n){var l=-1;for(c=t;c<u;c++)if(f(e,c)===f(r,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===h)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(t+h>u&&(t=u-h),c=t;c>=0;c--){for(var p=!0,E=0;E<h;E++)if(f(e,c+E)!==f(r,E)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};a.prototype.indexOf=function(r,t,i){return lr(this,r,t,i,!0)};a.prototype.lastIndexOf=function(r,t,i){return lr(this,r,t,i,!1)};function Jr(e,r,t,i){t=Number(t)||0;var n=e.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);for(var u=0;u<i;++u){var h=parseInt(r.substr(u*2,2),16);if(Z(h))return u;e[t+u]=h}return u}function Vr(e,r,t,i){return q(K(r,e.length-t),e,t,i)}function Kr(e,r,t,i){return q(ot(r),e,t,i)}function Or(e,r,t,i){return q(mr(r),e,t,i)}function Pr(e,r,t,i){return q(ut(r,e.length-t),e,t,i)}a.prototype.write=function(r,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return Jr(this,r,t,i);case"utf8":case"utf-8":return Vr(this,r,t,i);case"ascii":case"latin1":case"binary":return Kr(this,r,t,i);case"base64":return Or(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pr(this,r,t,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Zr(e,r,t){return r===0&&t===e.length?z.fromByteArray(e):z.fromByteArray(e.slice(r,t))}function sr(e,r,t){t=Math.min(e.length,t);for(var i=[],n=r;n<t;){var o=e[n],u=null,h=o>239?4:o>223?3:o>191?2:1;if(n+h<=t){var f,c,l,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=e[n+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=e[n+1],c=e[n+2],(f&192)===128&&(c&192)===128&&(p=(o&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:f=e[n+1],c=e[n+2],l=e[n+3],(f&192)===128&&(c&192)===128&&(l&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|l&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|u&1023),i.push(u),n+=h}return $r(i)}var hr=4096;function $r(e){var r=e.length;if(r<=hr)return String.fromCharCode.apply(String,e);for(var t="",i=0;i<r;)t+=String.fromCharCode.apply(String,e.slice(i,i+=hr));return t}function jr(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]&127);return i}function rt(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]);return i}function tt(e,r,t){var i=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);for(var n="",o=r;o<t;++o)n+=at[e[o]];return n}function et(e,r,t){for(var i=e.slice(r,t),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}a.prototype.slice=function(r,t){var i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,a.prototype),n};function w(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return n};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r+--t],o=1;t>0&&(o*=256);)n+=this[r+--t]*o;return n};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n};a.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=t,o=1,u=this[r+--n];n>0&&(o*=256);)u+=this[r+--n]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!1,52,8)};function y(e,r,t,i,n,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(t+i>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=1,h=0;for(this[t]=r&255;++h<i&&(u*=256);)this[t+h]=r/u&255;return t+i};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=i-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+i};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=0,h=1,f=0;for(this[t]=r&255;++u<i&&(h*=256);)r<0&&f===0&&this[t+u-1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=i-1,h=1,f=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&f===0&&this[t+u+1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function wr(e,r,t,i,n,o){if(t+i>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function yr(e,r,t,i,n){return r=+r,t=t>>>0,n||wr(e,r,t,4,34028234663852886e22,-34028234663852886e22),R.write(e,r,t,i,23,4),t+4}a.prototype.writeFloatLE=function(r,t,i){return yr(this,r,t,!0,i)};a.prototype.writeFloatBE=function(r,t,i){return yr(this,r,t,!1,i)};function xr(e,r,t,i,n){return r=+r,t=t>>>0,n||wr(e,r,t,8,17976931348623157e292,-17976931348623157e292),R.write(e,r,t,i,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,i){return xr(this,r,t,!0,i)};a.prototype.writeDoubleBE=function(r,t,i){return xr(this,r,t,!1,i)};a.prototype.copy=function(r,t,i,n){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-i&&(n=r.length-t+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),t),o};a.prototype.fill=function(r,t,i,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<i;++u)this[u]=r;else{var h=a.isBuffer(r)?r:a.from(r,n),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<i-t;++u)this[u+t]=h[u%f]}return this};var it=/[^+/0-9A-Za-z-_]/g;function nt(e){if(e=e.split("=")[0],e=e.trim().replace(it,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function K(e,r){r=r||1/0;for(var t,i=e.length,n=null,o=[],u=0;u<i;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ot(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function ut(e,r){for(var t,i,n,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),i=t>>8,n=t%256,o.push(n),o.push(i);return o}function mr(e){return z.toByteArray(nt(e))}function q(e,r,t,i){for(var n=0;n<i&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function Z(e){return e!==e}var at=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var i=t*16,n=0;n<16;++n)r[i+n]=e[t]+e[n];return r}()});var vr=D((yt,Ar)=>{g();var s=Ar.exports={},A,v;function $(){throw new Error("setTimeout has not been defined")}function j(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=$}catch(e){A=$}try{typeof clearTimeout=="function"?v=clearTimeout:v=j}catch(e){v=j}})();function gr(e){if(A===setTimeout)return setTimeout(e,0);if((A===$||!A)&&setTimeout)return A=setTimeout,setTimeout(e,0);try{return A(e,0)}catch(r){try{return A.call(null,e,0)}catch(t){return A.call(this,e,0)}}}function ht(e){if(v===clearTimeout)return clearTimeout(e);if((v===j||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var U=[],M=!1,L,H=-1;function ft(){!M||!L||(M=!1,L.length?U=L.concat(U):H=-1,U.length&&Fr())}function Fr(){if(!M){var e=gr(ft);M=!0;for(var r=U.length;r;){for(L=U,U=[];++H<r;)L&&L[H].run();H=-1,r=U.length}L=null,M=!1,ht(e)}}s.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];U.push(new Br(e,r)),U.length===1&&!M&&gr(Fr)};function Br(e,r){this.fun=e,this.array=r}Br.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function I(){}s.on=I;s.addListener=I;s.once=I;s.off=I;s.removeListener=I;s.removeAllListeners=I;s.emit=I;s.prependListener=I;s.prependOnceListener=I;s.listeners=function(e){return[]};s.binding=function(e){throw new Error("process.binding is not supported")};s.cwd=function(){return"/"};s.chdir=function(e){throw new Error("process.chdir is not supported")};s.umask=function(){return 0}});var N,k,xt,g=Sr(()=>{N=tr(Er()),k=tr(vr()),xt=function(e){function r(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var pt={};module.exports=Rr(pt);g();
1
+ "use strict";var Ur=Object.create;var X=Object.defineProperty;var Ir=Object.getOwnPropertyDescriptor;var Cr=Object.getOwnPropertyNames;var dr=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty;var Sr=(e,r)=>()=>(e&&(r=e(e=0)),r);var D=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var rr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Cr(r))!Lr.call(e,i)&&i!==t&&X(e,i,{get:()=>r[i],enumerable:!(n=Ir(r,i))||n.enumerable});return e};var tr=(e,r,t)=>(t=e!=null?Ur(dr(e)):{},rr(r||!e||!e.__esModule?X(t,"default",{value:e,enumerable:!0}):t,e)),Rr=e=>rr(X({},"__esModule",{value:!0}),e);var ir=D(b=>{"use strict";g();b.byteLength=Mr;b.toByteArray=kr;b.fromByteArray=Wr;var F=[],m=[],_r=typeof Uint8Array!="undefined"?Uint8Array:Array,G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(C=0,er=G.length;C<er;++C)F[C]=G[C],m[G.charCodeAt(C)]=C;var C,er;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function nr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var n=t===r?0:4-t%4;return[t,n]}function Mr(e){var r=nr(e),t=r[0],n=r[1];return(t+n)*3/4-n}function Nr(e,r,t){return(r+t)*3/4-t}function kr(e){var r,t=nr(e),n=t[0],i=t[1],o=new _r(Nr(e,n,i)),u=0,h=i>0?n-4:n,f;for(f=0;f<h;f+=4)r=m[e.charCodeAt(f)]<<18|m[e.charCodeAt(f+1)]<<12|m[e.charCodeAt(f+2)]<<6|m[e.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=m[e.charCodeAt(f)]<<2|m[e.charCodeAt(f+1)]>>4,o[u++]=r&255),i===1&&(r=m[e.charCodeAt(f)]<<10|m[e.charCodeAt(f+1)]<<4|m[e.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Dr(e){return F[e>>18&63]+F[e>>12&63]+F[e>>6&63]+F[e&63]}function br(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(Dr(n));return i.join("")}function Wr(e){for(var r,t=e.length,n=t%3,i=[],o=16383,u=0,h=t-n;u<h;u+=o)i.push(br(e,u,u+o>h?h:u+o));return n===1?(r=e[t-1],i.push(F[r>>2]+F[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),i.join("")}});var or=D(Q=>{g();Q.read=function(e,r,t,n,i){var o,u,h=i*8-n-1,f=(1<<h)-1,c=f>>1,l=-7,p=t?i-1:0,E=t?-1:1,x=e[r+p];for(p+=E,o=x&(1<<-l)-1,x>>=-l,l+=h;l>0;o=o*256+e[r+p],p+=E,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+e[r+p],p+=E,l-=8);if(o===0)o=1-c;else{if(o===f)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-c}return(x?-1:1)*u*Math.pow(2,o-n)};Q.write=function(e,r,t,n,i,o){var u,h,f,c=o*8-i-1,l=(1<<c)-1,p=l>>1,E=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:o-1,S=n?1:-1,Tr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?r+=E/f:r+=E*Math.pow(2,1-p),r*f>=2&&(u++,f/=2),u+p>=l?(h=0,u=l):u+p>=1?(h=(r*f-1)*Math.pow(2,i),u=u+p):(h=r*Math.pow(2,p-1)*Math.pow(2,i),u=0));i>=8;e[t+x]=h&255,x+=S,h/=256,i-=8);for(u=u<<i|h,c+=i;c>0;e[t+x]=u&255,x+=S,u/=256,c-=8);e[t+x-S]|=Tr*128}});var Er=D(_=>{"use strict";g();var z=ir(),R=or(),ur=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_.Buffer=a;_.SlowBuffer=Qr;_.INSPECT_MAX_BYTES=50;var Y=2147483647;_.kMaxLength=Y;a.TYPED_ARRAY_SUPPORT=Yr();!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Yr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function T(e){if(e>Y)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(e)}return fr(e,r,t)}a.poolSize=8192;function fr(e,r,t){if(typeof e=="string")return Hr(e,r);if(ArrayBuffer.isView(e))return Xr(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return V(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return a.from(n,r,t);var i=Gr(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return fr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function pr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function qr(e,r,t){return pr(e),e<=0?T(e):r!==void 0?typeof t=="string"?T(e).fill(r,t):T(e).fill(r):T(e)}a.alloc=function(e,r,t){return qr(e,r,t)};function O(e){return pr(e),T(e<0?0:P(e)|0)}a.allocUnsafe=function(e){return O(e)};a.allocUnsafeSlow=function(e){return O(e)};function Hr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=cr(e,r)|0,n=T(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function J(e){for(var r=e.length<0?0:P(e.length)|0,t=T(r),n=0;n<r;n+=1)t[n]=e[n]&255;return t}function Xr(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return V(r.buffer,r.byteOffset,r.byteLength)}return J(e)}function V(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,a.prototype),n}function Gr(e){if(a.isBuffer(e)){var r=P(e.length)|0,t=T(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||Z(e.length)?T(0):J(e);if(e.type==="Buffer"&&Array.isArray(e.data))return J(e.data)}function P(e){if(e>=Y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Y.toString(16)+" bytes");return e|0}function Qr(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var n=r.length,i=t.length,o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=a.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){var u=r[n];if(B(u,Uint8Array))o+u.length>i.length?a.from(u).copy(i,o):Uint8Array.prototype.set.call(i,u,o);else if(a.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function cr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return mr(e).length;default:if(i)return n?-1:K(e).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=cr;function zr(e,r,t){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return tt(this,r,t);case"utf8":case"utf-8":return sr(this,r,t);case"ascii":return jr(this,r,t);case"latin1":case"binary":return rt(this,r,t);case"base64":return Zr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function d(e,r,t){var n=e[r];e[r]=e[t],e[t]=n}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)d(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?sr(this,0,r):zr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=_.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};ur&&(a.prototype[ur]=a.prototype.inspect);a.prototype.compare=function(r,t,n,i,o){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var u=o-i,h=n-t,f=Math.min(u,h),c=this.slice(i,o),l=r.slice(t,n),p=0;p<f;++p)if(c[p]!==l[p]){u=c[p],h=l[p];break}return u<h?-1:h<u?1:0};function lr(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Z(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:ar(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):ar(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function ar(e,r,t,n,i){var o=1,u=e.length,h=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,h/=2,t/=2}function f(x,S){return o===1?x[S]:x.readUInt16BE(S*o)}var c;if(i){var l=-1;for(c=t;c<u;c++)if(f(e,c)===f(r,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===h)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(t+h>u&&(t=u-h),c=t;c>=0;c--){for(var p=!0,E=0;E<h;E++)if(f(e,c+E)!==f(r,E)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};a.prototype.indexOf=function(r,t,n){return lr(this,r,t,n,!0)};a.prototype.lastIndexOf=function(r,t,n){return lr(this,r,t,n,!1)};function Jr(e,r,t,n){t=Number(t)||0;var i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var u=0;u<n;++u){var h=parseInt(r.substr(u*2,2),16);if(Z(h))return u;e[t+u]=h}return u}function Vr(e,r,t,n){return q(K(r,e.length-t),e,t,n)}function Kr(e,r,t,n){return q(ot(r),e,t,n)}function Or(e,r,t,n){return q(mr(r),e,t,n)}function Pr(e,r,t,n){return q(ut(r,e.length-t),e,t,n)}a.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return Jr(this,r,t,n);case"utf8":case"utf-8":return Vr(this,r,t,n);case"ascii":case"latin1":case"binary":return Kr(this,r,t,n);case"base64":return Or(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pr(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Zr(e,r,t){return r===0&&t===e.length?z.fromByteArray(e):z.fromByteArray(e.slice(r,t))}function sr(e,r,t){t=Math.min(e.length,t);for(var n=[],i=r;i<t;){var o=e[i],u=null,h=o>239?4:o>223?3:o>191?2:1;if(i+h<=t){var f,c,l,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=e[i+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=e[i+1],c=e[i+2],(f&192)===128&&(c&192)===128&&(p=(o&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:f=e[i+1],c=e[i+2],l=e[i+3],(f&192)===128&&(c&192)===128&&(l&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|l&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=h}return $r(n)}var hr=4096;function $r(e){var r=e.length;if(r<=hr)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=hr));return t}function jr(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function rt(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function tt(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var i="",o=r;o<t;++o)i+=at[e[o]];return i}function et(e,r,t){for(var n=e.slice(r,t),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}a.prototype.slice=function(r,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,a.prototype),i};function w(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||w(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||w(r,t,this.length);for(var i=this[r+--t],o=1;t>0&&(o*=256);)i+=this[r+--t]*o;return i};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||w(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};a.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||w(r,t,this.length);for(var i=t,o=1,u=this[r+--i];i>0&&(o*=256);)u+=this[r+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||w(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!1,52,8)};function y(e,r,t,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;y(this,r,t,n,o,0)}var u=1,h=0;for(this[t]=r&255;++h<n&&(u*=256);)this[t+h]=r/u&255;return t+n};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;y(this,r,t,n,o,0)}var u=n-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);y(this,r,t,n,o-1,-o)}var u=0,h=1,f=0;for(this[t]=r&255;++u<n&&(h*=256);)r<0&&f===0&&this[t+u-1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+n};a.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);y(this,r,t,n,o-1,-o)}var u=n-1,h=1,f=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&f===0&&this[t+u+1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+n};a.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function wr(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function yr(e,r,t,n,i){return r=+r,t=t>>>0,i||wr(e,r,t,4,34028234663852886e22,-34028234663852886e22),R.write(e,r,t,n,23,4),t+4}a.prototype.writeFloatLE=function(r,t,n){return yr(this,r,t,!0,n)};a.prototype.writeFloatBE=function(r,t,n){return yr(this,r,t,!1,n)};function xr(e,r,t,n,i){return r=+r,t=t>>>0,i||wr(e,r,t,8,17976931348623157e292,-17976931348623157e292),R.write(e,r,t,n,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,n){return xr(this,r,t,!0,n)};a.prototype.writeDoubleBE=function(r,t,n){return xr(this,r,t,!1,n)};a.prototype.copy=function(r,t,n,i){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};a.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=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"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else{var h=a.isBuffer(r)?r:a.from(r,i),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=h[u%f]}return this};var nt=/[^+/0-9A-Za-z-_]/g;function it(e){if(e=e.split("=")[0],e=e.trim().replace(nt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function K(e,r){r=r||1/0;for(var t,n=e.length,i=null,o=[],u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ot(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function ut(e,r){for(var t,n,i,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function mr(e){return z.toByteArray(it(e))}function q(e,r,t,n){for(var i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function Z(e){return e!==e}var at=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)r[n+i]=e[t]+e[i];return r}()});var vr=D((yt,Ar)=>{g();var s=Ar.exports={},A,v;function $(){throw new Error("setTimeout has not been defined")}function j(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=$}catch(e){A=$}try{typeof clearTimeout=="function"?v=clearTimeout:v=j}catch(e){v=j}})();function gr(e){if(A===setTimeout)return setTimeout(e,0);if((A===$||!A)&&setTimeout)return A=setTimeout,setTimeout(e,0);try{return A(e,0)}catch(r){try{return A.call(null,e,0)}catch(t){return A.call(this,e,0)}}}function ht(e){if(v===clearTimeout)return clearTimeout(e);if((v===j||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var U=[],M=!1,L,H=-1;function ft(){!M||!L||(M=!1,L.length?U=L.concat(U):H=-1,U.length&&Fr())}function Fr(){if(!M){var e=gr(ft);M=!0;for(var r=U.length;r;){for(L=U,U=[];++H<r;)L&&L[H].run();H=-1,r=U.length}L=null,M=!1,ht(e)}}s.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];U.push(new Br(e,r)),U.length===1&&!M&&gr(Fr)};function Br(e,r){this.fun=e,this.array=r}Br.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function I(){}s.on=I;s.addListener=I;s.once=I;s.off=I;s.removeListener=I;s.removeAllListeners=I;s.emit=I;s.prependListener=I;s.prependOnceListener=I;s.listeners=function(e){return[]};s.binding=function(e){throw new Error("process.binding is not supported")};s.cwd=function(){return"/"};s.chdir=function(e){throw new Error("process.chdir is not supported")};s.umask=function(){return 0}});var N,k,xt,g=Sr(()=>{N=tr(Er()),k=tr(vr()),xt=function(e){function r(){var n=this||self;return delete e.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var pt={};module.exports=Rr(pt);g();
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";var ui=Object.create;var xe=Object.defineProperty,di=Object.defineProperties,mi=Object.getOwnPropertyDescriptor,gi=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertyNames,Ne=Object.getOwnPropertySymbols,Ti=Object.getPrototypeOf,pt=Object.prototype.hasOwnProperty,yr=Object.prototype.propertyIsEnumerable;var Tr=(e,t,r)=>t in e?xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))pt.call(t,r)&&Tr(e,r,t[r]);if(Ne)for(var r of Ne(t))yr.call(t,r)&&Tr(e,r,t[r]);return e},k=(e,t)=>di(e,gi(t));var hr=(e,t)=>{var r={};for(var n in e)pt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ne)for(var n of Ne(e))t.indexOf(n)<0&&yr.call(e,n)&&(r[n]=e[n]);return r};var h=(e,t)=>()=>(e&&(t=e(e=0)),t);var De=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ne=(e,t)=>{for(var r in t)xe(e,r,{get:t[r],enumerable:!0})},xr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of fi(t))!pt.call(e,i)&&i!==r&&xe(e,i,{get:()=>t[i],enumerable:!(n=mi(t,i))||n.enumerable});return e};var w=(e,t,r)=>(r=e!=null?ui(Ti(e)):{},xr(t||!e||!e.__esModule?xe(r,"default",{value:e,enumerable:!0}):r,e)),Se=e=>xr(xe({},"__esModule",{value:!0}),e);var L=(e,t,r)=>new Promise((n,i)=>{var l=d=>{try{m(r.next(d))}catch(g){i(g)}},p=d=>{try{m(r.throw(d))}catch(g){i(g)}},m=d=>d.done?n(d.value):Promise.resolve(d.value).then(l,p);m((r=r.apply(e,t)).next())});var Ar=De(Re=>{"use strict";o();Re.byteLength=hi;Re.toByteArray=Si;Re.fromByteArray=bi;var U=[],M=[],yi=typeof Uint8Array!="undefined"?Uint8Array:Array,ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(oe=0,Sr=ut.length;oe<Sr;++oe)U[oe]=ut[oe],M[ut.charCodeAt(oe)]=oe;var oe,Sr;M["-".charCodeAt(0)]=62;M["_".charCodeAt(0)]=63;function wr(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function hi(e){var t=wr(e),r=t[0],n=t[1];return(r+n)*3/4-n}function xi(e,t,r){return(t+r)*3/4-r}function Si(e){var t,r=wr(e),n=r[0],i=r[1],l=new yi(xi(e,n,i)),p=0,m=i>0?n-4:n,d;for(d=0;d<m;d+=4)t=M[e.charCodeAt(d)]<<18|M[e.charCodeAt(d+1)]<<12|M[e.charCodeAt(d+2)]<<6|M[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=M[e.charCodeAt(d)]<<2|M[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=M[e.charCodeAt(d)]<<10|M[e.charCodeAt(d+1)]<<4|M[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function wi(e){return U[e>>18&63]+U[e>>12&63]+U[e>>6&63]+U[e&63]}function Ai(e,t,r){for(var n,i=[],l=t;l<r;l+=3)n=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(wi(n));return i.join("")}function bi(e){for(var t,r=e.length,n=r%3,i=[],l=16383,p=0,m=r-n;p<m;p+=l)i.push(Ai(e,p,p+l>m?m:p+l));return n===1?(t=e[r-1],i.push(U[t>>2]+U[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(U[t>>10]+U[t>>4&63]+U[t<<2&63]+"=")),i.join("")}});var br=De(dt=>{o();dt.read=function(e,t,r,n,i){var l,p,m=i*8-n-1,d=(1<<m)-1,g=d>>1,y=-7,T=r?i-1:0,S=r?-1:1,v=e[t+T];for(T+=S,l=v&(1<<-y)-1,v>>=-y,y+=m;y>0;l=l*256+e[t+T],T+=S,y-=8);for(p=l&(1<<-y)-1,l>>=-y,y+=n;y>0;p=p*256+e[t+T],T+=S,y-=8);if(l===0)l=1-g;else{if(l===d)return p?NaN:(v?-1:1)*(1/0);p=p+Math.pow(2,n),l=l-g}return(v?-1:1)*p*Math.pow(2,l-n)};dt.write=function(e,t,r,n,i,l){var p,m,d,g=l*8-i-1,y=(1<<g)-1,T=y>>1,S=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=n?0:l-1,C=n?1:-1,_=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(m=isNaN(t)?1:0,p=y):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+T>=1?t+=S/d:t+=S*Math.pow(2,1-T),t*d>=2&&(p++,d/=2),p+T>=y?(m=0,p=y):p+T>=1?(m=(t*d-1)*Math.pow(2,i),p=p+T):(m=t*Math.pow(2,T-1)*Math.pow(2,i),p=0));i>=8;e[r+v]=m&255,v+=C,m/=256,i-=8);for(p=p<<i|m,g+=i;g>0;e[r+v]=p&255,v+=C,p/=256,g-=8);e[r+v-C]|=_*128}});var Or=De(pe=>{"use strict";o();var mt=Ar(),le=br(),Ir=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;pe.Buffer=u;pe.SlowBuffer=Ni;pe.INSPECT_MAX_BYTES=50;var Ce=2147483647;pe.kMaxLength=Ce;u.TYPED_ARRAY_SUPPORT=Ii();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Ii(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function j(e){if(e>Ce)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return yt(e)}return Er(e,t,r)}u.poolSize=8192;function Er(e,t,r){if(typeof e=="string")return ki(e,t);if(ArrayBuffer.isView(e))return Ei(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(V(e,ArrayBuffer)||e&&V(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(V(e,SharedArrayBuffer)||e&&V(e.buffer,SharedArrayBuffer)))return ft(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return u.from(n,t,r);var i=Li(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return Er(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Lr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function vi(e,t,r){return Lr(e),e<=0?j(e):t!==void 0?typeof r=="string"?j(e).fill(t,r):j(e).fill(t):j(e)}u.alloc=function(e,t,r){return vi(e,t,r)};function yt(e){return Lr(e),j(e<0?0:ht(e)|0)}u.allocUnsafe=function(e){return yt(e)};u.allocUnsafeSlow=function(e){return yt(e)};function ki(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Nr(e,t)|0,n=j(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function gt(e){for(var t=e.length<0?0:ht(e.length)|0,r=j(t),n=0;n<t;n+=1)r[n]=e[n]&255;return r}function Ei(e){if(V(e,Uint8Array)){var t=new Uint8Array(e);return ft(t.buffer,t.byteOffset,t.byteLength)}return gt(e)}function ft(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,u.prototype),n}function Li(e){if(u.isBuffer(e)){var t=ht(e.length)|0,r=j(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||xt(e.length)?j(0):gt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return gt(e.data)}function ht(e){if(e>=Ce)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ce.toString(16)+" bytes");return e|0}function Ni(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(V(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),V(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var n=t.length,i=r.length,l=0,p=Math.min(n,i);l<p;++l)if(t[l]!==r[l]){n=t[l],i=r[l];break}return n<i?-1:i<n?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=u.allocUnsafe(r),l=0;for(n=0;n<t.length;++n){var p=t[n];if(V(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function Nr(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||V(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Tt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Mr(e).length;default:if(i)return n?-1:Tt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=Nr;function Di(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Vi(this,t,r);case"utf8":case"utf-8":return Rr(this,t,r);case"ascii":return Bi(this,t,r);case"latin1":case"binary":return Ui(this,t,r);case"base64":return Oi(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $i(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function ie(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)ie(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)ie(this,r,r+3),ie(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)ie(this,r,r+7),ie(this,r+1,r+6),ie(this,r+2,r+5),ie(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Rr(this,0,t):Di.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=pe.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Ir&&(u.prototype[Ir]=u.prototype.inspect);u.prototype.compare=function(t,r,n,i,l){if(V(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||n>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=n)return 0;if(i>=l)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,m=n-r,d=Math.min(p,m),g=this.slice(i,l),y=t.slice(r,n),T=0;T<d;++T)if(g[T]!==y[T]){p=g[T],m=y[T];break}return p<m?-1:m<p?1:0};function Dr(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,xt(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,n)),u.isBuffer(t))return t.length===0?-1:vr(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):vr(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function vr(e,t,r,n,i){var l=1,p=e.length,m=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,m/=2,r/=2}function d(v,C){return l===1?v[C]:v.readUInt16BE(C*l)}var g;if(i){var y=-1;for(g=r;g<p;g++)if(d(e,g)===d(t,y===-1?0:g-y)){if(y===-1&&(y=g),g-y+1===m)return y*l}else y!==-1&&(g-=g-y),y=-1}else for(r+m>p&&(r=p-m),g=r;g>=0;g--){for(var T=!0,S=0;S<m;S++)if(d(e,g+S)!==d(t,S)){T=!1;break}if(T)return g}return-1}u.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};u.prototype.indexOf=function(t,r,n){return Dr(this,t,r,n,!0)};u.prototype.lastIndexOf=function(t,r,n){return Dr(this,t,r,n,!1)};function Ri(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var l=t.length;n>l/2&&(n=l/2);for(var p=0;p<n;++p){var m=parseInt(t.substr(p*2,2),16);if(xt(m))return p;e[r+p]=m}return p}function Ci(e,t,r,n){return _e(Tt(t,e.length-r),e,r,n)}function _i(e,t,r,n){return _e(Wi(t),e,r,n)}function Pi(e,t,r,n){return _e(Mr(t),e,r,n)}function Mi(e,t,r,n){return _e(qi(t,e.length-r),e,r,n)}u.prototype.write=function(t,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 l=this.length-r;if((n===void 0||n>l)&&(n=l),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return Ri(this,t,r,n);case"utf8":case"utf-8":return Ci(this,t,r,n);case"ascii":case"latin1":case"binary":return _i(this,t,r,n);case"base64":return Pi(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Mi(this,t,r,n);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Oi(e,t,r){return t===0&&r===e.length?mt.fromByteArray(e):mt.fromByteArray(e.slice(t,r))}function Rr(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var l=e[i],p=null,m=l>239?4:l>223?3:l>191?2:1;if(i+m<=r){var d,g,y,T;switch(m){case 1:l<128&&(p=l);break;case 2:d=e[i+1],(d&192)===128&&(T=(l&31)<<6|d&63,T>127&&(p=T));break;case 3:d=e[i+1],g=e[i+2],(d&192)===128&&(g&192)===128&&(T=(l&15)<<12|(d&63)<<6|g&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:d=e[i+1],g=e[i+2],y=e[i+3],(d&192)===128&&(g&192)===128&&(y&192)===128&&(T=(l&15)<<18|(d&63)<<12|(g&63)<<6|y&63,T>65535&&T<1114112&&(p=T))}}p===null?(p=65533,m=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|p&1023),n.push(p),i+=m}return Fi(n)}var kr=4096;function Fi(e){var t=e.length;if(t<=kr)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=kr));return r}function Bi(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function Ui(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function Vi(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",l=t;l<r;++l)i+=ji[e[l]];return i}function $i(e,t,r){for(var n=e.slice(t,r),i="",l=0;l<n.length-1;l+=2)i+=String.fromCharCode(n[l]+n[l+1]*256);return i}u.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function E(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||E(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||E(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||E(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||E(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||E(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||E(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||E(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||E(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||E(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||E(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||E(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||E(t,4,this.length),le.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||E(t,4,this.length),le.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||E(t,8,this.length),le.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||E(t,8,this.length),le.read(this,t,!1,52,8)};function R(e,t,r,n,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){var l=Math.pow(2,8*n)-1;R(this,t,r,n,l,0)}var p=1,m=0;for(this[r]=t&255;++m<n&&(p*=256);)this[r+m]=t/p&255;return r+n};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){var l=Math.pow(2,8*n)-1;R(this,t,r,n,l,0)}var p=n-1,m=1;for(this[r+p]=t&255;--p>=0&&(m*=256);)this[r+p]=t/m&255;return r+n};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*n-1);R(this,t,r,n,l-1,-l)}var p=0,m=1,d=0;for(this[r]=t&255;++p<n&&(m*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+n};u.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*n-1);R(this,t,r,n,l-1,-l)}var p=n-1,m=1,d=0;for(this[r+p]=t&255;--p>=0&&(m*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+n};u.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function Cr(e,t,r,n,i,l){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _r(e,t,r,n,i){return t=+t,r=r>>>0,i||Cr(e,t,r,4,34028234663852886e22,-34028234663852886e22),le.write(e,t,r,n,23,4),r+4}u.prototype.writeFloatLE=function(t,r,n){return _r(this,t,r,!0,n)};u.prototype.writeFloatBE=function(t,r,n){return _r(this,t,r,!1,n)};function Pr(e,t,r,n,i){return t=+t,r=r>>>0,i||Cr(e,t,r,8,17976931348623157e292,-17976931348623157e292),le.write(e,t,r,n,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,n){return Pr(this,t,r,!0,n)};u.prototype.writeDoubleBE=function(t,r,n){return Pr(this,t,r,!1,n)};u.prototype.copy=function(t,r,n,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.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),t.length-r<i-n&&(i=t.length-r+n);var l=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),r),l};u.prototype.fill=function(t,r,n,i){if(typeof t=="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"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<n;++p)this[p]=t;else{var m=u.isBuffer(t)?t:u.from(t,i),d=m.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<n-r;++p)this[p+r]=m[p%d]}return this};var Gi=/[^+/0-9A-Za-z-_]/g;function Hi(e){if(e=e.split("=")[0],e=e.trim().replace(Gi,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Tt(e,t){t=t||1/0;for(var r,n=e.length,i=null,l=[],p=0;p<n;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===n){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function Wi(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function qi(e,t){for(var r,n,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),n=r>>8,i=r%256,l.push(i),l.push(n);return l}function Mr(e){return mt.toByteArray(Hi(e))}function _e(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function V(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function xt(e){return e!==e}var ji=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()});var $r=De((ks,Vr)=>{o();var I=Vr.exports={},$,G;function St(){throw new Error("setTimeout has not been defined")}function wt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?$=setTimeout:$=St}catch(e){$=St}try{typeof clearTimeout=="function"?G=clearTimeout:G=wt}catch(e){G=wt}})();function Fr(e){if($===setTimeout)return setTimeout(e,0);if(($===St||!$)&&setTimeout)return $=setTimeout,setTimeout(e,0);try{return $(e,0)}catch(t){try{return $.call(null,e,0)}catch(r){return $.call(this,e,0)}}}function zi(e){if(G===clearTimeout)return clearTimeout(e);if((G===wt||!G)&&clearTimeout)return G=clearTimeout,clearTimeout(e);try{return G(e)}catch(t){try{return G.call(null,e)}catch(r){return G.call(this,e)}}}var z=[],ue=!1,ae,Pe=-1;function Ki(){!ue||!ae||(ue=!1,ae.length?z=ae.concat(z):Pe=-1,z.length&&Br())}function Br(){if(!ue){var e=Fr(Ki);ue=!0;for(var t=z.length;t;){for(ae=z,z=[];++Pe<t;)ae&&ae[Pe].run();Pe=-1,t=z.length}ae=null,ue=!1,zi(e)}}I.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];z.push(new Ur(e,t)),z.length===1&&!ue&&Fr(Br)};function Ur(e,t){this.fun=e,this.array=t}Ur.prototype.run=function(){this.fun.apply(null,this.array)};I.title="browser";I.browser=!0;I.env={};I.argv=[];I.version="";I.versions={};function K(){}I.on=K;I.addListener=K;I.once=K;I.off=K;I.removeListener=K;I.removeAllListeners=K;I.emit=K;I.prependListener=K;I.prependOnceListener=K;I.listeners=function(e){return[]};I.binding=function(e){throw new Error("process.binding is not supported")};I.cwd=function(){return"/"};I.chdir=function(e){throw new Error("process.chdir is not supported")};I.umask=function(){return 0}});var a,s,Es,o=h(()=>{a=w(Or()),s=w($r()),Es=function(e){function t(){var n=this||self;return delete e.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object)});var Gr=h(()=>{"use strict";o()});var Hr=h(()=>{"use strict";o()});var Wr=h(()=>{"use strict";o()});var qr=h(()=>{"use strict";o()});var H=h(()=>{"use strict";o()});var jr=h(()=>{"use strict";o()});var zr=h(()=>{"use strict";o()});var D=h(()=>{"use strict";o()});var Kr=h(()=>{"use strict";o()});var Yr=h(()=>{"use strict";o()});var F=h(()=>{"use strict";o();Hr();Wr();qr();H();jr();zr();D();Kr();Yr()});var At,Zr,js,Xr,zs,Jr,Ks,Ys,Zs,Qr=h(()=>{"use strict";o();F();At={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:Zr,egldLabel:js}=At["devnet"],{chainId:Xr,egldLabel:zs}=At["testnet"],{chainId:Jr,egldLabel:Ks}=At["mainnet"],Ys={["devnet"]:Zr,["testnet"]:Xr,["mainnet"]:Jr},Zs={[Zr]:"devnet",[Xr]:"testnet",[Jr]:"mainnet"}});var bt=h(()=>{"use strict";o()});var en=h(()=>{"use strict";o()});var tn,It=h(()=>{"use strict";o();tn="transaction-status-toast-id"});var W,rn=h(()=>{"use strict";o();W=require("@multiversx/sdk-web-wallet-provider")});var nn,Me,X,de,on,vt,Oe,an,J,b=h(()=>{"use strict";o();Gr();Qr();bt();en();It();rn();nn=.01,Me=1500,X=5e4,de=1e9,on=1,vt=4294967295,Oe="logout",an="login",J="0"});var me,Fe=h(()=>{"use strict";o();me=()=>Date.now()/1e3});var sn=h(()=>{"use strict";o()});var cn=h(()=>{"use strict";o()});var ln=h(()=>{"use strict";o();Fe();sn();cn()});var Et={};ne(Et,{getItem:()=>Zi,localStorageKeys:()=>se,removeItem:()=>Xi,setItem:()=>Yi});var se,kt,Yi,Zi,Xi,we=h(()=>{"use strict";o();ln();se={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},kt=typeof localStorage!="undefined",Yi=({key:e,data:t,expires:r})=>{!kt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Zi=e=>{if(!kt)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:me()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Xi=e=>{!kt||localStorage.removeItem(String(e))}});var Lt={};ne(Lt,{clear:()=>mn,getItem:()=>un,removeItem:()=>dn,setItem:()=>pn,storage:()=>Ji});var pn,un,dn,mn,Ji,gn=h(()=>{"use strict";o();pn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},un=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},dn=e=>sessionStorage.removeItem(String(e)),mn=()=>sessionStorage.clear(),Ji={setItem:pn,getItem:un,removeItem:dn,clear:mn}});var ge,Be=h(()=>{"use strict";o();we();gn();ge={session:Lt,local:Et}});var Nt,N,Ue,Y=h(()=>{"use strict";o();Nt=require("@reduxjs/toolkit");b();N=(0,Nt.createAction)(Oe),Ue=(0,Nt.createAction)(an,e=>({payload:e}))});var Rt,fn,Tn,Ve,Dt,yn,hn,kc,xn,Ec,Lc,Nc,Dc,Rc,Cc,_c,Sn,Ct=h(()=>{"use strict";o();Rt=require("@multiversx/sdk-core"),fn=require("@reduxjs/toolkit"),Tn=require("redux-persist");b();Be();we();Y();Ve={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:J},Dt={address:"",websocketEvent:null,accounts:{"":Ve},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},yn=(0,fn.createSlice)({name:"accountInfoSlice",initialState:Dt,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Rt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Ve},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(N,()=>(ge.local.removeItem(se.loginExpiresAt),Dt)),e.addCase(Ue,(t,r)=>{let{address:n}=r.payload;t.address=n,t.publicKey=new Rt.Address(n).hex()}),e.addCase(Tn.REHYDRATE,(t,r)=>{var g;if(!((g=r.payload)!=null&&g.account))return;let{account:n}=r.payload,{address:i,shard:l,accounts:p,publicKey:m}=n;t.address=i,t.shard=l;let d=p&&i in p;t.accounts=d?p:Dt.accounts,t.publicKey=m})}}),{setAccount:hn,setAddress:kc,setAccountNonce:xn,setAccountShard:Ec,setLedgerAccount:Lc,updateLedgerAccount:Nc,setWalletConnectAccount:Dc,setIsAccountLoading:Rc,setAccountLoadingError:Cc,setWebsocketEvent:_c}=yn.actions,Sn=yn.reducer});function Ae(){return new Date().setHours(new Date().getHours()+24)}function be(e){ge.local.setItem({key:se.loginExpiresAt,data:e,expires:e})}var _t=h(()=>{"use strict";o();Be();we()});var An,wn,bn,Hc,Wc,qc,jc,zc,Kc,In,Yc,vn,Pt=h(()=>{"use strict";o();An=require("@reduxjs/toolkit");_t();H();Y();wn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},bn=(0,An.createSlice)({name:"loginInfoSlice",initialState:wn,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload}},extraReducers:e=>{e.addCase(N,()=>wn),e.addCase(Ue,(t,r)=>{t.loginMethod=r.payload.loginMethod,be(Ae())})}}),{setLoginMethod:Hc,setWalletConnectLogin:Wc,setLedgerLogin:qc,setTokenLogin:jc,setTokenLoginSignature:zc,setWalletLogin:Kc,invalidateLoginSession:In,setLogoutRoute:Yc}=bn.actions,vn=bn.reducer});var En,kn,Ln,Qc,Mt,el,tl,Nn,Ot=h(()=>{"use strict";o();En=require("@reduxjs/toolkit");Y();kn={},Ln=(0,En.createSlice)({name:"modalsSlice",initialState:kn,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(N,()=>kn)}}),{setTxSubmittedModal:Qc,setNotificationModal:Mt,clearTxSubmittedModal:el,clearNotificationModal:tl}=Ln.actions,Nn=Ln.reducer});var Dn=h(()=>{"use strict";o()});var Rn=h(()=>{"use strict";o();Dn()});function Ft(e){return e[Math.floor(Math.random()*e.length)]}var Cn=h(()=>{"use strict";o()});var _n=h(()=>{"use strict";o();bt()});var Pn=h(()=>{"use strict";o();Rn();Cn();_n()});var Mn,On,Bt,ea,Fn,yl,hl,Bn,Ut=h(()=>{"use strict";o();Mn=require("@reduxjs/toolkit"),On=w(require("lodash.omit"));Pn();Bt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},ea={network:Bt,chainID:"-1"},Fn=(0,Mn.createSlice)({name:"appConfig",initialState:ea,reducers:{initializeNetworkConfig:(e,t)=>{let r=Ft(t.payload.walletConnectBridgeAddresses),n=Ft(t.payload.walletConnectV2RelayAddresses),i=(0,On.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=k(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:yl,setChainID:hl}=Fn.actions,Bn=Fn.reducer});var Un,Vt,Vn,Il,vl,kl,$e,Ge=h(()=>{"use strict";o();Un=require("@reduxjs/toolkit");F();Y();Vt={isSigning:!1,signedSessions:{}},Vn=(0,Un.createSlice)({name:"signedMessageInfoSliceState",initialState:Vt,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:n,errorMessage:i}=t.payload;return k(x({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:n.status==="pending",signedSessions:k(x({},e.signedSessions),{[r]:n})})},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>Vt},extraReducers:e=>{e.addCase(N,()=>Vt)}}),{setSignSession:Il,clearSignedMessageInfo:vl,setSignSessionState:kl}=Vn.actions,$e=Vn.reducer});var Gn,Hn,$n,Wn,Pl,Ml,Ol,Fl,Bl,Ul,He,We=h(()=>{"use strict";o();Gn=require("@reduxjs/toolkit"),Hn=require("redux-persist");It();F();Fe();Y();$n={customToasts:[],transactionToasts:[],failTransactionToast:null},Wn=(0,Gn.createSlice)({name:"toastsSlice",initialState:$n,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(k(x({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:me(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=k(x({},t.payload),{toastId:tn})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(N,()=>$n),e.addCase(Hn.REHYDRATE,(t,r)=>{var i,l;let n=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=n})}}),{addCustomToast:Pl,removeCustomToast:Ml,addTransactionToast:Ol,removeTransactionToast:Fl,addFailTransactionToast:Bl,removeFailTransactionToast:Ul}=Wn.actions,He=Wn.reducer});var qn,Gt,Ht,Wt,ta,$t,jn,Hl,zn,Wl,qe,je=h(()=>{"use strict";o();qn=require("@reduxjs/toolkit");Y();Gt="Transaction failed",Ht="Transaction successful",Wt="Processing transaction",ta="Transaction submitted",$t={},jn=(0,qn.createSlice)({name:"transactionsInfo",initialState:$t,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:n}=t.payload;r!=null&&(e[r]={errorMessage:(n==null?void 0:n.errorMessage)||Gt,successMessage:(n==null?void 0:n.successMessage)||Ht,processingMessage:(n==null?void 0:n.processingMessage)||Wt,submittedMessage:(n==null?void 0:n.submittedMessage)||ta,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>$t},extraReducers:e=>{e.addCase(N,()=>$t)}}),{clearTransactionsInfo:Hl,setTransactionsDisplayInfo:zn,clearTransactionsInfoForSessionId:Wl}=jn.actions,qe=jn.reducer});function Kn(e){return e!=null&&(pa(e)||ga(e))}function ze(e){return e!=null&&(ua(e)||fa(e))}function Ke(e){return e!=null&&(da(e)||Ta(e))}function Yn(e){return e!=null&&ma(e)}function pa(e){return e!=null&&na.includes(e)}function ua(e){return e!=null&&oa.includes(e)}function da(e){return e!=null&&ia.includes(e)}function ma(e){return e!=null&&aa.includes(e)}function ga(e){return e!=null&&sa.includes(e)}function fa(e){return e!=null&&ca.includes(e)}function Ta(e){return e!=null&&la.includes(e)}var na,oa,ia,aa,sa,ca,la,jt=h(()=>{"use strict";o();H();na=["sent"],oa=["success"],ia=["fail","cancelled","timedOut"],aa=["timedOut"],sa=["pending"],ca=["success"],la=["fail","invalid"]});var Zn,Xn,Ie,ya,Jn,Ql,ep,Qn,eo,to,zt,tp,rp,ro,np,Ye,Ze=h(()=>{"use strict";o();Zn=require("@reduxjs/toolkit"),Xn=require("redux-persist");H();jt();Y();Ie={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},ya={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Jn=(0,Zn.createSlice)({name:"transactionsSlice",initialState:Ie,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,g;let{sessionId:r,transactions:n,errorMessage:i,status:l,redirectRoute:p}=t.payload,m=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||ya;e.signedTransactions[r]={transactions:n,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:m},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===r&&(e.transactionsToSign=Ie.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=x(x({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:n,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=n,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var m,d,g,y,T,S;let{sessionId:r,status:n,errorMessage:i,transactionHash:l}=t.payload,p=(d=(m=e.signedTransactions)==null?void 0:m[r])==null?void 0:d.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(_=>_.hash===l?k(x({},_),{status:n,errorMessage:i}):_);let v=(y=(g=e.signedTransactions[r])==null?void 0:g.transactions)==null?void 0:y.every(_=>ze(_.status)),C=(S=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:S.every(_=>Ke(_.status));v&&(e.signedTransactions[r].status="success"),C&&(e.signedTransactions[r].status="fail")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:n}=t.payload;e.customTransactionInformationForSessionId[r]=n,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=Ie.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Ie.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(N,()=>Ie),e.addCase(Xn.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(n).reduce((m,[d,g])=>{let y=new Date(d),T=new Date;return T.setHours(T.getHours()+5),T-y>0||(m[d]=g),m},{});i!=null&&(t.customTransactionInformationForSessionId=i),n!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Ql,updateSignedTransactions:ep,setTransactionsToSign:Qn,clearAllTransactionsToSign:eo,clearAllSignedTransactions:to,clearSignedTransaction:zt,clearTransactionToSign:tp,setSignTransactionsError:rp,setSignTransactionsCancelMessage:ro,moveTransactionsToSignedState:np}=Jn.actions,Ye=Jn.reducer});var Q=h(()=>{"use strict";o();Ct();Pt();Ot();Ut();Ge();We();je();Ze()});var Kt=h(()=>{"use strict";o()});var so,ao,co,Ep,Lp,Np,Dp,Rp,Cp,lo,po=h(()=>{"use strict";o();so=require("@reduxjs/toolkit");Y();ao={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},co=(0,so.createSlice)({name:"dappModalsSlice",initialState:ao,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=x({},t.payload)}},extraReducers:e=>{e.addCase(N,()=>ao)}}),{setDappModalVisibility:Ep,setDappModalHeaderVisibility:Lp,setDappModalFooterVisibility:Np,setDappModalHeaderText:Dp,setDappModalFooterText:Rp,setDappModalConfig:Cp}=co.actions,lo=co.reducer});var uo,wa,Aa,fe,tt=h(()=>{"use strict";o();uo=require("@reduxjs/toolkit");Kt();Ct();po();Pt();Ot();Ut();Ge();We();je();Ze();wa={["account"]:Sn,["dappModal"]:lo,["loginInfo"]:vn,["modals"]:Nn,["networkConfig"]:Bn,["signedMessageInfo"]:$e,["toasts"]:He,["transactionsInfo"]:qe,["transactions"]:Ye},Aa=(e={})=>(0,uo.combineReducers)(x(x({},wa),e)),fe=Aa});var fo={};ne(fo,{default:()=>Da});function rt(e,t=[]){return{key:e,version:1,storage:go.default,blacklist:t}}var ee,mo,go,ba,Ia,va,ka,Ea,La,Na,Da,To=h(()=>{"use strict";o();ee=require("redux-persist"),mo=w(require("redux-persist/lib/storage")),go=w(require("redux-persist/lib/storage/session"));tt();Q();Ge();We();je();Ze();Kt();ba={2:e=>k(x({},e),{networkConfig:Bt})};Ia=rt("sdk-dapp-transactionsInfo"),va=rt("sdk-dapp-transactions",["transactionsToSign"]),ka=rt("sdk-dapp-toasts"),Ea=rt("sdk-dapp-signedMessageInfo"),La={key:"sdk-dapp-store",version:2,storage:mo.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,ee.createMigrate)(ba,{debug:!1})},Na={["toasts"]:(0,ee.persistReducer)(ka,He),["transactions"]:(0,ee.persistReducer)(va,Ye),["transactionsInfo"]:(0,ee.persistReducer)(Ia,qe),["signedMessageInfo"]:(0,ee.persistReducer)(Ea,$e)},Da=(0,ee.persistReducer)(La,fe(Na))});var yo={};ne(yo,{default:()=>Ra});var Ra,ho=h(()=>{"use strict";o();tt();Ra=fe()});var xo={};ne(xo,{default:()=>_a});var O,Ca,_a,So=h(()=>{"use strict";o();O=require("redux-persist"),Ca=[O.FLUSH,O.REHYDRATE,O.PAUSE,O.PERSIST,O.PURGE,O.REGISTER],_a=Ca});var bo={};ne(bo,{default:()=>Ao});function Ao(e){return(0,wo.persistStore)(e)}var wo,Io=h(()=>{"use strict";o();wo=require("redux-persist")});var ws={};ne(ws,{calcTotalFee:()=>er,isCrossShardTransaction:()=>Wo,nativeAuth:()=>Ss,removeAllSignedTransactions:()=>Oa,removeAllTransactionsToSign:()=>Fa,removeSignedTransaction:()=>Ma,removeTransactionsToSign:()=>Pa,sendTransactions:()=>gs,signTransactions:()=>tr});module.exports=Se(ws);o();o();o();Q();o();var Yt=require("@reduxjs/toolkit"),Lo=require("react-redux/lib/utils/Subscription");Q();o();var oo=w(require("lodash.throttle"));b();o();var no=w(require("lodash.isequal")),Xe=require("reselect");F();var f=(0,Xe.createSelectorCreator)(Xe.defaultMemoize,no.default),Je=(e,t)=>e!=""&&Boolean(t);Q();_t();Be();we();var ha=[Oe],Qe=!1,xa=(0,oo.default)(()=>{be(Ae())},5e3),io=e=>t=>r=>{var d;if(ha.includes(r.type))return t(r);let n=e.getState(),i=ge.local.getItem(se.loginExpiresAt);if(!Je((d=n==null?void 0:n.loginInfo)==null?void 0:d.loginMethod,n==null?void 0:n.account.address))return t(r);if(i==null)return be(Ae());let p=Date.now();return i-p<0&&!Qe?setTimeout(()=>{Qe=!0,e.dispatch(In())},1e3):(Qe&&(Qe=!1),xa()),t(r)};o();o();function et(){return typeof sessionStorage!="undefined"}var vo=et()?(To(),Se(fo)).default:(ho(),Se(yo)).default,ko=et()?(So(),Se(xo)).default:[],Eo=et()?(Io(),Se(bo)).default:e=>e;tt();var A=(0,Yt.configureStore)({reducer:vo,middleware:e=>e({serializableCheck:{ignoredActions:[...ko,xn.type,hn.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(io)}),iu=(0,Lo.createSubscription)(A),au=Eo(A),su=(0,Yt.configureStore)({reducer:fe});function Pa(e){A.dispatch(zt(e))}function Ma(e){A.dispatch(zt(e))}function Oa(){A.dispatch(to())}function Fa(){A.dispatch(eo())}o();o();var Bo=w(require("bignumber.js"));b();o();Q();var Z=e=>e.account,ve=f(Z,e=>e.address),Zt=f(Z,ve,(e,t)=>t in e.accounts?e.accounts[t]:Ve),gu=f(Z,Zt,(e,t)=>{let i=e,{accounts:r}=i,n=hr(i,["accounts"]);return k(x({},n),{account:t})}),No=f(Zt,e=>e.balance),Do=f(Zt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),fu=f(Z,e=>e.shard),Tu=f(Z,e=>e.ledgerAccount),yu=f(Z,e=>e.walletConnectAccount),hu=f(Z,e=>e.isAccountLoading),xu=f(Z,e=>e.accountLoadingError),Su=f(Z,e=>e.websocketEvent);o();var ce=e=>e.networkConfig,nt=f(ce,e=>e.chainID),bu=f(ce,e=>e.network.walletConnectBridgeAddress),Iu=f(ce,e=>e.network.walletConnectV2RelayAddress),vu=f(ce,e=>e.network.walletConnectV2ProjectId),ku=f(ce,e=>e.network.walletConnectV2Options),Eu=f(ce,e=>e.network.walletConnectDeepLink),Xt=f(ce,e=>e.network),Ro=f(Xt,e=>e.apiAddress),Co=f(Xt,e=>e.explorerAddress),Lu=f(Xt,e=>e.egldLabel);Q();F();o();var _o=w(require("bignumber.js"));b();var ot=e=>{if(isNaN(e)||String(e).includes("Infinity"))return!1;let[t,r]=e.split(".");if(r)for(;r.charAt(r.length-1)===J;)r=r.slice(0,-1);let n=r?[t,r].join("."):t,i=new _o.default(n);return i.toString(10)===n&&i.comparedTo(0)>=0};o();var Qt=w(require("bignumber.js"));b();o();var B=require("@multiversx/sdk-core"),Oo=require("@multiversx/sdk-network-providers");b();o();o();var Po=w(require("bignumber.js")),Jt=(e,t=!0)=>{let r=String(e);if(!r.match(/^[-]?\d+$/))return!1;let n=new Po.default(r),i=t?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};o();b();o();var Mo={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function Fo({minGasLimit:e=String(X),gasLimit:t,gasPrice:r,data:n,gasPerDataByte:i,gasPriceModifier:l,defaultGasPrice:p=String(de),chainId:m}){let d=n||"",g=Jt(t)?t:e,y=ot(r)?r:p,T=new B.Transaction({nonce:0,value:B.TokenPayment.egldFromAmount("0"),receiver:new B.Address(Mo.to),sender:new B.Address(Mo.to),gasPrice:parseInt(y),gasLimit:parseInt(g),data:new B.TransactionPayload(d.trim()),chainID:m,version:new B.TransactionVersion(1)}),S=new Oo.NetworkConfig;S.MinGasLimit=parseInt(e),S.GasPerDataByte=parseInt(i),S.GasPriceModifier=parseFloat(l);try{return T.computeFee(S).toString(10)}catch(v){return J}}function er(e,t){let r=new Qt.default(0);return e.forEach(n=>{let i=Fo({gasPerDataByte:String(Me),gasPriceModifier:String(nn),minGasLimit:String(t),gasLimit:n.getGasLimit().valueOf().toString(),gasPrice:n.getGasPrice().valueOf().toString(),data:n.getData().toString(),chainId:n.getChainID().valueOf()});r=r.plus(new Qt.default(i))}),r}function tr(l){return L(this,arguments,function*({transactions:e,callbackRoute:t,minGasLimit:r=X,customTransactionInformation:n,transactionsDisplayInfo:i}){let p=A.getState(),m=Date.now().toString(),d=No(p),g=nt(p),y=Array.isArray(e)?e:[e],T=er(y,r);if(!new Bo.default(ot(d)?d:"0").minus(T).isGreaterThan(0)){let q={type:"warning",iconClassName:"text-warning",title:"Insufficient EGLD funds",description:"Current EGLD balance cannot cover the transaction fees."};return A.dispatch(Mt(q)),{error:"insufficient funds",sessionId:null}}if(!(y==null?void 0:y.every(q=>q.getChainID().valueOf()===g.valueOf()))){let q={type:"warning",iconClassName:"text-warning",title:"Network change detected",description:"The application tried to change the transaction network"};return A.dispatch(Mt(q)),{error:"Invalid ChainID",sessionId:null}}let _={sessionId:m,callbackRoute:t,customTransactionInformation:n,transactions:y.map(q=>q.toPlainObject())};return A.dispatch(ro(null)),A.dispatch(Qn(_)),A.dispatch(zn({sessionId:m,transactionsDisplayInfo:i})),{sessionId:m}})}o();var ur=require("@multiversx/sdk-core"),dr=w(require("bignumber.js"));b();o();var P=require("@multiversx/sdk-core");b();o();function rr(e){try{return a.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function Te(e){return atob(e)}function ke(e){var i,l,p;let{data:t}=e,r=rr(t!=null?t:"")?P.TransactionPayload.fromEncoded(t):new P.TransactionPayload(t),n=new P.Transaction(x({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new P.Address(e.receiver),sender:new P.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:X,gasPrice:(l=e.gasPrice.valueOf())!=null?l:de,chainID:e.chainID.valueOf(),version:new P.TransactionVersion((p=e.version)!=null?p:on)},e.options?{options:new P.TransactionOptions(e.options)}:{}));return n.applySignature({hex:()=>e.signature||""},new P.Address(e.sender)),n}o();o();var re=e=>e.loginInfo,ud=f(re,e=>e.loginMethod),dd=f(re,ve,(e,t)=>Je(e.loginMethod,t)),md=f(re,e=>e.walletConnectLogin),gd=f(re,e=>e.ledgerLogin),fd=f(re,e=>e.walletLogin),Td=f(re,e=>e.isLoginSessionInvalid),yd=f(re,e=>e.tokenLogin),hd=f(re,e=>e.logoutRoute);o();var Uo=e=>e.modals,wd=f(Uo,e=>e.txSubmittedModal),Ad=f(Uo,e=>e.notificationModal);o();var nr=e=>e.signedMessageInfo,vd=f(nr,e=>e.isSigning),kd=f(nr,e=>e.errorMessage),Ed=f(nr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});o();var or=e=>e.toasts,Dd=f(or,e=>e.customToasts),Rd=f(or,e=>e.transactionToasts),Cd=f(or,e=>e.failTransactionToast);o();Q();var Vo={errorMessage:Gt,successMessage:Ht,processingMessage:Wt},Ba=e=>e.transactionsInfo,Od=f(Ba,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Vo);o();o();jt();o();var Va=w(require("bignumber.js"));F();o();o();o();o();var Ga=require("@multiversx/sdk-core"),Ha=w(require("bignumber.js"));H();o();var $a=require("@multiversx/sdk-core");o();o();o();var ar=require("@multiversx/sdk-core/out");o();b();var Wa=e=>{let t=a.Buffer.from([0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);if(e.slice(0,t.length).equals(t))return!0;let n=a.Buffer.alloc(32).fill(0);return e.equals(n)},ir=e=>{try{let r=parseInt("11",2),n=parseInt("01",2),i=a.Buffer.from(e,"hex"),l=i[31];if(Wa(i))return vt;let p=l&r;return p>3-1&&(p=l&n),p}catch(t){return-1}};function Wo({receiverAddress:e,senderShard:t,senderAddress:r}){try{let n=new ar.Address(e),i=ir(n.pubkey());if(t==null&&r!=null){let l=new ar.Address(r);return ir(l)===i}return i===t}catch(n){return!1}}o();var qo=require("@multiversx/sdk-core");F();o();o();o();o();H();o();o();o();o();o();o();o();var sr="accounts";var cr="blocks";o();o();o();o();D();o();o();D();o();o();o();var Ka=w(require("bignumber.js"));b();o();var za=require("@multiversx/sdk-core"),lr=w(require("bignumber.js"));b();o();lr.default.config({ROUNDING_MODE:lr.default.ROUND_FLOOR});o();o();o();b();o();o();o();o();b();o();b();o();var Ya=require("@multiversx/sdk-core");b();o();o();o();o();b();o();D();var Xa=["reDelegateRewards","claimRewards","unBond"],Ja=["wrapEgld","unwrapEgld"],Qa=["unStake"],es=["unDelegate"];o();o();o();b();o();var ns=w(require("bignumber.js"));o();o();o();D();o();var os=w(require("bignumber.js"));o();o();o();o();D();o();o();o();var as=w(require("linkifyjs"));o();b();o();var ss=w(require("bignumber.js"));o();F();o();o();H();o();H();o();o();o();D();o();D();o();var cs=w(require("bignumber.js"));b();D();o();D();o();var Zo=require("react");F();o();o();D();o();var ls=require("@multiversx/sdk-core/out"),ps=w(require("bignumber.js"));D();o();D();o();o();H();var Wy=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];o();var Xo=require("react");F();o();var ds=require("react");D();var Xy=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var ct=e=>e.transactions,Ee=f(ct,e=>e.signedTransactions),Mh=f(ct,e=>e.signTransactionsError),Oh=f(ct,e=>e.signTransactionsCancelMessage),lt=e=>t=>Object.entries(t).reduce((r,[n,i])=>(e(i.status)&&(r[n]=i),r),{}),Fh=f(Ee,lt(Kn)),Bh=f(Ee,lt(ze)),Uh=f(Ee,lt(Ke)),Vh=f(Ee,lt(Yn)),$h=f(ct,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:k(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>ke(r)))||[]})}),Gh=f(Ee,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});o();o();var Qo=w(require("axios"));o();o();var Jo=e=>{let t=e!=null?e:Ro(A.getState());return t.endsWith("/")?t.slice(0,-1):t};function ei(e){return L(this,null,function*(){if(!e)return null;let r=`${Jo()}/${sr}/${e}`;try{let{data:n}=yield Qo.default.get(r);return n}catch(n){console.error("error fetching configuration for ",r)}return null})}function ti(e){return L(this,null,function*(){return yield ei(e)})}o();function ri(e){let t=A.getState(),r=Do(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}function ms(e){let t=new dr.default(X),r=new dr.default(Me),n=e?r.times(a.Buffer.from(e).length):0;return t.plus(n).toString(10)}function ni(t){return L(this,arguments,function*({transactions:e}){let r=ve(A.getState()),n=yield ti(r),i=ri(n);return e.map(l=>{let{value:p,receiver:m,data:d="",chainID:g,version:y=1,options:T,gasPrice:S=de,gasLimit:v=ms(l.data)}=l,C=m;try{C=new ur.Address(m).hex()}catch(pi){throw"Invalid Receiver address"}let _=nt(A.getState()).valueOf().toString(),q=g||_;return ke({value:p,receiver:C,data:d,gasPrice:S,gasLimit:Number(v),nonce:Number(i.valueOf().toString()),sender:new ur.Address(r).hex(),chainID:q,version:y,options:T})})})}function gs(d){return L(this,arguments,function*({transactions:e,transactionsDisplayInfo:t,redirectAfterSign:r=!0,callbackRoute:n=window.location.pathname,signWithoutSending:i,completedTransactionsDelay:l,sessionInformation:p,minGasLimit:m}){try{let g=Array.isArray(e)?e:[e],y=g.every(S=>Object.getPrototypeOf(S).toPlainObject!=null),T=g;return y||(T=yield ni({transactions:g,minGasLimit:m})),tr({transactions:T,minGasLimit:m,callbackRoute:n,transactionsDisplayInfo:t,customTransactionInformation:{redirectAfterSign:r,completedTransactionsDelay:l,sessionInformation:p,signWithoutSending:i}})}catch(g){return console.error("error signing transaction",g),{error:g,sessionId:null}}})}o();o();o();var fs=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),ye=e=>fs(a.Buffer.from(e,"utf8").toString("base64"));o();var oi=w(require("axios"));var Ts=5e4,mr=null,he={current:null},gr=!1;function ii(e){return L(this,null,function*(){if(e==null)throw new Error("missing api url");if(mr!=null&&Date.now()<mr&&he.current!=null)return he.current;{if(gr)return yield hs();gr=!0,he.current=null;let r=yield ys(e);return he.current=r,mr=Date.now()+Ts,gr=!1,r}})}function ys(e){return L(this,null,function*(){let{data:t}=yield oi.default.get(`${e}/${cr}?size=1&fields=hash,timestamp`),[r]=t;return r})}function hs(){return L(this,null,function*(){return new Promise((e,t)=>{let r,n=setInterval(()=>{he.current!=null&&(e(he.current),clearInterval(n),clearTimeout(r))},50);r=setTimeout(()=>{clearInterval(n),t("could not generate new token")},5e3)})})}o();var ai,Le={hostname:typeof window!="undefined"?(ai=window==null?void 0:window.location)==null?void 0:ai.hostname:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},fr=e=>{var r,n,i,l;return e===!0?Le:{hostname:(r=e==null?void 0:e.hostname)!=null?r:Le.hostname,expirySeconds:(n=e==null?void 0:e.expirySeconds)!=null?n:Le.expirySeconds,apiAddress:(i=e==null?void 0:e.apiAddress)!=null?i:Le.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:Le.tokenExpirationToastWarningSeconds}};o();o();o();function xs(e){return Object.prototype.toString.call(e)==="[object String]"}var si=e=>{if(!e||!xs(e))return null;try{let[t,r,n]=e.split("."),i=Te(t),l=Te(r),[p,m,d,g]=l.split("."),y=JSON.parse(Te(g)),T=Te(p),S={ttl:Number(d),address:i,extraInfo:y,host:T,signature:n,blockHash:m,body:l};return g==="e30"&&delete S.extraInfo,S}catch(t){return null}};var ci=({address:e,token:t,signature:r})=>{let n=ye(e),i=ye(t);return`${n}.${i}.${r}`};o();Fe();var li=e=>{let t=si(e);if(!t)return{isExpired:!1};let r=me(),{ttl:n,extraInfo:i}=t,l=i.timestamp;if(!l)return{isExpired:!1};let p=l+n,m=r>p,d=p-r;return{isExpired:m,expiresAt:p,secondsUntilExpires:d}};var Ss=e=>{let{hostname:t,apiAddress:r,expirySeconds:n}=fr(e);return{getNativeAuthConfig:fr,initialize:(...p)=>L(void 0,[...p],function*(l={}){let{hash:m,timestamp:d}=yield ii(r),g=ye(JSON.stringify(x(x({},l),d?{timestamp:d}:{})));return`${ye(t)}.${m}.${n}.${g}`}),getToken:ci,getTokenExpiration:li}};0&&(module.exports={calcTotalFee,isCrossShardTransaction,nativeAuth,removeAllSignedTransactions,removeAllTransactionsToSign,removeSignedTransaction,removeTransactionsToSign,sendTransactions,signTransactions});
1
+ "use strict";var ui=Object.create;var xe=Object.defineProperty,di=Object.defineProperties,mi=Object.getOwnPropertyDescriptor,gi=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertyNames,Ne=Object.getOwnPropertySymbols,Ti=Object.getPrototypeOf,pt=Object.prototype.hasOwnProperty,yr=Object.prototype.propertyIsEnumerable;var Tr=(e,t,r)=>t in e?xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))pt.call(t,r)&&Tr(e,r,t[r]);if(Ne)for(var r of Ne(t))yr.call(t,r)&&Tr(e,r,t[r]);return e},k=(e,t)=>di(e,gi(t));var hr=(e,t)=>{var r={};for(var n in e)pt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ne)for(var n of Ne(e))t.indexOf(n)<0&&yr.call(e,n)&&(r[n]=e[n]);return r};var h=(e,t)=>()=>(e&&(t=e(e=0)),t);var De=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ne=(e,t)=>{for(var r in t)xe(e,r,{get:t[r],enumerable:!0})},xr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of fi(t))!pt.call(e,i)&&i!==r&&xe(e,i,{get:()=>t[i],enumerable:!(n=mi(t,i))||n.enumerable});return e};var w=(e,t,r)=>(r=e!=null?ui(Ti(e)):{},xr(t||!e||!e.__esModule?xe(r,"default",{value:e,enumerable:!0}):r,e)),Se=e=>xr(xe({},"__esModule",{value:!0}),e);var L=(e,t,r)=>new Promise((n,i)=>{var l=d=>{try{m(r.next(d))}catch(g){i(g)}},p=d=>{try{m(r.throw(d))}catch(g){i(g)}},m=d=>d.done?n(d.value):Promise.resolve(d.value).then(l,p);m((r=r.apply(e,t)).next())});var Ar=De(Re=>{"use strict";o();Re.byteLength=hi;Re.toByteArray=Si;Re.fromByteArray=bi;var U=[],M=[],yi=typeof Uint8Array!="undefined"?Uint8Array:Array,ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(oe=0,Sr=ut.length;oe<Sr;++oe)U[oe]=ut[oe],M[ut.charCodeAt(oe)]=oe;var oe,Sr;M["-".charCodeAt(0)]=62;M["_".charCodeAt(0)]=63;function wr(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function hi(e){var t=wr(e),r=t[0],n=t[1];return(r+n)*3/4-n}function xi(e,t,r){return(t+r)*3/4-r}function Si(e){var t,r=wr(e),n=r[0],i=r[1],l=new yi(xi(e,n,i)),p=0,m=i>0?n-4:n,d;for(d=0;d<m;d+=4)t=M[e.charCodeAt(d)]<<18|M[e.charCodeAt(d+1)]<<12|M[e.charCodeAt(d+2)]<<6|M[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=M[e.charCodeAt(d)]<<2|M[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=M[e.charCodeAt(d)]<<10|M[e.charCodeAt(d+1)]<<4|M[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function wi(e){return U[e>>18&63]+U[e>>12&63]+U[e>>6&63]+U[e&63]}function Ai(e,t,r){for(var n,i=[],l=t;l<r;l+=3)n=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(wi(n));return i.join("")}function bi(e){for(var t,r=e.length,n=r%3,i=[],l=16383,p=0,m=r-n;p<m;p+=l)i.push(Ai(e,p,p+l>m?m:p+l));return n===1?(t=e[r-1],i.push(U[t>>2]+U[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(U[t>>10]+U[t>>4&63]+U[t<<2&63]+"=")),i.join("")}});var br=De(dt=>{o();dt.read=function(e,t,r,n,i){var l,p,m=i*8-n-1,d=(1<<m)-1,g=d>>1,y=-7,T=r?i-1:0,S=r?-1:1,v=e[t+T];for(T+=S,l=v&(1<<-y)-1,v>>=-y,y+=m;y>0;l=l*256+e[t+T],T+=S,y-=8);for(p=l&(1<<-y)-1,l>>=-y,y+=n;y>0;p=p*256+e[t+T],T+=S,y-=8);if(l===0)l=1-g;else{if(l===d)return p?NaN:(v?-1:1)*(1/0);p=p+Math.pow(2,n),l=l-g}return(v?-1:1)*p*Math.pow(2,l-n)};dt.write=function(e,t,r,n,i,l){var p,m,d,g=l*8-i-1,y=(1<<g)-1,T=y>>1,S=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=n?0:l-1,C=n?1:-1,_=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(m=isNaN(t)?1:0,p=y):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+T>=1?t+=S/d:t+=S*Math.pow(2,1-T),t*d>=2&&(p++,d/=2),p+T>=y?(m=0,p=y):p+T>=1?(m=(t*d-1)*Math.pow(2,i),p=p+T):(m=t*Math.pow(2,T-1)*Math.pow(2,i),p=0));i>=8;e[r+v]=m&255,v+=C,m/=256,i-=8);for(p=p<<i|m,g+=i;g>0;e[r+v]=p&255,v+=C,p/=256,g-=8);e[r+v-C]|=_*128}});var Or=De(pe=>{"use strict";o();var mt=Ar(),le=br(),Ir=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;pe.Buffer=u;pe.SlowBuffer=Ni;pe.INSPECT_MAX_BYTES=50;var Ce=2147483647;pe.kMaxLength=Ce;u.TYPED_ARRAY_SUPPORT=Ii();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Ii(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function j(e){if(e>Ce)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return yt(e)}return Er(e,t,r)}u.poolSize=8192;function Er(e,t,r){if(typeof e=="string")return ki(e,t);if(ArrayBuffer.isView(e))return Ei(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(V(e,ArrayBuffer)||e&&V(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(V(e,SharedArrayBuffer)||e&&V(e.buffer,SharedArrayBuffer)))return ft(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return u.from(n,t,r);var i=Li(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return Er(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Lr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function vi(e,t,r){return Lr(e),e<=0?j(e):t!==void 0?typeof r=="string"?j(e).fill(t,r):j(e).fill(t):j(e)}u.alloc=function(e,t,r){return vi(e,t,r)};function yt(e){return Lr(e),j(e<0?0:ht(e)|0)}u.allocUnsafe=function(e){return yt(e)};u.allocUnsafeSlow=function(e){return yt(e)};function ki(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Nr(e,t)|0,n=j(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function gt(e){for(var t=e.length<0?0:ht(e.length)|0,r=j(t),n=0;n<t;n+=1)r[n]=e[n]&255;return r}function Ei(e){if(V(e,Uint8Array)){var t=new Uint8Array(e);return ft(t.buffer,t.byteOffset,t.byteLength)}return gt(e)}function ft(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,u.prototype),n}function Li(e){if(u.isBuffer(e)){var t=ht(e.length)|0,r=j(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||xt(e.length)?j(0):gt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return gt(e.data)}function ht(e){if(e>=Ce)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ce.toString(16)+" bytes");return e|0}function Ni(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(V(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),V(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var n=t.length,i=r.length,l=0,p=Math.min(n,i);l<p;++l)if(t[l]!==r[l]){n=t[l],i=r[l];break}return n<i?-1:i<n?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=u.allocUnsafe(r),l=0;for(n=0;n<t.length;++n){var p=t[n];if(V(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function Nr(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||V(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Tt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Mr(e).length;default:if(i)return n?-1:Tt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=Nr;function Di(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Vi(this,t,r);case"utf8":case"utf-8":return Rr(this,t,r);case"ascii":return Bi(this,t,r);case"latin1":case"binary":return Ui(this,t,r);case"base64":return Oi(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $i(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function ie(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)ie(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)ie(this,r,r+3),ie(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)ie(this,r,r+7),ie(this,r+1,r+6),ie(this,r+2,r+5),ie(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Rr(this,0,t):Di.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=pe.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Ir&&(u.prototype[Ir]=u.prototype.inspect);u.prototype.compare=function(t,r,n,i,l){if(V(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||n>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=n)return 0;if(i>=l)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,m=n-r,d=Math.min(p,m),g=this.slice(i,l),y=t.slice(r,n),T=0;T<d;++T)if(g[T]!==y[T]){p=g[T],m=y[T];break}return p<m?-1:m<p?1:0};function Dr(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,xt(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,n)),u.isBuffer(t))return t.length===0?-1:vr(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):vr(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function vr(e,t,r,n,i){var l=1,p=e.length,m=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,m/=2,r/=2}function d(v,C){return l===1?v[C]:v.readUInt16BE(C*l)}var g;if(i){var y=-1;for(g=r;g<p;g++)if(d(e,g)===d(t,y===-1?0:g-y)){if(y===-1&&(y=g),g-y+1===m)return y*l}else y!==-1&&(g-=g-y),y=-1}else for(r+m>p&&(r=p-m),g=r;g>=0;g--){for(var T=!0,S=0;S<m;S++)if(d(e,g+S)!==d(t,S)){T=!1;break}if(T)return g}return-1}u.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};u.prototype.indexOf=function(t,r,n){return Dr(this,t,r,n,!0)};u.prototype.lastIndexOf=function(t,r,n){return Dr(this,t,r,n,!1)};function Ri(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var l=t.length;n>l/2&&(n=l/2);for(var p=0;p<n;++p){var m=parseInt(t.substr(p*2,2),16);if(xt(m))return p;e[r+p]=m}return p}function Ci(e,t,r,n){return _e(Tt(t,e.length-r),e,r,n)}function _i(e,t,r,n){return _e(Wi(t),e,r,n)}function Pi(e,t,r,n){return _e(Mr(t),e,r,n)}function Mi(e,t,r,n){return _e(qi(t,e.length-r),e,r,n)}u.prototype.write=function(t,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 l=this.length-r;if((n===void 0||n>l)&&(n=l),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return Ri(this,t,r,n);case"utf8":case"utf-8":return Ci(this,t,r,n);case"ascii":case"latin1":case"binary":return _i(this,t,r,n);case"base64":return Pi(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Mi(this,t,r,n);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Oi(e,t,r){return t===0&&r===e.length?mt.fromByteArray(e):mt.fromByteArray(e.slice(t,r))}function Rr(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var l=e[i],p=null,m=l>239?4:l>223?3:l>191?2:1;if(i+m<=r){var d,g,y,T;switch(m){case 1:l<128&&(p=l);break;case 2:d=e[i+1],(d&192)===128&&(T=(l&31)<<6|d&63,T>127&&(p=T));break;case 3:d=e[i+1],g=e[i+2],(d&192)===128&&(g&192)===128&&(T=(l&15)<<12|(d&63)<<6|g&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:d=e[i+1],g=e[i+2],y=e[i+3],(d&192)===128&&(g&192)===128&&(y&192)===128&&(T=(l&15)<<18|(d&63)<<12|(g&63)<<6|y&63,T>65535&&T<1114112&&(p=T))}}p===null?(p=65533,m=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|p&1023),n.push(p),i+=m}return Fi(n)}var kr=4096;function Fi(e){var t=e.length;if(t<=kr)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=kr));return r}function Bi(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function Ui(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function Vi(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",l=t;l<r;++l)i+=ji[e[l]];return i}function $i(e,t,r){for(var n=e.slice(t,r),i="",l=0;l<n.length-1;l+=2)i+=String.fromCharCode(n[l]+n[l+1]*256);return i}u.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function E(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||E(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||E(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||E(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||E(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||E(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||E(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||E(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||E(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||E(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||E(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||E(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||E(t,4,this.length),le.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||E(t,4,this.length),le.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||E(t,8,this.length),le.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||E(t,8,this.length),le.read(this,t,!1,52,8)};function R(e,t,r,n,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){var l=Math.pow(2,8*n)-1;R(this,t,r,n,l,0)}var p=1,m=0;for(this[r]=t&255;++m<n&&(p*=256);)this[r+m]=t/p&255;return r+n};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){var l=Math.pow(2,8*n)-1;R(this,t,r,n,l,0)}var p=n-1,m=1;for(this[r+p]=t&255;--p>=0&&(m*=256);)this[r+p]=t/m&255;return r+n};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*n-1);R(this,t,r,n,l-1,-l)}var p=0,m=1,d=0;for(this[r]=t&255;++p<n&&(m*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+n};u.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*n-1);R(this,t,r,n,l-1,-l)}var p=n-1,m=1,d=0;for(this[r+p]=t&255;--p>=0&&(m*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+n};u.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||R(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function Cr(e,t,r,n,i,l){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _r(e,t,r,n,i){return t=+t,r=r>>>0,i||Cr(e,t,r,4,34028234663852886e22,-34028234663852886e22),le.write(e,t,r,n,23,4),r+4}u.prototype.writeFloatLE=function(t,r,n){return _r(this,t,r,!0,n)};u.prototype.writeFloatBE=function(t,r,n){return _r(this,t,r,!1,n)};function Pr(e,t,r,n,i){return t=+t,r=r>>>0,i||Cr(e,t,r,8,17976931348623157e292,-17976931348623157e292),le.write(e,t,r,n,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,n){return Pr(this,t,r,!0,n)};u.prototype.writeDoubleBE=function(t,r,n){return Pr(this,t,r,!1,n)};u.prototype.copy=function(t,r,n,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.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),t.length-r<i-n&&(i=t.length-r+n);var l=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),r),l};u.prototype.fill=function(t,r,n,i){if(typeof t=="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"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<n;++p)this[p]=t;else{var m=u.isBuffer(t)?t:u.from(t,i),d=m.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<n-r;++p)this[p+r]=m[p%d]}return this};var Gi=/[^+/0-9A-Za-z-_]/g;function Hi(e){if(e=e.split("=")[0],e=e.trim().replace(Gi,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Tt(e,t){t=t||1/0;for(var r,n=e.length,i=null,l=[],p=0;p<n;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===n){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function Wi(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function qi(e,t){for(var r,n,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),n=r>>8,i=r%256,l.push(i),l.push(n);return l}function Mr(e){return mt.toByteArray(Hi(e))}function _e(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function V(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function xt(e){return e!==e}var ji=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()});var $r=De((ks,Vr)=>{o();var I=Vr.exports={},$,G;function St(){throw new Error("setTimeout has not been defined")}function wt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?$=setTimeout:$=St}catch(e){$=St}try{typeof clearTimeout=="function"?G=clearTimeout:G=wt}catch(e){G=wt}})();function Fr(e){if($===setTimeout)return setTimeout(e,0);if(($===St||!$)&&setTimeout)return $=setTimeout,setTimeout(e,0);try{return $(e,0)}catch(t){try{return $.call(null,e,0)}catch(r){return $.call(this,e,0)}}}function zi(e){if(G===clearTimeout)return clearTimeout(e);if((G===wt||!G)&&clearTimeout)return G=clearTimeout,clearTimeout(e);try{return G(e)}catch(t){try{return G.call(null,e)}catch(r){return G.call(this,e)}}}var z=[],ue=!1,ae,Pe=-1;function Ki(){!ue||!ae||(ue=!1,ae.length?z=ae.concat(z):Pe=-1,z.length&&Br())}function Br(){if(!ue){var e=Fr(Ki);ue=!0;for(var t=z.length;t;){for(ae=z,z=[];++Pe<t;)ae&&ae[Pe].run();Pe=-1,t=z.length}ae=null,ue=!1,zi(e)}}I.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];z.push(new Ur(e,t)),z.length===1&&!ue&&Fr(Br)};function Ur(e,t){this.fun=e,this.array=t}Ur.prototype.run=function(){this.fun.apply(null,this.array)};I.title="browser";I.browser=!0;I.env={};I.argv=[];I.version="";I.versions={};function K(){}I.on=K;I.addListener=K;I.once=K;I.off=K;I.removeListener=K;I.removeAllListeners=K;I.emit=K;I.prependListener=K;I.prependOnceListener=K;I.listeners=function(e){return[]};I.binding=function(e){throw new Error("process.binding is not supported")};I.cwd=function(){return"/"};I.chdir=function(e){throw new Error("process.chdir is not supported")};I.umask=function(){return 0}});var a,s,Es,o=h(()=>{a=w(Or()),s=w($r()),Es=function(e){function t(){var n=this||self;return delete e.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object)});var Gr=h(()=>{"use strict";o()});var Hr=h(()=>{"use strict";o()});var Wr=h(()=>{"use strict";o()});var qr=h(()=>{"use strict";o()});var H=h(()=>{"use strict";o()});var jr=h(()=>{"use strict";o()});var zr=h(()=>{"use strict";o()});var D=h(()=>{"use strict";o()});var Kr=h(()=>{"use strict";o()});var Yr=h(()=>{"use strict";o()});var F=h(()=>{"use strict";o();Hr();Wr();qr();H();jr();zr();D();Kr();Yr()});var At,Zr,js,Xr,zs,Jr,Ks,Ys,Zs,Qr=h(()=>{"use strict";o();F();At={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:Zr,egldLabel:js}=At["devnet"],{chainId:Xr,egldLabel:zs}=At["testnet"],{chainId:Jr,egldLabel:Ks}=At["mainnet"],Ys={["devnet"]:Zr,["testnet"]:Xr,["mainnet"]:Jr},Zs={[Zr]:"devnet",[Xr]:"testnet",[Jr]:"mainnet"}});var bt=h(()=>{"use strict";o()});var en=h(()=>{"use strict";o()});var tn,It=h(()=>{"use strict";o();tn="transaction-status-toast-id"});var W,rn=h(()=>{"use strict";o();W=require("@multiversx/sdk-web-wallet-provider")});var nn,Me,X,de,on,vt,Oe,an,J,b=h(()=>{"use strict";o();Gr();Qr();bt();en();It();rn();nn=.01,Me=1500,X=5e4,de=1e9,on=1,vt=4294967295,Oe="logout",an="login",J="0"});var me,Fe=h(()=>{"use strict";o();me=()=>Date.now()/1e3});var sn=h(()=>{"use strict";o()});var cn=h(()=>{"use strict";o()});var ln=h(()=>{"use strict";o();Fe();sn();cn()});var Et={};ne(Et,{getItem:()=>Zi,localStorageKeys:()=>se,removeItem:()=>Xi,setItem:()=>Yi});var se,kt,Yi,Zi,Xi,we=h(()=>{"use strict";o();ln();se={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},kt=typeof localStorage!="undefined",Yi=({key:e,data:t,expires:r})=>{!kt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Zi=e=>{if(!kt)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:me()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Xi=e=>{!kt||localStorage.removeItem(String(e))}});var Lt={};ne(Lt,{clear:()=>mn,getItem:()=>un,removeItem:()=>dn,setItem:()=>pn,storage:()=>Ji});var pn,un,dn,mn,Ji,gn=h(()=>{"use strict";o();pn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},un=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},dn=e=>sessionStorage.removeItem(String(e)),mn=()=>sessionStorage.clear(),Ji={setItem:pn,getItem:un,removeItem:dn,clear:mn}});var ge,Be=h(()=>{"use strict";o();we();gn();ge={session:Lt,local:Et}});var Nt,N,Ue,Y=h(()=>{"use strict";o();Nt=require("@reduxjs/toolkit");b();N=(0,Nt.createAction)(Oe),Ue=(0,Nt.createAction)(an,e=>({payload:e}))});var Rt,fn,Tn,Ve,Dt,yn,hn,kc,xn,Ec,Lc,Nc,Dc,Rc,Cc,_c,Sn,Ct=h(()=>{"use strict";o();Rt=require("@multiversx/sdk-core"),fn=require("@reduxjs/toolkit"),Tn=require("redux-persist");b();Be();we();Y();Ve={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:J},Dt={address:"",websocketEvent:null,accounts:{"":Ve},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},yn=(0,fn.createSlice)({name:"accountInfoSlice",initialState:Dt,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Rt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Ve},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(N,()=>(ge.local.removeItem(se.loginExpiresAt),Dt)),e.addCase(Ue,(t,r)=>{let{address:n}=r.payload;t.address=n,t.publicKey=new Rt.Address(n).hex()}),e.addCase(Tn.REHYDRATE,(t,r)=>{var g;if(!((g=r.payload)!=null&&g.account))return;let{account:n}=r.payload,{address:i,shard:l,accounts:p,publicKey:m}=n;t.address=i,t.shard=l;let d=p&&i in p;t.accounts=d?p:Dt.accounts,t.publicKey=m})}}),{setAccount:hn,setAddress:kc,setAccountNonce:xn,setAccountShard:Ec,setLedgerAccount:Lc,updateLedgerAccount:Nc,setWalletConnectAccount:Dc,setIsAccountLoading:Rc,setAccountLoadingError:Cc,setWebsocketEvent:_c}=yn.actions,Sn=yn.reducer});function Ae(){return new Date().setHours(new Date().getHours()+24)}function be(e){ge.local.setItem({key:se.loginExpiresAt,data:e,expires:e})}var _t=h(()=>{"use strict";o();Be();we()});var An,wn,bn,Hc,Wc,qc,jc,zc,Kc,In,Yc,vn,Pt=h(()=>{"use strict";o();An=require("@reduxjs/toolkit");_t();H();Y();wn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},bn=(0,An.createSlice)({name:"loginInfoSlice",initialState:wn,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload}},extraReducers:e=>{e.addCase(N,()=>wn),e.addCase(Ue,(t,r)=>{t.loginMethod=r.payload.loginMethod,be(Ae())})}}),{setLoginMethod:Hc,setWalletConnectLogin:Wc,setLedgerLogin:qc,setTokenLogin:jc,setTokenLoginSignature:zc,setWalletLogin:Kc,invalidateLoginSession:In,setLogoutRoute:Yc}=bn.actions,vn=bn.reducer});var En,kn,Ln,Qc,Mt,el,tl,Nn,Ot=h(()=>{"use strict";o();En=require("@reduxjs/toolkit");Y();kn={},Ln=(0,En.createSlice)({name:"modalsSlice",initialState:kn,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(N,()=>kn)}}),{setTxSubmittedModal:Qc,setNotificationModal:Mt,clearTxSubmittedModal:el,clearNotificationModal:tl}=Ln.actions,Nn=Ln.reducer});var Dn=h(()=>{"use strict";o()});var Rn=h(()=>{"use strict";o();Dn()});function Ft(e){return e[Math.floor(Math.random()*e.length)]}var Cn=h(()=>{"use strict";o()});var _n=h(()=>{"use strict";o();bt()});var Pn=h(()=>{"use strict";o();Rn();Cn();_n()});var Mn,On,Bt,ea,Fn,yl,hl,Bn,Ut=h(()=>{"use strict";o();Mn=require("@reduxjs/toolkit"),On=w(require("lodash.omit"));Pn();Bt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},ea={network:Bt,chainID:"-1"},Fn=(0,Mn.createSlice)({name:"appConfig",initialState:ea,reducers:{initializeNetworkConfig:(e,t)=>{let r=Ft(t.payload.walletConnectBridgeAddresses),n=Ft(t.payload.walletConnectV2RelayAddresses),i=(0,On.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=k(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:yl,setChainID:hl}=Fn.actions,Bn=Fn.reducer});var Un,Vt,Vn,Il,vl,kl,$e,Ge=h(()=>{"use strict";o();Un=require("@reduxjs/toolkit");F();Y();Vt={isSigning:!1,signedSessions:{}},Vn=(0,Un.createSlice)({name:"signedMessageInfoSliceState",initialState:Vt,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:n,errorMessage:i}=t.payload;return k(x({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:n.status==="pending",signedSessions:k(x({},e.signedSessions),{[r]:n})})},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>Vt},extraReducers:e=>{e.addCase(N,()=>Vt)}}),{setSignSession:Il,clearSignedMessageInfo:vl,setSignSessionState:kl}=Vn.actions,$e=Vn.reducer});var Gn,Hn,$n,Wn,Pl,Ml,Ol,Fl,Bl,Ul,He,We=h(()=>{"use strict";o();Gn=require("@reduxjs/toolkit"),Hn=require("redux-persist");It();F();Fe();Y();$n={customToasts:[],transactionToasts:[],failTransactionToast:null},Wn=(0,Gn.createSlice)({name:"toastsSlice",initialState:$n,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(k(x({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:me(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=k(x({},t.payload),{toastId:tn})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(N,()=>$n),e.addCase(Hn.REHYDRATE,(t,r)=>{var i,l;let n=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=n})}}),{addCustomToast:Pl,removeCustomToast:Ml,addTransactionToast:Ol,removeTransactionToast:Fl,addFailTransactionToast:Bl,removeFailTransactionToast:Ul}=Wn.actions,He=Wn.reducer});var qn,Gt,Ht,Wt,ta,$t,jn,Hl,zn,Wl,qe,je=h(()=>{"use strict";o();qn=require("@reduxjs/toolkit");Y();Gt="Transaction failed",Ht="Transaction successful",Wt="Processing transaction",ta="Transaction submitted",$t={},jn=(0,qn.createSlice)({name:"transactionsInfo",initialState:$t,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:n}=t.payload;r!=null&&(e[r]={errorMessage:(n==null?void 0:n.errorMessage)||Gt,successMessage:(n==null?void 0:n.successMessage)||Ht,processingMessage:(n==null?void 0:n.processingMessage)||Wt,submittedMessage:(n==null?void 0:n.submittedMessage)||ta,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>$t},extraReducers:e=>{e.addCase(N,()=>$t)}}),{clearTransactionsInfo:Hl,setTransactionsDisplayInfo:zn,clearTransactionsInfoForSessionId:Wl}=jn.actions,qe=jn.reducer});function Kn(e){return e!=null&&(pa(e)||ga(e))}function ze(e){return e!=null&&(ua(e)||fa(e))}function Ke(e){return e!=null&&(da(e)||Ta(e))}function Yn(e){return e!=null&&ma(e)}function pa(e){return e!=null&&na.includes(e)}function ua(e){return e!=null&&oa.includes(e)}function da(e){return e!=null&&ia.includes(e)}function ma(e){return e!=null&&aa.includes(e)}function ga(e){return e!=null&&sa.includes(e)}function fa(e){return e!=null&&ca.includes(e)}function Ta(e){return e!=null&&la.includes(e)}var na,oa,ia,aa,sa,ca,la,jt=h(()=>{"use strict";o();H();na=["sent"],oa=["success"],ia=["fail","cancelled","timedOut"],aa=["timedOut"],sa=["pending"],ca=["success"],la=["fail","invalid"]});var Zn,Xn,Ie,ya,Jn,Ql,ep,Qn,eo,to,zt,tp,rp,ro,np,Ye,Ze=h(()=>{"use strict";o();Zn=require("@reduxjs/toolkit"),Xn=require("redux-persist");H();jt();Y();Ie={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},ya={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Jn=(0,Zn.createSlice)({name:"transactionsSlice",initialState:Ie,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,g;let{sessionId:r,transactions:n,errorMessage:i,status:l,redirectRoute:p}=t.payload,m=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||ya;e.signedTransactions[r]={transactions:n,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:m},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===r&&(e.transactionsToSign=Ie.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=x(x({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:n,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=n,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var m,d,g,y,T,S;let{sessionId:r,status:n,errorMessage:i,transactionHash:l}=t.payload,p=(d=(m=e.signedTransactions)==null?void 0:m[r])==null?void 0:d.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(_=>_.hash===l?k(x({},_),{status:n,errorMessage:i}):_);let v=(y=(g=e.signedTransactions[r])==null?void 0:g.transactions)==null?void 0:y.every(_=>ze(_.status)),C=(S=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:S.every(_=>Ke(_.status));v&&(e.signedTransactions[r].status="success"),C&&(e.signedTransactions[r].status="fail")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:n}=t.payload;e.customTransactionInformationForSessionId[r]=n,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=Ie.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Ie.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(N,()=>Ie),e.addCase(Xn.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(n).reduce((m,[d,g])=>{let y=new Date(d),T=new Date;return T.setHours(T.getHours()+5),T-y>0||(m[d]=g),m},{});i!=null&&(t.customTransactionInformationForSessionId=i),n!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Ql,updateSignedTransactions:ep,setTransactionsToSign:Qn,clearAllTransactionsToSign:eo,clearAllSignedTransactions:to,clearSignedTransaction:zt,clearTransactionToSign:tp,setSignTransactionsError:rp,setSignTransactionsCancelMessage:ro,moveTransactionsToSignedState:np}=Jn.actions,Ye=Jn.reducer});var Q=h(()=>{"use strict";o();Ct();Pt();Ot();Ut();Ge();We();je();Ze()});var Kt=h(()=>{"use strict";o()});var so,ao,co,Ep,Lp,Np,Dp,Rp,Cp,lo,po=h(()=>{"use strict";o();so=require("@reduxjs/toolkit");Y();ao={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},co=(0,so.createSlice)({name:"dappModalsSlice",initialState:ao,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=x({},t.payload)}},extraReducers:e=>{e.addCase(N,()=>ao)}}),{setDappModalVisibility:Ep,setDappModalHeaderVisibility:Lp,setDappModalFooterVisibility:Np,setDappModalHeaderText:Dp,setDappModalFooterText:Rp,setDappModalConfig:Cp}=co.actions,lo=co.reducer});var uo,wa,Aa,fe,tt=h(()=>{"use strict";o();uo=require("@reduxjs/toolkit");Kt();Ct();po();Pt();Ot();Ut();Ge();We();je();Ze();wa={["account"]:Sn,["dappModal"]:lo,["loginInfo"]:vn,["modals"]:Nn,["networkConfig"]:Bn,["signedMessageInfo"]:$e,["toasts"]:He,["transactionsInfo"]:qe,["transactions"]:Ye},Aa=(e={})=>(0,uo.combineReducers)(x(x({},wa),e)),fe=Aa});var fo={};ne(fo,{default:()=>Da});function rt(e,t=[]){return{key:e,version:1,storage:go.default,blacklist:t}}var ee,mo,go,ba,Ia,va,ka,Ea,La,Na,Da,To=h(()=>{"use strict";o();ee=require("redux-persist"),mo=w(require("redux-persist/lib/storage")),go=w(require("redux-persist/lib/storage/session"));tt();Q();Ge();We();je();Ze();Kt();ba={2:e=>k(x({},e),{networkConfig:Bt})};Ia=rt("sdk-dapp-transactionsInfo"),va=rt("sdk-dapp-transactions",["transactionsToSign"]),ka=rt("sdk-dapp-toasts"),Ea=rt("sdk-dapp-signedMessageInfo"),La={key:"sdk-dapp-store",version:2,storage:mo.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,ee.createMigrate)(ba,{debug:!1})},Na={["toasts"]:(0,ee.persistReducer)(ka,He),["transactions"]:(0,ee.persistReducer)(va,Ye),["transactionsInfo"]:(0,ee.persistReducer)(Ia,qe),["signedMessageInfo"]:(0,ee.persistReducer)(Ea,$e)},Da=(0,ee.persistReducer)(La,fe(Na))});var yo={};ne(yo,{default:()=>Ra});var Ra,ho=h(()=>{"use strict";o();tt();Ra=fe()});var xo={};ne(xo,{default:()=>_a});var O,Ca,_a,So=h(()=>{"use strict";o();O=require("redux-persist"),Ca=[O.FLUSH,O.REHYDRATE,O.PAUSE,O.PERSIST,O.PURGE,O.REGISTER],_a=Ca});var bo={};ne(bo,{default:()=>Ao});function Ao(e){return(0,wo.persistStore)(e)}var wo,Io=h(()=>{"use strict";o();wo=require("redux-persist")});var ws={};ne(ws,{calcTotalFee:()=>er,isCrossShardTransaction:()=>Wo,nativeAuth:()=>Ss,removeAllSignedTransactions:()=>Oa,removeAllTransactionsToSign:()=>Fa,removeSignedTransaction:()=>Ma,removeTransactionsToSign:()=>Pa,sendTransactions:()=>gs,signTransactions:()=>tr});module.exports=Se(ws);o();o();o();Q();o();var Yt=require("@reduxjs/toolkit"),Lo=require("react-redux/lib/utils/Subscription");Q();o();var oo=w(require("lodash.throttle"));b();o();var no=w(require("lodash.isequal")),Xe=require("reselect");F();var f=(0,Xe.createSelectorCreator)(Xe.defaultMemoize,no.default),Je=(e,t)=>e!=""&&Boolean(t);Q();_t();Be();we();var ha=[Oe],Qe=!1,xa=(0,oo.default)(()=>{be(Ae())},5e3),io=e=>t=>r=>{var d;if(ha.includes(r.type))return t(r);let n=e.getState(),i=ge.local.getItem(se.loginExpiresAt);if(!Je((d=n==null?void 0:n.loginInfo)==null?void 0:d.loginMethod,n==null?void 0:n.account.address))return t(r);if(i==null)return be(Ae());let p=Date.now();return i-p<0&&!Qe?setTimeout(()=>{Qe=!0,e.dispatch(In())},1e3):(Qe&&(Qe=!1),xa()),t(r)};o();o();function et(){return typeof sessionStorage!="undefined"}var vo=et()?(To(),Se(fo)).default:(ho(),Se(yo)).default,ko=et()?(So(),Se(xo)).default:[],Eo=et()?(Io(),Se(bo)).default:e=>e;tt();var A=(0,Yt.configureStore)({reducer:vo,middleware:e=>e({serializableCheck:{ignoredActions:[...ko,xn.type,hn.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(io)}),iu=(0,Lo.createSubscription)(A),au=Eo(A),su=(0,Yt.configureStore)({reducer:fe});function Pa(e){A.dispatch(zt(e))}function Ma(e){A.dispatch(zt(e))}function Oa(){A.dispatch(to())}function Fa(){A.dispatch(eo())}o();o();var Bo=w(require("bignumber.js"));b();o();Q();var Z=e=>e.account,ve=f(Z,e=>e.address),Zt=f(Z,ve,(e,t)=>t in e.accounts?e.accounts[t]:Ve),gu=f(Z,Zt,(e,t)=>{let i=e,{accounts:r}=i,n=hr(i,["accounts"]);return k(x({},n),{account:t})}),No=f(Zt,e=>e.balance),Do=f(Zt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),fu=f(Z,e=>e.shard),Tu=f(Z,e=>e.ledgerAccount),yu=f(Z,e=>e.walletConnectAccount),hu=f(Z,e=>e.isAccountLoading),xu=f(Z,e=>e.accountLoadingError),Su=f(Z,e=>e.websocketEvent);o();var ce=e=>e.networkConfig,nt=f(ce,e=>e.chainID),bu=f(ce,e=>e.network.walletConnectBridgeAddress),Iu=f(ce,e=>e.network.walletConnectV2RelayAddress),vu=f(ce,e=>e.network.walletConnectV2ProjectId),ku=f(ce,e=>e.network.walletConnectV2Options),Eu=f(ce,e=>e.network.walletConnectDeepLink),Xt=f(ce,e=>e.network),Ro=f(Xt,e=>e.apiAddress),Co=f(Xt,e=>e.explorerAddress),Lu=f(Xt,e=>e.egldLabel);Q();F();o();var _o=w(require("bignumber.js"));b();var ot=e=>{if(isNaN(e)||e==null||String(e).includes("Infinity"))return!1;let[t,r]=e.split(".");if(r)for(;r.charAt(r.length-1)===J;)r=r.slice(0,-1);let n=r?[t,r].join("."):t,i=new _o.default(n);return i.toString(10)===n&&i.comparedTo(0)>=0};o();var Qt=w(require("bignumber.js"));b();o();var B=require("@multiversx/sdk-core"),Oo=require("@multiversx/sdk-network-providers");b();o();o();var Po=w(require("bignumber.js")),Jt=(e,t=!0)=>{let r=String(e);if(!r.match(/^[-]?\d+$/))return!1;let n=new Po.default(r),i=t?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};o();b();o();var Mo={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function Fo({minGasLimit:e=String(X),gasLimit:t,gasPrice:r,data:n,gasPerDataByte:i,gasPriceModifier:l,defaultGasPrice:p=String(de),chainId:m}){let d=n||"",g=Jt(t)?t:e,y=ot(r)?r:p,T=new B.Transaction({nonce:0,value:B.TokenPayment.egldFromAmount("0"),receiver:new B.Address(Mo.to),sender:new B.Address(Mo.to),gasPrice:parseInt(y),gasLimit:parseInt(g),data:new B.TransactionPayload(d.trim()),chainID:m,version:new B.TransactionVersion(1)}),S=new Oo.NetworkConfig;S.MinGasLimit=parseInt(e),S.GasPerDataByte=parseInt(i),S.GasPriceModifier=parseFloat(l);try{return T.computeFee(S).toString(10)}catch(v){return J}}function er(e,t){let r=new Qt.default(0);return e.forEach(n=>{let i=Fo({gasPerDataByte:String(Me),gasPriceModifier:String(nn),minGasLimit:String(t),gasLimit:n.getGasLimit().valueOf().toString(),gasPrice:n.getGasPrice().valueOf().toString(),data:n.getData().toString(),chainId:n.getChainID().valueOf()});r=r.plus(new Qt.default(i))}),r}function tr(l){return L(this,arguments,function*({transactions:e,callbackRoute:t,minGasLimit:r=X,customTransactionInformation:n,transactionsDisplayInfo:i}){let p=A.getState(),m=Date.now().toString(),d=No(p),g=nt(p),y=Array.isArray(e)?e:[e],T=er(y,r);if(!new Bo.default(ot(d)?d:"0").minus(T).isGreaterThan(0)){let q={type:"warning",iconClassName:"text-warning",title:"Insufficient EGLD funds",description:"Current EGLD balance cannot cover the transaction fees."};return A.dispatch(Mt(q)),{error:"insufficient funds",sessionId:null}}if(!(y==null?void 0:y.every(q=>q.getChainID().valueOf()===g.valueOf()))){let q={type:"warning",iconClassName:"text-warning",title:"Network change detected",description:"The application tried to change the transaction network"};return A.dispatch(Mt(q)),{error:"Invalid ChainID",sessionId:null}}let _={sessionId:m,callbackRoute:t,customTransactionInformation:n,transactions:y.map(q=>q.toPlainObject())};return A.dispatch(ro(null)),A.dispatch(Qn(_)),A.dispatch(zn({sessionId:m,transactionsDisplayInfo:i})),{sessionId:m}})}o();var ur=require("@multiversx/sdk-core"),dr=w(require("bignumber.js"));b();o();var P=require("@multiversx/sdk-core");b();o();function rr(e){try{return a.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function Te(e){return atob(e)}function ke(e){var i,l,p;let{data:t}=e,r=rr(t!=null?t:"")?P.TransactionPayload.fromEncoded(t):new P.TransactionPayload(t),n=new P.Transaction(x({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new P.Address(e.receiver),sender:new P.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:X,gasPrice:(l=e.gasPrice.valueOf())!=null?l:de,chainID:e.chainID.valueOf(),version:new P.TransactionVersion((p=e.version)!=null?p:on)},e.options?{options:new P.TransactionOptions(e.options)}:{}));return n.applySignature({hex:()=>e.signature||""},new P.Address(e.sender)),n}o();o();var re=e=>e.loginInfo,ud=f(re,e=>e.loginMethod),dd=f(re,ve,(e,t)=>Je(e.loginMethod,t)),md=f(re,e=>e.walletConnectLogin),gd=f(re,e=>e.ledgerLogin),fd=f(re,e=>e.walletLogin),Td=f(re,e=>e.isLoginSessionInvalid),yd=f(re,e=>e.tokenLogin),hd=f(re,e=>e.logoutRoute);o();var Uo=e=>e.modals,wd=f(Uo,e=>e.txSubmittedModal),Ad=f(Uo,e=>e.notificationModal);o();var nr=e=>e.signedMessageInfo,vd=f(nr,e=>e.isSigning),kd=f(nr,e=>e.errorMessage),Ed=f(nr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});o();var or=e=>e.toasts,Dd=f(or,e=>e.customToasts),Rd=f(or,e=>e.transactionToasts),Cd=f(or,e=>e.failTransactionToast);o();Q();var Vo={errorMessage:Gt,successMessage:Ht,processingMessage:Wt},Ba=e=>e.transactionsInfo,Od=f(Ba,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Vo);o();o();jt();o();var Va=w(require("bignumber.js"));F();o();o();o();o();var Ga=require("@multiversx/sdk-core"),Ha=w(require("bignumber.js"));H();o();var $a=require("@multiversx/sdk-core");o();o();o();var ar=require("@multiversx/sdk-core/out");o();b();var Wa=e=>{let t=a.Buffer.from([0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);if(e.slice(0,t.length).equals(t))return!0;let n=a.Buffer.alloc(32).fill(0);return e.equals(n)},ir=e=>{try{let r=parseInt("11",2),n=parseInt("01",2),i=a.Buffer.from(e,"hex"),l=i[31];if(Wa(i))return vt;let p=l&r;return p>3-1&&(p=l&n),p}catch(t){return-1}};function Wo({receiverAddress:e,senderShard:t,senderAddress:r}){try{let n=new ar.Address(e),i=ir(n.pubkey());if(t==null&&r!=null){let l=new ar.Address(r);return ir(l)===i}return i===t}catch(n){return!1}}o();var qo=require("@multiversx/sdk-core");F();o();o();o();o();H();o();o();o();o();o();o();o();var sr="accounts";var cr="blocks";o();o();o();o();D();o();o();D();o();o();o();var Ka=w(require("bignumber.js"));b();o();var za=require("@multiversx/sdk-core"),lr=w(require("bignumber.js"));b();o();lr.default.config({ROUNDING_MODE:lr.default.ROUND_FLOOR});o();o();o();b();o();o();o();o();b();o();b();o();var Ya=require("@multiversx/sdk-core");b();o();o();o();o();b();o();D();var Xa=["reDelegateRewards","claimRewards","unBond"],Ja=["wrapEgld","unwrapEgld"],Qa=["unStake"],es=["unDelegate"];o();o();o();b();o();var ns=w(require("bignumber.js"));o();o();o();D();o();var os=w(require("bignumber.js"));o();o();o();o();D();o();o();o();var as=w(require("linkifyjs"));o();b();o();var ss=w(require("bignumber.js"));o();F();o();o();H();o();H();o();o();o();D();o();D();o();var cs=w(require("bignumber.js"));b();D();o();D();o();var Zo=require("react");F();o();o();D();o();var ls=require("@multiversx/sdk-core/out"),ps=w(require("bignumber.js"));D();o();D();o();o();H();var Wy=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];o();var Xo=require("react");F();o();var ds=require("react");D();var Xy=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var ct=e=>e.transactions,Ee=f(ct,e=>e.signedTransactions),Mh=f(ct,e=>e.signTransactionsError),Oh=f(ct,e=>e.signTransactionsCancelMessage),lt=e=>t=>Object.entries(t).reduce((r,[n,i])=>(e(i.status)&&(r[n]=i),r),{}),Fh=f(Ee,lt(Kn)),Bh=f(Ee,lt(ze)),Uh=f(Ee,lt(Ke)),Vh=f(Ee,lt(Yn)),$h=f(ct,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:k(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>ke(r)))||[]})}),Gh=f(Ee,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});o();o();var Qo=w(require("axios"));o();o();var Jo=e=>{let t=e!=null?e:Ro(A.getState());return t.endsWith("/")?t.slice(0,-1):t};function ei(e){return L(this,null,function*(){if(!e)return null;let r=`${Jo()}/${sr}/${e}`;try{let{data:n}=yield Qo.default.get(r);return n}catch(n){console.error("error fetching configuration for ",r)}return null})}function ti(e){return L(this,null,function*(){return yield ei(e)})}o();function ri(e){let t=A.getState(),r=Do(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}function ms(e){let t=new dr.default(X),r=new dr.default(Me),n=e?r.times(a.Buffer.from(e).length):0;return t.plus(n).toString(10)}function ni(t){return L(this,arguments,function*({transactions:e}){let r=ve(A.getState()),n=yield ti(r),i=ri(n);return e.map(l=>{let{value:p,receiver:m,data:d="",chainID:g,version:y=1,options:T,gasPrice:S=de,gasLimit:v=ms(l.data)}=l,C=m;try{C=new ur.Address(m).hex()}catch(pi){throw"Invalid Receiver address"}let _=nt(A.getState()).valueOf().toString(),q=g||_;return ke({value:p,receiver:C,data:d,gasPrice:S,gasLimit:Number(v),nonce:Number(i.valueOf().toString()),sender:new ur.Address(r).hex(),chainID:q,version:y,options:T})})})}function gs(d){return L(this,arguments,function*({transactions:e,transactionsDisplayInfo:t,redirectAfterSign:r=!0,callbackRoute:n=window.location.pathname,signWithoutSending:i,completedTransactionsDelay:l,sessionInformation:p,minGasLimit:m}){try{let g=Array.isArray(e)?e:[e],y=g.every(S=>Object.getPrototypeOf(S).toPlainObject!=null),T=g;return y||(T=yield ni({transactions:g,minGasLimit:m})),tr({transactions:T,minGasLimit:m,callbackRoute:n,transactionsDisplayInfo:t,customTransactionInformation:{redirectAfterSign:r,completedTransactionsDelay:l,sessionInformation:p,signWithoutSending:i}})}catch(g){return console.error("error signing transaction",g),{error:g,sessionId:null}}})}o();o();o();var fs=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),ye=e=>fs(a.Buffer.from(e,"utf8").toString("base64"));o();var oi=w(require("axios"));var Ts=5e4,mr=null,he={current:null},gr=!1;function ii(e){return L(this,null,function*(){if(e==null)throw new Error("missing api url");if(mr!=null&&Date.now()<mr&&he.current!=null)return he.current;{if(gr)return yield hs();gr=!0,he.current=null;let r=yield ys(e);return he.current=r,mr=Date.now()+Ts,gr=!1,r}})}function ys(e){return L(this,null,function*(){let{data:t}=yield oi.default.get(`${e}/${cr}?size=1&fields=hash,timestamp`),[r]=t;return r})}function hs(){return L(this,null,function*(){return new Promise((e,t)=>{let r,n=setInterval(()=>{he.current!=null&&(e(he.current),clearInterval(n),clearTimeout(r))},50);r=setTimeout(()=>{clearInterval(n),t("could not generate new token")},5e3)})})}o();var ai,Le={hostname:typeof window!="undefined"?(ai=window==null?void 0:window.location)==null?void 0:ai.hostname:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},fr=e=>{var r,n,i,l;return e===!0?Le:{hostname:(r=e==null?void 0:e.hostname)!=null?r:Le.hostname,expirySeconds:(n=e==null?void 0:e.expirySeconds)!=null?n:Le.expirySeconds,apiAddress:(i=e==null?void 0:e.apiAddress)!=null?i:Le.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:Le.tokenExpirationToastWarningSeconds}};o();o();o();function xs(e){return Object.prototype.toString.call(e)==="[object String]"}var si=e=>{if(!e||!xs(e))return null;try{let[t,r,n]=e.split("."),i=Te(t),l=Te(r),[p,m,d,g]=l.split("."),y=JSON.parse(Te(g)),T=Te(p),S={ttl:Number(d),address:i,extraInfo:y,host:T,signature:n,blockHash:m,body:l};return g==="e30"&&delete S.extraInfo,S}catch(t){return null}};var ci=({address:e,token:t,signature:r})=>{let n=ye(e),i=ye(t);return`${n}.${i}.${r}`};o();Fe();var li=e=>{let t=si(e);if(!t)return{isExpired:!1};let r=me(),{ttl:n,extraInfo:i}=t,l=i.timestamp;if(!l)return{isExpired:!1};let p=l+n,m=r>p,d=p-r;return{isExpired:m,expiresAt:p,secondsUntilExpires:d}};var Ss=e=>{let{hostname:t,apiAddress:r,expirySeconds:n}=fr(e);return{getNativeAuthConfig:fr,initialize:(...p)=>L(void 0,[...p],function*(l={}){let{hash:m,timestamp:d}=yield ii(r),g=ye(JSON.stringify(x(x({},l),d?{timestamp:d}:{})));return`${ye(t)}.${m}.${n}.${g}`}),getToken:ci,getTokenExpiration:li}};0&&(module.exports={calcTotalFee,isCrossShardTransaction,nativeAuth,removeAllSignedTransactions,removeAllTransactionsToSign,removeSignedTransaction,removeTransactionsToSign,sendTransactions,signTransactions});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *