@multiversx/sdk-dapp 2.27.0 → 2.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UI/ExplorerLink/ExplorerLink.js +1 -1
- package/UI/ExplorerLink/index.js +1 -1
- package/UI/NotificationModal/NotificationModal.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/ConfirmAmount.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/ConfirmFee.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/ConfirmReceiver.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/components/ReceiverSubValue/ReceiverSubValue.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/components/ReceiverSubValue/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/components/ReceiverValue/ReceiverValue.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/components/ReceiverValue/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/NftSftPreviewComponent/NftSftPreviewComponent.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/NftSftPreviewComponent/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/TokenAvatar/TokenAvatar.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/TokenAvatar/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/SignWithExtensionModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/LedgerGuardianSigningModalError.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
- package/UI/SignTransactionsModals/components/index.js +1 -1
- package/UI/SignTransactionsModals/index.js +1 -1
- package/UI/TokenDetails/index.js +1 -1
- package/UI/TransactionDetails/TransactionDetails.js +1 -1
- package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
- package/UI/TransactionDetails/components/index.js +1 -1
- package/UI/TransactionDetails/index.js +1 -1
- package/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
- package/UI/TransactionInfo/components/EventsList/index.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
- package/UI/TransactionInfo/components/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/UI/TransactionInfo/index.js +1 -1
- package/UI/TransactionsTable/TransactionsTable.js +1 -1
- package/UI/TransactionsTable/components/AccountName.js +1 -1
- package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/TransactionHash.js +1 -1
- package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
- package/UI/TransactionsTable/components/TransactionRow.js +1 -1
- package/UI/TransactionsTable/components/TransactionSender.js +1 -1
- package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
- package/UI/TransactionsTable/components/index.js +1 -1
- package/UI/TransactionsTable/index.js +1 -1
- package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/CustomComponentToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/Trim/Trim.js +1 -1
- package/UI/Trim/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/helpers/getAuthTokenText.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/helpers/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContainer.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/LedgerLoginContent.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/LedgerLoginContentBody.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/LedgerScamPhishingAlert.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContainer.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/WalletConnectLoginContent.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/UI/webWallet/XaliasLoginButton/XaliasLoginButton.js +1 -1
- package/UI/webWallet/XaliasLoginButton/index.js +1 -1
- package/__chunks__/{chunk-XAGBX6LM.js → chunk-2IJFCVRN.js} +2 -2
- package/__chunks__/chunk-2JGS2GW7.js +2 -0
- package/__chunks__/{chunk-WZL6V73U.js → chunk-2OLTEICJ.js} +2 -2
- package/__chunks__/{chunk-K772AABJ.js → chunk-2Q2PGTXX.js} +2 -2
- package/__chunks__/{chunk-V67ENBSF.js → chunk-2QFH4MRM.js} +2 -2
- package/__chunks__/chunk-2VKHSXFO.js +2 -0
- package/__chunks__/{chunk-LEEKV3M2.js → chunk-36HDXZPN.js} +2 -2
- package/__chunks__/{chunk-NRFKFTVT.js → chunk-3L263U2A.js} +2 -2
- package/__chunks__/{chunk-6ENS72CV.js → chunk-3MMKFJQI.js} +2 -2
- package/__chunks__/{chunk-75UHYSSS.js → chunk-3MXEVKXS.js} +2 -2
- package/__chunks__/{chunk-6O7GB2SH.js → chunk-3QZMA357.js} +2 -2
- package/__chunks__/{chunk-MQ3F4KGS.js → chunk-3VWRIFER.js} +2 -2
- package/__chunks__/{chunk-V2Y77MNV.js → chunk-426MSPLN.js} +2 -2
- package/__chunks__/{chunk-3JZKPGWI.js → chunk-47NGXUWK.js} +2 -2
- package/__chunks__/{chunk-SWBUQ4WG.js → chunk-4BKPUR2D.js} +2 -2
- package/__chunks__/{chunk-Q5RVJPFM.js → chunk-4J4LVV5F.js} +2 -2
- package/__chunks__/{chunk-IEHCMI5J.js → chunk-4MDMFOC7.js} +2 -2
- package/__chunks__/{chunk-UAVOSPE3.js → chunk-4NKD57QC.js} +2 -2
- package/__chunks__/{chunk-4BZ7ACIN.js → chunk-4OIQAXBQ.js} +2 -2
- package/__chunks__/{chunk-ZVQ7ECJ7.js → chunk-4P4LJ5JS.js} +2 -2
- package/__chunks__/{chunk-RQN6IC74.js → chunk-4PUH3UMF.js} +2 -2
- package/__chunks__/{chunk-UHAU5XXD.js → chunk-4RQULWXA.js} +2 -2
- package/__chunks__/{chunk-X6NLJROS.js → chunk-4UFI5DG3.js} +2 -2
- package/__chunks__/{chunk-AVZB5RJE.js → chunk-4WOFDLGB.js} +2 -2
- package/__chunks__/{chunk-LPY57GL4.js → chunk-5CZUZQTD.js} +2 -2
- package/__chunks__/{chunk-3F47LNTD.js → chunk-5D4FR7BA.js} +2 -2
- package/__chunks__/{chunk-G7BRL4ML.js → chunk-5KEA73DF.js} +2 -2
- package/__chunks__/{chunk-HRKIQO45.js → chunk-5OB4UHA4.js} +2 -2
- package/__chunks__/{chunk-CVQATYYZ.js → chunk-5VJTJHPP.js} +2 -2
- package/__chunks__/{chunk-KKX3OWH4.js → chunk-5Y2QPEY5.js} +2 -2
- package/__chunks__/{chunk-AJHJYLG6.js → chunk-5YSMIEUO.js} +2 -2
- package/__chunks__/{chunk-W4Z4PCPA.js → chunk-6BAGBSMA.js} +2 -2
- package/__chunks__/{chunk-UN2227W7.js → chunk-6DZJPEWO.js} +2 -2
- package/__chunks__/chunk-6LAAFTLG.js +2 -0
- package/__chunks__/{chunk-FDJTBFNE.js → chunk-6UKAUXEB.js} +2 -2
- package/__chunks__/{chunk-E4ABMVSF.js → chunk-6Y2F6OSS.js} +2 -2
- package/__chunks__/{chunk-YKXZOBSY.js → chunk-7VTSTQCE.js} +2 -2
- package/__chunks__/{chunk-NCISGHFY.js → chunk-A3GAB5ZT.js} +2 -2
- package/__chunks__/{chunk-LMK36BFQ.js → chunk-A6D5XTWB.js} +2 -2
- package/__chunks__/{chunk-XRNJNTMC.js → chunk-A6OCD4WS.js} +2 -2
- package/__chunks__/{chunk-4YBRCKI6.js → chunk-AH7SSYQM.js} +2 -2
- package/__chunks__/{chunk-TIVGUJJ6.js → chunk-AT7GCSF7.js} +2 -2
- package/__chunks__/{chunk-6N5GHPQF.js → chunk-AWXYCPHO.js} +2 -2
- package/__chunks__/{chunk-TMKSEBBN.js → chunk-BPQR5HPJ.js} +2 -2
- package/__chunks__/{chunk-VJPVFPQZ.js → chunk-C3TP2LTJ.js} +2 -2
- package/__chunks__/{chunk-BKNGY5XQ.js → chunk-C7JW63TK.js} +2 -2
- package/__chunks__/{chunk-DFXZUFSP.js → chunk-CAURTPSW.js} +2 -2
- package/__chunks__/{chunk-2KKHSPHY.js → chunk-CNFHVQZ5.js} +2 -2
- package/__chunks__/{chunk-NIH3PBPX.js → chunk-CTPIZAOA.js} +2 -2
- package/__chunks__/{chunk-LLLLIW7T.js → chunk-CUYBZSDQ.js} +2 -2
- package/__chunks__/{chunk-FU64Y6Y4.js → chunk-CXFOWZQP.js} +2 -2
- package/__chunks__/{chunk-QNM3L6SB.js → chunk-D3RWOANU.js} +2 -2
- package/__chunks__/{chunk-BTYKXQ5X.js → chunk-D4QO7X2G.js} +2 -2
- package/__chunks__/{chunk-GAUURCYU.js → chunk-DDXDNIBU.js} +2 -2
- package/__chunks__/{chunk-6Y2YZHHN.js → chunk-DWACPSAS.js} +2 -2
- package/__chunks__/{chunk-SFE22O5D.js → chunk-E3EE73P3.js} +2 -2
- package/__chunks__/{chunk-OYHFCHIF.js → chunk-E6EHALVK.js} +2 -2
- package/__chunks__/{chunk-PWP6CUOJ.js → chunk-EA3N4QV6.js} +2 -2
- package/__chunks__/{chunk-Y7AH457K.js → chunk-EDMFKVSH.js} +2 -2
- package/__chunks__/{chunk-MDVMVB5N.js → chunk-EGAAC46Q.js} +2 -2
- package/__chunks__/chunk-ELPXXBPC.js +2 -0
- package/__chunks__/{chunk-XOKLPBNT.js → chunk-ENDSH2QC.js} +2 -2
- package/__chunks__/{chunk-DMJ5GYJK.js → chunk-ERH2STPJ.js} +2 -2
- package/__chunks__/{chunk-QMYXVVB2.js → chunk-EWBBNFZ4.js} +2 -2
- package/__chunks__/{chunk-VAQVMUC7.js → chunk-FXZZ7DTG.js} +2 -2
- package/__chunks__/{chunk-L4BVNWZZ.js → chunk-G67OHEBF.js} +2 -2
- package/__chunks__/{chunk-QFEVLN4G.js → chunk-GA4QGCAC.js} +2 -2
- package/__chunks__/{chunk-U7PZGA7B.js → chunk-GCR4ZHCE.js} +2 -2
- package/__chunks__/{chunk-XBPCJ3CD.js → chunk-GLJJBTMU.js} +2 -2
- package/__chunks__/chunk-GMEIW3OS.js +2 -0
- package/__chunks__/{chunk-FGKO3ZGS.js → chunk-GQP4WTOX.js} +2 -2
- package/__chunks__/{chunk-5O4SIBXC.js → chunk-GVLSVQ75.js} +2 -2
- package/__chunks__/{chunk-I3FTEBFD.js → chunk-GWXKFHCC.js} +2 -2
- package/__chunks__/chunk-H2CKGGMX.js +2 -0
- package/__chunks__/{chunk-BJTZWHMY.js → chunk-HJ2AUART.js} +2 -2
- package/__chunks__/{chunk-NWUU2CBI.js → chunk-I4O22YJ6.js} +2 -2
- package/__chunks__/{chunk-UHBTIGFB.js → chunk-ICFRRJAA.js} +2 -2
- package/__chunks__/{chunk-K4DT7BIG.js → chunk-IPDHBRWM.js} +2 -2
- package/__chunks__/{chunk-TXZF7YSM.js → chunk-IPK2G6VT.js} +2 -2
- package/__chunks__/{chunk-Q6JHOKNU.js → chunk-IQD4UZIO.js} +2 -2
- package/__chunks__/{chunk-5UCJEXI7.js → chunk-IZHDHIGY.js} +2 -2
- package/__chunks__/{chunk-V5GEPNIW.js → chunk-JPNG5EJV.js} +2 -2
- package/__chunks__/{chunk-FRZLEWJK.js → chunk-JWD7IXSX.js} +2 -2
- package/__chunks__/{chunk-7JQYRE5F.js → chunk-JYO5RNT5.js} +2 -2
- package/__chunks__/{chunk-ZOCPVBSB.js → chunk-K2WFNIRV.js} +2 -2
- package/__chunks__/{chunk-7VEJAV3Z.js → chunk-K7KKDY36.js} +2 -2
- package/__chunks__/{chunk-YSKHL2CS.js → chunk-KDZ3G5XG.js} +2 -2
- package/__chunks__/{chunk-AAHOGRAE.js → chunk-KEEE6BEQ.js} +2 -2
- package/__chunks__/{chunk-OQLBF7DH.js → chunk-KQSG4XFV.js} +2 -2
- package/__chunks__/{chunk-SOWYGNUG.js → chunk-KRLRPQED.js} +2 -2
- package/__chunks__/{chunk-6ANCYSVY.js → chunk-KW5PZRUX.js} +2 -2
- package/__chunks__/{chunk-G2WZ36QI.js → chunk-L6263R7C.js} +2 -2
- package/__chunks__/{chunk-PEWBZ3FN.js → chunk-L6SVBHJN.js} +2 -2
- package/__chunks__/{chunk-JJLLQDPQ.js → chunk-LAV6EYW7.js} +2 -2
- package/__chunks__/{chunk-AO5KSOOM.js → chunk-LK524FE2.js} +2 -2
- package/__chunks__/{chunk-VOYBFDRU.js → chunk-LVF27ELQ.js} +2 -2
- package/__chunks__/{chunk-VAHIQCB5.js → chunk-LYPD5RJI.js} +2 -2
- package/__chunks__/{chunk-L45IFNKK.js → chunk-LYSVYZQY.js} +2 -2
- package/__chunks__/{chunk-LHI7ULRC.js → chunk-LZE3CU54.js} +2 -2
- package/__chunks__/{chunk-6KZDP7I3.js → chunk-M6DHXGJP.js} +2 -2
- package/__chunks__/{chunk-LWU34UB4.js → chunk-M6JIWZ5S.js} +2 -2
- package/__chunks__/{chunk-Q42VXP3O.js → chunk-MGOIFADH.js} +2 -2
- package/__chunks__/{chunk-33VXC5IZ.js → chunk-MH6BPBMJ.js} +2 -2
- package/__chunks__/{chunk-2KZX4CMI.js → chunk-MHRQZAKF.js} +2 -2
- package/__chunks__/chunk-MHTCYHRY.js +2 -0
- package/__chunks__/{chunk-CWQO5OQN.js → chunk-MKFWZWOM.js} +2 -2
- package/__chunks__/{chunk-YOEKSDYT.js → chunk-MNOVVW5J.js} +2 -2
- package/__chunks__/{chunk-HQA4KAF4.js → chunk-N2E265WT.js} +2 -2
- package/__chunks__/{chunk-F5SYVBVV.js → chunk-N3C3FS7S.js} +2 -2
- package/__chunks__/chunk-N5MZOLKS.js +2 -0
- package/__chunks__/{chunk-3PP7WYV3.js → chunk-N5YXLYSO.js} +2 -2
- package/__chunks__/{chunk-OOTT5OI4.js → chunk-N6VORFFR.js} +2 -2
- package/__chunks__/{chunk-3TV6B6EU.js → chunk-NANZUZYU.js} +2 -2
- package/__chunks__/{chunk-WNYXX664.js → chunk-NBRP6W4X.js} +2 -2
- package/__chunks__/{chunk-ISR2RIRU.js → chunk-NCYYD7HD.js} +2 -2
- package/__chunks__/{chunk-7H7F3QYD.js → chunk-NMZRU2QS.js} +2 -2
- package/__chunks__/{chunk-DP2BTM27.js → chunk-NN3EOAD7.js} +2 -2
- package/__chunks__/{chunk-6WUI5WL6.js → chunk-O5L7Y6B2.js} +2 -2
- package/__chunks__/chunk-OEJKCTVX.js +2 -0
- package/__chunks__/{chunk-ZRQMHJZN.js → chunk-OFT3UTFB.js} +2 -2
- package/__chunks__/{chunk-MUKL366G.js → chunk-OX7PZ4GN.js} +2 -2
- package/__chunks__/{chunk-VDIOPGPV.js → chunk-P7YKLOCA.js} +2 -2
- package/__chunks__/{chunk-AZSDAWKS.js → chunk-PBAEQGO6.js} +2 -2
- package/__chunks__/{chunk-5FO33AF3.js → chunk-PF4GCJTN.js} +2 -2
- package/__chunks__/{chunk-G2PDW2K5.js → chunk-PHGKYT5Y.js} +2 -2
- package/__chunks__/{chunk-CL6HGWFY.js → chunk-PKHVBLI5.js} +2 -2
- package/__chunks__/{chunk-E66YVNST.js → chunk-PNFQYLR4.js} +2 -2
- package/__chunks__/{chunk-W33XGC73.js → chunk-Q3QIQTX3.js} +2 -2
- package/__chunks__/{chunk-6COD3TPV.js → chunk-QCXCA7JV.js} +2 -2
- package/__chunks__/{chunk-TIDZORAG.js → chunk-QCZ2C57M.js} +2 -2
- package/__chunks__/{chunk-OX764ETH.js → chunk-QEWAB2L5.js} +2 -2
- package/__chunks__/{chunk-QNTLBVVT.js → chunk-QFRHN7ZW.js} +2 -2
- package/__chunks__/{chunk-U7G6NUDY.js → chunk-QIK5WAGC.js} +2 -2
- package/__chunks__/{chunk-SCYM74MI.js → chunk-QIX7T4AV.js} +2 -2
- package/__chunks__/{chunk-EEQL3BUP.js → chunk-QMQRU7YU.js} +2 -2
- package/__chunks__/{chunk-QWR4EUAC.js → chunk-QQ7GWOJM.js} +2 -2
- package/__chunks__/{chunk-5RHABUBQ.js → chunk-R22R3R4D.js} +2 -2
- package/__chunks__/{chunk-UUZ4RVLA.js → chunk-RMFL7YM5.js} +2 -2
- package/__chunks__/{chunk-LAEJ4J44.js → chunk-RMM6UCI6.js} +2 -2
- package/__chunks__/{chunk-DIQKTN6D.js → chunk-RTGXFOR6.js} +2 -2
- package/__chunks__/{chunk-FEFDM47M.js → chunk-S2YHFWTJ.js} +2 -2
- package/__chunks__/{chunk-LPFJQNXT.js → chunk-SCTYFSGK.js} +2 -2
- package/__chunks__/{chunk-H6PTZ2YZ.js → chunk-SFISBXBS.js} +2 -2
- package/__chunks__/{chunk-3KTG3OL6.js → chunk-SHKMZE7Z.js} +2 -2
- package/__chunks__/{chunk-7XV4LCZM.js → chunk-SMOFG4LC.js} +2 -2
- package/__chunks__/{chunk-PBZQDHVP.js → chunk-SOVI5PRW.js} +2 -2
- package/__chunks__/{chunk-QMPQBDPL.js → chunk-SVZYWFAB.js} +2 -2
- package/__chunks__/{chunk-MRV7EKLA.js → chunk-SWLW4HTC.js} +2 -2
- package/__chunks__/{chunk-WBRL7747.js → chunk-SZ75AWAL.js} +2 -2
- package/__chunks__/{chunk-VP7ZP7E6.js → chunk-T3C2YBMK.js} +2 -2
- package/__chunks__/{chunk-RUHG3MT6.js → chunk-T7EH6C57.js} +2 -2
- package/__chunks__/{chunk-5AG5UD5X.js → chunk-TCWLVAIC.js} +2 -2
- package/__chunks__/{chunk-QINUFQPX.js → chunk-TEIAT2CT.js} +2 -2
- package/__chunks__/{chunk-VYF7TLHX.js → chunk-TGAN4MXV.js} +2 -2
- package/__chunks__/{chunk-MPSDD42Y.js → chunk-TJ4O3AUA.js} +2 -2
- package/__chunks__/{chunk-QWIWHJ2X.js → chunk-TNTRSUM6.js} +2 -2
- package/__chunks__/chunk-TTLRJBIK.js +2 -0
- package/__chunks__/chunk-TWCYOQEV.js +2 -0
- package/__chunks__/{chunk-AKZ24DG6.js → chunk-TYNGTUP7.js} +2 -2
- package/__chunks__/{chunk-QAST4FOI.js → chunk-U3QVGTO6.js} +2 -2
- package/__chunks__/{chunk-Q36S2UWM.js → chunk-UGY3UCRT.js} +2 -2
- package/__chunks__/{chunk-EH5YCLJ6.js → chunk-UUAQPTFS.js} +2 -2
- package/__chunks__/{chunk-RZQ3RJNN.js → chunk-V2BP4NJ6.js} +2 -2
- package/__chunks__/{chunk-TVCKSAHI.js → chunk-VHDZBFX7.js} +2 -2
- package/__chunks__/{chunk-2HDLFVPQ.js → chunk-VMD53YSR.js} +2 -2
- package/__chunks__/{chunk-XWDQWTB6.js → chunk-VRSI7F5G.js} +2 -2
- package/__chunks__/{chunk-3HEBAYM2.js → chunk-VXAVW637.js} +2 -2
- package/__chunks__/{chunk-KG76ZND2.js → chunk-VZRTVJYI.js} +2 -2
- package/__chunks__/{chunk-ILCPYVZO.js → chunk-VZUFUP7R.js} +2 -2
- package/__chunks__/{chunk-JNFE2UB2.js → chunk-W46FTIOG.js} +2 -2
- package/__chunks__/{chunk-ANVHOTCH.js → chunk-W6AAVLSX.js} +2 -2
- package/__chunks__/{chunk-ZWESHWJG.js → chunk-WDYHR6HB.js} +2 -2
- package/__chunks__/{chunk-N2R4ARKF.js → chunk-WFKZVKCL.js} +2 -2
- package/__chunks__/{chunk-SX7AKJ6A.js → chunk-WGSXXBMZ.js} +2 -2
- package/__chunks__/{chunk-L3CHYSUP.js → chunk-X2INDHWT.js} +2 -2
- package/__chunks__/{chunk-GCP36XX3.js → chunk-X7ASMXU4.js} +2 -2
- package/__chunks__/{chunk-WQCFBNLI.js → chunk-XCWOJ55W.js} +2 -2
- package/__chunks__/{chunk-7GTLDZ5B.js → chunk-XJXSRRMN.js} +2 -2
- package/__chunks__/{chunk-TU7ZSZFT.js → chunk-Y67IQNAQ.js} +2 -2
- package/__chunks__/{chunk-T6U4ARRZ.js → chunk-YBHOTD5P.js} +2 -2
- package/__chunks__/{chunk-4VTX66SG.js → chunk-YIJWQFWK.js} +2 -2
- package/__chunks__/{chunk-IV7Q37UN.js → chunk-YLOT65JB.js} +2 -2
- package/__chunks__/{chunk-LPMITTOD.js → chunk-YN4MYWZL.js} +2 -2
- package/__chunks__/{chunk-4L6MUKKA.js → chunk-YPKMFYTN.js} +2 -2
- package/__chunks__/{chunk-RZPZNUKC.js → chunk-YTVNY3GG.js} +2 -2
- package/__chunks__/{chunk-ECDBUAY4.js → chunk-YURWZIMI.js} +2 -2
- package/__chunks__/{chunk-ZLAPROIA.js → chunk-Z7ENBHMR.js} +2 -2
- package/__chunks__/{chunk-UUOFNWUN.js → chunk-Z7GTDG3H.js} +2 -2
- package/__chunks__/{chunk-NIPFWFTD.js → chunk-ZA2QG2R7.js} +2 -2
- package/__chunks__/{chunk-NV6VCR3G.js → chunk-ZF4J4UWP.js} +2 -2
- package/__chunks__/{chunk-4IQOHCTU.js → chunk-ZJZQQNCU.js} +2 -2
- package/__chunks__/{chunk-MTJ2KHSE.js → chunk-ZP6P3WKL.js} +2 -2
- package/__chunks__/{chunk-VW4C4PI4.js → chunk-ZU2TTQDB.js} +2 -2
- package/__chunks__/{chunk-ICA4U6HW.js → chunk-ZXDRJBUM.js} +2 -2
- package/__chunks__/{chunk-3JCRV6RK.js → chunk-ZXHH3RM7.js} +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/index.js +1 -1
- package/__commonjs/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
- package/__commonjs/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/__commonjs/UI/index.js +2 -2
- package/__commonjs/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress/ConfirmAddress.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress/helpers/getAuthTokenText.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress/helpers/index.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress/index.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoginContainer.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoginContent/LedgerLoginContent.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoginContent/index.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/LedgerLoginContentBody.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/index.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/__commonjs/UI/ledger/index.js +1 -1
- package/__commonjs/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
- package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/__commonjs/UI/pages/UnlockPage/index.js +1 -1
- package/__commonjs/UI/pages/index.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContainer.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/WalletConnectLoginContent.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/index.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/__commonjs/UI/walletConnect/index.js +1 -1
- package/__commonjs/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__commonjs/UI/webWallet/XaliasLoginButton/XaliasLoginButton.js +1 -1
- package/__commonjs/UI/webWallet/XaliasLoginButton/index.js +1 -1
- package/__commonjs/__mocks__/index.js +1 -1
- package/__commonjs/__mocks__/utils/index.js +1 -1
- package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
- package/__commonjs/components/ProviderInitializer/ProviderInitializer.js +1 -1
- package/__commonjs/components/ProviderInitializer/index.js +1 -1
- package/__commonjs/components/TransactionSender/TransactionSender.js +1 -1
- package/__commonjs/components/TransactionSender/index.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/login/index.js +1 -1
- package/__commonjs/hooks/login/useExtensionLogin.js +1 -1
- package/__commonjs/hooks/login/useLedgerLogin.js +1 -1
- package/__commonjs/hooks/login/useLoginService.js +1 -1
- package/__commonjs/hooks/login/useOperaLogin.js +1 -1
- package/__commonjs/hooks/login/useWalletConnectV2Login.js +1 -1
- package/__commonjs/hooks/login/useWebWalletLogin.js +1 -1
- package/__commonjs/hooks/login/useXaliasLogin.js +1 -1
- package/__commonjs/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
- package/__commonjs/hooks/transactions/helpers/index.js +1 -1
- package/__commonjs/hooks/transactions/index.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/index.js +1 -1
- package/__commonjs/utils/index.js +1 -1
- package/__commonjs/utils/transactions/builtCallbackUrl.js +1 -1
- package/__commonjs/utils/transactions/index.js +1 -1
- package/__commonjs/wrappers/DappProvider/DappProvider.js +1 -1
- package/__commonjs/wrappers/DappProvider/index.js +1 -1
- package/__commonjs/wrappers/index.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/apiCalls/accounts/getAccountFromApi.js +1 -1
- package/apiCalls/accounts/index.js +1 -1
- package/apiCalls/configuration/getNetworkConfig.js +1 -1
- package/apiCalls/configuration/index.js +1 -1
- package/apiCalls/economics/getEconomicsInfo.js +1 -1
- package/apiCalls/economics/index.js +1 -1
- package/apiCalls/getScamAddressData.js +1 -1
- package/apiCalls/index.js +1 -1
- package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
- package/apiCalls/transactions/index.js +1 -1
- package/apiCalls/transactions/sendSignedBatchTransactions.js +1 -1
- package/apiCalls/transactions/sendSignedTransactions.js +1 -1
- package/apiCalls/utils/getCleanApiAddress.js +1 -1
- package/apiCalls/utils/index.js +1 -1
- package/components/LogoutListener/LogoutListener.js +1 -1
- package/components/LogoutListener/helpers/index.js +1 -1
- package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/components/LogoutListener/index.js +1 -1
- package/components/ProviderInitializer/ProviderInitializer.js +1 -1
- package/components/ProviderInitializer/hooks/index.js +1 -1
- package/components/ProviderInitializer/hooks/useSetLedgerProvider.js +1 -1
- package/components/ProviderInitializer/index.js +1 -1
- package/components/TransactionSender/TransactionSender.js +1 -1
- package/components/TransactionSender/index.js +1 -1
- package/components/TransactionSender/utils/invokeSendTransactions.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/hooks/account/index.js +1 -1
- package/hooks/account/useGetAccount.js +1 -1
- package/hooks/account/useGetAccountFromApi.js +1 -1
- package/hooks/account/useGetAccountInfo.js +1 -1
- package/hooks/account/useGetIsLoggedIn.js +1 -1
- package/hooks/account/useGetLoginInfo.js +1 -1
- package/hooks/account/useGetWebsocketEvent.js +1 -1
- package/hooks/economics/index.js +1 -1
- package/hooks/economics/useGetEgldPrice.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useExtensionLogin.js +1 -1
- package/hooks/login/useGetModalLoginMethods.js +1 -1
- package/hooks/login/useLedgerLogin.js +1 -1
- package/hooks/login/useLoginService.js +1 -1
- package/hooks/login/useOperaLogin.js +1 -1
- package/hooks/login/useWalletConnectV2Login.js +1 -1
- package/hooks/login/useWebViewLogin.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/login/useXaliasLogin.js +1 -1
- package/hooks/signMessage/index.js +1 -1
- package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
- package/hooks/signMessage/useSignMessage.js +1 -1
- package/hooks/toasts/index.js +1 -1
- package/hooks/toasts/useGetToasts.js +1 -1
- package/hooks/toasts/useTransactionsToasts.js +1 -1
- package/hooks/transactions/batch/tracker/useBatchTransactionsTracker.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckBatch.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckBatchesOnWsFailureFallback.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckHangingBatchesFallback.js +1 -1
- package/hooks/transactions/batch/tracker/useUpdateBatch.js +1 -1
- package/hooks/transactions/batch/tracker/useVerifyBatchStatus.js +1 -1
- package/hooks/transactions/batch/useGetBatchStatus.js +1 -1
- package/hooks/transactions/batch/useResolveBatchStatusResponse.js +1 -1
- package/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
- package/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
- package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
- package/hooks/transactions/helpers/index.js +1 -1
- package/hooks/transactions/helpers/useGetLedgerProvider.js +1 -1
- package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
- package/hooks/transactions/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
- package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
- package/hooks/transactions/useGetFailedTransactions.js +1 -1
- package/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
- package/hooks/transactions/useGetPendingTransactions.js +1 -1
- package/hooks/transactions/useGetSignTransactionsError.js +1 -1
- package/hooks/transactions/useGetSignedTransactions.js +1 -1
- package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
- package/hooks/transactions/useGetTokenDetails.js +1 -1
- package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/hooks/transactions/useSignMultipleTransactions.js +1 -1
- package/hooks/transactions/useSignTransactions.js +1 -1
- package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/hooks/transactions/useTransactionsTracker.js +1 -1
- package/hooks/useGetNetworkConfig.js +1 -1
- package/hooks/useGetNotification.js +1 -1
- package/hooks/websocketListener/index.js +1 -1
- package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
- package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
- package/package.json +1 -1
- package/reduxStore/selectors/index.js +1 -1
- package/reduxStore/selectors/transactionsSelectors.js +1 -1
- package/services/index.js +1 -1
- package/services/nativeAuth/helpers/getAuthorizationInfo.js +1 -1
- package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
- package/services/nativeAuth/helpers/index.js +1 -1
- package/services/transactions/clearTransactions.js +1 -1
- package/services/transactions/getBatchTransactionsStatus.js +1 -1
- package/services/transactions/getTransactionsDetails.js +1 -1
- package/services/transactions/index.js +1 -1
- package/services/transactions/sendBatchTransactions.js +1 -1
- package/services/transactions/sendBatchTransactions.test.js +1 -1
- package/services/transactions/sendTransactions.js +1 -1
- package/services/transactions/transformAndSignTransactions.js +1 -1
- package/services/transactions/utils/transformTransactionsToSign.js +1 -1
- package/utils/account/getAccount.js +1 -1
- package/utils/account/getAccountBalance.js +1 -1
- package/utils/account/getAccountShard.js +1 -1
- package/utils/account/getAddress.js +1 -1
- package/utils/account/getLatestNonce.js +1 -1
- package/utils/account/index.js +1 -1
- package/utils/account/refreshAccount.js +1 -1
- package/utils/account/signMessage.js +1 -1
- package/utils/getIsLoggedIn.js +1 -1
- package/utils/index.js +1 -1
- package/utils/logout.js +1 -1
- package/utils/network/getChainID.js +1 -1
- package/utils/network/getEgldLabel.js +1 -1
- package/utils/network/getNetworkConfig.js +1 -1
- package/utils/network/index.js +1 -1
- package/utils/transactions/batch/updateBatchTransactionsStatuses.js +1 -1
- package/utils/transactions/builtCallbackUrl.js +1 -1
- package/utils/transactions/getAllTransactionsLink.js +1 -1
- package/utils/transactions/getTransactionLink.js +1 -1
- package/utils/transactions/index.js +1 -1
- package/web/hooks/index.js +1 -1
- package/web/hooks/useIdleTimer.js +1 -1
- package/web/index.js +1 -1
- package/wrappers/AppInitializer.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/index.js +1 -1
- package/wrappers/DappProvider/CustomComponents.js +1 -1
- package/wrappers/DappProvider/DappProvider.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-7R6VF7O6.js +0 -2
- package/__chunks__/chunk-AJGCCMWE.js +0 -2
- package/__chunks__/chunk-DM7W6JGB.js +0 -2
- package/__chunks__/chunk-K253742N.js +0 -2
- package/__chunks__/chunk-MWRXSTYH.js +0 -2
- package/__chunks__/chunk-SPSB4WCN.js +0 -2
- package/__chunks__/chunk-TKGDBAMS.js +0 -2
- package/__chunks__/chunk-WAH47EJS.js +0 -2
- package/__chunks__/chunk-WFSD3HOZ.js +0 -2
- package/__chunks__/chunk-WTIMN5AE.js +0 -2
- package/__chunks__/chunk-YONP57XW.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ns=Object.create;var Le=Object.defineProperty,os=Object.defineProperties,is=Object.getOwnPropertyDescriptor,ss=Object.getOwnPropertyDescriptors,as=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols,cs=Object.getPrototypeOf,Ft=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable;var Mr=(e,t,r)=>t in e?Le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))Ft.call(t,r)&&Mr(e,r,t[r]);if(He)for(var r of He(t))Fr.call(t,r)&&Mr(e,r,t[r]);return e},w=(e,t)=>os(e,ss(t));var Br=(e,t)=>{var r={};for(var o in e)Ft.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&He)for(var o of He(e))t.indexOf(o)<0&&Fr.call(e,o)&&(r[o]=e[o]);return r};var h=(e,t)=>()=>(e&&(t=e(e=0)),t);var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ae=(e,t)=>{for(var r in t)Le(e,r,{get:t[r],enumerable:!0})},Ur=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of as(t))!Ft.call(e,i)&&i!==r&&Le(e,i,{get:()=>t[i],enumerable:!(o=is(t,i))||o.enumerable});return e};var S=(e,t,r)=>(r=e!=null?ns(cs(e)):{},Ur(t||!e||!e.__esModule?Le(r,"default",{value:e,enumerable:!0}):r,e)),Ne=e=>Ur(Le({},"__esModule",{value:!0}),e);var N=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(T){i(T)}},p=m=>{try{d(r.throw(m))}catch(T){i(T)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var Gr=O(qe=>{"use strict";n();qe.byteLength=ps;qe.toByteArray=ds;qe.fromByteArray=fs;var q=[],F=[],ls=typeof Uint8Array!="undefined"?Uint8Array:Array,Bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ce=0,Vr=Bt.length;ce<Vr;++ce)q[ce]=Bt[ce],F[Bt.charCodeAt(ce)]=ce;var ce,Vr;F["-".charCodeAt(0)]=62;F["_".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 o=r===t?0:4-r%4;return[r,o]}function ps(e){var t=Wr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function us(e,t,r){return(t+r)*3/4-r}function ds(e){var t,r=Wr(e),o=r[0],i=r[1],l=new ls(us(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=F[e.charCodeAt(m)]<<18|F[e.charCodeAt(m+1)]<<12|F[e.charCodeAt(m+2)]<<6|F[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=F[e.charCodeAt(m)]<<2|F[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=F[e.charCodeAt(m)]<<10|F[e.charCodeAt(m+1)]<<4|F[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function ms(e){return q[e>>18&63]+q[e>>12&63]+q[e>>6&63]+q[e&63]}function gs(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(ms(o));return i.join("")}function fs(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(gs(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(q[t>>2]+q[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(q[t>>10]+q[t>>4&63]+q[t<<2&63]+"=")),i.join("")}});var $r=O(Ut=>{n();Ut.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,T=m>>1,x=-7,y=r?i-1:0,A=r?-1:1,I=e[t+y];for(y+=A,l=I&(1<<-x)-1,I>>=-x,x+=d;x>0;l=l*256+e[t+y],y+=A,x-=8);for(p=l&(1<<-x)-1,l>>=-x,x+=o;x>0;p=p*256+e[t+y],y+=A,x-=8);if(l===0)l=1-T;else{if(l===m)return p?NaN:(I?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-T}return(I?-1:1)*p*Math.pow(2,l-o)};Ut.write=function(e,t,r,o,i,l){var p,d,m,T=l*8-i-1,x=(1<<T)-1,y=x>>1,A=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=o?0:l-1,v=o?1:-1,L=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,p=x):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+y>=1?t+=A/m:t+=A*Math.pow(2,1-y),t*m>=2&&(p++,m/=2),p+y>=x?(d=0,p=x):p+y>=1?(d=(t*m-1)*Math.pow(2,i),p=p+y):(d=t*Math.pow(2,y-1)*Math.pow(2,i),p=0));i>=8;e[r+I]=d&255,I+=v,d/=256,i-=8);for(p=p<<i|d,T+=i;T>0;e[r+I]=p&255,I+=v,p/=256,T-=8);e[r+I-v]|=L*128}});var rn=O(xe=>{"use strict";n();var Vt=Gr(),he=$r(),Hr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;xe.Buffer=u;xe.SlowBuffer=ws;xe.INSPECT_MAX_BYTES=50;var je=2147483647;xe.kMaxLength=je;u.TYPED_ARRAY_SUPPORT=Ts();!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 Ts(){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 Q(e){if(e>je)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 Ht(e)}return zr(e,t,r)}u.poolSize=8192;function zr(e,t,r){if(typeof e=="string")return hs(e,t);if(ArrayBuffer.isView(e))return xs(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(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return Gt(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=Ss(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 zr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Kr(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 ys(e,t,r){return Kr(e),e<=0?Q(e):t!==void 0?typeof r=="string"?Q(e).fill(t,r):Q(e).fill(t):Q(e)}u.alloc=function(e,t,r){return ys(e,t,r)};function Ht(e){return Kr(e),Q(e<0?0:qt(e)|0)}u.allocUnsafe=function(e){return Ht(e)};u.allocUnsafeSlow=function(e){return Ht(e)};function hs(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Yr(e,t)|0,o=Q(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Wt(e){for(var t=e.length<0?0:qt(e.length)|0,r=Q(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function xs(e){if(j(e,Uint8Array)){var t=new Uint8Array(e);return Gt(t.buffer,t.byteOffset,t.byteLength)}return Wt(e)}function Gt(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function Ss(e){if(u.isBuffer(e)){var t=qt(e.length)|0,r=Q(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||jt(e.length)?Q(0):Wt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Wt(e.data)}function qt(e){if(e>=je)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+je.toString(16)+" bytes");return e|0}function ws(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(j(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),j(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 o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?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 o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(j(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 Yr(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return $t(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return tn(e).length;default:if(i)return o?-1:$t(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=Yr;function As(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ps(this,t,r);case"utf8":case"utf-8":return Zr(this,t,r);case"ascii":return Rs(this,t,r);case"latin1":case"binary":return Cs(this,t,r);case"base64":return Ls(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ds(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function le(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}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)le(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)le(this,r,r+3),le(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)le(this,r,r+7),le(this,r+1,r+6),le(this,r+2,r+5),le(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Zr(this,0,t):As.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=xe.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Hr&&(u.prototype[Hr]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(j(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),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,d=o-r,m=Math.min(p,d),T=this.slice(i,l),x=t.slice(r,o),y=0;y<m;++y)if(T[y]!==x[y]){p=T[y],d=x[y];break}return p<d?-1:d<p?1:0};function Xr(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,jt(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,o)),u.isBuffer(t))return t.length===0?-1:qr(e,t,r,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):qr(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function qr(e,t,r,o,i){var l=1,p=e.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,d/=2,r/=2}function m(I,v){return l===1?I[v]:I.readUInt16BE(v*l)}var T;if(i){var x=-1;for(T=r;T<p;T++)if(m(e,T)===m(t,x===-1?0:T-x)){if(x===-1&&(x=T),T-x+1===d)return x*l}else x!==-1&&(T-=T-x),x=-1}else for(r+d>p&&(r=p-d),T=r;T>=0;T--){for(var y=!0,A=0;A<d;A++)if(m(e,T+A)!==m(t,A)){y=!1;break}if(y)return T}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return Xr(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return Xr(this,t,r,o,!1)};function bs(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var d=parseInt(t.substr(p*2,2),16);if(jt(d))return p;e[r+p]=d}return p}function vs(e,t,r,o){return ze($t(t,e.length-r),e,r,o)}function Is(e,t,r,o){return ze(Ms(t),e,r,o)}function ks(e,t,r,o){return ze(tn(t),e,r,o)}function Es(e,t,r,o){return ze(Fs(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<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 bs(this,t,r,o);case"utf8":case"utf-8":return vs(this,t,r,o);case"ascii":case"latin1":case"binary":return Is(this,t,r,o);case"base64":return ks(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Es(this,t,r,o);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 Ls(e,t,r){return t===0&&r===e.length?Vt.fromByteArray(e):Vt.fromByteArray(e.slice(t,r))}function Zr(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,T,x,y;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(y=(l&31)<<6|m&63,y>127&&(p=y));break;case 3:m=e[i+1],T=e[i+2],(m&192)===128&&(T&192)===128&&(y=(l&15)<<12|(m&63)<<6|T&63,y>2047&&(y<55296||y>57343)&&(p=y));break;case 4:m=e[i+1],T=e[i+2],x=e[i+3],(m&192)===128&&(T&192)===128&&(x&192)===128&&(y=(l&15)<<18|(m&63)<<12|(T&63)<<6|x&63,y>65535&&y<1114112&&(p=y))}}p===null?(p=65533,d=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=d}return Ns(o)}var jr=4096;function Ns(e){var t=e.length;if(t<=jr)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=jr));return r}function Rs(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function Cs(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function Ps(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=Bs[e[l]];return i}function Ds(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function R(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,o){t=t>>>0,r=r>>>0,o||R(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,o){t=t>>>0,r=r>>>0,o||R(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||R(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||R(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||R(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||R(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||R(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(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,o){t=t>>>0,r=r>>>0,o||R(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||R(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||R(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||R(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||R(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||R(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||R(t,4,this.length),he.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||R(t,4,this.length),he.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||R(t,8,this.length),he.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||R(t,8,this.length),he.read(this,t,!1,52,8)};function P(e,t,r,o,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+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;P(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;P(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||P(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||P(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,o){return t=+t,r=r>>>0,o||P(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,o){return t=+t,r=r>>>0,o||P(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,o){return t=+t,r=r>>>0,o||P(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,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);P(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);P(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||P(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||P(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||P(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||P(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,o){return t=+t,r=r>>>0,o||P(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 Jr(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Qr(e,t,r,o,i){return t=+t,r=r>>>0,i||Jr(e,t,r,4,34028234663852886e22,-34028234663852886e22),he.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return Qr(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return Qr(this,t,r,!1,o)};function en(e,t,r,o,i){return t=+t,r=r>>>0,i||Jr(e,t,r,8,17976931348623157e292,-17976931348623157e292),he.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return en(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return en(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!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<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var _s=/[^+/0-9A-Za-z-_]/g;function Os(e){if(e=e.split("=")[0],e=e.trim().replace(_s,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function $t(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++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===o){(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 Ms(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Fs(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function tn(e){return Vt.toByteArray(Os(e))}function ze(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function j(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function jt(e){return e!==e}var Bs=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var cn=O((Al,an)=>{n();var k=an.exports={},z,K;function zt(){throw new Error("setTimeout has not been defined")}function Kt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?z=setTimeout:z=zt}catch(e){z=zt}try{typeof clearTimeout=="function"?K=clearTimeout:K=Kt}catch(e){K=Kt}})();function nn(e){if(z===setTimeout)return setTimeout(e,0);if((z===zt||!z)&&setTimeout)return z=setTimeout,setTimeout(e,0);try{return z(e,0)}catch(t){try{return z.call(null,e,0)}catch(r){return z.call(this,e,0)}}}function Us(e){if(K===clearTimeout)return clearTimeout(e);if((K===Kt||!K)&&clearTimeout)return K=clearTimeout,clearTimeout(e);try{return K(e)}catch(t){try{return K.call(null,e)}catch(r){return K.call(this,e)}}}var ee=[],Se=!1,pe,Ke=-1;function Vs(){!Se||!pe||(Se=!1,pe.length?ee=pe.concat(ee):Ke=-1,ee.length&&on())}function on(){if(!Se){var e=nn(Vs);Se=!0;for(var t=ee.length;t;){for(pe=ee,ee=[];++Ke<t;)pe&&pe[Ke].run();Ke=-1,t=ee.length}pe=null,Se=!1,Us(e)}}k.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];ee.push(new sn(e,t)),ee.length===1&&!Se&&nn(on)};function sn(e,t){this.fun=e,this.array=t}sn.prototype.run=function(){this.fun.apply(null,this.array)};k.title="browser";k.browser=!0;k.env={};k.argv=[];k.version="";k.versions={};function te(){}k.on=te;k.addListener=te;k.once=te;k.off=te;k.removeListener=te;k.removeAllListeners=te;k.emit=te;k.prependListener=te;k.prependOnceListener=te;k.listeners=function(e){return[]};k.binding=function(e){throw new Error("process.binding is not supported")};k.cwd=function(){return"/"};k.chdir=function(e){throw new Error("process.chdir is not supported")};k.umask=function(){return 0}});var s,c,Ws,a,n=h(()=>{s=S(rn()),c=S(cn()),Ws=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object),a=Ws});var ln,Yt=h(()=>{"use strict";n();ln="Action not allowed. User is logged in. Call logout() first"});var pn=h(()=>{"use strict";n()});var un=h(()=>{"use strict";n()});var Xt,dn=h(()=>{"use strict";n();Xt=(o=>(o.SetGuardian="SetGuardian",o.GuardAccount="GuardAccount",o.UnGuardAccount="UnGuardAccount",o))(Xt||{})});var mn=h(()=>{"use strict";n()});var Zt=h(()=>{"use strict";n()});var gn=h(()=>{"use strict";n()});var fn=h(()=>{"use strict";n()});var Tn=h(()=>{"use strict";n()});var yn=h(()=>{"use strict";n()});var Ye,hn,Pl,xn,Dl,V=h(()=>{"use strict";n();Ye=require("@multiversx/sdk-web-wallet-cross-window-provider/out/types"),hn=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(hn||{}),Pl=g(g({},Ye.CrossWindowProviderRequestEnums),hn),xn=(t=>(t.reloginResponse="RELOGIN_RESPONSE",t))(xn||{}),Dl=g(g({},Ye.CrossWindowProviderResponseEnums),xn)});var Sn=h(()=>{"use strict";n()});var wn=h(()=>{"use strict";n()});var D=h(()=>{"use strict";n()});var An=h(()=>{"use strict";n()});var bn=h(()=>{"use strict";n()});var vn=h(()=>{"use strict";n()});var W=h(()=>{"use strict";n();fn();Tn();yn();V();Sn();wn();D();An();bn();vn()});var Jt,In,Xl,kn,Zl,En,Jl,Ql,ep,Ln=h(()=>{"use strict";n();W();Jt={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",xAliasAddress:"https://devnet.xalias.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",xAliasAddress:"https://testnet.xalias.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",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:In,egldLabel:Xl}=Jt["devnet"],{chainId:kn,egldLabel:Zl}=Jt["testnet"],{chainId:En,egldLabel:Jl}=Jt["mainnet"],Ql={["devnet"]:In,["testnet"]:kn,["mainnet"]:En},ep={[In]:"devnet",[kn]:"testnet",[En]:"mainnet"}});var Nn=h(()=>{"use strict";n()});var Y,Rn=h(()=>{"use strict";n();Y=require("@multiversx/sdk-web-wallet-provider")});var Qt,er,Cn,Xe,Pn,we,b=h(()=>{"use strict";n();pn();Yt();un();dn();mn();Zt();gn();Ln();Nn();Rn();Qt=5e4,er=1e9,Cn=1,Xe="logout",Pn="login",we="0"});var tr,E,Ae,B=h(()=>{"use strict";n();tr=require("@reduxjs/toolkit");b();E=(0,tr.createAction)(Xe),Ae=(0,tr.createAction)(Pn,e=>({payload:e}))});var be,Je=h(()=>{"use strict";n();be=()=>Date.now()/1e3});var Mn=h(()=>{"use strict";n()});var Fn=h(()=>{"use strict";n()});var Bn=h(()=>{"use strict";n();Je();Mn();Fn()});var rr={};ae(rr,{clear:()=>Zs,getItem:()=>Ys,localStorageKeys:()=>ue,removeItem:()=>Xs,setItem:()=>Ks});var ue,Qe,Ks,Ys,Xs,Zs,Re=h(()=>{"use strict";n();Bn();ue={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Qe=typeof localStorage!="undefined",Ks=({key:e,data:t,expires:r})=>{!Qe||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Ys=e=>{if(!Qe)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:be()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Xs=e=>{!Qe||localStorage.removeItem(String(e))},Zs=()=>{!Qe||localStorage.clear()}});var nr={};ae(nr,{clear:()=>Gn,getItem:()=>Vn,removeItem:()=>Wn,setItem:()=>Un,storage:()=>Js});var Un,Vn,Wn,Gn,Js,$n=h(()=>{"use strict";n();Un=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Vn=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},Wn=e=>sessionStorage.removeItem(String(e)),Gn=()=>sessionStorage.clear(),Js={setItem:Un,getItem:Vn,removeItem:Wn,clear:Gn}});var ve,et=h(()=>{"use strict";n();Re();$n();ve={session:nr,local:rr}});var ir,Hn,qn,tt,or,jn,zn,zp,Kn,Kp,Yp,Xp,Zp,Jp,Qp,eu,tu,rt,nt=h(()=>{"use strict";n();ir=require("@multiversx/sdk-core"),Hn=require("@reduxjs/toolkit"),qn=require("redux-persist");b();et();Re();B();tt={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:we},or={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":tt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},jn=(0,Hn.createSlice)({name:"accountInfoSlice",initialState:or,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new ir.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:tt},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}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(E,()=>(ve.local.removeItem(ue.loginExpiresAt),or)),e.addCase(Ae,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new ir.Address(o).hex()}),e.addCase(qn.REHYDRATE,(t,r)=>{var T;if(!((T=r.payload)!=null&&T.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let m=p&&i in p;t.accounts=m?p:or.accounts,t.publicKey=d})}}),{setAccount:zn,setAddress:zp,setAccountNonce:Kn,setAccountShard:Kp,setLedgerAccount:Yp,updateLedgerAccount:Xp,setWalletConnectAccount:Zp,setIsAccountLoading:Jp,setAccountLoadingError:Qp,setWebsocketEvent:eu,setWebsocketBatchEvent:tu}=jn.actions,rt=jn.reducer});function Ce(){return new Date().setHours(new Date().getHours()+24)}function Pe(e){ve.local.setItem({key:ue.loginExpiresAt,data:e,expires:e})}var sr=h(()=>{"use strict";n();et();Re()});var Xn,Yn,Zn,uu,du,mu,ot,gu,fu,Jn,Tu,it,st=h(()=>{"use strict";n();Xn=require("@reduxjs/toolkit");sr();V();B();Yn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Zn=(0,Xn.createSlice)({name:"loginInfoSlice",initialState:Yn,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(E,()=>Yn),e.addCase(Ae,(t,r)=>{t.isLoginSessionInvalid=!1,t.loginMethod=r.payload.loginMethod,Pe(Ce())})}}),{setLoginMethod:uu,setWalletConnectLogin:du,setLedgerLogin:mu,setTokenLogin:ot,setTokenLoginSignature:gu,setWalletLogin:fu,invalidateLoginSession:Jn,setLogoutRoute:Tu}=Zn.actions,it=Zn.reducer});var eo,Qn,to,Su,wu,Au,bu,at,ct=h(()=>{"use strict";n();eo=require("@reduxjs/toolkit");B();Qn={},to=(0,eo.createSlice)({name:"modalsSlice",initialState:Qn,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(E,()=>Qn)}}),{setTxSubmittedModal:Su,setNotificationModal:wu,clearTxSubmittedModal:Au,clearNotificationModal:bu}=to.actions,at=to.reducer});var Qs,ro,no=h(()=>{"use strict";n();Qs=!1,ro=({timeout:e=0,url:t})=>{Qs||setTimeout(()=>{if(!!window)return window.location.assign(t)},e)}});function oo({callbackRoute:e,onLoginRedirect:t,options:r}){let o=Boolean(e),i=typeof t=="function";if(o&&e!=null){if(i)return t(e,r);ro({url:e,timeout:ea})}}var ea,io=h(()=>{"use strict";n();no();ea=200});function so(e){return e[Math.floor(Math.random()*e.length)]}var ao=h(()=>{"use strict";n()});var co=h(()=>{"use strict";n();Zt()});var ar=h(()=>{"use strict";n();io();ao();co()});var lo,po,uo,cr,ta,mo,Uu,Vu,Wu,lt,pt=h(()=>{"use strict";n();lo=require("@reduxjs/toolkit"),po=S(require("lodash.omit")),uo=require("redux-persist");B();ar();cr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},ta={network:cr,chainID:"-1"},mo=(0,lo.createSlice)({name:"appConfig",initialState:ta,reducers:{initializeNetworkConfig:(e,t)=>{let r=so(t.payload.walletConnectV2RelayAddresses),o=(0,po.default)(t.payload,"walletConnectV2RelayAddresses");e.network=w(g(g({},e.network),o),{walletConnectV2RelayAddress:r})},setChainID:(e,t)=>{e.chainID=t.payload},setCustomWalletAddress:(e,t)=>{e.network.customWalletAddress=t.payload}},extraReducers:e=>{e.addCase(E,t=>{t.network.customWalletAddress=void 0}),e.addCase(uo.REHYDRATE,(t,r)=>{var i,l;if(!((l=(i=r.payload)==null?void 0:i.network)!=null&&l.customWalletAddress))return;let{network:{customWalletAddress:o}}=r.payload;t.network.customWalletAddress=o})}}),{initializeNetworkConfig:Uu,setChainID:Vu,setCustomWalletAddress:Wu}=mo.actions,lt=mo.reducer});var go,lr,fo,zu,Ku,Yu,ut,dt=h(()=>{"use strict";n();go=require("@reduxjs/toolkit");W();B();lr={isSigning:!1,signedSessions:{}},fo=(0,go.createSlice)({name:"signedMessageInfoSliceState",initialState:lr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=g(g({},e.signedSessions[r]),o)},setSignSessionState:(e,t)=>g(g({},e),t.payload),clearSignedMessageInfo:()=>lr},extraReducers:e=>{e.addCase(E,()=>lr)}}),{setSignSession:zu,clearSignedMessageInfo:Ku,setSignSessionState:Yu}=fo.actions,ut=fo.reducer});var yo,ho,To,xo,rd,nd,od,id,mt,gt=h(()=>{"use strict";n();yo=require("@reduxjs/toolkit"),ho=require("redux-persist");W();Je();B();To={customToasts:[],transactionToasts:[]},xo=(0,yo.createSlice)({name:"toastsSlice",initialState:To,reducers:{addCustomToast:(e,t)=>{let r=t.payload.toastId||`custom-toast-${e.customToasts.length+1}`,o=e.customToasts.findIndex(i=>i.toastId===r);if(o!==-1){e.customToasts[o]=w(g(g({},e.customToasts[o]),t.payload),{type:"custom",toastId:r});return}e.customToasts.push(w(g({},t.payload),{type:"custom",toastId:r}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:be(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)}},extraReducers:e=>{e.addCase(E,()=>To),e.addCase(ho.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:rd,removeCustomToast:nd,addTransactionToast:od,removeTransactionToast:id}=xo.actions,mt=xo.reducer});var So,ur,dr,mr,ra,pr,wo,ld,pd,ud,ft,Tt=h(()=>{"use strict";n();So=require("@reduxjs/toolkit");B();ur="Transaction failed",dr="Transaction successful",mr="Processing transaction",ra="Transaction submitted",pr={},wo=(0,So.createSlice)({name:"transactionsInfo",initialState:pr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||ur,successMessage:(o==null?void 0:o.successMessage)||dr,processingMessage:(o==null?void 0:o.processingMessage)||mr,submittedMessage:(o==null?void 0:o.submittedMessage)||ra,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>pr},extraReducers:e=>{e.addCase(E,()=>pr)}}),{clearTransactionsInfo:ld,setTransactionsDisplayInfo:pd,clearTransactionsInfoForSessionId:ud}=wo.actions,ft=wo.reducer});function Ao(e){return e!=null&&(ma(e)||ha(e))}function yt(e){return e!=null&&(ga(e)||xa(e))}function ht(e){return e!=null&&(fa(e)||Sa(e))}function bo(e){return e!=null&&(Ta(e)||wa(e))}function vo(e){return e!=null&&ya(e)}function ma(e){return e!=null&&oa.includes(e)}function ga(e){return e!=null&&ia.includes(e)}function fa(e){return e!=null&&sa.includes(e)}function Ta(e){return e!=null&&aa.includes(e)}function ya(e){return e!=null&&ca.includes(e)}function ha(e){return e!=null&&la.includes(e)}function xa(e){return e!=null&&pa.includes(e)}function Sa(e){return e!=null&&ua.includes(e)}function wa(e){return e!=null&&da.includes(e)}var oa,ia,sa,aa,ca,la,pa,ua,da,fr=h(()=>{"use strict";n();V();oa=["sent"],ia=["success"],sa=["fail","cancelled","timedOut"],aa=["invalid"],ca=["timedOut"],la=["pending"],pa=["success"],ua=["fail","invalid"],da=["not executed"]});var Io,ko,De,Aa,Eo,Sd,wd,Ad,bd,vd,Id,kd,Ed,Ld,Nd,Rd,xt,St=h(()=>{"use strict";n();Io=require("@reduxjs/toolkit"),ko=require("redux-persist");V();fr();B();De={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Aa={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Eo=(0,Io.createSlice)({name:"transactionsSlice",initialState:De,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,T;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p,customTransactionInformation:d}=t.payload;e.customTransactionInformationForSessionId[r]=g(g(g({},Aa),((m=e.signedTransactions[r])==null?void 0:m.customTransactionInformation)||{}),e.customTransactionInformationForSessionId[r]||{}),e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:g(g({},e.customTransactionInformationForSessionId[r]),d!=null?d:{})},((T=e==null?void 0:e.transactionsToSign)==null?void 0:T.sessionId)===r&&(e.transactionsToSign=De.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=g(g({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var m,T,x,y,A,I,v,L;let{sessionId:r,status:o,errorMessage:i,transactionHash:l,inTransit:p}=t.payload,d=(T=(m=e.signedTransactions)==null?void 0:m[r])==null?void 0:T.transactions;if(d!=null){e.signedTransactions[r].transactions=d.map(C=>C.hash===l?w(g({},C),{status:o,errorMessage:i,inTransit:p}):C);let M=(y=(x=e.signedTransactions[r])==null?void 0:x.transactions)==null?void 0:y.every(C=>yt(C.status)),se=(I=(A=e.signedTransactions[r])==null?void 0:A.transactions)==null?void 0:I.every(C=>ht(C.status)),H=(L=(v=e.signedTransactions[r])==null?void 0:v.transactions)==null?void 0:L.every(C=>bo(C.status));M&&(e.signedTransactions[r].status="success"),se&&(e.signedTransactions[r].status="fail"),H&&(e.signedTransactions[r].status="invalid")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=De.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=De.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload},updateSignedTransactionsCustomTransactionInformation:(e,t)=>{let{sessionId:r,customTransactionInformationOverrides:o}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].customTransactionInformation=g(g({},e.signedTransactions[r].customTransactionInformation),o))}},extraReducers:e=>{e.addCase(E,()=>De),e.addCase(ko.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((d,[m,T])=>{let x=new Date(m),y=new Date;return y.setHours(y.getHours()+5),y-x>0||(d[m]=T),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Sd,updateSignedTransactions:wd,setTransactionsToSign:Ad,clearAllTransactionsToSign:bd,clearAllSignedTransactions:vd,clearSignedTransaction:Id,clearTransactionToSign:kd,setSignTransactionsError:Ed,setSignTransactionsCancelMessage:Ld,moveTransactionsToSignedState:Nd,updateSignedTransactionsCustomTransactionInformation:Rd}=Eo.actions,xt=Eo.reducer});var Lo,Tr,No,_d,Od,Md,Fd,wt,At=h(()=>{"use strict";n();Lo=require("@reduxjs/toolkit");B();Tr={},No=(0,Lo.createSlice)({name:"batchTransactionsSlice",initialState:Tr,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>Tr},extraReducers:e=>{e.addCase(E,()=>Tr)}}),{setBatchTransactions:_d,updateBatchTransactions:Od,clearBatchTransactions:Md,clearAllBatchTransactions:Fd}=No.actions,wt=No.reducer});var Co,Ro,Po,Wd,Do,yr=h(()=>{"use strict";n();Co=require("@reduxjs/toolkit");B();Ro={},Po=(0,Co.createSlice)({name:"dappConfigSlice",initialState:Ro,reducers:{setDappConfig:(e,t)=>t.payload},extraReducers:e=>{e.addCase(E,()=>Ro)}}),{setDappConfig:Wd}=Po.actions,Do=Po.reducer});var de=h(()=>{"use strict";n();nt();st();ct();pt();dt();gt();Tt();St();At();yr()});var hr=h(()=>{"use strict";n()});var Mo,ka,Ea,me,It=h(()=>{"use strict";n();Mo=require("@reduxjs/toolkit");hr();nt();At();yr();st();ct();pt();dt();gt();Tt();St();ka={["account"]:rt,["dappConfig"]:Do,["loginInfo"]:it,["modals"]:at,["networkConfig"]:lt,["signedMessageInfo"]:ut,["toasts"]:mt,["transactionsInfo"]:ft,["transactions"]:xt,["batchTransactions"]:wt},Ea=(e={})=>(0,Mo.combineReducers)(g(g({},ka),e)),me=Ea});var Vo={};ae(Vo,{default:()=>$a,sessionStorageReducers:()=>xr});function ne(e,t=[]){return{key:e,version:1,storage:Bo.default,blacklist:t}}var _,Fo,Bo,La,_e,Na,Ra,Ca,Pa,Da,_a,Oa,Ma,Fa,Ba,Uo,Ua,xr,Va,Wa,Ga,$a,Wo=h(()=>{"use strict";n();_=require("redux-persist"),Fo=S(require("redux-persist/lib/storage")),Bo=S(require("redux-persist/lib/storage/session"));It();de();nt();At();st();ct();pt();dt();gt();Tt();St();hr();La={persistReducersStorageType:"localStorage"},_e={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Na=ne(_e["account"]),Ra=ne(_e["loginInfo"]),Ca=ne(_e["modals"]),Pa=ne(_e["networkConfig"]),Da={2:e=>w(g({},e),{networkConfig:cr})};_a=ne("sdk-dapp-transactionsInfo"),Oa=ne("sdk-dapp-transactions",["transactionsToSign"]),Ma=ne("sdk-dapp-batchTransactions",["batchTransactions"]),Fa=ne("sdk-dapp-toasts"),Ba=ne("sdk-dapp-signedMessageInfo"),Uo={key:"sdk-dapp-store",version:2,storage:Fo.default,whitelist:Object.keys(_e),migrate:(0,_.createMigrate)(Da,{debug:!1})},Ua=w(g({},Uo),{whitelist:[]}),xr={["toasts"]:(0,_.persistReducer)(Fa,mt),["transactions"]:(0,_.persistReducer)(Oa,xt),["transactionsInfo"]:(0,_.persistReducer)(_a,ft),["batchTransactions"]:(0,_.persistReducer)(Ma,wt),["signedMessageInfo"]:(0,_.persistReducer)(Ba,ut)},Va=w(g({},xr),{["account"]:(0,_.persistReducer)(Na,rt),["loginInfo"]:(0,_.persistReducer)(Ra,it),["modals"]:(0,_.persistReducer)(Ca,at),["networkConfig"]:(0,_.persistReducer)(Pa,lt)}),Wa=La.persistReducersStorageType==="localStorage",Ga=Wa?(0,_.persistReducer)(Uo,me(xr)):(0,_.persistReducer)(Ua,me(Va)),$a=Ga});var Go={};ae(Go,{default:()=>Ha});var Ha,$o=h(()=>{"use strict";n();It();Ha=me()});var Ho={};ae(Ho,{default:()=>ja});var U,qa,ja,qo=h(()=>{"use strict";n();U=require("redux-persist"),qa=[U.FLUSH,U.REHYDRATE,U.PAUSE,U.PERSIST,U.PURGE,U.REGISTER],ja=qa});var Ko={};ae(Ko,{default:()=>zo});function zo(e){return(0,jo.persistStore)(e)}var jo,Yo=h(()=>{"use strict";n();jo=require("redux-persist")});var Ni=O((xb,Li)=>{n();var Hc=typeof a=="object"&&a&&a.Object===Object&&a;Li.exports=Hc});var Ci=O((Sb,Ri)=>{n();var qc=Ni(),jc=typeof self=="object"&&self&&self.Object===Object&&self,zc=qc||jc||Function("return this")();Ri.exports=zc});var Pr=O((wb,Pi)=>{n();var Kc=Ci(),Yc=Kc.Symbol;Pi.exports=Yc});var Mi=O((Ab,Oi)=>{n();var Di=Pr(),_i=Object.prototype,Xc=_i.hasOwnProperty,Zc=_i.toString,We=Di?Di.toStringTag:void 0;function Jc(e){var t=Xc.call(e,We),r=e[We];try{e[We]=void 0;var o=!0}catch(l){}var i=Zc.call(e);return o&&(t?e[We]=r:delete e[We]),i}Oi.exports=Jc});var Bi=O((bb,Fi)=>{n();var Qc=Object.prototype,el=Qc.toString;function tl(e){return el.call(e)}Fi.exports=tl});var Gi=O((vb,Wi)=>{n();var Ui=Pr(),rl=Mi(),nl=Bi(),ol="[object Null]",il="[object Undefined]",Vi=Ui?Ui.toStringTag:void 0;function sl(e){return e==null?e===void 0?il:ol:Vi&&Vi in Object(e)?rl(e):nl(e)}Wi.exports=sl});var Hi=O((Ib,$i)=>{n();var al=Array.isArray;$i.exports=al});var ji=O((kb,qi)=>{n();function cl(e){return e!=null&&typeof e=="object"}qi.exports=cl});var Ki=O((Eb,zi)=>{n();var ll=Gi(),pl=Hi(),ul=ji(),dl="[object String]";function ml(e){return typeof e=="string"||!pl(e)&&ul(e)&&ll(e)==dl}zi.exports=ml});var yl={};ae(yl,{useExtensionLogin:()=>Tl});module.exports=Ne(yl);n();var Or=require("react"),rs=require("@multiversx/sdk-extension-provider");Yt();n();n();var $s=require("@multiversx/sdk-extension-provider"),Hs=require("@multiversx/sdk-hw-provider"),qs=require("@multiversx/sdk-opera-provider"),js=require("@multiversx/sdk-web-wallet-provider");b();V();n();n();var re=e=>`Unable to perform ${e}, Provider not initialized`,Ze=class{init(){return Promise.resolve(!1)}login(t){throw new Error(re(`login with options: ${t}`))}logout(t){throw new Error(re(`logout with options: ${t}`))}getAddress(){throw new Error(re("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(re(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(re(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(re(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(re(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(re(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(re(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},_n=new Ze;var zs=_n;function On(e){zs=e}B();n();var ti=require("react"),Ie=require("react-redux");n();var Sr=require("@reduxjs/toolkit"),Qo=require("react-redux/lib/utils/Subscription");de();n();var _o=S(require("lodash.throttle"));b();de();sr();et();Re();var ba=[Xe],bt=!1,va=(0,_o.default)(()=>{Pe(Ce())},5e3),Oo=e=>t=>r=>{if(ba.includes(r.type))return t(r);let o=e.getState(),i=ve.local.getItem(ue.loginExpiresAt);if(!Boolean(o==null?void 0:o.account.address))return t(r);if(i==null)return Pe(Ce());let p=Date.now();return i-p<0&&!bt?setTimeout(()=>{bt=!0,e.dispatch(Jn())},1e3):(bt&&(bt=!1),va()),t(r)};n();n();function vt(){return typeof sessionStorage!="undefined"}var Xo=vt()?(Wo(),Ne(Vo)).default:($o(),Ne(Go)).default,Zo=vt()?(qo(),Ne(Ho)).default:[],Jo=vt()?(Yo(),Ne(Ko)).default:e=>e;It();var G=(0,Sr.configureStore)({reducer:Xo,middleware:e=>e({serializableCheck:{ignoredActions:[...Zo,Kn.type,zn.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Oo)}),ei=(0,Qo.createSubscription)(G),Um=Jo(G),Vm=(0,Sr.configureStore)({reducer:me});var za={store:G,subscription:ei},wr=(0,ti.createContext)(za),Hm=(0,Ie.createStoreHook)(wr),kt=(0,Ie.createDispatchHook)(wr),oe=(0,Ie.createSelectorHook)(wr);V();n();n();n();de();n();var ri=S(require("lodash.isequal")),Et=require("reselect"),f=(0,Et.createSelectorCreator)(Et.defaultMemoize,ri.default);var X=e=>e.account,Ar=f(X,e=>e.address),Oe=f(X,Ar,(e,t)=>t in e.accounts?e.accounts[t]:tt),Ka=f(X,Oe,(e,t)=>{let i=e,{accounts:r}=i,o=Br(i,["accounts"]);return w(g({},o),{account:t})}),Ym=f(Oe,e=>e.balance),Xm=f(Oe,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Zm=f(X,e=>e.shard),Jm=f(X,e=>e.ledgerAccount),Qm=f(X,e=>e.walletConnectAccount),eg=f(X,e=>e.isAccountLoading),tg=f(X,e=>e.accountLoadingError),Ya=f(X,e=>e.websocketEvent),rg=f(X,e=>e.websocketBatchEvent);n();var Xa=e=>e.dappConfig,ig=f(Xa,e=>e.shouldUseWebViewProvider);n();var $=e=>e.loginInfo,lg=f($,e=>e.loginMethod),br=f($,Ar,(e,t)=>Boolean(t)),pg=f($,e=>e.walletConnectLogin),ug=f($,e=>e.ledgerLogin),dg=f($,e=>e.walletLogin),mg=f($,e=>e.isLoginSessionInvalid),ni=f($,e=>e.tokenLogin),gg=f($,e=>e.logoutRoute);n();var oi=e=>e.modals,yg=f(oi,e=>e.txSubmittedModal),hg=f(oi,e=>e.notificationModal);n();var ge=e=>e.networkConfig,wg=f(ge,e=>e.chainID),Ag=f(ge,e=>e.network.walletConnectBridgeAddress),bg=f(ge,e=>e.network.walletConnectV2RelayAddress),vg=f(ge,e=>e.network.walletConnectV2ProjectId),Ig=f(ge,e=>e.network.walletConnectV2Options),kg=f(ge,e=>e.network.walletConnectDeepLink),fe=f(ge,e=>e.network),Za=f(fe,e=>e.apiAddress),ii=f(fe,e=>e.explorerAddress),Eg=f(fe,e=>{var t;return(t=e.customWalletAddress)!=null?t:e.walletAddress}),Lg=f(fe,e=>e.xAliasAddress),Ng=f(fe,e=>e.egldLabel);n();var Lt=e=>e.signedMessageInfo,Pg=f(Lt,e=>e.isSigning),Dg=f(Lt,e=>e.errorMessage),_g=f(Lt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),Og=f(Lt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var si=e=>e.toasts,Bg=f(si,e=>e.customToasts),Ug=f(si,e=>e.transactionToasts);n();de();var ai={errorMessage:ur,successMessage:dr,processingMessage:mr},Ja=e=>e.transactionsInfo,$g=f(Ja,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||ai);n();n();var Z=require("@multiversx/sdk-core");b();n();var vr=require("@multiversx/sdk-core/out");n();n();function Nt(e){try{let t=atob(e),r=btoa(t),o=s.Buffer.from(e,"base64").toString(),i=s.Buffer.from(o).toString("base64");if(e===r&&e===i||t===o)return!0}catch(t){return!1}return!1}function Te(e){return Nt(e)?atob(e):e}n();n();n();n();var ci=e=>{let t=e!=null?e:"";return Nt(t)?vr.TransactionPayload.fromEncoded(t):new vr.TransactionPayload(t)};n();b();var Rt=({data:e,onlySetGuardian:t})=>e?t?e.startsWith("SetGuardian"):Object.values(Xt).some(r=>e.startsWith(r)):!1;function Ir(e){var o,i,l;let t=Object.assign({},e);Rt({data:t.data,onlySetGuardian:!0})&&(delete t.senderUsername,delete t.receiverUsername);let r=new Z.Transaction(g(g(w(g(w(g({value:t.value.valueOf(),data:ci(t.data),nonce:t.nonce.valueOf(),receiver:new Z.Address(t.receiver)},t.receiverUsername?{receiverUsername:t.receiverUsername}:{}),{sender:new Z.Address(t.sender)}),t.senderUsername?{senderUsername:t.senderUsername}:{}),{gasLimit:(o=t.gasLimit.valueOf())!=null?o:Qt,gasPrice:(i=t.gasPrice.valueOf())!=null?i:er,chainID:t.chainID.valueOf(),version:new Z.TransactionVersion((l=t.version)!=null?l:Cn)}),t.options?{options:new Z.TransactionOptions(t.options)}:{}),t.guardian?{guardian:new Z.Address(t.guardian)}:{}));return t.guardianSignature&&r.applyGuardianSignature(s.Buffer.from(t.guardianSignature,"hex")),t.signature&&r.applySignature(s.Buffer.from(t.signature,"hex")),r}n();n();b();n();n();n();var rc=require("@multiversx/sdk-core/out");n();b();n();var pi=require("@multiversx/sdk-core");W();n();var nc=require("@multiversx/sdk-core");n();n();n();var oc=require("@multiversx/sdk-core"),ic=S(require("bignumber.js"));V();n();n();n();var kr="blocks";n();n();n();n();D();n();n();D();n();n();n();var dc=S(require("bignumber.js"));b();n();var uc=require("@multiversx/sdk-core"),Er=S(require("bignumber.js"));b();n();var lc=S(require("bignumber.js"));n();Er.default.config({ROUNDING_MODE:Er.default.ROUND_FLOOR});n();n();n();b();n();n();n();n();b();n();b();n();var mc=require("@multiversx/sdk-core");b();n();var Fe=require("@multiversx/sdk-core"),fc=S(require("bignumber.js"));b();n();n();var gc=S(require("bignumber.js"));b();n();b();n();n();n();n();n();n();b();n();b();n();b();n();D();var yc=["reDelegateRewards","claimRewards","unBond"],hc=["wrapEgld","unwrapEgld"],xc=["unStake"],Sc=["unDelegate"];n();n();n();b();n();var bc=S(require("bignumber.js"));n();n();D();n();var vc=S(require("bignumber.js"));n();n();n();n();var kc=S(require("bignumber.js"));W();n();n();n();n();V();n();var Nc=require("@multiversx/sdk-web-wallet-provider");b();n();var Lc=S(require("qs"));n();n();n();n();n();var Be=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined";var J=()=>{if(!Be())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:t,hash:r,origin:o,href:i,search:l}}=window;return{pathname:t,hash:r,origin:o,href:i,search:l}};var fi=(e="")=>{let t=J(),r=e.startsWith("http")||e.startsWith("www.");return!t.origin||e.startsWith(t.origin)||r?e:`${t.origin}/${e.replace("/","")}`};n();var Ti=()=>{let{pathname:e,search:t,hash:r}=J();return`${e!=null?e:""}${t!=null?t:""}${r!=null?r:""}`};n();var Fx={search:Be()?window.location.search:"",removeParams:[]};n();n();n();n();D();n();n();n();var Rc=S(require("linkifyjs"));n();b();n();var Cc=S(require("bignumber.js"));n();W();n();n();V();n();V();n();n();n();D();n();D();n();var Pc=S(require("bignumber.js"));b();D();n();D();n();var hi=require("react");W();n();n();D();n();n();var Dc=require("@multiversx/sdk-core/out"),_c=S(require("bignumber.js"));D();n();W();n();n();W();var Cw=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var xi=require("react");W();n();var Mc=require("react");D();var Uw=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];fr();var Dt=e=>e.transactions,Ue=f(Dt,e=>e.signedTransactions),kA=f(Dt,e=>e.signTransactionsError),EA=f(Dt,e=>e.signTransactionsCancelMessage),_t=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),LA=f(Ue,_t(Ao)),NA=f(Ue,_t(yt)),RA=f(Ue,_t(ht)),CA=f(Ue,_t(vo)),PA=f(Dt,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:w(g({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Ir(r)))||[]})}),DA=f(Ue,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function Si(){return br(G.getState())}ar();n();var es=require("react"),Mt=require("@multiversx/sdk-core");n();n();n();var Rr=()=>oe(Oe);n();n();n();n();n();var Ve=S(require("react"));var s0=(0,Ve.createContext)({}),a0=G.getState();n();var Ai=S(require("react"));n();var Cr=S(require("react")),Fc=S(require("axios"));n();n();n();n();var Uc=require("react"),Vc=S(require("swr"));n();var Bc=S(require("axios"));n();n();de();n();n();var Qi=require("@multiversx/sdk-native-auth-client");n();var ki=S(require("axios"));n();n();n();function bi(e){return N(this,null,function*(){return yield new Promise(t=>{setTimeout(()=>t(),e)})})}n();var vi=(e,t,r,o=0)=>N(void 0,null,function*(){try{return yield e(...r)}catch(i){return o<t.retries?((t==null?void 0:t.delay)!=null&&(yield bi(t.delay)),yield vi(e,t,r,o+1)):null}}),Ii=(e,t={retries:5,delay:500})=>(...r)=>N(void 0,null,function*(){return yield vi(e,t,r)});var Wc=4,Gc=3e4,Ot={current:null},ye={current:null},$c=Ii((e,t,r)=>N(void 0,null,function*(){if(r){let l=Math.floor(Date.now()/1e3);return{hash:yield r(),timestamp:l}}let{data:o}=yield ki.default.get(`${e}/${kr}?from=${Wc}&size=1&fields=hash,timestamp${t?"&shard="+t:""}`),[i]=o;return i}));function Ei(e,t,r,o){return N(this,null,function*(){if(e==null)throw new Error("missing api url");let i=Date.now();if(Ot.current!=null&&i<Ot.current.timestamp*1e3+Gc&&!o)return Ot.current;if(ye.current!=null)return yield ye.current;ye.current=$c(e,t,r);try{let l=yield ye.current;if(l==null)throw ye.current=null,new Error("could not get block hash");return Ot.current={hash:l.hash,timestamp:l.timestamp},ye.current=null,l}catch(l){return ye.current=null,null}})}n();n();Je();n();n();var Yi=S(Ki());var Xi=e=>{if(!e||!(0,Yi.default)(e))return null;let t=e.split(".");if(t.length!==4)return null;try{let[r,o,i,l]=t,p=JSON.parse(Te(l)),d=Te(r);return{ttl:Number(i),extraInfo:p,origin:d,blockHash:o}}catch(r){return console.error(`Error trying to decode ${e}:`,r),null}};function gl(e){return Object.prototype.toString.call(e)==="[object String]"}var Zi=e=>{var r;if(!e||!gl(e))return null;let t=e.split(".");if(t.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[o,i,l]=t,p=Te(o),d=Te(i),m=Xi(d);if(!m)return{address:p,body:d,signature:l,blockHash:"",origin:"",ttl:0};let T=w(g({},m),{address:p,body:d,signature:l});return(r=m.extraInfo)!=null&&r.timestamp||delete T.extraInfo,T}catch(o){return null}};var Dr={isExpired:!1},Ji=e=>{if(!e)return Dr;let t=Zi(e);if(!t)return Dr;let r=be(),{ttl:o,extraInfo:i}=t,l=i==null?void 0:i.timestamp;if(!l)return Dr;let p=l+o,d=r>p,m=p-r;return{isExpired:d,expiresAt:p,secondsUntilExpires:m}};n();var Ge={origin:J().origin,apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},$e=e=>{var r,o,i,l,p,d;return e===!0?Ge:{origin:(r=e==null?void 0:e.origin)!=null?r:Ge.origin,blockHashShard:e==null?void 0:e.blockHashShard,expirySeconds:(o=e==null?void 0:e.expirySeconds)!=null?o:Ge.expirySeconds,apiAddress:(i=e==null?void 0:e.apiAddress)!=null?i:Ge.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:Ge.tokenExpirationToastWarningSeconds,extraInfo:(p=e==null?void 0:e.extraInfo)!=null?p:{},gatewayUrl:e==null?void 0:e.gatewayUrl,extraRequestHeaders:(d=e==null?void 0:e.extraRequestHeaders)!=null?d:{}}};var _r=e=>{let{origin:t,apiAddress:r,expirySeconds:o,blockHashShard:i,extraInfo:l,gatewayUrl:p,extraRequestHeaders:d}=$e(e),m=new Qi.NativeAuthClient({origin:t,apiUrl:r,expirySeconds:o,blockHashShard:i,gatewayUrl:p,extraRequestHeaders:d});return{getNativeAuthConfig:$e,initialize:y=>N(void 0,null,function*(){var H,C;if(!r||!t)return"";let A=()=>m.getCurrentBlockHash(),I=(H=y==null?void 0:y.latestBlockInfo)!=null?H:yield Ei(r,i,A,y==null?void 0:y.noCache),{hash:v,timestamp:L}=I,M=m.encodeValue(JSON.stringify(g(g({},(C=y==null?void 0:y.extraInfo)!=null?C:l),L?{timestamp:L}:{})));return`${m.encodeValue(t)}.${v}.${o}.${M}`}),getToken:({address:y,token:A,signature:I})=>m.getToken(y,A,I),getTokenExpiration:Ji}};var fl=(e,t)=>{var r;return t?t===!0?e:(r=t.apiAddress)!=null?r:e:null},ts=e=>{let t=oe(fe),r=oe(ni),o=(0,es.useRef)(r==null?void 0:r.loginToken),i=fl(t.apiAddress,e),l=$e(g(g({},e===!0?{}:e),i?{apiAddress:i}:{})),p=Boolean(e),d=_r(l),{address:m}=Rr(),T=kt(),x=v=>{o.current=v,T(ot(g({loginToken:v},i?{nativeAuthConfig:l}:{})))},y=()=>{try{return d.initialize()}catch(v){console.error("Unable to get block. Login failed.",v);return}},A=({address:v,signature:L})=>{let M=o.current;if(!M)throw"Token not found. Call `setLoginToken` first.";if(!p){T(ot({loginToken:M,signature:L}));return}let se=d.getToken({address:v,token:M,signature:L});return T(ot(g({loginToken:M,signature:L,nativeAuthToken:se},i?{nativeAuthConfig:l}:{}))),se};return{configuration:l,setLoginToken:x,getNativeAuthLoginToken:y,setTokenLoginInfo:A,refreshNativeAuthTokenLogin:M=>N(void 0,[M],function*({signMessageCallback:v,nativeAuthClientConfig:L}){let H=yield _r(L||l).initialize({noCache:Boolean(L)});if(o.current=H,!H)return;let C=new Mt.SignableMessage({address:new Mt.Address(m),message:s.Buffer.from(`${m}${H}{}`)}),ke=yield v(C,{});return A({address:m,signature:ke.getSignature().toString("hex")})})}};var Tl=({callbackRoute:e,token:t,nativeAuth:r,onLoginRedirect:o})=>{let[i,l]=(0,Or.useState)(""),[p,d]=(0,Or.useState)(!1),m=r!=null,T=ts(r),x=t,y=kt(),A=Si();function I(){return N(this,null,function*(){if(A)throw new Error(ln);d(!0);let L=rs.ExtensionProvider.getInstance();try{if(!(yield L.init())){console.warn("Something went wrong trying to redirect to wallet login..");return}let se=Ti(),H=encodeURIComponent(fi(e!=null?e:se));if(m&&!x&&(x=yield T.getNativeAuthLoginToken(),!x)){console.warn("Fetching block failed. Login cancelled.");return}x&&T.setLoginToken(x);let C=g({callbackUrl:H},x&&{token:x});yield L.login(C),On(L);let{signature:ke,address:Ee}=L.account;if(!Ee){d(!1),console.warn("Login cancelled.");return}ke&&x&&T.setTokenLoginInfo({signature:ke,address:Ee}),y(Ae({address:Ee,loginMethod:"extension"})),oo({callbackRoute:e,onLoginRedirect:o,options:{signature:ke,address:Ee}})}catch(M){console.error("error loging in",M),l("error logging in"+M.message)}finally{d(!1)}})}let v=Boolean(i);return[I,{loginFailed:v,error:i,isLoading:p&&!v,isLoggedIn:A&&!v}]};0&&(module.exports={useExtensionLogin});
|
|
1
|
+
"use strict";var ns=Object.create;var Le=Object.defineProperty,os=Object.defineProperties,is=Object.getOwnPropertyDescriptor,ss=Object.getOwnPropertyDescriptors,as=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols,cs=Object.getPrototypeOf,Ft=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable;var Mr=(e,t,r)=>t in e?Le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))Ft.call(t,r)&&Mr(e,r,t[r]);if(He)for(var r of He(t))Fr.call(t,r)&&Mr(e,r,t[r]);return e},w=(e,t)=>os(e,ss(t));var Br=(e,t)=>{var r={};for(var o in e)Ft.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&He)for(var o of He(e))t.indexOf(o)<0&&Fr.call(e,o)&&(r[o]=e[o]);return r};var h=(e,t)=>()=>(e&&(t=e(e=0)),t);var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ae=(e,t)=>{for(var r in t)Le(e,r,{get:t[r],enumerable:!0})},Ur=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of as(t))!Ft.call(e,i)&&i!==r&&Le(e,i,{get:()=>t[i],enumerable:!(o=is(t,i))||o.enumerable});return e};var S=(e,t,r)=>(r=e!=null?ns(cs(e)):{},Ur(t||!e||!e.__esModule?Le(r,"default",{value:e,enumerable:!0}):r,e)),Ne=e=>Ur(Le({},"__esModule",{value:!0}),e);var N=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(T){i(T)}},p=m=>{try{d(r.throw(m))}catch(T){i(T)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var Gr=O(qe=>{"use strict";n();qe.byteLength=ps;qe.toByteArray=ds;qe.fromByteArray=fs;var q=[],F=[],ls=typeof Uint8Array!="undefined"?Uint8Array:Array,Bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ce=0,Vr=Bt.length;ce<Vr;++ce)q[ce]=Bt[ce],F[Bt.charCodeAt(ce)]=ce;var ce,Vr;F["-".charCodeAt(0)]=62;F["_".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 o=r===t?0:4-r%4;return[r,o]}function ps(e){var t=Wr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function us(e,t,r){return(t+r)*3/4-r}function ds(e){var t,r=Wr(e),o=r[0],i=r[1],l=new ls(us(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=F[e.charCodeAt(m)]<<18|F[e.charCodeAt(m+1)]<<12|F[e.charCodeAt(m+2)]<<6|F[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=F[e.charCodeAt(m)]<<2|F[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=F[e.charCodeAt(m)]<<10|F[e.charCodeAt(m+1)]<<4|F[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function ms(e){return q[e>>18&63]+q[e>>12&63]+q[e>>6&63]+q[e&63]}function gs(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(ms(o));return i.join("")}function fs(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(gs(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(q[t>>2]+q[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(q[t>>10]+q[t>>4&63]+q[t<<2&63]+"=")),i.join("")}});var $r=O(Ut=>{n();Ut.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,T=m>>1,x=-7,y=r?i-1:0,A=r?-1:1,I=e[t+y];for(y+=A,l=I&(1<<-x)-1,I>>=-x,x+=d;x>0;l=l*256+e[t+y],y+=A,x-=8);for(p=l&(1<<-x)-1,l>>=-x,x+=o;x>0;p=p*256+e[t+y],y+=A,x-=8);if(l===0)l=1-T;else{if(l===m)return p?NaN:(I?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-T}return(I?-1:1)*p*Math.pow(2,l-o)};Ut.write=function(e,t,r,o,i,l){var p,d,m,T=l*8-i-1,x=(1<<T)-1,y=x>>1,A=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=o?0:l-1,v=o?1:-1,L=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,p=x):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+y>=1?t+=A/m:t+=A*Math.pow(2,1-y),t*m>=2&&(p++,m/=2),p+y>=x?(d=0,p=x):p+y>=1?(d=(t*m-1)*Math.pow(2,i),p=p+y):(d=t*Math.pow(2,y-1)*Math.pow(2,i),p=0));i>=8;e[r+I]=d&255,I+=v,d/=256,i-=8);for(p=p<<i|d,T+=i;T>0;e[r+I]=p&255,I+=v,p/=256,T-=8);e[r+I-v]|=L*128}});var rn=O(xe=>{"use strict";n();var Vt=Gr(),he=$r(),Hr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;xe.Buffer=u;xe.SlowBuffer=ws;xe.INSPECT_MAX_BYTES=50;var je=2147483647;xe.kMaxLength=je;u.TYPED_ARRAY_SUPPORT=Ts();!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 Ts(){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 Q(e){if(e>je)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 Ht(e)}return zr(e,t,r)}u.poolSize=8192;function zr(e,t,r){if(typeof e=="string")return hs(e,t);if(ArrayBuffer.isView(e))return xs(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(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return Gt(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=Ss(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 zr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Kr(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 ys(e,t,r){return Kr(e),e<=0?Q(e):t!==void 0?typeof r=="string"?Q(e).fill(t,r):Q(e).fill(t):Q(e)}u.alloc=function(e,t,r){return ys(e,t,r)};function Ht(e){return Kr(e),Q(e<0?0:qt(e)|0)}u.allocUnsafe=function(e){return Ht(e)};u.allocUnsafeSlow=function(e){return Ht(e)};function hs(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Yr(e,t)|0,o=Q(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Wt(e){for(var t=e.length<0?0:qt(e.length)|0,r=Q(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function xs(e){if(j(e,Uint8Array)){var t=new Uint8Array(e);return Gt(t.buffer,t.byteOffset,t.byteLength)}return Wt(e)}function Gt(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function Ss(e){if(u.isBuffer(e)){var t=qt(e.length)|0,r=Q(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||jt(e.length)?Q(0):Wt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Wt(e.data)}function qt(e){if(e>=je)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+je.toString(16)+" bytes");return e|0}function ws(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(j(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),j(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 o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?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 o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(j(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 Yr(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return $t(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return tn(e).length;default:if(i)return o?-1:$t(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=Yr;function As(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ps(this,t,r);case"utf8":case"utf-8":return Zr(this,t,r);case"ascii":return Rs(this,t,r);case"latin1":case"binary":return Cs(this,t,r);case"base64":return Ls(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ds(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function le(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}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)le(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)le(this,r,r+3),le(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)le(this,r,r+7),le(this,r+1,r+6),le(this,r+2,r+5),le(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Zr(this,0,t):As.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=xe.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Hr&&(u.prototype[Hr]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(j(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),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,d=o-r,m=Math.min(p,d),T=this.slice(i,l),x=t.slice(r,o),y=0;y<m;++y)if(T[y]!==x[y]){p=T[y],d=x[y];break}return p<d?-1:d<p?1:0};function Xr(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,jt(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,o)),u.isBuffer(t))return t.length===0?-1:qr(e,t,r,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):qr(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function qr(e,t,r,o,i){var l=1,p=e.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,d/=2,r/=2}function m(I,v){return l===1?I[v]:I.readUInt16BE(v*l)}var T;if(i){var x=-1;for(T=r;T<p;T++)if(m(e,T)===m(t,x===-1?0:T-x)){if(x===-1&&(x=T),T-x+1===d)return x*l}else x!==-1&&(T-=T-x),x=-1}else for(r+d>p&&(r=p-d),T=r;T>=0;T--){for(var y=!0,A=0;A<d;A++)if(m(e,T+A)!==m(t,A)){y=!1;break}if(y)return T}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return Xr(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return Xr(this,t,r,o,!1)};function bs(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var d=parseInt(t.substr(p*2,2),16);if(jt(d))return p;e[r+p]=d}return p}function vs(e,t,r,o){return ze($t(t,e.length-r),e,r,o)}function Is(e,t,r,o){return ze(Ms(t),e,r,o)}function ks(e,t,r,o){return ze(tn(t),e,r,o)}function Es(e,t,r,o){return ze(Fs(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<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 bs(this,t,r,o);case"utf8":case"utf-8":return vs(this,t,r,o);case"ascii":case"latin1":case"binary":return Is(this,t,r,o);case"base64":return ks(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Es(this,t,r,o);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 Ls(e,t,r){return t===0&&r===e.length?Vt.fromByteArray(e):Vt.fromByteArray(e.slice(t,r))}function Zr(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,T,x,y;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(y=(l&31)<<6|m&63,y>127&&(p=y));break;case 3:m=e[i+1],T=e[i+2],(m&192)===128&&(T&192)===128&&(y=(l&15)<<12|(m&63)<<6|T&63,y>2047&&(y<55296||y>57343)&&(p=y));break;case 4:m=e[i+1],T=e[i+2],x=e[i+3],(m&192)===128&&(T&192)===128&&(x&192)===128&&(y=(l&15)<<18|(m&63)<<12|(T&63)<<6|x&63,y>65535&&y<1114112&&(p=y))}}p===null?(p=65533,d=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=d}return Ns(o)}var jr=4096;function Ns(e){var t=e.length;if(t<=jr)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=jr));return r}function Rs(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function Cs(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function Ps(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=Bs[e[l]];return i}function Ds(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function R(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,o){t=t>>>0,r=r>>>0,o||R(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,o){t=t>>>0,r=r>>>0,o||R(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||R(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||R(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||R(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||R(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||R(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(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,o){t=t>>>0,r=r>>>0,o||R(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||R(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||R(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||R(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||R(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||R(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||R(t,4,this.length),he.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||R(t,4,this.length),he.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||R(t,8,this.length),he.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||R(t,8,this.length),he.read(this,t,!1,52,8)};function P(e,t,r,o,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+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;P(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;P(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||P(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||P(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,o){return t=+t,r=r>>>0,o||P(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,o){return t=+t,r=r>>>0,o||P(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,o){return t=+t,r=r>>>0,o||P(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,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);P(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);P(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||P(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||P(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||P(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||P(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,o){return t=+t,r=r>>>0,o||P(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 Jr(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Qr(e,t,r,o,i){return t=+t,r=r>>>0,i||Jr(e,t,r,4,34028234663852886e22,-34028234663852886e22),he.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return Qr(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return Qr(this,t,r,!1,o)};function en(e,t,r,o,i){return t=+t,r=r>>>0,i||Jr(e,t,r,8,17976931348623157e292,-17976931348623157e292),he.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return en(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return en(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!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<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var _s=/[^+/0-9A-Za-z-_]/g;function Os(e){if(e=e.split("=")[0],e=e.trim().replace(_s,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function $t(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++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===o){(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 Ms(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Fs(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function tn(e){return Vt.toByteArray(Os(e))}function ze(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function j(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function jt(e){return e!==e}var Bs=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var cn=O((Al,an)=>{n();var k=an.exports={},z,K;function zt(){throw new Error("setTimeout has not been defined")}function Kt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?z=setTimeout:z=zt}catch(e){z=zt}try{typeof clearTimeout=="function"?K=clearTimeout:K=Kt}catch(e){K=Kt}})();function nn(e){if(z===setTimeout)return setTimeout(e,0);if((z===zt||!z)&&setTimeout)return z=setTimeout,setTimeout(e,0);try{return z(e,0)}catch(t){try{return z.call(null,e,0)}catch(r){return z.call(this,e,0)}}}function Us(e){if(K===clearTimeout)return clearTimeout(e);if((K===Kt||!K)&&clearTimeout)return K=clearTimeout,clearTimeout(e);try{return K(e)}catch(t){try{return K.call(null,e)}catch(r){return K.call(this,e)}}}var ee=[],Se=!1,pe,Ke=-1;function Vs(){!Se||!pe||(Se=!1,pe.length?ee=pe.concat(ee):Ke=-1,ee.length&&on())}function on(){if(!Se){var e=nn(Vs);Se=!0;for(var t=ee.length;t;){for(pe=ee,ee=[];++Ke<t;)pe&&pe[Ke].run();Ke=-1,t=ee.length}pe=null,Se=!1,Us(e)}}k.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];ee.push(new sn(e,t)),ee.length===1&&!Se&&nn(on)};function sn(e,t){this.fun=e,this.array=t}sn.prototype.run=function(){this.fun.apply(null,this.array)};k.title="browser";k.browser=!0;k.env={};k.argv=[];k.version="";k.versions={};function te(){}k.on=te;k.addListener=te;k.once=te;k.off=te;k.removeListener=te;k.removeAllListeners=te;k.emit=te;k.prependListener=te;k.prependOnceListener=te;k.listeners=function(e){return[]};k.binding=function(e){throw new Error("process.binding is not supported")};k.cwd=function(){return"/"};k.chdir=function(e){throw new Error("process.chdir is not supported")};k.umask=function(){return 0}});var s,c,Ws,a,n=h(()=>{s=S(rn()),c=S(cn()),Ws=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object),a=Ws});var ln,Yt=h(()=>{"use strict";n();ln="Action not allowed. User is logged in. Call logout() first"});var pn=h(()=>{"use strict";n()});var un=h(()=>{"use strict";n()});var Xt,dn=h(()=>{"use strict";n();Xt=(o=>(o.SetGuardian="SetGuardian",o.GuardAccount="GuardAccount",o.UnGuardAccount="UnGuardAccount",o))(Xt||{})});var mn=h(()=>{"use strict";n()});var Zt=h(()=>{"use strict";n()});var gn=h(()=>{"use strict";n()});var fn=h(()=>{"use strict";n()});var Tn=h(()=>{"use strict";n()});var yn=h(()=>{"use strict";n()});var Ye,hn,Pl,xn,Dl,V=h(()=>{"use strict";n();Ye=require("@multiversx/sdk-web-wallet-cross-window-provider/out/types"),hn=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(hn||{}),Pl=g(g({},Ye.CrossWindowProviderRequestEnums),hn),xn=(t=>(t.reloginResponse="RELOGIN_RESPONSE",t))(xn||{}),Dl=g(g({},Ye.CrossWindowProviderResponseEnums),xn)});var Sn=h(()=>{"use strict";n()});var wn=h(()=>{"use strict";n()});var D=h(()=>{"use strict";n()});var An=h(()=>{"use strict";n()});var bn=h(()=>{"use strict";n()});var vn=h(()=>{"use strict";n()});var W=h(()=>{"use strict";n();fn();Tn();yn();V();Sn();wn();D();An();bn();vn()});var Jt,In,Xl,kn,Zl,En,Jl,Ql,ep,Ln=h(()=>{"use strict";n();W();Jt={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",xAliasAddress:"https://devnet.xalias.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",xAliasAddress:"https://testnet.xalias.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",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:In,egldLabel:Xl}=Jt["devnet"],{chainId:kn,egldLabel:Zl}=Jt["testnet"],{chainId:En,egldLabel:Jl}=Jt["mainnet"],Ql={["devnet"]:In,["testnet"]:kn,["mainnet"]:En},ep={[In]:"devnet",[kn]:"testnet",[En]:"mainnet"}});var Nn=h(()=>{"use strict";n()});var Y,Rn=h(()=>{"use strict";n();Y=require("@multiversx/sdk-web-wallet-provider")});var Qt,er,Cn,Xe,Pn,we,b=h(()=>{"use strict";n();pn();Yt();un();dn();mn();Zt();gn();Ln();Nn();Rn();Qt=5e4,er=1e9,Cn=1,Xe="logout",Pn="login",we="0"});var tr,E,Ae,B=h(()=>{"use strict";n();tr=require("@reduxjs/toolkit");b();E=(0,tr.createAction)(Xe),Ae=(0,tr.createAction)(Pn,e=>({payload:e}))});var be,Je=h(()=>{"use strict";n();be=()=>Date.now()/1e3});var Mn=h(()=>{"use strict";n()});var Fn=h(()=>{"use strict";n()});var Bn=h(()=>{"use strict";n();Je();Mn();Fn()});var rr={};ae(rr,{clear:()=>Zs,getItem:()=>Ys,localStorageKeys:()=>ue,removeItem:()=>Xs,setItem:()=>Ks});var ue,Qe,Ks,Ys,Xs,Zs,Re=h(()=>{"use strict";n();Bn();ue={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Qe=typeof localStorage!="undefined",Ks=({key:e,data:t,expires:r})=>{!Qe||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Ys=e=>{if(!Qe)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:be()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Xs=e=>{!Qe||localStorage.removeItem(String(e))},Zs=()=>{!Qe||localStorage.clear()}});var nr={};ae(nr,{clear:()=>Gn,getItem:()=>Vn,removeItem:()=>Wn,setItem:()=>Un,storage:()=>Js});var Un,Vn,Wn,Gn,Js,$n=h(()=>{"use strict";n();Un=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Vn=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},Wn=e=>sessionStorage.removeItem(String(e)),Gn=()=>sessionStorage.clear(),Js={setItem:Un,getItem:Vn,removeItem:Wn,clear:Gn}});var ve,et=h(()=>{"use strict";n();Re();$n();ve={session:nr,local:rr}});var ir,Hn,qn,tt,or,jn,zn,zp,Kn,Kp,Yp,Xp,Zp,Jp,Qp,eu,tu,rt,nt=h(()=>{"use strict";n();ir=require("@multiversx/sdk-core"),Hn=require("@reduxjs/toolkit"),qn=require("redux-persist");b();et();Re();B();tt={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:we},or={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":tt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},jn=(0,Hn.createSlice)({name:"accountInfoSlice",initialState:or,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new ir.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:tt},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}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(E,()=>(ve.local.removeItem(ue.loginExpiresAt),or)),e.addCase(Ae,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new ir.Address(o).hex()}),e.addCase(qn.REHYDRATE,(t,r)=>{var T;if(!((T=r.payload)!=null&&T.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let m=p&&i in p;t.accounts=m?p:or.accounts,t.publicKey=d})}}),{setAccount:zn,setAddress:zp,setAccountNonce:Kn,setAccountShard:Kp,setLedgerAccount:Yp,updateLedgerAccount:Xp,setWalletConnectAccount:Zp,setIsAccountLoading:Jp,setAccountLoadingError:Qp,setWebsocketEvent:eu,setWebsocketBatchEvent:tu}=jn.actions,rt=jn.reducer});function Ce(){return new Date().setHours(new Date().getHours()+24)}function Pe(e){ve.local.setItem({key:ue.loginExpiresAt,data:e,expires:e})}var sr=h(()=>{"use strict";n();et();Re()});var Xn,Yn,Zn,uu,du,mu,ot,gu,fu,Jn,Tu,it,st=h(()=>{"use strict";n();Xn=require("@reduxjs/toolkit");sr();V();B();Yn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Zn=(0,Xn.createSlice)({name:"loginInfoSlice",initialState:Yn,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(E,()=>Yn),e.addCase(Ae,(t,r)=>{t.isLoginSessionInvalid=!1,t.loginMethod=r.payload.loginMethod,Pe(Ce())})}}),{setLoginMethod:uu,setWalletConnectLogin:du,setLedgerLogin:mu,setTokenLogin:ot,setTokenLoginSignature:gu,setWalletLogin:fu,invalidateLoginSession:Jn,setLogoutRoute:Tu}=Zn.actions,it=Zn.reducer});var eo,Qn,to,Su,wu,Au,bu,at,ct=h(()=>{"use strict";n();eo=require("@reduxjs/toolkit");B();Qn={},to=(0,eo.createSlice)({name:"modalsSlice",initialState:Qn,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(E,()=>Qn)}}),{setTxSubmittedModal:Su,setNotificationModal:wu,clearTxSubmittedModal:Au,clearNotificationModal:bu}=to.actions,at=to.reducer});var Qs,ro,no=h(()=>{"use strict";n();Qs=!1,ro=({timeout:e=0,url:t})=>{Qs||setTimeout(()=>{if(!!window)return window.location.assign(t)},e)}});function oo({callbackRoute:e,onLoginRedirect:t,options:r}){let o=Boolean(e),i=typeof t=="function";if(o&&e!=null){if(i)return t(e,r);ro({url:e,timeout:ea})}}var ea,io=h(()=>{"use strict";n();no();ea=200});function so(e){return e[Math.floor(Math.random()*e.length)]}var ao=h(()=>{"use strict";n()});var co=h(()=>{"use strict";n();Zt()});var ar=h(()=>{"use strict";n();io();ao();co()});var lo,po,uo,cr,ta,mo,Uu,Vu,Wu,lt,pt=h(()=>{"use strict";n();lo=require("@reduxjs/toolkit"),po=S(require("lodash.omit")),uo=require("redux-persist");B();ar();cr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},ta={network:cr,chainID:"-1"},mo=(0,lo.createSlice)({name:"appConfig",initialState:ta,reducers:{initializeNetworkConfig:(e,t)=>{let r=so(t.payload.walletConnectV2RelayAddresses),o=(0,po.default)(t.payload,"walletConnectV2RelayAddresses");e.network=w(g(g({},e.network),o),{walletConnectV2RelayAddress:r})},setChainID:(e,t)=>{e.chainID=t.payload},setCustomWalletAddress:(e,t)=>{e.network.customWalletAddress=t.payload}},extraReducers:e=>{e.addCase(E,t=>{t.network.customWalletAddress=void 0}),e.addCase(uo.REHYDRATE,(t,r)=>{var i,l;if(!((l=(i=r.payload)==null?void 0:i.network)!=null&&l.customWalletAddress))return;let{network:{customWalletAddress:o}}=r.payload;t.network.customWalletAddress=o})}}),{initializeNetworkConfig:Uu,setChainID:Vu,setCustomWalletAddress:Wu}=mo.actions,lt=mo.reducer});var go,lr,fo,zu,Ku,Yu,ut,dt=h(()=>{"use strict";n();go=require("@reduxjs/toolkit");W();B();lr={isSigning:!1,signedSessions:{}},fo=(0,go.createSlice)({name:"signedMessageInfoSliceState",initialState:lr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=g(g({},e.signedSessions[r]),o)},setSignSessionState:(e,t)=>g(g({},e),t.payload),clearSignedMessageInfo:()=>lr},extraReducers:e=>{e.addCase(E,()=>lr)}}),{setSignSession:zu,clearSignedMessageInfo:Ku,setSignSessionState:Yu}=fo.actions,ut=fo.reducer});var yo,ho,To,xo,rd,nd,od,id,mt,gt=h(()=>{"use strict";n();yo=require("@reduxjs/toolkit"),ho=require("redux-persist");W();Je();B();To={customToasts:[],transactionToasts:[]},xo=(0,yo.createSlice)({name:"toastsSlice",initialState:To,reducers:{addCustomToast:(e,t)=>{let r=t.payload.toastId||`custom-toast-${e.customToasts.length+1}`,o=e.customToasts.findIndex(i=>i.toastId===r);if(o!==-1){e.customToasts[o]=w(g(g({},e.customToasts[o]),t.payload),{type:"custom",toastId:r});return}e.customToasts.push(w(g({},t.payload),{type:"custom",toastId:r}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:be(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)}},extraReducers:e=>{e.addCase(E,()=>To),e.addCase(ho.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:rd,removeCustomToast:nd,addTransactionToast:od,removeTransactionToast:id}=xo.actions,mt=xo.reducer});var So,ur,dr,mr,ra,pr,wo,ld,pd,ud,ft,Tt=h(()=>{"use strict";n();So=require("@reduxjs/toolkit");B();ur="Transaction failed",dr="Transaction successful",mr="Processing transaction",ra="Transaction submitted",pr={},wo=(0,So.createSlice)({name:"transactionsInfo",initialState:pr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||ur,successMessage:(o==null?void 0:o.successMessage)||dr,processingMessage:(o==null?void 0:o.processingMessage)||mr,submittedMessage:(o==null?void 0:o.submittedMessage)||ra,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>pr},extraReducers:e=>{e.addCase(E,()=>pr)}}),{clearTransactionsInfo:ld,setTransactionsDisplayInfo:pd,clearTransactionsInfoForSessionId:ud}=wo.actions,ft=wo.reducer});function Ao(e){return e!=null&&(ma(e)||ha(e))}function yt(e){return e!=null&&(ga(e)||xa(e))}function ht(e){return e!=null&&(fa(e)||Sa(e))}function bo(e){return e!=null&&(Ta(e)||wa(e))}function vo(e){return e!=null&&ya(e)}function ma(e){return e!=null&&oa.includes(e)}function ga(e){return e!=null&&ia.includes(e)}function fa(e){return e!=null&&sa.includes(e)}function Ta(e){return e!=null&&aa.includes(e)}function ya(e){return e!=null&&ca.includes(e)}function ha(e){return e!=null&&la.includes(e)}function xa(e){return e!=null&&pa.includes(e)}function Sa(e){return e!=null&&ua.includes(e)}function wa(e){return e!=null&&da.includes(e)}var oa,ia,sa,aa,ca,la,pa,ua,da,fr=h(()=>{"use strict";n();V();oa=["sent"],ia=["success"],sa=["fail","cancelled","timedOut"],aa=["invalid"],ca=["timedOut"],la=["pending"],pa=["success"],ua=["fail","invalid"],da=["not executed"]});var Io,ko,De,Aa,Eo,Sd,wd,Ad,bd,vd,Id,kd,Ed,Ld,Nd,Rd,xt,St=h(()=>{"use strict";n();Io=require("@reduxjs/toolkit"),ko=require("redux-persist");V();fr();B();De={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Aa={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Eo=(0,Io.createSlice)({name:"transactionsSlice",initialState:De,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,T;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p,customTransactionInformation:d}=t.payload;e.customTransactionInformationForSessionId[r]=g(g(g({},Aa),((m=e.signedTransactions[r])==null?void 0:m.customTransactionInformation)||{}),e.customTransactionInformationForSessionId[r]||{}),e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:g(g({},e.customTransactionInformationForSessionId[r]),d!=null?d:{})},((T=e==null?void 0:e.transactionsToSign)==null?void 0:T.sessionId)===r&&(e.transactionsToSign=De.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=g(g({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var m,T,x,y,A,I,v,L;let{sessionId:r,status:o,errorMessage:i,transactionHash:l,inTransit:p}=t.payload,d=(T=(m=e.signedTransactions)==null?void 0:m[r])==null?void 0:T.transactions;if(d!=null){e.signedTransactions[r].transactions=d.map(C=>C.hash===l?w(g({},C),{status:o,errorMessage:i,inTransit:p}):C);let M=(y=(x=e.signedTransactions[r])==null?void 0:x.transactions)==null?void 0:y.every(C=>yt(C.status)),se=(I=(A=e.signedTransactions[r])==null?void 0:A.transactions)==null?void 0:I.every(C=>ht(C.status)),H=(L=(v=e.signedTransactions[r])==null?void 0:v.transactions)==null?void 0:L.every(C=>bo(C.status));M&&(e.signedTransactions[r].status="success"),se&&(e.signedTransactions[r].status="fail"),H&&(e.signedTransactions[r].status="invalid")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=De.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=De.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload},updateSignedTransactionsCustomTransactionInformation:(e,t)=>{let{sessionId:r,customTransactionInformationOverrides:o}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].customTransactionInformation=g(g({},e.signedTransactions[r].customTransactionInformation),o))}},extraReducers:e=>{e.addCase(E,()=>De),e.addCase(ko.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((d,[m,T])=>{let x=new Date(m),y=new Date;return y.setHours(y.getHours()+5),y-x>0||(d[m]=T),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Sd,updateSignedTransactions:wd,setTransactionsToSign:Ad,clearAllTransactionsToSign:bd,clearAllSignedTransactions:vd,clearSignedTransaction:Id,clearTransactionToSign:kd,setSignTransactionsError:Ed,setSignTransactionsCancelMessage:Ld,moveTransactionsToSignedState:Nd,updateSignedTransactionsCustomTransactionInformation:Rd}=Eo.actions,xt=Eo.reducer});var Lo,Tr,No,_d,Od,Md,Fd,wt,At=h(()=>{"use strict";n();Lo=require("@reduxjs/toolkit");B();Tr={},No=(0,Lo.createSlice)({name:"batchTransactionsSlice",initialState:Tr,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>Tr},extraReducers:e=>{e.addCase(E,()=>Tr)}}),{setBatchTransactions:_d,updateBatchTransactions:Od,clearBatchTransactions:Md,clearAllBatchTransactions:Fd}=No.actions,wt=No.reducer});var Co,Ro,Po,Wd,Do,yr=h(()=>{"use strict";n();Co=require("@reduxjs/toolkit");B();Ro={},Po=(0,Co.createSlice)({name:"dappConfigSlice",initialState:Ro,reducers:{setDappConfig:(e,t)=>t.payload},extraReducers:e=>{e.addCase(E,()=>Ro)}}),{setDappConfig:Wd}=Po.actions,Do=Po.reducer});var de=h(()=>{"use strict";n();nt();st();ct();pt();dt();gt();Tt();St();At();yr()});var hr=h(()=>{"use strict";n()});var Mo,ka,Ea,me,It=h(()=>{"use strict";n();Mo=require("@reduxjs/toolkit");hr();nt();At();yr();st();ct();pt();dt();gt();Tt();St();ka={["account"]:rt,["dappConfig"]:Do,["loginInfo"]:it,["modals"]:at,["networkConfig"]:lt,["signedMessageInfo"]:ut,["toasts"]:mt,["transactionsInfo"]:ft,["transactions"]:xt,["batchTransactions"]:wt},Ea=(e={})=>(0,Mo.combineReducers)(g(g({},ka),e)),me=Ea});var Vo={};ae(Vo,{default:()=>$a,sessionStorageReducers:()=>xr});function ne(e,t=[]){return{key:e,version:1,storage:Bo.default,blacklist:t}}var _,Fo,Bo,La,_e,Na,Ra,Ca,Pa,Da,_a,Oa,Ma,Fa,Ba,Uo,Ua,xr,Va,Wa,Ga,$a,Wo=h(()=>{"use strict";n();_=require("redux-persist"),Fo=S(require("redux-persist/lib/storage")),Bo=S(require("redux-persist/lib/storage/session"));It();de();nt();At();st();ct();pt();dt();gt();Tt();St();hr();La={persistReducersStorageType:"localStorage"},_e={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Na=ne(_e["account"]),Ra=ne(_e["loginInfo"]),Ca=ne(_e["modals"]),Pa=ne(_e["networkConfig"]),Da={2:e=>w(g({},e),{networkConfig:cr})};_a=ne("sdk-dapp-transactionsInfo"),Oa=ne("sdk-dapp-transactions",["transactionsToSign"]),Ma=ne("sdk-dapp-batchTransactions",["batchTransactions"]),Fa=ne("sdk-dapp-toasts"),Ba=ne("sdk-dapp-signedMessageInfo"),Uo={key:"sdk-dapp-store",version:2,storage:Fo.default,whitelist:Object.keys(_e),migrate:(0,_.createMigrate)(Da,{debug:!1})},Ua=w(g({},Uo),{whitelist:[]}),xr={["toasts"]:(0,_.persistReducer)(Fa,mt),["transactions"]:(0,_.persistReducer)(Oa,xt),["transactionsInfo"]:(0,_.persistReducer)(_a,ft),["batchTransactions"]:(0,_.persistReducer)(Ma,wt),["signedMessageInfo"]:(0,_.persistReducer)(Ba,ut)},Va=w(g({},xr),{["account"]:(0,_.persistReducer)(Na,rt),["loginInfo"]:(0,_.persistReducer)(Ra,it),["modals"]:(0,_.persistReducer)(Ca,at),["networkConfig"]:(0,_.persistReducer)(Pa,lt)}),Wa=La.persistReducersStorageType==="localStorage",Ga=Wa?(0,_.persistReducer)(Uo,me(xr)):(0,_.persistReducer)(Ua,me(Va)),$a=Ga});var Go={};ae(Go,{default:()=>Ha});var Ha,$o=h(()=>{"use strict";n();It();Ha=me()});var Ho={};ae(Ho,{default:()=>ja});var U,qa,ja,qo=h(()=>{"use strict";n();U=require("redux-persist"),qa=[U.FLUSH,U.REHYDRATE,U.PAUSE,U.PERSIST,U.PURGE,U.REGISTER],ja=qa});var Ko={};ae(Ko,{default:()=>zo});function zo(e){return(0,jo.persistStore)(e)}var jo,Yo=h(()=>{"use strict";n();jo=require("redux-persist")});var Ni=O((xb,Li)=>{n();var Hc=typeof a=="object"&&a&&a.Object===Object&&a;Li.exports=Hc});var Ci=O((Sb,Ri)=>{n();var qc=Ni(),jc=typeof self=="object"&&self&&self.Object===Object&&self,zc=qc||jc||Function("return this")();Ri.exports=zc});var Pr=O((wb,Pi)=>{n();var Kc=Ci(),Yc=Kc.Symbol;Pi.exports=Yc});var Mi=O((Ab,Oi)=>{n();var Di=Pr(),_i=Object.prototype,Xc=_i.hasOwnProperty,Zc=_i.toString,We=Di?Di.toStringTag:void 0;function Jc(e){var t=Xc.call(e,We),r=e[We];try{e[We]=void 0;var o=!0}catch(l){}var i=Zc.call(e);return o&&(t?e[We]=r:delete e[We]),i}Oi.exports=Jc});var Bi=O((bb,Fi)=>{n();var Qc=Object.prototype,el=Qc.toString;function tl(e){return el.call(e)}Fi.exports=tl});var Gi=O((vb,Wi)=>{n();var Ui=Pr(),rl=Mi(),nl=Bi(),ol="[object Null]",il="[object Undefined]",Vi=Ui?Ui.toStringTag:void 0;function sl(e){return e==null?e===void 0?il:ol:Vi&&Vi in Object(e)?rl(e):nl(e)}Wi.exports=sl});var Hi=O((Ib,$i)=>{n();var al=Array.isArray;$i.exports=al});var ji=O((kb,qi)=>{n();function cl(e){return e!=null&&typeof e=="object"}qi.exports=cl});var Ki=O((Eb,zi)=>{n();var ll=Gi(),pl=Hi(),ul=ji(),dl="[object String]";function ml(e){return typeof e=="string"||!pl(e)&&ul(e)&&ll(e)==dl}zi.exports=ml});var yl={};ae(yl,{useExtensionLogin:()=>Tl});module.exports=Ne(yl);n();var Or=require("react"),rs=require("@multiversx/sdk-extension-provider");Yt();n();n();var $s=require("@multiversx/sdk-extension-provider"),Hs=require("@multiversx/sdk-hw-provider"),qs=require("@multiversx/sdk-opera-provider"),js=require("@multiversx/sdk-web-wallet-provider");b();V();n();n();var re=e=>`Unable to perform ${e}, Provider not initialized`,Ze=class{init(){return Promise.resolve(!1)}login(t){throw new Error(re(`login with options: ${t}`))}logout(t){throw new Error(re(`logout with options: ${t}`))}getAddress(){throw new Error(re("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(re(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(re(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(re(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(re(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(re(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(re(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},_n=new Ze;var zs=_n;function On(e){zs=e}B();n();var ti=require("react"),Ie=require("react-redux");n();var Sr=require("@reduxjs/toolkit"),Qo=require("react-redux/lib/utils/Subscription");de();n();var _o=S(require("lodash.throttle"));b();de();sr();et();Re();var ba=[Xe],bt=!1,va=(0,_o.default)(()=>{Pe(Ce())},5e3),Oo=e=>t=>r=>{if(ba.includes(r.type))return t(r);let o=e.getState(),i=ve.local.getItem(ue.loginExpiresAt);if(!Boolean(o==null?void 0:o.account.address))return t(r);if(i==null)return Pe(Ce());let p=Date.now();return i-p<0&&!bt?setTimeout(()=>{bt=!0,e.dispatch(Jn())},1e3):(bt&&(bt=!1),va()),t(r)};n();n();function vt(){return typeof sessionStorage!="undefined"}var Xo=vt()?(Wo(),Ne(Vo)).default:($o(),Ne(Go)).default,Zo=vt()?(qo(),Ne(Ho)).default:[],Jo=vt()?(Yo(),Ne(Ko)).default:e=>e;It();var G=(0,Sr.configureStore)({reducer:Xo,middleware:e=>e({serializableCheck:{ignoredActions:[...Zo,Kn.type,zn.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Oo)}),ei=(0,Qo.createSubscription)(G),Um=Jo(G),Vm=(0,Sr.configureStore)({reducer:me});var za={store:G,subscription:ei},wr=(0,ti.createContext)(za),Hm=(0,Ie.createStoreHook)(wr),kt=(0,Ie.createDispatchHook)(wr),oe=(0,Ie.createSelectorHook)(wr);V();n();n();n();de();n();var ri=S(require("lodash.isequal")),Et=require("reselect"),f=(0,Et.createSelectorCreator)(Et.defaultMemoize,ri.default);var X=e=>e.account,Ar=f(X,e=>e.address),Oe=f(X,Ar,(e,t)=>t in e.accounts?e.accounts[t]:tt),Ka=f(X,Oe,(e,t)=>{let i=e,{accounts:r}=i,o=Br(i,["accounts"]);return w(g({},o),{account:t})}),Ym=f(Oe,e=>e.balance),Xm=f(Oe,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Zm=f(X,e=>e.shard),Jm=f(X,e=>e.ledgerAccount),Qm=f(X,e=>e.walletConnectAccount),eg=f(X,e=>e.isAccountLoading),tg=f(X,e=>e.accountLoadingError),Ya=f(X,e=>e.websocketEvent),rg=f(X,e=>e.websocketBatchEvent);n();var Xa=e=>e.dappConfig,ig=f(Xa,e=>e.shouldUseWebViewProvider);n();var $=e=>e.loginInfo,lg=f($,e=>e.loginMethod),br=f($,Ar,(e,t)=>Boolean(t)),pg=f($,e=>e.walletConnectLogin),ug=f($,e=>e.ledgerLogin),dg=f($,e=>e.walletLogin),mg=f($,e=>e.isLoginSessionInvalid),ni=f($,e=>e.tokenLogin),gg=f($,e=>e.logoutRoute);n();var oi=e=>e.modals,yg=f(oi,e=>e.txSubmittedModal),hg=f(oi,e=>e.notificationModal);n();var ge=e=>e.networkConfig,wg=f(ge,e=>e.chainID),Ag=f(ge,e=>e.network.walletConnectBridgeAddress),bg=f(ge,e=>e.network.walletConnectV2RelayAddress),vg=f(ge,e=>e.network.walletConnectV2ProjectId),Ig=f(ge,e=>e.network.walletConnectV2Options),kg=f(ge,e=>e.network.walletConnectDeepLink),fe=f(ge,e=>e.network),Za=f(fe,e=>e.apiAddress),ii=f(fe,e=>e.explorerAddress),Eg=f(fe,e=>{var t;return(t=e.customWalletAddress)!=null?t:e.walletAddress}),Lg=f(fe,e=>e.xAliasAddress),Ng=f(fe,e=>e.egldLabel);n();var Lt=e=>e.signedMessageInfo,Pg=f(Lt,e=>e.isSigning),Dg=f(Lt,e=>e.errorMessage),_g=f(Lt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),Og=f(Lt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var si=e=>e.toasts,Bg=f(si,e=>e.customToasts),Ug=f(si,e=>e.transactionToasts);n();de();var ai={errorMessage:ur,successMessage:dr,processingMessage:mr},Ja=e=>e.transactionsInfo,$g=f(Ja,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||ai);n();n();var Z=require("@multiversx/sdk-core");b();n();var vr=require("@multiversx/sdk-core/out");n();n();function Nt(e){try{let t=atob(e),r=btoa(t),o=s.Buffer.from(e,"base64").toString(),i=s.Buffer.from(o).toString("base64");if(e===r&&e===i||t===o)return!0}catch(t){return!1}return!1}function Te(e){return Nt(e)?atob(e):e}n();n();n();n();var ci=e=>{let t=e!=null?e:"";return Nt(t)?vr.TransactionPayload.fromEncoded(t):new vr.TransactionPayload(t)};n();b();var Rt=({data:e,onlySetGuardian:t})=>e?t?e.startsWith("SetGuardian"):Object.values(Xt).some(r=>e.startsWith(r)):!1;function Ir(e){var o,i,l;let t=Object.assign({},e);Rt({data:t.data,onlySetGuardian:!0})&&(delete t.senderUsername,delete t.receiverUsername);let r=new Z.Transaction(g(g(w(g(w(g({value:t.value.valueOf(),data:ci(t.data),nonce:t.nonce.valueOf(),receiver:new Z.Address(t.receiver)},t.receiverUsername?{receiverUsername:t.receiverUsername}:{}),{sender:new Z.Address(t.sender)}),t.senderUsername?{senderUsername:t.senderUsername}:{}),{gasLimit:(o=t.gasLimit.valueOf())!=null?o:Qt,gasPrice:(i=t.gasPrice.valueOf())!=null?i:er,chainID:t.chainID.valueOf(),version:new Z.TransactionVersion((l=t.version)!=null?l:Cn)}),t.options?{options:new Z.TransactionOptions(t.options)}:{}),t.guardian?{guardian:new Z.Address(t.guardian)}:{}));return t.guardianSignature&&r.applyGuardianSignature(s.Buffer.from(t.guardianSignature,"hex")),t.signature&&r.applySignature(s.Buffer.from(t.signature,"hex")),r}n();n();b();n();n();n();var rc=require("@multiversx/sdk-core/out");n();b();n();var pi=require("@multiversx/sdk-core");W();n();var nc=require("@multiversx/sdk-core");n();n();n();var oc=require("@multiversx/sdk-core"),ic=S(require("bignumber.js"));V();n();n();n();var kr="blocks";n();n();n();n();D();n();n();D();n();n();n();var dc=S(require("bignumber.js"));b();n();var uc=require("@multiversx/sdk-core"),Er=S(require("bignumber.js"));b();n();var lc=S(require("bignumber.js"));n();Er.default.config({ROUNDING_MODE:Er.default.ROUND_FLOOR});n();n();n();b();n();n();n();n();b();n();b();n();var mc=require("@multiversx/sdk-core");b();n();var Fe=require("@multiversx/sdk-core"),fc=S(require("bignumber.js"));b();n();n();var gc=S(require("bignumber.js"));b();n();b();n();n();n();n();n();n();b();n();b();n();b();n();D();var yc=["reDelegateRewards","claimRewards","unBond"],hc=["wrapEgld","unwrapEgld"],xc=["unStake"],Sc=["unDelegate"];n();n();n();b();n();var bc=S(require("bignumber.js"));n();n();D();n();var vc=S(require("bignumber.js"));n();n();n();n();var kc=S(require("bignumber.js"));W();n();n();n();n();V();n();var Nc=require("@multiversx/sdk-web-wallet-provider");b();n();var Lc=S(require("qs"));n();n();n();n();n();var Be=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined";var J=()=>{if(!Be())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:t,hash:r,origin:o,href:i,search:l}}=window;return{pathname:t,hash:r,origin:o,href:i,search:l}};var fi=(e="")=>{let t=J(),r=e.startsWith("http")||e.startsWith("www.");return!t.origin||e.startsWith(t.origin)||r?e:`${t.origin}/${e.replace("/","")}`};n();var Ti=()=>{let{pathname:e,search:t,hash:r}=J();return`${e!=null?e:""}${t!=null?t:""}${r!=null?r:""}`};n();var Fx={search:Be()?window.location.search:"",removeParams:[]};n();n();n();n();D();n();n();n();var Rc=S(require("linkifyjs"));n();b();n();var Cc=S(require("bignumber.js"));n();W();n();n();V();n();V();n();n();n();D();n();D();n();var Pc=S(require("bignumber.js"));b();D();n();D();n();var hi=require("react");W();n();n();D();n();n();var Dc=require("@multiversx/sdk-core/out"),_c=S(require("bignumber.js"));D();n();W();n();n();W();var Cw=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var xi=require("react");W();n();var Mc=require("react");D();var Uw=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];fr();var Dt=e=>e.transactions,Ue=f(Dt,e=>e.signedTransactions),kA=f(Dt,e=>e.signTransactionsError),EA=f(Dt,e=>e.signTransactionsCancelMessage),_t=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),LA=f(Ue,_t(Ao)),NA=f(Ue,_t(yt)),RA=f(Ue,_t(ht)),CA=f(Ue,_t(vo)),PA=f(Dt,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:w(g({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Ir(r)))||[]})}),DA=f(Ue,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function Si(){return br(G.getState())}ar();n();var es=require("react"),Mt=require("@multiversx/sdk-core");n();n();n();var Rr=()=>oe(Oe);n();n();n();n();n();var Ve=S(require("react"));var s0=(0,Ve.createContext)({}),a0=G.getState();n();var Ai=S(require("react"));n();var Cr=S(require("react")),Fc=S(require("axios"));n();n();n();n();var Uc=require("react"),Vc=S(require("swr"));n();var Bc=S(require("axios"));n();n();de();n();n();var Qi=require("@multiversx/sdk-native-auth-client");n();var ki=S(require("axios"));n();n();n();function bi(e){return N(this,null,function*(){return yield new Promise(t=>{setTimeout(()=>t(),e)})})}n();var vi=(e,t,r,o=0)=>N(void 0,null,function*(){try{return yield e(...r)}catch(i){return o<t.retries?((t==null?void 0:t.delay)!=null&&(yield bi(t.delay)),yield vi(e,t,r,o+1)):null}}),Ii=(e,t={retries:5,delay:500})=>(...r)=>N(void 0,null,function*(){return yield vi(e,t,r)});var Wc=4,Gc=3e4,Ot={current:null},ye={current:null},$c=Ii((e,t,r)=>N(void 0,null,function*(){if(r){let l=Math.floor(Date.now()/1e3);return{hash:yield r(),timestamp:l}}let{data:o}=yield ki.default.get(`${e}/${kr}?from=${Wc}&size=1&fields=hash,timestamp${t?"&shard="+t:""}`),[i]=o;return i}));function Ei(e,t,r,o){return N(this,null,function*(){if(e==null)throw new Error("missing api url");let i=Date.now();if(Ot.current!=null&&i<Ot.current.timestamp*1e3+Gc&&!o)return Ot.current;if(ye.current!=null)return yield ye.current;ye.current=$c(e,t,r);try{let l=yield ye.current;if(l==null)throw ye.current=null,new Error("could not get block hash");return Ot.current={hash:l.hash,timestamp:l.timestamp},ye.current=null,l}catch(l){return ye.current=null,null}})}n();n();Je();n();n();var Yi=S(Ki());var Xi=e=>{if(!e||!(0,Yi.default)(e))return null;let t=e.split(".");if(t.length!==4)return null;try{let[r,o,i,l]=t,p=JSON.parse(Te(l)),d=Te(r);return{ttl:Number(i),extraInfo:p,origin:d,blockHash:o}}catch(r){return console.error(`Error trying to decode ${e}:`,r),null}};function gl(e){return Object.prototype.toString.call(e)==="[object String]"}var Zi=e=>{var r;if(!e||!gl(e))return null;let t=e.split(".");if(t.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[o,i,l]=t,p=Te(o),d=Te(i),m=Xi(d);if(!m)return{address:p,body:d,signature:l,blockHash:"",origin:"",ttl:0};let T=w(g({},m),{address:p,body:d,signature:l});return(r=m.extraInfo)!=null&&r.timestamp||delete T.extraInfo,T}catch(o){return null}};var Dr={isExpired:!1},Ji=e=>{if(!e)return Dr;let t=Zi(e);if(!t)return Dr;let r=be(),{ttl:o,extraInfo:i}=t,l=i==null?void 0:i.timestamp;if(!l)return Dr;let p=l+o,d=r>p,m=p-r;return{isExpired:d,expiresAt:p,secondsUntilExpires:m}};n();var Ge={origin:J().origin,apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},$e=e=>{var r,o,i,l,p,d;return e===!0?Ge:{origin:(r=e==null?void 0:e.origin)!=null?r:Ge.origin,blockHashShard:e==null?void 0:e.blockHashShard,expirySeconds:(o=e==null?void 0:e.expirySeconds)!=null?o:Ge.expirySeconds,apiAddress:(i=e==null?void 0:e.apiAddress)!=null?i:Ge.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:Ge.tokenExpirationToastWarningSeconds,extraInfo:(p=e==null?void 0:e.extraInfo)!=null?p:{},gatewayUrl:e==null?void 0:e.gatewayUrl,extraRequestHeaders:(d=e==null?void 0:e.extraRequestHeaders)!=null?d:{}}};var _r=e=>{let{origin:t,apiAddress:r,expirySeconds:o,blockHashShard:i,extraInfo:l,gatewayUrl:p,extraRequestHeaders:d}=$e(e),m=new Qi.NativeAuthClient({origin:t,apiUrl:r,expirySeconds:o,blockHashShard:i,gatewayUrl:p,extraRequestHeaders:d});return{getNativeAuthConfig:$e,initialize:y=>N(void 0,null,function*(){var H,C;if(!r||!t)return"";let A=()=>m.getCurrentBlockHash(),I=(H=y==null?void 0:y.latestBlockInfo)!=null?H:yield Ei(r,i,A,y==null?void 0:y.noCache),{hash:v,timestamp:L}=I,M=m.encodeValue(JSON.stringify(g(g({},(C=y==null?void 0:y.extraInfo)!=null?C:l),L?{timestamp:L}:{})));return`${m.encodeValue(t)}.${v}.${o}.${M}`}),getToken:({address:y,token:A,signature:I})=>m.getToken(y,A,I),getTokenExpiration:Ji}};var fl=(e,t)=>{var r;return t?t===!0?e:(r=t.apiAddress)!=null?r:e:null},ts=e=>{let t=oe(fe),r=oe(ni),o=(0,es.useRef)(r==null?void 0:r.loginToken),i=fl(t.apiAddress,e),l=$e(g(g({},e===!0?{}:e),i?{apiAddress:i}:{})),p=Boolean(e),d=_r(l),{address:m}=Rr(),T=kt(),x=v=>{o.current=v,T(ot(g({loginToken:v},i?{nativeAuthConfig:l}:{})))},y=()=>{try{return d.initialize()}catch(v){console.error("Unable to get block. Login failed.",v);return}},A=({address:v,signature:L})=>{let M=o.current;if(!M)throw"Token not found. Call `setLoginToken` first.";if(!p){T(ot({loginToken:M,signature:L}));return}let se=d.getToken({address:v,token:M,signature:L});return T(ot(g({loginToken:M,signature:L,nativeAuthToken:se},i?{nativeAuthConfig:l}:{}))),se};return{configuration:l,setLoginToken:x,getNativeAuthLoginToken:y,setTokenLoginInfo:A,refreshNativeAuthTokenLogin:M=>N(void 0,[M],function*({signMessageCallback:v,nativeAuthClientConfig:L}){let H=yield _r(L||l).initialize({noCache:Boolean(L)});if(o.current=H,!H)return;let C=new Mt.SignableMessage({address:new Mt.Address(m),message:s.Buffer.from(`${m}${H}`)}),ke=yield v(C,{});return A({address:m,signature:ke.getSignature().toString("hex")})})}};var Tl=({callbackRoute:e,token:t,nativeAuth:r,onLoginRedirect:o})=>{let[i,l]=(0,Or.useState)(""),[p,d]=(0,Or.useState)(!1),m=r!=null,T=ts(r),x=t,y=kt(),A=Si();function I(){return N(this,null,function*(){if(A)throw new Error(ln);d(!0);let L=rs.ExtensionProvider.getInstance();try{if(!(yield L.init())){console.warn("Something went wrong trying to redirect to wallet login..");return}let se=Ti(),H=encodeURIComponent(fi(e!=null?e:se));if(m&&!x&&(x=yield T.getNativeAuthLoginToken(),!x)){console.warn("Fetching block failed. Login cancelled.");return}x&&T.setLoginToken(x);let C=g({callbackUrl:H},x&&{token:x});yield L.login(C),On(L);let{signature:ke,address:Ee}=L.account;if(!Ee){d(!1),console.warn("Login cancelled.");return}ke&&x&&T.setTokenLoginInfo({signature:ke,address:Ee}),y(Ae({address:Ee,loginMethod:"extension"})),oo({callbackRoute:e,onLoginRedirect:o,options:{signature:ke,address:Ee}})}catch(M){console.error("error loging in",M),l("error logging in"+M.message)}finally{d(!1)}})}let v=Boolean(i);return[I,{loginFailed:v,error:i,isLoading:p&&!v,isLoggedIn:A&&!v}]};0&&(module.exports={useExtensionLogin});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|