@multiversx/sdk-dapp 2.3.1 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UI/CopyButton/index.js +1 -1
- package/UI/DappModal/hooks/index.js +1 -1
- package/UI/DappModal/hooks/useDappModal.js +1 -1
- package/UI/DappModal/index.js +1 -1
- package/UI/Denominate/index.js +1 -1
- package/UI/ExplorerLink/ExplorerLink.js +1 -1
- package/UI/ExplorerLink/index.js +1 -1
- package/UI/FormatAmount/FormatAmount.js +1 -1
- package/UI/FormatAmount/index.js +1 -1
- package/UI/ModalContainer/ModalContainer.js +1 -1
- package/UI/ModalContainer/index.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/Progress/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
- package/UI/SignTransactionsModals/components/index.js +1 -1
- package/UI/SignTransactionsModals/index.js +1 -1
- package/UI/TokenDetails/index.js +1 -1
- package/UI/TransactionDetails/TransactionDetails.js +1 -1
- package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
- package/UI/TransactionDetails/components/index.js +1 -1
- package/UI/TransactionDetails/index.js +1 -1
- package/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/index.js +1 -1
- package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
- package/UI/TransactionInfo/components/DataField/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/ResultData/ResultData.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
- package/UI/TransactionInfo/components/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoHash/TransactionInfoHash.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoHash/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/UI/TransactionInfo/index.js +1 -1
- package/UI/TransactionsTable/TransactionsTable.js +1 -1
- package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/TransactionHash.js +1 -1
- package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
- package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
- package/UI/TransactionsTable/components/TransactionRow.js +1 -1
- package/UI/TransactionsTable/components/TransactionSender.js +1 -1
- package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
- package/UI/TransactionsTable/components/index.js +1 -1
- package/UI/TransactionsTable/index.js +1 -1
- package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/{chunk-SHUPRDY6.js → chunk-23WABCT6.js} +2 -2
- package/__chunks__/{chunk-AFUFEEUN.js → chunk-2IU4ZFFH.js} +2 -2
- package/__chunks__/{chunk-PTBLBGQF.js → chunk-2MMI5UBN.js} +2 -2
- package/__chunks__/{chunk-CKAD4F63.js → chunk-2RYHQ6GQ.js} +2 -2
- package/__chunks__/{chunk-IGNY6NRW.js → chunk-2XGSMJKV.js} +2 -2
- package/__chunks__/{chunk-7WMZEP7Q.js → chunk-372WAXTQ.js} +2 -2
- package/__chunks__/chunk-3AOYVMRJ.js +2 -0
- package/__chunks__/{chunk-Q7HECF4Q.js → chunk-3E6Y3O25.js} +2 -2
- package/__chunks__/{chunk-7NFQGQ5Q.js → chunk-3NJDVZUF.js} +2 -2
- package/__chunks__/{chunk-VJYSHORZ.js → chunk-3P3HSTXF.js} +2 -2
- package/__chunks__/{chunk-6JPAXTK6.js → chunk-3QOSYPBU.js} +2 -2
- package/__chunks__/chunk-4AIE24DS.js +2 -0
- package/__chunks__/{chunk-33ONNXNO.js → chunk-4BJZ3PT3.js} +2 -2
- package/__chunks__/{chunk-GJ6TQ7XG.js → chunk-4DIH3QDD.js} +2 -2
- package/__chunks__/{chunk-Q663T6WV.js → chunk-4ISXCVVL.js} +2 -2
- package/__chunks__/{chunk-SCNZXL7L.js → chunk-4JTWWYEP.js} +2 -2
- package/__chunks__/{chunk-T6N6SLAD.js → chunk-4L32YVLY.js} +2 -2
- package/__chunks__/{chunk-XTSTYNP6.js → chunk-4RCDPCHR.js} +2 -2
- package/__chunks__/{chunk-KHO4IVX5.js → chunk-4U27GF7V.js} +2 -2
- package/__chunks__/{chunk-3C5NB3VI.js → chunk-4Y4O2KWM.js} +2 -2
- package/__chunks__/chunk-53VAVQW3.js +2 -0
- package/__chunks__/{chunk-V4NH4KGH.js → chunk-5ALSFW3O.js} +2 -2
- package/__chunks__/{chunk-BFTBKNFG.js → chunk-5E5FMH2P.js} +2 -2
- package/__chunks__/chunk-5Q2WXT6C.js +2 -0
- package/__chunks__/{chunk-LL72H433.js → chunk-5Q2Y6MDB.js} +2 -2
- package/__chunks__/{chunk-VLNPGWC5.js → chunk-5VNLNTWS.js} +2 -2
- package/__chunks__/chunk-5WQI3F3M.js +2 -0
- package/__chunks__/{chunk-QFLFTNJM.js → chunk-5XJBRFH7.js} +2 -2
- package/__chunks__/{chunk-JR6VCWNL.js → chunk-6GH6VPOK.js} +2 -2
- package/__chunks__/{chunk-JIDGAQOT.js → chunk-6KHUFFJU.js} +2 -2
- package/__chunks__/{chunk-MJ2ISPU2.js → chunk-6LJGDAKR.js} +2 -2
- package/__chunks__/{chunk-LESGNI5A.js → chunk-6LXORK57.js} +2 -2
- package/__chunks__/chunk-6QHTOLCT.js +2 -0
- package/__chunks__/{chunk-UJBZWEAJ.js → chunk-6S6Z43OG.js} +2 -2
- package/__chunks__/chunk-6ZGALJRB.js +2 -0
- package/__chunks__/{chunk-3UTO3IYR.js → chunk-72DXWEHL.js} +2 -2
- package/__chunks__/{chunk-3ZG3MBAU.js → chunk-75IZAXPU.js} +2 -2
- package/__chunks__/{chunk-5K7SVKSC.js → chunk-77SY3HCE.js} +2 -2
- package/__chunks__/{chunk-EZP3TLKU.js → chunk-7ASLPEOW.js} +2 -2
- package/__chunks__/{chunk-YFGMHVY3.js → chunk-7FGDNWAK.js} +2 -2
- package/__chunks__/{chunk-KIDD6MCM.js → chunk-7FRPIXPX.js} +2 -2
- package/__chunks__/{chunk-X66YBMS4.js → chunk-7JGMG5Y3.js} +2 -2
- package/__chunks__/chunk-7NHF2W5Z.js +2 -0
- package/__chunks__/{chunk-VMMI6YPU.js → chunk-7PSBDNEK.js} +2 -2
- package/__chunks__/{chunk-QZK7OOH3.js → chunk-7R7Z5EUR.js} +2 -2
- package/__chunks__/{chunk-VKQHSYLK.js → chunk-7RLOHZID.js} +2 -2
- package/__chunks__/chunk-7Y6YJ4ZF.js +2 -0
- package/__chunks__/chunk-ABVIJYXG.js +2 -0
- package/__chunks__/chunk-AEEVEPBH.js +2 -0
- package/__chunks__/{chunk-7PPUDZ2T.js → chunk-ALKTXMRV.js} +2 -2
- package/__chunks__/{chunk-HFBCN33X.js → chunk-ALOAIKQA.js} +2 -2
- package/__chunks__/chunk-ALU6GIOA.js +2 -0
- package/__chunks__/{chunk-C5NUO4MM.js → chunk-ARZZT52Z.js} +2 -2
- package/__chunks__/{chunk-SDDRSPEB.js → chunk-BJXEAGQI.js} +2 -2
- package/__chunks__/{chunk-5DVEFQSB.js → chunk-BTXXI3C5.js} +2 -2
- package/__chunks__/chunk-BXMSEXMF.js +2 -0
- package/__chunks__/{chunk-54MVJDAH.js → chunk-CYRCA52K.js} +2 -2
- package/__chunks__/{chunk-OIG4YF2R.js → chunk-CZR4SEII.js} +2 -2
- package/__chunks__/{chunk-TIQYWG5H.js → chunk-D2AKK7KI.js} +2 -2
- package/__chunks__/chunk-D2S75FIJ.js +2 -0
- package/__chunks__/chunk-DBZNKJCO.js +2 -0
- package/__chunks__/chunk-DR65UVWL.js +2 -0
- package/__chunks__/{chunk-DD2JCDY2.js → chunk-DSW55A4J.js} +2 -2
- package/__chunks__/{chunk-R3FJRY2Z.js → chunk-DXK4ZUCH.js} +2 -2
- package/__chunks__/{chunk-2M4AKJPN.js → chunk-DYYZ7GH2.js} +2 -2
- package/__chunks__/{chunk-VJW6DTZJ.js → chunk-ELLRUCGQ.js} +2 -2
- package/__chunks__/chunk-EMDPC2AJ.js +2 -0
- package/__chunks__/{chunk-GFY5ZUL6.js → chunk-EYWWTU44.js} +2 -2
- package/__chunks__/{chunk-DLWIVAKD.js → chunk-F2X5VVIZ.js} +2 -2
- package/__chunks__/{chunk-XFHTDU4F.js → chunk-FBK4E5NW.js} +2 -2
- package/__chunks__/{chunk-PWNNHBIM.js → chunk-FDYRA6XJ.js} +2 -2
- package/__chunks__/{chunk-XODRV4Q6.js → chunk-FFVBU5RQ.js} +2 -2
- package/__chunks__/{chunk-P7BVVJX5.js → chunk-FTJZEDQU.js} +2 -2
- package/__chunks__/{chunk-ABZ2IZO4.js → chunk-FVYIDDES.js} +2 -2
- package/__chunks__/{chunk-Q3JOZ2CP.js → chunk-G43B373M.js} +2 -2
- package/__chunks__/chunk-G737UHQB.js +2 -0
- package/__chunks__/{chunk-FD5HKRAX.js → chunk-GR3RT6ZZ.js} +2 -2
- package/__chunks__/{chunk-ALWA4LTP.js → chunk-GSBLW7YZ.js} +2 -2
- package/__chunks__/{chunk-R3K6XWCB.js → chunk-GT6KNDQW.js} +2 -2
- package/__chunks__/{chunk-VMM6JAZG.js → chunk-GTEK6WFJ.js} +2 -2
- package/__chunks__/{chunk-QWGX5US3.js → chunk-GYZ7YF2I.js} +2 -2
- package/__chunks__/{chunk-5STORMZC.js → chunk-H3PYQ4QV.js} +2 -2
- package/__chunks__/{chunk-4VLJCJJM.js → chunk-H4R6KAC3.js} +2 -2
- package/__chunks__/{chunk-F7ESS2A6.js → chunk-HDY53ANG.js} +2 -2
- package/__chunks__/{chunk-LNE2U5E7.js → chunk-HIOXEIZD.js} +2 -2
- package/__chunks__/{chunk-PEANG3NC.js → chunk-HNUB6XBH.js} +2 -2
- package/__chunks__/{chunk-TY3BD2GL.js → chunk-HQQXV7WQ.js} +2 -2
- package/__chunks__/chunk-HSRWKKTJ.js +2 -0
- package/__chunks__/{chunk-XKV723N6.js → chunk-HX3CK5WP.js} +2 -2
- package/__chunks__/{chunk-D5HQSQ5Y.js → chunk-I2R4TID7.js} +2 -2
- package/__chunks__/{chunk-CKDAMVQL.js → chunk-IFEQG3BM.js} +2 -2
- package/__chunks__/{chunk-AQHHAZ3S.js → chunk-IGRX7653.js} +2 -2
- package/__chunks__/{chunk-X54MOIWZ.js → chunk-IIB5LHL2.js} +2 -2
- package/__chunks__/{chunk-NP5FMYFI.js → chunk-IPZME5GZ.js} +2 -2
- package/__chunks__/{chunk-3JGCHKN2.js → chunk-IQ6OIUKX.js} +2 -2
- package/__chunks__/{chunk-ZQ2QQO7X.js → chunk-IT4RQOGU.js} +2 -2
- package/__chunks__/chunk-JA6VLNIR.js +2 -0
- package/__chunks__/{chunk-NRXK4FQF.js → chunk-JAUQGKRF.js} +2 -2
- package/__chunks__/{chunk-TFYWCFKI.js → chunk-JFTNS53I.js} +2 -2
- package/__chunks__/{chunk-LSEGAHMQ.js → chunk-JTPQQKSW.js} +2 -2
- package/__chunks__/{chunk-SOFXDHSN.js → chunk-K4PKLFGX.js} +2 -2
- package/__chunks__/{chunk-FIN7KCFT.js → chunk-KAOERY2M.js} +2 -2
- package/__chunks__/{chunk-L3MGZIG6.js → chunk-KBOGISKW.js} +2 -2
- package/__chunks__/{chunk-PC65DQCO.js → chunk-KHROB3G5.js} +2 -2
- package/__chunks__/{chunk-AGE76CJS.js → chunk-KI3PKWMT.js} +2 -2
- package/__chunks__/{chunk-FYSR5U3I.js → chunk-KMLULSN5.js} +2 -2
- package/__chunks__/{chunk-M3FPP6T7.js → chunk-KNPSAOWD.js} +2 -2
- package/__chunks__/{chunk-I2OYSMHS.js → chunk-KQP4EJVX.js} +2 -2
- package/__chunks__/{chunk-5KR2MVSX.js → chunk-KSWTSXQD.js} +2 -2
- package/__chunks__/chunk-KVWHQQ6T.js +2 -0
- package/__chunks__/{chunk-S5UJTCXN.js → chunk-L4LGCVPV.js} +2 -2
- package/__chunks__/{chunk-SJJB4IAR.js → chunk-L6WV33UF.js} +2 -2
- package/__chunks__/{chunk-AEZVN3UO.js → chunk-L6YXPGX2.js} +2 -2
- package/__chunks__/{chunk-UBTVRU3E.js → chunk-LCQ2B47Q.js} +2 -2
- package/__chunks__/{chunk-DPHN7HVD.js → chunk-LJXU3CGD.js} +2 -2
- package/__chunks__/{chunk-26QI5SIJ.js → chunk-M6WZOAKB.js} +2 -2
- package/__chunks__/chunk-M7ITPD6X.js +2 -0
- package/__chunks__/{chunk-RTJTVVFS.js → chunk-MDRRV726.js} +2 -2
- package/__chunks__/{chunk-HSLY632F.js → chunk-MOEOJYVT.js} +2 -2
- package/__chunks__/{chunk-CG7KGWWL.js → chunk-MY633BEI.js} +2 -2
- package/__chunks__/chunk-MZIDFQZ3.js +2 -0
- package/__chunks__/chunk-N333Z2BV.js +2 -0
- package/__chunks__/{chunk-GKY5KA3F.js → chunk-N4W43MXK.js} +2 -2
- package/__chunks__/{chunk-Z7C2YERA.js → chunk-N6VI4QEJ.js} +2 -2
- package/__chunks__/{chunk-2BUDQEWE.js → chunk-NCTWW6NZ.js} +2 -2
- package/__chunks__/{chunk-WZWIMOKV.js → chunk-NKTSGS4A.js} +2 -2
- package/__chunks__/chunk-NUJXGF6Y.js +2 -0
- package/__chunks__/{chunk-DJHPFGX6.js → chunk-NXJ3WD7Q.js} +2 -2
- package/__chunks__/{chunk-BGFGNAC4.js → chunk-O7ENQI63.js} +2 -2
- package/__chunks__/{chunk-JYXQ7LOT.js → chunk-OAQIIBF7.js} +2 -2
- package/__chunks__/{chunk-7CKJVDPG.js → chunk-OKHHUA7J.js} +2 -2
- package/__chunks__/{chunk-RM4DR5YH.js → chunk-OKUWOTZU.js} +2 -2
- package/__chunks__/{chunk-EBAXDGL7.js → chunk-OUBYLJVO.js} +2 -2
- package/__chunks__/{chunk-MTRFJAV3.js → chunk-P6PWZCWU.js} +2 -2
- package/__chunks__/{chunk-QD6GEHG4.js → chunk-PAD5UBCO.js} +2 -2
- package/__chunks__/{chunk-2YB4NPFQ.js → chunk-PBRBN2YY.js} +2 -2
- package/__chunks__/{chunk-37FKTAKZ.js → chunk-PD45WZNF.js} +2 -2
- package/__chunks__/{chunk-6H74GIU6.js → chunk-PJYVNCWQ.js} +2 -2
- package/__chunks__/{chunk-WAQ7MKEC.js → chunk-PQPMBI5T.js} +2 -2
- package/__chunks__/{chunk-4XBUGAEB.js → chunk-QAXDO6Z2.js} +2 -2
- package/__chunks__/{chunk-2IBLGO2A.js → chunk-QCG67HPT.js} +2 -2
- package/__chunks__/{chunk-JVO3OTWJ.js → chunk-QCJSSLN5.js} +2 -2
- package/__chunks__/{chunk-MXUG42SB.js → chunk-QDBNFC47.js} +2 -2
- package/__chunks__/{chunk-GARX3UC3.js → chunk-QDG6DX7I.js} +2 -2
- package/__chunks__/{chunk-LLYSLML4.js → chunk-QN7JZI2J.js} +2 -2
- package/__chunks__/{chunk-RJMVHSD5.js → chunk-QP7K2LX2.js} +2 -2
- package/__chunks__/{chunk-GAZKVMFE.js → chunk-QQTMEJSS.js} +2 -2
- package/__chunks__/{chunk-KBN5FUUU.js → chunk-QTYKPJCG.js} +2 -2
- package/__chunks__/{chunk-JRWYH6C3.js → chunk-QZRKSGF3.js} +2 -2
- package/__chunks__/{chunk-7UJ2QVNF.js → chunk-R6BAD7QL.js} +2 -2
- package/__chunks__/chunk-RCRLXXJQ.js +2 -0
- package/__chunks__/{chunk-LUOKYKOZ.js → chunk-RGZJQIHV.js} +2 -2
- package/__chunks__/{chunk-PVTRCISO.js → chunk-RXQ5SMCE.js} +2 -2
- package/__chunks__/{chunk-LA7PNPJ6.js → chunk-S6HSNFR4.js} +2 -2
- package/__chunks__/{chunk-UBEOQSIP.js → chunk-SHYWSDZ2.js} +2 -2
- package/__chunks__/{chunk-H5SGYLT2.js → chunk-SJBVHNRS.js} +2 -2
- package/__chunks__/{chunk-4DBTMUPJ.js → chunk-SLXALMUS.js} +2 -2
- package/__chunks__/{chunk-FCUXC6CI.js → chunk-SUFYB7SU.js} +2 -2
- package/__chunks__/{chunk-2NV5YJWT.js → chunk-SZ5R4KYT.js} +2 -2
- package/__chunks__/chunk-T2MVETZ4.js +2 -0
- package/__chunks__/{chunk-RLFQERPJ.js → chunk-T2NSHK45.js} +2 -2
- package/__chunks__/{chunk-HTA6J7K7.js → chunk-T4MA5YPW.js} +2 -2
- package/__chunks__/{chunk-YNEWKYKQ.js → chunk-T6DHLJEP.js} +2 -2
- package/__chunks__/{chunk-I5BVF6UR.js → chunk-TBXSSOYL.js} +2 -2
- package/__chunks__/{chunk-5WMEJ3LG.js → chunk-TKK4TCUG.js} +2 -2
- package/__chunks__/{chunk-EHS4K6KJ.js → chunk-TV5JLIO3.js} +2 -2
- package/__chunks__/{chunk-SBXFKI4W.js → chunk-TWPMRPCJ.js} +2 -2
- package/__chunks__/{chunk-6NRXAYB3.js → chunk-U4DREZMZ.js} +2 -2
- package/__chunks__/{chunk-TPYKAABN.js → chunk-U7R3ODDD.js} +2 -2
- package/__chunks__/{chunk-B25NAW7W.js → chunk-UBI77ZA7.js} +2 -2
- package/__chunks__/{chunk-2NH2FQEH.js → chunk-US5YWUWE.js} +2 -2
- package/__chunks__/{chunk-UZ7DPDMX.js → chunk-USKW77WO.js} +2 -2
- package/__chunks__/{chunk-ED44NIUE.js → chunk-UXRDAS7C.js} +2 -2
- package/__chunks__/{chunk-ZUR56TCY.js → chunk-UYVTJE63.js} +2 -2
- package/__chunks__/{chunk-URP3ZX5V.js → chunk-UZZTB6J2.js} +2 -2
- package/__chunks__/{chunk-KQAVVFT7.js → chunk-V55GBYFZ.js} +2 -2
- package/__chunks__/{chunk-ZBOX22HU.js → chunk-VB7EWJQ6.js} +2 -2
- package/__chunks__/{chunk-GCWTST6A.js → chunk-VHVGMQVY.js} +2 -2
- package/__chunks__/{chunk-LJUKWZBH.js → chunk-VOJLYTVI.js} +2 -2
- package/__chunks__/{chunk-CENV263I.js → chunk-VRAV6RDB.js} +2 -2
- package/__chunks__/{chunk-XHDI2SKD.js → chunk-VSBFML35.js} +2 -2
- package/__chunks__/{chunk-BFU2QOK7.js → chunk-VY4HFSTY.js} +2 -2
- package/__chunks__/{chunk-YZGKKPP5.js → chunk-W4CWA4KM.js} +2 -2
- package/__chunks__/{chunk-ZG46K5FU.js → chunk-W6TOWN33.js} +2 -2
- package/__chunks__/{chunk-MMZKRMKR.js → chunk-WAX2SRRR.js} +2 -2
- package/__chunks__/{chunk-KKHFB55C.js → chunk-WGSNT4EM.js} +2 -2
- package/__chunks__/{chunk-EUJ46VEZ.js → chunk-WHEA5HYP.js} +2 -2
- package/__chunks__/{chunk-7MWL77ZK.js → chunk-WIFR7W45.js} +2 -2
- package/__chunks__/{chunk-VJIP6W32.js → chunk-WMQVNZKG.js} +2 -2
- package/__chunks__/chunk-WOS6T7ZV.js +2 -0
- package/__chunks__/{chunk-U2L6FONJ.js → chunk-WPOULSHX.js} +2 -2
- package/__chunks__/{chunk-THI5XMU4.js → chunk-WVADOL2D.js} +2 -2
- package/__chunks__/chunk-XCLZ5AS2.js +2 -0
- package/__chunks__/chunk-XGHGX644.js +2 -0
- package/__chunks__/chunk-XYSWLSUL.js +2 -0
- package/__chunks__/{chunk-HZVMBVZJ.js → chunk-Y7VP4PME.js} +2 -2
- package/__chunks__/{chunk-2Y6LPWGF.js → chunk-YHPAZ7RG.js} +2 -2
- package/__chunks__/{chunk-6SHBADXT.js → chunk-YIID7WXR.js} +2 -2
- package/__chunks__/{chunk-2OYAMC2Z.js → chunk-YJ3UC4ZI.js} +2 -2
- package/__chunks__/{chunk-EVTUNKTW.js → chunk-YRQBJ7VU.js} +2 -2
- package/__chunks__/{chunk-NP7WBEQK.js → chunk-Z2OOX7G7.js} +2 -2
- package/__chunks__/{chunk-PWSKY37E.js → chunk-ZABQNLC5.js} +2 -2
- package/__chunks__/{chunk-6FEMGV3G.js → chunk-ZEB6PEPS.js} +2 -2
- package/__chunks__/{chunk-NWJF7KGT.js → chunk-ZIYSW5GV.js} +2 -2
- package/__chunks__/{chunk-ZFCLX5JU.js → chunk-ZMTFL7CC.js} +2 -2
- package/__chunks__/{chunk-M357HOML.js → chunk-ZNGQR3EA.js} +2 -2
- package/__commonjs/UI/DappModal/hooks/index.js +1 -1
- package/__commonjs/UI/DappModal/hooks/useDappModal.js +1 -1
- package/__commonjs/UI/DappModal/index.js +3 -3
- package/__commonjs/UI/ModalContainer/ModalContainer.js +2 -2
- package/__commonjs/UI/ModalContainer/index.js +2 -2
- package/__commonjs/UI/NotificationModal/index.js +4 -4
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +21 -21
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +5 -5
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +7 -7
- package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +5 -5
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +7 -7
- package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +5 -5
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +14 -14
- package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +14 -14
- package/__commonjs/UI/SignTransactionsModals/components/index.js +14 -14
- package/__commonjs/UI/SignTransactionsModals/index.js +21 -21
- package/__commonjs/UI/TransactionInfo/TransactionInfo.js +26 -26
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/index.js +36 -36
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +33 -33
- package/__commonjs/UI/TransactionInfo/index.js +27 -27
- package/__commonjs/UI/TransactionsTable/TransactionsTable.js +5 -5
- package/__commonjs/UI/TransactionsTable/index.js +5 -5
- package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +7 -7
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +6 -6
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +2 -2
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +6 -6
- package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +8 -8
- package/__commonjs/UI/TransactionsToastList/components/index.js +13 -13
- package/__commonjs/UI/TransactionsToastList/index.js +7 -7
- package/__commonjs/UI/index.js +67 -67
- package/__commonjs/UI/ledger/LedgerLoginButton/index.js +8 -8
- package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +2 -2
- package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +7 -7
- package/__commonjs/UI/ledger/index.js +8 -8
- package/__commonjs/UI/pages/UnlockPage/index.js +11 -11
- package/__commonjs/UI/pages/index.js +11 -11
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +5 -5
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +4 -4
- package/__commonjs/UI/walletConnect/index.js +5 -5
- package/__commonjs/__mocks__/index.js +1 -1
- package/__commonjs/__mocks__/utils/index.js +1 -1
- package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
- package/__commonjs/components/LogoutListener/LogoutListener.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/index.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/__commonjs/components/LogoutListener/index.js +1 -1
- package/__commonjs/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/__commonjs/components/TransactionsTracker/index.js +1 -1
- package/__commonjs/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/login/index.js +1 -1
- package/__commonjs/hooks/login/useAddressScreens.js +9 -0
- package/__commonjs/hooks/login/useLedgerLogin.js +1 -1
- package/__commonjs/wrappers/DappProvider/CustomComponents.js +1 -1
- package/__commonjs/wrappers/DappProvider/index.js +1 -1
- package/__commonjs/wrappers/index.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/apiCalls/accounts/getAccountFromApi.js +1 -1
- package/apiCalls/accounts/index.js +1 -1
- package/apiCalls/configuration/getNetworkConfig.js +1 -1
- package/apiCalls/configuration/index.js +1 -1
- package/apiCalls/getScamAddressData.js +1 -1
- package/apiCalls/index.js +1 -1
- package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
- package/apiCalls/transactions/index.js +1 -1
- package/apiCalls/transactions/sendSignedTransactions.js +1 -1
- package/apiCalls/utils/getCleanApiAddress.js +1 -1
- package/apiCalls/utils/index.js +1 -1
- package/components/LogoutListener/LogoutListener.js +1 -1
- package/components/LogoutListener/helpers/index.js +1 -1
- package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/components/LogoutListener/index.js +1 -1
- package/components/ProviderInitializer.js +1 -1
- package/components/TransactionSender/TransactionSender.js +1 -1
- package/components/TransactionSender/index.js +1 -1
- package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/hooks/account/index.js +1 -1
- package/hooks/account/useGetAccount.js +1 -1
- package/hooks/account/useGetAccountInfo.js +1 -1
- package/hooks/account/useGetIsLoggedIn.js +1 -1
- package/hooks/account/useGetLoginInfo.js +1 -1
- package/hooks/account/useGetWebsocketEvent.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useAddressScreens.d.ts +38 -0
- package/hooks/login/useAddressScreens.js +2 -0
- package/hooks/login/useExtensionLogin.js +1 -1
- package/hooks/login/useLedgerLogin.d.ts +1 -1
- package/hooks/login/useLedgerLogin.js +1 -1
- package/hooks/login/useLoginService.js +1 -1
- package/hooks/login/useWalletConnectLogin.js +1 -1
- package/hooks/login/useWalletConnectV2Login.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/signMessage/index.js +1 -1
- package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
- package/hooks/signMessage/useSignMessage.js +1 -1
- package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
- package/hooks/transactions/helpers/index.js +1 -1
- package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
- package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
- package/hooks/transactions/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
- package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
- package/hooks/transactions/useGetFailedTransactions.js +1 -1
- package/hooks/transactions/useGetPendingTransactions.js +1 -1
- package/hooks/transactions/useGetSignTransactionsError.js +1 -1
- package/hooks/transactions/useGetSignedTransactions.js +1 -1
- package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
- package/hooks/transactions/useGetTokenDetails.js +1 -1
- package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/hooks/transactions/useSignTransactions.js +1 -1
- package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/hooks/useGetNetworkConfig.js +1 -1
- package/hooks/useGetNotification.js +1 -1
- package/hooks/userInterface/index.js +1 -1
- package/hooks/userInterface/useIsDappModalVisible.js +1 -1
- package/hooks/websocketListener/index.js +1 -1
- package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
- package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
- package/package.json +1 -1
- package/reduxStore/DappProviderContext.js +1 -1
- package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
- package/reduxStore/persistConfig.js +1 -1
- package/reduxStore/persistedRootReducer.js +1 -1
- package/reduxStore/reducers.js +1 -1
- package/reduxStore/rootReducer.js +1 -1
- package/reduxStore/selectors/accountInfoSelectors.js +1 -1
- package/reduxStore/selectors/index.js +1 -1
- package/reduxStore/selectors/loginInfoSelectors.js +1 -1
- package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
- package/reduxStore/selectors/transactionsSelectors.js +1 -1
- package/reduxStore/slices/accountInfoSlice.js +1 -1
- package/reduxStore/slices/index.js +1 -1
- package/reduxStore/slices/loginInfoSlice.js +1 -1
- package/reduxStore/store.js +1 -1
- package/services/index.js +1 -1
- package/services/transactions/clearTransactions.js +1 -1
- package/services/transactions/index.js +1 -1
- package/services/transactions/sendTransactions.js +1 -1
- package/services/transactions/signTransactions.js +1 -1
- package/services/transactions/transformAndSignTransactions.js +1 -1
- package/services/transactions/utils.js +1 -1
- package/storage/local.js +1 -1
- package/utils/account/getAccount.js +1 -1
- package/utils/account/getAccountBalance.js +1 -1
- package/utils/account/getAccountShard.js +1 -1
- package/utils/account/getAddress.js +1 -1
- package/utils/account/getLatestNonce.js +1 -1
- package/utils/account/index.js +1 -1
- package/utils/account/loginWithExternalProvider.js +1 -1
- package/utils/account/refreshAccount.js +1 -1
- package/utils/account/setNonce.js +1 -1
- package/utils/account/signMessage.js +1 -1
- package/utils/getIsLoggedIn.js +1 -1
- package/utils/index.js +1 -1
- package/utils/logout.js +1 -1
- package/utils/network/getChainID.js +1 -1
- package/utils/network/getEgldLabel.js +1 -1
- package/utils/network/getNetworkConfig.js +1 -1
- package/utils/network/index.js +1 -1
- package/utils/operations/denominate.js +1 -1
- package/utils/operations/formatAmount.js +1 -1
- package/utils/operations/index.js +1 -1
- package/utils/storage/index.js +1 -1
- package/utils/toasts/customToastsActions.js +1 -1
- package/utils/toasts/index.js +1 -1
- package/utils/transactions/getAllTransactionsLink.js +1 -1
- package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/index.js +1 -1
- package/utils/transactions/getTransactionLink.js +1 -1
- package/utils/transactions/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
- package/utils/transactions/transactionInfoHelpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
- package/web/hooks/index.js +1 -1
- package/web/hooks/useIdleTimer.js +1 -1
- package/web/index.js +1 -1
- package/wrappers/AppInitializer.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/index.js +1 -1
- package/wrappers/DappProvider/CustomComponents.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-3NPI7JA7.js +0 -2
- package/__chunks__/chunk-3WWRIEF2.js +0 -2
- package/__chunks__/chunk-4L5GQQ5V.js +0 -2
- package/__chunks__/chunk-5R3FZCYE.js +0 -2
- package/__chunks__/chunk-7NCGSE7V.js +0 -2
- package/__chunks__/chunk-AHYWEF7B.js +0 -2
- package/__chunks__/chunk-BGCOFQOB.js +0 -2
- package/__chunks__/chunk-CGICAIB4.js +0 -2
- package/__chunks__/chunk-DJ257IT6.js +0 -2
- package/__chunks__/chunk-DUSZZPF5.js +0 -2
- package/__chunks__/chunk-DZ7DF3PB.js +0 -2
- package/__chunks__/chunk-EFI4BH63.js +0 -2
- package/__chunks__/chunk-F2JINB56.js +0 -2
- package/__chunks__/chunk-FBLFBPJI.js +0 -2
- package/__chunks__/chunk-GFHZOO2D.js +0 -2
- package/__chunks__/chunk-HNBKDGB4.js +0 -2
- package/__chunks__/chunk-HOMCNURE.js +0 -2
- package/__chunks__/chunk-IHXP3ILK.js +0 -2
- package/__chunks__/chunk-J56ZMEK7.js +0 -2
- package/__chunks__/chunk-JBVENEHE.js +0 -2
- package/__chunks__/chunk-JKIKLHKN.js +0 -2
- package/__chunks__/chunk-KO6WAT63.js +0 -2
- package/__chunks__/chunk-PNY4HLJR.js +0 -2
- package/__chunks__/chunk-PPQR6O44.js +0 -2
- package/__chunks__/chunk-RRF2ZJRY.js +0 -2
- package/__chunks__/chunk-TEDBWAYV.js +0 -2
- package/__chunks__/chunk-UGJQJLC2.js +0 -2
- package/__chunks__/chunk-UOBE4FLX.js +0 -2
- package/__chunks__/chunk-ZFNBOBDY.js +0 -2
- package/__chunks__/chunk-ZX4NKEPH.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as p}from"./chunk-2BLZGAC4.js";import{a as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as p}from"./chunk-2BLZGAC4.js";import{a as c}from"./chunk-TWPMRPCJ.js";import{a as m}from"./chunk-75IZAXPU.js";import{b as i}from"./chunk-LW2JXNAA.js";import{a as e}from"./chunk-JA6VLNIR.js";import{a as n}from"./chunk-WOS6T7ZV.js";import{a}from"./chunk-TBXSSOYL.js";import{m as s}from"./chunk-HBP5N4FR.js";s();import t from"react";var w=T=>{let{className:u,transaction:f}=T,{address:o}=n(),{network:{explorerAddress:d}}=e(),r=a({transaction:f,address:o!=null?o:"",explorerAddress:d});return t.createElement(p,null,t.createElement("div",{className:i.status},t.createElement(c,{transaction:r})),t.createElement(m,{className:u,hash:r.txHash,status:r.status}))};export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WGSNT4EM.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-3565BFXD.js";import{d as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-3565BFXD.js";import{d as t}from"./chunk-4JTWWYEP.js";import{c as u,f as s}from"./chunk-IQ6OIUKX.js";import{i as c}from"./chunk-5ALSFW3O.js";import{b as i,c as R}from"./chunk-DZ5IJ4N3.js";import{m as r}from"./chunk-HBP5N4FR.js";r();import d from"react";R();var k=({children:a,routes:m,unlockRoute:o,onRedirect:e})=>{let p=t(u),f=t(c),n=t(s),g=l(m,window.location.pathname)&&!p&&n==null;return f||n?null:g?(e?e(o):i(o),null):d.createElement(d.Fragment,null,a)};export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WHEA5HYP.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as n}from"./chunk-VCGHU5KR.js";import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as n}from"./chunk-VCGHU5KR.js";import{a as t}from"./chunk-WOS6T7ZV.js";import{m as e}from"./chunk-HBP5N4FR.js";e();import o from"react";import{faAngleDown as c}from"@fortawesome/free-solid-svg-icons";import{FontAwesomeIcon as i}from"@fortawesome/react-fontawesome";import r from"classnames";var T=({transaction:s})=>{let{nonce:a}=t(),{nonce:m}=s;return m>a?o.createElement("div",{className:r(n.dFlex,n.ml1)},o.createElement(i,{icon:c,className:n.textSecondary,style:{marginTop:"2px"},transform:{rotate:45}}),"\xA0",o.createElement("small",{className:r(n.textWarning,n.ml1)}," ","Probable higher nonce in transaction")):null};export{T as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WIFR7W45.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as e}from"./chunk-LFOFH74W.js";import{a as i}from"./chunk-YTXACUAU.js";import{a as p}from"./chunk-PBNXNJJD.js";import{a as m}from"./chunk-LWMZKHPZ.js";import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as e}from"./chunk-LFOFH74W.js";import{a as i}from"./chunk-YTXACUAU.js";import{a as p}from"./chunk-PBNXNJJD.js";import{a as m}from"./chunk-LWMZKHPZ.js";import{a as o}from"./chunk-P6PWZCWU.js";import{m as t}from"./chunk-HBP5N4FR.js";t();import s from"react";var l=({sender:r,assets:d})=>s.createElement("div",{className:e.scResultSender},s.createElement(i,{label:"From"},s.createElement(m,{initiator:r}),s.createElement("div",{className:e.address},s.createElement(p,{address:r,assets:d})),s.createElement(o,{text:r,className:e.copy}))),A=l;export{A as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WMQVNZKG.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-3NJDVZUF.js";import{a as d}from"./chunk-X53TXOIC.js";import{a as e,b as o,m as t}from"./chunk-HBP5N4FR.js";t();d();import r from"react";import{render as p}from"@testing-library/react";import{createMemoryHistory as y}from"history";var x=({children:n,route:m="/"})=>{let s=y({initialEntries:[m]});return o(e({},p(r.createElement(i,{environment:"devnet"},r.createElement(r.Fragment,null,n)))),{history:s})};export{x as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WPOULSHX.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as N}from"./chunk-5HNME5OQ.js";import{a as b}from"./chunk-GNJAE3HJ.js";import{a as w}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as N}from"./chunk-5HNME5OQ.js";import{a as b}from"./chunk-GNJAE3HJ.js";import{a as w}from"./chunk-WOS6T7ZV.js";import{c as y,d}from"./chunk-4JTWWYEP.js";import{h as L}from"./chunk-IQ6OIUKX.js";import{h as S}from"./chunk-I4E7WYSQ.js";import{a as P}from"./chunk-BXMSEXMF.js";import{e as g}from"./chunk-W4CWA4KM.js";import{a as s,j as f,k as A,m as v}from"./chunk-HBP5N4FR.js";v();import{useRef as R}from"react";import{Address as x,SignableMessage as z}from"@multiversx/sdk-core";P();var B=(t,r)=>{var o;return r?r===!0?t:(o=r.apiAddress)!=null?o:t:null},Q=t=>{let r=d(S),o=d(L),c=R(o==null?void 0:o.loginToken),i=B(r.apiAddress,t),a=b(s(s({},t===!0?{}:t),i?{apiAddress:i}:{})),C=Boolean(t),k=N(a),{address:T}=w(),u=y(),M=e=>{c.current=e,u(g(s({loginToken:e},i?{nativeAuthConfig:a}:{})))},p=()=>f(void 0,null,function*(){try{return yield k.initialize()}catch(e){console.error("Unable to get block. Login failed.",e);return}}),h=({address:e,signature:l})=>{let n=c.current;if(!n)throw"Token not found. Call `setLoginToken` first.";if(!C){u(g({loginToken:n,signature:l}));return}let m=k.getToken({address:e,token:n,signature:l});u(g(s({loginToken:n,signature:l,nativeAuthToken:m},i?{nativeAuthConfig:a}:{})))};return{configuration:a,setLoginToken:M,getNativeAuthLoginToken:p,setTokenLoginInfo:h,refreshNativeAuthTokenLogin:l=>f(void 0,[l],function*({signMessageCallback:e}){let n=yield p();if(c.current=n,!n)return;let m=new z({address:new x(T),message:A.Buffer.from(n)}),O=yield e(m,{});h({address:T,signature:O.toJSON().signature})})}};export{Q as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WVADOL2D.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as c}from"./chunk-Y6LGH6AG.js";import{a as f}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as c}from"./chunk-Y6LGH6AG.js";import{a as f}from"./chunk-IT4RQOGU.js";import{b as u}from"./chunk-2NWUS3DO.js";import{b as e}from"./chunk-VCGHU5KR.js";import{m as p}from"./chunk-HBP5N4FR.js";p();import t,{useEffect as h}from"react";import{faChevronLeft as g,faChevronRight as B,faCircleNotch as C}from"@fortawesome/free-solid-svg-icons";import{FontAwesomeIcon as v}from"@fortawesome/react-fontawesome";import r from"classnames";var P="Waiting for device",S=10,I=({loading:n,accounts:o,startIndex:d,selectedAddress:a,onGoToPrevPage:A,onGoToNextPage:N,onConfirmSelectedAddress:x,onSelectAddress:l,className:y="dapp-ledger-address-table"})=>{let s={wrapper:r(e.card,e.px4,y),cardBody:r(e.cardBody,e.p4),tableWrapper:e.tableResponsive,tableContent:r(u.ledgerAddressTable,e.table,e.m0,e.borderBottom),tableHeader:r(e.py2,e.textBlack50,e.borderBottom),tableHeaderText:r(e.textLeft,e.border0),buttonsWrapper:r(e.dFlex,e.justifyContentCenter,e.mt2),arrowButton:r(e.btn,e.btnLink,e.mx2),confirmButton:r(e.btn,e.btnPrimary,e.px4,e.mt4)};return h(()=>{if(o.length>0&&!n&&(!a&&d===0)){let T=o[0];l({address:T,index:0})}},[o,a,n,d]),n?t.createElement(c,{icon:C,iconClass:`fa-spin ${e.textPrimary}`,title:P}):t.createElement(t.Fragment,null,t.createElement("div",{className:e.mAuto},t.createElement("div",{className:s.wrapper},t.createElement("div",{className:s.cardBody},t.createElement("div",{className:s.tableWrapper,"data-testid":"ledgerAddresses"},t.createElement("table",{className:s.tableContent},t.createElement("thead",{className:s.tableHeader},t.createElement("tr",null,t.createElement("th",{className:s.tableHeaderText},"Address"),t.createElement("th",{className:s.tableHeaderText},"Balance"),t.createElement("th",{className:s.tableHeaderText},"#"))),t.createElement("tbody",{"data-testid":"addressesTable"},o.map((m,b)=>{let i=b+d*S;return t.createElement(f,{key:i,address:m,index:i,selectedAddress:a,onSelectAddress:l})})))),t.createElement("div",{className:s.buttonsWrapper},t.createElement("button",{type:"button",className:s.arrowButton,onClick:A,"data-testid":"prevBtn",disabled:d===0},t.createElement(v,{size:"sm",icon:g})," Prev"),t.createElement("button",{type:"button",className:r(s.arrowButton,e.linkSecondStyle),onClick:N,"data-testid":"nextBtn"},"Next ",t.createElement(v,{size:"sm",icon:B}))),t.createElement("div",{className:e.centering},t.createElement("button",{className:s.confirmButton,disabled:a==="",onClick:x,"data-testid":"confirmBtn"},"Confirm"))))))};export{I as a};
|
|
2
|
+
//# sourceMappingURL=chunk-Y7VP4PME.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-QDBNFC47.js";import{m as r}from"./chunk-HBP5N4FR.js";r();function t({getTransactionsByHash:n}){return a({getTransactionsByHash:n}),null}export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YHPAZ7RG.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as t}from"./chunk-HHB5MK2C.js";import{a as i}from"./chunk-AUGXCG3S.js";import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as t}from"./chunk-HHB5MK2C.js";import{a as i}from"./chunk-AUGXCG3S.js";import{a as l}from"./chunk-72DXWEHL.js";import{a as s}from"./chunk-KRCUIXB4.js";import{a}from"./chunk-KI3PKWMT.js";import{q as r,s as c}from"./chunk-ITDGZCSS.js";import{m}from"./chunk-HBP5N4FR.js";m();c();import o from"react";import d from"classnames";var x=({className:n,transaction:e})=>{let p=l(),u=a({input:e.value,showLastNonZeroDecimal:!0}),f=a({input:e.value,addCommas:!1,showLastNonZeroDecimal:!0});return o.createElement(i,{title:"Value",className:d(t.value,n)},o.createElement("span",{"data-testid":"transactionInfoValue"},u," ",p," ",o.createElement("span",{className:t.price},e.price!=null?`(${s({amount:f,usd:e.price,decimals:2,addEqualSign:!0})})`:r)))};export{x as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YIID7WXR.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as f}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as f}from"./chunk-DBZNKJCO.js";import{a as h}from"./chunk-US5YWUWE.js";import{a as c}from"./chunk-7ASLPEOW.js";import{h as i,s as T}from"./chunk-DKXAWU2I.js";import{a as e,j as o,m as r}from"./chunk-HBP5N4FR.js";r();T();function G(){let{pendingTransactionsArray:u}=f();function m(s){return o(this,null,function*(){let a=u.filter(([n,t])=>n!=null&&i(t.status));if(a.length>0)for(let[n,t]of a)yield h(e({sessionId:n,transactionBatch:t},s));s.shouldRefreshBalance&&c()})}return m}export{G as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YJ3UC4ZI.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as T}from"./chunk-5PGJEWEM.js";import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as T}from"./chunk-5PGJEWEM.js";import{a as r}from"./chunk-G737UHQB.js";import{b as i}from"./chunk-VCGHU5KR.js";import{a as l}from"./chunk-SZ5R4KYT.js";import{a as c}from"./chunk-IGRX7653.js";import{a as t,b as s,m as a}from"./chunk-HBP5N4FR.js";a();import o from"react";var F=({token:n,noValue:m,showLastNonZeroDecimal:p})=>{if(["MetaESDT".toString(),"SemiFungibleESDT","NonFungibleESDT"].includes(n.type))switch(n.type){case"SemiFungibleESDT":{let e=l({token:n,showLastNonZeroDecimal:p});return o.createElement("div",{className:T.group},o.createElement("span",{className:i.mr1},"SFT quantity"),o.createElement(r.Nft,s(t({},e),{badgeText:null})),o.createElement("span",{className:i.mr1},"of collection"),o.createElement(r.Collection,{token:n}))}case"NonFungibleESDT":{let e=l({token:n,noValue:m,showLastNonZeroDecimal:p});return o.createElement("div",{className:T.group},o.createElement("span",{className:i.mr1},"NFT"),o.createElement(r.Nft,s(t({},e),{badgeText:null})),o.createElement("span",{className:i.mr1},"of collection"),o.createElement(r.Collection,{token:n}))}case"MetaESDT":{let e=l({token:n,noValue:m,showLastNonZeroDecimal:p});return o.createElement(r.Nft,s(t({},e),{badgeText:null}))}default:return null}else{let e=c({token:n,noValue:m,showLastNonZeroDecimal:p});return o.createElement(r.Token,s(t({},e),{showLastNonZeroDecimal:!0}))}};export{F as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YRQBJ7VU.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as n}from"./chunk-I4E7WYSQ.js";import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{i as n}from"./chunk-I4E7WYSQ.js";import{a as o}from"./chunk-IFEQG3BM.js";import{m as r}from"./chunk-HBP5N4FR.js";r();var p=e=>{let t=e!=null?e:n(o.getState());return t.endsWith("/")?t.slice(0,-1):t};export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-Z2OOX7G7.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-IQ6OIUKX.js";import{a as s}from"./chunk-IFEQG3BM.js";import{b as r}from"./chunk-25IPTBK3.js";import{m as n}from"./chunk-HBP5N4FR.js";n();import f,{useContext as g,useState as p,createContext as A}from"react";var c=A({}),u=s.getState();function b({children:t}){let[e,x]=p(),[o,a]=p(i(u)),d={address:e,setAddress:x,isLoggedIn:r(o.loginMethod,e),loginInfo:o,setLoginInfo:I=>a(I)};return f.createElement(c.Provider,{value:d},t)}function w(){let t=g(c);if(t===void 0||Object.values(t).length===0)throw new Error("useAxiosInterceptorContext must be used within an AxiosInterceptorContextProvider");return t}export{b as a,w as b};
|
|
2
|
+
//# sourceMappingURL=chunk-ZABQNLC5.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o,b as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o,b as d}from"./chunk-5Q2WXT6C.js";import{e as t,g as r,m as e}from"./chunk-HBP5N4FR.js";var m={};r(m,{default:()=>f});var f,p=t(()=>{e();d();f=o()});export{f as a,m as b,p as c};
|
|
2
|
+
//# sourceMappingURL=chunk-ZEB6PEPS.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as v}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as v}from"./chunk-FVYIDDES.js";import{a as T}from"./chunk-NHIPCB5H.js";import{a as N}from"./chunk-SZGCAC7X.js";import{a as U}from"./chunk-DSW55A4J.js";import{c as R,d as C}from"./chunk-4JTWWYEP.js";import{a as k}from"./chunk-QMQUN5M3.js";import{a as F}from"./chunk-BXMSEXMF.js";import{b as c,c as b,d as p}from"./chunk-HI5RCCIL.js";import{s as j}from"./chunk-ITDGZCSS.js";import{a as M,b as g,e as I}from"./chunk-QR72MI4M.js";import{a as $}from"./chunk-X53TXOIC.js";import{a as w}from"./chunk-OGKM4YOJ.js";import{a as m,b as S,j as f,m as P}from"./chunk-HBP5N4FR.js";P();j();import{useEffect as h,useState as H}from"react";F();$();var gs=()=>{let t=R(),[r,l]=H(""),d=C(k).signedSessions[r],{isPending:y,errorMessage:D}=v(),{search:E}=window.location,{provider:a,providerType:L}=T(),u=L==="wallet",x=()=>{t(b())},o=({callbackRoute:e,errorMessage:n=g})=>{let s=n.includes(g),i=Date.now().toString();d||l(i),t(c({errorMessage:n,sessionId:i,signedSession:{callbackUrl:e,status:s?"cancelled":"failed"}}))},A=(e,n)=>{if(!e)return"";let s=new URL(e);return s.searchParams.get("sessionId")||s.searchParams.append("sessionId",n),`${u?window.location.origin:""}${s.pathname}${s.search}`},G=()=>f(void 0,null,function*(){var e;if(!u)try{if(!(yield(e=a==null?void 0:a.init)==null?void 0:e.call(a)))throw Error(I)}catch(n){let s=(n==null?void 0:n.message)||n||I;throw Error(s)}}),O=e=>a.signMessage(e.message,{callbackUrl:encodeURIComponent(String(e.callbackRoute))}),W=e=>f(void 0,null,function*(){let n=Date.now().toString();l(n);let s=A(e.callbackRoute,n);if(t(c({sessionId:n,signedSession:{status:"pending",message:e.message,callbackUrl:s}})),u)return O(S(m({},e),{callbackRoute:s}));try{yield G()}catch(i){return o({errorMessage:String(i),callbackRoute:s})}try{let i=yield U(S(m({},e),{callbackRoute:s}));return i.signature?t(c({sessionId:n,signedSession:{status:"signed",callbackUrl:s,message:e.message,signature:i.signature.hex()}})):o({errorMessage:g,callbackRoute:s})}catch(i){let _=(i==null?void 0:i.message)||i||M;return o({errorMessage:_,callbackRoute:s})}}),z=()=>{if(E){let{remainingParams:{signature:e,sessionId:n,status:s},clearNavigationHistory:i}=N(Object.values(w));if(!n)return;if(l(n),["cancelled","failed"].includes(s))return o({errorMessage:s==="cancelled"?g:M});if(e&&s==="signed")return t(c({sessionId:r,signedSession:{signature:e,status:s}}));i()}};return h(()=>{z()},[E]),h(()=>{(y||D)&&!d&&t(p({isSigning:!1,errorMessage:""}))},[]),h(()=>{r&&!d&&!y&&t(p({isSigning:!1,errorMessage:""}))},[r]),{onAbort:x,onCancel:o,signMessage:W,sessionId:r}};export{gs as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZIYSW5GV.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-Z2OOX7G7.js";import{d as e}from"./chunk-FC3CZOOQ.js";import{j as n,m as c}from"./chunk-HBP5N4FR.js";c();import p from"axios";function l(r){return n(this,null,function*(){if(!r)return null;let o=`${i()}/${e}/${r}`;try{let{data:t}=yield p.get(o);return t}catch(t){console.error("error fetching configuration for ",o)}return null})}export{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZMTFL7CC.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as f}from"./chunk-3SYOVVPU.js";import{a as h}from"./chunk-4VDFQTIQ.js";import{a as i,b as B}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as f}from"./chunk-3SYOVVPU.js";import{a as h}from"./chunk-4VDFQTIQ.js";import{a as i,b as B}from"./chunk-6ZGALJRB.js";import{a as A}from"./chunk-ZU6LXEUO.js";import{a as S}from"./chunk-VTMJ7INI.js";import{m as b}from"./chunk-HBP5N4FR.js";b();A();import u,{useEffect as C,useMemo as O,useRef as g}from"react";import _ from"classnames";B();var m="toastProgress",j=({id:s,children:p,progress:r,done:x,expiresIn:I=10*60,className:N="dapp-progress"})=>{let y=O(()=>{let e=r?r.endTime-r.startTime:0,n=i.session.getItem(m),d=Math.floor(Date.now()/1e3),o=r?(r.endTime-d)*100/e:0;return{currentRemaining:n&&s in n?n[s]:o,totalSeconds:e}},[]),{totalSeconds:F,currentRemaining:w}=y,t=g(null),a=g(),c=g(w);C(()=>{if(r!=null)return x?M():D(),()=>{clearInterval(a.current)}},[r,x]);function E(){let e=i.session.getItem(m);!Boolean(e==null?void 0:e[s])||(delete e[s],v(e))}function T(e){let n=i.session.getItem(m)||{};n[s]=e,v(n)}function v(e){i.session.setItem({key:m,data:e,expires:S(I)})}function M(){a.current=setInterval(()=>{if(t.current==null)return;let n=c.current-1;n<=0?(clearInterval(a.current),E(),l(0)):(T(n),l(n))},5)}function D(){let n=F/90,d=parseFloat(n.toFixed(2))*1e3;a.current=setInterval(()=>{if(t.current==null)return;let o=c.current,P=o>100-90?1:h(o),R=o-P;T(R),l(R)},d)}function l(e){c.current=e,W()}function W(){if(t.current==null)return;let e=c.current;t.current.style.width=`${e}%`,t.current.ariaValueNow=e}return r?u.createElement("div",{className:_(f.progress,N)},u.createElement("div",{ref:t,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,className:f.bar}),p):u.createElement(u.Fragment,null,p)};export{j as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZNGQR3EA.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Li=Object.create;var De=Object.defineProperty,Ci=Object.defineProperties,Pi=Object.getOwnPropertyDescriptor,Di=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertyNames,je=Object.getOwnPropertySymbols,Ri=Object.getPrototypeOf,Et=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable;var Fr=(e,t,r)=>t in e?De(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))Et.call(t,r)&&Fr(e,r,t[r]);if(je)for(var r of je(t))Ur.call(t,r)&&Fr(e,r,t[r]);return e},I=(e,t)=>Ci(e,Di(t));var ze=(e,t)=>{var r={};for(var o in e)Et.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&je)for(var o of je(e))t.indexOf(o)<0&&Ur.call(e,o)&&(r[o]=e[o]);return r};var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var qe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),se=(e,t)=>{for(var r in t)De(e,r,{get:t[r],enumerable:!0})},Br=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of Ni(t))!Et.call(e,c)&&c!==r&&De(e,c,{get:()=>t[c],enumerable:!(o=Pi(t,c))||o.enumerable});return e};var x=(e,t,r)=>(r=e!=null?Li(Ri(e)):{},Br(t||!e||!e.__esModule?De(r,"default",{value:e,enumerable:!0}):r,e)),Ne=e=>Br(De({},"__esModule",{value:!0}),e);var Gr=qe(Ke=>{"use strict";n();Ke.byteLength=Oi;Ke.toByteArray=Fi;Ke.fromByteArray=Wi;var V=[],B=[],Mi=typeof Uint8Array!="undefined"?Uint8Array:Array,Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ae=0,Wr=Lt.length;ae<Wr;++ae)V[ae]=Lt[ae],B[Lt.charCodeAt(ae)]=ae;var ae,Wr;B["-".charCodeAt(0)]=62;B["_".charCodeAt(0)]=63;function $r(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 Oi(e){var t=$r(e),r=t[0],o=t[1];return(r+o)*3/4-o}function _i(e,t,r){return(t+r)*3/4-r}function Fi(e){var t,r=$r(e),o=r[0],c=r[1],l=new Mi(_i(e,o,c)),p=0,m=c>0?o-4:o,d;for(d=0;d<m;d+=4)t=B[e.charCodeAt(d)]<<18|B[e.charCodeAt(d+1)]<<12|B[e.charCodeAt(d+2)]<<6|B[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return c===2&&(t=B[e.charCodeAt(d)]<<2|B[e.charCodeAt(d+1)]>>4,l[p++]=t&255),c===1&&(t=B[e.charCodeAt(d)]<<10|B[e.charCodeAt(d+1)]<<4|B[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Ui(e){return V[e>>18&63]+V[e>>12&63]+V[e>>6&63]+V[e&63]}function Bi(e,t,r){for(var o,c=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),c.push(Ui(o));return c.join("")}function Wi(e){for(var t,r=e.length,o=r%3,c=[],l=16383,p=0,m=r-o;p<m;p+=l)c.push(Bi(e,p,p+l>m?m:p+l));return o===1?(t=e[r-1],c.push(V[t>>2]+V[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],c.push(V[t>>10]+V[t>>4&63]+V[t<<2&63]+"=")),c.join("")}});var Vr=qe(Ct=>{n();Ct.read=function(e,t,r,o,c){var l,p,m=c*8-o-1,d=(1<<m)-1,y=d>>1,S=-7,h=r?c-1:0,D=r?-1:1,N=e[t+h];for(h+=D,l=N&(1<<-S)-1,N>>=-S,S+=m;S>0;l=l*256+e[t+h],h+=D,S-=8);for(p=l&(1<<-S)-1,l>>=-S,S+=o;S>0;p=p*256+e[t+h],h+=D,S-=8);if(l===0)l=1-y;else{if(l===d)return p?NaN:(N?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-y}return(N?-1:1)*p*Math.pow(2,l-o)};Ct.write=function(e,t,r,o,c,l){var p,m,d,y=l*8-c-1,S=(1<<y)-1,h=S>>1,D=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=o?0:l-1,te=o?1:-1,q=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(m=isNaN(t)?1:0,p=S):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+h>=1?t+=D/d:t+=D*Math.pow(2,1-h),t*d>=2&&(p++,d/=2),p+h>=S?(m=0,p=S):p+h>=1?(m=(t*d-1)*Math.pow(2,c),p=p+h):(m=t*Math.pow(2,h-1)*Math.pow(2,c),p=0));c>=8;e[r+N]=m&255,N+=te,m/=256,c-=8);for(p=p<<c|m,y+=c;y>0;e[r+N]=p&255,N+=te,p/=256,y-=8);e[r+N-te]|=q*128}});var rn=qe(ge=>{"use strict";n();var Pt=Gr(),me=Vr(),Hr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ge.Buffer=u;ge.SlowBuffer=zi;ge.INSPECT_MAX_BYTES=50;var Ye=2147483647;ge.kMaxLength=Ye;u.TYPED_ARRAY_SUPPORT=$i();!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 $i(){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 K(e){if(e>Ye)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 Mt(e)}return qr(e,t,r)}u.poolSize=8192;function qr(e,t,r){if(typeof e=="string")return Vi(e,t);if(ArrayBuffer.isView(e))return Hi(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(H(e,ArrayBuffer)||e&&H(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(H(e,SharedArrayBuffer)||e&&H(e.buffer,SharedArrayBuffer)))return Nt(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 c=ji(e);if(c)return c;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 qr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Kr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Gi(e,t,r){return Kr(e),e<=0?K(e):t!==void 0?typeof r=="string"?K(e).fill(t,r):K(e).fill(t):K(e)}u.alloc=function(e,t,r){return Gi(e,t,r)};function Mt(e){return Kr(e),K(e<0?0:Ot(e)|0)}u.allocUnsafe=function(e){return Mt(e)};u.allocUnsafeSlow=function(e){return Mt(e)};function Vi(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Yr(e,t)|0,o=K(r),c=o.write(e,t);return c!==r&&(o=o.slice(0,c)),o}function Dt(e){for(var t=e.length<0?0:Ot(e.length)|0,r=K(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function Hi(e){if(H(e,Uint8Array)){var t=new Uint8Array(e);return Nt(t.buffer,t.byteOffset,t.byteLength)}return Dt(e)}function Nt(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 ji(e){if(u.isBuffer(e)){var t=Ot(e.length)|0,r=K(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||_t(e.length)?K(0):Dt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Dt(e.data)}function Ot(e){if(e>=Ye)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ye.toString(16)+" bytes");return e|0}function zi(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(H(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),H(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,c=r.length,l=0,p=Math.min(o,c);l<p;++l)if(t[l]!==r[l]){o=t[l],c=r[l];break}return o<c?-1:c<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 c=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(H(p,Uint8Array))l+p.length>c.length?u.from(p).copy(c,l):Uint8Array.prototype.set.call(c,p,l);else if(u.isBuffer(p))p.copy(c,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return c};function Yr(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||H(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 c=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Rt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return tn(e).length;default:if(c)return o?-1:Rt(e).length;t=(""+t).toLowerCase(),c=!0}}u.byteLength=Yr;function qi(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 ns(this,t,r);case"utf8":case"utf-8":return Xr(this,t,r);case"ascii":return ts(this,t,r);case"latin1":case"binary":return rs(this,t,r);case"base64":return Qi(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return os(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function ce(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)ce(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)ce(this,r,r+3),ce(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)ce(this,r,r+7),ce(this,r+1,r+6),ce(this,r+2,r+5),ce(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Xr(this,0,t):qi.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=ge.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Hr&&(u.prototype[Hr]=u.prototype.inspect);u.prototype.compare=function(t,r,o,c,l){if(H(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),c===void 0&&(c=0),l===void 0&&(l=this.length),r<0||o>t.length||c<0||l>this.length)throw new RangeError("out of range index");if(c>=l&&r>=o)return 0;if(c>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,c>>>=0,l>>>=0,this===t)return 0;for(var p=l-c,m=o-r,d=Math.min(p,m),y=this.slice(c,l),S=t.slice(r,o),h=0;h<d;++h)if(y[h]!==S[h]){p=y[h],m=S[h];break}return p<m?-1:m<p?1:0};function Zr(e,t,r,o,c){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,_t(r)&&(r=c?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(c)return-1;r=e.length-1}else if(r<0)if(c)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:jr(e,t,r,o,c);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?c?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):jr(e,[t],r,o,c);throw new TypeError("val must be string, number or Buffer")}function jr(e,t,r,o,c){var l=1,p=e.length,m=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,m/=2,r/=2}function d(N,te){return l===1?N[te]:N.readUInt16BE(te*l)}var y;if(c){var S=-1;for(y=r;y<p;y++)if(d(e,y)===d(t,S===-1?0:y-S)){if(S===-1&&(S=y),y-S+1===m)return S*l}else S!==-1&&(y-=y-S),S=-1}else for(r+m>p&&(r=p-m),y=r;y>=0;y--){for(var h=!0,D=0;D<m;D++)if(d(e,y+D)!==d(t,D)){h=!1;break}if(h)return y}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return Zr(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return Zr(this,t,r,o,!1)};function Ki(e,t,r,o){r=Number(r)||0;var c=e.length-r;o?(o=Number(o),o>c&&(o=c)):o=c;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var m=parseInt(t.substr(p*2,2),16);if(_t(m))return p;e[r+p]=m}return p}function Yi(e,t,r,o){return Ze(Rt(t,e.length-r),e,r,o)}function Zi(e,t,r,o){return Ze(as(t),e,r,o)}function Xi(e,t,r,o){return Ze(tn(t),e,r,o)}function Ji(e,t,r,o){return Ze(cs(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,c){if(r===void 0)c="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")c=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,c===void 0&&(c="utf8")):(c=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");c||(c="utf8");for(var p=!1;;)switch(c){case"hex":return Ki(this,t,r,o);case"utf8":case"utf-8":return Yi(this,t,r,o);case"ascii":case"latin1":case"binary":return Zi(this,t,r,o);case"base64":return Xi(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ji(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Qi(e,t,r){return t===0&&r===e.length?Pt.fromByteArray(e):Pt.fromByteArray(e.slice(t,r))}function Xr(e,t,r){r=Math.min(e.length,r);for(var o=[],c=t;c<r;){var l=e[c],p=null,m=l>239?4:l>223?3:l>191?2:1;if(c+m<=r){var d,y,S,h;switch(m){case 1:l<128&&(p=l);break;case 2:d=e[c+1],(d&192)===128&&(h=(l&31)<<6|d&63,h>127&&(p=h));break;case 3:d=e[c+1],y=e[c+2],(d&192)===128&&(y&192)===128&&(h=(l&15)<<12|(d&63)<<6|y&63,h>2047&&(h<55296||h>57343)&&(p=h));break;case 4:d=e[c+1],y=e[c+2],S=e[c+3],(d&192)===128&&(y&192)===128&&(S&192)===128&&(h=(l&15)<<18|(d&63)<<12|(y&63)<<6|S&63,h>65535&&h<1114112&&(p=h))}}p===null?(p=65533,m=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),c+=m}return es(o)}var zr=4096;function es(e){var t=e.length;if(t<=zr)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=zr));return r}function ts(e,t,r){var o="";r=Math.min(e.length,r);for(var c=t;c<r;++c)o+=String.fromCharCode(e[c]&127);return o}function rs(e,t,r){var o="";r=Math.min(e.length,r);for(var c=t;c<r;++c)o+=String.fromCharCode(e[c]);return o}function ns(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var c="",l=t;l<r;++l)c+=ls[e[l]];return c}function os(e,t,r){for(var o=e.slice(t,r),c="",l=0;l<o.length-1;l+=2)c+=String.fromCharCode(o[l]+o[l+1]*256);return c}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 c=this.subarray(t,r);return Object.setPrototypeOf(c,u.prototype),c};function C(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||C(t,r,this.length);for(var c=this[t],l=1,p=0;++p<r&&(l*=256);)c+=this[t+p]*l;return c};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||C(t,r,this.length);for(var c=this[t+--r],l=1;r>0&&(l*=256);)c+=this[t+--r]*l;return c};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||C(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||C(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||C(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||C(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||C(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||C(t,r,this.length);for(var c=this[t],l=1,p=0;++p<r&&(l*=256);)c+=this[t+p]*l;return l*=128,c>=l&&(c-=Math.pow(2,8*r)),c};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||C(t,r,this.length);for(var c=r,l=1,p=this[t+--c];c>0&&(l*=256);)p+=this[t+--c]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||C(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||C(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||C(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||C(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||C(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||C(t,4,this.length),me.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||C(t,4,this.length),me.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||C(t,8,this.length),me.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||C(t,8,this.length),me.read(this,t,!1,52,8)};function F(e,t,r,o,c,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>c||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,c){if(t=+t,r=r>>>0,o=o>>>0,!c){var l=Math.pow(2,8*o)-1;F(this,t,r,o,l,0)}var p=1,m=0;for(this[r]=t&255;++m<o&&(p*=256);)this[r+m]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,c){if(t=+t,r=r>>>0,o=o>>>0,!c){var l=Math.pow(2,8*o)-1;F(this,t,r,o,l,0)}var p=o-1,m=1;for(this[r+p]=t&255;--p>=0&&(m*=256);)this[r+p]=t/m&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||F(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||F(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||F(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||F(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||F(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,c){if(t=+t,r=r>>>0,!c){var l=Math.pow(2,8*o-1);F(this,t,r,o,l-1,-l)}var p=0,m=1,d=0;for(this[r]=t&255;++p<o&&(m*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+o};u.prototype.writeIntBE=function(t,r,o,c){if(t=+t,r=r>>>0,!c){var l=Math.pow(2,8*o-1);F(this,t,r,o,l-1,-l)}var p=o-1,m=1,d=0;for(this[r+p]=t&255;--p>=0&&(m*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||F(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||F(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||F(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||F(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||F(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function Jr(e,t,r,o,c,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Qr(e,t,r,o,c){return t=+t,r=r>>>0,c||Jr(e,t,r,4,34028234663852886e22,-34028234663852886e22),me.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return Qr(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return Qr(this,t,r,!1,o)};function en(e,t,r,o,c){return t=+t,r=r>>>0,c||Jr(e,t,r,8,17976931348623157e292,-17976931348623157e292),me.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return en(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return en(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,c){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!c&&c!==0&&(c=this.length),r>=t.length&&(r=t.length),r||(r=0),c>0&&c<o&&(c=o),c===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(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),t.length-r<c-o&&(c=t.length-r+o);var l=c-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,c):Uint8Array.prototype.set.call(t,this.subarray(o,c),r),l};u.prototype.fill=function(t,r,o,c){if(typeof t=="string"){if(typeof r=="string"?(c=r,r=0,o=this.length):typeof o=="string"&&(c=o,o=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!u.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(t.length===1){var l=t.charCodeAt(0);(c==="utf8"&&l<128||c==="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 m=u.isBuffer(t)?t:u.from(t,c),d=m.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=m[p%d]}return this};var is=/[^+/0-9A-Za-z-_]/g;function ss(e){if(e=e.split("=")[0],e=e.trim().replace(is,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Rt(e,t){t=t||1/0;for(var r,o=e.length,c=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!c){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}c=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),c=r;continue}r=(c-55296<<10|r-56320)+65536}else c&&(t-=3)>-1&&l.push(239,191,189);if(c=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 as(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function cs(e,t){for(var r,o,c,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,c=r%256,l.push(c),l.push(o);return l}function tn(e){return Pt.toByteArray(ss(e))}function Ze(e,t,r,o){for(var c=0;c<o&&!(c+r>=t.length||c>=e.length);++c)t[c+r]=e[c];return c}function H(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function _t(e){return e!==e}var ls=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,c=0;c<16;++c)t[o+c]=e[r]+e[c];return t}()});var cn=qe((hl,an)=>{n();var E=an.exports={},j,z;function Ft(){throw new Error("setTimeout has not been defined")}function Ut(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?j=setTimeout:j=Ft}catch(e){j=Ft}try{typeof clearTimeout=="function"?z=clearTimeout:z=Ut}catch(e){z=Ut}})();function nn(e){if(j===setTimeout)return setTimeout(e,0);if((j===Ft||!j)&&setTimeout)return j=setTimeout,setTimeout(e,0);try{return j(e,0)}catch(t){try{return j.call(null,e,0)}catch(r){return j.call(this,e,0)}}}function ps(e){if(z===clearTimeout)return clearTimeout(e);if((z===Ut||!z)&&clearTimeout)return z=clearTimeout,clearTimeout(e);try{return z(e)}catch(t){try{return z.call(null,e)}catch(r){return z.call(this,e)}}}var Y=[],fe=!1,le,Xe=-1;function us(){!fe||!le||(fe=!1,le.length?Y=le.concat(Y):Xe=-1,Y.length&&on())}function on(){if(!fe){var e=nn(us);fe=!0;for(var t=Y.length;t;){for(le=Y,Y=[];++Xe<t;)le&&le[Xe].run();Xe=-1,t=Y.length}le=null,fe=!1,ps(e)}}E.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Y.push(new sn(e,t)),Y.length===1&&!fe&&nn(on)};function sn(e,t){this.fun=e,this.array=t}sn.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function Z(){}E.on=Z;E.addListener=Z;E.once=Z;E.off=Z;E.removeListener=Z;E.removeAllListeners=Z;E.emit=Z;E.prependListener=Z;E.prependOnceListener=Z;E.listeners=function(e){return[]};E.binding=function(e){throw new Error("process.binding is not supported")};E.cwd=function(){return"/"};E.chdir=function(e){throw new Error("process.chdir is not supported")};E.umask=function(){return 0}});var i,s,xl,n=T(()=>{i=x(rn()),s=x(cn()),xl=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 Te=T(()=>{"use strict";n()});var ln=T(()=>{"use strict";n()});var pn=T(()=>{"use strict";n()});var un=T(()=>{"use strict";n()});var L=T(()=>{"use strict";n()});var dn=T(()=>{"use strict";n()});var mn=T(()=>{"use strict";n()});var R=T(()=>{"use strict";n()});var gn=T(()=>{"use strict";n()});var fn=T(()=>{"use strict";n()});var M=T(()=>{"use strict";n();ln();pn();un();L();dn();mn();R();gn();fn()});var Bt,Tn,Ul,yn,Bl,hn,Wl,$l,Gl,xn=T(()=>{"use strict";n();M();Bt={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Tn,egldLabel:Ul}=Bt["devnet"],{chainId:yn,egldLabel:Bl}=Bt["testnet"],{chainId:hn,egldLabel:Wl}=Bt["mainnet"],$l={["devnet"]:Tn,["testnet"]:yn,["mainnet"]:hn},Gl={[Tn]:"devnet",[yn]:"testnet",[hn]:"mainnet"}});var Wt=T(()=>{"use strict";n()});var Sn=T(()=>{"use strict";n()});var Je,$t=T(()=>{"use strict";n();Je="transaction-status-toast-id"});var Re,Qe,wn,et,vn,ye,b=T(()=>{"use strict";n();Te();xn();Wt();Sn();$t();Re=5e4,Qe=1e9,wn=1,et="logout",vn="login",ye="0"});var Me,tt=T(()=>{"use strict";n();Me=()=>Date.now()/1e3});var In=T(()=>{"use strict";n()});var An=T(()=>{"use strict";n()});var Gt=T(()=>{"use strict";n();tt();In();An()});var Ht={};se(Ht,{getItem:()=>ms,localStorageKeys:()=>re,removeItem:()=>gs,setItem:()=>ds});var re,Vt,ds,ms,gs,he=T(()=>{"use strict";n();Gt();re={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Vt=typeof localStorage!="undefined",ds=({key:e,data:t,expires:r})=>{!Vt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},ms=e=>{if(!Vt)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Me()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},gs=e=>{!Vt||localStorage.removeItem(String(e))}});var jt={};se(jt,{clear:()=>Ln,getItem:()=>kn,removeItem:()=>En,setItem:()=>bn,storage:()=>fs});var bn,kn,En,Ln,fs,Cn=T(()=>{"use strict";n();bn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},kn=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},En=e=>sessionStorage.removeItem(String(e)),Ln=()=>sessionStorage.clear(),fs={setItem:bn,getItem:kn,removeItem:En,clear:Ln}});var pe,xe=T(()=>{"use strict";n();he();Cn();pe={session:jt,local:Ht}});var zt,P,X,O=T(()=>{"use strict";n();zt=require("@reduxjs/toolkit");b();P=(0,zt.createAction)(et),X=(0,zt.createAction)(vn,e=>({payload:e}))});var Kt,Pn,Dn,rt,qt,Nn,Yt,Tp,Zt,yp,Ts,ys,hp,xp,Sp,hs,Rn,Xt=T(()=>{"use strict";n();Kt=require("@multiversx/sdk-core"),Pn=require("@reduxjs/toolkit"),Dn=require("redux-persist");b();xe();he();O();rt={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:ye},qt={address:"",websocketEvent:null,accounts:{"":rt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Nn=(0,Pn.createSlice)({name:"accountInfoSlice",initialState:qt,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Kt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:rt},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(P,()=>(pe.local.removeItem(re.loginExpiresAt),qt)),e.addCase(X,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new Kt.Address(o).hex()}),e.addCase(Dn.REHYDRATE,(t,r)=>{var y;if(!((y=r.payload)!=null&&y.account))return;let{account:o}=r.payload,{address:c,shard:l,accounts:p,publicKey:m}=o;t.address=c,t.shard=l;let d=p&&c in p;t.accounts=d?p:qt.accounts,t.publicKey=m})}}),{setAccount:Yt,setAddress:Tp,setAccountNonce:Zt,setAccountShard:yp,setLedgerAccount:Ts,updateLedgerAccount:ys,setWalletConnectAccount:hp,setIsAccountLoading:xp,setAccountLoadingError:Sp,setWebsocketEvent:hs}=Nn.actions,Rn=Nn.reducer});function Oe(){return new Date().setHours(new Date().getHours()+24)}function _e(e){pe.local.setItem({key:re.loginExpiresAt,data:e,expires:e})}var Jt=T(()=>{"use strict";n();xe();he()});var On,Mn,_n,Pp,Fn,xs,Ss,Dp,ws,Un,Np,Bn,Qt=T(()=>{"use strict";n();On=require("@reduxjs/toolkit");Jt();L();O();Mn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,isLoginSessionInvalid:!1},_n=(0,On.createSlice)({name:"loginInfoSlice",initialState:Mn,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,()=>Mn),e.addCase(X,(t,r)=>{t.loginMethod=r.payload.loginMethod,_e(Oe())})}}),{setLoginMethod:Pp,setWalletConnectLogin:Fn,setLedgerLogin:xs,setTokenLogin:Ss,setTokenLoginSignature:Dp,setWalletLogin:ws,invalidateLoginSession:Un,setLogoutRoute:Np}=_n.actions,Bn=_n.reducer});var $n,Wn,Gn,_p,vs,Fp,Is,Vn,er=T(()=>{"use strict";n();$n=require("@reduxjs/toolkit");O();Wn={},Gn=(0,$n.createSlice)({name:"modalsSlice",initialState:Wn,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,()=>Wn)}}),{setTxSubmittedModal:_p,setNotificationModal:vs,clearTxSubmittedModal:Fp,clearNotificationModal:Is}=Gn.actions,Vn=Gn.reducer});var Fe=T(()=>{"use strict";n()});var jn=T(()=>{"use strict";n();Fe()});function tr(e){return e[Math.floor(Math.random()*e.length)]}var zn=T(()=>{"use strict";n()});var rr=T(()=>{"use strict";n();Wt()});var Se=T(()=>{"use strict";n();jn();zn();rr()});var qn,Kn,nr,As,Yn,Jp,Qp,Zn,or=T(()=>{"use strict";n();qn=require("@reduxjs/toolkit"),Kn=x(require("lodash.omit"));Se();nr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},As={network:nr,chainID:"-1"},Yn=(0,qn.createSlice)({name:"appConfig",initialState:As,reducers:{initializeNetworkConfig:(e,t)=>{let r=tr(t.payload.walletConnectBridgeAddresses),o=tr(t.payload.walletConnectV2RelayAddresses),c=(0,Kn.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=I(f(f({},e.network),c),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Jp,setChainID:Qp}=Yn.actions,Zn=Yn.reducer});var Xn,ir,Jn,iu,su,au,nt,ot=T(()=>{"use strict";n();Xn=require("@reduxjs/toolkit");M();O();ir={isSigning:!1,signedSessions:{}},Jn=(0,Xn.createSlice)({name:"signedMessageInfoSliceState",initialState:ir,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:c}=t.payload;return I(f({},e),{errorMessage:c!=null?c:e.errorMessage,isSigning:o.status==="pending",signedSessions:I(f({},e.signedSessions),{[r]:o})})},setSignSessionState:(e,t)=>f(f({},e),t.payload),clearSignedMessageInfo:()=>ir},extraReducers:e=>{e.addCase(P,()=>ir)}}),{setSignSession:iu,clearSignedMessageInfo:su,setSignSessionState:au}=Jn.actions,nt=Jn.reducer});var eo,to,Qn,ro,bs,sr,fu,Tu,yu,hu,it,st=T(()=>{"use strict";n();eo=require("@reduxjs/toolkit"),to=require("redux-persist");$t();M();tt();O();Qn={customToasts:[],transactionToasts:[],failTransactionToast:null},ro=(0,eo.createSlice)({name:"toastsSlice",initialState:Qn,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(I(f({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Me(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=I(f({},t.payload),{toastId:Je})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(P,()=>Qn),e.addCase(to.REHYDRATE,(t,r)=>{var c,l;let o=(l=(c=r.customToasts)==null?void 0:c.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:bs,removeCustomToast:sr,addTransactionToast:fu,removeTransactionToast:Tu,addFailTransactionToast:yu,removeFailTransactionToast:hu}=ro.actions,it=ro.reducer});var no,cr,lr,pr,ks,ar,oo,vu,Es,ur,at,ct=T(()=>{"use strict";n();no=require("@reduxjs/toolkit");O();cr="Transaction failed",lr="Transaction successful",pr="Processing transaction",ks="Transaction submitted",ar={},oo=(0,no.createSlice)({name:"transactionsInfo",initialState:ar,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||cr,successMessage:(o==null?void 0:o.successMessage)||lr,processingMessage:(o==null?void 0:o.processingMessage)||pr,submittedMessage:(o==null?void 0:o.submittedMessage)||ks,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>ar},extraReducers:e=>{e.addCase(P,()=>ar)}}),{clearTransactionsInfo:vu,setTransactionsDisplayInfo:Es,clearTransactionsInfoForSessionId:ur}=oo.actions,at=oo.reducer});function we(e){return e!=null&&(Os(e)||Bs(e))}function ve(e){return e!=null&&(_s(e)||Ws(e))}function Ie(e){return e!=null&&(Fs(e)||$s(e))}function dr(e){return e!=null&&Us(e)}function Os(e){return e!=null&&Ls.includes(e)}function _s(e){return e!=null&&Cs.includes(e)}function Fs(e){return e!=null&&Ps.includes(e)}function Us(e){return e!=null&&Ds.includes(e)}function Bs(e){return e!=null&&Ns.includes(e)}function Ws(e){return e!=null&&Rs.includes(e)}function $s(e){return e!=null&&Ms.includes(e)}var Ls,Cs,Ps,Ds,Ns,Rs,Ms,Ae=T(()=>{"use strict";n();L();Ls=["sent"],Cs=["success"],Ps=["fail","cancelled","timedOut"],Ds=["timedOut"],Ns=["pending"],Rs=["success"],Ms=["fail","invalid"]});var io,so,Be,Gs,ao,co,lo,Vs,lt,Hs,js,Du,zs,pt,mr,ut,dt=T(()=>{"use strict";n();io=require("@reduxjs/toolkit"),so=require("redux-persist");L();Ae();O();Be={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Gs={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},ao=(0,io.createSlice)({name:"transactionsSlice",initialState:Be,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,y;let{sessionId:r,transactions:o,errorMessage:c,status:l,redirectRoute:p}=t.payload,m=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||Gs;e.signedTransactions[r]={transactions:o,status:l,errorMessage:c,redirectRoute:p,customTransactionInformation:m},((y=e==null?void 0:e.transactionsToSign)==null?void 0:y.sessionId)===r&&(e.transactionsToSign=Be.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=f(f({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:c,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,c!=null&&(e.signedTransactions[r].errorMessage=c),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var m,d,y,S,h,D;let{sessionId:r,status:o,errorMessage:c,transactionHash:l}=t.payload,p=(d=(m=e.signedTransactions)==null?void 0:m[r])==null?void 0:d.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(q=>q.hash===l?I(f({},q),{status:o,errorMessage:c}):q);let N=(S=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:S.every(q=>ve(q.status)),te=(D=(h=e.signedTransactions[r])==null?void 0:h.transactions)==null?void 0:D.every(q=>Ie(q.status));N&&(e.signedTransactions[r].status="success"),te&&(e.signedTransactions[r].status="fail")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=Be.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Be.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(P,()=>Be),e.addCase(so.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:c}=r.payload.transactions,l=Object.entries(o).reduce((m,[d,y])=>{let S=new Date(d),h=new Date;return h.setHours(h.getHours()+5),h-S>0||(m[d]=y),m},{});c!=null&&(t.customTransactionInformationForSessionId=c),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:co,updateSignedTransactions:lo,setTransactionsToSign:Vs,clearAllTransactionsToSign:lt,clearAllSignedTransactions:Hs,clearSignedTransaction:js,clearTransactionToSign:Du,setSignTransactionsError:zs,setSignTransactionsCancelMessage:pt,moveTransactionsToSignedState:mr}=ao.actions,ut=ao.reducer});var k=T(()=>{"use strict";n();Xt();Qt();er();or();ot();st();ct();dt()});var gr=T(()=>{"use strict";n()});var fo,go,To,fr,td,rd,nd,od,yo,ho,Tr=T(()=>{"use strict";n();fo=require("@reduxjs/toolkit");O();go={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},To=(0,fo.createSlice)({name:"dappModalsSlice",initialState:go,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=f({},t.payload)}},extraReducers:e=>{e.addCase(P,()=>go)}}),{setDappModalVisibility:fr,setDappModalHeaderVisibility:td,setDappModalFooterVisibility:rd,setDappModalHeaderText:nd,setDappModalFooterText:od,setDappModalConfig:yo}=To.actions,ho=To.reducer});var xo,Zs,Xs,be,Tt=T(()=>{"use strict";n();xo=require("@reduxjs/toolkit");gr();Xt();Tr();Qt();er();or();ot();st();ct();dt();Zs={["account"]:Rn,["dappModal"]:ho,["loginInfo"]:Bn,["modals"]:Vn,["networkConfig"]:Zn,["signedMessageInfo"]:nt,["toasts"]:it,["transactionsInfo"]:at,["transactions"]:ut},Xs=(e={})=>(0,xo.combineReducers)(f(f({},Zs),e)),be=Xs});var vo={};se(vo,{default:()=>ia});function yt(e,t=[]){return{key:e,version:1,storage:wo.default,blacklist:t}}var ne,So,wo,Js,Qs,ea,ta,ra,na,oa,ia,Io=T(()=>{"use strict";n();ne=require("redux-persist"),So=x(require("redux-persist/lib/storage")),wo=x(require("redux-persist/lib/storage/session"));Tt();k();ot();st();ct();dt();gr();Js={2:e=>I(f({},e),{networkConfig:nr})};Qs=yt("sdk-dapp-transactionsInfo"),ea=yt("sdk-dapp-transactions",["transactionsToSign"]),ta=yt("sdk-dapp-toasts"),ra=yt("sdk-dapp-signedMessageInfo"),na={key:"sdk-dapp-store",version:2,storage:So.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,ne.createMigrate)(Js,{debug:!1})},oa={["toasts"]:(0,ne.persistReducer)(ta,it),["transactions"]:(0,ne.persistReducer)(ea,ut),["transactionsInfo"]:(0,ne.persistReducer)(Qs,at),["signedMessageInfo"]:(0,ne.persistReducer)(ra,nt)},ia=(0,ne.persistReducer)(na,be(oa))});var Ao={};se(Ao,{default:()=>sa});var sa,bo=T(()=>{"use strict";n();Tt();sa=be()});var ko={};se(ko,{default:()=>ca});var $,aa,ca,Eo=T(()=>{"use strict";n();$=require("redux-persist"),aa=[$.FLUSH,$.REHYDRATE,$.PAUSE,$.PERSIST,$.PURGE,$.REGISTER],ca=aa});var Po={};se(Po,{default:()=>Co});function Co(e){return(0,Lo.persistStore)(e)}var Lo,Do=T(()=>{"use strict";n();Lo=require("redux-persist")});var ml={};se(ml,{useDappModal:()=>dl});module.exports=Ne(ml);n();n();var Pe=require("react");n();n();n();var Fo=require("react"),ke=require("react-redux");n();var yr=require("@reduxjs/toolkit"),Oo=require("react-redux/lib/utils/Subscription");k();n();var uo=x(require("lodash.throttle"));b();n();var po=x(require("lodash.isequal")),mt=require("reselect");M();var g=(0,mt.createSelectorCreator)(mt.defaultMemoize,po.default),We=(e,t)=>e!=""&&Boolean(t);k();Jt();xe();he();var qs=[et],gt=!1,Ks=(0,uo.default)(()=>{_e(Oe())},5e3),mo=e=>t=>r=>{var d;if(qs.includes(r.type))return t(r);let o=e.getState(),c=pe.local.getItem(re.loginExpiresAt);if(!We((d=o==null?void 0:o.loginInfo)==null?void 0:d.loginMethod,o==null?void 0:o.account.address))return t(r);if(c==null)return _e(Oe());let p=Date.now();return c-p<0&&!gt?setTimeout(()=>{gt=!0,e.dispatch(Un())},1e3):(gt&&(gt=!1),Ks()),t(r)};n();n();function ft(){return typeof sessionStorage!="undefined"}var No=ft()?(Io(),Ne(vo)).default:(bo(),Ne(Ao)).default,Ro=ft()?(Eo(),Ne(ko)).default:[],Mo=ft()?(Do(),Ne(Po)).default:e=>e;Tt();var v=(0,yr.configureStore)({reducer:No,middleware:e=>e({serializableCheck:{ignoredActions:[...Ro,Zt.type,Yt.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(mo)}),_o=(0,Oo.createSubscription)(v),Dd=Mo(v),Nd=(0,yr.configureStore)({reducer:be});var la={store:v,subscription:_o},hr=(0,Fo.createContext)(la),_d=(0,ke.createStoreHook)(hr),_=(0,ke.createDispatchHook)(hr),A=(0,ke.createSelectorHook)(hr);n();n();k();var J=e=>e.account,Ee=g(J,e=>e.address),$e=g(J,Ee,(e,t)=>t in e.accounts?e.accounts[t]:rt),pa=g(J,$e,(e,t)=>{let c=e,{accounts:r}=c,o=ze(c,["accounts"]);return I(f({},o),{account:t})}),ua=g($e,e=>e.balance),da=g($e,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Wd=g(J,e=>e.shard),ma=g(J,e=>e.ledgerAccount),$d=g(J,e=>e.walletConnectAccount),Gd=g(J,e=>e.isAccountLoading),Vd=g(J,e=>e.accountLoadingError),Uo=g(J,e=>e.websocketEvent);n();var G=e=>e.loginInfo,qd=g(G,e=>e.loginMethod),xr=g(G,Ee,(e,t)=>We(e.loginMethod,t)),Kd=g(G,e=>e.walletConnectLogin),Yd=g(G,e=>e.ledgerLogin),ga=g(G,e=>e.walletLogin),Zd=g(G,e=>e.isLoginSessionInvalid),fa=g(G,e=>e.tokenLogin),Xd=g(G,e=>e.logoutRoute);n();var Bo=e=>e.modals,em=g(Bo,e=>e.txSubmittedModal),Ta=g(Bo,e=>e.notificationModal);n();var Q=e=>e.networkConfig,ht=g(Q,e=>e.chainID),ya=g(Q,e=>e.network.walletConnectBridgeAddress),ha=g(Q,e=>e.network.walletConnectV2RelayAddress),xa=g(Q,e=>e.network.walletConnectV2ProjectId),Sa=g(Q,e=>e.network.walletConnectV2Options),Wo=g(Q,e=>e.network.walletConnectDeepLink),oe=g(Q,e=>e.network),$o=g(oe,e=>e.apiAddress),Go=g(oe,e=>e.explorerAddress),Vo=g(oe,e=>e.egldLabel);n();var Sr=e=>e.signedMessageInfo,im=g(Sr,e=>e.isSigning),sm=g(Sr,e=>e.errorMessage),am=g(Sr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});n();var wr=e=>e.toasts,pm=g(wr,e=>e.customToasts),um=g(wr,e=>e.transactionToasts),dm=g(wr,e=>e.failTransactionToast);n();k();var Ho={errorMessage:cr,successMessage:lr,processingMessage:pr},wa=e=>e.transactionsInfo,va=g(wa,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Ho);n();n();var U=require("@multiversx/sdk-core");b();n();function vr(e){try{return i.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function xt(e){var c,l,p;let{data:t}=e,r=vr(t!=null?t:"")?U.TransactionPayload.fromEncoded(t):new U.TransactionPayload(t),o=new U.Transaction(f({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new U.Address(e.receiver),sender:new U.Address(e.sender),gasLimit:(c=e.gasLimit.valueOf())!=null?c:Re,gasPrice:(l=e.gasPrice.valueOf())!=null?l:Qe,chainID:e.chainID.valueOf(),version:new U.TransactionVersion((p=e.version)!=null?p:wn)},e.options?{options:new U.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new U.Address(e.sender)),o}n();Ae();n();var Aa=x(require("bignumber.js"));M();n();n();n();n();var ka=require("@multiversx/sdk-core"),Ea=x(require("bignumber.js"));L();n();var ba=require("@multiversx/sdk-core");n();n();n();var Ca=require("@multiversx/sdk-core/out");n();b();n();var qo=require("@multiversx/sdk-core");M();n();n();n();n();L();n();n();n();n();n();n();n();n();n();n();n();R();n();n();R();n();n();n();var Ua=x(require("bignumber.js"));b();n();var Fa=require("@multiversx/sdk-core"),Ar=x(require("bignumber.js"));b();n();var Oa=x(require("bignumber.js"));n();Ar.default.config({ROUNDING_MODE:Ar.default.ROUND_FLOOR});n();n();n();b();n();n();n();n();b();n();b();n();var Ba=require("@multiversx/sdk-core");b();n();var Ge=require("@multiversx/sdk-core"),Ga=require("@multiversx/sdk-network-providers");b();n();n();var Wa=x(require("bignumber.js"));b();n();b();n();n();n();n();n();b();n();R();var Ha=["reDelegateRewards","claimRewards","unBond"],ja=["wrapEgld","unwrapEgld"],za=["unStake"],qa=["unDelegate"];n();n();n();b();n();var Ja=x(require("bignumber.js"));n();n();n();R();n();var Qa=x(require("bignumber.js"));n();n();n();n();R();n();n();n();var rc=x(require("linkifyjs"));n();b();n();var nc=x(require("bignumber.js"));n();M();n();n();L();n();L();n();n();n();R();n();R();n();var oc=x(require("bignumber.js"));b();R();n();R();n();var ei=require("react");M();n();n();R();n();var ic=require("@multiversx/sdk-core/out"),sc=x(require("bignumber.js"));R();n();R();n();n();L();var Fh=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var ti=require("react");M();n();var cc=require("react");R();var Hh=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var It=e=>e.transactions,Le=g(It,e=>e.signedTransactions),lc=g(It,e=>e.signTransactionsError),ri=g(It,e=>e.signTransactionsCancelMessage),At=e=>t=>Object.entries(t).reduce((r,[o,c])=>(e(c.status)&&(r[o]=c),r),{}),ni=g(Le,At(we)),oi=g(Le,At(ve)),ii=g(Le,At(Ie)),pc=g(Le,At(dr)),si=g(It,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:I(f({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>xt(r)))||[]})}),uc=g(Le,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});n();var ai=require("react");n();k();n();n();n();var mc=require("react"),gc=require("@multiversx/sdk-web-wallet-provider"),fc=x(require("qs"));b();k();L();n();var mi=require("react"),Pc=require("@multiversx/sdk-extension-provider");b();n();n();n();n();var Tc=require("@multiversx/sdk-extension-provider"),yc=require("@multiversx/sdk-hw-provider"),hc=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),xc=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),Sc=require("@multiversx/sdk-web-wallet-provider");b();L();var ee=e=>`Unable to perform ${e}, Provider not initialized`,kr=class{init(){return Promise.resolve(!1)}login(t){throw new Error(ee(`login with options: ${t}`))}logout(t){throw new Error(ee(`logout with options: ${t}`))}getAddress(){throw new Error(ee("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(ee(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(ee(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(ee(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(ee(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(ee(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(ee(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},wc=new kr;k();L();n();n();n();n();n();var vc=x(require("axios"));n();n();n();n();var di=require("react"),kc=require("@multiversx/sdk-extension-provider");b();n();n();n();n();n();n();n();n();var Ve=x(require("react"));var ew=(0,Ve.createContext)({}),tw=v.getState();n();var ui=x(require("react"));n();var Pr=x(require("react")),Ic=x(require("axios"));n();n();k();n();n();var Nc=x(require("axios")),Rc=x(require("swr"));n();n();var Mc=x(require("axios"));n();var fi=require("react");n();var gi=require("react");rr();k();M();n();n();Fe();n();Te();k();n();n();n();n();n();n();k();n();L();Ae();n();n();n();var _c=x(require("axios"));n();var Fc=x(require("axios"));n();var Bc=x(require("axios"));n();n();var Wc=x(require("axios"));n();var $c=x(require("axios"));n();k();L();n();n();k();n();n();var hi=require("@multiversx/sdk-core");n();O();M();n();Ae();n();k();L();n();k();M();n();var Xc=require("react");n();n();n();k();n();n();var jc=x(require("bignumber.js"));b();k();M();n();var Hc=x(require("bignumber.js"));b();n();var zc=require("@multiversx/sdk-core"),qc=x(require("bignumber.js"));b();n();n();n();var xi,t0={hostname:typeof window!="undefined"?(xi=window==null?void 0:window.location)==null?void 0:xi.hostname:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60};n();n();var Kc=x(require("axios"));n();n();n();n();tt();L();Ae();n();n();n();n();var Si=require("react");n();n();var Qc=require("react"),el=require("@multiversx/sdk-extension-provider");Te();O();L();n();Se();n();var Jc=require("react"),wi=require("@multiversx/sdk-core");k();n();n();var nl=require("react");Te();k();n();n();n();Gt();n();n();var tl=x(require("platform"));n();O();M();Fe();xe();he();n();n();n();n();n();n();Fe();n();n();n();n();xe();n();n();n();k();n();n();var rl=x(require("axios"));n();var Ii=require("react"),ol=require("@multiversx/sdk-hw-provider");Te();O();k();L();Se();n();var Mr=require("react"),al=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");O();k();L();Se();n();var Or=require("react"),cl=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");O();k();L();Se();n();n();var Ai=require("react");n();var ul=require("react");n();var _r=require("react"),pl=require("socket.io-client");k();n();n();n();n();var bi=e=>e.dappModal,ki=g(bi,e=>e.visible),Ce=g(bi,e=>e.modal),_C=g(Ce,e=>e.showHeader),FC=g(Ce,e=>e.showFooter),UC=g(Ce,e=>e.headerText),BC=g(Ce,e=>e.footerText);var Ei=()=>A(ki);Tr();var dl=e=>{var m;let t=_(),r=Ei(),o=A(Ce),c=()=>{t(fr(!0))},l=()=>{t(fr(!1))},p=(0,Pe.useCallback)(d=>{t(yo(d))},[]);return(0,Pe.useEffect)(()=>{e!=null&&e.modalConfig&&p(e==null?void 0:e.modalConfig)},[e==null?void 0:e.modalConfig]),(0,Pe.useEffect)(()=>{var d;return(d=e==null?void 0:e.config)!=null&&d.openOnMount&&c(),()=>{l()}},[]),(0,Pe.useEffect)(()=>{var d;typeof((d=e==null?void 0:e.config)==null?void 0:d.visible)=="boolean"&&(e.config.visible?c():l())},[(m=e==null?void 0:e.config)==null?void 0:m.visible]),{handleShowModal:c,handleHideModal:l,setModalConfig:p,visible:r,config:o}};0&&(module.exports={useDappModal});
|
|
1
|
+
"use strict";var Li=Object.create;var De=Object.defineProperty,Pi=Object.defineProperties,Ci=Object.getOwnPropertyDescriptor,Di=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertyNames,je=Object.getOwnPropertySymbols,Ri=Object.getPrototypeOf,Et=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable;var _r=(e,t,r)=>t in e?De(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))Et.call(t,r)&&_r(e,r,t[r]);if(je)for(var r of je(t))Ur.call(t,r)&&_r(e,r,t[r]);return e},I=(e,t)=>Pi(e,Di(t));var ze=(e,t)=>{var r={};for(var o in e)Et.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&je)for(var o of je(e))t.indexOf(o)<0&&Ur.call(e,o)&&(r[o]=e[o]);return r};var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var qe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),se=(e,t)=>{for(var r in t)De(e,r,{get:t[r],enumerable:!0})},Br=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of Ni(t))!Et.call(e,c)&&c!==r&&De(e,c,{get:()=>t[c],enumerable:!(o=Ci(t,c))||o.enumerable});return e};var x=(e,t,r)=>(r=e!=null?Li(Ri(e)):{},Br(t||!e||!e.__esModule?De(r,"default",{value:e,enumerable:!0}):r,e)),Ne=e=>Br(De({},"__esModule",{value:!0}),e);var $r=qe(Ke=>{"use strict";n();Ke.byteLength=Oi;Ke.toByteArray=_i;Ke.fromByteArray=Wi;var V=[],B=[],Mi=typeof Uint8Array!="undefined"?Uint8Array:Array,Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ae=0,Wr=Lt.length;ae<Wr;++ae)V[ae]=Lt[ae],B[Lt.charCodeAt(ae)]=ae;var ae,Wr;B["-".charCodeAt(0)]=62;B["_".charCodeAt(0)]=63;function Gr(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 Oi(e){var t=Gr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Fi(e,t,r){return(t+r)*3/4-r}function _i(e){var t,r=Gr(e),o=r[0],c=r[1],l=new Mi(Fi(e,o,c)),p=0,m=c>0?o-4:o,d;for(d=0;d<m;d+=4)t=B[e.charCodeAt(d)]<<18|B[e.charCodeAt(d+1)]<<12|B[e.charCodeAt(d+2)]<<6|B[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return c===2&&(t=B[e.charCodeAt(d)]<<2|B[e.charCodeAt(d+1)]>>4,l[p++]=t&255),c===1&&(t=B[e.charCodeAt(d)]<<10|B[e.charCodeAt(d+1)]<<4|B[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Ui(e){return V[e>>18&63]+V[e>>12&63]+V[e>>6&63]+V[e&63]}function Bi(e,t,r){for(var o,c=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),c.push(Ui(o));return c.join("")}function Wi(e){for(var t,r=e.length,o=r%3,c=[],l=16383,p=0,m=r-o;p<m;p+=l)c.push(Bi(e,p,p+l>m?m:p+l));return o===1?(t=e[r-1],c.push(V[t>>2]+V[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],c.push(V[t>>10]+V[t>>4&63]+V[t<<2&63]+"=")),c.join("")}});var Vr=qe(Pt=>{n();Pt.read=function(e,t,r,o,c){var l,p,m=c*8-o-1,d=(1<<m)-1,y=d>>1,S=-7,h=r?c-1:0,D=r?-1:1,N=e[t+h];for(h+=D,l=N&(1<<-S)-1,N>>=-S,S+=m;S>0;l=l*256+e[t+h],h+=D,S-=8);for(p=l&(1<<-S)-1,l>>=-S,S+=o;S>0;p=p*256+e[t+h],h+=D,S-=8);if(l===0)l=1-y;else{if(l===d)return p?NaN:(N?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-y}return(N?-1:1)*p*Math.pow(2,l-o)};Pt.write=function(e,t,r,o,c,l){var p,m,d,y=l*8-c-1,S=(1<<y)-1,h=S>>1,D=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=o?0:l-1,te=o?1:-1,q=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(m=isNaN(t)?1:0,p=S):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+h>=1?t+=D/d:t+=D*Math.pow(2,1-h),t*d>=2&&(p++,d/=2),p+h>=S?(m=0,p=S):p+h>=1?(m=(t*d-1)*Math.pow(2,c),p=p+h):(m=t*Math.pow(2,h-1)*Math.pow(2,c),p=0));c>=8;e[r+N]=m&255,N+=te,m/=256,c-=8);for(p=p<<c|m,y+=c;y>0;e[r+N]=p&255,N+=te,p/=256,y-=8);e[r+N-te]|=q*128}});var rn=qe(ge=>{"use strict";n();var Ct=$r(),me=Vr(),Hr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ge.Buffer=u;ge.SlowBuffer=zi;ge.INSPECT_MAX_BYTES=50;var Ye=2147483647;ge.kMaxLength=Ye;u.TYPED_ARRAY_SUPPORT=Gi();!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 Gi(){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 K(e){if(e>Ye)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 Mt(e)}return qr(e,t,r)}u.poolSize=8192;function qr(e,t,r){if(typeof e=="string")return Vi(e,t);if(ArrayBuffer.isView(e))return Hi(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(H(e,ArrayBuffer)||e&&H(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(H(e,SharedArrayBuffer)||e&&H(e.buffer,SharedArrayBuffer)))return Nt(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 c=ji(e);if(c)return c;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 qr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Kr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function $i(e,t,r){return Kr(e),e<=0?K(e):t!==void 0?typeof r=="string"?K(e).fill(t,r):K(e).fill(t):K(e)}u.alloc=function(e,t,r){return $i(e,t,r)};function Mt(e){return Kr(e),K(e<0?0:Ot(e)|0)}u.allocUnsafe=function(e){return Mt(e)};u.allocUnsafeSlow=function(e){return Mt(e)};function Vi(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Yr(e,t)|0,o=K(r),c=o.write(e,t);return c!==r&&(o=o.slice(0,c)),o}function Dt(e){for(var t=e.length<0?0:Ot(e.length)|0,r=K(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function Hi(e){if(H(e,Uint8Array)){var t=new Uint8Array(e);return Nt(t.buffer,t.byteOffset,t.byteLength)}return Dt(e)}function Nt(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 ji(e){if(u.isBuffer(e)){var t=Ot(e.length)|0,r=K(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Ft(e.length)?K(0):Dt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Dt(e.data)}function Ot(e){if(e>=Ye)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ye.toString(16)+" bytes");return e|0}function zi(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(H(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),H(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,c=r.length,l=0,p=Math.min(o,c);l<p;++l)if(t[l]!==r[l]){o=t[l],c=r[l];break}return o<c?-1:c<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 c=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(H(p,Uint8Array))l+p.length>c.length?u.from(p).copy(c,l):Uint8Array.prototype.set.call(c,p,l);else if(u.isBuffer(p))p.copy(c,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return c};function Yr(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||H(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 c=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Rt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return tn(e).length;default:if(c)return o?-1:Rt(e).length;t=(""+t).toLowerCase(),c=!0}}u.byteLength=Yr;function qi(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 ns(this,t,r);case"utf8":case"utf-8":return Xr(this,t,r);case"ascii":return ts(this,t,r);case"latin1":case"binary":return rs(this,t,r);case"base64":return Qi(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return os(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function ce(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)ce(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)ce(this,r,r+3),ce(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)ce(this,r,r+7),ce(this,r+1,r+6),ce(this,r+2,r+5),ce(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Xr(this,0,t):qi.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=ge.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Hr&&(u.prototype[Hr]=u.prototype.inspect);u.prototype.compare=function(t,r,o,c,l){if(H(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),c===void 0&&(c=0),l===void 0&&(l=this.length),r<0||o>t.length||c<0||l>this.length)throw new RangeError("out of range index");if(c>=l&&r>=o)return 0;if(c>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,c>>>=0,l>>>=0,this===t)return 0;for(var p=l-c,m=o-r,d=Math.min(p,m),y=this.slice(c,l),S=t.slice(r,o),h=0;h<d;++h)if(y[h]!==S[h]){p=y[h],m=S[h];break}return p<m?-1:m<p?1:0};function Zr(e,t,r,o,c){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Ft(r)&&(r=c?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(c)return-1;r=e.length-1}else if(r<0)if(c)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:jr(e,t,r,o,c);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?c?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):jr(e,[t],r,o,c);throw new TypeError("val must be string, number or Buffer")}function jr(e,t,r,o,c){var l=1,p=e.length,m=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,m/=2,r/=2}function d(N,te){return l===1?N[te]:N.readUInt16BE(te*l)}var y;if(c){var S=-1;for(y=r;y<p;y++)if(d(e,y)===d(t,S===-1?0:y-S)){if(S===-1&&(S=y),y-S+1===m)return S*l}else S!==-1&&(y-=y-S),S=-1}else for(r+m>p&&(r=p-m),y=r;y>=0;y--){for(var h=!0,D=0;D<m;D++)if(d(e,y+D)!==d(t,D)){h=!1;break}if(h)return y}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return Zr(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return Zr(this,t,r,o,!1)};function Ki(e,t,r,o){r=Number(r)||0;var c=e.length-r;o?(o=Number(o),o>c&&(o=c)):o=c;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var m=parseInt(t.substr(p*2,2),16);if(Ft(m))return p;e[r+p]=m}return p}function Yi(e,t,r,o){return Ze(Rt(t,e.length-r),e,r,o)}function Zi(e,t,r,o){return Ze(as(t),e,r,o)}function Xi(e,t,r,o){return Ze(tn(t),e,r,o)}function Ji(e,t,r,o){return Ze(cs(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,c){if(r===void 0)c="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")c=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,c===void 0&&(c="utf8")):(c=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");c||(c="utf8");for(var p=!1;;)switch(c){case"hex":return Ki(this,t,r,o);case"utf8":case"utf-8":return Yi(this,t,r,o);case"ascii":case"latin1":case"binary":return Zi(this,t,r,o);case"base64":return Xi(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ji(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Qi(e,t,r){return t===0&&r===e.length?Ct.fromByteArray(e):Ct.fromByteArray(e.slice(t,r))}function Xr(e,t,r){r=Math.min(e.length,r);for(var o=[],c=t;c<r;){var l=e[c],p=null,m=l>239?4:l>223?3:l>191?2:1;if(c+m<=r){var d,y,S,h;switch(m){case 1:l<128&&(p=l);break;case 2:d=e[c+1],(d&192)===128&&(h=(l&31)<<6|d&63,h>127&&(p=h));break;case 3:d=e[c+1],y=e[c+2],(d&192)===128&&(y&192)===128&&(h=(l&15)<<12|(d&63)<<6|y&63,h>2047&&(h<55296||h>57343)&&(p=h));break;case 4:d=e[c+1],y=e[c+2],S=e[c+3],(d&192)===128&&(y&192)===128&&(S&192)===128&&(h=(l&15)<<18|(d&63)<<12|(y&63)<<6|S&63,h>65535&&h<1114112&&(p=h))}}p===null?(p=65533,m=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),c+=m}return es(o)}var zr=4096;function es(e){var t=e.length;if(t<=zr)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=zr));return r}function ts(e,t,r){var o="";r=Math.min(e.length,r);for(var c=t;c<r;++c)o+=String.fromCharCode(e[c]&127);return o}function rs(e,t,r){var o="";r=Math.min(e.length,r);for(var c=t;c<r;++c)o+=String.fromCharCode(e[c]);return o}function ns(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var c="",l=t;l<r;++l)c+=ls[e[l]];return c}function os(e,t,r){for(var o=e.slice(t,r),c="",l=0;l<o.length-1;l+=2)c+=String.fromCharCode(o[l]+o[l+1]*256);return c}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 c=this.subarray(t,r);return Object.setPrototypeOf(c,u.prototype),c};function P(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||P(t,r,this.length);for(var c=this[t],l=1,p=0;++p<r&&(l*=256);)c+=this[t+p]*l;return c};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||P(t,r,this.length);for(var c=this[t+--r],l=1;r>0&&(l*=256);)c+=this[t+--r]*l;return c};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||P(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||P(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||P(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||P(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||P(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||P(t,r,this.length);for(var c=this[t],l=1,p=0;++p<r&&(l*=256);)c+=this[t+p]*l;return l*=128,c>=l&&(c-=Math.pow(2,8*r)),c};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||P(t,r,this.length);for(var c=r,l=1,p=this[t+--c];c>0&&(l*=256);)p+=this[t+--c]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||P(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||P(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||P(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||P(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||P(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||P(t,4,this.length),me.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||P(t,4,this.length),me.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||P(t,8,this.length),me.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||P(t,8,this.length),me.read(this,t,!1,52,8)};function _(e,t,r,o,c,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>c||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,c){if(t=+t,r=r>>>0,o=o>>>0,!c){var l=Math.pow(2,8*o)-1;_(this,t,r,o,l,0)}var p=1,m=0;for(this[r]=t&255;++m<o&&(p*=256);)this[r+m]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,c){if(t=+t,r=r>>>0,o=o>>>0,!c){var l=Math.pow(2,8*o)-1;_(this,t,r,o,l,0)}var p=o-1,m=1;for(this[r+p]=t&255;--p>=0&&(m*=256);)this[r+p]=t/m&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||_(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||_(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||_(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||_(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||_(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,c){if(t=+t,r=r>>>0,!c){var l=Math.pow(2,8*o-1);_(this,t,r,o,l-1,-l)}var p=0,m=1,d=0;for(this[r]=t&255;++p<o&&(m*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+o};u.prototype.writeIntBE=function(t,r,o,c){if(t=+t,r=r>>>0,!c){var l=Math.pow(2,8*o-1);_(this,t,r,o,l-1,-l)}var p=o-1,m=1,d=0;for(this[r+p]=t&255;--p>=0&&(m*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||_(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||_(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||_(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||_(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||_(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function Jr(e,t,r,o,c,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Qr(e,t,r,o,c){return t=+t,r=r>>>0,c||Jr(e,t,r,4,34028234663852886e22,-34028234663852886e22),me.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return Qr(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return Qr(this,t,r,!1,o)};function en(e,t,r,o,c){return t=+t,r=r>>>0,c||Jr(e,t,r,8,17976931348623157e292,-17976931348623157e292),me.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return en(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return en(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,c){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!c&&c!==0&&(c=this.length),r>=t.length&&(r=t.length),r||(r=0),c>0&&c<o&&(c=o),c===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(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),t.length-r<c-o&&(c=t.length-r+o);var l=c-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,c):Uint8Array.prototype.set.call(t,this.subarray(o,c),r),l};u.prototype.fill=function(t,r,o,c){if(typeof t=="string"){if(typeof r=="string"?(c=r,r=0,o=this.length):typeof o=="string"&&(c=o,o=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!u.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(t.length===1){var l=t.charCodeAt(0);(c==="utf8"&&l<128||c==="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 m=u.isBuffer(t)?t:u.from(t,c),d=m.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=m[p%d]}return this};var is=/[^+/0-9A-Za-z-_]/g;function ss(e){if(e=e.split("=")[0],e=e.trim().replace(is,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Rt(e,t){t=t||1/0;for(var r,o=e.length,c=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!c){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}c=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),c=r;continue}r=(c-55296<<10|r-56320)+65536}else c&&(t-=3)>-1&&l.push(239,191,189);if(c=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 as(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function cs(e,t){for(var r,o,c,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,c=r%256,l.push(c),l.push(o);return l}function tn(e){return Ct.toByteArray(ss(e))}function Ze(e,t,r,o){for(var c=0;c<o&&!(c+r>=t.length||c>=e.length);++c)t[c+r]=e[c];return c}function H(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Ft(e){return e!==e}var ls=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,c=0;c<16;++c)t[o+c]=e[r]+e[c];return t}()});var cn=qe((xl,an)=>{n();var E=an.exports={},j,z;function _t(){throw new Error("setTimeout has not been defined")}function Ut(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?j=setTimeout:j=_t}catch(e){j=_t}try{typeof clearTimeout=="function"?z=clearTimeout:z=Ut}catch(e){z=Ut}})();function nn(e){if(j===setTimeout)return setTimeout(e,0);if((j===_t||!j)&&setTimeout)return j=setTimeout,setTimeout(e,0);try{return j(e,0)}catch(t){try{return j.call(null,e,0)}catch(r){return j.call(this,e,0)}}}function ps(e){if(z===clearTimeout)return clearTimeout(e);if((z===Ut||!z)&&clearTimeout)return z=clearTimeout,clearTimeout(e);try{return z(e)}catch(t){try{return z.call(null,e)}catch(r){return z.call(this,e)}}}var Y=[],fe=!1,le,Xe=-1;function us(){!fe||!le||(fe=!1,le.length?Y=le.concat(Y):Xe=-1,Y.length&&on())}function on(){if(!fe){var e=nn(us);fe=!0;for(var t=Y.length;t;){for(le=Y,Y=[];++Xe<t;)le&&le[Xe].run();Xe=-1,t=Y.length}le=null,fe=!1,ps(e)}}E.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Y.push(new sn(e,t)),Y.length===1&&!fe&&nn(on)};function sn(e,t){this.fun=e,this.array=t}sn.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function Z(){}E.on=Z;E.addListener=Z;E.once=Z;E.off=Z;E.removeListener=Z;E.removeAllListeners=Z;E.emit=Z;E.prependListener=Z;E.prependOnceListener=Z;E.listeners=function(e){return[]};E.binding=function(e){throw new Error("process.binding is not supported")};E.cwd=function(){return"/"};E.chdir=function(e){throw new Error("process.chdir is not supported")};E.umask=function(){return 0}});var i,s,Sl,n=T(()=>{i=x(rn()),s=x(cn()),Sl=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 Te=T(()=>{"use strict";n()});var ln=T(()=>{"use strict";n()});var pn=T(()=>{"use strict";n()});var un=T(()=>{"use strict";n()});var L=T(()=>{"use strict";n()});var dn=T(()=>{"use strict";n()});var mn=T(()=>{"use strict";n()});var R=T(()=>{"use strict";n()});var gn=T(()=>{"use strict";n()});var fn=T(()=>{"use strict";n()});var M=T(()=>{"use strict";n();ln();pn();un();L();dn();mn();R();gn();fn()});var Bt,Tn,Bl,yn,Wl,hn,Gl,$l,Vl,xn=T(()=>{"use strict";n();M();Bt={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Tn,egldLabel:Bl}=Bt["devnet"],{chainId:yn,egldLabel:Wl}=Bt["testnet"],{chainId:hn,egldLabel:Gl}=Bt["mainnet"],$l={["devnet"]:Tn,["testnet"]:yn,["mainnet"]:hn},Vl={[Tn]:"devnet",[yn]:"testnet",[hn]:"mainnet"}});var Wt=T(()=>{"use strict";n()});var Sn=T(()=>{"use strict";n()});var Je,Gt=T(()=>{"use strict";n();Je="transaction-status-toast-id"});var Re,Qe,wn,et,vn,ye,b=T(()=>{"use strict";n();Te();xn();Wt();Sn();Gt();Re=5e4,Qe=1e9,wn=1,et="logout",vn="login",ye="0"});var Me,tt=T(()=>{"use strict";n();Me=()=>Date.now()/1e3});var In=T(()=>{"use strict";n()});var An=T(()=>{"use strict";n()});var $t=T(()=>{"use strict";n();tt();In();An()});var Ht={};se(Ht,{getItem:()=>ms,localStorageKeys:()=>re,removeItem:()=>gs,setItem:()=>ds});var re,Vt,ds,ms,gs,he=T(()=>{"use strict";n();$t();re={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Vt=typeof localStorage!="undefined",ds=({key:e,data:t,expires:r})=>{!Vt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},ms=e=>{if(!Vt)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Me()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},gs=e=>{!Vt||localStorage.removeItem(String(e))}});var jt={};se(jt,{clear:()=>Ln,getItem:()=>kn,removeItem:()=>En,setItem:()=>bn,storage:()=>fs});var bn,kn,En,Ln,fs,Pn=T(()=>{"use strict";n();bn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},kn=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},En=e=>sessionStorage.removeItem(String(e)),Ln=()=>sessionStorage.clear(),fs={setItem:bn,getItem:kn,removeItem:En,clear:Ln}});var pe,xe=T(()=>{"use strict";n();he();Pn();pe={session:jt,local:Ht}});var zt,C,X,O=T(()=>{"use strict";n();zt=require("@reduxjs/toolkit");b();C=(0,zt.createAction)(et),X=(0,zt.createAction)(vn,e=>({payload:e}))});var Kt,Cn,Dn,rt,qt,Nn,Yt,yp,Zt,hp,Ts,ys,xp,Sp,wp,hs,Rn,Xt=T(()=>{"use strict";n();Kt=require("@multiversx/sdk-core"),Cn=require("@reduxjs/toolkit"),Dn=require("redux-persist");b();xe();he();O();rt={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:ye},qt={address:"",websocketEvent:null,accounts:{"":rt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Nn=(0,Cn.createSlice)({name:"accountInfoSlice",initialState:qt,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Kt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:rt},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(C,()=>(pe.local.removeItem(re.loginExpiresAt),qt)),e.addCase(X,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new Kt.Address(o).hex()}),e.addCase(Dn.REHYDRATE,(t,r)=>{var y;if(!((y=r.payload)!=null&&y.account))return;let{account:o}=r.payload,{address:c,shard:l,accounts:p,publicKey:m}=o;t.address=c,t.shard=l;let d=p&&c in p;t.accounts=d?p:qt.accounts,t.publicKey=m})}}),{setAccount:Yt,setAddress:yp,setAccountNonce:Zt,setAccountShard:hp,setLedgerAccount:Ts,updateLedgerAccount:ys,setWalletConnectAccount:xp,setIsAccountLoading:Sp,setAccountLoadingError:wp,setWebsocketEvent:hs}=Nn.actions,Rn=Nn.reducer});function Oe(){return new Date().setHours(new Date().getHours()+24)}function Fe(e){pe.local.setItem({key:re.loginExpiresAt,data:e,expires:e})}var Jt=T(()=>{"use strict";n();xe();he()});var On,Mn,Fn,Dp,_n,xs,Ss,Np,ws,Un,Rp,Bn,Qt=T(()=>{"use strict";n();On=require("@reduxjs/toolkit");Jt();L();O();Mn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,isLoginSessionInvalid:!1},Fn=(0,On.createSlice)({name:"loginInfoSlice",initialState:Mn,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(C,()=>Mn),e.addCase(X,(t,r)=>{t.loginMethod=r.payload.loginMethod,Fe(Oe())})}}),{setLoginMethod:Dp,setWalletConnectLogin:_n,setLedgerLogin:xs,setTokenLogin:Ss,setTokenLoginSignature:Np,setWalletLogin:ws,invalidateLoginSession:Un,setLogoutRoute:Rp}=Fn.actions,Bn=Fn.reducer});var Gn,Wn,$n,_p,vs,Up,Is,Vn,er=T(()=>{"use strict";n();Gn=require("@reduxjs/toolkit");O();Wn={},$n=(0,Gn.createSlice)({name:"modalsSlice",initialState:Wn,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(C,()=>Wn)}}),{setTxSubmittedModal:_p,setNotificationModal:vs,clearTxSubmittedModal:Up,clearNotificationModal:Is}=$n.actions,Vn=$n.reducer});var _e=T(()=>{"use strict";n()});var jn=T(()=>{"use strict";n();_e()});function tr(e){return e[Math.floor(Math.random()*e.length)]}var zn=T(()=>{"use strict";n()});var rr=T(()=>{"use strict";n();Wt()});var Se=T(()=>{"use strict";n();jn();zn();rr()});var qn,Kn,nr,As,Yn,Qp,eu,Zn,or=T(()=>{"use strict";n();qn=require("@reduxjs/toolkit"),Kn=x(require("lodash.omit"));Se();nr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},As={network:nr,chainID:"-1"},Yn=(0,qn.createSlice)({name:"appConfig",initialState:As,reducers:{initializeNetworkConfig:(e,t)=>{let r=tr(t.payload.walletConnectBridgeAddresses),o=tr(t.payload.walletConnectV2RelayAddresses),c=(0,Kn.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=I(f(f({},e.network),c),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Qp,setChainID:eu}=Yn.actions,Zn=Yn.reducer});var Xn,ir,Jn,su,au,cu,nt,ot=T(()=>{"use strict";n();Xn=require("@reduxjs/toolkit");M();O();ir={isSigning:!1,signedSessions:{}},Jn=(0,Xn.createSlice)({name:"signedMessageInfoSliceState",initialState:ir,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:c}=t.payload;return I(f({},e),{errorMessage:c!=null?c:e.errorMessage,isSigning:o.status==="pending",signedSessions:I(f({},e.signedSessions),{[r]:o})})},setSignSessionState:(e,t)=>f(f({},e),t.payload),clearSignedMessageInfo:()=>ir},extraReducers:e=>{e.addCase(C,()=>ir)}}),{setSignSession:su,clearSignedMessageInfo:au,setSignSessionState:cu}=Jn.actions,nt=Jn.reducer});var eo,to,Qn,ro,bs,sr,Tu,yu,hu,xu,it,st=T(()=>{"use strict";n();eo=require("@reduxjs/toolkit"),to=require("redux-persist");Gt();M();tt();O();Qn={customToasts:[],transactionToasts:[],failTransactionToast:null},ro=(0,eo.createSlice)({name:"toastsSlice",initialState:Qn,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(I(f({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Me(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=I(f({},t.payload),{toastId:Je})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(C,()=>Qn),e.addCase(to.REHYDRATE,(t,r)=>{var c,l;let o=(l=(c=r.customToasts)==null?void 0:c.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:bs,removeCustomToast:sr,addTransactionToast:Tu,removeTransactionToast:yu,addFailTransactionToast:hu,removeFailTransactionToast:xu}=ro.actions,it=ro.reducer});var no,cr,lr,pr,ks,ar,oo,Iu,Es,ur,at,ct=T(()=>{"use strict";n();no=require("@reduxjs/toolkit");O();cr="Transaction failed",lr="Transaction successful",pr="Processing transaction",ks="Transaction submitted",ar={},oo=(0,no.createSlice)({name:"transactionsInfo",initialState:ar,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||cr,successMessage:(o==null?void 0:o.successMessage)||lr,processingMessage:(o==null?void 0:o.processingMessage)||pr,submittedMessage:(o==null?void 0:o.submittedMessage)||ks,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>ar},extraReducers:e=>{e.addCase(C,()=>ar)}}),{clearTransactionsInfo:Iu,setTransactionsDisplayInfo:Es,clearTransactionsInfoForSessionId:ur}=oo.actions,at=oo.reducer});function we(e){return e!=null&&(Os(e)||Bs(e))}function ve(e){return e!=null&&(Fs(e)||Ws(e))}function Ie(e){return e!=null&&(_s(e)||Gs(e))}function dr(e){return e!=null&&Us(e)}function Os(e){return e!=null&&Ls.includes(e)}function Fs(e){return e!=null&&Ps.includes(e)}function _s(e){return e!=null&&Cs.includes(e)}function Us(e){return e!=null&&Ds.includes(e)}function Bs(e){return e!=null&&Ns.includes(e)}function Ws(e){return e!=null&&Rs.includes(e)}function Gs(e){return e!=null&&Ms.includes(e)}var Ls,Ps,Cs,Ds,Ns,Rs,Ms,Ae=T(()=>{"use strict";n();L();Ls=["sent"],Ps=["success"],Cs=["fail","cancelled","timedOut"],Ds=["timedOut"],Ns=["pending"],Rs=["success"],Ms=["fail","invalid"]});var io,so,Be,$s,ao,co,lo,Vs,lt,Hs,js,Nu,zs,pt,mr,ut,dt=T(()=>{"use strict";n();io=require("@reduxjs/toolkit"),so=require("redux-persist");L();Ae();O();Be={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},$s={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},ao=(0,io.createSlice)({name:"transactionsSlice",initialState:Be,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,y;let{sessionId:r,transactions:o,errorMessage:c,status:l,redirectRoute:p}=t.payload,m=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||$s;e.signedTransactions[r]={transactions:o,status:l,errorMessage:c,redirectRoute:p,customTransactionInformation:m},((y=e==null?void 0:e.transactionsToSign)==null?void 0:y.sessionId)===r&&(e.transactionsToSign=Be.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=f(f({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:c,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,c!=null&&(e.signedTransactions[r].errorMessage=c),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var m,d,y,S,h,D;let{sessionId:r,status:o,errorMessage:c,transactionHash:l}=t.payload,p=(d=(m=e.signedTransactions)==null?void 0:m[r])==null?void 0:d.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(q=>q.hash===l?I(f({},q),{status:o,errorMessage:c}):q);let N=(S=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:S.every(q=>ve(q.status)),te=(D=(h=e.signedTransactions[r])==null?void 0:h.transactions)==null?void 0:D.every(q=>Ie(q.status));N&&(e.signedTransactions[r].status="success"),te&&(e.signedTransactions[r].status="fail")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=Be.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Be.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(C,()=>Be),e.addCase(so.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:c}=r.payload.transactions,l=Object.entries(o).reduce((m,[d,y])=>{let S=new Date(d),h=new Date;return h.setHours(h.getHours()+5),h-S>0||(m[d]=y),m},{});c!=null&&(t.customTransactionInformationForSessionId=c),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:co,updateSignedTransactions:lo,setTransactionsToSign:Vs,clearAllTransactionsToSign:lt,clearAllSignedTransactions:Hs,clearSignedTransaction:js,clearTransactionToSign:Nu,setSignTransactionsError:zs,setSignTransactionsCancelMessage:pt,moveTransactionsToSignedState:mr}=ao.actions,ut=ao.reducer});var k=T(()=>{"use strict";n();Xt();Qt();er();or();ot();st();ct();dt()});var gr=T(()=>{"use strict";n()});var fo,go,To,fr,rd,nd,od,id,yo,ho,Tr=T(()=>{"use strict";n();fo=require("@reduxjs/toolkit");O();go={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},To=(0,fo.createSlice)({name:"dappModalsSlice",initialState:go,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=f({},t.payload)}},extraReducers:e=>{e.addCase(C,()=>go)}}),{setDappModalVisibility:fr,setDappModalHeaderVisibility:rd,setDappModalFooterVisibility:nd,setDappModalHeaderText:od,setDappModalFooterText:id,setDappModalConfig:yo}=To.actions,ho=To.reducer});var xo,Zs,Xs,be,Tt=T(()=>{"use strict";n();xo=require("@reduxjs/toolkit");gr();Xt();Tr();Qt();er();or();ot();st();ct();dt();Zs={["account"]:Rn,["dappModal"]:ho,["loginInfo"]:Bn,["modals"]:Vn,["networkConfig"]:Zn,["signedMessageInfo"]:nt,["toasts"]:it,["transactionsInfo"]:at,["transactions"]:ut},Xs=(e={})=>(0,xo.combineReducers)(f(f({},Zs),e)),be=Xs});var vo={};se(vo,{default:()=>ia});function yt(e,t=[]){return{key:e,version:1,storage:wo.default,blacklist:t}}var ne,So,wo,Js,Qs,ea,ta,ra,na,oa,ia,Io=T(()=>{"use strict";n();ne=require("redux-persist"),So=x(require("redux-persist/lib/storage")),wo=x(require("redux-persist/lib/storage/session"));Tt();k();ot();st();ct();dt();gr();Js={2:e=>I(f({},e),{networkConfig:nr})};Qs=yt("sdk-dapp-transactionsInfo"),ea=yt("sdk-dapp-transactions",["transactionsToSign"]),ta=yt("sdk-dapp-toasts"),ra=yt("sdk-dapp-signedMessageInfo"),na={key:"sdk-dapp-store",version:2,storage:So.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,ne.createMigrate)(Js,{debug:!1})},oa={["toasts"]:(0,ne.persistReducer)(ta,it),["transactions"]:(0,ne.persistReducer)(ea,ut),["transactionsInfo"]:(0,ne.persistReducer)(Qs,at),["signedMessageInfo"]:(0,ne.persistReducer)(ra,nt)},ia=(0,ne.persistReducer)(na,be(oa))});var Ao={};se(Ao,{default:()=>sa});var sa,bo=T(()=>{"use strict";n();Tt();sa=be()});var ko={};se(ko,{default:()=>ca});var G,aa,ca,Eo=T(()=>{"use strict";n();G=require("redux-persist"),aa=[G.FLUSH,G.REHYDRATE,G.PAUSE,G.PERSIST,G.PURGE,G.REGISTER],ca=aa});var Co={};se(Co,{default:()=>Po});function Po(e){return(0,Lo.persistStore)(e)}var Lo,Do=T(()=>{"use strict";n();Lo=require("redux-persist")});var gl={};se(gl,{useDappModal:()=>ml});module.exports=Ne(gl);n();n();var Ce=require("react");n();n();n();var _o=require("react"),ke=require("react-redux");n();var yr=require("@reduxjs/toolkit"),Oo=require("react-redux/lib/utils/Subscription");k();n();var uo=x(require("lodash.throttle"));b();n();var po=x(require("lodash.isequal")),mt=require("reselect");M();var g=(0,mt.createSelectorCreator)(mt.defaultMemoize,po.default),We=(e,t)=>e!=""&&Boolean(t);k();Jt();xe();he();var qs=[et],gt=!1,Ks=(0,uo.default)(()=>{Fe(Oe())},5e3),mo=e=>t=>r=>{var d;if(qs.includes(r.type))return t(r);let o=e.getState(),c=pe.local.getItem(re.loginExpiresAt);if(!We((d=o==null?void 0:o.loginInfo)==null?void 0:d.loginMethod,o==null?void 0:o.account.address))return t(r);if(c==null)return Fe(Oe());let p=Date.now();return c-p<0&&!gt?setTimeout(()=>{gt=!0,e.dispatch(Un())},1e3):(gt&&(gt=!1),Ks()),t(r)};n();n();function ft(){return typeof sessionStorage!="undefined"}var No=ft()?(Io(),Ne(vo)).default:(bo(),Ne(Ao)).default,Ro=ft()?(Eo(),Ne(ko)).default:[],Mo=ft()?(Do(),Ne(Co)).default:e=>e;Tt();var v=(0,yr.configureStore)({reducer:No,middleware:e=>e({serializableCheck:{ignoredActions:[...Ro,Zt.type,Yt.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(mo)}),Fo=(0,Oo.createSubscription)(v),Nd=Mo(v),Rd=(0,yr.configureStore)({reducer:be});var la={store:v,subscription:Fo},hr=(0,_o.createContext)(la),_d=(0,ke.createStoreHook)(hr),F=(0,ke.createDispatchHook)(hr),A=(0,ke.createSelectorHook)(hr);n();n();k();var J=e=>e.account,Ee=g(J,e=>e.address),Ge=g(J,Ee,(e,t)=>t in e.accounts?e.accounts[t]:rt),pa=g(J,Ge,(e,t)=>{let c=e,{accounts:r}=c,o=ze(c,["accounts"]);return I(f({},o),{account:t})}),ua=g(Ge,e=>e.balance),da=g(Ge,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Gd=g(J,e=>e.shard),ma=g(J,e=>e.ledgerAccount),$d=g(J,e=>e.walletConnectAccount),Vd=g(J,e=>e.isAccountLoading),Hd=g(J,e=>e.accountLoadingError),Uo=g(J,e=>e.websocketEvent);n();var $=e=>e.loginInfo,Kd=g($,e=>e.loginMethod),xr=g($,Ee,(e,t)=>We(e.loginMethod,t)),Yd=g($,e=>e.walletConnectLogin),Zd=g($,e=>e.ledgerLogin),ga=g($,e=>e.walletLogin),Xd=g($,e=>e.isLoginSessionInvalid),fa=g($,e=>e.tokenLogin),Jd=g($,e=>e.logoutRoute);n();var Bo=e=>e.modals,tm=g(Bo,e=>e.txSubmittedModal),Ta=g(Bo,e=>e.notificationModal);n();var Q=e=>e.networkConfig,ht=g(Q,e=>e.chainID),ya=g(Q,e=>e.network.walletConnectBridgeAddress),ha=g(Q,e=>e.network.walletConnectV2RelayAddress),xa=g(Q,e=>e.network.walletConnectV2ProjectId),Sa=g(Q,e=>e.network.walletConnectV2Options),Wo=g(Q,e=>e.network.walletConnectDeepLink),oe=g(Q,e=>e.network),Go=g(oe,e=>e.apiAddress),$o=g(oe,e=>e.explorerAddress),Vo=g(oe,e=>e.egldLabel);n();var Sr=e=>e.signedMessageInfo,sm=g(Sr,e=>e.isSigning),am=g(Sr,e=>e.errorMessage),cm=g(Sr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});n();var wr=e=>e.toasts,um=g(wr,e=>e.customToasts),dm=g(wr,e=>e.transactionToasts),mm=g(wr,e=>e.failTransactionToast);n();k();var Ho={errorMessage:cr,successMessage:lr,processingMessage:pr},wa=e=>e.transactionsInfo,va=g(wa,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Ho);n();n();var U=require("@multiversx/sdk-core");b();n();function vr(e){try{return i.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function xt(e){var c,l,p;let{data:t}=e,r=vr(t!=null?t:"")?U.TransactionPayload.fromEncoded(t):new U.TransactionPayload(t),o=new U.Transaction(f({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new U.Address(e.receiver),sender:new U.Address(e.sender),gasLimit:(c=e.gasLimit.valueOf())!=null?c:Re,gasPrice:(l=e.gasPrice.valueOf())!=null?l:Qe,chainID:e.chainID.valueOf(),version:new U.TransactionVersion((p=e.version)!=null?p:wn)},e.options?{options:new U.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new U.Address(e.sender)),o}n();Ae();n();var Aa=x(require("bignumber.js"));M();n();n();n();n();var ka=require("@multiversx/sdk-core"),Ea=x(require("bignumber.js"));L();n();var ba=require("@multiversx/sdk-core");n();n();n();var Pa=require("@multiversx/sdk-core/out");n();b();n();var qo=require("@multiversx/sdk-core");M();n();n();n();n();L();n();n();n();n();n();n();n();n();n();n();n();R();n();n();R();n();n();n();var Ua=x(require("bignumber.js"));b();n();var _a=require("@multiversx/sdk-core"),Ar=x(require("bignumber.js"));b();n();var Oa=x(require("bignumber.js"));n();Ar.default.config({ROUNDING_MODE:Ar.default.ROUND_FLOOR});n();n();n();b();n();n();n();n();b();n();b();n();var Ba=require("@multiversx/sdk-core");b();n();var $e=require("@multiversx/sdk-core"),$a=require("@multiversx/sdk-network-providers");b();n();n();var Wa=x(require("bignumber.js"));b();n();b();n();n();n();n();n();b();n();R();var Ha=["reDelegateRewards","claimRewards","unBond"],ja=["wrapEgld","unwrapEgld"],za=["unStake"],qa=["unDelegate"];n();n();n();b();n();var Ja=x(require("bignumber.js"));n();n();n();R();n();var Qa=x(require("bignumber.js"));n();n();n();n();R();n();n();n();var rc=x(require("linkifyjs"));n();b();n();var nc=x(require("bignumber.js"));n();M();n();n();L();n();L();n();n();n();R();n();R();n();var oc=x(require("bignumber.js"));b();R();n();R();n();var ei=require("react");M();n();n();R();n();var ic=require("@multiversx/sdk-core/out"),sc=x(require("bignumber.js"));R();n();R();n();n();L();var Uh=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var ti=require("react");M();n();var cc=require("react");R();var jh=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var It=e=>e.transactions,Le=g(It,e=>e.signedTransactions),lc=g(It,e=>e.signTransactionsError),ri=g(It,e=>e.signTransactionsCancelMessage),At=e=>t=>Object.entries(t).reduce((r,[o,c])=>(e(c.status)&&(r[o]=c),r),{}),ni=g(Le,At(we)),oi=g(Le,At(ve)),ii=g(Le,At(Ie)),pc=g(Le,At(dr)),si=g(It,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:I(f({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>xt(r)))||[]})}),uc=g(Le,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});n();var ai=require("react");n();k();n();n();n();var mc=require("react"),gc=require("@multiversx/sdk-web-wallet-provider"),fc=x(require("qs"));b();k();L();n();var mi=require("react"),Cc=require("@multiversx/sdk-extension-provider");b();n();n();n();n();var Tc=require("@multiversx/sdk-extension-provider"),yc=require("@multiversx/sdk-hw-provider"),hc=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),xc=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),Sc=require("@multiversx/sdk-web-wallet-provider");b();L();var ee=e=>`Unable to perform ${e}, Provider not initialized`,kr=class{init(){return Promise.resolve(!1)}login(t){throw new Error(ee(`login with options: ${t}`))}logout(t){throw new Error(ee(`logout with options: ${t}`))}getAddress(){throw new Error(ee("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(ee(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(ee(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(ee(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(ee(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(ee(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(ee(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},wc=new kr;k();L();n();n();n();n();n();var vc=x(require("axios"));n();n();n();n();var di=require("react"),kc=require("@multiversx/sdk-extension-provider");b();n();n();n();n();n();n();n();n();var Ve=x(require("react"));var tw=(0,Ve.createContext)({}),rw=v.getState();n();var ui=x(require("react"));n();var Cr=x(require("react")),Ic=x(require("axios"));n();n();k();n();n();var Nc=x(require("axios")),Rc=x(require("swr"));n();n();var Mc=x(require("axios"));n();var fi=require("react");n();var gi=require("react");rr();k();M();n();n();_e();n();Te();k();n();n();n();n();n();n();k();n();L();Ae();n();n();n();var Fc=x(require("axios"));n();var _c=x(require("axios"));n();var Bc=x(require("axios"));n();n();var Wc=x(require("axios"));n();var Gc=x(require("axios"));n();k();L();n();n();k();n();n();var hi=require("@multiversx/sdk-core");n();O();M();n();Ae();n();k();L();n();k();M();n();var Xc=require("react");n();n();n();k();n();n();var jc=x(require("bignumber.js"));b();k();M();n();var Hc=x(require("bignumber.js"));b();n();var zc=require("@multiversx/sdk-core"),qc=x(require("bignumber.js"));b();n();n();n();var xi,r0={hostname:typeof window!="undefined"?(xi=window==null?void 0:window.location)==null?void 0:xi.hostname:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60};n();n();var Kc=x(require("axios"));n();n();n();n();tt();L();Ae();n();n();n();n();var Si=require("react");n();n();var Qc=require("react"),el=require("@multiversx/sdk-extension-provider");Te();O();L();n();Se();n();var Jc=require("react"),wi=require("@multiversx/sdk-core");k();n();n();var nl=require("react");Te();k();n();n();n();$t();n();n();var tl=x(require("platform"));n();O();M();_e();xe();he();n();n();n();n();n();n();_e();n();n();n();n();xe();n();n();n();k();n();n();var rl=x(require("axios"));n();var Ii=require("react"),il=require("@multiversx/sdk-hw-provider");Te();O();k();L();Se();n();var ol=require("react");n();var Mr=require("react"),cl=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");O();k();L();Se();n();var Or=require("react"),ll=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");O();k();L();Se();n();n();var Ai=require("react");n();var dl=require("react");n();var Fr=require("react"),ul=require("socket.io-client");k();n();n();n();n();var bi=e=>e.dappModal,ki=g(bi,e=>e.visible),Pe=g(bi,e=>e.modal),WP=g(Pe,e=>e.showHeader),GP=g(Pe,e=>e.showFooter),$P=g(Pe,e=>e.headerText),VP=g(Pe,e=>e.footerText);var Ei=()=>A(ki);Tr();var ml=e=>{var m;let t=F(),r=Ei(),o=A(Pe),c=()=>{t(fr(!0))},l=()=>{t(fr(!1))},p=(0,Ce.useCallback)(d=>{t(yo(d))},[]);return(0,Ce.useEffect)(()=>{e!=null&&e.modalConfig&&p(e==null?void 0:e.modalConfig)},[e==null?void 0:e.modalConfig]),(0,Ce.useEffect)(()=>{var d;return(d=e==null?void 0:e.config)!=null&&d.openOnMount&&c(),()=>{l()}},[]),(0,Ce.useEffect)(()=>{var d;typeof((d=e==null?void 0:e.config)==null?void 0:d.visible)=="boolean"&&(e.config.visible?c():l())},[(m=e==null?void 0:e.config)==null?void 0:m.visible]),{handleShowModal:c,handleHideModal:l,setModalConfig:p,visible:r,config:o}};0&&(module.exports={useDappModal});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|