@multiversx/sdk-dapp 2.24.3-alpha.2 → 2.24.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/ExplorerLink/ExplorerLink.js +1 -1
- package/UI/ExplorerLink/index.js +1 -1
- package/UI/NotificationModal/NotificationModal.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/ConfirmAmount.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/ConfirmFee.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/ConfirmReceiver.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/components/ReceiverSubValue/ReceiverSubValue.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/components/ReceiverSubValue/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/components/ReceiverValue/ReceiverValue.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/components/ReceiverValue/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/NftSftPreviewComponent/NftSftPreviewComponent.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/NftSftPreviewComponent/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/TokenAvatar/TokenAvatar.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/TokenAvatar/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/SignWithExtensionModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/LedgerGuardianSigningModalError.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
- package/UI/SignTransactionsModals/components/index.js +1 -1
- package/UI/SignTransactionsModals/index.js +1 -1
- package/UI/TokenDetails/index.js +1 -1
- package/UI/TransactionDetails/TransactionDetails.js +1 -1
- package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
- package/UI/TransactionDetails/components/index.js +1 -1
- package/UI/TransactionDetails/index.js +1 -1
- package/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
- package/UI/TransactionInfo/components/EventsList/index.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
- package/UI/TransactionInfo/components/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/UI/TransactionInfo/index.js +1 -1
- package/UI/TransactionsTable/TransactionsTable.js +1 -1
- package/UI/TransactionsTable/components/AccountName.js +1 -1
- package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/TransactionHash.js +1 -1
- package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
- package/UI/TransactionsTable/components/TransactionRow.js +1 -1
- package/UI/TransactionsTable/components/TransactionSender.js +1 -1
- package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
- package/UI/TransactionsTable/components/index.js +1 -1
- package/UI/TransactionsTable/index.js +1 -1
- package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/CustomComponentToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/Trim/Trim.js +1 -1
- package/UI/Trim/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContainer.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/LedgerLoginContent.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/LedgerLoginContentBody.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/LedgerScamPhishingAlert.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContainer.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/WalletConnectLoginContent.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/UI/webWallet/XaliasLoginButton/XaliasLoginButton.js +1 -1
- package/UI/webWallet/XaliasLoginButton/index.js +1 -1
- package/__chunks__/{chunk-NSYOGHGQ.js → chunk-2CMKUY6H.js} +2 -2
- package/__chunks__/{chunk-JRJJDHIJ.js → chunk-2DQ6CR5Q.js} +2 -2
- package/__chunks__/chunk-2KJO6B2F.js +2 -0
- package/__chunks__/{chunk-AM22VWJ3.js → chunk-2L7RA7TQ.js} +2 -2
- package/__chunks__/{chunk-OPMWRJ53.js → chunk-2SJMULWY.js} +2 -2
- package/__chunks__/{chunk-S3GI4K5R.js → chunk-2UWEFH3N.js} +2 -2
- package/__chunks__/{chunk-WWWWNTBB.js → chunk-2YS7H2ZE.js} +2 -2
- package/__chunks__/{chunk-TEGNVCIJ.js → chunk-2ZDFD7W3.js} +2 -2
- package/__chunks__/{chunk-HBWYGWV6.js → chunk-34KFMQVC.js} +2 -2
- package/__chunks__/{chunk-L556TMVJ.js → chunk-34MA4U4R.js} +2 -2
- package/__chunks__/{chunk-D2GTSUJH.js → chunk-35Y3GO6S.js} +2 -2
- package/__chunks__/{chunk-W5QR4OL4.js → chunk-3IGVDHCA.js} +2 -2
- package/__chunks__/{chunk-5G2F7MPC.js → chunk-3P2SSFIT.js} +2 -2
- package/__chunks__/{chunk-A2QMNU34.js → chunk-4A64LZX2.js} +2 -2
- package/__chunks__/{chunk-WK3ZIZL4.js → chunk-4F4TF2ZC.js} +2 -2
- package/__chunks__/{chunk-PLDRHXXJ.js → chunk-4GXFEJ6A.js} +2 -2
- package/__chunks__/{chunk-HFCBQ7ZR.js → chunk-4IMYPENF.js} +2 -2
- package/__chunks__/{chunk-NUDDL7MC.js → chunk-4OU6XXNF.js} +2 -2
- package/__chunks__/chunk-57NHJBON.js +2 -0
- package/__chunks__/{chunk-LRD6VVJ6.js → chunk-5P5CK2VG.js} +2 -2
- package/__chunks__/{chunk-DYXQOETT.js → chunk-66F6ZOUD.js} +2 -2
- package/__chunks__/{chunk-LKHIHLPW.js → chunk-6EBTMS7B.js} +2 -2
- package/__chunks__/{chunk-5LMJ73QY.js → chunk-6RP3NRLJ.js} +2 -2
- package/__chunks__/{chunk-TRDGTPLU.js → chunk-6U7NBKUM.js} +2 -2
- package/__chunks__/{chunk-5UORFB4L.js → chunk-7CZ3SZEZ.js} +2 -2
- package/__chunks__/{chunk-QYNLIRRB.js → chunk-7ESKQI7K.js} +2 -2
- package/__chunks__/{chunk-HZF3G5MM.js → chunk-7QJUKV45.js} +2 -2
- package/__chunks__/{chunk-CRRQ3TSD.js → chunk-7QQ63ONM.js} +2 -2
- package/__chunks__/{chunk-ZQYN5SJM.js → chunk-A3SAV3T5.js} +2 -2
- package/__chunks__/{chunk-HQXHMAXZ.js → chunk-AE3D4GIF.js} +2 -2
- package/__chunks__/{chunk-THJJYWGQ.js → chunk-AHTOKLY4.js} +2 -2
- package/__chunks__/{chunk-4RPV47N2.js → chunk-AIS6QTPE.js} +2 -2
- package/__chunks__/{chunk-2BYRXQ5X.js → chunk-AK55HNL2.js} +2 -2
- package/__chunks__/chunk-AK6POMZ2.js +2 -0
- package/__chunks__/{chunk-6MGYJIQV.js → chunk-AQU6I3OF.js} +2 -2
- package/__chunks__/{chunk-OW5HKZ7L.js → chunk-AVBBDYC6.js} +2 -2
- package/__chunks__/{chunk-E53XCWVA.js → chunk-BDB23YTH.js} +2 -2
- package/__chunks__/{chunk-D7ARJN77.js → chunk-BE4VX4IY.js} +2 -2
- package/__chunks__/{chunk-25XVIHZ4.js → chunk-BOHYN6N3.js} +2 -2
- package/__chunks__/{chunk-E6ADXMVT.js → chunk-BW4TGZGT.js} +2 -2
- package/__chunks__/{chunk-HGVWIUC6.js → chunk-BYHGPRKG.js} +2 -2
- package/__chunks__/{chunk-FWHXCOSL.js → chunk-BYOJ6RLP.js} +2 -2
- package/__chunks__/{chunk-HQKXJWFQ.js → chunk-BZH2GDVS.js} +2 -2
- package/__chunks__/{chunk-SWICJIDL.js → chunk-C6D6GFUP.js} +2 -2
- package/__chunks__/{chunk-7DLCJGV6.js → chunk-CDARXZ52.js} +2 -2
- package/__chunks__/{chunk-6URA6EV3.js → chunk-CGLQQ6BA.js} +2 -2
- package/__chunks__/{chunk-OW2OS3NB.js → chunk-CL2CDSJS.js} +2 -2
- package/__chunks__/chunk-CSRQJAVF.js +2 -0
- package/__chunks__/{chunk-ZP2IMAZ3.js → chunk-CXJIHMWW.js} +2 -2
- package/__chunks__/{chunk-7HUZTX4L.js → chunk-D56I2EMR.js} +2 -2
- package/__chunks__/{chunk-DVZUUDM5.js → chunk-DCWMMHLS.js} +2 -2
- package/__chunks__/{chunk-S55WGZ6T.js → chunk-DKXVLMIJ.js} +2 -2
- package/__chunks__/{chunk-AJYAIVGW.js → chunk-DNACBKPW.js} +2 -2
- package/__chunks__/{chunk-VW4UIATH.js → chunk-DP6CPV3O.js} +2 -2
- package/__chunks__/{chunk-4RPV2R3Y.js → chunk-DZQURPYX.js} +2 -2
- package/__chunks__/{chunk-DPVN43SS.js → chunk-E3GPCX2R.js} +2 -2
- package/__chunks__/{chunk-QOUQTNQQ.js → chunk-E4ZSFDEB.js} +2 -2
- package/__chunks__/{chunk-RALGNG66.js → chunk-E56TPEII.js} +2 -2
- package/__chunks__/{chunk-6Y3DQ42A.js → chunk-E6EYTELA.js} +2 -2
- package/__chunks__/{chunk-7Y4WFG4J.js → chunk-E7QBB3QU.js} +2 -2
- package/__chunks__/{chunk-IPGZAT4Q.js → chunk-EOKRVIWH.js} +2 -2
- package/__chunks__/chunk-F32MLWPJ.js +2 -0
- package/__chunks__/{chunk-LN7WU7LY.js → chunk-FFSPY33P.js} +2 -2
- package/__chunks__/{chunk-ZUGU5O25.js → chunk-FK4K56JT.js} +2 -2
- package/__chunks__/{chunk-DTEGR4L4.js → chunk-FLXRCATX.js} +2 -2
- package/__chunks__/{chunk-4LDIUGRL.js → chunk-FNDAM5GX.js} +2 -2
- package/__chunks__/{chunk-EULFYORZ.js → chunk-FSEG3MG5.js} +2 -2
- package/__chunks__/chunk-FSRG3Y7E.js +2 -0
- package/__chunks__/{chunk-VZHW3VDO.js → chunk-FXSRRDWK.js} +2 -2
- package/__chunks__/{chunk-CZVGMTD5.js → chunk-FYIEE6YN.js} +2 -2
- package/__chunks__/{chunk-YA22CDTX.js → chunk-G6Y2BR6A.js} +2 -2
- package/__chunks__/{chunk-INKLKWQM.js → chunk-GBZDYVFC.js} +2 -2
- package/__chunks__/{chunk-IL4KHEHD.js → chunk-GSJ3ZOCA.js} +2 -2
- package/__chunks__/{chunk-QAGHY6BP.js → chunk-GYJF7J66.js} +2 -2
- package/__chunks__/{chunk-4N3UNVO6.js → chunk-H4WE3EJG.js} +2 -2
- package/__chunks__/chunk-HAUFGDPB.js +2 -0
- package/__chunks__/{chunk-GPWHVVIZ.js → chunk-HAZVZVKP.js} +2 -2
- package/__chunks__/{chunk-BRA22H5M.js → chunk-HBNTSTUG.js} +2 -2
- package/__chunks__/{chunk-PCIF2RWY.js → chunk-HFWDBZJD.js} +2 -2
- package/__chunks__/{chunk-TG6U4WKJ.js → chunk-HLTBHPP7.js} +2 -2
- package/__chunks__/{chunk-GLXAPLF3.js → chunk-HMT2AXLD.js} +2 -2
- package/__chunks__/{chunk-U4Z5KQBZ.js → chunk-HNQDX7H3.js} +2 -2
- package/__chunks__/{chunk-67PNSFXG.js → chunk-HQ5TI3SW.js} +2 -2
- package/__chunks__/{chunk-ULDPOZ2Z.js → chunk-HYTDUXFF.js} +2 -2
- package/__chunks__/{chunk-R5LRQTK2.js → chunk-I7TLI2VC.js} +2 -2
- package/__chunks__/{chunk-XIVT7GCM.js → chunk-IC2RSGYS.js} +2 -2
- package/__chunks__/{chunk-KL23FJ7J.js → chunk-IE5NA7WL.js} +2 -2
- package/__chunks__/{chunk-W2ER4ZPA.js → chunk-IGODU67F.js} +2 -2
- package/__chunks__/{chunk-Y7MQ4TIC.js → chunk-IO6TEYSD.js} +2 -2
- package/__chunks__/{chunk-4ND6DICM.js → chunk-IQNKFAHG.js} +2 -2
- package/__chunks__/{chunk-EIU36QH4.js → chunk-IRLCMXOJ.js} +2 -2
- package/__chunks__/{chunk-UKMEJLCZ.js → chunk-IW7OJOM7.js} +2 -2
- package/__chunks__/{chunk-3PMU2BJP.js → chunk-IZQA6BXE.js} +2 -2
- package/__chunks__/{chunk-JG5X6ATO.js → chunk-J5DVNGAU.js} +2 -2
- package/__chunks__/{chunk-KIEGUSIQ.js → chunk-J6ZM4N2U.js} +2 -2
- package/__chunks__/{chunk-NJJNUET7.js → chunk-JBOSVJA3.js} +2 -2
- package/__chunks__/{chunk-JPIOP5V6.js → chunk-JC5GK2GI.js} +2 -2
- package/__chunks__/{chunk-DE4IG3HA.js → chunk-JVUFOJBQ.js} +2 -2
- package/__chunks__/{chunk-XJWQIIM6.js → chunk-KFS55MCC.js} +2 -2
- package/__chunks__/{chunk-QQZ2BPWE.js → chunk-KNAOJNZZ.js} +2 -2
- package/__chunks__/{chunk-HJDVJRWK.js → chunk-KNS4HUFP.js} +2 -2
- package/__chunks__/{chunk-HBTE7HKA.js → chunk-KQEP6XC6.js} +2 -2
- package/__chunks__/{chunk-B66KOFKO.js → chunk-KY4TOAZS.js} +2 -2
- package/__chunks__/{chunk-KWUDJIPM.js → chunk-L633YWPE.js} +2 -2
- package/__chunks__/{chunk-JJDQ2FSB.js → chunk-L737XRT2.js} +2 -2
- package/__chunks__/{chunk-RCUXBWEI.js → chunk-LCVLUN7A.js} +2 -2
- package/__chunks__/{chunk-OGQDW4ZT.js → chunk-LDURYP3N.js} +2 -2
- package/__chunks__/{chunk-S3HX3ROY.js → chunk-M62ITQWZ.js} +2 -2
- package/__chunks__/{chunk-AOOV2RG4.js → chunk-M7VHWBYM.js} +2 -2
- package/__chunks__/{chunk-R4LOKR4S.js → chunk-MEBQ3H6H.js} +2 -2
- package/__chunks__/{chunk-GWKGRCQM.js → chunk-MUXGA4W6.js} +2 -2
- package/__chunks__/{chunk-WBDG5APT.js → chunk-MXVVC54X.js} +2 -2
- package/__chunks__/{chunk-4GAYIPS6.js → chunk-N5MQZVUN.js} +2 -2
- package/__chunks__/{chunk-45XN5OD4.js → chunk-ND7O4XPI.js} +2 -2
- package/__chunks__/{chunk-BFUUROO4.js → chunk-NFRYTK4L.js} +2 -2
- package/__chunks__/{chunk-ORQ46NSI.js → chunk-NZI7XR53.js} +2 -2
- package/__chunks__/{chunk-OKFS23H7.js → chunk-NZJUJOKF.js} +2 -2
- package/__chunks__/{chunk-RR7REDPT.js → chunk-O33IWNGF.js} +2 -2
- package/__chunks__/{chunk-XJAMLEMP.js → chunk-OCHQUKE7.js} +2 -2
- package/__chunks__/{chunk-EUSUGMFJ.js → chunk-OKE2D4RS.js} +2 -2
- package/__chunks__/{chunk-6LNX6XRB.js → chunk-OR375P2N.js} +2 -2
- package/__chunks__/{chunk-EOP6C6JA.js → chunk-PGALBKAJ.js} +2 -2
- package/__chunks__/{chunk-QHTVTPDM.js → chunk-PPTLAHZ6.js} +2 -2
- package/__chunks__/{chunk-5YFZWILJ.js → chunk-PRFBTCHT.js} +2 -2
- package/__chunks__/{chunk-LOU2ELA2.js → chunk-PTTOQSME.js} +2 -2
- package/__chunks__/{chunk-U3WPXV6W.js → chunk-PU3XWXKF.js} +2 -2
- package/__chunks__/{chunk-N4EVNPJY.js → chunk-QBALUHH7.js} +2 -2
- package/__chunks__/{chunk-SA4MRVIB.js → chunk-QJQA5ECY.js} +2 -2
- package/__chunks__/{chunk-LYD4K5XQ.js → chunk-QKF77CQY.js} +2 -2
- package/__chunks__/{chunk-TMDTIIDZ.js → chunk-QOEGNN75.js} +2 -2
- package/__chunks__/{chunk-WKGJLLVI.js → chunk-QQ4W4NWM.js} +2 -2
- package/__chunks__/{chunk-PRQY6ELS.js → chunk-QTQPRPUZ.js} +2 -2
- package/__chunks__/{chunk-EN6MGJMR.js → chunk-QUPKTQ4E.js} +2 -2
- package/__chunks__/{chunk-G6RJJ2PO.js → chunk-R6SJR47F.js} +2 -2
- package/__chunks__/{chunk-R42ZTFUW.js → chunk-RBS5RK2T.js} +2 -2
- package/__chunks__/{chunk-GCP5767M.js → chunk-RDB3W4TR.js} +2 -2
- package/__chunks__/{chunk-ALNEGVY2.js → chunk-RDRGB43N.js} +2 -2
- package/__chunks__/{chunk-NOFLHSJ6.js → chunk-RGYEFKYA.js} +2 -2
- package/__chunks__/{chunk-65RAL2RR.js → chunk-RLJXPI3O.js} +2 -2
- package/__chunks__/{chunk-KSBQOZGK.js → chunk-RRCWMPG5.js} +2 -2
- package/__chunks__/{chunk-3O25YLHG.js → chunk-RZIWO3JV.js} +2 -2
- package/__chunks__/{chunk-PGT42VQ3.js → chunk-S3W3PXDV.js} +2 -2
- package/__chunks__/{chunk-W5HMJDVY.js → chunk-SGPMLFTP.js} +2 -2
- package/__chunks__/{chunk-6RSBI32Z.js → chunk-T5DKVHD2.js} +2 -2
- package/__chunks__/{chunk-AO2SCNPK.js → chunk-TCC7NVKY.js} +2 -2
- package/__chunks__/{chunk-43BWBIAW.js → chunk-TFOZ2WOY.js} +2 -2
- package/__chunks__/{chunk-KW3R2SGN.js → chunk-TGTYVM5L.js} +2 -2
- package/__chunks__/{chunk-RPSLV47E.js → chunk-TK77VAKN.js} +2 -2
- package/__chunks__/{chunk-35KLLRXX.js → chunk-TVHRGKN7.js} +2 -2
- package/__chunks__/{chunk-J66ON3LW.js → chunk-U4JA2CJU.js} +2 -2
- package/__chunks__/{chunk-AMU67FTD.js → chunk-U57KUHCE.js} +2 -2
- package/__chunks__/{chunk-VAMKNK7N.js → chunk-U57SGRY6.js} +2 -2
- package/__chunks__/chunk-UEV7DRPJ.js +2 -0
- package/__chunks__/{chunk-6PWOHSXT.js → chunk-UON4673V.js} +2 -2
- package/__chunks__/{chunk-WZM65SHV.js → chunk-UPKJ6ZZJ.js} +2 -2
- package/__chunks__/{chunk-33VWNZE2.js → chunk-UXIN4IAX.js} +2 -2
- package/__chunks__/{chunk-SBNP73BJ.js → chunk-UZDMUG2D.js} +2 -2
- package/__chunks__/{chunk-73XJIF46.js → chunk-UZJ3RSTC.js} +2 -2
- package/__chunks__/{chunk-5K4IO6CR.js → chunk-V47ZGT5T.js} +2 -2
- package/__chunks__/{chunk-LDNCYXA6.js → chunk-VHIFQZAH.js} +2 -2
- package/__chunks__/{chunk-CYIYUQD6.js → chunk-VKGUMGPJ.js} +2 -2
- package/__chunks__/{chunk-QQHSMPMB.js → chunk-VMIG2KJ2.js} +2 -2
- package/__chunks__/{chunk-5SGBZRXX.js → chunk-VNK56ZNS.js} +2 -2
- package/__chunks__/chunk-VRNKN2E6.js +2 -0
- package/__chunks__/{chunk-MH6QJ5RU.js → chunk-VTVLHW3I.js} +2 -2
- package/__chunks__/{chunk-5K2JCNQE.js → chunk-VUVBP43H.js} +2 -2
- package/__chunks__/{chunk-W7FWLLZM.js → chunk-VY4SK5S4.js} +2 -2
- package/__chunks__/{chunk-GOUMA3C3.js → chunk-VYQJVLGU.js} +2 -2
- package/__chunks__/{chunk-BEFLU7LC.js → chunk-WDVHZSLX.js} +2 -2
- package/__chunks__/{chunk-YQSKMIIL.js → chunk-WGMTKOTV.js} +2 -2
- package/__chunks__/{chunk-MZ5WLAH2.js → chunk-X3PBITRY.js} +2 -2
- package/__chunks__/{chunk-UP7U43M6.js → chunk-X5XHRUIA.js} +2 -2
- package/__chunks__/{chunk-H6SE4JJU.js → chunk-X636BBI7.js} +2 -2
- package/__chunks__/{chunk-ITYBEMU2.js → chunk-XER3ZTPQ.js} +2 -2
- package/__chunks__/{chunk-TKWIQGOF.js → chunk-XPDUQQWK.js} +2 -2
- package/__chunks__/{chunk-Q6PG224D.js → chunk-XVFX5L7D.js} +2 -2
- package/__chunks__/{chunk-DNMBJCQM.js → chunk-XXVR3NWK.js} +2 -2
- package/__chunks__/{chunk-KDDPTS6K.js → chunk-XYOVJWXO.js} +2 -2
- package/__chunks__/{chunk-4JRMYDKW.js → chunk-Y2HY2MJE.js} +2 -2
- package/__chunks__/{chunk-YVUBMCI6.js → chunk-Y6I3IRKV.js} +2 -2
- package/__chunks__/{chunk-Z7EJ4JSS.js → chunk-Y6IFXLAV.js} +2 -2
- package/__chunks__/{chunk-PIDX6CWI.js → chunk-YALE7GVK.js} +2 -2
- package/__chunks__/chunk-YE5NK3OF.js +2 -0
- package/__chunks__/{chunk-HLEWP7UB.js → chunk-YF7JXC4O.js} +2 -2
- package/__chunks__/chunk-YIRFKWR6.js +2 -0
- package/__chunks__/{chunk-E3YWJKLH.js → chunk-YJYNEPGJ.js} +2 -2
- package/__chunks__/{chunk-ZAZF3WWV.js → chunk-YT5EJGNF.js} +2 -2
- package/__chunks__/{chunk-XOKYKKXZ.js → chunk-YZP5K7ZI.js} +2 -2
- package/__chunks__/{chunk-EEZXYSVX.js → chunk-Z6BVBFIJ.js} +2 -2
- package/__chunks__/chunk-Z7RZGYA4.js +2 -0
- package/__chunks__/{chunk-P4LKJI3Z.js → chunk-ZJ5I5WMD.js} +2 -2
- package/__chunks__/{chunk-OKPZUEJN.js → chunk-ZKGS3U4E.js} +2 -2
- package/__chunks__/{chunk-JH6SWY3G.js → chunk-ZMCWB2BO.js} +2 -2
- package/__chunks__/{chunk-V3MGEQYO.js → chunk-ZUUMKPK7.js} +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/index.js +1 -1
- package/__commonjs/UI/index.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +2 -2
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
- package/__commonjs/hooks/transactions/helpers/index.js +1 -1
- package/__commonjs/hooks/transactions/index.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/__commonjs/hooks/transactions/useTransactionsTracker.js +2 -2
- package/__commonjs/utils/index.js +1 -1
- package/__commonjs/utils/transactions/builtCallbackUrl.js +1 -1
- package/__commonjs/utils/transactions/index.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/apiCalls/accounts/getAccountFromApi.js +1 -1
- package/apiCalls/accounts/index.js +1 -1
- package/apiCalls/configuration/getNetworkConfig.js +1 -1
- package/apiCalls/configuration/index.js +1 -1
- package/apiCalls/economics/getEconomicsInfo.js +1 -1
- package/apiCalls/economics/index.js +1 -1
- package/apiCalls/getScamAddressData.js +1 -1
- package/apiCalls/index.js +1 -1
- package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
- package/apiCalls/transactions/index.js +1 -1
- package/apiCalls/transactions/sendSignedBatchTransactions.js +1 -1
- package/apiCalls/transactions/sendSignedTransactions.js +1 -1
- package/apiCalls/utils/getCleanApiAddress.js +1 -1
- package/apiCalls/utils/index.js +1 -1
- package/components/LogoutListener/LogoutListener.js +1 -1
- package/components/LogoutListener/helpers/index.js +1 -1
- package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/components/LogoutListener/index.js +1 -1
- package/components/ProviderInitializer/ProviderInitializer.js +1 -1
- package/components/ProviderInitializer/hooks/index.js +1 -1
- package/components/ProviderInitializer/hooks/useSetLedgerProvider.js +1 -1
- package/components/ProviderInitializer/index.js +1 -1
- package/components/TransactionSender/TransactionSender.js +1 -1
- package/components/TransactionSender/index.js +1 -1
- package/components/TransactionSender/utils/invokeSendTransactions.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/hooks/account/index.js +1 -1
- package/hooks/account/useGetAccount.js +1 -1
- package/hooks/account/useGetAccountFromApi.js +1 -1
- package/hooks/account/useGetAccountInfo.js +1 -1
- package/hooks/account/useGetIsLoggedIn.js +1 -1
- package/hooks/account/useGetLoginInfo.js +1 -1
- package/hooks/account/useGetWebsocketEvent.js +1 -1
- package/hooks/economics/index.js +1 -1
- package/hooks/economics/useGetEgldPrice.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useExtensionLogin.js +1 -1
- package/hooks/login/useGetModalLoginMethods.js +1 -1
- package/hooks/login/useLedgerLogin.js +1 -1
- package/hooks/login/useLoginService.js +1 -1
- package/hooks/login/useOperaLogin.js +1 -1
- package/hooks/login/useWalletConnectV2Login.js +1 -1
- package/hooks/login/useWebViewLogin.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/login/useXaliasLogin.js +1 -1
- package/hooks/signMessage/index.js +1 -1
- package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
- package/hooks/signMessage/useSignMessage.js +1 -1
- package/hooks/toasts/index.js +1 -1
- package/hooks/toasts/useGetToasts.js +1 -1
- package/hooks/toasts/useTransactionsToasts.js +1 -1
- package/hooks/transactions/batch/tracker/useBatchTransactionsTracker.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckBatch.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckBatchesOnWsFailureFallback.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckHangingBatchesFallback.js +1 -1
- package/hooks/transactions/batch/tracker/useUpdateBatch.js +1 -1
- package/hooks/transactions/batch/tracker/useVerifyBatchStatus.js +1 -1
- package/hooks/transactions/batch/useGetBatchStatus.js +1 -1
- package/hooks/transactions/batch/useResolveBatchStatusResponse.js +1 -1
- package/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
- package/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
- package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
- package/hooks/transactions/helpers/index.js +1 -1
- package/hooks/transactions/helpers/useGetLedgerProvider.js +1 -1
- package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
- package/hooks/transactions/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
- package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
- package/hooks/transactions/useGetFailedTransactions.js +1 -1
- package/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
- package/hooks/transactions/useGetPendingTransactions.js +1 -1
- package/hooks/transactions/useGetSignTransactionsError.js +1 -1
- package/hooks/transactions/useGetSignedTransactions.js +1 -1
- package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
- package/hooks/transactions/useGetTokenDetails.js +1 -1
- package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/hooks/transactions/useSignMultipleTransactions.js +1 -1
- package/hooks/transactions/useSignTransactions.js +1 -1
- package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/hooks/transactions/useTransactionsTracker.js +1 -1
- package/hooks/useGetNetworkConfig.js +1 -1
- package/hooks/useGetNotification.js +1 -1
- package/hooks/websocketListener/index.js +1 -1
- package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
- package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
- package/package.json +1 -1
- package/reduxStore/selectors/index.js +1 -1
- package/reduxStore/selectors/transactionsSelectors.js +1 -1
- package/services/index.js +1 -1
- package/services/nativeAuth/helpers/getAuthorizationInfo.js +1 -1
- package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
- package/services/nativeAuth/helpers/index.js +1 -1
- package/services/transactions/clearTransactions.js +1 -1
- package/services/transactions/getBatchTransactionsStatus.js +1 -1
- package/services/transactions/getTransactionsDetails.js +1 -1
- package/services/transactions/index.js +1 -1
- package/services/transactions/sendBatchTransactions.js +1 -1
- package/services/transactions/sendBatchTransactions.test.js +1 -1
- package/services/transactions/sendTransactions.js +1 -1
- package/services/transactions/transformAndSignTransactions.js +1 -1
- package/services/transactions/utils/transformTransactionsToSign.js +1 -1
- package/utils/account/getAccount.js +1 -1
- package/utils/account/getAccountBalance.js +1 -1
- package/utils/account/getAccountShard.js +1 -1
- package/utils/account/getAddress.js +1 -1
- package/utils/account/getLatestNonce.js +1 -1
- package/utils/account/index.js +1 -1
- package/utils/account/refreshAccount.js +1 -1
- package/utils/account/signMessage.js +1 -1
- package/utils/getIsLoggedIn.js +1 -1
- package/utils/index.js +1 -1
- package/utils/logout.js +1 -1
- package/utils/network/getChainID.js +1 -1
- package/utils/network/getEgldLabel.js +1 -1
- package/utils/network/getNetworkConfig.js +1 -1
- package/utils/network/index.js +1 -1
- package/utils/transactions/batch/updateBatchTransactionsStatuses.js +1 -1
- package/utils/transactions/builtCallbackUrl.js +1 -1
- package/utils/transactions/getAllTransactionsLink.js +1 -1
- package/utils/transactions/getTransactionLink.js +1 -1
- package/utils/transactions/index.js +1 -1
- package/web/hooks/index.js +1 -1
- package/web/hooks/useIdleTimer.js +1 -1
- package/web/index.js +1 -1
- package/wrappers/AppInitializer.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/index.js +1 -1
- package/wrappers/DappProvider/CustomComponents.js +1 -1
- package/wrappers/DappProvider/DappProvider.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-53REDK7M.js +0 -2
- package/__chunks__/chunk-7LKZ6L5E.js +0 -2
- package/__chunks__/chunk-C4XYKDPS.js +0 -2
- package/__chunks__/chunk-CUTGQFQR.js +0 -2
- package/__chunks__/chunk-EPGNYWGA.js +0 -2
- package/__chunks__/chunk-ESJNXVGT.js +0 -2
- package/__chunks__/chunk-GKMLW62A.js +0 -2
- package/__chunks__/chunk-KO4UPXPL.js +0 -2
- package/__chunks__/chunk-LS3SPXFL.js +0 -2
- package/__chunks__/chunk-OEDEDMAS.js +0 -2
- package/__chunks__/chunk-RNAZFXL2.js +0 -2
- package/__chunks__/chunk-XIXIGYCB.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Pa=Object.create;var Xe=Object.defineProperty,Ra=Object.defineProperties,Da=Object.getOwnPropertyDescriptor,Ca=Object.getOwnPropertyDescriptors,_a=Object.getOwnPropertyNames,Et=Object.getOwnPropertySymbols,Oa=Object.getPrototypeOf,Nr=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable;var jn=(e,t,r)=>t in e?Xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,y=(e,t)=>{for(var r in t||(t={}))Nr.call(t,r)&&jn(e,r,t[r]);if(Et)for(var r of Et(t))zn.call(t,r)&&jn(e,r,t[r]);return e},A=(e,t)=>Ra(e,Ca(t));var Pr=(e,t)=>{var r={};for(var o in e)Nr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Et)for(var o of Et(e))t.indexOf(o)<0&&zn.call(e,o)&&(r[o]=e[o]);return r};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var kt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),we=(e,t)=>{for(var r in t)Xe(e,r,{get:t[r],enumerable:!0})},Kn=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of _a(t))!Nr.call(e,i)&&i!==r&&Xe(e,i,{get:()=>t[i],enumerable:!(o=Da(t,i))||o.enumerable});return e};var v=(e,t,r)=>(r=e!=null?Pa(Oa(e)):{},Kn(t||!e||!e.__esModule?Xe(r,"default",{value:e,enumerable:!0}):r,e)),Ze=e=>Kn(Xe({},"__esModule",{value:!0}),e);var I=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(g){i(g)}},p=m=>{try{d(r.throw(m))}catch(g){i(g)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var Zn=kt(Lt=>{"use strict";n();Lt.byteLength=Fa;Lt.toByteArray=Ba;Lt.fromByteArray=Va;var ee=[],j=[],Ma=typeof Uint8Array!="undefined"?Uint8Array:Array,Rr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Ae=0,Yn=Rr.length;Ae<Yn;++Ae)ee[Ae]=Rr[Ae],j[Rr.charCodeAt(Ae)]=Ae;var Ae,Yn;j["-".charCodeAt(0)]=62;j["_".charCodeAt(0)]=63;function Xn(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 Fa(e){var t=Xn(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Ua(e,t,r){return(t+r)*3/4-r}function Ba(e){var t,r=Xn(e),o=r[0],i=r[1],l=new Ma(Ua(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=j[e.charCodeAt(m)]<<18|j[e.charCodeAt(m+1)]<<12|j[e.charCodeAt(m+2)]<<6|j[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=j[e.charCodeAt(m)]<<2|j[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=j[e.charCodeAt(m)]<<10|j[e.charCodeAt(m+1)]<<4|j[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Ga(e){return ee[e>>18&63]+ee[e>>12&63]+ee[e>>6&63]+ee[e&63]}function Wa(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(Ga(o));return i.join("")}function Va(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(Wa(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(ee[t>>2]+ee[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(ee[t>>10]+ee[t>>4&63]+ee[t<<2&63]+"=")),i.join("")}});var Jn=kt(Dr=>{n();Dr.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,g=m>>1,f=-7,T=r?i-1:0,w=r?-1:1,S=e[t+T];for(T+=w,l=S&(1<<-f)-1,S>>=-f,f+=d;f>0;l=l*256+e[t+T],T+=w,f-=8);for(p=l&(1<<-f)-1,l>>=-f,f+=o;f>0;p=p*256+e[t+T],T+=w,f-=8);if(l===0)l=1-g;else{if(l===m)return p?NaN:(S?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-g}return(S?-1:1)*p*Math.pow(2,l-o)};Dr.write=function(e,t,r,o,i,l){var p,d,m,g=l*8-i-1,f=(1<<g)-1,T=f>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=o?0:l-1,E=o?1:-1,C=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*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+T>=1?t+=w/m:t+=w*Math.pow(2,1-T),t*m>=2&&(p++,m/=2),p+T>=f?(d=0,p=f):p+T>=1?(d=(t*m-1)*Math.pow(2,i),p=p+T):(d=t*Math.pow(2,T-1)*Math.pow(2,i),p=0));i>=8;e[r+S]=d&255,S+=E,d/=256,i-=8);for(p=p<<i|d,g+=i;g>0;e[r+S]=p&255,S+=E,p/=256,g-=8);e[r+S-E]|=C*128}});var uo=kt(Oe=>{"use strict";n();var Cr=Zn(),_e=Jn(),Qn=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Oe.Buffer=u;Oe.SlowBuffer=Ka;Oe.INSPECT_MAX_BYTES=50;var Nt=2147483647;Oe.kMaxLength=Nt;u.TYPED_ARRAY_SUPPORT=$a();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function $a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function pe(e){if(e>Nt)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Fr(e)}return ro(e,t,r)}u.poolSize=8192;function ro(e,t,r){if(typeof e=="string")return qa(e,t);if(ArrayBuffer.isView(e))return ja(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 Or(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=za(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return ro(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function no(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 Ha(e,t,r){return no(e),e<=0?pe(e):t!==void 0?typeof r=="string"?pe(e).fill(t,r):pe(e).fill(t):pe(e)}u.alloc=function(e,t,r){return Ha(e,t,r)};function Fr(e){return no(e),pe(e<0?0:Ur(e)|0)}u.allocUnsafe=function(e){return Fr(e)};u.allocUnsafeSlow=function(e){return Fr(e)};function qa(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=oo(e,t)|0,o=pe(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function _r(e){for(var t=e.length<0?0:Ur(e.length)|0,r=pe(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function ja(e){if(te(e,Uint8Array)){var t=new Uint8Array(e);return Or(t.buffer,t.byteOffset,t.byteLength)}return _r(e)}function Or(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function za(e){if(u.isBuffer(e)){var t=Ur(e.length)|0,r=pe(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Br(e.length)?pe(0):_r(e);if(e.type==="Buffer"&&Array.isArray(e.data))return _r(e.data)}function Ur(e){if(e>=Nt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Nt.toString(16)+" bytes");return e|0}function Ka(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(te(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),te(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(te(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function oo(e,t){if(u.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 Mr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return po(e).length;default:if(i)return o?-1:Mr(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=oo;function Ya(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 ic(this,t,r);case"utf8":case"utf-8":return so(this,t,r);case"ascii":return nc(this,t,r);case"latin1":case"binary":return oc(this,t,r);case"base64":return tc(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return sc(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function ve(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)ve(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)ve(this,r,r+3),ve(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)ve(this,r,r+7),ve(this,r+1,r+6),ve(this,r+2,r+5),ve(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?so(this,0,t):Ya.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=Oe.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Qn&&(u.prototype[Qn]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(te(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,d=o-r,m=Math.min(p,d),g=this.slice(i,l),f=t.slice(r,o),T=0;T<m;++T)if(g[T]!==f[T]){p=g[T],d=f[T];break}return p<d?-1:d<p?1:0};function io(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,Br(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:eo(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):eo(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function eo(e,t,r,o,i){var l=1,p=e.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,d/=2,r/=2}function m(S,E){return l===1?S[E]:S.readUInt16BE(E*l)}var g;if(i){var f=-1;for(g=r;g<p;g++)if(m(e,g)===m(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 T=!0,w=0;w<d;w++)if(m(e,g+w)!==m(t,w)){T=!1;break}if(T)return g}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return io(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return io(this,t,r,o,!1)};function Xa(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(Br(d))return p;e[r+p]=d}return p}function Za(e,t,r,o){return Pt(Mr(t,e.length-r),e,r,o)}function Ja(e,t,r,o){return Pt(lc(t),e,r,o)}function Qa(e,t,r,o){return Pt(po(t),e,r,o)}function ec(e,t,r,o){return Pt(pc(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return Xa(this,t,r,o);case"utf8":case"utf-8":return Za(this,t,r,o);case"ascii":case"latin1":case"binary":return Ja(this,t,r,o);case"base64":return Qa(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ec(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function tc(e,t,r){return t===0&&r===e.length?Cr.fromByteArray(e):Cr.fromByteArray(e.slice(t,r))}function so(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,g,f,T;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(T=(l&31)<<6|m&63,T>127&&(p=T));break;case 3:m=e[i+1],g=e[i+2],(m&192)===128&&(g&192)===128&&(T=(l&15)<<12|(m&63)<<6|g&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:m=e[i+1],g=e[i+2],f=e[i+3],(m&192)===128&&(g&192)===128&&(f&192)===128&&(T=(l&15)<<18|(m&63)<<12|(g&63)<<6|f&63,T>65535&&T<1114112&&(p=T))}}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 rc(o)}var to=4096;function rc(e){var t=e.length;if(t<=to)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=to));return r}function nc(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 oc(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 ic(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+=uc[e[l]];return i}function sc(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function M(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||M(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||M(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||M(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||M(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||M(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||M(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||M(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||M(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||M(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||M(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||M(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||M(t,4,this.length),_e.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||M(t,4,this.length),_e.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||M(t,8,this.length),_e.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||M(t,8,this.length),_e.read(this,t,!1,52,8)};function B(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;B(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;B(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);B(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);B(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||B(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 ao(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 co(e,t,r,o,i){return t=+t,r=r>>>0,i||ao(e,t,r,4,34028234663852886e22,-34028234663852886e22),_e.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return co(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return co(this,t,r,!1,o)};function lo(e,t,r,o,i){return t=+t,r=r>>>0,i||ao(e,t,r,8,17976931348623157e292,-17976931348623157e292),_e.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return lo(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return lo(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var ac=/[^+/0-9A-Za-z-_]/g;function cc(e){if(e=e.split("=")[0],e=e.trim().replace(ac,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Mr(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 lc(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function pc(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 po(e){return Cr.toByteArray(cc(e))}function Pt(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 Br(e){return e!==e}var uc=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=kt((pp,To)=>{n();var R=To.exports={},re,ne;function Gr(){throw new Error("setTimeout has not been defined")}function Wr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?re=setTimeout:re=Gr}catch(e){re=Gr}try{typeof clearTimeout=="function"?ne=clearTimeout:ne=Wr}catch(e){ne=Wr}})();function mo(e){if(re===setTimeout)return setTimeout(e,0);if((re===Gr||!re)&&setTimeout)return re=setTimeout,setTimeout(e,0);try{return re(e,0)}catch(t){try{return re.call(null,e,0)}catch(r){return re.call(this,e,0)}}}function dc(e){if(ne===clearTimeout)return clearTimeout(e);if((ne===Wr||!ne)&&clearTimeout)return ne=clearTimeout,clearTimeout(e);try{return ne(e)}catch(t){try{return ne.call(null,e)}catch(r){return ne.call(this,e)}}}var ue=[],Me=!1,Ie,Rt=-1;function mc(){!Me||!Ie||(Me=!1,Ie.length?ue=Ie.concat(ue):Rt=-1,ue.length&&go())}function go(){if(!Me){var e=mo(mc);Me=!0;for(var t=ue.length;t;){for(Ie=ue,ue=[];++Rt<t;)Ie&&Ie[Rt].run();Rt=-1,t=ue.length}Ie=null,Me=!1,dc(e)}}R.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];ue.push(new fo(e,t)),ue.length===1&&!Me&&mo(go)};function fo(e,t){this.fun=e,this.array=t}fo.prototype.run=function(){this.fun.apply(null,this.array)};R.title="browser";R.browser=!0;R.env={};R.argv=[];R.version="";R.versions={};function de(){}R.on=de;R.addListener=de;R.once=de;R.off=de;R.removeListener=de;R.removeAllListeners=de;R.emit=de;R.prependListener=de;R.prependOnceListener=de;R.listeners=function(e){return[]};R.binding=function(e){throw new Error("process.binding is not supported")};R.cwd=function(){return"/"};R.chdir=function(e){throw new Error("process.chdir is not supported")};R.umask=function(){return 0}});var s,a,up,n=x(()=>{s=v(uo()),a=v(yo()),up=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 ho=x(()=>{"use strict";n()});var Dt,xo,Vr=x(()=>{"use strict";n();Dt="Transaction canceled",xo="You cannot sign transactions from a different account"});var So=x(()=>{"use strict";n()});var $r,wo=x(()=>{"use strict";n();$r=(o=>(o.SetGuardian="SetGuardian",o.GuardAccount="GuardAccount",o.UnGuardAccount="UnGuardAccount",o))($r||{})});var Ao=x(()=>{"use strict";n()});var Hr,qr=x(()=>{"use strict";n();Hr={36864:{code:"codeSuccess",message:"Success"},27013:{code:"ERR_USER_DENIED",message:"Rejected by user"},27904:{code:"ERR_UNKNOWN_INSTRUCTION",message:"Unknown instruction"},28160:{code:"ERR_WRONG_CLA",message:"Wrong CLA"},28161:{code:"ERR_INVALID_ARGUMENTS",message:"Invalid arguments"},28162:{code:"ERR_INVALID_MESSAGE",message:"Invalid message"},28163:{code:"ERR_INVALID_P1",message:"Invalid P1"},28164:{code:"ERR_MESSAGE_TOO_LONG",message:"Message too long"},28165:{code:"ERR_RECEIVER_TOO_LONG",message:"Receiver too long"},28166:{code:"ERR_AMOUNT_TOO_LONG",message:"Amount too long"},28167:{code:"ERR_CONTRACT_DATA_DISABLED",message:"Contract data disabled in app options"},28168:{code:"ERR_MESSAGE_INCOMPLETE",message:"Message incomplete"},28176:{code:"ERR_SIGNATURE_FAILED",message:"Signature failed"},28169:{code:"ERR_WRONG_TX_VERSION",message:"Wrong TX version"},28170:{code:"ERR_NONCE_TOO_LONG",message:"Nonce too long"},28171:{code:"ERR_INVALID_AMOUNT",message:"Invalid amount"},28172:{code:"ERR_INVALID_FEE",message:"Invalid fee"},28173:{code:"ERR_PRETTY_FAILED",message:"Pretty failed"},28174:{code:"ERR_DATA_TOO_LONG",message:"Data too long"},28175:{code:"ERR_WRONG_TX_OPTIONS",message:"Invalid transaction options"},28177:{code:"ERR_SIGN_TX_DEPRECATED",message:"Regular transaction signing is deprecated in this version. Use hash signing."}}});var vo=x(()=>{"use strict";n()});var jr,zr=x(()=>{"use strict";n();jr=(i=>(i.signature="signature",i.sessionId="sessionId",i.status="status",i.address="address",i))(jr||{})});var Io=x(()=>{"use strict";n()});var bo=x(()=>{"use strict";n()});var z=x(()=>{"use strict";n()});var Eo=x(()=>{"use strict";n()});var ko=x(()=>{"use strict";n()});var G=x(()=>{"use strict";n()});var Lo=x(()=>{"use strict";n()});var No=x(()=>{"use strict";n()});var Po=x(()=>{"use strict";n()});var W=x(()=>{"use strict";n();zr();Io();bo();z();Eo();ko();G();Lo();No();Po()});var be,Ro,Fp,Do,Up,Co,Bp,Gp,_o,Je=x(()=>{"use strict";n();W();be={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Ro,egldLabel:Fp}=be["devnet"],{chainId:Do,egldLabel:Up}=be["testnet"],{chainId:Co,egldLabel:Bp}=be["mainnet"],Gp={["devnet"]:Ro,["testnet"]:Do,["mainnet"]:Co},_o={[Ro]:"devnet",[Do]:"testnet",[Co]:"mainnet"}});var Oo=x(()=>{"use strict";n()});var oe,Mo=x(()=>{"use strict";n();oe=require("@multiversx/sdk-web-wallet-provider")});var Kr,Yr,Fo,Uo,Bo,xe,Ct,_t,Go,Fe,k=x(()=>{"use strict";n();ho();Vr();So();wo();Ao();qr();vo();Je();Oo();Mo();Kr=5e4,Yr=1e9,Fo=1,Uo=1,Bo="/dapp/init",xe="signSession",Ct="sdk-dapp-version",_t="logout",Go="login",Fe="0"});var Ot,Xr=x(()=>{"use strict";n();Ot=()=>Date.now()/1e3});var Wo=x(()=>{"use strict";n()});var Vo=x(()=>{"use strict";n()});var $o=x(()=>{"use strict";n();Xr();Wo();Vo()});var Zr={};we(Zr,{clear:()=>yc,getItem:()=>fc,localStorageKeys:()=>Z,removeItem:()=>Tc,setItem:()=>gc});var Z,Mt,gc,fc,Tc,yc,Ue=x(()=>{"use strict";n();$o();Z={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Mt=typeof localStorage!="undefined",gc=({key:e,data:t,expires:r})=>{!Mt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},fc=e=>{if(!Mt)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:Ot()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Tc=e=>{!Mt||localStorage.removeItem(String(e))},yc=()=>{!Mt||localStorage.clear()}});var Jr={};we(Jr,{clear:()=>zo,getItem:()=>qo,removeItem:()=>jo,setItem:()=>Ho,storage:()=>hc});var Ho,qo,jo,zo,hc,Ko=x(()=>{"use strict";n();Ho=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},qo=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},jo=e=>sessionStorage.removeItem(String(e)),zo=()=>sessionStorage.clear(),hc={setItem:Ho,getItem:qo,removeItem:jo,clear:zo}});var ie,Qe=x(()=>{"use strict";n();Ue();Ko();ie={session:Jr,local:Zr}});var Qr,P,et,H=x(()=>{"use strict";n();Qr=require("@reduxjs/toolkit");k();P=(0,Qr.createAction)(_t),et=(0,Qr.createAction)(Go,e=>({payload:e}))});var tn,Yo,Xo,Ft,en,Zo,rn,hu,nn,xu,Su,wu,Au,vu,Iu,bu,Eu,Ut,Bt=x(()=>{"use strict";n();tn=require("@multiversx/sdk-core"),Yo=require("@reduxjs/toolkit"),Xo=require("redux-persist");k();Qe();Ue();H();Ft={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:Fe},en={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":Ft},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Zo=(0,Yo.createSlice)({name:"accountInfoSlice",initialState:en,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new tn.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Ft},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(P,()=>(ie.local.removeItem(Z.loginExpiresAt),en)),e.addCase(et,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new tn.Address(o).hex()}),e.addCase(Xo.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 m=p&&i in p;t.accounts=m?p:en.accounts,t.publicKey=d})}}),{setAccount:rn,setAddress:hu,setAccountNonce:nn,setAccountShard:xu,setLedgerAccount:Su,updateLedgerAccount:wu,setWalletConnectAccount:Au,setIsAccountLoading:vu,setAccountLoadingError:Iu,setWebsocketEvent:bu,setWebsocketBatchEvent:Eu}=Zo.actions,Ut=Zo.reducer});function tt(){return new Date().setHours(new Date().getHours()+24)}function rt(e){ie.local.setItem({key:Z.loginExpiresAt,data:e,expires:e})}var on=x(()=>{"use strict";n();Qe();Ue()});var Qo,Jo,ei,Mu,Fu,Uu,Bu,Gu,Wu,ti,Vu,Gt,Wt=x(()=>{"use strict";n();Qo=require("@reduxjs/toolkit");on();z();H();Jo={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},ei=(0,Qo.createSlice)({name:"loginInfoSlice",initialState:Jo,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(P,()=>Jo),e.addCase(et,(t,r)=>{t.isLoginSessionInvalid=!1,t.loginMethod=r.payload.loginMethod,rt(tt())})}}),{setLoginMethod:Mu,setWalletConnectLogin:Fu,setLedgerLogin:Uu,setTokenLogin:Bu,setTokenLoginSignature:Gu,setWalletLogin:Wu,invalidateLoginSession:ti,setLogoutRoute:Vu}=ei.actions,Gt=ei.reducer});var ni,ri,oi,ju,zu,Ku,Yu,Vt,$t=x(()=>{"use strict";n();ni=require("@reduxjs/toolkit");H();ri={},oi=(0,ni.createSlice)({name:"modalsSlice",initialState:ri,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(P,()=>ri)}}),{setTxSubmittedModal:ju,setNotificationModal:zu,clearTxSubmittedModal:Ku,clearNotificationModal:Yu}=oi.actions,Vt=oi.reducer});var ii,si,ot,Ht=x(()=>{"use strict";n();ii=!1,si=(e=!0)=>{ii=e},ot=({timeout:e=0,url:t})=>{ii||setTimeout(()=>{if(!!window)return window.location.assign(t)},e)}});var ai=x(()=>{"use strict";n();Ht()});function ci(e){return e[Math.floor(Math.random()*e.length)]}var li=x(()=>{"use strict";n()});function ui(e){let t=null;if((e==null?void 0:e.statusCode)in Hr){let r=e==null?void 0:e.statusCode,{message:o}=Hr[r];t=wc.includes(r)?pi:o}return{errorMessage:t,defaultErrorMessage:pi}}var pi,xc,Sc,wc,sn=x(()=>{"use strict";n();qr();pi="Check if the MultiversX app is open on Ledger",xc=28161,Sc=28160,wc=[xc,Sc]});var di=x(()=>{"use strict";n();ai();li();sn()});var mi,gi,fi,an,Ac,Ti,pd,ud,dd,qt,jt=x(()=>{"use strict";n();mi=require("@reduxjs/toolkit"),gi=v(require("lodash.omit")),fi=require("redux-persist");H();di();an={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Ac={network:an,chainID:"-1"},Ti=(0,mi.createSlice)({name:"appConfig",initialState:Ac,reducers:{initializeNetworkConfig:(e,t)=>{let r=ci(t.payload.walletConnectV2RelayAddresses),o=(0,gi.default)(t.payload,"walletConnectV2RelayAddresses");e.network=A(y(y({},e.network),o),{walletConnectV2RelayAddress:r})},setChainID:(e,t)=>{e.chainID=t.payload},setCustomWalletAddress:(e,t)=>{e.network.customWalletAddress=t.payload}},extraReducers:e=>{e.addCase(P,t=>{t.network.customWalletAddress=void 0}),e.addCase(fi.REHYDRATE,(t,r)=>{var i,l;if(!((l=(i=r.payload)==null?void 0:i.network)!=null&&l.customWalletAddress))return;let{network:{customWalletAddress:o}}=r.payload;t.network.customWalletAddress=o})}}),{initializeNetworkConfig:pd,setChainID:ud,setCustomWalletAddress:dd}=Ti.actions,qt=Ti.reducer});var yi,cn,hi,hd,xd,Sd,zt,Kt=x(()=>{"use strict";n();yi=require("@reduxjs/toolkit");W();H();cn={isSigning:!1,signedSessions:{}},hi=(0,yi.createSlice)({name:"signedMessageInfoSliceState",initialState:cn,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=o},setSignSessionState:(e,t)=>y(y({},e),t.payload),clearSignedMessageInfo:()=>cn},extraReducers:e=>{e.addCase(P,()=>cn)}}),{setSignSession:hd,clearSignedMessageInfo:xd,setSignSessionState:Sd}=hi.actions,zt=hi.reducer});var Si,wi,xi,Ai,kd,Ld,Nd,Pd,Yt,Xt=x(()=>{"use strict";n();Si=require("@reduxjs/toolkit"),wi=require("redux-persist");W();Xr();H();xi={customToasts:[],transactionToasts:[]},Ai=(0,Si.createSlice)({name:"toastsSlice",initialState:xi,reducers:{addCustomToast:(e,t)=>{let r=t.payload.toastId||`custom-toast-${e.customToasts.length+1}`,o=e.customToasts.findIndex(i=>i.toastId===r);if(o!==-1){e.customToasts[o]=A(y(y({},e.customToasts[o]),t.payload),{type:"custom",toastId:r});return}e.customToasts.push(A(y({},t.payload),{type:"custom",toastId:r}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Ot(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)}},extraReducers:e=>{e.addCase(P,()=>xi),e.addCase(wi.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:kd,removeCustomToast:Ld,addTransactionToast:Nd,removeTransactionToast:Pd}=Ai.actions,Yt=Ai.reducer});var vi,pn,un,dn,vc,ln,Ii,_d,Od,Zt,Jt,Qt=x(()=>{"use strict";n();vi=require("@reduxjs/toolkit");H();pn="Transaction failed",un="Transaction successful",dn="Processing transaction",vc="Transaction submitted",ln={},Ii=(0,vi.createSlice)({name:"transactionsInfo",initialState:ln,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||pn,successMessage:(o==null?void 0:o.successMessage)||un,processingMessage:(o==null?void 0:o.processingMessage)||dn,submittedMessage:(o==null?void 0:o.submittedMessage)||vc,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>ln},extraReducers:e=>{e.addCase(P,()=>ln)}}),{clearTransactionsInfo:_d,setTransactionsDisplayInfo:Od,clearTransactionsInfoForSessionId:Zt}=Ii.actions,Jt=Ii.reducer});function bi(e){return e!=null&&(Cc(e)||Uc(e))}function er(e){return e!=null&&(_c(e)||Bc(e))}function tr(e){return e!=null&&(Oc(e)||Gc(e))}function Ei(e){return e!=null&&(Mc(e)||Wc(e))}function ki(e){return e!=null&&Fc(e)}function Cc(e){return e!=null&&Ic.includes(e)}function _c(e){return e!=null&&bc.includes(e)}function Oc(e){return e!=null&&Ec.includes(e)}function Mc(e){return e!=null&&kc.includes(e)}function Fc(e){return e!=null&&Lc.includes(e)}function Uc(e){return e!=null&&Nc.includes(e)}function Bc(e){return e!=null&&Pc.includes(e)}function Gc(e){return e!=null&&Rc.includes(e)}function Wc(e){return e!=null&&Dc.includes(e)}var Ic,bc,Ec,kc,Lc,Nc,Pc,Rc,Dc,fn=x(()=>{"use strict";n();z();Ic=["sent"],bc=["success"],Ec=["fail","cancelled","timedOut"],kc=["invalid"],Lc=["timedOut"],Nc=["pending"],Pc=["success"],Rc=["fail","invalid"],Dc=["not executed"]});var Li,Ni,it,Vc,Pi,Hd,qd,jd,rr,zd,Kd,Yd,Ri,Be,Ge,Xd,nr,or=x(()=>{"use strict";n();Li=require("@reduxjs/toolkit"),Ni=require("redux-persist");z();fn();H();it={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Vc={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Pi=(0,Li.createSlice)({name:"transactionsSlice",initialState:it,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,g;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p,customTransactionInformation:d}=t.payload;e.customTransactionInformationForSessionId[r]=y(y(y({},Vc),((m=e.signedTransactions[r])==null?void 0:m.customTransactionInformation)||{}),e.customTransactionInformationForSessionId[r]||{}),e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:y(y({},e.customTransactionInformationForSessionId[r]),d!=null?d:{})},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===r&&(e.transactionsToSign=it.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 m,g,f,T,w,S,E,C;let{sessionId:r,status:o,errorMessage:i,transactionHash:l,inTransit:p}=t.payload,d=(g=(m=e.signedTransactions)==null?void 0:m[r])==null?void 0:g.transactions;if(d!=null){e.signedTransactions[r].transactions=d.map(_=>_.hash===l?A(y({},_),{status:o,errorMessage:i,inTransit:p}):_);let b=(T=(f=e.signedTransactions[r])==null?void 0:f.transactions)==null?void 0:T.every(_=>er(_.status)),X=(S=(w=e.signedTransactions[r])==null?void 0:w.transactions)==null?void 0:S.every(_=>tr(_.status)),$=(C=(E=e.signedTransactions[r])==null?void 0:E.transactions)==null?void 0:C.every(_=>Ei(_.status));b&&(e.signedTransactions[r].status="success"),X&&(e.signedTransactions[r].status="fail"),$&&(e.signedTransactions[r].status="invalid")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=it.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=it.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload},updateSignedTransactionsCustomTransactionInformation:(e,t)=>{let{sessionId:r,customTransactionInformationOverrides:o}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].customTransactionInformation=y(y({},e.signedTransactions[r].customTransactionInformation),o))}},extraReducers:e=>{e.addCase(P,()=>it),e.addCase(Ni.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((d,[m,g])=>{let f=new Date(m),T=new Date;return T.setHours(T.getHours()+5),T-f>0||(d[m]=g),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Hd,updateSignedTransactions:qd,setTransactionsToSign:jd,clearAllTransactionsToSign:rr,clearAllSignedTransactions:zd,clearSignedTransaction:Kd,clearTransactionToSign:Yd,setSignTransactionsError:Ri,setSignTransactionsCancelMessage:Be,moveTransactionsToSignedState:Ge,updateSignedTransactionsCustomTransactionInformation:Xd}=Pi.actions,nr=Pi.reducer});var Di,Tn,Ci,em,tm,rm,nm,ir,sr=x(()=>{"use strict";n();Di=require("@reduxjs/toolkit");H();Tn={},Ci=(0,Di.createSlice)({name:"batchTransactionsSlice",initialState:Tn,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>Tn},extraReducers:e=>{e.addCase(P,()=>Tn)}}),{setBatchTransactions:em,updateBatchTransactions:tm,clearBatchTransactions:rm,clearAllBatchTransactions:nm}=Ci.actions,ir=Ci.reducer});var Oi,_i,Mi,am,Fi,yn=x(()=>{"use strict";n();Oi=require("@reduxjs/toolkit");H();_i={},Mi=(0,Oi.createSlice)({name:"dappConfigSlice",initialState:_i,reducers:{setDappConfig:(e,t)=>t.payload},extraReducers:e=>{e.addCase(P,()=>_i)}}),{setDappConfig:am}=Mi.actions,Fi=Mi.reducer});var K=x(()=>{"use strict";n();Bt();Wt();$t();jt();Kt();Xt();Qt();or();sr();yn()});var wn=x(()=>{"use strict";n()});var ts,Zc,Jc,Ne,dr=x(()=>{"use strict";n();ts=require("@reduxjs/toolkit");wn();Bt();sr();yn();Wt();$t();jt();Kt();Xt();Qt();or();Zc={["account"]:Ut,["dappConfig"]:Fi,["loginInfo"]:Gt,["modals"]:Vt,["networkConfig"]:qt,["signedMessageInfo"]:zt,["toasts"]:Yt,["transactionsInfo"]:Jt,["transactions"]:nr,["batchTransactions"]:ir},Jc=(e={})=>(0,ts.combineReducers)(y(y({},Zc),e)),Ne=Jc});var is={};we(is,{default:()=>gl,sessionStorageReducers:()=>An});function ge(e,t=[]){return{key:e,version:1,storage:ns.default,blacklist:t}}var V,rs,ns,Qc,ct,el,tl,rl,nl,ol,il,sl,al,cl,ll,os,pl,An,ul,dl,ml,gl,ss=x(()=>{"use strict";n();V=require("redux-persist"),rs=v(require("redux-persist/lib/storage")),ns=v(require("redux-persist/lib/storage/session"));dr();K();Bt();sr();Wt();$t();jt();Kt();Xt();Qt();or();wn();Qc={persistReducersStorageType:"localStorage"},ct={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},el=ge(ct["account"]),tl=ge(ct["loginInfo"]),rl=ge(ct["modals"]),nl=ge(ct["networkConfig"]),ol={2:e=>A(y({},e),{networkConfig:an})};il=ge("sdk-dapp-transactionsInfo"),sl=ge("sdk-dapp-transactions",["transactionsToSign"]),al=ge("sdk-dapp-batchTransactions",["batchTransactions"]),cl=ge("sdk-dapp-toasts"),ll=ge("sdk-dapp-signedMessageInfo"),os={key:"sdk-dapp-store",version:2,storage:rs.default,whitelist:Object.keys(ct),migrate:(0,V.createMigrate)(ol,{debug:!1})},pl=A(y({},os),{whitelist:[]}),An={["toasts"]:(0,V.persistReducer)(cl,Yt),["transactions"]:(0,V.persistReducer)(sl,nr),["transactionsInfo"]:(0,V.persistReducer)(il,Jt),["batchTransactions"]:(0,V.persistReducer)(al,ir),["signedMessageInfo"]:(0,V.persistReducer)(ll,zt)},ul=A(y({},An),{["account"]:(0,V.persistReducer)(el,Ut),["loginInfo"]:(0,V.persistReducer)(tl,Gt),["modals"]:(0,V.persistReducer)(rl,Vt),["networkConfig"]:(0,V.persistReducer)(nl,qt)}),dl=Qc.persistReducersStorageType==="localStorage",ml=dl?(0,V.persistReducer)(os,Ne(An)):(0,V.persistReducer)(pl,Ne(ul)),gl=ml});var as={};we(as,{default:()=>fl});var fl,cs=x(()=>{"use strict";n();dr();fl=Ne()});var ls={};we(ls,{default:()=>yl});var Y,Tl,yl,ps=x(()=>{"use strict";n();Y=require("redux-persist"),Tl=[Y.FLUSH,Y.REHYDRATE,Y.PAUSE,Y.PERSIST,Y.PURGE,Y.REGISTER],yl=Tl});var ms={};we(ms,{default:()=>ds});function ds(e){return(0,us.persistStore)(e)}var us,gs=x(()=>{"use strict";n();us=require("redux-persist")});var op={};we(op,{useSignTransactionsWithDevice:()=>np});module.exports=Ze(op);n();var Ia=require("react");n();var Fs=v(require("axios"));n();n();K();n();var Ui=v(require("lodash.isequal")),ar=require("reselect"),h=(0,ar.createSelectorCreator)(ar.defaultMemoize,Ui.default);var se=e=>e.account,Ee=h(se,e=>e.address),We=h(se,Ee,(e,t)=>t in e.accounts?e.accounts[t]:Ft),Bi=h(se,We,(e,t)=>{let i=e,{accounts:r}=i,o=Pr(i,["accounts"]);return A(y({},o),{account:t})}),vm=h(We,e=>e.balance),Gi=h(We,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Im=h(se,e=>e.shard),bm=h(se,e=>e.ledgerAccount),Em=h(se,e=>e.walletConnectAccount),km=h(se,e=>e.isAccountLoading),Lm=h(se,e=>e.accountLoadingError),$c=h(se,e=>e.websocketEvent),Nm=h(se,e=>e.websocketBatchEvent);n();var Hc=e=>e.dappConfig,Dm=h(Hc,e=>e.shouldUseWebViewProvider);n();var J=e=>e.loginInfo,Mm=h(J,e=>e.loginMethod),ke=h(J,Ee,(e,t)=>Boolean(t)),Fm=h(J,e=>e.walletConnectLogin),Wi=h(J,e=>e.ledgerLogin),Vi=h(J,e=>e.walletLogin),Um=h(J,e=>e.isLoginSessionInvalid),Bm=h(J,e=>e.tokenLogin),$i=h(J,e=>e.logoutRoute);n();var Hi=e=>e.modals,Vm=h(Hi,e=>e.txSubmittedModal),$m=h(Hi,e=>e.notificationModal);n();var me=e=>e.networkConfig,jm=h(me,e=>e.chainID),zm=h(me,e=>e.network.walletConnectBridgeAddress),Km=h(me,e=>e.network.walletConnectV2RelayAddress),Ym=h(me,e=>e.network.walletConnectV2ProjectId),Xm=h(me,e=>e.network.walletConnectV2Options),Zm=h(me,e=>e.network.walletConnectDeepLink),Le=h(me,e=>e.network),qi=h(Le,e=>e.apiAddress),ji=h(Le,e=>e.explorerAddress),zi=h(Le,e=>{var t;return(t=e.customWalletAddress)!=null?t:e.walletAddress}),Jm=h(Le,e=>e.xAliasAddress),Ki=h(Le,e=>e.egldLabel);n();var cr=e=>e.signedMessageInfo,tg=h(cr,e=>e.isSigning),rg=h(cr,e=>e.errorMessage),ng=h(cr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),og=h(cr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var Yi=e=>e.toasts,ag=h(Yi,e=>e.customToasts),cg=h(Yi,e=>e.transactionToasts);n();K();var Xi={errorMessage:pn,successMessage:un,processingMessage:dn},qc=e=>e.transactionsInfo,dg=h(qc,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Xi);n();n();var ae=require("@multiversx/sdk-core");k();n();var Sn=require("@multiversx/sdk-core/out");n();n();function hn(e){try{let t=atob(e),r=btoa(t),o=s.Buffer.from(e,"base64").toString(),i=s.Buffer.from(o).toString("base64");if(e===r&&e===i||t===o)return!0}catch(t){return!1}return!1}n();n();function xn(e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>127)return!1;return!0}function st(e){let t=e;try{let r=s.Buffer.from(e,"hex").toString();xn(r)&&r.length>1&&(t=r)}catch(r){}return t}n();n();var Zi=e=>{let t=e!=null?e:"";return hn(t)?Sn.TransactionPayload.fromEncoded(t):new Sn.TransactionPayload(t)};n();k();var at=({data:e,onlySetGuardian:t})=>e?t?e.startsWith("SetGuardian"):Object.values($r).some(r=>e.startsWith(r)):!1;function lr(e){var o,i,l;let t=Object.assign({},e);at({data:t.data,onlySetGuardian:!0})&&(delete t.senderUsername,delete t.receiverUsername);let r=new ae.Transaction(y(y(A(y(A(y({value:t.value.valueOf(),data:Zi(t.data),nonce:t.nonce.valueOf(),receiver:new ae.Address(t.receiver)},t.receiverUsername?{receiverUsername:t.receiverUsername}:{}),{sender:new ae.Address(t.sender)}),t.senderUsername?{senderUsername:t.senderUsername}:{}),{gasLimit:(o=t.gasLimit.valueOf())!=null?o:Kr,gasPrice:(i=t.gasPrice.valueOf())!=null?i:Yr,chainID:t.chainID.valueOf(),version:new ae.TransactionVersion((l=t.version)!=null?l:Fo)}),t.options?{options:new ae.TransactionOptions(t.options)}:{}),t.guardian?{guardian:new ae.Address(t.guardian)}:{}));return t.guardianSignature&&r.applyGuardianSignature(s.Buffer.from(t.guardianSignature,"hex")),t.signature&&r.applySignature(s.Buffer.from(t.signature,"hex")),r}n();n();k();function jc(e,t){let r=new URLSearchParams(e),o=Object.fromEntries(r);return{nextUrlParams:new URLSearchParams(y(y({},o),t)).toString(),params:o}}var zc="2.24.3-alpha.2";function Ji({callbackUrl:e,urlParams:t={}}){let r=e;if(Object.entries(t).length>0)try{let{search:o,origin:i,pathname:l,hash:p}=new URL(e),d=A(y({},t),{[Ct]:zc}),{nextUrlParams:m}=jc(o,d);r=`${i}${l}?${m}${p}`}catch(o){return console.error("Unable to construct URL from: ",e,o),r}return r}n();n();var vn=require("@reduxjs/toolkit"),hs=require("react-redux/lib/utils/Subscription");K();n();var Qi=v(require("lodash.throttle"));k();K();on();Qe();Ue();var Kc=[_t],pr=!1,Yc=(0,Qi.default)(()=>{rt(tt())},5e3),es=e=>t=>r=>{if(Kc.includes(r.type))return t(r);let o=e.getState(),i=ie.local.getItem(Z.loginExpiresAt);if(!Boolean(o==null?void 0:o.account.address))return t(r);if(i==null)return rt(tt());let p=Date.now();return i-p<0&&!pr?setTimeout(()=>{pr=!0,e.dispatch(ti())},1e3):(pr&&(pr=!1),Yc()),t(r)};n();n();function ur(){return typeof sessionStorage!="undefined"}var fs=ur()?(ss(),Ze(is)).default:(cs(),Ze(as)).default,Ts=ur()?(ps(),Ze(ls)).default:[],ys=ur()?(gs(),Ze(ms)).default:e=>e;dr();var L=(0,vn.configureStore)({reducer:fs,middleware:e=>e({serializableCheck:{ignoredActions:[...Ts,nn.type,rn.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(es)}),xs=(0,hs.createSubscription)(L),Af=ys(L),vf=(0,vn.configureStore)({reducer:Ne});n();n();var xl=require("@multiversx/sdk-core/out");n();k();n();var ws=require("@multiversx/sdk-core");W();n();var Ss=require("@multiversx/sdk-core");function Sl(e){try{let t=new Ss.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function Ve(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&Sl(e)}n();n();n();var bn=require("@multiversx/sdk-core"),mr=v(require("bignumber.js"));z();var In={tokenId:"",amount:""},As=e=>e.split("@").map((l,p)=>[2,3].includes(p)?l:st(l));function En(e){if(!e)return In;let t=e.startsWith("ESDTTransfer"),r=e.startsWith("ESDTNFTTransfer")&&e.includes("@"),o=e.startsWith("ESDTNFTBurn")&&e.includes("@");if(t){let[,i,l]=e.split("@");try{let p=s.Buffer.from(i,"hex").toString("ascii");if(!p)return In;let d=new mr.default("0x"+l.replace("0x","")).toString(10);return{tokenId:p,amount:d}}catch(p){console.error("Error getting token from transaction data",p)}}if(r)try{let[,i,l,p,d]=As(e);if([i,l,p,d].every(m=>Boolean(m))&&Ve(new bn.Address(d).bech32()))return{tokenId:`${i}-${l}`,amount:new mr.default(p,16).toString(10),collection:i,nonce:l,receiver:new bn.Address(d).bech32()}}catch(i){}if(o)try{let[,i,l,p]=As(e);if([i,l,p].every(d=>Boolean(d)))return{tokenId:`${i}-${l}`,amount:new mr.default(p,16).toString(10),collection:i,nonce:l}}catch(i){}return In}n();n();n();var lt="accounts";n();n();n();n();G();n();n();G();n();n();n();var El=v(require("bignumber.js"));k();n();var bl=require("@multiversx/sdk-core"),kn=v(require("bignumber.js"));k();n();var vl=v(require("bignumber.js"));n();kn.default.config({ROUNDING_MODE:kn.default.ROUND_FLOOR});n();n();n();k();n();n();n();n();k();n();k();n();var kl=require("@multiversx/sdk-core");k();n();var ut=require("@multiversx/sdk-core"),Nl=require("@multiversx/sdk-network-providers"),Pl=v(require("bignumber.js"));k();n();n();var Ll=v(require("bignumber.js"));k();n();k();n();n();n();n();n();n();k();n();k();n();k();n();G();var Dl=["reDelegateRewards","claimRewards","unBond"],Cl=["wrapEgld","unwrapEgld"],_l=["unStake"],Ol=["unDelegate"];n();n();n();k();n();var Ul=v(require("bignumber.js"));n();n();G();n();var Bl=v(require("bignumber.js"));n();n();n();function Es({tokenId:e,erdLabel:t}){return Boolean(e&&e!==t)}n();var Pn=v(require("bignumber.js"));W();n();var ks=(e,t)=>{let r=[],o=e.indexOf(t,0);for(;o>=0;)r.push(o),o=e.indexOf(t,o+1);return r};function Ls(e){let t=[],r=0;try{if((e==null?void 0:e.startsWith("MultiESDTNFTTransfer"))&&(e==null?void 0:e.includes("@"))){let[,o,i,...l]=e==null?void 0:e.split("@");if(o){let p=new Pn.default(i,16).toNumber(),d=0;for(let T=0;T<p;T++){let w={type:"nftTransaction",data:"",receiver:o};for(let S=0;S<3;S++){switch(S){case 0:w.token=st(l[d]),w.data=l[d];break;case 1:{let E=l[d]&&l[d].length?l[d]:"";E&&E!=="00"?w.nonce=E:w.type="esdtTransaction",w.data=`${w.data}@${l[d]}`;break}case 2:w.amount=new Pn.default(l[d],16).toString(10),w.data=`${w.data}@${l[d]}`;break;default:break}r=d+1,d++}t[T]=w}let m=t.length!==p,g=t.some(T=>ks(T.data,"@").length!==2),f=t.some(T=>T.data.startsWith("@"));if(m||g||f)return[];if(l[r]){let T=l[r];for(let w=r+1;w<l.length;w++)T+="@"+l[w];t[p]={type:"scCall",data:T,receiver:o}}}}}catch(o){return console.error("failed parsing tx",o),t}return t}n();n();n();z();function fr(e){let r=Object.getPrototypeOf(e).toPlainObject!=null?e:lr(e),o=A(y({},r.toPlainObject()),{hash:r.getHash().hex(),senderUsername:r.getSenderUsername().valueOf(),receiverUsername:r.getReceiverUsername().valueOf(),status:"pending"});return at({data:o.data,onlySetGuardian:!0})&&(delete o.senderUsername,delete o.receiverUsername),o}n();var Rs=require("@multiversx/sdk-web-wallet-provider");k();n();var Ps=v(require("qs"));n();n();n();n();n();var Pe=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined";var F=()=>{if(!Pe())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:t,hash:r,origin:o,href:i,search:l}}=window;return{pathname:t,hash:r,origin:o,href:i,search:l}};var Rn=(e="")=>{let t=F(),r=e.startsWith("http")||e.startsWith("www.");return!t.origin||e.startsWith(t.origin)||r?e:`${t.origin}/${e.replace("/","")}`};n();var Tr=e=>{let t=new URLSearchParams(e).toString(),{pathname:r,hash:o}=F(),i=t?`?${t}`:"",l=r?`${r}${i}${o}`:"./";setTimeout(()=>{window==null||window.history.replaceState({},document==null?void 0:document.title,l)})};n();var Wl={search:Pe()?window.location.search:"",removeParams:[]},Ns=(e,t=Wl)=>{var p;let r={},o=Pe()?window.location.search:"",i=(p=t.search)!=null?p:o;if(i){let d=i?new URLSearchParams(i):[];r=Object.fromEntries(d)}let l={};return e.forEach(d=>{l[d]=r[d],delete r[d]}),t.removeParams!=null&&Object.keys(r).forEach(d=>{var g,f;let[m]=d.split("[");(((g=t.removeParams)==null?void 0:g.includes(d))||((f=t.removeParams)==null?void 0:f.includes(m)))&&delete r[d]}),{remainingParams:l,params:r,clearNavigationHistory:()=>Tr(r)}};var yr=({removeParams:e,search:t})=>{let r=Pe()?window.location.search:"",o=t!=null?t:r;if(!o)return{};let i=Ps.default.parse(o.replace("?","")),l=Object.keys(i).filter(d=>!e.includes(d)),{remainingParams:p}=Ns(l,{search:t,removeParams:e});return Tr(p),p};var Ds=({transaction:e,search:t})=>yr({removeParams:[...Object.keys(e),Rs.WALLET_PROVIDER_CALLBACK_PARAM,xe,Ct],search:t});n();n();n();n();G();n();n();n();var Vl=v(require("linkifyjs"));n();k();n();var $l=v(require("bignumber.js"));n();W();n();n();z();n();z();n();n();n();G();n();G();n();var Hl=v(require("bignumber.js"));k();G();n();G();n();var _s=require("react");W();n();n();G();n();n();var ql=require("@multiversx/sdk-core/out"),jl=v(require("bignumber.js"));G();n();W();n();n();W();var Uw=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Os=require("react");W();n();var Kl=require("react");G();var jw=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];fn();var xr=e=>e.transactions,dt=h(xr,e=>e.signedTransactions),CA=h(xr,e=>e.signTransactionsError),Ms=h(xr,e=>e.signTransactionsCancelMessage),Sr=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),_A=h(dt,Sr(bi)),OA=h(dt,Sr(er)),MA=h(dt,Sr(tr)),FA=h(dt,Sr(ki)),wr=h(xr,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:A(y({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>lr(r)))||[]})}),UA=h(dt,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function Us(e){return I(this,null,function*(){let{network:{apiAddress:t,apiTimeout:r}}=me(L.getState()),{data:o}=yield Fs.default.get(`/${lt}/${e}`,{baseURL:t,timeout:Number(r)});return o})}n();n();var Bs=require("react"),$e=require("react-redux");var Yl={store:L,subscription:xs},Dn=(0,Bs.createContext)(Yl),rv=(0,$e.createStoreHook)(Dn),Se=(0,$e.createDispatchHook)(Dn),D=(0,$e.createSelectorHook)(Dn);var Gs=()=>D(Bi);n();n();n();n();var Vs=require("@multiversx/sdk-extension-provider"),$s=require("@multiversx/sdk-hw-provider"),Hs=require("@multiversx/sdk-opera-provider"),Cn=require("@multiversx/sdk-web-wallet-provider");k();z();n();var Ws=He;var Xl="/dapp/init",qe=e=>{switch(e==null?void 0:e.constructor){case Cn.WalletProvider:return"wallet";case Ws:return"walletconnectv2";case $s.HWProvider:return"ledger";case Vs.ExtensionProvider:return"extension";case Hs.OperaProvider:return"opera";case He:return"";default:return"extra"}},qs=e=>new Cn.WalletProvider(`${e}${Xl}`),js=e=>I(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===Uo}}),Te=e=>`Unable to perform ${e}, Provider not initialized`,He=class{init(){return Promise.resolve(!1)}login(t){throw new Error(Te(`login with options: ${t}`))}logout(t){throw new Error(Te(`logout with options: ${t}`))}getAddress(){throw new Error(Te("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(Te(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(Te(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(Te(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(Te(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(Te(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(Te(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},_n=new He;var zs=_n;function Ks(e){zs=e}function q(){return zs||_n}var je=()=>{let e=q(),t=qe(e);return{provider:e,providerType:t}};n();var De=require("react"),Ce=require("@multiversx/sdk-core");k();n();var mt=require("react");var Ys={tokenId:"",amount:"",type:"",multiTxData:"",receiver:""};function Xs({transactions:e}){let[t,r]=(0,mt.useState)({}),[o,i]=(0,mt.useState)([]);function l(m,g){r(f=>A(y({},f),{[m]:g}))}function p(m,g){return t==null?Ys:m in t?t[m]:g!=null&&String(g)in t?t[g]:Ys}function d(){if(e&&e.length>0){let m=[];e.forEach((g,f)=>{let T=g.getData().toString(),w=Ls(T);if(w.length>0)w.forEach((S,E)=>{let C={transaction:g,multiTxData:S.data,transactionIndex:E};l(S.data,{tokenId:S.token?S.token:"",amount:S.amount?S.amount:"",type:S.type,nonce:S.nonce?S.nonce:"",multiTxData:S.data,receiver:S.receiver}),m.push(C)});else{let S=g.getData().toString(),{tokenId:E,amount:C}=En(S);E&&l(S,{tokenId:E,amount:C,receiver:g.getReceiver().bech32()}),m.push({transaction:g,transactionIndex:f,multiTxData:S})}}),i(m)}}return(0,mt.useEffect)(()=>{d()},[e==null?void 0:e.length]),{parsedTransactionsByDataField:t,getTxInfoByDataField:p,allTransactions:o}}n();n();var Zs=v(require("axios"));n();n();var On=e=>{let t=e!=null?e:qi(L.getState());return t.endsWith("/")?t.slice(0,-1):t};var Js=e=>{let r=`${On()}/${lt}/${e}?withGuardianInfo=true`;return Zs.default.get(r)};function Qs(e){return I(this,null,function*(){if(!e)return null;try{let{data:t}=yield Js(e);return t}catch(t){console.error("error fetching configuration for ",e)}return null})}function ze(e){return I(this,null,function*(){return yield Qs(e)})}sn();n();n();var ea=(e,t)=>e?e.address===t||e.activeGuardianAddress===t:!0;n();function ta(e){let t=wr(L.getState()),r=Object.keys(e).length===(t==null?void 0:t.transactions.length);return e&&(e&&r)}n();n();function Mn(e){let t=L.getState(),r=Gi(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}n();n();var ra=({accountNonce:e,transactionNonce:t})=>t&&t>e?t:e;var na=({latestNonce:e,transactions:t})=>t.length===0?t:t.map((r,o)=>{let i=e+o,l=r.getNonce().valueOf(),p=ra({accountNonce:i,transactionNonce:l});return r.setNonce(p),r});var oa=()=>{let e=D(Ee);return t=>I(void 0,null,function*(){let r=yield ze(e),o=Mn(r);return na({latestNonce:o,transactions:t})})};n();var Ar=({transactions:e,isGuarded:t})=>t?e.every(o=>Boolean(o.getGuardianSignature().toString("hex"))):!0;n();n();n();Je();n();var Zl=v(require("axios"));n();var Jl=v(require("axios"));n();Je();n();Je();function Fn(e){return _o[e]}k();var ia=({transactions:e,hasGuardianScreen:t,callbackRoute:r,sessionId:o,walletAddress:i,isGuarded:l})=>{let p=Ar({isGuarded:l,transactions:e});return{needs2FaSigning:l?!t&&!p&&o:!1,sendTransactionsToGuardian:()=>{let g=e[0].getChainID().valueOf(),f=Fn(g),T=i!=null?i:be[f].walletAddress,w=qs(T),S={[xe]:String(o)},{origin:E}=F(),C=window!=null&&window.location?`${E}${r}`:`${r}`,b=Ji({callbackUrl:C,urlParams:S});w.guardTransactions(e,{callbackUrl:encodeURIComponent(b)})}}};n();n();n();var ua=require("react"),Gn=require("@multiversx/sdk-hw-provider");n();n();var sa=()=>{let{search:e}=F(),t=new URLSearchParams(e),r=Object.fromEntries(t),o=r==null?void 0:r.address;return Ve(o)?o:null};n();n();function aa(){let e=q();return qe(e)}n();z();n();function Re(e){return aa()===e}function vr(){let e=L.getState(),t=q(),r=Ee(e),o=ke(e),i=Vi(e);if(!t)throw"provider not initialized";return Re("ledger")&&o?new Promise(l=>{l(r)}):!Re("")&&!Re("wallet")&&!Re("extra")?t.getAddress():new Promise(l=>{let p=sa();i!=null&&p&&l(p),o&&l(r),l("")})}n();var ca=()=>{let{search:e}=F(),t=new URLSearchParams(e),r=Object.fromEntries(t);return r==null?void 0:r.accessToken};n();H();W();n();K();n();K();n();var la=require("@multiversx/sdk-core");n();H();W();n();function pa(){return ke(L.getState())}Ht();Qe();Ue();var Ql=e=>{let t=ie.local.getItem(Z.logoutEvent),{data:r}=t?JSON.parse(t):{data:e};e===r&&(ie.local.setItem({key:Z.logoutEvent,data:e,expires:0}),ie.local.removeItem(Z.logoutEvent))};function Bn(o,i){return I(this,arguments,function*(e,t,r=Boolean(ca())){let l=pa(),p=q(),d=qe(p),m=d==="wallet";if(r&&(p==null?void 0:p.relogin)!=null)return yield p.relogin();if(m){if(!l)return;si()}let g=Rn(e);L.dispatch(P());try{let f=yield vr();Ql(f)}catch(f){return console.error("error fetching logout address",f),Un(g,t)}if(!p||d==="")return Un(g,t);try{m?yield p.logout({callbackUrl:g}):(yield p.logout({callbackUrl:g}),Un(g,t))}catch(f){console.error("error logging out",f)}})}function Un(e,t,r){e&&!r&&(typeof t=="function"?t(e):ot({url:e}))}var da=()=>{let e=D($i),t=D(ke),r=D(Wi),o=q(),[i,l]=(0,ua.useState)(),p=()=>I(void 0,null,function*(){let m=(r==null?void 0:r.index)!=null;try{if(o instanceof Gn.HWProvider&&o.isInitialized())return m&&(yield o.setAddressIndex(r.index)),o;let g=new Gn.HWProvider;return(yield g.init())?(m&&(yield g.setAddressIndex(r.index)),g):null}catch(g){return console.error("Failed to initialise Ledger Provider"),null}});function d(m){return I(this,null,function*(){let g,f=t&&!(m!=null&&m.isRelogin);try{if(g=yield p(),!g){console.warn("Could not initialise ledger app"),f&&Bn(e);return}let T=yield js(g);return Ks(g),l(T),g}catch(T){console.error("Could not initialise ledger app",T),f&&Bn(e)}return null})}return{setLedgerProvider:d,ledgerData:i}};var ma=()=>{let{provider:e}=je(),{setLedgerProvider:t}=da();return function(){return I(this,null,function*(){let o;try{let l=yield e.getAddress();o=Boolean(l)}catch(l){o=!1}if(o)return e;let i=yield t({isRelogin:!0});return i||e})}};var Ir={};function ga({isLedger:e=!1,transactionsToSign:t,egldLabel:r,address:o,activeGuardianAddress:i,hasGuardianScreen:l,onCancel:p,onSignTransaction:d,onTransactionsSignError:m,onTransactionsSignSuccess:g,onGetScamAddressData:f}){var St,wt,At;let T=Boolean(i),[w,S]=(0,De.useState)(0),[E,C]=(0,De.useState)(),[b,X]=(0,De.useState)(null),[$,_]=(0,De.useState)(!1),{getTxInfoByDataField:ye,allTransactions:U}=Xs({transactions:i?t==null?void 0:t.map(N=>{N.setSender(Ce.Address.fromBech32(o)),N.setVersion(Ce.TransactionVersion.withTxOptions()),N.setGuardian(Ce.Address.fromBech32(i));let O=y({guarded:!0},e?{hashSign:!0}:{});return N.setOptions(Ce.TransactionOptions.withOptions(O)),N}):t}),Q=w===U.length-1;(0,De.useEffect)(()=>{br()},[w,U]);function br(){return I(this,null,function*(){var qn;let N=U[w];if(N==null)return;let{transaction:O,multiTxData:Ye,transactionIndex:vt}=N,Hn=O.getData().toString(),he=ye(O.getData().toString(),Ye),{tokenId:It}=he,le=O.getReceiver().toString(),ba=O.getSender().toString(),Ea=yield ze(ba);if(!ea(Ea,o))return console.error(xo),p==null?void 0:p();let ka=o!==le,La=le in Ir;if(ka&&!La&&f!=null){let bt=yield f(le);Ir=y(y({},Ir),bt!=null&&bt.scamInfo?{[le]:bt.scamInfo}:{})}let Na=Boolean(It&&Es({tokenId:It,erdLabel:r}));X({transaction:O,receiverScamInfo:((qn=Ir[le])==null?void 0:qn.info)||null,transactionTokenInfo:he,isTokenTransaction:Na,dataField:Hn,transactionIndex:vt})})}function ft(){S(0),C(void 0),_(!1)}function Tt(){return I(this,null,function*(){if(b==null)return;_(e);let N;try{N=yield d(b.transaction)}catch(he){console.error(he,"sign error");let{message:It}=he,le=e?ui(he).errorMessage:null;return ft(),m(le!=null?le:It)}let O={[w]:N},Ye=E?y(y({},E),O):O;if(C(Ye),!Q){S(he=>he+1),_(!1);return}if(!Ye)return;let vt=Object.values(Ye);!Ar({isGuarded:T,transactions:vt})&&l||(g(vt),ft())})}function yt(){try{if(b==null)return;if(b.transaction.getSignature().toString("hex")&&!Q){S(O=>O+1);return}Tt()}catch(N){Tt()}}let Er=w===0;function kr(){Er?p==null||p():S(N=>N-1)}let ht=Boolean(((St=b==null?void 0:b.transactionTokenInfo)==null?void 0:St.type)&&((wt=b==null?void 0:b.transactionTokenInfo)==null?void 0:wt.multiTxData)&&!(b!=null&&b.dataField.endsWith((At=b==null?void 0:b.transactionTokenInfo)==null?void 0:At.multiTxData)));function xt(){ht?S(N=>N+1):yt()}function ce(){S(N=>{let O=N+1;return O>(U==null?void 0:U.length)?N:O})}function Lr(){S(N=>{let O=N-1;return O<0?N:O})}return{allTransactions:U,onSignTransaction:xt,onNext:ce,onPrev:Lr,waitingForDevice:$,onAbort:kr,isLastTransaction:Q,isFirstTransaction:w===0,hasMultipleTransactions:U.length>1,shouldContinueWithoutSigning:ht,currentStep:w,signedTransactions:E,setSignedTransactions:C,currentTransaction:b}}K();W();Ht();n();Vr();K();function fa(){let e=Se();return t=>{e(rr()),e(Zt(t)),e(Be(Dt))}}n();var Ke=require("react"),$n=require("@multiversx/sdk-extension-provider");n();n();var Wn=()=>D(We);n();n();n();n();n();var gt=v(require("react"));var kb=(0,gt.createContext)({}),Lb=L.getState();n();var ya=v(require("react"));n();var Vn=v(require("react")),ep=v(require("axios"));n();n();n();var tp=require("react"),rp=v(require("swr"));n();var ha=require("react"),xa=require("@multiversx/sdk-web-wallet-provider"),Sa=require("@multiversx/sdk-web-wallet-provider"),wa=v(require("qs"));k();K();z();zr();function Aa(e){let{search:t}=F(),r=D(Le),o=Se();(0,ha.useEffect)(()=>{if(t!=null){let i=wa.default.parse(t.replace("?",""));if(i&&xe in i){let l=String(i[xe]),p=new xa.WalletProvider(`${r.walletAddress}${Bo}`).getTransactionsFromWalletUrl();if(i.status==="cancelled"){o(Ge({sessionId:l,status:"cancelled"})),e(),yr({removeParams:[...Object.keys(jr),Sa.WALLET_PROVIDER_CALLBACK_PARAM,xe,"address"],search:t}),o(Be(Dt));return}if(p.length>0){o(Ge({sessionId:l,status:"signed",transactions:p.map(m=>fr(m))}));let[d]=p;Ds({transaction:d,search:t})}}}},[t])}K();var va=()=>{let e=Se(),{provider:t}=je(),{nonce:r}=Wn(),[o,i]=(0,Ke.useState)(null),[l,p]=(0,Ke.useState)(),[d,m]=(0,Ke.useState)([]),g=oa(),f=D(wr),T=D(Ms),w=()=>I(void 0,null,function*(){var $;let b=Boolean(f==null?void 0:f.transactions),X=($=f==null?void 0:f.transactions)!=null?$:[];if(b){let _=yield g(X);m(_)}p(b)});(0,Ke.useEffect)(()=>{w()},[f,r]);let S=()=>{i(null),e(Be(null))},E=b=>{S(),C(b)};Aa(E);function C(b){var $,_;let X=t instanceof $n.ExtensionProvider;e(rr()),e(Zt(b)),X&&(S(),(_=($=$n.ExtensionProvider.getInstance())==null?void 0:$.cancelAction)==null||_.call($))}return{error:o,canceledTransactionsMessage:T,clearTransactionStatusMessage:S,onAbort:E,setError:i,hasTransactions:l,transactionsToSign:f&&A(y({},f),{transactions:d})}};function np(e){let{onCancel:t,verifyReceiverScam:r=!0,hasGuardianScreen:o}=e,{transactionsToSign:i,hasTransactions:l}=va(),p=D(zi),d=ma(),m=D(Ki),{account:g}=Gs(),{address:f,isGuarded:T,activeGuardianAddress:w}=g,{provider:S,providerType:E}=je(),C=Se(),b=fa(),[X,$]=(0,Ia.useState)(),{transactions:_,sessionId:ye,callbackRoute:U,customTransactionInformation:Q}=i||{};function br(ce){ye&&C(Ge({sessionId:ye,status:"cancelled"})),C(Ri(ce))}let{pathname:ft}=F(),Tt=U!=null&&ft.includes(U),yt=!(Q!=null&&Q.skipGuardian);function Er(ce){if(!ta(ce))return;let{needs2FaSigning:St,sendTransactionsToGuardian:wt}=ia({transactions:ce,sessionId:ye,callbackRoute:U,hasGuardianScreen:o,isGuarded:T&&yt,walletAddress:p});if(St)return $(!0),wt();ye&&(C(Ge({sessionId:ye,status:"signed",transactions:ce.map(At=>fr(At))})),U!=null&&(Q==null?void 0:Q.redirectAfterSign)&&!Tt&&ot({url:U}))}function kr(){t(),b(ye)}function ht(ce){return I(this,null,function*(){return yield(E!=="ledger"?S:yield d()).signTransaction(ce)})}let xt=ga({address:f,egldLabel:m,activeGuardianAddress:T&&yt?w:void 0,transactionsToSign:l?_:[],onGetScamAddressData:r?Us:null,isLedger:Re("ledger"),hasGuardianScreen:o,onCancel:kr,onSignTransaction:ht,onTransactionsSignError:br,onTransactionsSignSuccess:Er});return A(y({},xt),{callbackRoute:U,waitingForDevice:X!=null?X:xt.waitingForDevice})}0&&(module.exports={useSignTransactionsWithDevice});
|
|
1
|
+
"use strict";var Pa=Object.create;var Xe=Object.defineProperty,Ra=Object.defineProperties,Da=Object.getOwnPropertyDescriptor,Ca=Object.getOwnPropertyDescriptors,_a=Object.getOwnPropertyNames,Et=Object.getOwnPropertySymbols,Oa=Object.getPrototypeOf,Nr=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable;var jn=(e,t,r)=>t in e?Xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,y=(e,t)=>{for(var r in t||(t={}))Nr.call(t,r)&&jn(e,r,t[r]);if(Et)for(var r of Et(t))zn.call(t,r)&&jn(e,r,t[r]);return e},A=(e,t)=>Ra(e,Ca(t));var Pr=(e,t)=>{var r={};for(var o in e)Nr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Et)for(var o of Et(e))t.indexOf(o)<0&&zn.call(e,o)&&(r[o]=e[o]);return r};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var kt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),we=(e,t)=>{for(var r in t)Xe(e,r,{get:t[r],enumerable:!0})},Kn=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of _a(t))!Nr.call(e,i)&&i!==r&&Xe(e,i,{get:()=>t[i],enumerable:!(o=Da(t,i))||o.enumerable});return e};var v=(e,t,r)=>(r=e!=null?Pa(Oa(e)):{},Kn(t||!e||!e.__esModule?Xe(r,"default",{value:e,enumerable:!0}):r,e)),Ze=e=>Kn(Xe({},"__esModule",{value:!0}),e);var I=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(g){i(g)}},p=m=>{try{d(r.throw(m))}catch(g){i(g)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var Zn=kt(Lt=>{"use strict";n();Lt.byteLength=Fa;Lt.toByteArray=Ba;Lt.fromByteArray=Va;var ee=[],j=[],Ma=typeof Uint8Array!="undefined"?Uint8Array:Array,Rr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Ae=0,Yn=Rr.length;Ae<Yn;++Ae)ee[Ae]=Rr[Ae],j[Rr.charCodeAt(Ae)]=Ae;var Ae,Yn;j["-".charCodeAt(0)]=62;j["_".charCodeAt(0)]=63;function Xn(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 Fa(e){var t=Xn(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Ua(e,t,r){return(t+r)*3/4-r}function Ba(e){var t,r=Xn(e),o=r[0],i=r[1],l=new Ma(Ua(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=j[e.charCodeAt(m)]<<18|j[e.charCodeAt(m+1)]<<12|j[e.charCodeAt(m+2)]<<6|j[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=j[e.charCodeAt(m)]<<2|j[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=j[e.charCodeAt(m)]<<10|j[e.charCodeAt(m+1)]<<4|j[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Ga(e){return ee[e>>18&63]+ee[e>>12&63]+ee[e>>6&63]+ee[e&63]}function Wa(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(Ga(o));return i.join("")}function Va(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(Wa(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(ee[t>>2]+ee[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(ee[t>>10]+ee[t>>4&63]+ee[t<<2&63]+"=")),i.join("")}});var Jn=kt(Dr=>{n();Dr.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,g=m>>1,f=-7,T=r?i-1:0,w=r?-1:1,S=e[t+T];for(T+=w,l=S&(1<<-f)-1,S>>=-f,f+=d;f>0;l=l*256+e[t+T],T+=w,f-=8);for(p=l&(1<<-f)-1,l>>=-f,f+=o;f>0;p=p*256+e[t+T],T+=w,f-=8);if(l===0)l=1-g;else{if(l===m)return p?NaN:(S?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-g}return(S?-1:1)*p*Math.pow(2,l-o)};Dr.write=function(e,t,r,o,i,l){var p,d,m,g=l*8-i-1,f=(1<<g)-1,T=f>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=o?0:l-1,E=o?1:-1,C=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*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+T>=1?t+=w/m:t+=w*Math.pow(2,1-T),t*m>=2&&(p++,m/=2),p+T>=f?(d=0,p=f):p+T>=1?(d=(t*m-1)*Math.pow(2,i),p=p+T):(d=t*Math.pow(2,T-1)*Math.pow(2,i),p=0));i>=8;e[r+S]=d&255,S+=E,d/=256,i-=8);for(p=p<<i|d,g+=i;g>0;e[r+S]=p&255,S+=E,p/=256,g-=8);e[r+S-E]|=C*128}});var uo=kt(Oe=>{"use strict";n();var Cr=Zn(),_e=Jn(),Qn=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Oe.Buffer=u;Oe.SlowBuffer=Ka;Oe.INSPECT_MAX_BYTES=50;var Nt=2147483647;Oe.kMaxLength=Nt;u.TYPED_ARRAY_SUPPORT=$a();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function $a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function pe(e){if(e>Nt)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Fr(e)}return ro(e,t,r)}u.poolSize=8192;function ro(e,t,r){if(typeof e=="string")return qa(e,t);if(ArrayBuffer.isView(e))return ja(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 Or(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=za(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return ro(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function no(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 Ha(e,t,r){return no(e),e<=0?pe(e):t!==void 0?typeof r=="string"?pe(e).fill(t,r):pe(e).fill(t):pe(e)}u.alloc=function(e,t,r){return Ha(e,t,r)};function Fr(e){return no(e),pe(e<0?0:Ur(e)|0)}u.allocUnsafe=function(e){return Fr(e)};u.allocUnsafeSlow=function(e){return Fr(e)};function qa(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=oo(e,t)|0,o=pe(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function _r(e){for(var t=e.length<0?0:Ur(e.length)|0,r=pe(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function ja(e){if(te(e,Uint8Array)){var t=new Uint8Array(e);return Or(t.buffer,t.byteOffset,t.byteLength)}return _r(e)}function Or(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function za(e){if(u.isBuffer(e)){var t=Ur(e.length)|0,r=pe(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Br(e.length)?pe(0):_r(e);if(e.type==="Buffer"&&Array.isArray(e.data))return _r(e.data)}function Ur(e){if(e>=Nt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Nt.toString(16)+" bytes");return e|0}function Ka(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(te(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),te(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(te(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function oo(e,t){if(u.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 Mr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return po(e).length;default:if(i)return o?-1:Mr(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=oo;function Ya(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 ic(this,t,r);case"utf8":case"utf-8":return so(this,t,r);case"ascii":return nc(this,t,r);case"latin1":case"binary":return oc(this,t,r);case"base64":return tc(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return sc(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function ve(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)ve(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)ve(this,r,r+3),ve(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)ve(this,r,r+7),ve(this,r+1,r+6),ve(this,r+2,r+5),ve(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?so(this,0,t):Ya.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=Oe.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Qn&&(u.prototype[Qn]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(te(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,d=o-r,m=Math.min(p,d),g=this.slice(i,l),f=t.slice(r,o),T=0;T<m;++T)if(g[T]!==f[T]){p=g[T],d=f[T];break}return p<d?-1:d<p?1:0};function io(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,Br(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:eo(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):eo(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function eo(e,t,r,o,i){var l=1,p=e.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,d/=2,r/=2}function m(S,E){return l===1?S[E]:S.readUInt16BE(E*l)}var g;if(i){var f=-1;for(g=r;g<p;g++)if(m(e,g)===m(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 T=!0,w=0;w<d;w++)if(m(e,g+w)!==m(t,w)){T=!1;break}if(T)return g}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return io(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return io(this,t,r,o,!1)};function Xa(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(Br(d))return p;e[r+p]=d}return p}function Za(e,t,r,o){return Pt(Mr(t,e.length-r),e,r,o)}function Ja(e,t,r,o){return Pt(lc(t),e,r,o)}function Qa(e,t,r,o){return Pt(po(t),e,r,o)}function ec(e,t,r,o){return Pt(pc(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return Xa(this,t,r,o);case"utf8":case"utf-8":return Za(this,t,r,o);case"ascii":case"latin1":case"binary":return Ja(this,t,r,o);case"base64":return Qa(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ec(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function tc(e,t,r){return t===0&&r===e.length?Cr.fromByteArray(e):Cr.fromByteArray(e.slice(t,r))}function so(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,g,f,T;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(T=(l&31)<<6|m&63,T>127&&(p=T));break;case 3:m=e[i+1],g=e[i+2],(m&192)===128&&(g&192)===128&&(T=(l&15)<<12|(m&63)<<6|g&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:m=e[i+1],g=e[i+2],f=e[i+3],(m&192)===128&&(g&192)===128&&(f&192)===128&&(T=(l&15)<<18|(m&63)<<12|(g&63)<<6|f&63,T>65535&&T<1114112&&(p=T))}}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 rc(o)}var to=4096;function rc(e){var t=e.length;if(t<=to)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=to));return r}function nc(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 oc(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 ic(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+=uc[e[l]];return i}function sc(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function M(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||M(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||M(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||M(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||M(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||M(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||M(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||M(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||M(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||M(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||M(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||M(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||M(t,4,this.length),_e.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||M(t,4,this.length),_e.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||M(t,8,this.length),_e.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||M(t,8,this.length),_e.read(this,t,!1,52,8)};function B(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;B(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;B(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);B(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);B(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||B(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||B(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 ao(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 co(e,t,r,o,i){return t=+t,r=r>>>0,i||ao(e,t,r,4,34028234663852886e22,-34028234663852886e22),_e.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return co(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return co(this,t,r,!1,o)};function lo(e,t,r,o,i){return t=+t,r=r>>>0,i||ao(e,t,r,8,17976931348623157e292,-17976931348623157e292),_e.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return lo(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return lo(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var ac=/[^+/0-9A-Za-z-_]/g;function cc(e){if(e=e.split("=")[0],e=e.trim().replace(ac,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Mr(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 lc(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function pc(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 po(e){return Cr.toByteArray(cc(e))}function Pt(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 Br(e){return e!==e}var uc=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=kt((pp,To)=>{n();var R=To.exports={},re,ne;function Gr(){throw new Error("setTimeout has not been defined")}function Wr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?re=setTimeout:re=Gr}catch(e){re=Gr}try{typeof clearTimeout=="function"?ne=clearTimeout:ne=Wr}catch(e){ne=Wr}})();function mo(e){if(re===setTimeout)return setTimeout(e,0);if((re===Gr||!re)&&setTimeout)return re=setTimeout,setTimeout(e,0);try{return re(e,0)}catch(t){try{return re.call(null,e,0)}catch(r){return re.call(this,e,0)}}}function dc(e){if(ne===clearTimeout)return clearTimeout(e);if((ne===Wr||!ne)&&clearTimeout)return ne=clearTimeout,clearTimeout(e);try{return ne(e)}catch(t){try{return ne.call(null,e)}catch(r){return ne.call(this,e)}}}var ue=[],Me=!1,Ie,Rt=-1;function mc(){!Me||!Ie||(Me=!1,Ie.length?ue=Ie.concat(ue):Rt=-1,ue.length&&go())}function go(){if(!Me){var e=mo(mc);Me=!0;for(var t=ue.length;t;){for(Ie=ue,ue=[];++Rt<t;)Ie&&Ie[Rt].run();Rt=-1,t=ue.length}Ie=null,Me=!1,dc(e)}}R.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];ue.push(new fo(e,t)),ue.length===1&&!Me&&mo(go)};function fo(e,t){this.fun=e,this.array=t}fo.prototype.run=function(){this.fun.apply(null,this.array)};R.title="browser";R.browser=!0;R.env={};R.argv=[];R.version="";R.versions={};function de(){}R.on=de;R.addListener=de;R.once=de;R.off=de;R.removeListener=de;R.removeAllListeners=de;R.emit=de;R.prependListener=de;R.prependOnceListener=de;R.listeners=function(e){return[]};R.binding=function(e){throw new Error("process.binding is not supported")};R.cwd=function(){return"/"};R.chdir=function(e){throw new Error("process.chdir is not supported")};R.umask=function(){return 0}});var s,a,up,n=x(()=>{s=v(uo()),a=v(yo()),up=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 ho=x(()=>{"use strict";n()});var Dt,xo,Vr=x(()=>{"use strict";n();Dt="Transaction canceled",xo="You cannot sign transactions from a different account"});var So=x(()=>{"use strict";n()});var $r,wo=x(()=>{"use strict";n();$r=(o=>(o.SetGuardian="SetGuardian",o.GuardAccount="GuardAccount",o.UnGuardAccount="UnGuardAccount",o))($r||{})});var Ao=x(()=>{"use strict";n()});var Hr,qr=x(()=>{"use strict";n();Hr={36864:{code:"codeSuccess",message:"Success"},27013:{code:"ERR_USER_DENIED",message:"Rejected by user"},27904:{code:"ERR_UNKNOWN_INSTRUCTION",message:"Unknown instruction"},28160:{code:"ERR_WRONG_CLA",message:"Wrong CLA"},28161:{code:"ERR_INVALID_ARGUMENTS",message:"Invalid arguments"},28162:{code:"ERR_INVALID_MESSAGE",message:"Invalid message"},28163:{code:"ERR_INVALID_P1",message:"Invalid P1"},28164:{code:"ERR_MESSAGE_TOO_LONG",message:"Message too long"},28165:{code:"ERR_RECEIVER_TOO_LONG",message:"Receiver too long"},28166:{code:"ERR_AMOUNT_TOO_LONG",message:"Amount too long"},28167:{code:"ERR_CONTRACT_DATA_DISABLED",message:"Contract data disabled in app options"},28168:{code:"ERR_MESSAGE_INCOMPLETE",message:"Message incomplete"},28176:{code:"ERR_SIGNATURE_FAILED",message:"Signature failed"},28169:{code:"ERR_WRONG_TX_VERSION",message:"Wrong TX version"},28170:{code:"ERR_NONCE_TOO_LONG",message:"Nonce too long"},28171:{code:"ERR_INVALID_AMOUNT",message:"Invalid amount"},28172:{code:"ERR_INVALID_FEE",message:"Invalid fee"},28173:{code:"ERR_PRETTY_FAILED",message:"Pretty failed"},28174:{code:"ERR_DATA_TOO_LONG",message:"Data too long"},28175:{code:"ERR_WRONG_TX_OPTIONS",message:"Invalid transaction options"},28177:{code:"ERR_SIGN_TX_DEPRECATED",message:"Regular transaction signing is deprecated in this version. Use hash signing."}}});var vo=x(()=>{"use strict";n()});var jr,zr=x(()=>{"use strict";n();jr=(i=>(i.signature="signature",i.sessionId="sessionId",i.status="status",i.address="address",i))(jr||{})});var Io=x(()=>{"use strict";n()});var bo=x(()=>{"use strict";n()});var z=x(()=>{"use strict";n()});var Eo=x(()=>{"use strict";n()});var ko=x(()=>{"use strict";n()});var G=x(()=>{"use strict";n()});var Lo=x(()=>{"use strict";n()});var No=x(()=>{"use strict";n()});var Po=x(()=>{"use strict";n()});var W=x(()=>{"use strict";n();zr();Io();bo();z();Eo();ko();G();Lo();No();Po()});var be,Ro,Fp,Do,Up,Co,Bp,Gp,_o,Je=x(()=>{"use strict";n();W();be={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Ro,egldLabel:Fp}=be["devnet"],{chainId:Do,egldLabel:Up}=be["testnet"],{chainId:Co,egldLabel:Bp}=be["mainnet"],Gp={["devnet"]:Ro,["testnet"]:Do,["mainnet"]:Co},_o={[Ro]:"devnet",[Do]:"testnet",[Co]:"mainnet"}});var Oo=x(()=>{"use strict";n()});var oe,Mo=x(()=>{"use strict";n();oe=require("@multiversx/sdk-web-wallet-provider")});var Kr,Yr,Fo,Uo,Bo,xe,Ct,_t,Go,Fe,k=x(()=>{"use strict";n();ho();Vr();So();wo();Ao();qr();vo();Je();Oo();Mo();Kr=5e4,Yr=1e9,Fo=1,Uo=1,Bo="/dapp/init",xe="signSession",Ct="sdk-dapp-version",_t="logout",Go="login",Fe="0"});var Ot,Xr=x(()=>{"use strict";n();Ot=()=>Date.now()/1e3});var Wo=x(()=>{"use strict";n()});var Vo=x(()=>{"use strict";n()});var $o=x(()=>{"use strict";n();Xr();Wo();Vo()});var Zr={};we(Zr,{clear:()=>yc,getItem:()=>fc,localStorageKeys:()=>Z,removeItem:()=>Tc,setItem:()=>gc});var Z,Mt,gc,fc,Tc,yc,Ue=x(()=>{"use strict";n();$o();Z={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Mt=typeof localStorage!="undefined",gc=({key:e,data:t,expires:r})=>{!Mt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},fc=e=>{if(!Mt)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:Ot()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Tc=e=>{!Mt||localStorage.removeItem(String(e))},yc=()=>{!Mt||localStorage.clear()}});var Jr={};we(Jr,{clear:()=>zo,getItem:()=>qo,removeItem:()=>jo,setItem:()=>Ho,storage:()=>hc});var Ho,qo,jo,zo,hc,Ko=x(()=>{"use strict";n();Ho=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},qo=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},jo=e=>sessionStorage.removeItem(String(e)),zo=()=>sessionStorage.clear(),hc={setItem:Ho,getItem:qo,removeItem:jo,clear:zo}});var ie,Qe=x(()=>{"use strict";n();Ue();Ko();ie={session:Jr,local:Zr}});var Qr,P,et,H=x(()=>{"use strict";n();Qr=require("@reduxjs/toolkit");k();P=(0,Qr.createAction)(_t),et=(0,Qr.createAction)(Go,e=>({payload:e}))});var tn,Yo,Xo,Ft,en,Zo,rn,hu,nn,xu,Su,wu,Au,vu,Iu,bu,Eu,Ut,Bt=x(()=>{"use strict";n();tn=require("@multiversx/sdk-core"),Yo=require("@reduxjs/toolkit"),Xo=require("redux-persist");k();Qe();Ue();H();Ft={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:Fe},en={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":Ft},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Zo=(0,Yo.createSlice)({name:"accountInfoSlice",initialState:en,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new tn.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Ft},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(P,()=>(ie.local.removeItem(Z.loginExpiresAt),en)),e.addCase(et,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new tn.Address(o).hex()}),e.addCase(Xo.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 m=p&&i in p;t.accounts=m?p:en.accounts,t.publicKey=d})}}),{setAccount:rn,setAddress:hu,setAccountNonce:nn,setAccountShard:xu,setLedgerAccount:Su,updateLedgerAccount:wu,setWalletConnectAccount:Au,setIsAccountLoading:vu,setAccountLoadingError:Iu,setWebsocketEvent:bu,setWebsocketBatchEvent:Eu}=Zo.actions,Ut=Zo.reducer});function tt(){return new Date().setHours(new Date().getHours()+24)}function rt(e){ie.local.setItem({key:Z.loginExpiresAt,data:e,expires:e})}var on=x(()=>{"use strict";n();Qe();Ue()});var Qo,Jo,ei,Mu,Fu,Uu,Bu,Gu,Wu,ti,Vu,Gt,Wt=x(()=>{"use strict";n();Qo=require("@reduxjs/toolkit");on();z();H();Jo={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},ei=(0,Qo.createSlice)({name:"loginInfoSlice",initialState:Jo,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(P,()=>Jo),e.addCase(et,(t,r)=>{t.isLoginSessionInvalid=!1,t.loginMethod=r.payload.loginMethod,rt(tt())})}}),{setLoginMethod:Mu,setWalletConnectLogin:Fu,setLedgerLogin:Uu,setTokenLogin:Bu,setTokenLoginSignature:Gu,setWalletLogin:Wu,invalidateLoginSession:ti,setLogoutRoute:Vu}=ei.actions,Gt=ei.reducer});var ni,ri,oi,ju,zu,Ku,Yu,Vt,$t=x(()=>{"use strict";n();ni=require("@reduxjs/toolkit");H();ri={},oi=(0,ni.createSlice)({name:"modalsSlice",initialState:ri,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(P,()=>ri)}}),{setTxSubmittedModal:ju,setNotificationModal:zu,clearTxSubmittedModal:Ku,clearNotificationModal:Yu}=oi.actions,Vt=oi.reducer});var ii,si,ot,Ht=x(()=>{"use strict";n();ii=!1,si=(e=!0)=>{ii=e},ot=({timeout:e=0,url:t})=>{ii||setTimeout(()=>{if(!!window)return window.location.assign(t)},e)}});var ai=x(()=>{"use strict";n();Ht()});function ci(e){return e[Math.floor(Math.random()*e.length)]}var li=x(()=>{"use strict";n()});function ui(e){let t=null;if((e==null?void 0:e.statusCode)in Hr){let r=e==null?void 0:e.statusCode,{message:o}=Hr[r];t=wc.includes(r)?pi:o}return{errorMessage:t,defaultErrorMessage:pi}}var pi,xc,Sc,wc,sn=x(()=>{"use strict";n();qr();pi="Check if the MultiversX app is open on Ledger",xc=28161,Sc=28160,wc=[xc,Sc]});var di=x(()=>{"use strict";n();ai();li();sn()});var mi,gi,fi,an,Ac,Ti,pd,ud,dd,qt,jt=x(()=>{"use strict";n();mi=require("@reduxjs/toolkit"),gi=v(require("lodash.omit")),fi=require("redux-persist");H();di();an={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Ac={network:an,chainID:"-1"},Ti=(0,mi.createSlice)({name:"appConfig",initialState:Ac,reducers:{initializeNetworkConfig:(e,t)=>{let r=ci(t.payload.walletConnectV2RelayAddresses),o=(0,gi.default)(t.payload,"walletConnectV2RelayAddresses");e.network=A(y(y({},e.network),o),{walletConnectV2RelayAddress:r})},setChainID:(e,t)=>{e.chainID=t.payload},setCustomWalletAddress:(e,t)=>{e.network.customWalletAddress=t.payload}},extraReducers:e=>{e.addCase(P,t=>{t.network.customWalletAddress=void 0}),e.addCase(fi.REHYDRATE,(t,r)=>{var i,l;if(!((l=(i=r.payload)==null?void 0:i.network)!=null&&l.customWalletAddress))return;let{network:{customWalletAddress:o}}=r.payload;t.network.customWalletAddress=o})}}),{initializeNetworkConfig:pd,setChainID:ud,setCustomWalletAddress:dd}=Ti.actions,qt=Ti.reducer});var yi,cn,hi,hd,xd,Sd,zt,Kt=x(()=>{"use strict";n();yi=require("@reduxjs/toolkit");W();H();cn={isSigning:!1,signedSessions:{}},hi=(0,yi.createSlice)({name:"signedMessageInfoSliceState",initialState:cn,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=o},setSignSessionState:(e,t)=>y(y({},e),t.payload),clearSignedMessageInfo:()=>cn},extraReducers:e=>{e.addCase(P,()=>cn)}}),{setSignSession:hd,clearSignedMessageInfo:xd,setSignSessionState:Sd}=hi.actions,zt=hi.reducer});var Si,wi,xi,Ai,kd,Ld,Nd,Pd,Yt,Xt=x(()=>{"use strict";n();Si=require("@reduxjs/toolkit"),wi=require("redux-persist");W();Xr();H();xi={customToasts:[],transactionToasts:[]},Ai=(0,Si.createSlice)({name:"toastsSlice",initialState:xi,reducers:{addCustomToast:(e,t)=>{let r=t.payload.toastId||`custom-toast-${e.customToasts.length+1}`,o=e.customToasts.findIndex(i=>i.toastId===r);if(o!==-1){e.customToasts[o]=A(y(y({},e.customToasts[o]),t.payload),{type:"custom",toastId:r});return}e.customToasts.push(A(y({},t.payload),{type:"custom",toastId:r}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Ot(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)}},extraReducers:e=>{e.addCase(P,()=>xi),e.addCase(wi.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:kd,removeCustomToast:Ld,addTransactionToast:Nd,removeTransactionToast:Pd}=Ai.actions,Yt=Ai.reducer});var vi,pn,un,dn,vc,ln,Ii,_d,Od,Zt,Jt,Qt=x(()=>{"use strict";n();vi=require("@reduxjs/toolkit");H();pn="Transaction failed",un="Transaction successful",dn="Processing transaction",vc="Transaction submitted",ln={},Ii=(0,vi.createSlice)({name:"transactionsInfo",initialState:ln,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||pn,successMessage:(o==null?void 0:o.successMessage)||un,processingMessage:(o==null?void 0:o.processingMessage)||dn,submittedMessage:(o==null?void 0:o.submittedMessage)||vc,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>ln},extraReducers:e=>{e.addCase(P,()=>ln)}}),{clearTransactionsInfo:_d,setTransactionsDisplayInfo:Od,clearTransactionsInfoForSessionId:Zt}=Ii.actions,Jt=Ii.reducer});function bi(e){return e!=null&&(Cc(e)||Uc(e))}function er(e){return e!=null&&(_c(e)||Bc(e))}function tr(e){return e!=null&&(Oc(e)||Gc(e))}function Ei(e){return e!=null&&(Mc(e)||Wc(e))}function ki(e){return e!=null&&Fc(e)}function Cc(e){return e!=null&&Ic.includes(e)}function _c(e){return e!=null&&bc.includes(e)}function Oc(e){return e!=null&&Ec.includes(e)}function Mc(e){return e!=null&&kc.includes(e)}function Fc(e){return e!=null&&Lc.includes(e)}function Uc(e){return e!=null&&Nc.includes(e)}function Bc(e){return e!=null&&Pc.includes(e)}function Gc(e){return e!=null&&Rc.includes(e)}function Wc(e){return e!=null&&Dc.includes(e)}var Ic,bc,Ec,kc,Lc,Nc,Pc,Rc,Dc,fn=x(()=>{"use strict";n();z();Ic=["sent"],bc=["success"],Ec=["fail","cancelled","timedOut"],kc=["invalid"],Lc=["timedOut"],Nc=["pending"],Pc=["success"],Rc=["fail","invalid"],Dc=["not executed"]});var Li,Ni,it,Vc,Pi,Hd,qd,jd,rr,zd,Kd,Yd,Ri,Be,Ge,Xd,nr,or=x(()=>{"use strict";n();Li=require("@reduxjs/toolkit"),Ni=require("redux-persist");z();fn();H();it={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Vc={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Pi=(0,Li.createSlice)({name:"transactionsSlice",initialState:it,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,g;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p,customTransactionInformation:d}=t.payload;e.customTransactionInformationForSessionId[r]=y(y(y({},Vc),((m=e.signedTransactions[r])==null?void 0:m.customTransactionInformation)||{}),e.customTransactionInformationForSessionId[r]||{}),e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:y(y({},e.customTransactionInformationForSessionId[r]),d!=null?d:{})},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===r&&(e.transactionsToSign=it.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 m,g,f,T,w,S,E,C;let{sessionId:r,status:o,errorMessage:i,transactionHash:l,inTransit:p}=t.payload,d=(g=(m=e.signedTransactions)==null?void 0:m[r])==null?void 0:g.transactions;if(d!=null){e.signedTransactions[r].transactions=d.map(_=>_.hash===l?A(y({},_),{status:o,errorMessage:i,inTransit:p}):_);let b=(T=(f=e.signedTransactions[r])==null?void 0:f.transactions)==null?void 0:T.every(_=>er(_.status)),X=(S=(w=e.signedTransactions[r])==null?void 0:w.transactions)==null?void 0:S.every(_=>tr(_.status)),$=(C=(E=e.signedTransactions[r])==null?void 0:E.transactions)==null?void 0:C.every(_=>Ei(_.status));b&&(e.signedTransactions[r].status="success"),X&&(e.signedTransactions[r].status="fail"),$&&(e.signedTransactions[r].status="invalid")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=it.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=it.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload},updateSignedTransactionsCustomTransactionInformation:(e,t)=>{let{sessionId:r,customTransactionInformationOverrides:o}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].customTransactionInformation=y(y({},e.signedTransactions[r].customTransactionInformation),o))}},extraReducers:e=>{e.addCase(P,()=>it),e.addCase(Ni.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((d,[m,g])=>{let f=new Date(m),T=new Date;return T.setHours(T.getHours()+5),T-f>0||(d[m]=g),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Hd,updateSignedTransactions:qd,setTransactionsToSign:jd,clearAllTransactionsToSign:rr,clearAllSignedTransactions:zd,clearSignedTransaction:Kd,clearTransactionToSign:Yd,setSignTransactionsError:Ri,setSignTransactionsCancelMessage:Be,moveTransactionsToSignedState:Ge,updateSignedTransactionsCustomTransactionInformation:Xd}=Pi.actions,nr=Pi.reducer});var Di,Tn,Ci,em,tm,rm,nm,ir,sr=x(()=>{"use strict";n();Di=require("@reduxjs/toolkit");H();Tn={},Ci=(0,Di.createSlice)({name:"batchTransactionsSlice",initialState:Tn,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>Tn},extraReducers:e=>{e.addCase(P,()=>Tn)}}),{setBatchTransactions:em,updateBatchTransactions:tm,clearBatchTransactions:rm,clearAllBatchTransactions:nm}=Ci.actions,ir=Ci.reducer});var Oi,_i,Mi,am,Fi,yn=x(()=>{"use strict";n();Oi=require("@reduxjs/toolkit");H();_i={},Mi=(0,Oi.createSlice)({name:"dappConfigSlice",initialState:_i,reducers:{setDappConfig:(e,t)=>t.payload},extraReducers:e=>{e.addCase(P,()=>_i)}}),{setDappConfig:am}=Mi.actions,Fi=Mi.reducer});var K=x(()=>{"use strict";n();Bt();Wt();$t();jt();Kt();Xt();Qt();or();sr();yn()});var wn=x(()=>{"use strict";n()});var ts,Zc,Jc,Ne,dr=x(()=>{"use strict";n();ts=require("@reduxjs/toolkit");wn();Bt();sr();yn();Wt();$t();jt();Kt();Xt();Qt();or();Zc={["account"]:Ut,["dappConfig"]:Fi,["loginInfo"]:Gt,["modals"]:Vt,["networkConfig"]:qt,["signedMessageInfo"]:zt,["toasts"]:Yt,["transactionsInfo"]:Jt,["transactions"]:nr,["batchTransactions"]:ir},Jc=(e={})=>(0,ts.combineReducers)(y(y({},Zc),e)),Ne=Jc});var is={};we(is,{default:()=>gl,sessionStorageReducers:()=>An});function ge(e,t=[]){return{key:e,version:1,storage:ns.default,blacklist:t}}var V,rs,ns,Qc,ct,el,tl,rl,nl,ol,il,sl,al,cl,ll,os,pl,An,ul,dl,ml,gl,ss=x(()=>{"use strict";n();V=require("redux-persist"),rs=v(require("redux-persist/lib/storage")),ns=v(require("redux-persist/lib/storage/session"));dr();K();Bt();sr();Wt();$t();jt();Kt();Xt();Qt();or();wn();Qc={persistReducersStorageType:"localStorage"},ct={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},el=ge(ct["account"]),tl=ge(ct["loginInfo"]),rl=ge(ct["modals"]),nl=ge(ct["networkConfig"]),ol={2:e=>A(y({},e),{networkConfig:an})};il=ge("sdk-dapp-transactionsInfo"),sl=ge("sdk-dapp-transactions",["transactionsToSign"]),al=ge("sdk-dapp-batchTransactions",["batchTransactions"]),cl=ge("sdk-dapp-toasts"),ll=ge("sdk-dapp-signedMessageInfo"),os={key:"sdk-dapp-store",version:2,storage:rs.default,whitelist:Object.keys(ct),migrate:(0,V.createMigrate)(ol,{debug:!1})},pl=A(y({},os),{whitelist:[]}),An={["toasts"]:(0,V.persistReducer)(cl,Yt),["transactions"]:(0,V.persistReducer)(sl,nr),["transactionsInfo"]:(0,V.persistReducer)(il,Jt),["batchTransactions"]:(0,V.persistReducer)(al,ir),["signedMessageInfo"]:(0,V.persistReducer)(ll,zt)},ul=A(y({},An),{["account"]:(0,V.persistReducer)(el,Ut),["loginInfo"]:(0,V.persistReducer)(tl,Gt),["modals"]:(0,V.persistReducer)(rl,Vt),["networkConfig"]:(0,V.persistReducer)(nl,qt)}),dl=Qc.persistReducersStorageType==="localStorage",ml=dl?(0,V.persistReducer)(os,Ne(An)):(0,V.persistReducer)(pl,Ne(ul)),gl=ml});var as={};we(as,{default:()=>fl});var fl,cs=x(()=>{"use strict";n();dr();fl=Ne()});var ls={};we(ls,{default:()=>yl});var Y,Tl,yl,ps=x(()=>{"use strict";n();Y=require("redux-persist"),Tl=[Y.FLUSH,Y.REHYDRATE,Y.PAUSE,Y.PERSIST,Y.PURGE,Y.REGISTER],yl=Tl});var ms={};we(ms,{default:()=>ds});function ds(e){return(0,us.persistStore)(e)}var us,gs=x(()=>{"use strict";n();us=require("redux-persist")});var op={};we(op,{useSignTransactionsWithDevice:()=>np});module.exports=Ze(op);n();var Ia=require("react");n();var Fs=v(require("axios"));n();n();K();n();var Ui=v(require("lodash.isequal")),ar=require("reselect"),h=(0,ar.createSelectorCreator)(ar.defaultMemoize,Ui.default);var se=e=>e.account,Ee=h(se,e=>e.address),We=h(se,Ee,(e,t)=>t in e.accounts?e.accounts[t]:Ft),Bi=h(se,We,(e,t)=>{let i=e,{accounts:r}=i,o=Pr(i,["accounts"]);return A(y({},o),{account:t})}),vm=h(We,e=>e.balance),Gi=h(We,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Im=h(se,e=>e.shard),bm=h(se,e=>e.ledgerAccount),Em=h(se,e=>e.walletConnectAccount),km=h(se,e=>e.isAccountLoading),Lm=h(se,e=>e.accountLoadingError),$c=h(se,e=>e.websocketEvent),Nm=h(se,e=>e.websocketBatchEvent);n();var Hc=e=>e.dappConfig,Dm=h(Hc,e=>e.shouldUseWebViewProvider);n();var J=e=>e.loginInfo,Mm=h(J,e=>e.loginMethod),ke=h(J,Ee,(e,t)=>Boolean(t)),Fm=h(J,e=>e.walletConnectLogin),Wi=h(J,e=>e.ledgerLogin),Vi=h(J,e=>e.walletLogin),Um=h(J,e=>e.isLoginSessionInvalid),Bm=h(J,e=>e.tokenLogin),$i=h(J,e=>e.logoutRoute);n();var Hi=e=>e.modals,Vm=h(Hi,e=>e.txSubmittedModal),$m=h(Hi,e=>e.notificationModal);n();var me=e=>e.networkConfig,jm=h(me,e=>e.chainID),zm=h(me,e=>e.network.walletConnectBridgeAddress),Km=h(me,e=>e.network.walletConnectV2RelayAddress),Ym=h(me,e=>e.network.walletConnectV2ProjectId),Xm=h(me,e=>e.network.walletConnectV2Options),Zm=h(me,e=>e.network.walletConnectDeepLink),Le=h(me,e=>e.network),qi=h(Le,e=>e.apiAddress),ji=h(Le,e=>e.explorerAddress),zi=h(Le,e=>{var t;return(t=e.customWalletAddress)!=null?t:e.walletAddress}),Jm=h(Le,e=>e.xAliasAddress),Ki=h(Le,e=>e.egldLabel);n();var cr=e=>e.signedMessageInfo,tg=h(cr,e=>e.isSigning),rg=h(cr,e=>e.errorMessage),ng=h(cr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),og=h(cr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var Yi=e=>e.toasts,ag=h(Yi,e=>e.customToasts),cg=h(Yi,e=>e.transactionToasts);n();K();var Xi={errorMessage:pn,successMessage:un,processingMessage:dn},qc=e=>e.transactionsInfo,dg=h(qc,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Xi);n();n();var ae=require("@multiversx/sdk-core");k();n();var Sn=require("@multiversx/sdk-core/out");n();n();function hn(e){try{let t=atob(e),r=btoa(t),o=s.Buffer.from(e,"base64").toString(),i=s.Buffer.from(o).toString("base64");if(e===r&&e===i||t===o)return!0}catch(t){return!1}return!1}n();n();function xn(e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>127)return!1;return!0}function st(e){let t=e;try{let r=s.Buffer.from(e,"hex").toString();xn(r)&&r.length>1&&(t=r)}catch(r){}return t}n();n();var Zi=e=>{let t=e!=null?e:"";return hn(t)?Sn.TransactionPayload.fromEncoded(t):new Sn.TransactionPayload(t)};n();k();var at=({data:e,onlySetGuardian:t})=>e?t?e.startsWith("SetGuardian"):Object.values($r).some(r=>e.startsWith(r)):!1;function lr(e){var o,i,l;let t=Object.assign({},e);at({data:t.data,onlySetGuardian:!0})&&(delete t.senderUsername,delete t.receiverUsername);let r=new ae.Transaction(y(y(A(y(A(y({value:t.value.valueOf(),data:Zi(t.data),nonce:t.nonce.valueOf(),receiver:new ae.Address(t.receiver)},t.receiverUsername?{receiverUsername:t.receiverUsername}:{}),{sender:new ae.Address(t.sender)}),t.senderUsername?{senderUsername:t.senderUsername}:{}),{gasLimit:(o=t.gasLimit.valueOf())!=null?o:Kr,gasPrice:(i=t.gasPrice.valueOf())!=null?i:Yr,chainID:t.chainID.valueOf(),version:new ae.TransactionVersion((l=t.version)!=null?l:Fo)}),t.options?{options:new ae.TransactionOptions(t.options)}:{}),t.guardian?{guardian:new ae.Address(t.guardian)}:{}));return t.guardianSignature&&r.applyGuardianSignature(s.Buffer.from(t.guardianSignature,"hex")),t.signature&&r.applySignature(s.Buffer.from(t.signature,"hex")),r}n();n();k();function jc(e,t){let r=new URLSearchParams(e),o=Object.fromEntries(r);return{nextUrlParams:new URLSearchParams(y(y({},o),t)).toString(),params:o}}var zc="2.24.4";function Ji({callbackUrl:e,urlParams:t={}}){let r=e;if(Object.entries(t).length>0)try{let{search:o,origin:i,pathname:l,hash:p}=new URL(e),d=A(y({},t),{[Ct]:zc}),{nextUrlParams:m}=jc(o,d);r=`${i}${l}?${m}${p}`}catch(o){return console.error("Unable to construct URL from: ",e,o),r}return r}n();n();var vn=require("@reduxjs/toolkit"),hs=require("react-redux/lib/utils/Subscription");K();n();var Qi=v(require("lodash.throttle"));k();K();on();Qe();Ue();var Kc=[_t],pr=!1,Yc=(0,Qi.default)(()=>{rt(tt())},5e3),es=e=>t=>r=>{if(Kc.includes(r.type))return t(r);let o=e.getState(),i=ie.local.getItem(Z.loginExpiresAt);if(!Boolean(o==null?void 0:o.account.address))return t(r);if(i==null)return rt(tt());let p=Date.now();return i-p<0&&!pr?setTimeout(()=>{pr=!0,e.dispatch(ti())},1e3):(pr&&(pr=!1),Yc()),t(r)};n();n();function ur(){return typeof sessionStorage!="undefined"}var fs=ur()?(ss(),Ze(is)).default:(cs(),Ze(as)).default,Ts=ur()?(ps(),Ze(ls)).default:[],ys=ur()?(gs(),Ze(ms)).default:e=>e;dr();var L=(0,vn.configureStore)({reducer:fs,middleware:e=>e({serializableCheck:{ignoredActions:[...Ts,nn.type,rn.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(es)}),xs=(0,hs.createSubscription)(L),Af=ys(L),vf=(0,vn.configureStore)({reducer:Ne});n();n();var xl=require("@multiversx/sdk-core/out");n();k();n();var ws=require("@multiversx/sdk-core");W();n();var Ss=require("@multiversx/sdk-core");function Sl(e){try{let t=new Ss.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function Ve(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&Sl(e)}n();n();n();var bn=require("@multiversx/sdk-core"),mr=v(require("bignumber.js"));z();var In={tokenId:"",amount:""},As=e=>e.split("@").map((l,p)=>[2,3].includes(p)?l:st(l));function En(e){if(!e)return In;let t=e.startsWith("ESDTTransfer"),r=e.startsWith("ESDTNFTTransfer")&&e.includes("@"),o=e.startsWith("ESDTNFTBurn")&&e.includes("@");if(t){let[,i,l]=e.split("@");try{let p=s.Buffer.from(i,"hex").toString("ascii");if(!p)return In;let d=new mr.default("0x"+l.replace("0x","")).toString(10);return{tokenId:p,amount:d}}catch(p){console.error("Error getting token from transaction data",p)}}if(r)try{let[,i,l,p,d]=As(e);if([i,l,p,d].every(m=>Boolean(m))&&Ve(new bn.Address(d).bech32()))return{tokenId:`${i}-${l}`,amount:new mr.default(p,16).toString(10),collection:i,nonce:l,receiver:new bn.Address(d).bech32()}}catch(i){}if(o)try{let[,i,l,p]=As(e);if([i,l,p].every(d=>Boolean(d)))return{tokenId:`${i}-${l}`,amount:new mr.default(p,16).toString(10),collection:i,nonce:l}}catch(i){}return In}n();n();n();var lt="accounts";n();n();n();n();G();n();n();G();n();n();n();var El=v(require("bignumber.js"));k();n();var bl=require("@multiversx/sdk-core"),kn=v(require("bignumber.js"));k();n();var vl=v(require("bignumber.js"));n();kn.default.config({ROUNDING_MODE:kn.default.ROUND_FLOOR});n();n();n();k();n();n();n();n();k();n();k();n();var kl=require("@multiversx/sdk-core");k();n();var ut=require("@multiversx/sdk-core"),Nl=require("@multiversx/sdk-network-providers"),Pl=v(require("bignumber.js"));k();n();n();var Ll=v(require("bignumber.js"));k();n();k();n();n();n();n();n();n();k();n();k();n();k();n();G();var Dl=["reDelegateRewards","claimRewards","unBond"],Cl=["wrapEgld","unwrapEgld"],_l=["unStake"],Ol=["unDelegate"];n();n();n();k();n();var Ul=v(require("bignumber.js"));n();n();G();n();var Bl=v(require("bignumber.js"));n();n();n();function Es({tokenId:e,erdLabel:t}){return Boolean(e&&e!==t)}n();var Pn=v(require("bignumber.js"));W();n();var ks=(e,t)=>{let r=[],o=e.indexOf(t,0);for(;o>=0;)r.push(o),o=e.indexOf(t,o+1);return r};function Ls(e){let t=[],r=0;try{if((e==null?void 0:e.startsWith("MultiESDTNFTTransfer"))&&(e==null?void 0:e.includes("@"))){let[,o,i,...l]=e==null?void 0:e.split("@");if(o){let p=new Pn.default(i,16).toNumber(),d=0;for(let T=0;T<p;T++){let w={type:"nftTransaction",data:"",receiver:o};for(let S=0;S<3;S++){switch(S){case 0:w.token=st(l[d]),w.data=l[d];break;case 1:{let E=l[d]&&l[d].length?l[d]:"";E&&E!=="00"?w.nonce=E:w.type="esdtTransaction",w.data=`${w.data}@${l[d]}`;break}case 2:w.amount=new Pn.default(l[d],16).toString(10),w.data=`${w.data}@${l[d]}`;break;default:break}r=d+1,d++}t[T]=w}let m=t.length!==p,g=t.some(T=>ks(T.data,"@").length!==2),f=t.some(T=>T.data.startsWith("@"));if(m||g||f)return[];if(l[r]){let T=l[r];for(let w=r+1;w<l.length;w++)T+="@"+l[w];t[p]={type:"scCall",data:T,receiver:o}}}}}catch(o){return console.error("failed parsing tx",o),t}return t}n();n();n();z();function fr(e){let r=Object.getPrototypeOf(e).toPlainObject!=null?e:lr(e),o=A(y({},r.toPlainObject()),{hash:r.getHash().hex(),senderUsername:r.getSenderUsername().valueOf(),receiverUsername:r.getReceiverUsername().valueOf(),status:"pending"});return at({data:o.data,onlySetGuardian:!0})&&(delete o.senderUsername,delete o.receiverUsername),o}n();var Rs=require("@multiversx/sdk-web-wallet-provider");k();n();var Ps=v(require("qs"));n();n();n();n();n();var Pe=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined";var F=()=>{if(!Pe())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:t,hash:r,origin:o,href:i,search:l}}=window;return{pathname:t,hash:r,origin:o,href:i,search:l}};var Rn=(e="")=>{let t=F(),r=e.startsWith("http")||e.startsWith("www.");return!t.origin||e.startsWith(t.origin)||r?e:`${t.origin}/${e.replace("/","")}`};n();var Tr=e=>{let t=new URLSearchParams(e).toString(),{pathname:r,hash:o}=F(),i=t?`?${t}`:"",l=r?`${r}${i}${o}`:"./";setTimeout(()=>{window==null||window.history.replaceState({},document==null?void 0:document.title,l)})};n();var Wl={search:Pe()?window.location.search:"",removeParams:[]},Ns=(e,t=Wl)=>{var p;let r={},o=Pe()?window.location.search:"",i=(p=t.search)!=null?p:o;if(i){let d=i?new URLSearchParams(i):[];r=Object.fromEntries(d)}let l={};return e.forEach(d=>{l[d]=r[d],delete r[d]}),t.removeParams!=null&&Object.keys(r).forEach(d=>{var g,f;let[m]=d.split("[");(((g=t.removeParams)==null?void 0:g.includes(d))||((f=t.removeParams)==null?void 0:f.includes(m)))&&delete r[d]}),{remainingParams:l,params:r,clearNavigationHistory:()=>Tr(r)}};var yr=({removeParams:e,search:t})=>{let r=Pe()?window.location.search:"",o=t!=null?t:r;if(!o)return{};let i=Ps.default.parse(o.replace("?","")),l=Object.keys(i).filter(d=>!e.includes(d)),{remainingParams:p}=Ns(l,{search:t,removeParams:e});return Tr(p),p};var Ds=({transaction:e,search:t})=>yr({removeParams:[...Object.keys(e),Rs.WALLET_PROVIDER_CALLBACK_PARAM,xe,Ct],search:t});n();n();n();n();G();n();n();n();var Vl=v(require("linkifyjs"));n();k();n();var $l=v(require("bignumber.js"));n();W();n();n();z();n();z();n();n();n();G();n();G();n();var Hl=v(require("bignumber.js"));k();G();n();G();n();var _s=require("react");W();n();n();G();n();n();var ql=require("@multiversx/sdk-core/out"),jl=v(require("bignumber.js"));G();n();W();n();n();W();var Uw=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Os=require("react");W();n();var Kl=require("react");G();var jw=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];fn();var xr=e=>e.transactions,dt=h(xr,e=>e.signedTransactions),CA=h(xr,e=>e.signTransactionsError),Ms=h(xr,e=>e.signTransactionsCancelMessage),Sr=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),_A=h(dt,Sr(bi)),OA=h(dt,Sr(er)),MA=h(dt,Sr(tr)),FA=h(dt,Sr(ki)),wr=h(xr,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:A(y({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>lr(r)))||[]})}),UA=h(dt,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function Us(e){return I(this,null,function*(){let{network:{apiAddress:t,apiTimeout:r}}=me(L.getState()),{data:o}=yield Fs.default.get(`/${lt}/${e}`,{baseURL:t,timeout:Number(r)});return o})}n();n();var Bs=require("react"),$e=require("react-redux");var Yl={store:L,subscription:xs},Dn=(0,Bs.createContext)(Yl),rv=(0,$e.createStoreHook)(Dn),Se=(0,$e.createDispatchHook)(Dn),D=(0,$e.createSelectorHook)(Dn);var Gs=()=>D(Bi);n();n();n();n();var Vs=require("@multiversx/sdk-extension-provider"),$s=require("@multiversx/sdk-hw-provider"),Hs=require("@multiversx/sdk-opera-provider"),Cn=require("@multiversx/sdk-web-wallet-provider");k();z();n();var Ws=He;var Xl="/dapp/init",qe=e=>{switch(e==null?void 0:e.constructor){case Cn.WalletProvider:return"wallet";case Ws:return"walletconnectv2";case $s.HWProvider:return"ledger";case Vs.ExtensionProvider:return"extension";case Hs.OperaProvider:return"opera";case He:return"";default:return"extra"}},qs=e=>new Cn.WalletProvider(`${e}${Xl}`),js=e=>I(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===Uo}}),Te=e=>`Unable to perform ${e}, Provider not initialized`,He=class{init(){return Promise.resolve(!1)}login(t){throw new Error(Te(`login with options: ${t}`))}logout(t){throw new Error(Te(`logout with options: ${t}`))}getAddress(){throw new Error(Te("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(Te(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(Te(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(Te(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(Te(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(Te(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(Te(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},_n=new He;var zs=_n;function Ks(e){zs=e}function q(){return zs||_n}var je=()=>{let e=q(),t=qe(e);return{provider:e,providerType:t}};n();var De=require("react"),Ce=require("@multiversx/sdk-core");k();n();var mt=require("react");var Ys={tokenId:"",amount:"",type:"",multiTxData:"",receiver:""};function Xs({transactions:e}){let[t,r]=(0,mt.useState)({}),[o,i]=(0,mt.useState)([]);function l(m,g){r(f=>A(y({},f),{[m]:g}))}function p(m,g){return t==null?Ys:m in t?t[m]:g!=null&&String(g)in t?t[g]:Ys}function d(){if(e&&e.length>0){let m=[];e.forEach((g,f)=>{let T=g.getData().toString(),w=Ls(T);if(w.length>0)w.forEach((S,E)=>{let C={transaction:g,multiTxData:S.data,transactionIndex:E};l(S.data,{tokenId:S.token?S.token:"",amount:S.amount?S.amount:"",type:S.type,nonce:S.nonce?S.nonce:"",multiTxData:S.data,receiver:S.receiver}),m.push(C)});else{let S=g.getData().toString(),{tokenId:E,amount:C}=En(S);E&&l(S,{tokenId:E,amount:C,receiver:g.getReceiver().bech32()}),m.push({transaction:g,transactionIndex:f,multiTxData:S})}}),i(m)}}return(0,mt.useEffect)(()=>{d()},[e==null?void 0:e.length]),{parsedTransactionsByDataField:t,getTxInfoByDataField:p,allTransactions:o}}n();n();var Zs=v(require("axios"));n();n();var On=e=>{let t=e!=null?e:qi(L.getState());return t.endsWith("/")?t.slice(0,-1):t};var Js=e=>{let r=`${On()}/${lt}/${e}?withGuardianInfo=true`;return Zs.default.get(r)};function Qs(e){return I(this,null,function*(){if(!e)return null;try{let{data:t}=yield Js(e);return t}catch(t){console.error("error fetching configuration for ",e)}return null})}function ze(e){return I(this,null,function*(){return yield Qs(e)})}sn();n();n();var ea=(e,t)=>e?e.address===t||e.activeGuardianAddress===t:!0;n();function ta(e){let t=wr(L.getState()),r=Object.keys(e).length===(t==null?void 0:t.transactions.length);return e&&(e&&r)}n();n();function Mn(e){let t=L.getState(),r=Gi(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}n();n();var ra=({accountNonce:e,transactionNonce:t})=>t&&t>e?t:e;var na=({latestNonce:e,transactions:t})=>t.length===0?t:t.map((r,o)=>{let i=e+o,l=r.getNonce().valueOf(),p=ra({accountNonce:i,transactionNonce:l});return r.setNonce(p),r});var oa=()=>{let e=D(Ee);return t=>I(void 0,null,function*(){let r=yield ze(e),o=Mn(r);return na({latestNonce:o,transactions:t})})};n();var Ar=({transactions:e,isGuarded:t})=>t?e.every(o=>Boolean(o.getGuardianSignature().toString("hex"))):!0;n();n();n();Je();n();var Zl=v(require("axios"));n();var Jl=v(require("axios"));n();Je();n();Je();function Fn(e){return _o[e]}k();var ia=({transactions:e,hasGuardianScreen:t,callbackRoute:r,sessionId:o,walletAddress:i,isGuarded:l})=>{let p=Ar({isGuarded:l,transactions:e});return{needs2FaSigning:l?!t&&!p&&o:!1,sendTransactionsToGuardian:()=>{let g=e[0].getChainID().valueOf(),f=Fn(g),T=i!=null?i:be[f].walletAddress,w=qs(T),S={[xe]:String(o)},{origin:E}=F(),C=window!=null&&window.location?`${E}${r}`:`${r}`,b=Ji({callbackUrl:C,urlParams:S});w.guardTransactions(e,{callbackUrl:encodeURIComponent(b)})}}};n();n();n();var ua=require("react"),Gn=require("@multiversx/sdk-hw-provider");n();n();var sa=()=>{let{search:e}=F(),t=new URLSearchParams(e),r=Object.fromEntries(t),o=r==null?void 0:r.address;return Ve(o)?o:null};n();n();function aa(){let e=q();return qe(e)}n();z();n();function Re(e){return aa()===e}function vr(){let e=L.getState(),t=q(),r=Ee(e),o=ke(e),i=Vi(e);if(!t)throw"provider not initialized";return Re("ledger")&&o?new Promise(l=>{l(r)}):!Re("")&&!Re("wallet")&&!Re("extra")?t.getAddress():new Promise(l=>{let p=sa();i!=null&&p&&l(p),o&&l(r),l("")})}n();var ca=()=>{let{search:e}=F(),t=new URLSearchParams(e),r=Object.fromEntries(t);return r==null?void 0:r.accessToken};n();H();W();n();K();n();K();n();var la=require("@multiversx/sdk-core");n();H();W();n();function pa(){return ke(L.getState())}Ht();Qe();Ue();var Ql=e=>{let t=ie.local.getItem(Z.logoutEvent),{data:r}=t?JSON.parse(t):{data:e};e===r&&(ie.local.setItem({key:Z.logoutEvent,data:e,expires:0}),ie.local.removeItem(Z.logoutEvent))};function Bn(o,i){return I(this,arguments,function*(e,t,r=Boolean(ca())){let l=pa(),p=q(),d=qe(p),m=d==="wallet";if(r&&(p==null?void 0:p.relogin)!=null)return yield p.relogin();if(m){if(!l)return;si()}let g=Rn(e);L.dispatch(P());try{let f=yield vr();Ql(f)}catch(f){return console.error("error fetching logout address",f),Un(g,t)}if(!p||d==="")return Un(g,t);try{m?yield p.logout({callbackUrl:g}):(yield p.logout({callbackUrl:g}),Un(g,t))}catch(f){console.error("error logging out",f)}})}function Un(e,t,r){e&&!r&&(typeof t=="function"?t(e):ot({url:e}))}var da=()=>{let e=D($i),t=D(ke),r=D(Wi),o=q(),[i,l]=(0,ua.useState)(),p=()=>I(void 0,null,function*(){let m=(r==null?void 0:r.index)!=null;try{if(o instanceof Gn.HWProvider&&o.isInitialized())return m&&(yield o.setAddressIndex(r.index)),o;let g=new Gn.HWProvider;return(yield g.init())?(m&&(yield g.setAddressIndex(r.index)),g):null}catch(g){return console.error("Failed to initialise Ledger Provider"),null}});function d(m){return I(this,null,function*(){let g,f=t&&!(m!=null&&m.isRelogin);try{if(g=yield p(),!g){console.warn("Could not initialise ledger app"),f&&Bn(e);return}let T=yield js(g);return Ks(g),l(T),g}catch(T){console.error("Could not initialise ledger app",T),f&&Bn(e)}return null})}return{setLedgerProvider:d,ledgerData:i}};var ma=()=>{let{provider:e}=je(),{setLedgerProvider:t}=da();return function(){return I(this,null,function*(){let o;try{let l=yield e.getAddress();o=Boolean(l)}catch(l){o=!1}if(o)return e;let i=yield t({isRelogin:!0});return i||e})}};var Ir={};function ga({isLedger:e=!1,transactionsToSign:t,egldLabel:r,address:o,activeGuardianAddress:i,hasGuardianScreen:l,onCancel:p,onSignTransaction:d,onTransactionsSignError:m,onTransactionsSignSuccess:g,onGetScamAddressData:f}){var St,wt,At;let T=Boolean(i),[w,S]=(0,De.useState)(0),[E,C]=(0,De.useState)(),[b,X]=(0,De.useState)(null),[$,_]=(0,De.useState)(!1),{getTxInfoByDataField:ye,allTransactions:U}=Xs({transactions:i?t==null?void 0:t.map(N=>{N.setSender(Ce.Address.fromBech32(o)),N.setVersion(Ce.TransactionVersion.withTxOptions()),N.setGuardian(Ce.Address.fromBech32(i));let O=y({guarded:!0},e?{hashSign:!0}:{});return N.setOptions(Ce.TransactionOptions.withOptions(O)),N}):t}),Q=w===U.length-1;(0,De.useEffect)(()=>{br()},[w,U]);function br(){return I(this,null,function*(){var qn;let N=U[w];if(N==null)return;let{transaction:O,multiTxData:Ye,transactionIndex:vt}=N,Hn=O.getData().toString(),he=ye(O.getData().toString(),Ye),{tokenId:It}=he,le=O.getReceiver().toString(),ba=O.getSender().toString(),Ea=yield ze(ba);if(!ea(Ea,o))return console.error(xo),p==null?void 0:p();let ka=o!==le,La=le in Ir;if(ka&&!La&&f!=null){let bt=yield f(le);Ir=y(y({},Ir),bt!=null&&bt.scamInfo?{[le]:bt.scamInfo}:{})}let Na=Boolean(It&&Es({tokenId:It,erdLabel:r}));X({transaction:O,receiverScamInfo:((qn=Ir[le])==null?void 0:qn.info)||null,transactionTokenInfo:he,isTokenTransaction:Na,dataField:Hn,transactionIndex:vt})})}function ft(){S(0),C(void 0),_(!1)}function Tt(){return I(this,null,function*(){if(b==null)return;_(e);let N;try{N=yield d(b.transaction)}catch(he){console.error(he,"sign error");let{message:It}=he,le=e?ui(he).errorMessage:null;return ft(),m(le!=null?le:It)}let O={[w]:N},Ye=E?y(y({},E),O):O;if(C(Ye),!Q){S(he=>he+1),_(!1);return}if(!Ye)return;let vt=Object.values(Ye);!Ar({isGuarded:T,transactions:vt})&&l||(g(vt),ft())})}function yt(){try{if(b==null)return;if(b.transaction.getSignature().toString("hex")&&!Q){S(O=>O+1);return}Tt()}catch(N){Tt()}}let Er=w===0;function kr(){Er?p==null||p():S(N=>N-1)}let ht=Boolean(((St=b==null?void 0:b.transactionTokenInfo)==null?void 0:St.type)&&((wt=b==null?void 0:b.transactionTokenInfo)==null?void 0:wt.multiTxData)&&!(b!=null&&b.dataField.endsWith((At=b==null?void 0:b.transactionTokenInfo)==null?void 0:At.multiTxData)));function xt(){ht?S(N=>N+1):yt()}function ce(){S(N=>{let O=N+1;return O>(U==null?void 0:U.length)?N:O})}function Lr(){S(N=>{let O=N-1;return O<0?N:O})}return{allTransactions:U,onSignTransaction:xt,onNext:ce,onPrev:Lr,waitingForDevice:$,onAbort:kr,isLastTransaction:Q,isFirstTransaction:w===0,hasMultipleTransactions:U.length>1,shouldContinueWithoutSigning:ht,currentStep:w,signedTransactions:E,setSignedTransactions:C,currentTransaction:b}}K();W();Ht();n();Vr();K();function fa(){let e=Se();return t=>{e(rr()),e(Zt(t)),e(Be(Dt))}}n();var Ke=require("react"),$n=require("@multiversx/sdk-extension-provider");n();n();var Wn=()=>D(We);n();n();n();n();n();var gt=v(require("react"));var kb=(0,gt.createContext)({}),Lb=L.getState();n();var ya=v(require("react"));n();var Vn=v(require("react")),ep=v(require("axios"));n();n();n();var tp=require("react"),rp=v(require("swr"));n();var ha=require("react"),xa=require("@multiversx/sdk-web-wallet-provider"),Sa=require("@multiversx/sdk-web-wallet-provider"),wa=v(require("qs"));k();K();z();zr();function Aa(e){let{search:t}=F(),r=D(Le),o=Se();(0,ha.useEffect)(()=>{if(t!=null){let i=wa.default.parse(t.replace("?",""));if(i&&xe in i){let l=String(i[xe]),p=new xa.WalletProvider(`${r.walletAddress}${Bo}`).getTransactionsFromWalletUrl();if(i.status==="cancelled"){o(Ge({sessionId:l,status:"cancelled"})),e(),yr({removeParams:[...Object.keys(jr),Sa.WALLET_PROVIDER_CALLBACK_PARAM,xe,"address"],search:t}),o(Be(Dt));return}if(p.length>0){o(Ge({sessionId:l,status:"signed",transactions:p.map(m=>fr(m))}));let[d]=p;Ds({transaction:d,search:t})}}}},[t])}K();var va=()=>{let e=Se(),{provider:t}=je(),{nonce:r}=Wn(),[o,i]=(0,Ke.useState)(null),[l,p]=(0,Ke.useState)(),[d,m]=(0,Ke.useState)([]),g=oa(),f=D(wr),T=D(Ms),w=()=>I(void 0,null,function*(){var $;let b=Boolean(f==null?void 0:f.transactions),X=($=f==null?void 0:f.transactions)!=null?$:[];if(b){let _=yield g(X);m(_)}p(b)});(0,Ke.useEffect)(()=>{w()},[f,r]);let S=()=>{i(null),e(Be(null))},E=b=>{S(),C(b)};Aa(E);function C(b){var $,_;let X=t instanceof $n.ExtensionProvider;e(rr()),e(Zt(b)),X&&(S(),(_=($=$n.ExtensionProvider.getInstance())==null?void 0:$.cancelAction)==null||_.call($))}return{error:o,canceledTransactionsMessage:T,clearTransactionStatusMessage:S,onAbort:E,setError:i,hasTransactions:l,transactionsToSign:f&&A(y({},f),{transactions:d})}};function np(e){let{onCancel:t,verifyReceiverScam:r=!0,hasGuardianScreen:o}=e,{transactionsToSign:i,hasTransactions:l}=va(),p=D(zi),d=ma(),m=D(Ki),{account:g}=Gs(),{address:f,isGuarded:T,activeGuardianAddress:w}=g,{provider:S,providerType:E}=je(),C=Se(),b=fa(),[X,$]=(0,Ia.useState)(),{transactions:_,sessionId:ye,callbackRoute:U,customTransactionInformation:Q}=i||{};function br(ce){ye&&C(Ge({sessionId:ye,status:"cancelled"})),C(Ri(ce))}let{pathname:ft}=F(),Tt=U!=null&&ft.includes(U),yt=!(Q!=null&&Q.skipGuardian);function Er(ce){if(!ta(ce))return;let{needs2FaSigning:St,sendTransactionsToGuardian:wt}=ia({transactions:ce,sessionId:ye,callbackRoute:U,hasGuardianScreen:o,isGuarded:T&&yt,walletAddress:p});if(St)return $(!0),wt();ye&&(C(Ge({sessionId:ye,status:"signed",transactions:ce.map(At=>fr(At))})),U!=null&&(Q==null?void 0:Q.redirectAfterSign)&&!Tt&&ot({url:U}))}function kr(){t(),b(ye)}function ht(ce){return I(this,null,function*(){return yield(E!=="ledger"?S:yield d()).signTransaction(ce)})}let xt=ga({address:f,egldLabel:m,activeGuardianAddress:T&&yt?w:void 0,transactionsToSign:l?_:[],onGetScamAddressData:r?Us:null,isLedger:Re("ledger"),hasGuardianScreen:o,onCancel:kr,onSignTransaction:ht,onTransactionsSignError:br,onTransactionsSignSuccess:Er});return A(y({},xt),{callbackRoute:U,waitingForDevice:X!=null?X:xt.waitingForDevice})}0&&(module.exports={useSignTransactionsWithDevice});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|