@multiversx/sdk-dapp 2.3.3 → 2.3.4
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/DappModal/hooks/index.js +1 -1
- package/UI/DappModal/hooks/useDappModal.js +1 -1
- package/UI/DappModal/index.js +1 -1
- package/UI/ExplorerLink/ExplorerLink.js +1 -1
- package/UI/ExplorerLink/index.js +1 -1
- package/UI/ModalContainer/ModalContainer.js +1 -1
- package/UI/ModalContainer/index.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/Progress/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithWalletConnectModal/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/TransactionStatus/TransactionStatus.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/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/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/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/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/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/ComponentToastFooter.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/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/chunk-2RUB4CB7.js +2 -0
- package/__chunks__/{chunk-UZZTB6J2.js → chunk-2VIMD44A.js} +2 -2
- package/__chunks__/{chunk-OKHHUA7J.js → chunk-2VY7HVTA.js} +2 -2
- package/__chunks__/{chunk-TWPMRPCJ.js → chunk-2XYOBGYY.js} +2 -2
- package/__chunks__/{chunk-ALU6GIOA.js → chunk-2Z5I7OQ3.js} +2 -2
- package/__chunks__/{chunk-IT4RQOGU.js → chunk-3GFVDZOK.js} +2 -2
- package/__chunks__/{chunk-YIID7WXR.js → chunk-3O6LVCTH.js} +2 -2
- package/__chunks__/{chunk-ALOAIKQA.js → chunk-3TMETL3P.js} +2 -2
- package/__chunks__/{chunk-N6VI4QEJ.js → chunk-3TUBOWZO.js} +2 -2
- package/__chunks__/{chunk-7FRPIXPX.js → chunk-46LXE34F.js} +2 -2
- package/__chunks__/{chunk-VOJLYTVI.js → chunk-4PXTETZT.js} +2 -2
- package/__chunks__/{chunk-3NJDVZUF.js → chunk-4QNXGZGX.js} +2 -2
- package/__chunks__/{chunk-I2R4TID7.js → chunk-4TE73X6A.js} +2 -2
- package/__chunks__/chunk-4V4DNQ54.js +2 -0
- package/__chunks__/{chunk-QP7K2LX2.js → chunk-576LTEJP.js} +2 -2
- package/__chunks__/{chunk-L6WV33UF.js → chunk-5MT6ZGXY.js} +2 -2
- package/__chunks__/{chunk-6KHUFFJU.js → chunk-5RAGDKOG.js} +2 -2
- package/__chunks__/{chunk-5ALSFW3O.js → chunk-6DSAU7KZ.js} +2 -2
- package/__chunks__/chunk-6GWZQNWV.js +2 -0
- package/__chunks__/chunk-6JZ6NKVQ.js +2 -0
- package/__chunks__/{chunk-TKK4TCUG.js → chunk-6MP35FV5.js} +2 -2
- package/__chunks__/{chunk-JRRGPQYM.js → chunk-6N3KHK6B.js} +2 -2
- package/__chunks__/{chunk-6GH6VPOK.js → chunk-6YZFGYZN.js} +2 -2
- package/__chunks__/chunk-72LTDKZC.js +2 -0
- package/__chunks__/chunk-7B3ZG2X6.js +2 -0
- package/__chunks__/{chunk-23WABCT6.js → chunk-7BR5BD64.js} +2 -2
- package/__chunks__/{chunk-LCQ2B47Q.js → chunk-7VWGZX3G.js} +2 -2
- package/__chunks__/{chunk-DXK4ZUCH.js → chunk-A5ARP3R6.js} +2 -2
- package/__chunks__/{chunk-TV5JLIO3.js → chunk-ACTDBTKX.js} +2 -2
- package/__chunks__/{chunk-VY4HFSTY.js → chunk-AHCTQWLO.js} +2 -2
- package/__chunks__/{chunk-4RCDPCHR.js → chunk-AL4XDHPF.js} +2 -2
- package/__chunks__/{chunk-U7R3ODDD.js → chunk-ALYWHJWI.js} +2 -2
- package/__chunks__/{chunk-KBOGISKW.js → chunk-ANCW6B7B.js} +2 -2
- package/__chunks__/{chunk-PAD5UBCO.js → chunk-AW4CXK3K.js} +2 -2
- package/__chunks__/{chunk-R6BAD7QL.js → chunk-AWF37FWF.js} +2 -2
- package/__chunks__/{chunk-QN7JZI2J.js → chunk-BAP55IVP.js} +2 -2
- package/__chunks__/chunk-BBFK3KRY.js +2 -0
- package/__chunks__/chunk-BLXNO7BW.js +2 -0
- package/__chunks__/{chunk-K4PKLFGX.js → chunk-BS3UN6JF.js} +2 -2
- package/__chunks__/{chunk-7PSBDNEK.js → chunk-C5WTWDQT.js} +2 -2
- package/__chunks__/{chunk-DYYZ7GH2.js → chunk-CDMQOJ6Q.js} +2 -2
- package/__chunks__/chunk-CF3GYZU5.js +2 -0
- package/__chunks__/{chunk-7FGDNWAK.js → chunk-CHOHVB7O.js} +2 -2
- package/__chunks__/{chunk-WAX2SRRR.js → chunk-CILDKGFA.js} +2 -2
- package/__chunks__/{chunk-HDY53ANG.js → chunk-CORTTH72.js} +2 -2
- package/__chunks__/{chunk-7R7Z5EUR.js → chunk-CUJ3SDUO.js} +2 -2
- package/__chunks__/{chunk-MOEOJYVT.js → chunk-CURVSVC3.js} +2 -2
- package/__chunks__/{chunk-T2NSHK45.js → chunk-CXDNH3H5.js} +2 -2
- package/__chunks__/{chunk-T4MA5YPW.js → chunk-CXOJKK6K.js} +2 -2
- package/__chunks__/{chunk-WPOULSHX.js → chunk-CZJXU5SJ.js} +2 -2
- package/__chunks__/{chunk-MZIDFQZ3.js → chunk-DCYMBICS.js} +2 -2
- package/__chunks__/{chunk-ALKTXMRV.js → chunk-DGPPV3VD.js} +2 -2
- package/__chunks__/{chunk-ZABQNLC5.js → chunk-DTCH2OYG.js} +2 -2
- package/__chunks__/chunk-DUSZZPF5.js +2 -0
- package/__chunks__/chunk-EBDZDPGC.js +2 -0
- package/__chunks__/{chunk-RXQ5SMCE.js → chunk-ECJMZXIM.js} +2 -2
- package/__chunks__/{chunk-YRQBJ7VU.js → chunk-EJCGNGRQ.js} +2 -2
- package/__chunks__/{chunk-FBK4E5NW.js → chunk-ETJKBJCY.js} +2 -2
- package/__chunks__/{chunk-YJ3UC4ZI.js → chunk-FAH7OWWZ.js} +2 -2
- package/__chunks__/{chunk-VSBFML35.js → chunk-FAOUUJ3G.js} +2 -2
- package/__chunks__/{chunk-NCTWW6NZ.js → chunk-FAZZZNFE.js} +2 -2
- package/__chunks__/chunk-FF4TYM4J.js +2 -0
- package/__chunks__/{chunk-KMLULSN5.js → chunk-FYSR5U3I.js} +2 -2
- package/__chunks__/{chunk-M6WZOAKB.js → chunk-FZ2UARTN.js} +2 -2
- package/__chunks__/{chunk-QQTMEJSS.js → chunk-GAZKVMFE.js} +2 -2
- package/__chunks__/chunk-GPQK5HAU.js +2 -0
- package/__chunks__/{chunk-WGSNT4EM.js → chunk-GUA76X56.js} +2 -2
- package/__chunks__/{chunk-EYWWTU44.js → chunk-HRPTYIIJ.js} +2 -2
- package/__chunks__/{chunk-YHPAZ7RG.js → chunk-HV6OTQX5.js} +2 -2
- package/__chunks__/{chunk-5Q2Y6MDB.js → chunk-I77EHZYZ.js} +2 -2
- package/__chunks__/{chunk-7JGMG5Y3.js → chunk-IJCM3NMJ.js} +2 -2
- package/__chunks__/{chunk-KQP4EJVX.js → chunk-J2IVPINO.js} +2 -2
- package/__chunks__/chunk-J53G5Q65.js +2 -0
- package/__chunks__/{chunk-GR3RT6ZZ.js → chunk-JDO4KUTS.js} +2 -2
- package/__chunks__/{chunk-QCJSSLN5.js → chunk-JSMFJB63.js} +2 -2
- package/__chunks__/{chunk-75IZAXPU.js → chunk-JTY5QAD5.js} +2 -2
- package/__chunks__/{chunk-FFVBU5RQ.js → chunk-K3GDAQPP.js} +2 -2
- package/__chunks__/{chunk-QZRKSGF3.js → chunk-K3PGYBWT.js} +2 -2
- package/__chunks__/{chunk-2IU4ZFFH.js → chunk-K5UXVY6F.js} +2 -2
- package/__chunks__/{chunk-5VNLNTWS.js → chunk-KAG22CBV.js} +2 -2
- package/__chunks__/{chunk-GYZ7YF2I.js → chunk-KJQSDPJ2.js} +2 -2
- package/__chunks__/{chunk-V55GBYFZ.js → chunk-KLKE5QPU.js} +2 -2
- package/__chunks__/chunk-KOP4QOFU.js +2 -0
- package/__chunks__/chunk-KP65BVGX.js +2 -0
- package/__chunks__/{chunk-BJXEAGQI.js → chunk-L5UY2GZ7.js} +2 -2
- package/__chunks__/{chunk-KSWTSXQD.js → chunk-LKLFV2XY.js} +2 -2
- package/__chunks__/{chunk-3QOSYPBU.js → chunk-LLMXRDT5.js} +2 -2
- package/__chunks__/{chunk-5E5FMH2P.js → chunk-LM5S6O4W.js} +2 -2
- package/__chunks__/{chunk-2RYHQ6GQ.js → chunk-LTWSIXLW.js} +2 -2
- package/__chunks__/{chunk-CYRCA52K.js → chunk-LW3LLHMS.js} +2 -2
- package/__chunks__/{chunk-L6YXPGX2.js → chunk-LYD5V7BZ.js} +2 -2
- package/__chunks__/{chunk-QCG67HPT.js → chunk-LYG7Y34I.js} +2 -2
- package/__chunks__/{chunk-72DXWEHL.js → chunk-LZCDCSQC.js} +2 -2
- package/__chunks__/chunk-LZMEWL2M.js +2 -0
- package/__chunks__/{chunk-2MMI5UBN.js → chunk-LZWZSX7D.js} +2 -2
- package/__chunks__/{chunk-ZNGQR3EA.js → chunk-M357HOML.js} +2 -2
- package/__chunks__/chunk-MEOTG3Z3.js +2 -0
- package/__chunks__/{chunk-ZIYSW5GV.js → chunk-MLXXWJ4C.js} +2 -2
- package/__chunks__/{chunk-JTPQQKSW.js → chunk-MRDDWPPB.js} +2 -2
- package/__chunks__/chunk-MT2VMS2T.js +2 -0
- package/__chunks__/{chunk-Z2OOX7G7.js → chunk-NGTD7ZV6.js} +2 -2
- package/__chunks__/{chunk-6S6Z43OG.js → chunk-NJZPTWOS.js} +2 -2
- package/__chunks__/{chunk-IIB5LHL2.js → chunk-NXLLUWST.js} +2 -2
- package/__chunks__/{chunk-HX3CK5WP.js → chunk-O256WOXA.js} +2 -2
- package/__chunks__/{chunk-372WAXTQ.js → chunk-OAL65NMD.js} +2 -2
- package/__chunks__/{chunk-BXMSEXMF.js → chunk-OCVU3HTM.js} +2 -2
- package/__chunks__/{chunk-VHVGMQVY.js → chunk-OH43OAXQ.js} +2 -2
- package/__chunks__/{chunk-ZEB6PEPS.js → chunk-OJLDQY4F.js} +2 -2
- package/__chunks__/{chunk-S6HSNFR4.js → chunk-OLCX44GZ.js} +2 -2
- package/__chunks__/{chunk-WVADOL2D.js → chunk-OS2TAKJT.js} +2 -2
- package/__chunks__/{chunk-JFTNS53I.js → chunk-PBN22HGT.js} +2 -2
- package/__chunks__/{chunk-5XJBRFH7.js → chunk-PJX5AD3P.js} +2 -2
- package/__chunks__/{chunk-WIFR7W45.js → chunk-PKHJLTMB.js} +2 -2
- package/__chunks__/{chunk-5Q2WXT6C.js → chunk-PMRHP2KX.js} +2 -2
- package/__chunks__/{chunk-6LJGDAKR.js → chunk-PQ2ECNXJ.js} +2 -2
- package/__chunks__/{chunk-4BJZ3PT3.js → chunk-PV6FDMJO.js} +2 -2
- package/__chunks__/{chunk-IQ6OIUKX.js → chunk-PVTIYMA7.js} +2 -2
- package/__chunks__/chunk-Q2P2Y34N.js +2 -0
- package/__chunks__/{chunk-U4DREZMZ.js → chunk-Q5WD4K5J.js} +2 -2
- package/__chunks__/{chunk-DSW55A4J.js → chunk-Q7A7VRXY.js} +2 -2
- package/__chunks__/chunk-QB5KM2A7.js +2 -0
- package/__chunks__/{chunk-WHEA5HYP.js → chunk-QFH7RZH4.js} +2 -2
- package/__chunks__/{chunk-77SY3HCE.js → chunk-QPUSY5J3.js} +2 -2
- package/__chunks__/{chunk-SHYWSDZ2.js → chunk-QSYYDD4H.js} +2 -2
- package/__chunks__/{chunk-F2X5VVIZ.js → chunk-QWNNDYSH.js} +2 -2
- package/__chunks__/{chunk-IFEQG3BM.js → chunk-R4VNOC32.js} +2 -2
- package/__chunks__/{chunk-PQPMBI5T.js → chunk-RD2OSARF.js} +2 -2
- package/__chunks__/{chunk-PD45WZNF.js → chunk-RRZHNSRS.js} +2 -2
- package/__chunks__/{chunk-OAQIIBF7.js → chunk-SB3V3QDU.js} +2 -2
- package/__chunks__/{chunk-SUFYB7SU.js → chunk-SHZWJNZQ.js} +2 -2
- package/__chunks__/{chunk-ARZZT52Z.js → chunk-SLTHN4TJ.js} +2 -2
- package/__chunks__/chunk-SMEGYC6D.js +2 -0
- package/__chunks__/{chunk-FDYRA6XJ.js → chunk-SOUBDOIW.js} +2 -2
- package/__chunks__/{chunk-PBRBN2YY.js → chunk-SOUFGWHE.js} +2 -2
- package/__chunks__/{chunk-KHROB3G5.js → chunk-SZQQ3B7M.js} +2 -2
- package/__chunks__/chunk-T2AALMDP.js +2 -0
- package/__chunks__/{chunk-3P3HSTXF.js → chunk-T6VGQDUD.js} +2 -2
- package/__chunks__/{chunk-D2AKK7KI.js → chunk-TCJKUH64.js} +2 -2
- package/__chunks__/chunk-TEH2VTT4.js +2 -0
- package/__chunks__/{chunk-VB7EWJQ6.js → chunk-TXZPZQSD.js} +2 -2
- package/__chunks__/{chunk-2XGSMJKV.js → chunk-U3HZ2UHB.js} +2 -2
- package/__chunks__/{chunk-3E6Y3O25.js → chunk-U5CDBI33.js} +2 -2
- package/__chunks__/{chunk-QDBNFC47.js → chunk-UKYRBHVO.js} +2 -2
- package/__chunks__/{chunk-H4R6KAC3.js → chunk-US6GHNTN.js} +2 -2
- package/__chunks__/{chunk-4U27GF7V.js → chunk-UY5ICMA3.js} +2 -2
- package/__chunks__/{chunk-MY633BEI.js → chunk-UYXYU7BY.js} +2 -2
- package/__chunks__/chunk-V36EE44U.js +2 -0
- package/__chunks__/chunk-V3O7HHG3.js +2 -0
- package/__chunks__/{chunk-NXJ3WD7Q.js → chunk-VIUOPUSR.js} +2 -2
- package/__chunks__/{chunk-USKW77WO.js → chunk-VJ3MRSWU.js} +2 -2
- package/__chunks__/{chunk-MDRRV726.js → chunk-VJ63KLMX.js} +2 -2
- package/__chunks__/{chunk-H3PYQ4QV.js → chunk-VOHAJGXW.js} +2 -2
- package/__chunks__/{chunk-7ASLPEOW.js → chunk-VOHYBXNN.js} +2 -2
- package/__chunks__/{chunk-SJBVHNRS.js → chunk-VVUQZA2G.js} +2 -2
- package/__chunks__/{chunk-QTYKPJCG.js → chunk-VXCCSFU4.js} +2 -2
- package/__chunks__/{chunk-LJXU3CGD.js → chunk-WCUVB4PB.js} +2 -2
- package/__chunks__/{chunk-PJYVNCWQ.js → chunk-WJ44H4KG.js} +2 -2
- package/__chunks__/{chunk-4JTWWYEP.js → chunk-WL4WQ6NX.js} +2 -2
- package/__chunks__/chunk-WWOYU2ZW.js +2 -0
- package/__chunks__/chunk-WXGINYRC.js +2 -0
- package/__chunks__/{chunk-6LXORK57.js → chunk-XETGMOCA.js} +2 -2
- package/__chunks__/{chunk-HQQXV7WQ.js → chunk-XMBMB2HA.js} +2 -2
- package/__chunks__/{chunk-W4CWA4KM.js → chunk-XNEUL4SO.js} +2 -2
- package/__chunks__/{chunk-KAOERY2M.js → chunk-XRJFZEGV.js} +2 -2
- package/__chunks__/{chunk-ZMTFL7CC.js → chunk-Y3C3SGYG.js} +2 -2
- package/__chunks__/{chunk-Y7VP4PME.js → chunk-Y5IK26Y5.js} +2 -2
- package/__chunks__/{chunk-NKTSGS4A.js → chunk-YNPZ2RGD.js} +2 -2
- package/__chunks__/{chunk-KNPSAOWD.js → chunk-YQLYWV7C.js} +2 -2
- package/__chunks__/{chunk-ELLRUCGQ.js → chunk-YSVSZ6MS.js} +2 -2
- package/__chunks__/{chunk-CZR4SEII.js → chunk-YVHBU2Y6.js} +2 -2
- package/__chunks__/{chunk-UXRDAS7C.js → chunk-YVHR27HJ.js} +2 -2
- package/__chunks__/{chunk-SLXALMUS.js → chunk-Z74X35LP.js} +2 -2
- package/__chunks__/{chunk-4Y4O2KWM.js → chunk-ZC6XNQ6T.js} +2 -2
- package/__chunks__/{chunk-7RLOHZID.js → chunk-ZG2IFTIT.js} +2 -2
- package/__chunks__/{chunk-GTEK6WFJ.js → chunk-ZIFOGL5Z.js} +2 -2
- package/__chunks__/{chunk-FVYIDDES.js → chunk-ZQ2EMOPN.js} +2 -2
- package/__chunks__/chunk-ZUPVHFAA.js +2 -0
- package/__chunks__/{chunk-UYVTJE63.js → chunk-ZUR56TCY.js} +2 -2
- package/__chunks__/{chunk-US5YWUWE.js → chunk-ZWB52WH6.js} +2 -2
- package/__commonjs/UI/DappModal/hooks/index.js +1 -1
- package/__commonjs/UI/DappModal/hooks/useDappModal.js +1 -1
- package/__commonjs/UI/DappModal/index.js +3 -3
- package/__commonjs/UI/ModalContainer/ModalContainer.js +1 -1
- package/__commonjs/UI/ModalContainer/index.js +1 -1
- package/__commonjs/UI/NotificationModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +9 -9
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +4 -4
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/index.js +9 -9
- package/__commonjs/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/index.js +1 -1
- package/__commonjs/UI/TransactionsTable/TransactionsTable.js +1 -1
- package/__commonjs/UI/TransactionsTable/index.js +1 -1
- package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +8 -8
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +8 -8
- package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/index.js +11 -11
- package/__commonjs/UI/TransactionsToastList/index.js +1 -1
- package/__commonjs/UI/index.js +61 -61
- package/__commonjs/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +2 -2
- package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/__commonjs/UI/ledger/index.js +1 -1
- package/__commonjs/UI/pages/UnlockPage/index.js +11 -11
- package/__commonjs/UI/pages/index.js +11 -11
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +3 -3
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +4 -4
- package/__commonjs/UI/walletConnect/index.js +3 -3
- package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +3 -3
- 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/LogoutListener/LogoutListener.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/index.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/__commonjs/components/LogoutListener/index.js +1 -1
- package/__commonjs/components/ProviderInitializer.js +1 -1
- package/__commonjs/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/__commonjs/components/TransactionsTracker/index.js +1 -1
- package/__commonjs/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/login/index.js +1 -1
- package/__commonjs/hooks/login/useWebWalletLogin.js +1 -1
- package/__commonjs/utils/sanitizeCallbackUrl.js +9 -0
- package/__commonjs/wrappers/DappProvider/CustomComponents.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/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/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.js +1 -1
- package/components/TransactionSender/TransactionSender.js +1 -1
- package/components/TransactionSender/index.js +1 -1
- package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/hooks/account/index.js +1 -1
- package/hooks/account/useGetAccount.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/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useExtensionLogin.js +1 -1
- package/hooks/login/useLedgerLogin.js +1 -1
- package/hooks/login/useLoginService.js +1 -1
- package/hooks/login/useWalletConnectLogin.js +1 -1
- package/hooks/login/useWalletConnectV2Login.js +1 -1
- package/hooks/login/useWebWalletLogin.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/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
- package/hooks/transactions/helpers/index.js +1 -1
- package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.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/manageFailedTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.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/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/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/useGetNetworkConfig.js +1 -1
- package/hooks/useGetNotification.js +1 -1
- package/hooks/userInterface/index.js +1 -1
- package/hooks/userInterface/useIsDappModalVisible.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/DappProviderContext.js +1 -1
- package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
- package/reduxStore/persistConfig.js +1 -1
- package/reduxStore/persistedRootReducer.js +1 -1
- package/reduxStore/reducers.js +1 -1
- package/reduxStore/rootReducer.js +1 -1
- package/reduxStore/selectors/accountInfoSelectors.js +1 -1
- package/reduxStore/selectors/index.js +1 -1
- package/reduxStore/selectors/loginInfoSelectors.js +1 -1
- package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
- package/reduxStore/selectors/transactionsSelectors.js +1 -1
- package/reduxStore/slices/accountInfoSlice.js +1 -1
- package/reduxStore/slices/index.js +1 -1
- package/reduxStore/slices/loginInfoSlice.d.ts +2 -2
- package/reduxStore/slices/loginInfoSlice.js +1 -1
- package/reduxStore/store.js +1 -1
- package/services/index.js +1 -1
- package/services/transactions/clearTransactions.js +1 -1
- package/services/transactions/index.js +1 -1
- package/services/transactions/sendTransactions.js +1 -1
- package/services/transactions/signTransactions.js +1 -1
- package/services/transactions/transformAndSignTransactions.js +1 -1
- package/storage/local.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/loginWithExternalProvider.js +1 -1
- package/utils/account/refreshAccount.js +1 -1
- package/utils/account/setNonce.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/sanitizeCallbackUrl.d.ts +2 -0
- package/utils/sanitizeCallbackUrl.js +2 -0
- package/utils/storage/index.js +1 -1
- package/utils/tests/sanitizeCallbackUrl.test.d.ts +2 -0
- package/utils/toasts/customToastsActions.js +1 -1
- package/utils/toasts/index.js +1 -1
- package/utils/transactions/getAllTransactionsLink.js +1 -1
- package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/index.js +1 -1
- package/utils/transactions/getTransactionLink.js +1 -1
- package/utils/transactions/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/transactionActionUnwrapper.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/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/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-3AOYVMRJ.js +0 -2
- package/__chunks__/chunk-4AIE24DS.js +0 -2
- package/__chunks__/chunk-53VAVQW3.js +0 -2
- package/__chunks__/chunk-6QHTOLCT.js +0 -2
- package/__chunks__/chunk-6ZGALJRB.js +0 -2
- package/__chunks__/chunk-7NHF2W5Z.js +0 -2
- package/__chunks__/chunk-7Y6YJ4ZF.js +0 -2
- package/__chunks__/chunk-ABVIJYXG.js +0 -2
- package/__chunks__/chunk-AEEVEPBH.js +0 -2
- package/__chunks__/chunk-D2S75FIJ.js +0 -2
- package/__chunks__/chunk-DBZNKJCO.js +0 -2
- package/__chunks__/chunk-DR65UVWL.js +0 -2
- package/__chunks__/chunk-EMDPC2AJ.js +0 -2
- package/__chunks__/chunk-G43B373M.js +0 -2
- package/__chunks__/chunk-G737UHQB.js +0 -2
- package/__chunks__/chunk-HSRWKKTJ.js +0 -2
- package/__chunks__/chunk-JA6VLNIR.js +0 -2
- package/__chunks__/chunk-KVWHQQ6T.js +0 -2
- package/__chunks__/chunk-M7ITPD6X.js +0 -2
- package/__chunks__/chunk-N333Z2BV.js +0 -2
- package/__chunks__/chunk-NUJXGF6Y.js +0 -2
- package/__chunks__/chunk-O7ENQI63.js +0 -2
- package/__chunks__/chunk-RCRLXXJQ.js +0 -2
- package/__chunks__/chunk-T2MVETZ4.js +0 -2
- package/__chunks__/chunk-WOS6T7ZV.js +0 -2
- package/__chunks__/chunk-XCLZ5AS2.js +0 -2
- package/__chunks__/chunk-XGHGX644.js +0 -2
- package/__chunks__/chunk-XYSWLSUL.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Oc=Object.create;var jt=Object.defineProperty,Fc=Object.defineProperties,_c=Object.getOwnPropertyDescriptor,Uc=Object.getOwnPropertyDescriptors,Bc=Object.getOwnPropertyNames,lr=Object.getOwnPropertySymbols,Wc=Object.getPrototypeOf,cn=Object.prototype.hasOwnProperty,bo=Object.prototype.propertyIsEnumerable;var Io=(e,t,r)=>t in e?jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,y=(e,t)=>{for(var r in t||(t={}))cn.call(t,r)&&Io(e,r,t[r]);if(lr)for(var r of lr(t))bo.call(t,r)&&Io(e,r,t[r]);return e},E=(e,t)=>Fc(e,Uc(t));var ko=e=>typeof e=="symbol"?e:e+"",Qe=(e,t)=>{var r={};for(var o in e)cn.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&lr)for(var o of lr(e))t.indexOf(o)<0&&bo.call(e,o)&&(r[o]=e[o]);return r};var v=(e,t)=>()=>(e&&(t=e(e=0)),t);var pr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),et=(e,t)=>{for(var r in t)jt(e,r,{get:t[r],enumerable:!0})},Eo=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Bc(t))!cn.call(e,i)&&i!==r&&jt(e,i,{get:()=>t[i],enumerable:!(o=_c(t,i))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?Oc(Wc(e)):{},Eo(t||!e||!e.__esModule?jt(r,"default",{value:e,enumerable:!0}):r,e)),qt=e=>Eo(jt({},"__esModule",{value:!0}),e);var T=(e,t,r)=>new Promise((o,i)=>{var l=u=>{try{d(r.next(u))}catch(g){i(g)}},p=u=>{try{d(r.throw(u))}catch(g){i(g)}},d=u=>u.done?o(u.value):Promise.resolve(u.value).then(l,p);d((r=r.apply(e,t)).next())});var Co=pr(ur=>{"use strict";n();ur.byteLength=Gc;ur.toByteArray=Hc;ur.fromByteArray=qc;var fe=[],ae=[],$c=typeof Uint8Array!="undefined"?Uint8Array:Array,ln="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(tt=0,Lo=ln.length;tt<Lo;++tt)fe[tt]=ln[tt],ae[ln.charCodeAt(tt)]=tt;var tt,Lo;ae["-".charCodeAt(0)]=62;ae["_".charCodeAt(0)]=63;function Po(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 Gc(e){var t=Po(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Vc(e,t,r){return(t+r)*3/4-r}function Hc(e){var t,r=Po(e),o=r[0],i=r[1],l=new $c(Vc(e,o,i)),p=0,d=i>0?o-4:o,u;for(u=0;u<d;u+=4)t=ae[e.charCodeAt(u)]<<18|ae[e.charCodeAt(u+1)]<<12|ae[e.charCodeAt(u+2)]<<6|ae[e.charCodeAt(u+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=ae[e.charCodeAt(u)]<<2|ae[e.charCodeAt(u+1)]>>4,l[p++]=t&255),i===1&&(t=ae[e.charCodeAt(u)]<<10|ae[e.charCodeAt(u+1)]<<4|ae[e.charCodeAt(u+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function zc(e){return fe[e>>18&63]+fe[e>>12&63]+fe[e>>6&63]+fe[e&63]}function jc(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(zc(o));return i.join("")}function qc(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(jc(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(fe[t>>2]+fe[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(fe[t>>10]+fe[t>>4&63]+fe[t<<2&63]+"=")),i.join("")}});var Do=pr(pn=>{n();pn.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,u=(1<<d)-1,g=u>>1,f=-7,h=r?i-1:0,I=r?-1:1,P=e[t+h];for(h+=I,l=P&(1<<-f)-1,P>>=-f,f+=d;f>0;l=l*256+e[t+h],h+=I,f-=8);for(p=l&(1<<-f)-1,l>>=-f,f+=o;f>0;p=p*256+e[t+h],h+=I,f-=8);if(l===0)l=1-g;else{if(l===u)return p?NaN:(P?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-g}return(P?-1:1)*p*Math.pow(2,l-o)};pn.write=function(e,t,r,o,i,l){var p,d,u,g=l*8-i-1,f=(1<<g)-1,h=f>>1,I=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=o?0:l-1,k=o?1:-1,b=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=f):(p=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-p))<1&&(p--,u*=2),p+h>=1?t+=I/u:t+=I*Math.pow(2,1-h),t*u>=2&&(p++,u/=2),p+h>=f?(d=0,p=f):p+h>=1?(d=(t*u-1)*Math.pow(2,i),p=p+h):(d=t*Math.pow(2,h-1)*Math.pow(2,i),p=0));i>=8;e[r+P]=d&255,P+=k,d/=256,i-=8);for(p=p<<i|d,g+=i;g>0;e[r+P]=p&255,P+=k,p/=256,g-=8);e[r+P-k]|=b*128}});var Ho=pr(Tt=>{"use strict";n();var un=Co(),ft=Do(),No=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Tt.Buffer=m;Tt.SlowBuffer=Qc;Tt.INSPECT_MAX_BYTES=50;var dr=2147483647;Tt.kMaxLength=dr;m.TYPED_ARRAY_SUPPORT=Kc();!m.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 Kc(){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(m.prototype,"parent",{enumerable:!0,get:function(){if(!!m.isBuffer(this))return this.buffer}});Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(!!m.isBuffer(this))return this.byteOffset}});function ve(e){if(e>dr)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,m.prototype),t}function m(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 fn(e)}return Oo(e,t,r)}m.poolSize=8192;function Oo(e,t,r){if(typeof e=="string")return Zc(e,t);if(ArrayBuffer.isView(e))return Jc(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(Te(e,ArrayBuffer)||e&&Te(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Te(e,SharedArrayBuffer)||e&&Te(e.buffer,SharedArrayBuffer)))return mn(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 m.from(o,t,r);var i=Xc(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return m.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)}m.from=function(e,t,r){return Oo(e,t,r)};Object.setPrototypeOf(m.prototype,Uint8Array.prototype);Object.setPrototypeOf(m,Uint8Array);function Fo(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 Yc(e,t,r){return Fo(e),e<=0?ve(e):t!==void 0?typeof r=="string"?ve(e).fill(t,r):ve(e).fill(t):ve(e)}m.alloc=function(e,t,r){return Yc(e,t,r)};function fn(e){return Fo(e),ve(e<0?0:Tn(e)|0)}m.allocUnsafe=function(e){return fn(e)};m.allocUnsafeSlow=function(e){return fn(e)};function Zc(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!m.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=_o(e,t)|0,o=ve(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function dn(e){for(var t=e.length<0?0:Tn(e.length)|0,r=ve(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function Jc(e){if(Te(e,Uint8Array)){var t=new Uint8Array(e);return mn(t.buffer,t.byteOffset,t.byteLength)}return dn(e)}function mn(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,m.prototype),o}function Xc(e){if(m.isBuffer(e)){var t=Tn(e.length)|0,r=ve(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||yn(e.length)?ve(0):dn(e);if(e.type==="Buffer"&&Array.isArray(e.data))return dn(e.data)}function Tn(e){if(e>=dr)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+dr.toString(16)+" bytes");return e|0}function Qc(e){return+e!=e&&(e=0),m.alloc(+e)}m.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==m.prototype};m.compare=function(t,r){if(Te(t,Uint8Array)&&(t=m.from(t,t.offset,t.byteLength)),Te(r,Uint8Array)&&(r=m.from(r,r.offset,r.byteLength)),!m.isBuffer(t)||!m.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};m.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}};m.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return m.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=m.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(Te(p,Uint8Array))l+p.length>i.length?m.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(m.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function _o(e,t){if(m.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Te(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 gn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Vo(e).length;default:if(i)return o?-1:gn(e).length;t=(""+t).toLowerCase(),i=!0}}m.byteLength=_o;function el(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 pl(this,t,r);case"utf8":case"utf-8":return Bo(this,t,r);case"ascii":return cl(this,t,r);case"latin1":case"binary":return ll(this,t,r);case"base64":return sl(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ul(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}m.prototype._isBuffer=!0;function rt(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}m.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)rt(this,r,r+1);return this};m.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)rt(this,r,r+3),rt(this,r+1,r+2);return this};m.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)rt(this,r,r+7),rt(this,r+1,r+6),rt(this,r+2,r+5),rt(this,r+3,r+4);return this};m.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Bo(this,0,t):el.apply(this,arguments)};m.prototype.toLocaleString=m.prototype.toString;m.prototype.equals=function(t){if(!m.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:m.compare(this,t)===0};m.prototype.inspect=function(){var t="",r=Tt.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};No&&(m.prototype[No]=m.prototype.inspect);m.prototype.compare=function(t,r,o,i,l){if(Te(t,Uint8Array)&&(t=m.from(t,t.offset,t.byteLength)),!m.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,u=Math.min(p,d),g=this.slice(i,l),f=t.slice(r,o),h=0;h<u;++h)if(g[h]!==f[h]){p=g[h],d=f[h];break}return p<d?-1:d<p?1:0};function Uo(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,yn(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=m.from(t,o)),m.isBuffer(t))return t.length===0?-1:Ro(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):Ro(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function Ro(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 u(P,k){return l===1?P[k]:P.readUInt16BE(k*l)}var g;if(i){var f=-1;for(g=r;g<p;g++)if(u(e,g)===u(t,f===-1?0:g-f)){if(f===-1&&(f=g),g-f+1===d)return f*l}else f!==-1&&(g-=g-f),f=-1}else for(r+d>p&&(r=p-d),g=r;g>=0;g--){for(var h=!0,I=0;I<d;I++)if(u(e,g+I)!==u(t,I)){h=!1;break}if(h)return g}return-1}m.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};m.prototype.indexOf=function(t,r,o){return Uo(this,t,r,o,!0)};m.prototype.lastIndexOf=function(t,r,o){return Uo(this,t,r,o,!1)};function tl(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(yn(d))return p;e[r+p]=d}return p}function rl(e,t,r,o){return mr(gn(t,e.length-r),e,r,o)}function nl(e,t,r,o){return mr(gl(t),e,r,o)}function ol(e,t,r,o){return mr(Vo(t),e,r,o)}function il(e,t,r,o){return mr(fl(t,e.length-r),e,r,o)}m.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 tl(this,t,r,o);case"utf8":case"utf-8":return rl(this,t,r,o);case"ascii":case"latin1":case"binary":return nl(this,t,r,o);case"base64":return ol(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return il(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function sl(e,t,r){return t===0&&r===e.length?un.fromByteArray(e):un.fromByteArray(e.slice(t,r))}function Bo(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 u,g,f,h;switch(d){case 1:l<128&&(p=l);break;case 2:u=e[i+1],(u&192)===128&&(h=(l&31)<<6|u&63,h>127&&(p=h));break;case 3:u=e[i+1],g=e[i+2],(u&192)===128&&(g&192)===128&&(h=(l&15)<<12|(u&63)<<6|g&63,h>2047&&(h<55296||h>57343)&&(p=h));break;case 4:u=e[i+1],g=e[i+2],f=e[i+3],(u&192)===128&&(g&192)===128&&(f&192)===128&&(h=(l&15)<<18|(u&63)<<12|(g&63)<<6|f&63,h>65535&&h<1114112&&(p=h))}}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 al(o)}var Mo=4096;function al(e){var t=e.length;if(t<=Mo)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=Mo));return r}function cl(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 ll(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 pl(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+=Tl[e[l]];return i}function ul(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}m.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,m.prototype),i};function $(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")}m.prototype.readUintLE=m.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||$(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};m.prototype.readUintBE=m.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||$(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};m.prototype.readUint8=m.prototype.readUInt8=function(t,r){return t=t>>>0,r||$(t,1,this.length),this[t]};m.prototype.readUint16LE=m.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||$(t,2,this.length),this[t]|this[t+1]<<8};m.prototype.readUint16BE=m.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||$(t,2,this.length),this[t]<<8|this[t+1]};m.prototype.readUint32LE=m.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||$(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};m.prototype.readUint32BE=m.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||$(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};m.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||$(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};m.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||$(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};m.prototype.readInt8=function(t,r){return t=t>>>0,r||$(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};m.prototype.readInt16LE=function(t,r){t=t>>>0,r||$(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};m.prototype.readInt16BE=function(t,r){t=t>>>0,r||$(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};m.prototype.readInt32LE=function(t,r){return t=t>>>0,r||$(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};m.prototype.readInt32BE=function(t,r){return t=t>>>0,r||$(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};m.prototype.readFloatLE=function(t,r){return t=t>>>0,r||$(t,4,this.length),ft.read(this,t,!0,23,4)};m.prototype.readFloatBE=function(t,r){return t=t>>>0,r||$(t,4,this.length),ft.read(this,t,!1,23,4)};m.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||$(t,8,this.length),ft.read(this,t,!0,52,8)};m.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||$(t,8,this.length),ft.read(this,t,!1,52,8)};function te(e,t,r,o,i,l){if(!m.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")}m.prototype.writeUintLE=m.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;te(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};m.prototype.writeUintBE=m.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;te(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};m.prototype.writeUint8=m.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||te(this,t,r,1,255,0),this[r]=t&255,r+1};m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||te(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||te(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||te(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};m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||te(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};m.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);te(this,t,r,o,l-1,-l)}var p=0,d=1,u=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&u===0&&this[r+p-1]!==0&&(u=1),this[r+p]=(t/d>>0)-u&255;return r+o};m.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);te(this,t,r,o,l-1,-l)}var p=o-1,d=1,u=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&u===0&&this[r+p+1]!==0&&(u=1),this[r+p]=(t/d>>0)-u&255;return r+o};m.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||te(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};m.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||te(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};m.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||te(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};m.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||te(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};m.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||te(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 Wo(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 $o(e,t,r,o,i){return t=+t,r=r>>>0,i||Wo(e,t,r,4,34028234663852886e22,-34028234663852886e22),ft.write(e,t,r,o,23,4),r+4}m.prototype.writeFloatLE=function(t,r,o){return $o(this,t,r,!0,o)};m.prototype.writeFloatBE=function(t,r,o){return $o(this,t,r,!1,o)};function Go(e,t,r,o,i){return t=+t,r=r>>>0,i||Wo(e,t,r,8,17976931348623157e292,-17976931348623157e292),ft.write(e,t,r,o,52,8),r+8}m.prototype.writeDoubleLE=function(t,r,o){return Go(this,t,r,!0,o)};m.prototype.writeDoubleBE=function(t,r,o){return Go(this,t,r,!1,o)};m.prototype.copy=function(t,r,o,i){if(!m.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};m.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"&&!m.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=m.isBuffer(t)?t:m.from(t,i),u=d.length;if(u===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%u]}return this};var dl=/[^+/0-9A-Za-z-_]/g;function ml(e){if(e=e.split("=")[0],e=e.trim().replace(dl,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function gn(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 gl(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function fl(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 Vo(e){return un.toByteArray(ml(e))}function mr(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 Te(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function yn(e){return e!==e}var Tl=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 Yo=pr((sd,Ko)=>{n();var _=Ko.exports={},ye,he;function hn(){throw new Error("setTimeout has not been defined")}function Sn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ye=setTimeout:ye=hn}catch(e){ye=hn}try{typeof clearTimeout=="function"?he=clearTimeout:he=Sn}catch(e){he=Sn}})();function zo(e){if(ye===setTimeout)return setTimeout(e,0);if((ye===hn||!ye)&&setTimeout)return ye=setTimeout,setTimeout(e,0);try{return ye(e,0)}catch(t){try{return ye.call(null,e,0)}catch(r){return ye.call(this,e,0)}}}function yl(e){if(he===clearTimeout)return clearTimeout(e);if((he===Sn||!he)&&clearTimeout)return he=clearTimeout,clearTimeout(e);try{return he(e)}catch(t){try{return he.call(null,e)}catch(r){return he.call(this,e)}}}var Ae=[],yt=!1,nt,gr=-1;function hl(){!yt||!nt||(yt=!1,nt.length?Ae=nt.concat(Ae):gr=-1,Ae.length&&jo())}function jo(){if(!yt){var e=zo(hl);yt=!0;for(var t=Ae.length;t;){for(nt=Ae,Ae=[];++gr<t;)nt&&nt[gr].run();gr=-1,t=Ae.length}nt=null,yt=!1,yl(e)}}_.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];Ae.push(new qo(e,t)),Ae.length===1&&!yt&&zo(jo)};function qo(e,t){this.fun=e,this.array=t}qo.prototype.run=function(){this.fun.apply(null,this.array)};_.title="browser";_.browser=!0;_.env={};_.argv=[];_.version="";_.versions={};function Ie(){}_.on=Ie;_.addListener=Ie;_.once=Ie;_.off=Ie;_.removeListener=Ie;_.removeAllListeners=Ie;_.emit=Ie;_.prependListener=Ie;_.prependOnceListener=Ie;_.listeners=function(e){return[]};_.binding=function(e){throw new Error("process.binding is not supported")};_.cwd=function(){return"/"};_.chdir=function(e){throw new Error("process.chdir is not supported")};_.umask=function(){return 0}});var s,a,ad,n=v(()=>{s=A(Ho()),a=A(Yo()),ad=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)});var ht=v(()=>{"use strict";n()});var Zo=v(()=>{"use strict";n()});var Jo=v(()=>{"use strict";n()});var Xo=v(()=>{"use strict";n()});var R=v(()=>{"use strict";n()});var Qo=v(()=>{"use strict";n()});var ei=v(()=>{"use strict";n()});var Z=v(()=>{"use strict";n()});var ti=v(()=>{"use strict";n()});var ri=v(()=>{"use strict";n()});var J=v(()=>{"use strict";n();Zo();Jo();Xo();R();Qo();ei();Z();ti();ri()});var ot,ni,kd,oi,Ed,ii,Ld,Pd,Sl,St=v(()=>{"use strict";n();J();ot={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:ni,egldLabel:kd}=ot["devnet"],{chainId:oi,egldLabel:Ed}=ot["testnet"],{chainId:ii,egldLabel:Ld}=ot["mainnet"],Pd={["devnet"]:ni,["testnet"]:oi,["mainnet"]:ii},Sl={[ni]:"devnet",[oi]:"testnet",[ii]:"mainnet"}});var xn=v(()=>{"use strict";n()});var si=v(()=>{"use strict";n()});var fr,wn=v(()=>{"use strict";n();fr="transaction-status-toast-id"});var Kt,Tr,ai,ci,yr,li,xt,D=v(()=>{"use strict";n();ht();St();xn();si();wn();Kt=5e4,Tr=1e9,ai=1,ci=1,yr="logout",li="login",xt="0"});var wt,hr=v(()=>{"use strict";n();wt=()=>Date.now()/1e3});var pi=v(()=>{"use strict";n()});var ui=v(()=>{"use strict";n()});var vn=v(()=>{"use strict";n();hr();pi();ui()});var In={};et(In,{getItem:()=>wl,localStorageKeys:()=>ce,removeItem:()=>vl,setItem:()=>xl});var ce,An,xl,wl,vl,it=v(()=>{"use strict";n();vn();ce={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},An=typeof localStorage!="undefined",xl=({key:e,data:t,expires:r})=>{!An||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},wl=e=>{if(!An)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:wt()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},vl=e=>{!An||localStorage.removeItem(String(e))}});var bn={};et(bn,{clear:()=>fi,getItem:()=>mi,removeItem:()=>gi,setItem:()=>di,storage:()=>Al});var di,mi,gi,fi,Al,Ti=v(()=>{"use strict";n();di=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},mi=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},gi=e=>sessionStorage.removeItem(String(e)),fi=()=>sessionStorage.clear(),Al={setItem:di,getItem:mi,removeItem:gi,clear:fi}});var be,vt=v(()=>{"use strict";n();it();Ti();be={session:bn,local:In}});var kn,G,oe,Y=v(()=>{"use strict";n();kn=require("@reduxjs/toolkit");D();G=(0,kn.createAction)(yr),oe=(0,kn.createAction)(li,e=>({payload:e}))});var Ln,yi,hi,Sr,En,Si,st,nm,xr,om,Pn,Il,im,At,xi,wi,vi,Cn=v(()=>{"use strict";n();Ln=require("@multiversx/sdk-core"),yi=require("@reduxjs/toolkit"),hi=require("redux-persist");D();vt();it();Y();Sr={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:xt},En={address:"",websocketEvent:null,accounts:{"":Sr},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Si=(0,yi.createSlice)({name:"accountInfoSlice",initialState:En,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Ln.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Sr},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(G,()=>(be.local.removeItem(ce.loginExpiresAt),En)),e.addCase(oe,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new Ln.Address(o).hex()}),e.addCase(hi.REHYDRATE,(t,r)=>{var g;if(!((g=r.payload)!=null&&g.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let u=p&&i in p;t.accounts=u?p:En.accounts,t.publicKey=d})}}),{setAccount:st,setAddress:nm,setAccountNonce:xr,setAccountShard:om,setLedgerAccount:Pn,updateLedgerAccount:Il,setWalletConnectAccount:im,setIsAccountLoading:At,setAccountLoadingError:xi,setWebsocketEvent:wi}=Si.actions,vi=Si.reducer});function Yt(){return new Date().setHours(new Date().getHours()+24)}function Zt(e){be.local.setItem({key:ce.loginExpiresAt,data:e,expires:e})}var Dn=v(()=>{"use strict";n();vt();it()});var Ii,Ai,bi,fm,wr,bl,vr,Tm,Ar,ki,Ei,Li,Ir=v(()=>{"use strict";n();Ii=require("@reduxjs/toolkit");Dn();R();Y();Ai={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,isLoginSessionInvalid:!1},bi=(0,Ii.createSlice)({name:"loginInfoSlice",initialState:Ai,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(G,()=>Ai),e.addCase(oe,(t,r)=>{t.loginMethod=r.payload.loginMethod,Zt(Yt())})}}),{setLoginMethod:fm,setWalletConnectLogin:wr,setLedgerLogin:bl,setTokenLogin:vr,setTokenLoginSignature:Tm,setWalletLogin:Ar,invalidateLoginSession:ki,setLogoutRoute:Ei}=bi.actions,Li=bi.reducer});var Ci,Pi,Di,Ni,kl,xm,El,Ri,Nn=v(()=>{"use strict";n();Ci=require("@reduxjs/toolkit");Y();Pi={},Di=(0,Ci.createSlice)({name:"modalsSlice",initialState:Pi,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(G,()=>Pi)}}),{setTxSubmittedModal:Ni,setNotificationModal:kl,clearTxSubmittedModal:xm,clearNotificationModal:El}=Di.actions,Ri=Di.reducer});var Mi,Oi,ke,at=v(()=>{"use strict";n();Mi=!1,Oi=(e=!0)=>{Mi=e},ke=(e,t=0)=>{Mi||setTimeout(()=>{window.location.href=e,window.location.assign(e)},t)}});function It({callbackRoute:e,onLoginRedirect:t,options:r}){let o=Boolean(e),i=typeof t=="function",l=i?0:Ll;o&&e!=null&&setTimeout(()=>{if(i)return t(e,r);window.location.pathname.includes(e)||ke(e)},l)}var Ll,Fi=v(()=>{"use strict";n();at();Ll=200});function Rn(e){return e[Math.floor(Math.random()*e.length)]}var _i=v(()=>{"use strict";n()});var Mn=v(()=>{"use strict";n();xn()});var bt=v(()=>{"use strict";n();Fi();_i();Mn()});var Ui,Bi,On,Pl,Wi,Fn,$i,Gi,br=v(()=>{"use strict";n();Ui=require("@reduxjs/toolkit"),Bi=A(require("lodash.omit"));bt();On={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Pl={network:On,chainID:"-1"},Wi=(0,Ui.createSlice)({name:"appConfig",initialState:Pl,reducers:{initializeNetworkConfig:(e,t)=>{let r=Rn(t.payload.walletConnectBridgeAddresses),o=Rn(t.payload.walletConnectV2RelayAddresses),i=(0,Bi.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=E(y(y({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Fn,setChainID:$i}=Wi.actions,Gi=Wi.reducer});var Vi,_n,Hi,Wm,$m,Gm,kr,Er=v(()=>{"use strict";n();Vi=require("@reduxjs/toolkit");J();Y();_n={isSigning:!1,signedSessions:{}},Hi=(0,Vi.createSlice)({name:"signedMessageInfoSliceState",initialState:_n,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;return E(y({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:o.status==="pending",signedSessions:E(y({},e.signedSessions),{[r]:o})})},setSignSessionState:(e,t)=>y(y({},e),t.payload),clearSignedMessageInfo:()=>_n},extraReducers:e=>{e.addCase(G,()=>_n)}}),{setSignSession:Wm,clearSignedMessageInfo:$m,setSignSessionState:Gm}=Hi.actions,kr=Hi.reducer});var ji,qi,zi,Ki,Un,Bn,Zm,Jm,Xm,Qm,Lr,Pr=v(()=>{"use strict";n();ji=require("@reduxjs/toolkit"),qi=require("redux-persist");wn();J();hr();Y();zi={customToasts:[],transactionToasts:[],failTransactionToast:null},Ki=(0,ji.createSlice)({name:"toastsSlice",initialState:zi,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(E(y({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:wt(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=E(y({},t.payload),{toastId:fr})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(G,()=>zi),e.addCase(qi.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:Un,removeCustomToast:Bn,addTransactionToast:Zm,removeTransactionToast:Jm,addFailTransactionToast:Xm,removeFailTransactionToast:Qm}=Ki.actions,Lr=Ki.reducer});var Yi,$n,Gn,Vn,Cl,Wn,Zi,ng,Dl,Hn,Cr,Dr=v(()=>{"use strict";n();Yi=require("@reduxjs/toolkit");Y();$n="Transaction failed",Gn="Transaction successful",Vn="Processing transaction",Cl="Transaction submitted",Wn={},Zi=(0,Yi.createSlice)({name:"transactionsInfo",initialState:Wn,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||$n,successMessage:(o==null?void 0:o.successMessage)||Gn,processingMessage:(o==null?void 0:o.processingMessage)||Vn,submittedMessage:(o==null?void 0:o.submittedMessage)||Cl,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Wn},extraReducers:e=>{e.addCase(G,()=>Wn)}}),{clearTransactionsInfo:ng,setTransactionsDisplayInfo:Dl,clearTransactionsInfoForSessionId:Hn}=Zi.actions,Cr=Zi.reducer});function Ee(e){return e!=null&&(Bl(e)||Vl(e))}function ct(e){return e!=null&&(Wl(e)||Hl(e))}function lt(e){return e!=null&&($l(e)||zl(e))}function zn(e){return e!=null&&Gl(e)}function Bl(e){return e!=null&&Nl.includes(e)}function Wl(e){return e!=null&&Rl.includes(e)}function $l(e){return e!=null&&Ml.includes(e)}function Gl(e){return e!=null&&Ol.includes(e)}function Vl(e){return e!=null&&Fl.includes(e)}function Hl(e){return e!=null&&_l.includes(e)}function zl(e){return e!=null&&Ul.includes(e)}var Nl,Rl,Ml,Ol,Fl,_l,Ul,Et=v(()=>{"use strict";n();R();Nl=["sent"],Rl=["success"],Ml=["fail","cancelled","timedOut"],Ol=["timedOut"],Fl=["pending"],_l=["success"],Ul=["fail","invalid"]});var Ji,Xi,Jt,jl,Qi,Xt,pt,ql,Lt,Kl,Yl,dg,Zl,Nr,jn,Rr,Mr=v(()=>{"use strict";n();Ji=require("@reduxjs/toolkit"),Xi=require("redux-persist");R();Et();Y();Jt={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},jl={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Qi=(0,Ji.createSlice)({name:"transactionsSlice",initialState:Jt,reducers:{moveTransactionsToSignedState:(e,t)=>{var u,g;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p}=t.payload,d=((u=e.customTransactionInformationForSessionId)==null?void 0:u[r])||jl;e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:d},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===r&&(e.transactionsToSign=Jt.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=y(y({},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 d,u,g,f,h,I;let{sessionId:r,status:o,errorMessage:i,transactionHash:l}=t.payload,p=(u=(d=e.signedTransactions)==null?void 0:d[r])==null?void 0:u.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(b=>b.hash===l?E(y({},b),{status:o,errorMessage:i}):b);let P=(f=(g=e.signedTransactions[r])==null?void 0:g.transactions)==null?void 0:f.every(b=>ct(b.status)),k=(I=(h=e.signedTransactions[r])==null?void 0:h.transactions)==null?void 0:I.every(b=>lt(b.status));P&&(e.signedTransactions[r].status="success"),k&&(e.signedTransactions[r].status="fail")}},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=Jt.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Jt.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(G,()=>Jt),e.addCase(Xi.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,[u,g])=>{let f=new Date(u),h=new Date;return h.setHours(h.getHours()+5),h-f>0||(d[u]=g),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Xt,updateSignedTransactions:pt,setTransactionsToSign:ql,clearAllTransactionsToSign:Lt,clearAllSignedTransactions:Kl,clearSignedTransaction:Yl,clearTransactionToSign:dg,setSignTransactionsError:Zl,setSignTransactionsCancelMessage:Nr,moveTransactionsToSignedState:jn}=Qi.actions,Rr=Qi.reducer});var C=v(()=>{"use strict";n();Cn();Ir();Nn();br();Er();Pr();Dr();Mr()});var qn=v(()=>{"use strict";n()});var os,ns,is,Fg,_g,Ug,Bg,Wg,$g,ss,as=v(()=>{"use strict";n();os=require("@reduxjs/toolkit");Y();ns={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},is=(0,os.createSlice)({name:"dappModalsSlice",initialState:ns,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=y({},t.payload)}},extraReducers:e=>{e.addCase(G,()=>ns)}}),{setDappModalVisibility:Fg,setDappModalHeaderVisibility:_g,setDappModalFooterVisibility:Ug,setDappModalHeaderText:Bg,setDappModalFooterText:Wg,setDappModalConfig:$g}=is.actions,ss=is.reducer});var cs,ep,tp,Ct,Ur=v(()=>{"use strict";n();cs=require("@reduxjs/toolkit");qn();Cn();as();Ir();Nn();br();Er();Pr();Dr();Mr();ep={["account"]:vi,["dappModal"]:ss,["loginInfo"]:Li,["modals"]:Ri,["networkConfig"]:Gi,["signedMessageInfo"]:kr,["toasts"]:Lr,["transactionsInfo"]:Cr,["transactions"]:Rr},tp=(e={})=>(0,cs.combineReducers)(y(y({},ep),e)),Ct=tp});var us={};et(us,{default:()=>lp});function Br(e,t=[]){return{key:e,version:1,storage:ps.default,blacklist:t}}var $e,ls,ps,rp,np,op,ip,sp,ap,cp,lp,ds=v(()=>{"use strict";n();$e=require("redux-persist"),ls=A(require("redux-persist/lib/storage")),ps=A(require("redux-persist/lib/storage/session"));Ur();C();Er();Pr();Dr();Mr();qn();rp={2:e=>E(y({},e),{networkConfig:On})};np=Br("sdk-dapp-transactionsInfo"),op=Br("sdk-dapp-transactions",["transactionsToSign"]),ip=Br("sdk-dapp-toasts"),sp=Br("sdk-dapp-signedMessageInfo"),ap={key:"sdk-dapp-store",version:2,storage:ls.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,$e.createMigrate)(rp,{debug:!1})},cp={["toasts"]:(0,$e.persistReducer)(ip,Lr),["transactions"]:(0,$e.persistReducer)(op,Rr),["transactionsInfo"]:(0,$e.persistReducer)(np,Cr),["signedMessageInfo"]:(0,$e.persistReducer)(sp,kr)},lp=(0,$e.persistReducer)(ap,Ct(cp))});var ms={};et(ms,{default:()=>pp});var pp,gs=v(()=>{"use strict";n();Ur();pp=Ct()});var fs={};et(fs,{default:()=>dp});var le,up,dp,Ts=v(()=>{"use strict";n();le=require("redux-persist"),up=[le.FLUSH,le.REHYDRATE,le.PAUSE,le.PERSIST,le.PURGE,le.REGISTER],dp=up});var Ss={};et(Ss,{default:()=>hs});function hs(e){return(0,ys.persistStore)(e)}var ys,xs=v(()=>{"use strict";n();ys=require("redux-persist")});var ed={};et(ed,{AppInitializer:()=>mo,AuthenticatedRoutesWrapper:()=>la,AxiosInterceptor:()=>To,AxiosInterceptorContext:()=>fu,AxiosInterceptorContextProvider:()=>go,DappProvider:()=>Qu,LoginInfoListener:()=>fo,useAxiosInterceptorContext:()=>_t});module.exports=qt(ed);n();n();var oo=A(require("react"));n();var Es=require("react"),Dt=require("react-redux");n();var Kn=require("@reduxjs/toolkit"),Is=require("react-redux/lib/utils/Subscription");C();n();var ts=A(require("lodash.throttle"));D();n();var es=A(require("lodash.isequal")),Or=require("reselect");J();var x=(0,Or.createSelectorCreator)(Or.defaultMemoize,es.default),Pt=(e,t)=>e!=""&&Boolean(t);C();Dn();vt();it();var Jl=[yr],Fr=!1,Xl=(0,ts.default)(()=>{Zt(Yt())},5e3),rs=e=>t=>r=>{var u;if(Jl.includes(r.type))return t(r);let o=e.getState(),i=be.local.getItem(ce.loginExpiresAt);if(!Pt((u=o==null?void 0:o.loginInfo)==null?void 0:u.loginMethod,o==null?void 0:o.account.address))return t(r);if(i==null)return Zt(Yt());let p=Date.now();return i-p<0&&!Fr?setTimeout(()=>{Fr=!0,e.dispatch(ki())},1e3):(Fr&&(Fr=!1),Xl()),t(r)};n();n();function _r(){return typeof sessionStorage!="undefined"}var ws=_r()?(ds(),qt(us)).default:(gs(),qt(ms)).default,vs=_r()?(Ts(),qt(fs)).default:[],As=_r()?(xs(),qt(Ss)).default:e=>e;Ur();var w=(0,Kn.configureStore)({reducer:ws,middleware:e=>e({serializableCheck:{ignoredActions:[...vs,xr.type,st.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(rs)}),bs=(0,Is.createSubscription)(w),ks=As(w),ff=(0,Kn.configureStore)({reducer:Ct});var mp={store:w,subscription:bs},Qt=(0,Es.createContext)(mp),Sf=(0,Dt.createStoreHook)(Qt),M=(0,Dt.createDispatchHook)(Qt),S=(0,Dt.createSelectorHook)(Qt);n();n();C();var Le=e=>e.account,Pe=x(Le,e=>e.address),Ge=x(Le,Pe,(e,t)=>t in e.accounts?e.accounts[t]:Sr),Ls=x(Le,Ge,(e,t)=>{let i=e,{accounts:r}=i,o=Qe(i,["accounts"]);return E(y({},o),{account:t})}),gp=x(Ge,e=>e.balance),Ps=x(Ge,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Af=x(Le,e=>e.shard),Yn=x(Le,e=>e.ledgerAccount),If=x(Le,e=>e.walletConnectAccount),Cs=x(Le,e=>e.isAccountLoading),bf=x(Le,e=>e.accountLoadingError),Zn=x(Le,e=>e.websocketEvent);n();var q=e=>e.loginInfo,Ds=x(q,e=>e.loginMethod),Ce=x(q,Pe,(e,t)=>Pt(e.loginMethod,t)),Ns=x(q,e=>e.walletConnectLogin),Rs=x(q,e=>e.ledgerLogin),Nt=x(q,e=>e.walletLogin),Ms=x(q,e=>e.isLoginSessionInvalid),Wr=x(q,e=>e.tokenLogin),Rt=x(q,e=>e.logoutRoute);n();var Os=e=>e.modals,Df=x(Os,e=>e.txSubmittedModal),fp=x(Os,e=>e.notificationModal);n();var Se=e=>e.networkConfig,er=x(Se,e=>e.chainID),Fs=x(Se,e=>e.network.walletConnectBridgeAddress),_s=x(Se,e=>e.network.walletConnectV2RelayAddress),Us=x(Se,e=>e.network.walletConnectV2ProjectId),Bs=x(Se,e=>e.network.walletConnectV2Options),$r=x(Se,e=>e.network.walletConnectDeepLink),pe=x(Se,e=>e.network),Gr=x(pe,e=>e.apiAddress),Ws=x(pe,e=>e.explorerAddress),$s=x(pe,e=>e.egldLabel);n();var Jn=e=>e.signedMessageInfo,Ff=x(Jn,e=>e.isSigning),_f=x(Jn,e=>e.errorMessage),Uf=x(Jn,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});n();var Xn=e=>e.toasts,$f=x(Xn,e=>e.customToasts),Gf=x(Xn,e=>e.transactionToasts),Vf=x(Xn,e=>e.failTransactionToast);n();C();var Gs={errorMessage:$n,successMessage:Gn,processingMessage:Vn},Tp=e=>e.transactionsInfo,yp=x(Tp,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Gs);n();n();var se=require("@multiversx/sdk-core");D();n();function Qn(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function Mt(e){return atob(e)}function Ot(e){var i,l,p;let{data:t}=e,r=Qn(t!=null?t:"")?se.TransactionPayload.fromEncoded(t):new se.TransactionPayload(t),o=new se.Transaction(y({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new se.Address(e.receiver),sender:new se.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:Kt,gasPrice:(l=e.gasPrice.valueOf())!=null?l:Tr,chainID:e.chainID.valueOf(),version:new se.TransactionVersion((p=e.version)!=null?p:ai)},e.options?{options:new se.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new se.Address(e.sender)),o}n();Et();n();var Sp=A(require("bignumber.js"));J();n();n();n();n();var wp=require("@multiversx/sdk-core"),vp=A(require("bignumber.js"));R();n();var zs=require("@multiversx/sdk-core");function xp(e){try{let t=new zs.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function tr(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&xp(e)}n();n();n();var Ip=require("@multiversx/sdk-core/out");n();D();n();var js=require("@multiversx/sdk-core");J();n();n();n();n();R();n();n();n();n();n();n();n();var qs="dapp/config",Ks="network/config";var Vr="accounts";var eo="blocks";n();n();n();n();Z();n();n();Z();n();n();n();var Np=A(require("bignumber.js"));D();n();var Dp=require("@multiversx/sdk-core"),to=A(require("bignumber.js"));D();n();var Pp=A(require("bignumber.js"));n();to.default.config({ROUNDING_MODE:to.default.ROUND_FLOOR});n();n();n();D();n();n();n();n();D();n();D();n();var Rp=require("@multiversx/sdk-core");D();n();var rr=require("@multiversx/sdk-core"),Fp=require("@multiversx/sdk-network-providers");D();n();n();var Mp=A(require("bignumber.js"));D();n();D();n();n();n();n();n();D();n();Z();var Up=["reDelegateRewards","claimRewards","unBond"],Bp=["wrapEgld","unwrapEgld"],Wp=["unStake"],$p=["unDelegate"];n();n();n();D();n();var zp=A(require("bignumber.js"));n();n();n();Z();n();var jp=A(require("bignumber.js"));n();n();n();n();Z();n();n();n();var Yp=A(require("linkifyjs"));n();D();n();var Zp=A(require("bignumber.js"));n();J();n();n();R();n();R();n();n();n();Z();n();Z();n();var Jp=A(require("bignumber.js"));D();Z();n();Z();n();var ea=require("react");J();n();n();Z();n();var Xp=require("@multiversx/sdk-core/out"),Qp=A(require("bignumber.js"));Z();n();Z();n();n();R();var mw=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var ta=require("react");J();n();var tu=require("react");Z();var xw=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var qr=e=>e.transactions,He=x(qr,e=>e.signedTransactions),ru=x(qr,e=>e.signTransactionsError),ra=x(qr,e=>e.signTransactionsCancelMessage),Kr=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),no=x(He,Kr(Ee)),na=x(He,Kr(ct)),oa=x(He,Kr(lt)),nu=x(He,Kr(zn)),ia=x(qr,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:E(y({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Ot(r)))||[]})}),ou=x(He,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});at();n();n();function sa(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(r){}}}function aa(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=iu(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let l=i[0],p=l.replace(/(.)\/+$/,"$1"),d=i.slice(1);return{params:o.reduce((g,f,h)=>{if(f==="*"){let I=d[h]||"";p=l.slice(0,l.length-I.length).replace(/(.)\/+$/,"$1")}return g[f]=su(d[h]||"",f),g},{}),pathname:l,pathnameBase:p,pattern:e}}function iu(e,t=!1,r=!0){sa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(p,d)=>(o.push(d),"([^\\/]+)"));return e.endsWith("*")?(o.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i+=r?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(i,t?void 0:"i"),o]}function su(e,t){try{return decodeURIComponent(e)}catch(r){return sa(!1,`The value for the URL param "${t}" will not be decoded because the string "${e}" is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),e}}var ca=(e,t)=>e.filter(({authenticatedRoute:i})=>Boolean(i)).some(({path:i})=>aa(i,t)!==null);var la=({children:e,routes:t,unlockRoute:r,onRedirect:o})=>{let i=S(Ce),l=S(Cs),p=S(Nt),u=ca(t,window.location.pathname)&&!i&&p==null;return l||p?null:u?(o?o(r):ke(r),null):oo.default.createElement(oo.default.Fragment,null,e)};n();var Re=A(require("react")),Pa=require("@multiversx/sdk-core/out");n();n();n();var pa=A(require("axios"));function ua(e){return T(this,null,function*(){let{apiAddress:t,apiTimeout:r}=pe(w.getState()),o=e.map(l=>pa.default.post(`${t}/transactions`,l.toPlainObject(),{timeout:parseInt(r)}));return(yield Promise.all(o)).map(({data:l})=>l.txHash)})}n();var da=A(require("axios"));function Yr(e){return T(this,null,function*(){let t=Gr(w.getState()),r=e.map(i=>i.hash),{data:o}=yield da.default.get(`${t}/transactions`,{params:{hashes:r.join(","),withScResults:!0}});return e.map(({hash:i,previousStatus:l})=>{let p=o.find(d=>(d==null?void 0:d.txHash)===i);return{hash:i,data:p==null?void 0:p.data,invalidTransaction:p==null,status:p==null?void 0:p.status,results:p==null?void 0:p.results,sender:p==null?void 0:p.sender,receiver:p==null?void 0:p.receiver,previousStatus:l,hasStatusChanged:p&&p.status!==l}})})}n();var cu=A(require("axios"));n();n();var lu=A(require("axios"));n();var pu=A(require("axios"));n();n();n();var ga=A(require("axios"));n();n();var Zr=e=>{let t=e!=null?e:Gr(w.getState());return t.endsWith("/")?t.slice(0,-1):t};function fa(e){return T(this,null,function*(){if(!e)return null;let r=`${Zr()}/${Vr}/${e}`;try{let{data:o}=yield ga.default.get(r);return o}catch(o){console.error("error fetching configuration for ",r)}return null})}n();n();St();n();var Ta=A(require("axios"));function io(e){return T(this,null,function*(){let t=`${e}/${qs}`;try{let{data:o}=yield Ta.default.get(t);if(o!=null){let i="egldDenomination";if(i in o){let r=o,{[i]:l,decimals:p}=r,d=Qe(r,[ko(i),"decimals"]);return E(y({},d),{decimals:l,digits:p})}return o}}catch(o){console.error("error fetching configuration for ",t)}return null})}n();var ya=A(require("axios"));function ha(){return T(this,null,function*(){var r;let t=`${Zr()}/${Ks}`;try{let{data:o}=yield ya.default.get(t);if(o!=null)return(r=o==null?void 0:o.data)==null?void 0:r.config}catch(o){console.error("error fetching configuration for ",t)}return null})}n();St();n();St();n();var uu=A(require("axios"));St();n();var De=()=>S(Ls);br();n();n();n();n();var Sa=require("@multiversx/sdk-extension-provider"),xa=require("@multiversx/sdk-hw-provider"),wa=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),va=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),so=require("@multiversx/sdk-web-wallet-provider");D();R();var du="/dapp/init",ut=e=>{switch(e==null?void 0:e.constructor){case so.WalletProvider:return"wallet";case wa.WalletConnectProvider:return"walletconnect";case va.WalletConnectV2Provider:return"walletconnectv2";case xa.HWProvider:return"ledger";case Sa.ExtensionProvider:return"extension";case Jr:return"";default:return"extra"}},ao=e=>new so.WalletProvider(`${e}${du}`),co=e=>T(void 0,null,function*(){if(!e.isInitialized())throw new Error("Unable to get version. Provider not initialized");let t=e.hwApp,{contractData:r,version:o}=yield t.getAppConfiguration();return{version:o,dataEnabled:r===ci}}),Ne=e=>`Unable to perform ${e}, Provider not initialized`,Jr=class{init(){return Promise.resolve(!1)}login(t){throw new Error(Ne(`login with options: ${t}`))}logout(t){throw new Error(Ne(`logout with options: ${t}`))}getAddress(){throw new Error(Ne("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(Ne(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(Ne(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(Ne(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(Ne(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(Ne(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(Ne(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},nr=new Jr;var po=nr,lo=null;function me(e){po=e}function Aa(e){lo=e}function Ia(){lo!=null&&(po=lo)}function re(){return po||nr}Y();J();n();function ge(){return Ce(w.getState())}n();n();R();n();n();function ba(){let e=re();return ut(e)}function ue(e){return ba()===e}function ze(){let{search:e}=window.location,t=w.getState(),r=re(),o=Pe(t),i=Ce(t),l=Nt(t);if(!r)throw"provider not initialized";return ue("ledger")&&i?new Promise(p=>{p(o)}):!ue("")&&!ue("wallet")&&!ue("extra")?r.getAddress():new Promise(p=>{if(l!=null){let d=new URLSearchParams(e),u=Object.fromEntries(d);tr(u.address)&&p(u.address)}i&&p(o),p("")})}n();function je(e){return T(this,null,function*(){return yield fa(e)})}n();C();function ka(e){w.dispatch(xr(e))}n();function Ft(e){let t=w.getState(),r=Ps(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}n();n();C();var Ea=()=>T(void 0,null,function*(){try{let e=yield ze();try{let t=yield je(e);if(t!=null){let r=E(y({},t),{nonce:Ft(t)});return w.dispatch(st(r)),r}}catch(t){console.error("Failed getting account ",t)}}catch(e){console.error("Failed getting address ",e)}return null});function Xr(){return T(this,null,function*(){let e=re();if(e==null)throw"Provider not initialized";if(!e.isInitialized||e.isInitialized())return Ea();try{if(!e.init)throw"Current provider does not have init() function";return(yield e.init())?Ea():void 0}catch(t){console.error("Failed initializing provider ",t)}})}n();var La=require("@multiversx/sdk-core");n();Y();J();at();vt();it();var mu=e=>{be.local.setItem({key:ce.logoutEvent,data:e,expires:0}),be.local.removeItem(ce.logoutEvent)};function X(e,t){return T(this,null,function*(){let r=re(),o=ut(r),i=ge(),l=o==="wallet";if(!i||!r){uo(e,t,!1);return}try{let p=yield ze();mu(p)}catch(p){uo(e,t,!1),console.error("error fetching logout address",p)}l&&Oi(),w.dispatch(G());try{let d=l&&!e?window.location.origin:e;l?setTimeout(()=>{r.logout({callbackUrl:d})}):(yield r.logout({callbackUrl:d}),uo(e,t,l))}catch(p){console.error("error logging out",p)}})}function uo(e,t,r){e&&!r&&(typeof t=="function"?t(e):ke(e))}Ir();function mo({customNetworkConfig:e={},children:t,environment:r,logoutRoute:o}){let[i,l]=(0,Re.useState)(!1),p=De(),d=S(Ms),{address:u,publicKey:g}=p,f=M();function h(){return T(this,null,function*(){let P=!(e!=null&&e.skipFetchFromServer),k=e==null?void 0:e.apiAddress,b=ot[r]||{},O=y(y({},b),e);if(P){let N=b==null?void 0:b.apiAddress,V=yield io(k||N);if(V!=null){let ne=y(y(y({},b),V),e);f(Fn(ne));return}}f(Fn(O))})}function I(){return T(this,null,function*(){f(Ei(o)),yield h(),l(!0)})}return(0,Re.useEffect)(()=>{u&&new Pa.Address(u).hex()!==g&&X(o)},[u,g,o]),(0,Re.useEffect)(()=>{I()},[e,r,o]),(0,Re.useEffect)(()=>{p.address&&d&&X(o)},[d,p.address,o]),i?Re.default.createElement(Re.default.Fragment,null,t):null}n();var Vt=A(require("react")),Nc=require("react-redux"),Rc=require("redux-persist/integration/react");n();var Fe=require("react"),Ga=require("@multiversx/sdk-extension-provider"),Va=require("@multiversx/sdk-hw-provider");n();var _a=require("react"),en=require("@multiversx/sdk-core");n();n();var dt=()=>S(Ge);n();n();n();n();n();var Me=A(require("react"));var Ca=(0,Me.createContext)({}),gu=w.getState();function go({children:e}){let[t,r]=(0,Me.useState)(),[o,i]=(0,Me.useState)(q(gu)),l={address:t,setAddress:r,isLoggedIn:Pt(o.loginMethod,t),loginInfo:o,setLoginInfo:p=>i(p)};return Me.default.createElement(Ca.Provider,{value:l},e)}function _t(){let e=(0,Me.useContext)(Ca);if(e===void 0||Object.values(e).length===0)throw new Error("useAxiosInterceptorContext must be used within an AxiosInterceptorContextProvider");return e}n();var or=A(require("react"));var fo=({children:e=null})=>{var l;let{address:t}=dt(),r=S(q),{setLoginInfo:o,setAddress:i}=_t();return(0,or.useEffect)(()=>{i(t),o(r)},[(l=r.tokenLogin)==null?void 0:l.loginToken,t]),or.default.createElement(or.default.Fragment,null,e)};n();var qe=A(require("react")),Qr=A(require("axios"));var To=({children:e,authenticatedDomanis:t})=>{var d;let{loginInfo:r}=_t(),o=(d=r==null?void 0:r.tokenLogin)==null?void 0:d.nativeAuthToken,i=(0,qe.useRef)(-1),l=()=>{Qr.default.interceptors.response.use(u=>u,u=>{var f,h;let g=(f=u.config)==null?void 0:f.url;return(h=u.config)!=null&&h.params&&(g+=`?${new URLSearchParams(u.config.params).toString()}`),console.error("Axios error for: ",g),Promise.reject(u)})},p=()=>{Qr.default.interceptors.request.eject(i.current),i.current=Qr.default.interceptors.request.use(u=>T(void 0,null,function*(){return t.includes(String(u==null?void 0:u.baseURL))&&(u.headers={Authorization:`Bearer ${o}`}),u}),u=>{Promise.reject(u)})};return(0,qe.useEffect)(l,[]),(0,qe.useEffect)(()=>{o&&p()},[o]),qe.default.createElement(qe.default.Fragment,null,e)};var fu={Interceptor:To,Listener:fo,Provider:go};n();n();var ir=()=>{let e=re(),t=ut(e);return{provider:e,providerType:t}};n();C();n();n();n();var Da,sr={hostname:typeof window!="undefined"?(Da=window==null?void 0:window.location)==null?void 0:Da.hostname:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},ar=e=>{var r,o,i,l;return e===!0?sr:{hostname:(r=e==null?void 0:e.hostname)!=null?r:sr.hostname,expirySeconds:(o=e==null?void 0:e.expirySeconds)!=null?o:sr.expirySeconds,apiAddress:(i=e==null?void 0:e.apiAddress)!=null?i:sr.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:sr.tokenExpirationToastWarningSeconds}};n();var Tu=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),Ut=e=>Tu(s.Buffer.from(e,"utf8").toString("base64"));n();var Na=A(require("axios"));function Ra(e){return T(this,null,function*(){let{data:t}=yield Na.default.get(`${e}/${eo}?size=1&fields=hash,timestamp`),[r]=t;return r})}n();n();n();function yu(e){return Object.prototype.toString.call(e)==="[object String]"}var Ma=e=>{if(!e||!yu(e))return null;try{let[t,r,o]=e.split("."),i=Mt(t),l=Mt(r),[p,d,u,g]=l.split("."),f=JSON.parse(Mt(g)),h=Mt(p),I={ttl:Number(u),address:i,extraInfo:f,host:h,signature:o,blockHash:d,body:l};return g==="e30"&&delete I.extraInfo,I}catch(t){return null}};var Oa=({address:e,token:t,signature:r})=>{let o=Ut(e),i=Ut(t);return`${o}.${i}.${r}`};n();hr();var Bt=e=>{let t=Ma(e);if(!t)return{isExpired:!1};let r=wt(),{ttl:o,extraInfo:i}=t,l=i.timestamp;if(!l)return{isExpired:!1};let p=l+o,d=r>p,u=p-r;return{isExpired:d,expiresAt:p,secondsUntilExpires:u}};var Fa=e=>{let{hostname:t,apiAddress:r,expirySeconds:o}=ar(e);return{getNativeAuthConfig:ar,initialize:(...p)=>T(void 0,[...p],function*(l={}){let{hash:d,timestamp:u}=yield Ra(r),g=Ut(JSON.stringify(y(y({},l),u?{timestamp:u}:{})));return`${Ut(t)}.${d}.${o}.${g}`}),getToken:Oa,getTokenExpiration:Bt}};n();var hu=(e,t)=>{var r;return t?t===!0?e:(r=t.apiAddress)!=null?r:e:null},Oe=e=>{let t=S(pe),r=S(Wr),o=(0,_a.useRef)(r==null?void 0:r.loginToken),i=hu(t.apiAddress,e),l=ar(y(y({},e===!0?{}:e),i?{apiAddress:i}:{})),p=Boolean(e),d=Fa(l),{address:u}=dt(),g=M(),f=k=>{o.current=k,g(vr(y({loginToken:k},i?{nativeAuthConfig:l}:{})))},h=()=>T(void 0,null,function*(){try{return yield d.initialize()}catch(k){console.error("Unable to get block. Login failed.",k);return}}),I=({address:k,signature:b})=>{let O=o.current;if(!O)throw"Token not found. Call `setLoginToken` first.";if(!p){g(vr({loginToken:O,signature:b}));return}let N=d.getToken({address:k,token:O,signature:b});g(vr(y({loginToken:O,signature:b,nativeAuthToken:N},i?{nativeAuthConfig:l}:{})))};return{configuration:l,setLoginToken:f,getNativeAuthLoginToken:h,setTokenLoginInfo:I,refreshNativeAuthTokenLogin:b=>T(void 0,[b],function*({signMessageCallback:k}){let O=yield h();if(o.current=O,!O)return;let N=new en.SignableMessage({address:new en.Address(u),message:s.Buffer.from(O)}),V=yield k(N,{});I({address:u,signature:V.toJSON().signature})})}};n();var Ke=require("react"),Ua=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");n();var tn=require("react");function Wt(e,t=[]){let r=(0,tn.useRef)(!0);(0,tn.useEffect)(()=>{r.current?r.current=!1:e()},t)}Y();C();R();bt();var yo=({logoutRoute:e,callbackRoute:t,nativeAuth:r,token:o,onLoginRedirect:i})=>{let l=M(),p=15e3,d=r!=null,u=Oe(r),g=o,[f,h]=(0,Ke.useState)(""),[I,P]=(0,Ke.useState)(""),{provider:k}=ir(),b=S(Fs),O=S($r),N=(0,Ke.useRef)(k),V=(0,Ke.useRef)(!0),ne,Q=Boolean(I),Ye=!Q,Ue=Q?`${O}?wallet-connect=${encodeURIComponent(I)}`:"";(0,Ke.useEffect)(()=>{Je();let B=setInterval(()=>{Je()},p);return()=>clearInterval(B)},[k]),Wt(()=>{!o||L()},[o]),Wt(()=>{N.current=k},[k]);let U=()=>{X(e)},Ze=()=>{V.current=!1};function Je(){return T(this,null,function*(){var we,z;if(k==null||!ue("walletconnect")||!Boolean((z=(we=N.current)==null?void 0:we.walletConnector)==null?void 0:z.connected))return;let H={method:"heartbeat",params:{}};try{yield N.current.sendCustomMessage(H)}catch(ee){console.error("Connection lost",ee),U()}})}function Ht(){return T(this,null,function*(){var B;try{let H=N.current;if(ge()||H==null||!ue("walletconnect"))return;if(!V.current){try{yield(B=N.current)==null?void 0:B.logout()}catch(j){console.warn("Unable to logout")}return}let z=yield H.getAddress();if(!z){console.warn("Login cancelled.");return}let ee=yield H.getSignature(),gt={address:z,loginMethod:"walletconnect"},W={logoutRoute:e,loginType:"walletConnect",callbackRoute:t!=null?t:window.location.href};l(wr(W)),ee&&u.setTokenLoginInfo({signature:ee,address:z}),l(oe(gt)),H.walletConnector.on("heartbeat",()=>{clearInterval(ne),ne=setInterval(()=>{console.log("Maiar Wallet Connection Lost"),U(),clearInterval(ne)},15e4)}),It({callbackRoute:t,onLoginRedirect:i,options:{address:z,signature:ee}})}catch(H){h("Invalid address"),console.error(H)}})}function zt(B=!0){return T(this,null,function*(){var ee,gt;let H=B&&!I;if(!b||((gt=(ee=N==null?void 0:N.current)==null?void 0:ee.isInitialized)==null?void 0:gt.call(ee))&&!H)return;let we={onClientLogin:Ht,onClientLogout:U},z=new Ua.WalletConnectProvider(b,we);yield z.init(),V.current=!0,me(z),N.current=z,B&&L()})}function L(){return T(this,null,function*(){var z;if(!b)return;let B=yield(z=N.current)==null?void 0:z.login();if(!Boolean(B))return;if(d&&!g&&(g=yield u.getNativeAuthLoginToken(),!g)){console.warn("Fetching block failed. Login cancelled.");return}if(!g){P(B);return}u.setLoginToken(g);let we=`${B}&token=${g}`;P(we)})}let F=Boolean(f),Xe=ge();return[zt,{error:f,loginFailed:F,isLoading:Ye&&!F,isLoggedIn:Xe&&!F},{uriDeepLink:Ue,walletConnectUri:I,cancelLogin:Ze}]};n();var xe=require("react"),Ba=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");Y();C();R();bt();var ho=({callbackRoute:e,logoutRoute:t,token:r,nativeAuth:o,onLoginRedirect:i})=>{let l=M(),p=o!=null,d=Oe(o),u=r,[g,f]=(0,xe.useState)(""),[h,I]=(0,xe.useState)(""),[P,k]=(0,xe.useState)(!0),[b,O]=(0,xe.useState)([]),N=re(),V=S(_s),ne=S(Us),Q=S(Bs),Ye=S(er),Ue=S($r),U=(0,xe.useRef)(N),Ze=(0,xe.useRef)(!0),Je=["erd_cancelAction"],Ht=P?"":`${Ue}?wallet-connect=${encodeURIComponent(h)}`;Wt(()=>{!r||z()},[r]),Wt(()=>{U.current=N},[N]),(0,xe.useEffect)(()=>{k(!Boolean(h))},[h]);let zt=()=>{X(t)},L=W=>{console.log("wc2 session event: ",W)},F=()=>{Ze.current=!1};function Xe(){return T(this,null,function*(){var W;try{let j=U.current;if(ge()||j==null||!ue("walletconnectv2"))return;if(!Ze.current){try{yield(W=U.current)==null?void 0:W.logout()}catch(td){console.warn("Unable to logout")}return}let de=yield j.getAddress();if(!de){console.warn("Login cancelled.");return}let Be=yield j.getSignature(),an={address:de,loginMethod:"walletconnectv2"},Mc={logoutRoute:t,loginType:"walletconnectv2",callbackRoute:e!=null?e:window.location.href};l(wr(Mc)),Be&&d.setTokenLoginInfo({signature:Be,address:de}),l(oe(an)),It({callbackRoute:e,onLoginRedirect:i,options:{address:de,signature:Be}})}catch(j){f("Invalid address"),console.error(j)}})}function B(W=!0){return T(this,null,function*(){if(!ne||!V){f("Invalid WalletConnect setup");return}let j={onClientLogin:Xe,onClientLogout:zt,onClientEvent:L},K=new Ba.WalletConnectV2Provider(j,Ye,V,ne,Q);yield K.init(),Ze.current=!0,me(K),O(K.pairings),U.current=K,W&&z()})}function H(W){return T(this,null,function*(){var j,K,de;if(!V||!ne){f("Invalid WalletConnect setup");return}if(!W||!W.topic){f("Expired connection");return}try{let{approval:Be}=yield(j=U.current)==null?void 0:j.connect({topic:W.topic,methods:Je});if(p&&!u&&(u=yield d.getNativeAuthLoginToken(),!u)){console.warn("Fetching block failed. Login cancelled.");return}u&&d.setLoginToken(u);try{yield(K=U.current)==null?void 0:K.login({approval:Be,token:u})}catch(an){f("User rejected existing connection proposal"),k(!0),yield B()}}catch(Be){console.error("Unable to connect to existing session",Be),f("Unable to connect to existing session")}finally{O((de=U.current)==null?void 0:de.pairings)}})}function we(W){return T(this,null,function*(){var j,K;try{W&&(yield(j=U.current)==null?void 0:j.logout({topic:W}))}catch(de){console.error("Unable to remove existing pairing",de),f("Unable to remove existing pairing")}finally{O((K=U.current)==null?void 0:K.pairings)}})}function z(){return T(this,null,function*(){var W,j;if(!V||!ne){f("Invalid WalletConnect setup");return}try{let{uri:K,approval:de}=yield(W=U.current)==null?void 0:W.connect({methods:Je});if(!Boolean(K))return;if(I(K),p&&!u&&(u=yield d.getNativeAuthLoginToken(),!u)){console.warn("Fetching block failed. Login cancelled.");return}u&&d.setLoginToken(u);try{yield(j=U.current)==null?void 0:j.login({approval:de,token:u})}catch(an){f("User rejected connection proposal"),k(!0),yield B()}}catch(K){console.error("Unable to connect",K)}})}let ee=Boolean(g),gt=ge();return[B,{error:g,loginFailed:ee,isLoading:P&&!ee,isLoggedIn:gt&&!ee},{uriDeepLink:Ht,walletConnectUri:h,cancelLogin:F,connectExisting:H,removeExistingPairing:we,wcPairings:b}]};Y();C();R();n();n();var Wa=e=>{let t=new URLSearchParams(e).toString(),{pathname:r}=window.location,o=t?`?${t}`:"",i=r?`${r}${o}`:"./";setTimeout(()=>{window.history.replaceState({},document==null?void 0:document.title,i)})};var $a=e=>{var o;let t={};if((o=window==null?void 0:window.location)!=null&&o.search){let i=new URLSearchParams(window.location.search);t=Object.fromEntries(i)}let r={};return e.forEach(i=>{r[i]=t[i],delete t[i]}),{remainingParams:r,clearNavigationHistory:()=>Wa(t)}};function Ha(){let e=S(pe),t=S(Ns),r=S(Ds),o=S(Nt),i=S(Pe),l=S(Yn),p=S(Rs),d=S(Ce),u=S(Rt),[g,f]=(0,Fe.useState)(),h=S(Wr),I=h==null?void 0:h.nativeAuthConfig,P=Oe(I||!1),k=(0,Fe.useRef)(!1),b=M(),{callbackRoute:O,logoutRoute:N}=t||{callbackRoute:"",logoutRoute:""},[V]=yo({callbackRoute:O,logoutRoute:N}),[ne]=ho({callbackRoute:O,logoutRoute:N});(0,Fe.useEffect)(()=>{Q()},[e]),(0,Fe.useEffect)(()=>{zt()},[r]),(0,Fe.useEffect)(()=>{Ue()},[i,e]),(0,Fe.useEffect)(()=>{Ye()},[l,d,g]);function Q(){return T(this,null,function*(){try{let L=yield ha();L&&b($i(L.erd_chain_id))}catch(L){console.error("failed refreshing chainId ",L)}})}function Ye(){l==null&&p!=null&&g&&b(Pn({index:p.index,address:i,hasContractDataEnabled:g.dataEnabled,version:g.version}))}function Ue(){return T(this,null,function*(){if(b(At(!0)),k.current){k.current=!1,b(At(!1));return}if(i)try{let L=yield je(i);L&&b(st(E(y({},L),{address:i,nonce:L.nonce.valueOf()})))}catch(L){b(xi("Failed getting account")),console.error("Failed getting account ",L)}b(At(!1))})}function U(){return T(this,null,function*(){let L=ao(e.walletAddress);if(me(L),o!=null){try{let F=yield ze(),{clearNavigationHistory:Xe,remainingParams:{signature:B}}=$a(["signature","loginToken","address"]);if(!F)return me(nr),b(Ar(null)),Xe();B&&P.setTokenLoginInfo({signature:B,address:F});let H=yield je(F);H&&(k.current=!0,b(At(!0)),b(oe({address:F,loginMethod:"wallet"})),b(st(E(y({},H),{nonce:Ft(H)}))),b(At(!1))),Xe()}catch(F){console.error("Failed authenticating wallet user ",F)}b(Ar(null))}})}function Ze(){return T(this,null,function*(){let L=new Va.HWProvider,F=L.isInitialized();if(F||(F=yield L.init()),!F&&d){console.warn("Could not initialise ledger app"),X(u);return}return(p==null?void 0:p.index)!=null&&(L.addressIndex=p.index),L})}function Je(){return T(this,null,function*(){try{let L=yield Ze();if(!L)return;let F=yield co(L);me(L),f(F)}catch(L){console.error("Could not initialise ledger app",L),X(u)}})}function Ht(){return T(this,null,function*(){try{let L=yield ze(),F=Ga.ExtensionProvider.getInstance().setAddress(L);(yield F.init())?me(F):console.error("Could not initialise extension, make sure MultiversX wallet extension is installed.")}catch(L){console.error("Unable to login to ExtensionProvider",L)}})}function zt(){if(r!=null)switch(r){case"ledger":{Je();break}case"walletconnect":{V(!1);break}case"walletconnectv2":{ne(!1);break}case"extension":{Ht();break}case"extra":{Ia();break}case"wallet":case"":{U();break}default:return}}return null}n();var Gt=A(require("react"));n();n();n();n();var Tc=require("react");n();n();var So=()=>S(Se);n();C();n();n();n();var xu=require("react"),wu=require("@multiversx/sdk-web-wallet-provider"),vu=A(require("qs"));D();C();R();n();var qa=require("react"),Pu=require("@multiversx/sdk-extension-provider");D();C();R();n();n();n();n();var ja=require("react"),bu=require("@multiversx/sdk-extension-provider");D();C();n();n();var Cu=A(require("axios")),Du=A(require("swr"));n();n();var Ya=require("react");n();var Ka=require("react");Mn();C();J();at();n();ht();C();n();n();n();n();n();function Za(){let e=S(no),t=Object.entries(e),r=(t==null?void 0:t.length)>0;return{pendingTransactions:e,pendingTransactionsArray:t,hasPendingTransactions:r}}Et();n();C();R();n();Et();function Ja(e,t){return e.reduce((o,{status:i,hash:l})=>(l!=null&&!t.includes(l)&&Ee(i)&&o.push({hash:l,previousStatus:i}),o),[])}n();C();R();function Xa({results:e,hash:t,sessionId:r}){let o=e==null?void 0:e.find(i=>(i==null?void 0:i.returnMessage)!=="");w.dispatch(Xt({transactionHash:t,sessionId:r,status:"fail",errorMessage:o==null?void 0:o.returnMessage})),w.dispatch(pt({sessionId:r,status:"fail",errorMessage:o==null?void 0:o.returnMessage}))}n();C();J();function xo(e){w.dispatch(pt({sessionId:e,status:"timedOut"}))}var rn={},wo=[];function Ru({serverTransaction:e,sessionId:t,customTransactionInformation:r,shouldRefreshBalance:o}){let{hash:i,status:l,results:p,invalidTransaction:d,hasStatusChanged:u}=e;try{if(wo.includes(i))return;if(rn[i]>30){xo(t);return}if(d||Ee(l)){rn[i]=rn[i]?rn[i]+1:1;return}u&&(ct(l)&&(r==null?void 0:r.completedTransactionsDelay)!=null?(wo.push(i),setTimeout(()=>w.dispatch(Xt({sessionId:t,status:"success",transactionHash:i})),r==null?void 0:r.completedTransactionsDelay)):w.dispatch(Xt({sessionId:t,status:l,transactionHash:i}))),o||Xr(),lt(l)&&Xa({sessionId:t,hash:i,results:p})}catch(g){console.error(g),xo(t)}}function Qa(l){return T(this,arguments,function*({sessionId:e,transactionBatch:{transactions:t,customTransactionInformation:r},getTransactionsByHash:o=Yr,shouldRefreshBalance:i}){try{if(t==null)return;let p=Ja(t,wo),d=yield o(p);for(let u of d)Ru({serverTransaction:u,sessionId:e,customTransactionInformation:r,shouldRefreshBalance:i})}catch(p){console.error(p)}})}function ec(){let{pendingTransactionsArray:e}=Za();function t(r){return T(this,null,function*(){let o=e.filter(([i,l])=>i!=null&&Ee(l.status));if(o.length>0)for(let[i,l]of o)yield Qa(y({sessionId:i,transactionBatch:l},r));r.shouldRefreshBalance&&Xr()})}return t}n();var Bu=require("react");n();n();n();C();n();n();var Fu=A(require("bignumber.js"));D();C();J();n();var Ou=A(require("bignumber.js"));D();n();var _u=require("@multiversx/sdk-core"),Uu=A(require("bignumber.js"));D();R();Et();n();n();n();n();var tc=require("react");n();n();var Wu=require("react"),$u=require("@multiversx/sdk-extension-provider");ht();Y();R();bt();n();var Hu=require("react");ht();C();n();n();vn();n();n();var Gu=A(require("platform"));n();n();n();n();n();at();n();n();n();function nc(e){return new Promise(t=>{setTimeout(()=>t(),e)})}n();var oc=(e,t,r,o=0)=>T(void 0,null,function*(){try{return yield e(...r)}catch(i){return o<t.retries?((t==null?void 0:t.delay)!=null&&(yield nc(t.delay)),oc(e,t,r,o+1)):null}}),ic=(e,t={retries:5,delay:500})=>(...r)=>T(void 0,null,function*(){return oc(e,t,r)});vt();n();n();n();C();var Vu={};var sc=e=>{if(e.component!=null){let t=e,{component:r}=t,o=Qe(t,["component"]),{payload:i}=w.dispatch(Un(E(y({},o),{component:null})));return Vu[i.toastId]=r,i}return w.dispatch(Un(e)).payload};n();n();var ac=A(require("axios"));function vo(e){return T(this,null,function*(){try{let{data:t}=yield ac.default.get(`${e}/websocket/config`);return`wss://${t.url}`}catch(t){throw console.error(t),new Error("Can not get websocket url")}})}n();var cc=require("react"),ju=require("@multiversx/sdk-hw-provider");ht();Y();C();R();bt();n();var zu=require("react");n();n();var lc=require("react");n();var dc=require("react");n();var mt=require("react"),pc=require("socket.io-client");C();n();var _e={current:null,status:"not_initialized"};var qu=3e3,Ku=3,Yu=500,Zu=1e3;function uc(){let e=(0,mt.useRef)(null),{address:t}=dt(),r=M(),{network:o}=So(),i=p=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{r(wi(p))},Zu)},l=(0,mt.useCallback)(ic(()=>T(this,null,function*(){_e.status="pending";let p=yield vo(o.apiAddress);if(p==null){console.warn("Can not get websocket url");return}_e.current=(0,pc.io)(p,{forceNew:!0,reconnectionAttempts:Ku,timeout:qu,query:{address:t}}),_e.status="completed",_e.current.onAny(d=>{i(d)})}),{retries:2,delay:Yu}),[t]);(0,mt.useEffect)(()=>{t&&_e.status==="not_initialized"&&!_e.current&&l()},[t,_e.current]),(0,mt.useEffect)(()=>()=>{var p;(p=_e.current)==null||p.close(),e.current&&clearTimeout(e.current)},[])}function mc(e){uc();let t=S(Zn);(0,dc.useEffect)(()=>{let r=t==null?void 0:t.message;r&&e(r)},[e,t])}n();n();n();var gc=e=>e.dappModal,Ju=x(gc,e=>e.visible),nn=x(gc,e=>e.modal),zN=x(nn,e=>e.showHeader),jN=x(nn,e=>e.showFooter),qN=x(nn,e=>e.headerText),KN=x(nn,e=>e.footerText);it();var{logoutEvent:Xu}=ce,fc="storage",yc=()=>{let{address:e}=De(),t=S(Rt);(0,Tc.useEffect)(()=>{let r=o=>{if(!(o.key!==Xu||!o.newValue))try{let{data:i}=JSON.parse(o.newValue);i===e&&X(t)}catch(i){return}};return window.addEventListener(fc,r),()=>{window.removeEventListener(fc,r)}},[e,t])};n();n();var on=require("react"),Ao=A(require("bignumber.js"));var Sc=require("@fortawesome/free-solid-svg-icons");n();n();var cr=A(require("bignumber.js")),hc=e=>{let t=new cr.default(e).dividedBy(1e3).integerValue(cr.default.ROUND_FLOOR),r=new cr.default(t).dividedBy(60).integerValue(cr.default.ROUND_FLOOR),o=r.modulo(60).isGreaterThan(1),i=r.modulo(60).isLessThan(1);return o?`${r} minutes`:i?"less than 1 minute":`${r} minute`};var xc=()=>{let{address:e}=De(),{tokenLogin:t}=S(q),{secondsUntilExpires:r,expiresAt:o}=Bt(t==null?void 0:t.nativeAuthToken),i=(0,on.useRef)();return(0,on.useEffect)(()=>{var d;let l=new Ao.default(String(r)),p=l.times(1e3);if(!(!r||l.isLessThanOrEqualTo(0))){if((d=t==null?void 0:t.nativeAuthConfig)!=null&&d.tokenExpirationToastWarningSeconds){clearTimeout(i.current);let g=new Ao.default(t.nativeAuthConfig.tokenExpirationToastWarningSeconds).times(1e3),f=l.times(1e3).minus(g),h=hc(p),I=f.isLessThanOrEqualTo(0)?0:f.toNumber();i.current=setTimeout(()=>{sc({toastId:"nativeAuthTokenExpiration",type:"custom",title:"Session Expiration Warning",icon:Sc.faRefresh,message:`Your token will expire in ${h}!`})},I)}return()=>{clearTimeout(i.current)}}},[o,e,t==null?void 0:t.nativeAuthConfig]),null};n();var $t=require("react"),wc=A(require("bignumber.js"));var vc=()=>{let{address:e}=De(),{tokenLogin:t}=S(q),r=S(Rt),{isExpired:o,secondsUntilExpires:i,expiresAt:l}=Bt(t==null?void 0:t.nativeAuthToken),p=(0,$t.useRef)(""),d=(0,$t.useRef)();return(0,$t.useEffect)(()=>{e&&o&&X(r)},[o,e,r]),(0,$t.useEffect)(()=>{let u=new wc.default(String(i)),g=`${e}_${l}`,f=p.current===g;if(!(i&&u.isGreaterThan(0))||f)return;p.current=g,clearTimeout(d.current);let I=u.times(1e3);return d.current=setTimeout(()=>{X(r)},I.toNumber()),()=>{clearTimeout(d.current)}},[l,e,r]),null};var Ac=()=>(xc(),yc(),vc(),null);n();n();var sn=require("react"),bc=require("@multiversx/sdk-core"),kc=require("@multiversx/sdk-core/out/signature");C();R();at();var Ic=e=>{let t=e.redirectRoute;t&&ke(t)},Ec=({sendSignedTransactionsAsync:e=ua})=>{let t=S(Ge),r=S(He),o=(0,sn.useRef)(!1),i=M(),l=()=>{i(Lt()),o.current=!1};function p(){return T(this,null,function*(){var u;let d=Object.keys(r);for(let g of d){let f=r==null?void 0:r[g],h=(u=f==null?void 0:f.customTransactionInformation)==null?void 0:u.signWithoutSending;if(!g||h){Ic(f);continue}try{if(!(r[g].status==="signed"&&!o.current))continue;let{transactions:k}=r[g];if(!k)continue;o.current=!0;let b=k.map(Q=>{let Ye=new bc.Address(Q.sender),Ue=Ot(Q),U=new kc.Signature(Q.signature);return Ue.applySignature(U,Ye),Ue}),O=yield e(b),N="pending",V=k.map(Q=>O.includes(Q.hash)?E(y({},Q),{status:N}):Q);i(Ni({sessionId:g,submittedMessage:"submitted"})),i(pt({sessionId:g,status:"sent",transactions:V})),l(),ka(t.nonce+k.length),Ic(f),history.pushState({},document==null?void 0:document.title,"?")}catch(I){console.error("Unable to send transactions",I),i(pt({sessionId:g,status:"fail",errorMessage:I.message})),l()}finally{o.current=!1}}})}return(0,sn.useEffect)(()=>{p()},[r,t]),null};n();n();n();var Lc=require("react");function Pc(e){var i;let t=ec(),r=(i=e==null?void 0:e.getTransactionsByHash)!=null?i:Yr,o=()=>{t({shouldRefreshBalance:!0,getTransactionsByHash:r})};mc(o),(0,Lc.useEffect)(()=>{let l=setInterval(o,3e4);return()=>{clearInterval(l)}},[o])}function Cc({getTransactionsByHash:e}){return Pc({getTransactionsByHash:e}),null}function Dc({customComponents:e}){var l,p;let t=e==null?void 0:e.transactionSender,r=e==null?void 0:e.transactionTracker,o=(l=t==null?void 0:t.component)!=null?l:Ec,i=(p=r==null?void 0:r.component)!=null?p:Cc;return Gt.default.createElement(Gt.default.Fragment,null,Gt.default.createElement(o,y({},t==null?void 0:t.props)),Gt.default.createElement(i,y({},r==null?void 0:r.props)),Gt.default.createElement(Ac,null))}var Qu=({children:e,customNetworkConfig:t={},externalProvider:r,environment:o,customComponents:i,dappConfig:l})=>{if(!o)throw new Error("missing environment flag");return r!=null&&Aa(r),Vt.default.createElement(Nc.Provider,{context:Qt,store:w},Vt.default.createElement(Rc.PersistGate,{persistor:ks,loading:null},Vt.default.createElement(mo,{environment:o,customNetworkConfig:t,logoutRoute:l==null?void 0:l.logoutRoute},Vt.default.createElement(Ha,null),Vt.default.createElement(Dc,{customComponents:i}),e)))};0&&(module.exports={AppInitializer,AuthenticatedRoutesWrapper,AxiosInterceptor,AxiosInterceptorContext,AxiosInterceptorContextProvider,DappProvider,LoginInfoListener,useAxiosInterceptorContext});
|
|
1
|
+
"use strict";var Oc=Object.create;var qt=Object.defineProperty,Fc=Object.defineProperties,_c=Object.getOwnPropertyDescriptor,Uc=Object.getOwnPropertyDescriptors,Bc=Object.getOwnPropertyNames,pr=Object.getOwnPropertySymbols,Wc=Object.getPrototypeOf,cn=Object.prototype.hasOwnProperty,bo=Object.prototype.propertyIsEnumerable;var Io=(e,t,r)=>t in e?qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,y=(e,t)=>{for(var r in t||(t={}))cn.call(t,r)&&Io(e,r,t[r]);if(pr)for(var r of pr(t))bo.call(t,r)&&Io(e,r,t[r]);return e},E=(e,t)=>Fc(e,Uc(t));var ko=e=>typeof e=="symbol"?e:e+"",Qe=(e,t)=>{var r={};for(var o in e)cn.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&pr)for(var o of pr(e))t.indexOf(o)<0&&bo.call(e,o)&&(r[o]=e[o]);return r};var v=(e,t)=>()=>(e&&(t=e(e=0)),t);var ur=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),et=(e,t)=>{for(var r in t)qt(e,r,{get:t[r],enumerable:!0})},Eo=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Bc(t))!cn.call(e,i)&&i!==r&&qt(e,i,{get:()=>t[i],enumerable:!(o=_c(t,i))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?Oc(Wc(e)):{},Eo(t||!e||!e.__esModule?qt(r,"default",{value:e,enumerable:!0}):r,e)),Kt=e=>Eo(qt({},"__esModule",{value:!0}),e);var T=(e,t,r)=>new Promise((o,i)=>{var l=u=>{try{d(r.next(u))}catch(g){i(g)}},p=u=>{try{d(r.throw(u))}catch(g){i(g)}},d=u=>u.done?o(u.value):Promise.resolve(u.value).then(l,p);d((r=r.apply(e,t)).next())});var Co=ur(dr=>{"use strict";n();dr.byteLength=Gc;dr.toByteArray=Hc;dr.fromByteArray=qc;var fe=[],ae=[],$c=typeof Uint8Array!="undefined"?Uint8Array:Array,ln="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(tt=0,Lo=ln.length;tt<Lo;++tt)fe[tt]=ln[tt],ae[ln.charCodeAt(tt)]=tt;var tt,Lo;ae["-".charCodeAt(0)]=62;ae["_".charCodeAt(0)]=63;function Po(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 Gc(e){var t=Po(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Vc(e,t,r){return(t+r)*3/4-r}function Hc(e){var t,r=Po(e),o=r[0],i=r[1],l=new $c(Vc(e,o,i)),p=0,d=i>0?o-4:o,u;for(u=0;u<d;u+=4)t=ae[e.charCodeAt(u)]<<18|ae[e.charCodeAt(u+1)]<<12|ae[e.charCodeAt(u+2)]<<6|ae[e.charCodeAt(u+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=ae[e.charCodeAt(u)]<<2|ae[e.charCodeAt(u+1)]>>4,l[p++]=t&255),i===1&&(t=ae[e.charCodeAt(u)]<<10|ae[e.charCodeAt(u+1)]<<4|ae[e.charCodeAt(u+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function zc(e){return fe[e>>18&63]+fe[e>>12&63]+fe[e>>6&63]+fe[e&63]}function jc(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(zc(o));return i.join("")}function qc(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(jc(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(fe[t>>2]+fe[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(fe[t>>10]+fe[t>>4&63]+fe[t<<2&63]+"=")),i.join("")}});var Do=ur(pn=>{n();pn.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,u=(1<<d)-1,g=u>>1,f=-7,h=r?i-1:0,I=r?-1:1,P=e[t+h];for(h+=I,l=P&(1<<-f)-1,P>>=-f,f+=d;f>0;l=l*256+e[t+h],h+=I,f-=8);for(p=l&(1<<-f)-1,l>>=-f,f+=o;f>0;p=p*256+e[t+h],h+=I,f-=8);if(l===0)l=1-g;else{if(l===u)return p?NaN:(P?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-g}return(P?-1:1)*p*Math.pow(2,l-o)};pn.write=function(e,t,r,o,i,l){var p,d,u,g=l*8-i-1,f=(1<<g)-1,h=f>>1,I=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=o?0:l-1,k=o?1:-1,b=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=f):(p=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-p))<1&&(p--,u*=2),p+h>=1?t+=I/u:t+=I*Math.pow(2,1-h),t*u>=2&&(p++,u/=2),p+h>=f?(d=0,p=f):p+h>=1?(d=(t*u-1)*Math.pow(2,i),p=p+h):(d=t*Math.pow(2,h-1)*Math.pow(2,i),p=0));i>=8;e[r+P]=d&255,P+=k,d/=256,i-=8);for(p=p<<i|d,g+=i;g>0;e[r+P]=p&255,P+=k,p/=256,g-=8);e[r+P-k]|=b*128}});var Ho=ur(Tt=>{"use strict";n();var un=Co(),ft=Do(),No=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Tt.Buffer=m;Tt.SlowBuffer=Qc;Tt.INSPECT_MAX_BYTES=50;var mr=2147483647;Tt.kMaxLength=mr;m.TYPED_ARRAY_SUPPORT=Kc();!m.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 Kc(){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(m.prototype,"parent",{enumerable:!0,get:function(){if(!!m.isBuffer(this))return this.buffer}});Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(!!m.isBuffer(this))return this.byteOffset}});function ve(e){if(e>mr)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,m.prototype),t}function m(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 fn(e)}return Oo(e,t,r)}m.poolSize=8192;function Oo(e,t,r){if(typeof e=="string")return Zc(e,t);if(ArrayBuffer.isView(e))return Jc(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(Te(e,ArrayBuffer)||e&&Te(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Te(e,SharedArrayBuffer)||e&&Te(e.buffer,SharedArrayBuffer)))return mn(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 m.from(o,t,r);var i=Xc(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return m.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)}m.from=function(e,t,r){return Oo(e,t,r)};Object.setPrototypeOf(m.prototype,Uint8Array.prototype);Object.setPrototypeOf(m,Uint8Array);function Fo(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 Yc(e,t,r){return Fo(e),e<=0?ve(e):t!==void 0?typeof r=="string"?ve(e).fill(t,r):ve(e).fill(t):ve(e)}m.alloc=function(e,t,r){return Yc(e,t,r)};function fn(e){return Fo(e),ve(e<0?0:Tn(e)|0)}m.allocUnsafe=function(e){return fn(e)};m.allocUnsafeSlow=function(e){return fn(e)};function Zc(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!m.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=_o(e,t)|0,o=ve(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function dn(e){for(var t=e.length<0?0:Tn(e.length)|0,r=ve(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function Jc(e){if(Te(e,Uint8Array)){var t=new Uint8Array(e);return mn(t.buffer,t.byteOffset,t.byteLength)}return dn(e)}function mn(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,m.prototype),o}function Xc(e){if(m.isBuffer(e)){var t=Tn(e.length)|0,r=ve(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||yn(e.length)?ve(0):dn(e);if(e.type==="Buffer"&&Array.isArray(e.data))return dn(e.data)}function Tn(e){if(e>=mr)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+mr.toString(16)+" bytes");return e|0}function Qc(e){return+e!=e&&(e=0),m.alloc(+e)}m.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==m.prototype};m.compare=function(t,r){if(Te(t,Uint8Array)&&(t=m.from(t,t.offset,t.byteLength)),Te(r,Uint8Array)&&(r=m.from(r,r.offset,r.byteLength)),!m.isBuffer(t)||!m.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};m.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}};m.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return m.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=m.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(Te(p,Uint8Array))l+p.length>i.length?m.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(m.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function _o(e,t){if(m.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Te(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 gn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Vo(e).length;default:if(i)return o?-1:gn(e).length;t=(""+t).toLowerCase(),i=!0}}m.byteLength=_o;function el(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 pl(this,t,r);case"utf8":case"utf-8":return Bo(this,t,r);case"ascii":return cl(this,t,r);case"latin1":case"binary":return ll(this,t,r);case"base64":return sl(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ul(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}m.prototype._isBuffer=!0;function rt(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}m.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)rt(this,r,r+1);return this};m.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)rt(this,r,r+3),rt(this,r+1,r+2);return this};m.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)rt(this,r,r+7),rt(this,r+1,r+6),rt(this,r+2,r+5),rt(this,r+3,r+4);return this};m.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Bo(this,0,t):el.apply(this,arguments)};m.prototype.toLocaleString=m.prototype.toString;m.prototype.equals=function(t){if(!m.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:m.compare(this,t)===0};m.prototype.inspect=function(){var t="",r=Tt.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};No&&(m.prototype[No]=m.prototype.inspect);m.prototype.compare=function(t,r,o,i,l){if(Te(t,Uint8Array)&&(t=m.from(t,t.offset,t.byteLength)),!m.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,u=Math.min(p,d),g=this.slice(i,l),f=t.slice(r,o),h=0;h<u;++h)if(g[h]!==f[h]){p=g[h],d=f[h];break}return p<d?-1:d<p?1:0};function Uo(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,yn(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=m.from(t,o)),m.isBuffer(t))return t.length===0?-1:Ro(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):Ro(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function Ro(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 u(P,k){return l===1?P[k]:P.readUInt16BE(k*l)}var g;if(i){var f=-1;for(g=r;g<p;g++)if(u(e,g)===u(t,f===-1?0:g-f)){if(f===-1&&(f=g),g-f+1===d)return f*l}else f!==-1&&(g-=g-f),f=-1}else for(r+d>p&&(r=p-d),g=r;g>=0;g--){for(var h=!0,I=0;I<d;I++)if(u(e,g+I)!==u(t,I)){h=!1;break}if(h)return g}return-1}m.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};m.prototype.indexOf=function(t,r,o){return Uo(this,t,r,o,!0)};m.prototype.lastIndexOf=function(t,r,o){return Uo(this,t,r,o,!1)};function tl(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(yn(d))return p;e[r+p]=d}return p}function rl(e,t,r,o){return gr(gn(t,e.length-r),e,r,o)}function nl(e,t,r,o){return gr(gl(t),e,r,o)}function ol(e,t,r,o){return gr(Vo(t),e,r,o)}function il(e,t,r,o){return gr(fl(t,e.length-r),e,r,o)}m.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 tl(this,t,r,o);case"utf8":case"utf-8":return rl(this,t,r,o);case"ascii":case"latin1":case"binary":return nl(this,t,r,o);case"base64":return ol(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return il(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function sl(e,t,r){return t===0&&r===e.length?un.fromByteArray(e):un.fromByteArray(e.slice(t,r))}function Bo(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 u,g,f,h;switch(d){case 1:l<128&&(p=l);break;case 2:u=e[i+1],(u&192)===128&&(h=(l&31)<<6|u&63,h>127&&(p=h));break;case 3:u=e[i+1],g=e[i+2],(u&192)===128&&(g&192)===128&&(h=(l&15)<<12|(u&63)<<6|g&63,h>2047&&(h<55296||h>57343)&&(p=h));break;case 4:u=e[i+1],g=e[i+2],f=e[i+3],(u&192)===128&&(g&192)===128&&(f&192)===128&&(h=(l&15)<<18|(u&63)<<12|(g&63)<<6|f&63,h>65535&&h<1114112&&(p=h))}}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 al(o)}var Mo=4096;function al(e){var t=e.length;if(t<=Mo)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=Mo));return r}function cl(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 ll(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 pl(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+=Tl[e[l]];return i}function ul(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}m.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,m.prototype),i};function $(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")}m.prototype.readUintLE=m.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||$(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};m.prototype.readUintBE=m.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||$(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};m.prototype.readUint8=m.prototype.readUInt8=function(t,r){return t=t>>>0,r||$(t,1,this.length),this[t]};m.prototype.readUint16LE=m.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||$(t,2,this.length),this[t]|this[t+1]<<8};m.prototype.readUint16BE=m.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||$(t,2,this.length),this[t]<<8|this[t+1]};m.prototype.readUint32LE=m.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||$(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};m.prototype.readUint32BE=m.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||$(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};m.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||$(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};m.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||$(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};m.prototype.readInt8=function(t,r){return t=t>>>0,r||$(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};m.prototype.readInt16LE=function(t,r){t=t>>>0,r||$(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};m.prototype.readInt16BE=function(t,r){t=t>>>0,r||$(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};m.prototype.readInt32LE=function(t,r){return t=t>>>0,r||$(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};m.prototype.readInt32BE=function(t,r){return t=t>>>0,r||$(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};m.prototype.readFloatLE=function(t,r){return t=t>>>0,r||$(t,4,this.length),ft.read(this,t,!0,23,4)};m.prototype.readFloatBE=function(t,r){return t=t>>>0,r||$(t,4,this.length),ft.read(this,t,!1,23,4)};m.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||$(t,8,this.length),ft.read(this,t,!0,52,8)};m.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||$(t,8,this.length),ft.read(this,t,!1,52,8)};function te(e,t,r,o,i,l){if(!m.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")}m.prototype.writeUintLE=m.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;te(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};m.prototype.writeUintBE=m.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;te(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};m.prototype.writeUint8=m.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||te(this,t,r,1,255,0),this[r]=t&255,r+1};m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||te(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||te(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||te(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};m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||te(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};m.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);te(this,t,r,o,l-1,-l)}var p=0,d=1,u=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&u===0&&this[r+p-1]!==0&&(u=1),this[r+p]=(t/d>>0)-u&255;return r+o};m.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);te(this,t,r,o,l-1,-l)}var p=o-1,d=1,u=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&u===0&&this[r+p+1]!==0&&(u=1),this[r+p]=(t/d>>0)-u&255;return r+o};m.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||te(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};m.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||te(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};m.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||te(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};m.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||te(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};m.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||te(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 Wo(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 $o(e,t,r,o,i){return t=+t,r=r>>>0,i||Wo(e,t,r,4,34028234663852886e22,-34028234663852886e22),ft.write(e,t,r,o,23,4),r+4}m.prototype.writeFloatLE=function(t,r,o){return $o(this,t,r,!0,o)};m.prototype.writeFloatBE=function(t,r,o){return $o(this,t,r,!1,o)};function Go(e,t,r,o,i){return t=+t,r=r>>>0,i||Wo(e,t,r,8,17976931348623157e292,-17976931348623157e292),ft.write(e,t,r,o,52,8),r+8}m.prototype.writeDoubleLE=function(t,r,o){return Go(this,t,r,!0,o)};m.prototype.writeDoubleBE=function(t,r,o){return Go(this,t,r,!1,o)};m.prototype.copy=function(t,r,o,i){if(!m.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};m.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"&&!m.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=m.isBuffer(t)?t:m.from(t,i),u=d.length;if(u===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%u]}return this};var dl=/[^+/0-9A-Za-z-_]/g;function ml(e){if(e=e.split("=")[0],e=e.trim().replace(dl,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function gn(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 gl(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function fl(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 Vo(e){return un.toByteArray(ml(e))}function gr(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 Te(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function yn(e){return e!==e}var Tl=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 Yo=ur((sd,Ko)=>{n();var _=Ko.exports={},ye,he;function hn(){throw new Error("setTimeout has not been defined")}function Sn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ye=setTimeout:ye=hn}catch(e){ye=hn}try{typeof clearTimeout=="function"?he=clearTimeout:he=Sn}catch(e){he=Sn}})();function zo(e){if(ye===setTimeout)return setTimeout(e,0);if((ye===hn||!ye)&&setTimeout)return ye=setTimeout,setTimeout(e,0);try{return ye(e,0)}catch(t){try{return ye.call(null,e,0)}catch(r){return ye.call(this,e,0)}}}function yl(e){if(he===clearTimeout)return clearTimeout(e);if((he===Sn||!he)&&clearTimeout)return he=clearTimeout,clearTimeout(e);try{return he(e)}catch(t){try{return he.call(null,e)}catch(r){return he.call(this,e)}}}var Ae=[],yt=!1,nt,fr=-1;function hl(){!yt||!nt||(yt=!1,nt.length?Ae=nt.concat(Ae):fr=-1,Ae.length&&jo())}function jo(){if(!yt){var e=zo(hl);yt=!0;for(var t=Ae.length;t;){for(nt=Ae,Ae=[];++fr<t;)nt&&nt[fr].run();fr=-1,t=Ae.length}nt=null,yt=!1,yl(e)}}_.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];Ae.push(new qo(e,t)),Ae.length===1&&!yt&&zo(jo)};function qo(e,t){this.fun=e,this.array=t}qo.prototype.run=function(){this.fun.apply(null,this.array)};_.title="browser";_.browser=!0;_.env={};_.argv=[];_.version="";_.versions={};function Ie(){}_.on=Ie;_.addListener=Ie;_.once=Ie;_.off=Ie;_.removeListener=Ie;_.removeAllListeners=Ie;_.emit=Ie;_.prependListener=Ie;_.prependOnceListener=Ie;_.listeners=function(e){return[]};_.binding=function(e){throw new Error("process.binding is not supported")};_.cwd=function(){return"/"};_.chdir=function(e){throw new Error("process.chdir is not supported")};_.umask=function(){return 0}});var s,a,ad,n=v(()=>{s=A(Ho()),a=A(Yo()),ad=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)});var ht=v(()=>{"use strict";n()});var Zo=v(()=>{"use strict";n()});var Jo=v(()=>{"use strict";n()});var Xo=v(()=>{"use strict";n()});var R=v(()=>{"use strict";n()});var Qo=v(()=>{"use strict";n()});var ei=v(()=>{"use strict";n()});var Z=v(()=>{"use strict";n()});var ti=v(()=>{"use strict";n()});var ri=v(()=>{"use strict";n()});var J=v(()=>{"use strict";n();Zo();Jo();Xo();R();Qo();ei();Z();ti();ri()});var ot,ni,kd,oi,Ed,ii,Ld,Pd,Sl,St=v(()=>{"use strict";n();J();ot={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:ni,egldLabel:kd}=ot["devnet"],{chainId:oi,egldLabel:Ed}=ot["testnet"],{chainId:ii,egldLabel:Ld}=ot["mainnet"],Pd={["devnet"]:ni,["testnet"]:oi,["mainnet"]:ii},Sl={[ni]:"devnet",[oi]:"testnet",[ii]:"mainnet"}});var xn=v(()=>{"use strict";n()});var si=v(()=>{"use strict";n()});var Tr,wn=v(()=>{"use strict";n();Tr="transaction-status-toast-id"});var Yt,yr,ai,ci,hr,li,xt,D=v(()=>{"use strict";n();ht();St();xn();si();wn();Yt=5e4,yr=1e9,ai=1,ci=1,hr="logout",li="login",xt="0"});var wt,Sr=v(()=>{"use strict";n();wt=()=>Date.now()/1e3});var pi=v(()=>{"use strict";n()});var ui=v(()=>{"use strict";n()});var vn=v(()=>{"use strict";n();Sr();pi();ui()});var In={};et(In,{getItem:()=>wl,localStorageKeys:()=>ce,removeItem:()=>vl,setItem:()=>xl});var ce,An,xl,wl,vl,it=v(()=>{"use strict";n();vn();ce={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},An=typeof localStorage!="undefined",xl=({key:e,data:t,expires:r})=>{!An||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},wl=e=>{if(!An)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:wt()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},vl=e=>{!An||localStorage.removeItem(String(e))}});var bn={};et(bn,{clear:()=>fi,getItem:()=>mi,removeItem:()=>gi,setItem:()=>di,storage:()=>Al});var di,mi,gi,fi,Al,Ti=v(()=>{"use strict";n();di=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},mi=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},gi=e=>sessionStorage.removeItem(String(e)),fi=()=>sessionStorage.clear(),Al={setItem:di,getItem:mi,removeItem:gi,clear:fi}});var be,vt=v(()=>{"use strict";n();it();Ti();be={session:bn,local:In}});var kn,G,oe,Y=v(()=>{"use strict";n();kn=require("@reduxjs/toolkit");D();G=(0,kn.createAction)(hr),oe=(0,kn.createAction)(li,e=>({payload:e}))});var Ln,yi,hi,xr,En,Si,st,nm,wr,om,Pn,Il,im,At,xi,wi,vi,Cn=v(()=>{"use strict";n();Ln=require("@multiversx/sdk-core"),yi=require("@reduxjs/toolkit"),hi=require("redux-persist");D();vt();it();Y();xr={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:xt},En={address:"",websocketEvent:null,accounts:{"":xr},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Si=(0,yi.createSlice)({name:"accountInfoSlice",initialState:En,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Ln.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:xr},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(G,()=>(be.local.removeItem(ce.loginExpiresAt),En)),e.addCase(oe,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new Ln.Address(o).hex()}),e.addCase(hi.REHYDRATE,(t,r)=>{var g;if(!((g=r.payload)!=null&&g.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let u=p&&i in p;t.accounts=u?p:En.accounts,t.publicKey=d})}}),{setAccount:st,setAddress:nm,setAccountNonce:wr,setAccountShard:om,setLedgerAccount:Pn,updateLedgerAccount:Il,setWalletConnectAccount:im,setIsAccountLoading:At,setAccountLoadingError:xi,setWebsocketEvent:wi}=Si.actions,vi=Si.reducer});function Zt(){return new Date().setHours(new Date().getHours()+24)}function Jt(e){be.local.setItem({key:ce.loginExpiresAt,data:e,expires:e})}var Dn=v(()=>{"use strict";n();vt();it()});var Ii,Ai,bi,fm,vr,bl,It,Tm,Ar,ki,Ei,Li,Ir=v(()=>{"use strict";n();Ii=require("@reduxjs/toolkit");Dn();R();Y();Ai={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,isLoginSessionInvalid:!1},bi=(0,Ii.createSlice)({name:"loginInfoSlice",initialState:Ai,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(G,()=>Ai),e.addCase(oe,(t,r)=>{t.loginMethod=r.payload.loginMethod,Jt(Zt())})}}),{setLoginMethod:fm,setWalletConnectLogin:vr,setLedgerLogin:bl,setTokenLogin:It,setTokenLoginSignature:Tm,setWalletLogin:Ar,invalidateLoginSession:ki,setLogoutRoute:Ei}=bi.actions,Li=bi.reducer});var Ci,Pi,Di,Ni,kl,xm,El,Ri,Nn=v(()=>{"use strict";n();Ci=require("@reduxjs/toolkit");Y();Pi={},Di=(0,Ci.createSlice)({name:"modalsSlice",initialState:Pi,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(G,()=>Pi)}}),{setTxSubmittedModal:Ni,setNotificationModal:kl,clearTxSubmittedModal:xm,clearNotificationModal:El}=Di.actions,Ri=Di.reducer});var Mi,Oi,ke,at=v(()=>{"use strict";n();Mi=!1,Oi=(e=!0)=>{Mi=e},ke=(e,t=0)=>{Mi||setTimeout(()=>{window.location.href=e,window.location.assign(e)},t)}});function bt({callbackRoute:e,onLoginRedirect:t,options:r}){let o=Boolean(e),i=typeof t=="function",l=i?0:Ll;o&&e!=null&&setTimeout(()=>{if(i)return t(e,r);window.location.pathname.includes(e)||ke(e)},l)}var Ll,Fi=v(()=>{"use strict";n();at();Ll=200});function Rn(e){return e[Math.floor(Math.random()*e.length)]}var _i=v(()=>{"use strict";n()});var Mn=v(()=>{"use strict";n();xn()});var kt=v(()=>{"use strict";n();Fi();_i();Mn()});var Ui,Bi,On,Pl,Wi,Fn,$i,Gi,br=v(()=>{"use strict";n();Ui=require("@reduxjs/toolkit"),Bi=A(require("lodash.omit"));kt();On={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Pl={network:On,chainID:"-1"},Wi=(0,Ui.createSlice)({name:"appConfig",initialState:Pl,reducers:{initializeNetworkConfig:(e,t)=>{let r=Rn(t.payload.walletConnectBridgeAddresses),o=Rn(t.payload.walletConnectV2RelayAddresses),i=(0,Bi.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=E(y(y({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Fn,setChainID:$i}=Wi.actions,Gi=Wi.reducer});var Vi,_n,Hi,Wm,$m,Gm,kr,Er=v(()=>{"use strict";n();Vi=require("@reduxjs/toolkit");J();Y();_n={isSigning:!1,signedSessions:{}},Hi=(0,Vi.createSlice)({name:"signedMessageInfoSliceState",initialState:_n,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;return E(y({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:o.status==="pending",signedSessions:E(y({},e.signedSessions),{[r]:o})})},setSignSessionState:(e,t)=>y(y({},e),t.payload),clearSignedMessageInfo:()=>_n},extraReducers:e=>{e.addCase(G,()=>_n)}}),{setSignSession:Wm,clearSignedMessageInfo:$m,setSignSessionState:Gm}=Hi.actions,kr=Hi.reducer});var ji,qi,zi,Ki,Un,Bn,Zm,Jm,Xm,Qm,Lr,Pr=v(()=>{"use strict";n();ji=require("@reduxjs/toolkit"),qi=require("redux-persist");wn();J();Sr();Y();zi={customToasts:[],transactionToasts:[],failTransactionToast:null},Ki=(0,ji.createSlice)({name:"toastsSlice",initialState:zi,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(E(y({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:wt(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=E(y({},t.payload),{toastId:Tr})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(G,()=>zi),e.addCase(qi.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:Un,removeCustomToast:Bn,addTransactionToast:Zm,removeTransactionToast:Jm,addFailTransactionToast:Xm,removeFailTransactionToast:Qm}=Ki.actions,Lr=Ki.reducer});var Yi,$n,Gn,Vn,Cl,Wn,Zi,ng,Dl,Hn,Cr,Dr=v(()=>{"use strict";n();Yi=require("@reduxjs/toolkit");Y();$n="Transaction failed",Gn="Transaction successful",Vn="Processing transaction",Cl="Transaction submitted",Wn={},Zi=(0,Yi.createSlice)({name:"transactionsInfo",initialState:Wn,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||$n,successMessage:(o==null?void 0:o.successMessage)||Gn,processingMessage:(o==null?void 0:o.processingMessage)||Vn,submittedMessage:(o==null?void 0:o.submittedMessage)||Cl,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Wn},extraReducers:e=>{e.addCase(G,()=>Wn)}}),{clearTransactionsInfo:ng,setTransactionsDisplayInfo:Dl,clearTransactionsInfoForSessionId:Hn}=Zi.actions,Cr=Zi.reducer});function Ee(e){return e!=null&&(Bl(e)||Vl(e))}function ct(e){return e!=null&&(Wl(e)||Hl(e))}function lt(e){return e!=null&&($l(e)||zl(e))}function zn(e){return e!=null&&Gl(e)}function Bl(e){return e!=null&&Nl.includes(e)}function Wl(e){return e!=null&&Rl.includes(e)}function $l(e){return e!=null&&Ml.includes(e)}function Gl(e){return e!=null&&Ol.includes(e)}function Vl(e){return e!=null&&Fl.includes(e)}function Hl(e){return e!=null&&_l.includes(e)}function zl(e){return e!=null&&Ul.includes(e)}var Nl,Rl,Ml,Ol,Fl,_l,Ul,Lt=v(()=>{"use strict";n();R();Nl=["sent"],Rl=["success"],Ml=["fail","cancelled","timedOut"],Ol=["timedOut"],Fl=["pending"],_l=["success"],Ul=["fail","invalid"]});var Ji,Xi,Xt,jl,Qi,Qt,pt,ql,Pt,Kl,Yl,dg,Zl,Nr,jn,Rr,Mr=v(()=>{"use strict";n();Ji=require("@reduxjs/toolkit"),Xi=require("redux-persist");R();Lt();Y();Xt={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},jl={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Qi=(0,Ji.createSlice)({name:"transactionsSlice",initialState:Xt,reducers:{moveTransactionsToSignedState:(e,t)=>{var u,g;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p}=t.payload,d=((u=e.customTransactionInformationForSessionId)==null?void 0:u[r])||jl;e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:d},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===r&&(e.transactionsToSign=Xt.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=y(y({},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 d,u,g,f,h,I;let{sessionId:r,status:o,errorMessage:i,transactionHash:l}=t.payload,p=(u=(d=e.signedTransactions)==null?void 0:d[r])==null?void 0:u.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(b=>b.hash===l?E(y({},b),{status:o,errorMessage:i}):b);let P=(f=(g=e.signedTransactions[r])==null?void 0:g.transactions)==null?void 0:f.every(b=>ct(b.status)),k=(I=(h=e.signedTransactions[r])==null?void 0:h.transactions)==null?void 0:I.every(b=>lt(b.status));P&&(e.signedTransactions[r].status="success"),k&&(e.signedTransactions[r].status="fail")}},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=Xt.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Xt.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(G,()=>Xt),e.addCase(Xi.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,[u,g])=>{let f=new Date(u),h=new Date;return h.setHours(h.getHours()+5),h-f>0||(d[u]=g),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Qt,updateSignedTransactions:pt,setTransactionsToSign:ql,clearAllTransactionsToSign:Pt,clearAllSignedTransactions:Kl,clearSignedTransaction:Yl,clearTransactionToSign:dg,setSignTransactionsError:Zl,setSignTransactionsCancelMessage:Nr,moveTransactionsToSignedState:jn}=Qi.actions,Rr=Qi.reducer});var C=v(()=>{"use strict";n();Cn();Ir();Nn();br();Er();Pr();Dr();Mr()});var qn=v(()=>{"use strict";n()});var os,ns,is,Fg,_g,Ug,Bg,Wg,$g,ss,as=v(()=>{"use strict";n();os=require("@reduxjs/toolkit");Y();ns={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},is=(0,os.createSlice)({name:"dappModalsSlice",initialState:ns,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=y({},t.payload)}},extraReducers:e=>{e.addCase(G,()=>ns)}}),{setDappModalVisibility:Fg,setDappModalHeaderVisibility:_g,setDappModalFooterVisibility:Ug,setDappModalHeaderText:Bg,setDappModalFooterText:Wg,setDappModalConfig:$g}=is.actions,ss=is.reducer});var cs,ep,tp,Dt,Ur=v(()=>{"use strict";n();cs=require("@reduxjs/toolkit");qn();Cn();as();Ir();Nn();br();Er();Pr();Dr();Mr();ep={["account"]:vi,["dappModal"]:ss,["loginInfo"]:Li,["modals"]:Ri,["networkConfig"]:Gi,["signedMessageInfo"]:kr,["toasts"]:Lr,["transactionsInfo"]:Cr,["transactions"]:Rr},tp=(e={})=>(0,cs.combineReducers)(y(y({},ep),e)),Dt=tp});var us={};et(us,{default:()=>lp});function Br(e,t=[]){return{key:e,version:1,storage:ps.default,blacklist:t}}var $e,ls,ps,rp,np,op,ip,sp,ap,cp,lp,ds=v(()=>{"use strict";n();$e=require("redux-persist"),ls=A(require("redux-persist/lib/storage")),ps=A(require("redux-persist/lib/storage/session"));Ur();C();Er();Pr();Dr();Mr();qn();rp={2:e=>E(y({},e),{networkConfig:On})};np=Br("sdk-dapp-transactionsInfo"),op=Br("sdk-dapp-transactions",["transactionsToSign"]),ip=Br("sdk-dapp-toasts"),sp=Br("sdk-dapp-signedMessageInfo"),ap={key:"sdk-dapp-store",version:2,storage:ls.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,$e.createMigrate)(rp,{debug:!1})},cp={["toasts"]:(0,$e.persistReducer)(ip,Lr),["transactions"]:(0,$e.persistReducer)(op,Rr),["transactionsInfo"]:(0,$e.persistReducer)(np,Cr),["signedMessageInfo"]:(0,$e.persistReducer)(sp,kr)},lp=(0,$e.persistReducer)(ap,Dt(cp))});var ms={};et(ms,{default:()=>pp});var pp,gs=v(()=>{"use strict";n();Ur();pp=Dt()});var fs={};et(fs,{default:()=>dp});var le,up,dp,Ts=v(()=>{"use strict";n();le=require("redux-persist"),up=[le.FLUSH,le.REHYDRATE,le.PAUSE,le.PERSIST,le.PURGE,le.REGISTER],dp=up});var Ss={};et(Ss,{default:()=>hs});function hs(e){return(0,ys.persistStore)(e)}var ys,xs=v(()=>{"use strict";n();ys=require("redux-persist")});var ed={};et(ed,{AppInitializer:()=>mo,AuthenticatedRoutesWrapper:()=>la,AxiosInterceptor:()=>To,AxiosInterceptorContext:()=>fu,AxiosInterceptorContextProvider:()=>go,DappProvider:()=>Qu,LoginInfoListener:()=>fo,useAxiosInterceptorContext:()=>Ut});module.exports=Kt(ed);n();n();var oo=A(require("react"));n();var Es=require("react"),Nt=require("react-redux");n();var Kn=require("@reduxjs/toolkit"),Is=require("react-redux/lib/utils/Subscription");C();n();var ts=A(require("lodash.throttle"));D();n();var es=A(require("lodash.isequal")),Or=require("reselect");J();var x=(0,Or.createSelectorCreator)(Or.defaultMemoize,es.default),Ct=(e,t)=>e!=""&&Boolean(t);C();Dn();vt();it();var Jl=[hr],Fr=!1,Xl=(0,ts.default)(()=>{Jt(Zt())},5e3),rs=e=>t=>r=>{var u;if(Jl.includes(r.type))return t(r);let o=e.getState(),i=be.local.getItem(ce.loginExpiresAt);if(!Ct((u=o==null?void 0:o.loginInfo)==null?void 0:u.loginMethod,o==null?void 0:o.account.address))return t(r);if(i==null)return Jt(Zt());let p=Date.now();return i-p<0&&!Fr?setTimeout(()=>{Fr=!0,e.dispatch(ki())},1e3):(Fr&&(Fr=!1),Xl()),t(r)};n();n();function _r(){return typeof sessionStorage!="undefined"}var ws=_r()?(ds(),Kt(us)).default:(gs(),Kt(ms)).default,vs=_r()?(Ts(),Kt(fs)).default:[],As=_r()?(xs(),Kt(Ss)).default:e=>e;Ur();var w=(0,Kn.configureStore)({reducer:ws,middleware:e=>e({serializableCheck:{ignoredActions:[...vs,wr.type,st.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(rs)}),bs=(0,Is.createSubscription)(w),ks=As(w),ff=(0,Kn.configureStore)({reducer:Dt});var mp={store:w,subscription:bs},er=(0,Es.createContext)(mp),Sf=(0,Nt.createStoreHook)(er),M=(0,Nt.createDispatchHook)(er),S=(0,Nt.createSelectorHook)(er);n();n();C();var Le=e=>e.account,Pe=x(Le,e=>e.address),Ge=x(Le,Pe,(e,t)=>t in e.accounts?e.accounts[t]:xr),Ls=x(Le,Ge,(e,t)=>{let i=e,{accounts:r}=i,o=Qe(i,["accounts"]);return E(y({},o),{account:t})}),gp=x(Ge,e=>e.balance),Ps=x(Ge,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Af=x(Le,e=>e.shard),Yn=x(Le,e=>e.ledgerAccount),If=x(Le,e=>e.walletConnectAccount),Cs=x(Le,e=>e.isAccountLoading),bf=x(Le,e=>e.accountLoadingError),Zn=x(Le,e=>e.websocketEvent);n();var q=e=>e.loginInfo,Ds=x(q,e=>e.loginMethod),Ce=x(q,Pe,(e,t)=>Ct(e.loginMethod,t)),Ns=x(q,e=>e.walletConnectLogin),Rs=x(q,e=>e.ledgerLogin),Rt=x(q,e=>e.walletLogin),Ms=x(q,e=>e.isLoginSessionInvalid),Wr=x(q,e=>e.tokenLogin),Mt=x(q,e=>e.logoutRoute);n();var Os=e=>e.modals,Df=x(Os,e=>e.txSubmittedModal),fp=x(Os,e=>e.notificationModal);n();var Se=e=>e.networkConfig,tr=x(Se,e=>e.chainID),Fs=x(Se,e=>e.network.walletConnectBridgeAddress),_s=x(Se,e=>e.network.walletConnectV2RelayAddress),Us=x(Se,e=>e.network.walletConnectV2ProjectId),Bs=x(Se,e=>e.network.walletConnectV2Options),$r=x(Se,e=>e.network.walletConnectDeepLink),pe=x(Se,e=>e.network),Gr=x(pe,e=>e.apiAddress),Ws=x(pe,e=>e.explorerAddress),$s=x(pe,e=>e.egldLabel);n();var Jn=e=>e.signedMessageInfo,Ff=x(Jn,e=>e.isSigning),_f=x(Jn,e=>e.errorMessage),Uf=x(Jn,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});n();var Xn=e=>e.toasts,$f=x(Xn,e=>e.customToasts),Gf=x(Xn,e=>e.transactionToasts),Vf=x(Xn,e=>e.failTransactionToast);n();C();var Gs={errorMessage:$n,successMessage:Gn,processingMessage:Vn},Tp=e=>e.transactionsInfo,yp=x(Tp,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Gs);n();n();var se=require("@multiversx/sdk-core");D();n();function Qn(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function Ot(e){return atob(e)}function Ft(e){var i,l,p;let{data:t}=e,r=Qn(t!=null?t:"")?se.TransactionPayload.fromEncoded(t):new se.TransactionPayload(t),o=new se.Transaction(y({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new se.Address(e.receiver),sender:new se.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:Yt,gasPrice:(l=e.gasPrice.valueOf())!=null?l:yr,chainID:e.chainID.valueOf(),version:new se.TransactionVersion((p=e.version)!=null?p:ai)},e.options?{options:new se.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new se.Address(e.sender)),o}n();Lt();n();var Sp=A(require("bignumber.js"));J();n();n();n();n();var wp=require("@multiversx/sdk-core"),vp=A(require("bignumber.js"));R();n();var zs=require("@multiversx/sdk-core");function xp(e){try{let t=new zs.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function rr(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&xp(e)}n();n();n();var Ip=require("@multiversx/sdk-core/out");n();D();n();var js=require("@multiversx/sdk-core");J();n();n();n();n();R();n();n();n();n();n();n();n();var qs="dapp/config",Ks="network/config";var Vr="accounts";var eo="blocks";n();n();n();n();Z();n();n();Z();n();n();n();var Np=A(require("bignumber.js"));D();n();var Dp=require("@multiversx/sdk-core"),to=A(require("bignumber.js"));D();n();var Pp=A(require("bignumber.js"));n();to.default.config({ROUNDING_MODE:to.default.ROUND_FLOOR});n();n();n();D();n();n();n();n();D();n();D();n();var Rp=require("@multiversx/sdk-core");D();n();var nr=require("@multiversx/sdk-core"),Fp=require("@multiversx/sdk-network-providers");D();n();n();var Mp=A(require("bignumber.js"));D();n();D();n();n();n();n();n();D();n();Z();var Up=["reDelegateRewards","claimRewards","unBond"],Bp=["wrapEgld","unwrapEgld"],Wp=["unStake"],$p=["unDelegate"];n();n();n();D();n();var zp=A(require("bignumber.js"));n();n();n();Z();n();var jp=A(require("bignumber.js"));n();n();n();n();Z();n();n();n();var Yp=A(require("linkifyjs"));n();D();n();var Zp=A(require("bignumber.js"));n();J();n();n();R();n();R();n();n();n();Z();n();Z();n();var Jp=A(require("bignumber.js"));D();Z();n();Z();n();var ea=require("react");J();n();n();Z();n();var Xp=require("@multiversx/sdk-core/out"),Qp=A(require("bignumber.js"));Z();n();Z();n();n();R();var mw=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var ta=require("react");J();n();var tu=require("react");Z();var xw=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var qr=e=>e.transactions,He=x(qr,e=>e.signedTransactions),ru=x(qr,e=>e.signTransactionsError),ra=x(qr,e=>e.signTransactionsCancelMessage),Kr=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),no=x(He,Kr(Ee)),na=x(He,Kr(ct)),oa=x(He,Kr(lt)),nu=x(He,Kr(zn)),ia=x(qr,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:E(y({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Ft(r)))||[]})}),ou=x(He,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});at();n();n();function sa(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(r){}}}function aa(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=iu(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let l=i[0],p=l.replace(/(.)\/+$/,"$1"),d=i.slice(1);return{params:o.reduce((g,f,h)=>{if(f==="*"){let I=d[h]||"";p=l.slice(0,l.length-I.length).replace(/(.)\/+$/,"$1")}return g[f]=su(d[h]||"",f),g},{}),pathname:l,pathnameBase:p,pattern:e}}function iu(e,t=!1,r=!0){sa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(p,d)=>(o.push(d),"([^\\/]+)"));return e.endsWith("*")?(o.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i+=r?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(i,t?void 0:"i"),o]}function su(e,t){try{return decodeURIComponent(e)}catch(r){return sa(!1,`The value for the URL param "${t}" will not be decoded because the string "${e}" is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),e}}var ca=(e,t)=>e.filter(({authenticatedRoute:i})=>Boolean(i)).some(({path:i})=>aa(i,t)!==null);var la=({children:e,routes:t,unlockRoute:r,onRedirect:o})=>{let i=S(Ce),l=S(Cs),p=S(Rt),u=ca(t,window.location.pathname)&&!i&&p==null;return l||p?null:u?(o?o(r):ke(r),null):oo.default.createElement(oo.default.Fragment,null,e)};n();var Re=A(require("react")),Pa=require("@multiversx/sdk-core/out");n();n();n();var pa=A(require("axios"));function ua(e){return T(this,null,function*(){let{apiAddress:t,apiTimeout:r}=pe(w.getState()),o=e.map(l=>pa.default.post(`${t}/transactions`,l.toPlainObject(),{timeout:parseInt(r)}));return(yield Promise.all(o)).map(({data:l})=>l.txHash)})}n();var da=A(require("axios"));function Yr(e){return T(this,null,function*(){let t=Gr(w.getState()),r=e.map(i=>i.hash),{data:o}=yield da.default.get(`${t}/transactions`,{params:{hashes:r.join(","),withScResults:!0}});return e.map(({hash:i,previousStatus:l})=>{let p=o.find(d=>(d==null?void 0:d.txHash)===i);return{hash:i,data:p==null?void 0:p.data,invalidTransaction:p==null,status:p==null?void 0:p.status,results:p==null?void 0:p.results,sender:p==null?void 0:p.sender,receiver:p==null?void 0:p.receiver,previousStatus:l,hasStatusChanged:p&&p.status!==l}})})}n();var cu=A(require("axios"));n();n();var lu=A(require("axios"));n();var pu=A(require("axios"));n();n();n();var ga=A(require("axios"));n();n();var Zr=e=>{let t=e!=null?e:Gr(w.getState());return t.endsWith("/")?t.slice(0,-1):t};function fa(e){return T(this,null,function*(){if(!e)return null;let r=`${Zr()}/${Vr}/${e}`;try{let{data:o}=yield ga.default.get(r);return o}catch(o){console.error("error fetching configuration for ",r)}return null})}n();n();St();n();var Ta=A(require("axios"));function io(e){return T(this,null,function*(){let t=`${e}/${qs}`;try{let{data:o}=yield Ta.default.get(t);if(o!=null){let i="egldDenomination";if(i in o){let r=o,{[i]:l,decimals:p}=r,d=Qe(r,[ko(i),"decimals"]);return E(y({},d),{decimals:l,digits:p})}return o}}catch(o){console.error("error fetching configuration for ",t)}return null})}n();var ya=A(require("axios"));function ha(){return T(this,null,function*(){var r;let t=`${Zr()}/${Ks}`;try{let{data:o}=yield ya.default.get(t);if(o!=null)return(r=o==null?void 0:o.data)==null?void 0:r.config}catch(o){console.error("error fetching configuration for ",t)}return null})}n();St();n();St();n();var uu=A(require("axios"));St();n();var De=()=>S(Ls);br();n();n();n();n();var Sa=require("@multiversx/sdk-extension-provider"),xa=require("@multiversx/sdk-hw-provider"),wa=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),va=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),so=require("@multiversx/sdk-web-wallet-provider");D();R();var du="/dapp/init",ut=e=>{switch(e==null?void 0:e.constructor){case so.WalletProvider:return"wallet";case wa.WalletConnectProvider:return"walletconnect";case va.WalletConnectV2Provider:return"walletconnectv2";case xa.HWProvider:return"ledger";case Sa.ExtensionProvider:return"extension";case Jr:return"";default:return"extra"}},ao=e=>new so.WalletProvider(`${e}${du}`),co=e=>T(void 0,null,function*(){if(!e.isInitialized())throw new Error("Unable to get version. Provider not initialized");let t=e.hwApp,{contractData:r,version:o}=yield t.getAppConfiguration();return{version:o,dataEnabled:r===ci}}),Ne=e=>`Unable to perform ${e}, Provider not initialized`,Jr=class{init(){return Promise.resolve(!1)}login(t){throw new Error(Ne(`login with options: ${t}`))}logout(t){throw new Error(Ne(`logout with options: ${t}`))}getAddress(){throw new Error(Ne("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(Ne(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(Ne(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(Ne(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(Ne(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(Ne(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(Ne(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},or=new Jr;var po=or,lo=null;function me(e){po=e}function Aa(e){lo=e}function Ia(){lo!=null&&(po=lo)}function re(){return po||or}Y();J();n();function ge(){return Ce(w.getState())}n();n();R();n();n();function ba(){let e=re();return ut(e)}function ue(e){return ba()===e}function ze(){let{search:e}=window.location,t=w.getState(),r=re(),o=Pe(t),i=Ce(t),l=Rt(t);if(!r)throw"provider not initialized";return ue("ledger")&&i?new Promise(p=>{p(o)}):!ue("")&&!ue("wallet")&&!ue("extra")?r.getAddress():new Promise(p=>{if(l!=null){let d=new URLSearchParams(e),u=Object.fromEntries(d);rr(u.address)&&p(u.address)}i&&p(o),p("")})}n();function je(e){return T(this,null,function*(){return yield fa(e)})}n();C();function ka(e){w.dispatch(wr(e))}n();function _t(e){let t=w.getState(),r=Ps(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}n();n();C();var Ea=()=>T(void 0,null,function*(){try{let e=yield ze();try{let t=yield je(e);if(t!=null){let r=E(y({},t),{nonce:_t(t)});return w.dispatch(st(r)),r}}catch(t){console.error("Failed getting account ",t)}}catch(e){console.error("Failed getting address ",e)}return null});function Xr(){return T(this,null,function*(){let e=re();if(e==null)throw"Provider not initialized";if(!e.isInitialized||e.isInitialized())return Ea();try{if(!e.init)throw"Current provider does not have init() function";return(yield e.init())?Ea():void 0}catch(t){console.error("Failed initializing provider ",t)}})}n();var La=require("@multiversx/sdk-core");n();Y();J();at();vt();it();var mu=e=>{be.local.setItem({key:ce.logoutEvent,data:e,expires:0}),be.local.removeItem(ce.logoutEvent)};function X(e,t){return T(this,null,function*(){let r=re(),o=ut(r),i=ge(),l=o==="wallet";if(!i||!r){uo(e,t,!1);return}try{let p=yield ze();mu(p)}catch(p){uo(e,t,!1),console.error("error fetching logout address",p)}l&&Oi(),w.dispatch(G());try{let d=l&&!e?window.location.origin:e;l?setTimeout(()=>{r.logout({callbackUrl:d})}):(yield r.logout({callbackUrl:d}),uo(e,t,l))}catch(p){console.error("error logging out",p)}})}function uo(e,t,r){e&&!r&&(typeof t=="function"?t(e):ke(e))}Ir();function mo({customNetworkConfig:e={},children:t,environment:r,logoutRoute:o}){let[i,l]=(0,Re.useState)(!1),p=De(),d=S(Ms),{address:u,publicKey:g}=p,f=M();function h(){return T(this,null,function*(){let P=!(e!=null&&e.skipFetchFromServer),k=e==null?void 0:e.apiAddress,b=ot[r]||{},O=y(y({},b),e);if(P){let N=b==null?void 0:b.apiAddress,V=yield io(k||N);if(V!=null){let ne=y(y(y({},b),V),e);f(Fn(ne));return}}f(Fn(O))})}function I(){return T(this,null,function*(){f(Ei(o)),yield h(),l(!0)})}return(0,Re.useEffect)(()=>{u&&new Pa.Address(u).hex()!==g&&X(o)},[u,g,o]),(0,Re.useEffect)(()=>{I()},[e,r,o]),(0,Re.useEffect)(()=>{p.address&&d&&X(o)},[d,p.address,o]),i?Re.default.createElement(Re.default.Fragment,null,t):null}n();var Ht=A(require("react")),Nc=require("react-redux"),Rc=require("redux-persist/integration/react");n();var Fe=require("react"),Ga=require("@multiversx/sdk-extension-provider"),Va=require("@multiversx/sdk-hw-provider");n();var _a=require("react"),en=require("@multiversx/sdk-core");n();n();var dt=()=>S(Ge);n();n();n();n();n();var Me=A(require("react"));var Ca=(0,Me.createContext)({}),gu=w.getState();function go({children:e}){let[t,r]=(0,Me.useState)(),[o,i]=(0,Me.useState)(q(gu)),l={address:t,setAddress:r,isLoggedIn:Ct(o.loginMethod,t),loginInfo:o,setLoginInfo:p=>i(p)};return Me.default.createElement(Ca.Provider,{value:l},e)}function Ut(){let e=(0,Me.useContext)(Ca);if(e===void 0||Object.values(e).length===0)throw new Error("useAxiosInterceptorContext must be used within an AxiosInterceptorContextProvider");return e}n();var ir=A(require("react"));var fo=({children:e=null})=>{var l;let{address:t}=dt(),r=S(q),{setLoginInfo:o,setAddress:i}=Ut();return(0,ir.useEffect)(()=>{i(t),o(r)},[(l=r.tokenLogin)==null?void 0:l.loginToken,t]),ir.default.createElement(ir.default.Fragment,null,e)};n();var qe=A(require("react")),Qr=A(require("axios"));var To=({children:e,authenticatedDomanis:t})=>{var d;let{loginInfo:r}=Ut(),o=(d=r==null?void 0:r.tokenLogin)==null?void 0:d.nativeAuthToken,i=(0,qe.useRef)(-1),l=()=>{Qr.default.interceptors.response.use(u=>u,u=>{var f,h;let g=(f=u.config)==null?void 0:f.url;return(h=u.config)!=null&&h.params&&(g+=`?${new URLSearchParams(u.config.params).toString()}`),console.error("Axios error for: ",g),Promise.reject(u)})},p=()=>{Qr.default.interceptors.request.eject(i.current),i.current=Qr.default.interceptors.request.use(u=>T(void 0,null,function*(){return t.includes(String(u==null?void 0:u.baseURL))&&(u.headers={Authorization:`Bearer ${o}`}),u}),u=>{Promise.reject(u)})};return(0,qe.useEffect)(l,[]),(0,qe.useEffect)(()=>{o&&p()},[o]),qe.default.createElement(qe.default.Fragment,null,e)};var fu={Interceptor:To,Listener:fo,Provider:go};n();n();var sr=()=>{let e=re(),t=ut(e);return{provider:e,providerType:t}};n();C();n();n();n();var Da,ar={hostname:typeof window!="undefined"?(Da=window==null?void 0:window.location)==null?void 0:Da.hostname:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},cr=e=>{var r,o,i,l;return e===!0?ar:{hostname:(r=e==null?void 0:e.hostname)!=null?r:ar.hostname,expirySeconds:(o=e==null?void 0:e.expirySeconds)!=null?o:ar.expirySeconds,apiAddress:(i=e==null?void 0:e.apiAddress)!=null?i:ar.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:ar.tokenExpirationToastWarningSeconds}};n();var Tu=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),Bt=e=>Tu(s.Buffer.from(e,"utf8").toString("base64"));n();var Na=A(require("axios"));function Ra(e){return T(this,null,function*(){let{data:t}=yield Na.default.get(`${e}/${eo}?size=1&fields=hash,timestamp`),[r]=t;return r})}n();n();n();function yu(e){return Object.prototype.toString.call(e)==="[object String]"}var Ma=e=>{if(!e||!yu(e))return null;try{let[t,r,o]=e.split("."),i=Ot(t),l=Ot(r),[p,d,u,g]=l.split("."),f=JSON.parse(Ot(g)),h=Ot(p),I={ttl:Number(u),address:i,extraInfo:f,host:h,signature:o,blockHash:d,body:l};return g==="e30"&&delete I.extraInfo,I}catch(t){return null}};var Oa=({address:e,token:t,signature:r})=>{let o=Bt(e),i=Bt(t);return`${o}.${i}.${r}`};n();Sr();var Wt=e=>{let t=Ma(e);if(!t)return{isExpired:!1};let r=wt(),{ttl:o,extraInfo:i}=t,l=i.timestamp;if(!l)return{isExpired:!1};let p=l+o,d=r>p,u=p-r;return{isExpired:d,expiresAt:p,secondsUntilExpires:u}};var Fa=e=>{let{hostname:t,apiAddress:r,expirySeconds:o}=cr(e);return{getNativeAuthConfig:cr,initialize:(...p)=>T(void 0,[...p],function*(l={}){let{hash:d,timestamp:u}=yield Ra(r),g=Bt(JSON.stringify(y(y({},l),u?{timestamp:u}:{})));return`${Bt(t)}.${d}.${o}.${g}`}),getToken:Oa,getTokenExpiration:Wt}};n();var hu=(e,t)=>{var r;return t?t===!0?e:(r=t.apiAddress)!=null?r:e:null},Oe=e=>{let t=S(pe),r=S(Wr),o=(0,_a.useRef)(r==null?void 0:r.loginToken),i=hu(t.apiAddress,e),l=cr(y(y({},e===!0?{}:e),i?{apiAddress:i}:{})),p=Boolean(e),d=Fa(l),{address:u}=dt(),g=M(),f=k=>{o.current=k,g(It(y({loginToken:k},i?{nativeAuthConfig:l}:{})))},h=()=>T(void 0,null,function*(){try{return yield d.initialize()}catch(k){console.error("Unable to get block. Login failed.",k);return}}),I=({address:k,signature:b})=>{let O=o.current;if(!O)throw"Token not found. Call `setLoginToken` first.";if(!p){g(It({loginToken:O,signature:b}));return}let N=d.getToken({address:k,token:O,signature:b});g(It(y({loginToken:O,signature:b,nativeAuthToken:N},i?{nativeAuthConfig:l}:{})))};return{configuration:l,setLoginToken:f,getNativeAuthLoginToken:h,setTokenLoginInfo:I,refreshNativeAuthTokenLogin:b=>T(void 0,[b],function*({signMessageCallback:k}){let O=yield h();if(o.current=O,!O)return;let N=new en.SignableMessage({address:new en.Address(u),message:s.Buffer.from(O)}),V=yield k(N,{});I({address:u,signature:V.toJSON().signature})})}};n();var Ke=require("react"),Ua=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");n();var tn=require("react");function $t(e,t=[]){let r=(0,tn.useRef)(!0);(0,tn.useEffect)(()=>{r.current?r.current=!1:e()},t)}Y();C();R();kt();var yo=({logoutRoute:e,callbackRoute:t,nativeAuth:r,token:o,onLoginRedirect:i})=>{let l=M(),p=15e3,d=r!=null,u=Oe(r),g=o,[f,h]=(0,Ke.useState)(""),[I,P]=(0,Ke.useState)(""),{provider:k}=sr(),b=S(Fs),O=S($r),N=(0,Ke.useRef)(k),V=(0,Ke.useRef)(!0),ne,Q=Boolean(I),Ye=!Q,Ue=Q?`${O}?wallet-connect=${encodeURIComponent(I)}`:"";(0,Ke.useEffect)(()=>{Je();let B=setInterval(()=>{Je()},p);return()=>clearInterval(B)},[k]),$t(()=>{!o||L()},[o]),$t(()=>{N.current=k},[k]);let U=()=>{X(e)},Ze=()=>{V.current=!1};function Je(){return T(this,null,function*(){var we,z;if(k==null||!ue("walletconnect")||!Boolean((z=(we=N.current)==null?void 0:we.walletConnector)==null?void 0:z.connected))return;let H={method:"heartbeat",params:{}};try{yield N.current.sendCustomMessage(H)}catch(ee){console.error("Connection lost",ee),U()}})}function zt(){return T(this,null,function*(){var B;try{let H=N.current;if(ge()||H==null||!ue("walletconnect"))return;if(!V.current){try{yield(B=N.current)==null?void 0:B.logout()}catch(j){console.warn("Unable to logout")}return}let z=yield H.getAddress();if(!z){console.warn("Login cancelled.");return}let ee=yield H.getSignature(),gt={address:z,loginMethod:"walletconnect"},W={logoutRoute:e,loginType:"walletConnect",callbackRoute:t!=null?t:window.location.href};l(vr(W)),ee&&u.setTokenLoginInfo({signature:ee,address:z}),l(oe(gt)),H.walletConnector.on("heartbeat",()=>{clearInterval(ne),ne=setInterval(()=>{console.log("Maiar Wallet Connection Lost"),U(),clearInterval(ne)},15e4)}),bt({callbackRoute:t,onLoginRedirect:i,options:{address:z,signature:ee}})}catch(H){h("Invalid address"),console.error(H)}})}function jt(B=!0){return T(this,null,function*(){var ee,gt;let H=B&&!I;if(!b||((gt=(ee=N==null?void 0:N.current)==null?void 0:ee.isInitialized)==null?void 0:gt.call(ee))&&!H)return;let we={onClientLogin:zt,onClientLogout:U},z=new Ua.WalletConnectProvider(b,we);yield z.init(),V.current=!0,me(z),N.current=z,B&&L()})}function L(){return T(this,null,function*(){var z;if(!b)return;let B=yield(z=N.current)==null?void 0:z.login();if(!Boolean(B))return;if(d&&!g&&(g=yield u.getNativeAuthLoginToken(),!g)){console.warn("Fetching block failed. Login cancelled.");return}if(!g){P(B);return}u.setLoginToken(g);let we=`${B}&token=${g}`;P(we)})}let F=Boolean(f),Xe=ge();return[jt,{error:f,loginFailed:F,isLoading:Ye&&!F,isLoggedIn:Xe&&!F},{uriDeepLink:Ue,walletConnectUri:I,cancelLogin:Ze}]};n();var xe=require("react"),Ba=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");Y();C();R();kt();var ho=({callbackRoute:e,logoutRoute:t,token:r,nativeAuth:o,onLoginRedirect:i})=>{let l=M(),p=o!=null,d=Oe(o),u=r,[g,f]=(0,xe.useState)(""),[h,I]=(0,xe.useState)(""),[P,k]=(0,xe.useState)(!0),[b,O]=(0,xe.useState)([]),N=re(),V=S(_s),ne=S(Us),Q=S(Bs),Ye=S(tr),Ue=S($r),U=(0,xe.useRef)(N),Ze=(0,xe.useRef)(!0),Je=["erd_cancelAction"],zt=P?"":`${Ue}?wallet-connect=${encodeURIComponent(h)}`;$t(()=>{!r||z()},[r]),$t(()=>{U.current=N},[N]),(0,xe.useEffect)(()=>{k(!Boolean(h))},[h]);let jt=()=>{X(t)},L=W=>{console.log("wc2 session event: ",W)},F=()=>{Ze.current=!1};function Xe(){return T(this,null,function*(){var W;try{let j=U.current;if(ge()||j==null||!ue("walletconnectv2"))return;if(!Ze.current){try{yield(W=U.current)==null?void 0:W.logout()}catch(td){console.warn("Unable to logout")}return}let de=yield j.getAddress();if(!de){console.warn("Login cancelled.");return}let Be=yield j.getSignature(),an={address:de,loginMethod:"walletconnectv2"},Mc={logoutRoute:t,loginType:"walletconnectv2",callbackRoute:e!=null?e:window.location.href};l(vr(Mc)),Be&&d.setTokenLoginInfo({signature:Be,address:de}),l(oe(an)),bt({callbackRoute:e,onLoginRedirect:i,options:{address:de,signature:Be}})}catch(j){f("Invalid address"),console.error(j)}})}function B(W=!0){return T(this,null,function*(){if(!ne||!V){f("Invalid WalletConnect setup");return}let j={onClientLogin:Xe,onClientLogout:jt,onClientEvent:L},K=new Ba.WalletConnectV2Provider(j,Ye,V,ne,Q);yield K.init(),Ze.current=!0,me(K),O(K.pairings),U.current=K,W&&z()})}function H(W){return T(this,null,function*(){var j,K,de;if(!V||!ne){f("Invalid WalletConnect setup");return}if(!W||!W.topic){f("Expired connection");return}try{let{approval:Be}=yield(j=U.current)==null?void 0:j.connect({topic:W.topic,methods:Je});if(p&&!u&&(u=yield d.getNativeAuthLoginToken(),!u)){console.warn("Fetching block failed. Login cancelled.");return}u&&d.setLoginToken(u);try{yield(K=U.current)==null?void 0:K.login({approval:Be,token:u})}catch(an){f("User rejected existing connection proposal"),k(!0),yield B()}}catch(Be){console.error("Unable to connect to existing session",Be),f("Unable to connect to existing session")}finally{O((de=U.current)==null?void 0:de.pairings)}})}function we(W){return T(this,null,function*(){var j,K;try{W&&(yield(j=U.current)==null?void 0:j.logout({topic:W}))}catch(de){console.error("Unable to remove existing pairing",de),f("Unable to remove existing pairing")}finally{O((K=U.current)==null?void 0:K.pairings)}})}function z(){return T(this,null,function*(){var W,j;if(!V||!ne){f("Invalid WalletConnect setup");return}try{let{uri:K,approval:de}=yield(W=U.current)==null?void 0:W.connect({methods:Je});if(!Boolean(K))return;if(I(K),p&&!u&&(u=yield d.getNativeAuthLoginToken(),!u)){console.warn("Fetching block failed. Login cancelled.");return}u&&d.setLoginToken(u);try{yield(j=U.current)==null?void 0:j.login({approval:de,token:u})}catch(an){f("User rejected connection proposal"),k(!0),yield B()}}catch(K){console.error("Unable to connect",K)}})}let ee=Boolean(g),gt=ge();return[B,{error:g,loginFailed:ee,isLoading:P&&!ee,isLoggedIn:gt&&!ee},{uriDeepLink:zt,walletConnectUri:h,cancelLogin:F,connectExisting:H,removeExistingPairing:we,wcPairings:b}]};Y();C();R();n();n();var Wa=e=>{let t=new URLSearchParams(e).toString(),{pathname:r}=window.location,o=t?`?${t}`:"",i=r?`${r}${o}`:"./";setTimeout(()=>{window.history.replaceState({},document==null?void 0:document.title,i)})};var $a=e=>{var o;let t={};if((o=window==null?void 0:window.location)!=null&&o.search){let i=new URLSearchParams(window.location.search);t=Object.fromEntries(i)}let r={};return e.forEach(i=>{r[i]=t[i],delete t[i]}),{remainingParams:r,clearNavigationHistory:()=>Wa(t)}};function Ha(){let e=S(pe),t=S(Ns),r=S(Ds),o=S(Rt),i=S(Pe),l=S(Yn),p=S(Rs),d=S(Ce),u=S(Mt),[g,f]=(0,Fe.useState)(),h=S(Wr),I=h==null?void 0:h.nativeAuthConfig,P=Oe(I||!1),k=(0,Fe.useRef)(!1),b=M(),{callbackRoute:O,logoutRoute:N}=t||{callbackRoute:"",logoutRoute:""},[V]=yo({callbackRoute:O,logoutRoute:N}),[ne]=ho({callbackRoute:O,logoutRoute:N});(0,Fe.useEffect)(()=>{Q()},[e]),(0,Fe.useEffect)(()=>{jt()},[r]),(0,Fe.useEffect)(()=>{Ue()},[i,e]),(0,Fe.useEffect)(()=>{Ye()},[l,d,g]);function Q(){return T(this,null,function*(){try{let L=yield ha();L&&b($i(L.erd_chain_id))}catch(L){console.error("failed refreshing chainId ",L)}})}function Ye(){l==null&&p!=null&&g&&b(Pn({index:p.index,address:i,hasContractDataEnabled:g.dataEnabled,version:g.version}))}function Ue(){return T(this,null,function*(){if(b(At(!0)),k.current){k.current=!1,b(At(!1));return}if(i)try{let L=yield je(i);L&&b(st(E(y({},L),{address:i,nonce:L.nonce.valueOf()})))}catch(L){b(xi("Failed getting account")),console.error("Failed getting account ",L)}b(At(!1))})}function U(){return T(this,null,function*(){let L=ao(e.walletAddress);if(me(L),o!=null){try{let F=yield ze(),{clearNavigationHistory:Xe,remainingParams:{signature:B}}=$a(["signature","loginToken","address"]);if(!F)return me(or),b(It(null)),b(Ar(null)),Xe();B&&P.setTokenLoginInfo({signature:B,address:F});let H=yield je(F);H&&(k.current=!0,b(At(!0)),b(oe({address:F,loginMethod:"wallet"})),b(st(E(y({},H),{nonce:_t(H)}))),b(At(!1))),Xe()}catch(F){console.error("Failed authenticating wallet user ",F)}b(Ar(null))}})}function Ze(){return T(this,null,function*(){let L=new Va.HWProvider,F=L.isInitialized();if(F||(F=yield L.init()),!F&&d){console.warn("Could not initialise ledger app"),X(u);return}return(p==null?void 0:p.index)!=null&&(L.addressIndex=p.index),L})}function Je(){return T(this,null,function*(){try{let L=yield Ze();if(!L)return;let F=yield co(L);me(L),f(F)}catch(L){console.error("Could not initialise ledger app",L),X(u)}})}function zt(){return T(this,null,function*(){try{let L=yield ze(),F=Ga.ExtensionProvider.getInstance().setAddress(L);(yield F.init())?me(F):console.error("Could not initialise extension, make sure MultiversX wallet extension is installed.")}catch(L){console.error("Unable to login to ExtensionProvider",L)}})}function jt(){if(r!=null)switch(r){case"ledger":{Je();break}case"walletconnect":{V(!1);break}case"walletconnectv2":{ne(!1);break}case"extension":{zt();break}case"extra":{Ia();break}case"wallet":case"":{U();break}default:return}}return null}n();var Vt=A(require("react"));n();n();n();n();var Tc=require("react");n();n();var So=()=>S(Se);n();C();n();n();n();var xu=require("react"),wu=require("@multiversx/sdk-web-wallet-provider"),vu=A(require("qs"));D();C();R();n();var qa=require("react"),Pu=require("@multiversx/sdk-extension-provider");D();C();R();n();n();n();n();var ja=require("react"),bu=require("@multiversx/sdk-extension-provider");D();C();n();n();var Cu=A(require("axios")),Du=A(require("swr"));n();n();var Ya=require("react");n();var Ka=require("react");Mn();C();J();at();n();ht();C();n();n();n();n();n();function Za(){let e=S(no),t=Object.entries(e),r=(t==null?void 0:t.length)>0;return{pendingTransactions:e,pendingTransactionsArray:t,hasPendingTransactions:r}}Lt();n();C();R();n();Lt();function Ja(e,t){return e.reduce((o,{status:i,hash:l})=>(l!=null&&!t.includes(l)&&Ee(i)&&o.push({hash:l,previousStatus:i}),o),[])}n();C();R();function Xa({results:e,hash:t,sessionId:r}){let o=e==null?void 0:e.find(i=>(i==null?void 0:i.returnMessage)!=="");w.dispatch(Qt({transactionHash:t,sessionId:r,status:"fail",errorMessage:o==null?void 0:o.returnMessage})),w.dispatch(pt({sessionId:r,status:"fail",errorMessage:o==null?void 0:o.returnMessage}))}n();C();J();function xo(e){w.dispatch(pt({sessionId:e,status:"timedOut"}))}var rn={},wo=[];function Ru({serverTransaction:e,sessionId:t,customTransactionInformation:r,shouldRefreshBalance:o}){let{hash:i,status:l,results:p,invalidTransaction:d,hasStatusChanged:u}=e;try{if(wo.includes(i))return;if(rn[i]>30){xo(t);return}if(d||Ee(l)){rn[i]=rn[i]?rn[i]+1:1;return}u&&(ct(l)&&(r==null?void 0:r.completedTransactionsDelay)!=null?(wo.push(i),setTimeout(()=>w.dispatch(Qt({sessionId:t,status:"success",transactionHash:i})),r==null?void 0:r.completedTransactionsDelay)):w.dispatch(Qt({sessionId:t,status:l,transactionHash:i}))),o||Xr(),lt(l)&&Xa({sessionId:t,hash:i,results:p})}catch(g){console.error(g),xo(t)}}function Qa(l){return T(this,arguments,function*({sessionId:e,transactionBatch:{transactions:t,customTransactionInformation:r},getTransactionsByHash:o=Yr,shouldRefreshBalance:i}){try{if(t==null)return;let p=Ja(t,wo),d=yield o(p);for(let u of d)Ru({serverTransaction:u,sessionId:e,customTransactionInformation:r,shouldRefreshBalance:i})}catch(p){console.error(p)}})}function ec(){let{pendingTransactionsArray:e}=Za();function t(r){return T(this,null,function*(){let o=e.filter(([i,l])=>i!=null&&Ee(l.status));if(o.length>0)for(let[i,l]of o)yield Qa(y({sessionId:i,transactionBatch:l},r));r.shouldRefreshBalance&&Xr()})}return t}n();var Bu=require("react");n();n();n();C();n();n();var Fu=A(require("bignumber.js"));D();C();J();n();var Ou=A(require("bignumber.js"));D();n();var _u=require("@multiversx/sdk-core"),Uu=A(require("bignumber.js"));D();R();Lt();n();n();n();n();var tc=require("react");n();n();var Wu=require("react"),$u=require("@multiversx/sdk-extension-provider");ht();Y();R();kt();n();var Hu=require("react");ht();C();n();n();vn();n();n();var Gu=A(require("platform"));n();n();n();n();n();at();n();n();n();function nc(e){return new Promise(t=>{setTimeout(()=>t(),e)})}n();var oc=(e,t,r,o=0)=>T(void 0,null,function*(){try{return yield e(...r)}catch(i){return o<t.retries?((t==null?void 0:t.delay)!=null&&(yield nc(t.delay)),oc(e,t,r,o+1)):null}}),ic=(e,t={retries:5,delay:500})=>(...r)=>T(void 0,null,function*(){return oc(e,t,r)});vt();n();n();n();C();var Vu={};var sc=e=>{if(e.component!=null){let t=e,{component:r}=t,o=Qe(t,["component"]),{payload:i}=w.dispatch(Un(E(y({},o),{component:null})));return Vu[i.toastId]=r,i}return w.dispatch(Un(e)).payload};n();n();var ac=A(require("axios"));function vo(e){return T(this,null,function*(){try{let{data:t}=yield ac.default.get(`${e}/websocket/config`);return`wss://${t.url}`}catch(t){throw console.error(t),new Error("Can not get websocket url")}})}n();n();var cc=require("react"),ju=require("@multiversx/sdk-hw-provider");ht();Y();C();R();kt();n();var zu=require("react");n();n();var lc=require("react");n();var dc=require("react");n();var mt=require("react"),pc=require("socket.io-client");C();n();var _e={current:null,status:"not_initialized"};var qu=3e3,Ku=3,Yu=500,Zu=1e3;function uc(){let e=(0,mt.useRef)(null),{address:t}=dt(),r=M(),{network:o}=So(),i=p=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{r(wi(p))},Zu)},l=(0,mt.useCallback)(ic(()=>T(this,null,function*(){_e.status="pending";let p=yield vo(o.apiAddress);if(p==null){console.warn("Can not get websocket url");return}_e.current=(0,pc.io)(p,{forceNew:!0,reconnectionAttempts:Ku,timeout:qu,query:{address:t}}),_e.status="completed",_e.current.onAny(d=>{i(d)})}),{retries:2,delay:Yu}),[t]);(0,mt.useEffect)(()=>{t&&_e.status==="not_initialized"&&!_e.current&&l()},[t,_e.current]),(0,mt.useEffect)(()=>()=>{var p;(p=_e.current)==null||p.close(),e.current&&clearTimeout(e.current)},[])}function mc(e){uc();let t=S(Zn);(0,dc.useEffect)(()=>{let r=t==null?void 0:t.message;r&&e(r)},[e,t])}n();n();n();var gc=e=>e.dappModal,Ju=x(gc,e=>e.visible),nn=x(gc,e=>e.modal),KN=x(nn,e=>e.showHeader),YN=x(nn,e=>e.showFooter),ZN=x(nn,e=>e.headerText),JN=x(nn,e=>e.footerText);it();var{logoutEvent:Xu}=ce,fc="storage",yc=()=>{let{address:e}=De(),t=S(Mt);(0,Tc.useEffect)(()=>{let r=o=>{if(!(o.key!==Xu||!o.newValue))try{let{data:i}=JSON.parse(o.newValue);i===e&&X(t)}catch(i){return}};return window.addEventListener(fc,r),()=>{window.removeEventListener(fc,r)}},[e,t])};n();n();var on=require("react"),Ao=A(require("bignumber.js"));var Sc=require("@fortawesome/free-solid-svg-icons");n();n();var lr=A(require("bignumber.js")),hc=e=>{let t=new lr.default(e).dividedBy(1e3).integerValue(lr.default.ROUND_FLOOR),r=new lr.default(t).dividedBy(60).integerValue(lr.default.ROUND_FLOOR),o=r.modulo(60).isGreaterThan(1),i=r.modulo(60).isLessThan(1);return o?`${r} minutes`:i?"less than 1 minute":`${r} minute`};var xc=()=>{let{address:e}=De(),{tokenLogin:t}=S(q),{secondsUntilExpires:r,expiresAt:o}=Wt(t==null?void 0:t.nativeAuthToken),i=(0,on.useRef)();return(0,on.useEffect)(()=>{var d;let l=new Ao.default(String(r)),p=l.times(1e3);if(!(!r||l.isLessThanOrEqualTo(0))){if((d=t==null?void 0:t.nativeAuthConfig)!=null&&d.tokenExpirationToastWarningSeconds){clearTimeout(i.current);let g=new Ao.default(t.nativeAuthConfig.tokenExpirationToastWarningSeconds).times(1e3),f=l.times(1e3).minus(g),h=hc(p),I=f.isLessThanOrEqualTo(0)?0:f.toNumber();i.current=setTimeout(()=>{sc({toastId:"nativeAuthTokenExpiration",type:"custom",title:"Session Expiration Warning",icon:Sc.faRefresh,message:`Your token will expire in ${h}!`})},I)}return()=>{clearTimeout(i.current)}}},[o,e,t==null?void 0:t.nativeAuthConfig]),null};n();var Gt=require("react"),wc=A(require("bignumber.js"));var vc=()=>{let{address:e}=De(),{tokenLogin:t}=S(q),r=S(Mt),{isExpired:o,secondsUntilExpires:i,expiresAt:l}=Wt(t==null?void 0:t.nativeAuthToken),p=(0,Gt.useRef)(""),d=(0,Gt.useRef)();return(0,Gt.useEffect)(()=>{e&&o&&X(r)},[o,e,r]),(0,Gt.useEffect)(()=>{let u=new wc.default(String(i)),g=`${e}_${l}`,f=p.current===g;if(!(i&&u.isGreaterThan(0))||f)return;p.current=g,clearTimeout(d.current);let I=u.times(1e3);return d.current=setTimeout(()=>{X(r)},I.toNumber()),()=>{clearTimeout(d.current)}},[l,e,r]),null};var Ac=()=>(xc(),yc(),vc(),null);n();n();var sn=require("react"),bc=require("@multiversx/sdk-core"),kc=require("@multiversx/sdk-core/out/signature");C();R();at();var Ic=e=>{let t=e.redirectRoute;t&&ke(t)},Ec=({sendSignedTransactionsAsync:e=ua})=>{let t=S(Ge),r=S(He),o=(0,sn.useRef)(!1),i=M(),l=()=>{i(Pt()),o.current=!1};function p(){return T(this,null,function*(){var u;let d=Object.keys(r);for(let g of d){let f=r==null?void 0:r[g],h=(u=f==null?void 0:f.customTransactionInformation)==null?void 0:u.signWithoutSending;if(!g||h){Ic(f);continue}try{if(!(r[g].status==="signed"&&!o.current))continue;let{transactions:k}=r[g];if(!k)continue;o.current=!0;let b=k.map(Q=>{let Ye=new bc.Address(Q.sender),Ue=Ft(Q),U=new kc.Signature(Q.signature);return Ue.applySignature(U,Ye),Ue}),O=yield e(b),N="pending",V=k.map(Q=>O.includes(Q.hash)?E(y({},Q),{status:N}):Q);i(Ni({sessionId:g,submittedMessage:"submitted"})),i(pt({sessionId:g,status:"sent",transactions:V})),l(),ka(t.nonce+k.length),Ic(f),history.pushState({},document==null?void 0:document.title,"?")}catch(I){console.error("Unable to send transactions",I),i(pt({sessionId:g,status:"fail",errorMessage:I.message})),l()}finally{o.current=!1}}})}return(0,sn.useEffect)(()=>{p()},[r,t]),null};n();n();n();var Lc=require("react");function Pc(e){var i;let t=ec(),r=(i=e==null?void 0:e.getTransactionsByHash)!=null?i:Yr,o=()=>{t({shouldRefreshBalance:!0,getTransactionsByHash:r})};mc(o),(0,Lc.useEffect)(()=>{let l=setInterval(o,3e4);return()=>{clearInterval(l)}},[o])}function Cc({getTransactionsByHash:e}){return Pc({getTransactionsByHash:e}),null}function Dc({customComponents:e}){var l,p;let t=e==null?void 0:e.transactionSender,r=e==null?void 0:e.transactionTracker,o=(l=t==null?void 0:t.component)!=null?l:Ec,i=(p=r==null?void 0:r.component)!=null?p:Cc;return Vt.default.createElement(Vt.default.Fragment,null,Vt.default.createElement(o,y({},t==null?void 0:t.props)),Vt.default.createElement(i,y({},r==null?void 0:r.props)),Vt.default.createElement(Ac,null))}var Qu=({children:e,customNetworkConfig:t={},externalProvider:r,environment:o,customComponents:i,dappConfig:l})=>{if(!o)throw new Error("missing environment flag");return r!=null&&Aa(r),Ht.default.createElement(Nc.Provider,{context:er,store:w},Ht.default.createElement(Rc.PersistGate,{persistor:ks,loading:null},Ht.default.createElement(mo,{environment:o,customNetworkConfig:t,logoutRoute:l==null?void 0:l.logoutRoute},Ht.default.createElement(Ha,null),Ht.default.createElement(Dc,{customComponents:i}),e)))};0&&(module.exports={AppInitializer,AuthenticatedRoutesWrapper,AxiosInterceptor,AxiosInterceptorContext,AxiosInterceptorContextProvider,DappProvider,LoginInfoListener,useAxiosInterceptorContext});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
package/__mocks__/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import"../__chunks__/chunk-OQMQWZG7.js";import{a as m}from"../__chunks__/chunk-WTAIM7XI.js";import{a as x,b as a,c as b}from"../__chunks__/chunk-F2LZPJWY.js";import"../__chunks__/chunk-G6V3RROQ.js";import{a as t}from"../__chunks__/chunk-ZD4T5RDE.js";import{a as p}from"../__chunks__/chunk-WPOULSHX.js";import"../__chunks__/chunk-3NJDVZUF.js";import"../__chunks__/chunk-23WABCT6.js";import"../__chunks__/chunk-U4DREZMZ.js";import"../__chunks__/chunk-GKOGOKEY.js";import"../__chunks__/chunk-YHPAZ7RG.js";import"../__chunks__/chunk-QDBNFC47.js";import"../__chunks__/chunk-UCBDWIIG.js";import"../__chunks__/chunk-HSRWKKTJ.js";import"../__chunks__/chunk-G43B373M.js";import"../__chunks__/chunk-GVU7CFIB.js";import"../__chunks__/chunk-LCQ2B47Q.js";import"../__chunks__/chunk-SQJYWVIF.js";import"../__chunks__/chunk-L6WV33UF.js";import"../__chunks__/chunk-PAD5UBCO.js";import"../__chunks__/chunk-L5ZELHXF.js";import"../__chunks__/chunk-ALOAIKQA.js";import"../__chunks__/chunk-O7YR4YPR.js";import"../__chunks__/chunk-I2R4TID7.js";import"../__chunks__/chunk-MDIJXESM.js";import"../__chunks__/chunk-3AOYVMRJ.js";import"../__chunks__/chunk-WGA56F56.js";import"../__chunks__/chunk-HZSM6ODA.js";import"../__chunks__/chunk-7NHF2W5Z.js";import"../__chunks__/chunk-OLYIRMPJ.js";import"../__chunks__/chunk-SUFYB7SU.js";import"../__chunks__/chunk-3SGZP5CP.js";import"../__chunks__/chunk-VPGECZPA.js";import"../__chunks__/chunk-FVPFOC6I.js";import"../__chunks__/chunk-SJBVHNRS.js";import"../__chunks__/chunk-XGHGX644.js";import"../__chunks__/chunk-M6WZOAKB.js";import"../__chunks__/chunk-RA3LR6FK.js";import"../__chunks__/chunk-FDYRA6XJ.js";import"../__chunks__/chunk-3P3HSTXF.js";import"../__chunks__/chunk-PBRBN2YY.js";import"../__chunks__/chunk-QCGS2BTF.js";import"../__chunks__/chunk-MVJUBH74.js";import"../__chunks__/chunk-MOEOJYVT.js";import"../__chunks__/chunk-HDY53ANG.js";import"../__chunks__/chunk-4RCDPCHR.js";import"../__chunks__/chunk-4VJCQIET.js";import"../__chunks__/chunk-CYRCA52K.js";import"../__chunks__/chunk-6QHTOLCT.js";import"../__chunks__/chunk-53VAVQW3.js";import"../__chunks__/chunk-NUJXGF6Y.js";import"../__chunks__/chunk-372WAXTQ.js";import"../__chunks__/chunk-KAOERY2M.js";import"../__chunks__/chunk-DR65UVWL.js";import"../__chunks__/chunk-W63MMDH6.js";import"../__chunks__/chunk-S2ZXQSDD.js";import"../__chunks__/chunk-YJ3UC4ZI.js";import"../__chunks__/chunk-DBZNKJCO.js";import"../__chunks__/chunk-US5YWUWE.js";import"../__chunks__/chunk-R54KN7DA.js";import"../__chunks__/chunk-VOJLYTVI.js";import"../__chunks__/chunk-EMDPC2AJ.js";import"../__chunks__/chunk-V55GBYFZ.js";import"../__chunks__/chunk-NIXVRMA2.js";import"../__chunks__/chunk-T2MVETZ4.js";import"../__chunks__/chunk-OKHHUA7J.js";import"../__chunks__/chunk-D2S75FIJ.js";import"../__chunks__/chunk-NUIOY7UN.js";import"../__chunks__/chunk-MZIDFQZ3.js";import"../__chunks__/chunk-O7ENQI63.js";import"../__chunks__/chunk-5WQI3F3M.js";import"../__chunks__/chunk-2IU4ZFFH.js";import"../__chunks__/chunk-KHROB3G5.js";import"../__chunks__/chunk-GYZ7YF2I.js";import"../__chunks__/chunk-YTYNUTPN.js";import"../__chunks__/chunk-WVADOL2D.js";import"../__chunks__/chunk-WME7JUV7.js";import"../__chunks__/chunk-FZMRVALH.js";import"../__chunks__/chunk-5HNME5OQ.js";import"../__chunks__/chunk-GNJAE3HJ.js";import"../__chunks__/chunk-OX5CQN4Z.js";import"../__chunks__/chunk-FR4JYMVH.js";import"../__chunks__/chunk-FJTOBBI5.js";import"../__chunks__/chunk-XZ2PVEHF.js";import"../__chunks__/chunk-C5LKGARX.js";import"../__chunks__/chunk-Z5PKPJRS.js";import"../__chunks__/chunk-47JMQSE2.js";import"../__chunks__/chunk-NHIPCB5H.js";import"../__chunks__/chunk-KVWHQQ6T.js";import"../__chunks__/chunk-H4R6KAC3.js";import"../__chunks__/chunk-HH5S5FOE.js";import"../__chunks__/chunk-AEEVEPBH.js";import"../__chunks__/chunk-22UA5SNR.js";import"../__chunks__/chunk-SLXALMUS.js";import"../__chunks__/chunk-4U27GF7V.js";import"../__chunks__/chunk-ZABQNLC5.js";import"../__chunks__/chunk-RCRLXXJQ.js";import"../__chunks__/chunk-XCLZ5AS2.js";import"../__chunks__/chunk-JA6VLNIR.js";import"../__chunks__/chunk-QQTMEJSS.js";import"../__chunks__/chunk-WJGL6LVA.js";import"../__chunks__/chunk-LK5TR7MI.js";import"../__chunks__/chunk-OCMDIV3Q.js";import"../__chunks__/chunk-KOH3SXG4.js";import"../__chunks__/chunk-6S6Z43OG.js";import"../__chunks__/chunk-T2NSHK45.js";import"../__chunks__/chunk-DGPHTEKD.js";import"../__chunks__/chunk-TXAITGIS.js";import"../__chunks__/chunk-JFXVZGSY.js";import"../__chunks__/chunk-4Y4O2KWM.js";import"../__chunks__/chunk-72DXWEHL.js";import"../__chunks__/chunk-4VDFQTIQ.js";import"../__chunks__/chunk-MRGB5FAN.js";import"../__chunks__/chunk-XOZ662VA.js";import"../__chunks__/chunk-NJVX7KSK.js";import"../__chunks__/chunk-LO5NNAIV.js";import"../__chunks__/chunk-YAR2KJ42.js";import"../__chunks__/chunk-PD45WZNF.js";import"../__chunks__/chunk-FP3YMQL6.js";import"../__chunks__/chunk-7ASLPEOW.js";import"../__chunks__/chunk-GTEK6WFJ.js";import"../__chunks__/chunk-DYYZ7GH2.js";import"../__chunks__/chunk-ABVIJYXG.js";import"../__chunks__/chunk-4AIE24DS.js";import"../__chunks__/chunk-SZGCAC7X.js";import"../__chunks__/chunk-MV5K23LN.js";import"../__chunks__/chunk-DSW55A4J.js";import"../__chunks__/chunk-TV5JLIO3.js";import"../__chunks__/chunk-QIRM4QUA.js";import"../__chunks__/chunk-5C6CC3E4.js";import"../__chunks__/chunk-7Y6YJ4ZF.js";import"../__chunks__/chunk-KEQTNP4F.js";import"../__chunks__/chunk-SNAHUZB3.js";import"../__chunks__/chunk-2N2RUSRA.js";import"../__chunks__/chunk-WOS6T7ZV.js";import"../__chunks__/chunk-M7ITPD6X.js";import"../__chunks__/chunk-4JTWWYEP.js";import"../__chunks__/chunk-3U7QBETU.js";import"../__chunks__/chunk-QDL73CLR.js";import"../__chunks__/chunk-BZAS5UWX.js";import"../__chunks__/chunk-CSNNQII4.js";import"../__chunks__/chunk-NCTWW6NZ.js";import"../__chunks__/chunk-VHVGMQVY.js";import"../__chunks__/chunk-FKHUTJ2C.js";import"../__chunks__/chunk-Q4ODFQVM.js";import"../__chunks__/chunk-SKMXMVKW.js";import"../__chunks__/chunk-QCG67HPT.js";import"../__chunks__/chunk-OBF5YWS6.js";import"../__chunks__/chunk-IHEQMC3B.js";import"../__chunks__/chunk-ONNEZDFU.js";import"../__chunks__/chunk-LPQY7BQ4.js";import"../__chunks__/chunk-5PN5T5IV.js";import"../__chunks__/chunk-44VPSU5H.js";import"../__chunks__/chunk-PJYVNCWQ.js";import"../__chunks__/chunk-TMDHTPOA.js";import"../__chunks__/chunk-XOSPBGLI.js";import"../__chunks__/chunk-ZMTFL7CC.js";import"../__chunks__/chunk-OXSLKC3X.js";import"../__chunks__/chunk-Z2OOX7G7.js";import"../__chunks__/chunk-CZR4SEII.js";import"../__chunks__/chunk-RGJ34TDB.js";import"../__chunks__/chunk-TPDR3Y6L.js";import"../__chunks__/chunk-TBXSSOYL.js";import"../__chunks__/chunk-NGVYQHDX.js";import"../__chunks__/chunk-BP7X5FRP.js";import"../__chunks__/chunk-FMIRA7YL.js";import"../__chunks__/chunk-RQ3IOPRD.js";import"../__chunks__/chunk-J5HFBYM7.js";import"../__chunks__/chunk-ALKTXMRV.js";import"../__chunks__/chunk-A32WHRLH.js";import"../__chunks__/chunk-RGZJQIHV.js";import"../__chunks__/chunk-QAXDO6Z2.js";import"../__chunks__/chunk-WVJETRW5.js";import"../__chunks__/chunk-JAUQGKRF.js";import"../__chunks__/chunk-OKUWOTZU.js";import"../__chunks__/chunk-T6DHLJEP.js";import"../__chunks__/chunk-NCHDT5N7.js";import"../__chunks__/chunk-X5TGO2UY.js";import"../__chunks__/chunk-C62XCHTF.js";import"../__chunks__/chunk-QGFR3GHY.js";import"../__chunks__/chunk-6FNBC33X.js";import"../__chunks__/chunk-FMECPQRZ.js";import"../__chunks__/chunk-W2FL4F7Y.js";import"../__chunks__/chunk-5MHH6T2T.js";import"../__chunks__/chunk-JRRGPQYM.js";import"../__chunks__/chunk-BDHSNCDL.js";import"../__chunks__/chunk-VP7XSTRT.js";import"../__chunks__/chunk-PV2VJ5SF.js";import"../__chunks__/chunk-J75YWYPN.js";import"../__chunks__/chunk-ZFCXKCF6.js";import"../__chunks__/chunk-7F3MKQYJ.js";import"../__chunks__/chunk-FQET2LHU.js";import"../__chunks__/chunk-S267QGNY.js";import"../__chunks__/chunk-WOC5FZU4.js";import"../__chunks__/chunk-7LG3PXXW.js";import"../__chunks__/chunk-UOJHMSFY.js";import"../__chunks__/chunk-EEJ5EEAY.js";import"../__chunks__/chunk-UB3HZ7Y3.js";import"../__chunks__/chunk-DLXVJ5WN.js";import"../__chunks__/chunk-SZ5R4KYT.js";import"../__chunks__/chunk-IGRX7653.js";import"../__chunks__/chunk-2PGGQXUN.js";import"../__chunks__/chunk-DGVX77VC.js";import"../__chunks__/chunk-4ISXCVVL.js";import"../__chunks__/chunk-DEY75ILF.js";import"../__chunks__/chunk-4L32YVLY.js";import"../__chunks__/chunk-5NJW53EW.js";import"../__chunks__/chunk-VXSWMT64.js";import"../__chunks__/chunk-VULSG7BJ.js";import"../__chunks__/chunk-D5NVSL2S.js";import"../__chunks__/chunk-HIOXEIZD.js";import"../__chunks__/chunk-FOHOVMG2.js";import"../__chunks__/chunk-GSBLW7YZ.js";import"../__chunks__/chunk-HNUB6XBH.js";import"../__chunks__/chunk-4I33RXZI.js";import"../__chunks__/chunk-HWKJ6RY7.js";import"../__chunks__/chunk-5SJ24Q3V.js";import"../__chunks__/chunk-T7D7BT5X.js";import"../__chunks__/chunk-EIG7LFFL.js";import"../__chunks__/chunk-4ZHZJTYB.js";import"../__chunks__/chunk-IIU6OKSW.js";import"../__chunks__/chunk-ID2JOC6Q.js";import"../__chunks__/chunk-NAIMWCQ7.js";import"../__chunks__/chunk-6YEBPDTC.js";import"../__chunks__/chunk-6OZDAYJV.js";import"../__chunks__/chunk-BDFHA3DI.js";import"../__chunks__/chunk-SQW2F44A.js";import"../__chunks__/chunk-QDG6DX7I.js";import"../__chunks__/chunk-ZH6KW5HC.js";import"../__chunks__/chunk-XDEUCIC3.js";import"../__chunks__/chunk-KRCUIXB4.js";import"../__chunks__/chunk-A3JT4J5G.js";import"../__chunks__/chunk-XBLU7KZJ.js";import"../__chunks__/chunk-KI3PKWMT.js";import"../__chunks__/chunk-QFTWB3KE.js";import"../__chunks__/chunk-JBJD3IUJ.js";import"../__chunks__/chunk-5JVA7MJI.js";import"../__chunks__/chunk-QMQUN5M3.js";import"../__chunks__/chunk-V4YZWAJU.js";import"../__chunks__/chunk-QZRKSGF3.js";import"../__chunks__/chunk-IQ6OIUKX.js";import"../__chunks__/chunk-5ALSFW3O.js";import"../__chunks__/chunk-I3PTBNIV.js";import"../__chunks__/chunk-I4E7WYSQ.js";import"../__chunks__/chunk-LNYINVMN.js";import"../__chunks__/chunk-EZAD4OKT.js";import"../__chunks__/chunk-35N6HQAC.js";import"../__chunks__/chunk-DVCP2A6O.js";import"../__chunks__/chunk-7I7NVYZT.js";import"../__chunks__/chunk-3SYQDA3A.js";import"../__chunks__/chunk-QJIB5BMU.js";import"../__chunks__/chunk-GYB57BD3.js";import"../__chunks__/chunk-AP2OU4L5.js";import"../__chunks__/chunk-ZFXP4YRF.js";import"../__chunks__/chunk-TA6HP4LD.js";import"../__chunks__/chunk-IFEQG3BM.js";import"../__chunks__/chunk-7FGDNWAK.js";import"../__chunks__/chunk-25IPTBK3.js";import"../__chunks__/chunk-ALU6GIOA.js";import"../__chunks__/chunk-NM43ACPN.js";import"../__chunks__/chunk-ZEB6PEPS.js";import"../__chunks__/chunk-NXJ3WD7Q.js";import"../__chunks__/chunk-BXMSEXMF.js";import"../__chunks__/chunk-6WZ7DVP7.js";import"../__chunks__/chunk-5Q2WXT6C.js";import"../__chunks__/chunk-KKMXLCWS.js";import"../__chunks__/chunk-D7SFMPZV.js";import"../__chunks__/chunk-N5STTJJR.js";import"../__chunks__/chunk-OXIGVI7S.js";import"../__chunks__/chunk-VB4M63XQ.js";import"../__chunks__/chunk-LGKB7JTU.js";import"../__chunks__/chunk-DZ5IJ4N3.js";import"../__chunks__/chunk-6ZGFYJ6T.js";import"../__chunks__/chunk-HI5RCCIL.js";import"../__chunks__/chunk-ZT4O7WWY.js";import"../__chunks__/chunk-BQSKQ7XQ.js";import"../__chunks__/chunk-C7ZNGCKJ.js";import"../__chunks__/chunk-UYVTJE63.js";import"../__chunks__/chunk-W4CWA4KM.js";import"../__chunks__/chunk-KMLULSN5.js";import"../__chunks__/chunk-6ZGALJRB.js";import"../__chunks__/chunk-PXHBOM4A.js";import"../__chunks__/chunk-OXBZSHOZ.js";import"../__chunks__/chunk-ZU6LXEUO.js";import"../__chunks__/chunk-5KGDRZSV.js";import"../__chunks__/chunk-VTMJ7INI.js";import"../__chunks__/chunk-WTIKHG7D.js";import"../__chunks__/chunk-LJPH3Z4L.js";import"../__chunks__/chunk-GGMEVY45.js";import"../__chunks__/chunk-YLLIHJY3.js";import"../__chunks__/chunk-DKXAWU2I.js";import"../__chunks__/chunk-ITDGZCSS.js";import"../__chunks__/chunk-27DX5WIQ.js";import"../__chunks__/chunk-X2JZA2ND.js";import"../__chunks__/chunk-MV7THB7B.js";import"../__chunks__/chunk-QR72MI4M.js";import"../__chunks__/chunk-FC3CZOOQ.js";import{a as r,b as e,c as f}from"../__chunks__/chunk-GDPQQIJM.js";import"../__chunks__/chunk-Y4LHGIZO.js";import"../__chunks__/chunk-X53TXOIC.js";import"../__chunks__/chunk-YDQULLMK.js";import"../__chunks__/chunk-OGKM4YOJ.js";import"../__chunks__/chunk-YUGUMBTX.js";import"../__chunks__/chunk-UMTCMSCG.js";import"../__chunks__/chunk-CLAJ4EPW.js";import"../__chunks__/chunk-H2JYGVBI.js";import"../__chunks__/chunk-FGT3C4FE.js";import"../__chunks__/chunk-DCI4LUDC.js";import"../__chunks__/chunk-HOX227TC.js";import"../__chunks__/chunk-GNCSMYRN.js";import"../__chunks__/chunk-Y4RXLAEX.js";import"../__chunks__/chunk-UIDXWJ2D.js";import"../__chunks__/chunk-FTQGHIGG.js";import"../__chunks__/chunk-NHHDQ53S.js";import"../__chunks__/chunk-XXP2T2NS.js";import"../__chunks__/chunk-AHX4GHIC.js";import{m as o}from"../__chunks__/chunk-HBP5N4FR.js";o();export{m as createSubscription,a as mockResponse,t as mockWindowLocation,p as renderWithProvider,x as rest,b as server,r as testAddress,e as testNetwork,f as testReceiver};
|
|
1
|
+
"use strict";import"../__chunks__/chunk-OQMQWZG7.js";import{a as m}from"../__chunks__/chunk-WTAIM7XI.js";import{a as x,b as a,c as b}from"../__chunks__/chunk-F2LZPJWY.js";import"../__chunks__/chunk-G6V3RROQ.js";import{a as t}from"../__chunks__/chunk-ZD4T5RDE.js";import{a as p}from"../__chunks__/chunk-CZJXU5SJ.js";import"../__chunks__/chunk-4QNXGZGX.js";import"../__chunks__/chunk-7BR5BD64.js";import"../__chunks__/chunk-Q5WD4K5J.js";import"../__chunks__/chunk-GKOGOKEY.js";import"../__chunks__/chunk-HV6OTQX5.js";import"../__chunks__/chunk-UKYRBHVO.js";import"../__chunks__/chunk-UCBDWIIG.js";import"../__chunks__/chunk-V36EE44U.js";import"../__chunks__/chunk-ZUPVHFAA.js";import"../__chunks__/chunk-GVU7CFIB.js";import"../__chunks__/chunk-7VWGZX3G.js";import"../__chunks__/chunk-SQJYWVIF.js";import"../__chunks__/chunk-5MT6ZGXY.js";import"../__chunks__/chunk-AW4CXK3K.js";import"../__chunks__/chunk-L5ZELHXF.js";import"../__chunks__/chunk-3TMETL3P.js";import"../__chunks__/chunk-O7YR4YPR.js";import"../__chunks__/chunk-4TE73X6A.js";import"../__chunks__/chunk-MDIJXESM.js";import"../__chunks__/chunk-KP65BVGX.js";import"../__chunks__/chunk-WGA56F56.js";import"../__chunks__/chunk-HZSM6ODA.js";import"../__chunks__/chunk-Q2P2Y34N.js";import"../__chunks__/chunk-OLYIRMPJ.js";import"../__chunks__/chunk-SHZWJNZQ.js";import"../__chunks__/chunk-3SGZP5CP.js";import"../__chunks__/chunk-VPGECZPA.js";import"../__chunks__/chunk-FVPFOC6I.js";import"../__chunks__/chunk-VVUQZA2G.js";import"../__chunks__/chunk-72LTDKZC.js";import"../__chunks__/chunk-FZ2UARTN.js";import"../__chunks__/chunk-RA3LR6FK.js";import"../__chunks__/chunk-SOUBDOIW.js";import"../__chunks__/chunk-T6VGQDUD.js";import"../__chunks__/chunk-SOUFGWHE.js";import"../__chunks__/chunk-QCGS2BTF.js";import"../__chunks__/chunk-MVJUBH74.js";import"../__chunks__/chunk-CURVSVC3.js";import"../__chunks__/chunk-CORTTH72.js";import"../__chunks__/chunk-AL4XDHPF.js";import"../__chunks__/chunk-4VJCQIET.js";import"../__chunks__/chunk-LW3LLHMS.js";import"../__chunks__/chunk-KOP4QOFU.js";import"../__chunks__/chunk-MEOTG3Z3.js";import"../__chunks__/chunk-BLXNO7BW.js";import"../__chunks__/chunk-OAL65NMD.js";import"../__chunks__/chunk-XRJFZEGV.js";import"../__chunks__/chunk-6JZ6NKVQ.js";import"../__chunks__/chunk-W63MMDH6.js";import"../__chunks__/chunk-S2ZXQSDD.js";import"../__chunks__/chunk-FAH7OWWZ.js";import"../__chunks__/chunk-6GWZQNWV.js";import"../__chunks__/chunk-ZWB52WH6.js";import"../__chunks__/chunk-R54KN7DA.js";import"../__chunks__/chunk-4PXTETZT.js";import"../__chunks__/chunk-EBDZDPGC.js";import"../__chunks__/chunk-KLKE5QPU.js";import"../__chunks__/chunk-NIXVRMA2.js";import"../__chunks__/chunk-2RUB4CB7.js";import"../__chunks__/chunk-2VY7HVTA.js";import"../__chunks__/chunk-FF4TYM4J.js";import"../__chunks__/chunk-NUIOY7UN.js";import"../__chunks__/chunk-DCYMBICS.js";import"../__chunks__/chunk-QB5KM2A7.js";import"../__chunks__/chunk-J53G5Q65.js";import"../__chunks__/chunk-5WQI3F3M.js";import"../__chunks__/chunk-K5UXVY6F.js";import"../__chunks__/chunk-SZQQ3B7M.js";import"../__chunks__/chunk-KJQSDPJ2.js";import"../__chunks__/chunk-YTYNUTPN.js";import"../__chunks__/chunk-OS2TAKJT.js";import"../__chunks__/chunk-WME7JUV7.js";import"../__chunks__/chunk-FZMRVALH.js";import"../__chunks__/chunk-5HNME5OQ.js";import"../__chunks__/chunk-GNJAE3HJ.js";import"../__chunks__/chunk-OX5CQN4Z.js";import"../__chunks__/chunk-FR4JYMVH.js";import"../__chunks__/chunk-FJTOBBI5.js";import"../__chunks__/chunk-XZ2PVEHF.js";import"../__chunks__/chunk-C5LKGARX.js";import"../__chunks__/chunk-Z5PKPJRS.js";import"../__chunks__/chunk-47JMQSE2.js";import"../__chunks__/chunk-NHIPCB5H.js";import"../__chunks__/chunk-GPQK5HAU.js";import"../__chunks__/chunk-US6GHNTN.js";import"../__chunks__/chunk-HH5S5FOE.js";import"../__chunks__/chunk-TEH2VTT4.js";import"../__chunks__/chunk-22UA5SNR.js";import"../__chunks__/chunk-Z74X35LP.js";import"../__chunks__/chunk-UY5ICMA3.js";import"../__chunks__/chunk-DTCH2OYG.js";import"../__chunks__/chunk-LZMEWL2M.js";import"../__chunks__/chunk-V3O7HHG3.js";import"../__chunks__/chunk-7B3ZG2X6.js";import"../__chunks__/chunk-GAZKVMFE.js";import"../__chunks__/chunk-WJGL6LVA.js";import"../__chunks__/chunk-LK5TR7MI.js";import"../__chunks__/chunk-OCMDIV3Q.js";import"../__chunks__/chunk-KOH3SXG4.js";import"../__chunks__/chunk-NJZPTWOS.js";import"../__chunks__/chunk-CXDNH3H5.js";import"../__chunks__/chunk-DGPHTEKD.js";import"../__chunks__/chunk-TXAITGIS.js";import"../__chunks__/chunk-JFXVZGSY.js";import"../__chunks__/chunk-ZC6XNQ6T.js";import"../__chunks__/chunk-LZCDCSQC.js";import"../__chunks__/chunk-4VDFQTIQ.js";import"../__chunks__/chunk-MRGB5FAN.js";import"../__chunks__/chunk-XOZ662VA.js";import"../__chunks__/chunk-NJVX7KSK.js";import"../__chunks__/chunk-LO5NNAIV.js";import"../__chunks__/chunk-YAR2KJ42.js";import"../__chunks__/chunk-RRZHNSRS.js";import"../__chunks__/chunk-FP3YMQL6.js";import"../__chunks__/chunk-VOHYBXNN.js";import"../__chunks__/chunk-ZIFOGL5Z.js";import"../__chunks__/chunk-CDMQOJ6Q.js";import"../__chunks__/chunk-CF3GYZU5.js";import"../__chunks__/chunk-WXGINYRC.js";import"../__chunks__/chunk-SZGCAC7X.js";import"../__chunks__/chunk-MV5K23LN.js";import"../__chunks__/chunk-Q7A7VRXY.js";import"../__chunks__/chunk-ACTDBTKX.js";import"../__chunks__/chunk-QIRM4QUA.js";import"../__chunks__/chunk-5C6CC3E4.js";import"../__chunks__/chunk-BBFK3KRY.js";import"../__chunks__/chunk-KEQTNP4F.js";import"../__chunks__/chunk-SNAHUZB3.js";import"../__chunks__/chunk-2N2RUSRA.js";import"../__chunks__/chunk-WWOYU2ZW.js";import"../__chunks__/chunk-MT2VMS2T.js";import"../__chunks__/chunk-WL4WQ6NX.js";import"../__chunks__/chunk-3U7QBETU.js";import"../__chunks__/chunk-QDL73CLR.js";import"../__chunks__/chunk-BZAS5UWX.js";import"../__chunks__/chunk-CSNNQII4.js";import"../__chunks__/chunk-FAZZZNFE.js";import"../__chunks__/chunk-OH43OAXQ.js";import"../__chunks__/chunk-FKHUTJ2C.js";import"../__chunks__/chunk-Q4ODFQVM.js";import"../__chunks__/chunk-SKMXMVKW.js";import"../__chunks__/chunk-LYG7Y34I.js";import"../__chunks__/chunk-OBF5YWS6.js";import"../__chunks__/chunk-IHEQMC3B.js";import"../__chunks__/chunk-ONNEZDFU.js";import"../__chunks__/chunk-LPQY7BQ4.js";import"../__chunks__/chunk-5PN5T5IV.js";import"../__chunks__/chunk-44VPSU5H.js";import"../__chunks__/chunk-WJ44H4KG.js";import"../__chunks__/chunk-TMDHTPOA.js";import"../__chunks__/chunk-XOSPBGLI.js";import"../__chunks__/chunk-Y3C3SGYG.js";import"../__chunks__/chunk-OXSLKC3X.js";import"../__chunks__/chunk-NGTD7ZV6.js";import"../__chunks__/chunk-YVHBU2Y6.js";import"../__chunks__/chunk-RGJ34TDB.js";import"../__chunks__/chunk-TPDR3Y6L.js";import"../__chunks__/chunk-TBXSSOYL.js";import"../__chunks__/chunk-NGVYQHDX.js";import"../__chunks__/chunk-BP7X5FRP.js";import"../__chunks__/chunk-FMIRA7YL.js";import"../__chunks__/chunk-RQ3IOPRD.js";import"../__chunks__/chunk-J5HFBYM7.js";import"../__chunks__/chunk-DGPPV3VD.js";import"../__chunks__/chunk-A32WHRLH.js";import"../__chunks__/chunk-OKUWOTZU.js";import"../__chunks__/chunk-RGZJQIHV.js";import"../__chunks__/chunk-QAXDO6Z2.js";import"../__chunks__/chunk-WVJETRW5.js";import"../__chunks__/chunk-T6DHLJEP.js";import"../__chunks__/chunk-JAUQGKRF.js";import"../__chunks__/chunk-QGFR3GHY.js";import"../__chunks__/chunk-NCHDT5N7.js";import"../__chunks__/chunk-X5TGO2UY.js";import"../__chunks__/chunk-C62XCHTF.js";import"../__chunks__/chunk-6FNBC33X.js";import"../__chunks__/chunk-FMECPQRZ.js";import"../__chunks__/chunk-W2FL4F7Y.js";import"../__chunks__/chunk-PV2VJ5SF.js";import"../__chunks__/chunk-5MHH6T2T.js";import"../__chunks__/chunk-6N3KHK6B.js";import"../__chunks__/chunk-FQET2LHU.js";import"../__chunks__/chunk-BDHSNCDL.js";import"../__chunks__/chunk-VP7XSTRT.js";import"../__chunks__/chunk-7LG3PXXW.js";import"../__chunks__/chunk-J75YWYPN.js";import"../__chunks__/chunk-ZFCXKCF6.js";import"../__chunks__/chunk-7F3MKQYJ.js";import"../__chunks__/chunk-UB3HZ7Y3.js";import"../__chunks__/chunk-S267QGNY.js";import"../__chunks__/chunk-WOC5FZU4.js";import"../__chunks__/chunk-UOJHMSFY.js";import"../__chunks__/chunk-EEJ5EEAY.js";import"../__chunks__/chunk-DLXVJ5WN.js";import"../__chunks__/chunk-SZ5R4KYT.js";import"../__chunks__/chunk-IGRX7653.js";import"../__chunks__/chunk-2PGGQXUN.js";import"../__chunks__/chunk-DGVX77VC.js";import"../__chunks__/chunk-4ISXCVVL.js";import"../__chunks__/chunk-DEY75ILF.js";import"../__chunks__/chunk-4L32YVLY.js";import"../__chunks__/chunk-5NJW53EW.js";import"../__chunks__/chunk-VXSWMT64.js";import"../__chunks__/chunk-VULSG7BJ.js";import"../__chunks__/chunk-D5NVSL2S.js";import"../__chunks__/chunk-HIOXEIZD.js";import"../__chunks__/chunk-FOHOVMG2.js";import"../__chunks__/chunk-GSBLW7YZ.js";import"../__chunks__/chunk-HNUB6XBH.js";import"../__chunks__/chunk-4I33RXZI.js";import"../__chunks__/chunk-HWKJ6RY7.js";import"../__chunks__/chunk-5SJ24Q3V.js";import"../__chunks__/chunk-T7D7BT5X.js";import"../__chunks__/chunk-EIG7LFFL.js";import"../__chunks__/chunk-4ZHZJTYB.js";import"../__chunks__/chunk-IIU6OKSW.js";import"../__chunks__/chunk-ID2JOC6Q.js";import"../__chunks__/chunk-NAIMWCQ7.js";import"../__chunks__/chunk-6YEBPDTC.js";import"../__chunks__/chunk-6OZDAYJV.js";import"../__chunks__/chunk-BDFHA3DI.js";import"../__chunks__/chunk-SQW2F44A.js";import"../__chunks__/chunk-QDG6DX7I.js";import"../__chunks__/chunk-ZH6KW5HC.js";import"../__chunks__/chunk-XDEUCIC3.js";import"../__chunks__/chunk-KRCUIXB4.js";import"../__chunks__/chunk-A3JT4J5G.js";import"../__chunks__/chunk-XBLU7KZJ.js";import"../__chunks__/chunk-KI3PKWMT.js";import"../__chunks__/chunk-QFTWB3KE.js";import"../__chunks__/chunk-JBJD3IUJ.js";import"../__chunks__/chunk-5JVA7MJI.js";import"../__chunks__/chunk-QMQUN5M3.js";import"../__chunks__/chunk-V4YZWAJU.js";import"../__chunks__/chunk-K3PGYBWT.js";import"../__chunks__/chunk-PVTIYMA7.js";import"../__chunks__/chunk-6DSAU7KZ.js";import"../__chunks__/chunk-I3PTBNIV.js";import"../__chunks__/chunk-I4E7WYSQ.js";import"../__chunks__/chunk-LNYINVMN.js";import"../__chunks__/chunk-EZAD4OKT.js";import"../__chunks__/chunk-35N6HQAC.js";import"../__chunks__/chunk-DVCP2A6O.js";import"../__chunks__/chunk-7I7NVYZT.js";import"../__chunks__/chunk-3SYQDA3A.js";import"../__chunks__/chunk-QJIB5BMU.js";import"../__chunks__/chunk-GYB57BD3.js";import"../__chunks__/chunk-AP2OU4L5.js";import"../__chunks__/chunk-ZFXP4YRF.js";import"../__chunks__/chunk-TA6HP4LD.js";import"../__chunks__/chunk-R4VNOC32.js";import"../__chunks__/chunk-CHOHVB7O.js";import"../__chunks__/chunk-25IPTBK3.js";import"../__chunks__/chunk-2Z5I7OQ3.js";import"../__chunks__/chunk-NM43ACPN.js";import"../__chunks__/chunk-OJLDQY4F.js";import"../__chunks__/chunk-VIUOPUSR.js";import"../__chunks__/chunk-OCVU3HTM.js";import"../__chunks__/chunk-6WZ7DVP7.js";import"../__chunks__/chunk-PMRHP2KX.js";import"../__chunks__/chunk-KKMXLCWS.js";import"../__chunks__/chunk-D7SFMPZV.js";import"../__chunks__/chunk-N5STTJJR.js";import"../__chunks__/chunk-OXIGVI7S.js";import"../__chunks__/chunk-VB4M63XQ.js";import"../__chunks__/chunk-LGKB7JTU.js";import"../__chunks__/chunk-DZ5IJ4N3.js";import"../__chunks__/chunk-6ZGFYJ6T.js";import"../__chunks__/chunk-HI5RCCIL.js";import"../__chunks__/chunk-ZT4O7WWY.js";import"../__chunks__/chunk-BQSKQ7XQ.js";import"../__chunks__/chunk-C7ZNGCKJ.js";import"../__chunks__/chunk-ZUR56TCY.js";import"../__chunks__/chunk-XNEUL4SO.js";import"../__chunks__/chunk-FYSR5U3I.js";import"../__chunks__/chunk-DUSZZPF5.js";import"../__chunks__/chunk-OXBZSHOZ.js";import"../__chunks__/chunk-PXHBOM4A.js";import"../__chunks__/chunk-ZU6LXEUO.js";import"../__chunks__/chunk-5KGDRZSV.js";import"../__chunks__/chunk-VTMJ7INI.js";import"../__chunks__/chunk-WTIKHG7D.js";import"../__chunks__/chunk-LJPH3Z4L.js";import"../__chunks__/chunk-GGMEVY45.js";import"../__chunks__/chunk-YLLIHJY3.js";import"../__chunks__/chunk-DKXAWU2I.js";import"../__chunks__/chunk-ITDGZCSS.js";import"../__chunks__/chunk-27DX5WIQ.js";import"../__chunks__/chunk-X2JZA2ND.js";import"../__chunks__/chunk-MV7THB7B.js";import"../__chunks__/chunk-QR72MI4M.js";import"../__chunks__/chunk-FC3CZOOQ.js";import{a as r,b as e,c as f}from"../__chunks__/chunk-GDPQQIJM.js";import"../__chunks__/chunk-Y4LHGIZO.js";import"../__chunks__/chunk-X53TXOIC.js";import"../__chunks__/chunk-YDQULLMK.js";import"../__chunks__/chunk-OGKM4YOJ.js";import"../__chunks__/chunk-YUGUMBTX.js";import"../__chunks__/chunk-UMTCMSCG.js";import"../__chunks__/chunk-CLAJ4EPW.js";import"../__chunks__/chunk-H2JYGVBI.js";import"../__chunks__/chunk-FGT3C4FE.js";import"../__chunks__/chunk-DCI4LUDC.js";import"../__chunks__/chunk-HOX227TC.js";import"../__chunks__/chunk-GNCSMYRN.js";import"../__chunks__/chunk-Y4RXLAEX.js";import"../__chunks__/chunk-UIDXWJ2D.js";import"../__chunks__/chunk-FTQGHIGG.js";import"../__chunks__/chunk-NHHDQ53S.js";import"../__chunks__/chunk-XXP2T2NS.js";import"../__chunks__/chunk-AHX4GHIC.js";import{m as o}from"../__chunks__/chunk-HBP5N4FR.js";o();export{m as createSubscription,a as mockResponse,t as mockWindowLocation,p as renderWithProvider,x as rest,b as server,r as testAddress,e as testNetwork,f as testReceiver};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|