@multiversx/sdk-dapp 2.33.3 → 2.33.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UI/DappModal/components/DappModal.js +1 -1
- package/UI/DappModal/components/index.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/NotificationModal.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithCrossWindowWalletModal/SignWithCrossWindowWalletModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithCrossWindowWalletModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/ConfirmAmount.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountData/ConfirmAmountData.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountData/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountLabel/ConfirmAmountLabel.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountLabel/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountNftSft/ConfirmAmountNftSft.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountNftSft/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/ConfirmFee.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/ConfirmReceiver.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/signWithDeviceModal.types.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/SignWithExtensionModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/LedgerGuardianSigningModalError.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithMetamaskModal/SignWithMetamaskModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithMetamaskModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/SignWithOperaModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithWalletConnectModal/SignWithWalletConnectModal.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/SignWaitingScreenModal/SignWaitingScreenModal.js +1 -1
- package/UI/SignTransactionsModals/components/SignWaitingScreenModal/index.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/TransactionData/TransactionData.js +1 -1
- package/UI/TransactionData/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/components/ModalLink/ModalLink.js +1 -1
- package/UI/TransactionInfo/components/DataField/components/ModalLink/index.js +1 -1
- package/UI/TransactionInfo/components/DataField/components/index.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/TransactionInfoAge/TransactionInfoAge.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/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/TransactionInfoGasLimit/TransactionInfoGasLimit.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/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/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/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/AccountName.js +1 -1
- package/UI/TransactionsTable/components/FailedTransactions.js +1 -1
- package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ScAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ShardSpan.js +1 -1
- package/UI/TransactionsTable/components/TransactionHash.js +1 -1
- package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
- package/UI/TransactionsTable/components/TransactionMethod.js +1 -1
- package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
- package/UI/TransactionsTable/components/TransactionRow.js +1 -1
- package/UI/TransactionsTable/components/TransactionSender.js +1 -1
- package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
- package/UI/TransactionsTable/components/index.js +1 -1
- package/UI/TransactionsTable/index.js +1 -1
- package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/CustomComponentToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/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/getIsTransaction.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/DefaultToastDeleteButton.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/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/Trim/Trim.js +1 -1
- package/UI/Trim/index.js +1 -1
- package/UI/UsdValue/UsdValue.js +1 -1
- package/UI/UsdValue/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/helpers/getAuthTokenText.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/helpers/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerConnect/LedgerConnect.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerConnect/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoading/LedgerLoading.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoading/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContainer.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/LedgerLoginContent.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/LedgerLoginContentBody.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/LedgerScamPhishingAlert.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/metamask/MetamaskLoginButton/MetamaskLoginButton.js +1 -1
- package/UI/metamask/MetamaskLoginButton/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContainer.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/WalletConnectLoginContent.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/CrossWindowLoginButton/CrossWindowLoginButton.js +1 -1
- package/UI/webWallet/CrossWindowLoginButton/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/UI/webWallet/XaliasCrossWindowLoginButton/XaliasCrossWindowLoginButton.js +1 -1
- package/UI/webWallet/XaliasCrossWindowLoginButton/index.js +1 -1
- package/UI/webWallet/XaliasLoginButton/XaliasLoginButton.js +1 -1
- package/UI/webWallet/XaliasLoginButton/index.js +1 -1
- package/__chunks__/{chunk-5PB3AO7F.js → chunk-24IOPSNO.js} +2 -2
- package/__chunks__/{chunk-QATN3YUB.js → chunk-24NKQ2Z6.js} +2 -2
- package/__chunks__/chunk-2BEPTMWN.js +2 -0
- package/__chunks__/{chunk-7EJSB6P6.js → chunk-2CKRTOAW.js} +2 -2
- package/__chunks__/{chunk-ZT5WTZ6O.js → chunk-2CYDF4E3.js} +2 -2
- package/__chunks__/{chunk-YMHYMN6S.js → chunk-2D25J2RA.js} +2 -2
- package/__chunks__/{chunk-YZR3NZLK.js → chunk-2G23LO7X.js} +2 -2
- package/__chunks__/{chunk-CC6SACVI.js → chunk-2HCXFZF7.js} +2 -2
- package/__chunks__/{chunk-BMDMVFR4.js → chunk-2KKHM26P.js} +2 -2
- package/__chunks__/{chunk-EWQPOK6K.js → chunk-2QVH3NLF.js} +2 -2
- package/__chunks__/{chunk-FLGTBGM3.js → chunk-2SVHHVT7.js} +2 -2
- package/__chunks__/chunk-2ULVUSJR.js +2 -0
- package/__chunks__/{chunk-GYSBJHQL.js → chunk-2WDTYLR5.js} +2 -2
- package/__chunks__/{chunk-54ZPAEZU.js → chunk-33TUAJBM.js} +2 -2
- package/__chunks__/{chunk-XWZ5FRAM.js → chunk-3CDCN35Y.js} +2 -2
- package/__chunks__/{chunk-NDMZA4CU.js → chunk-3FZJHXNY.js} +2 -2
- package/__chunks__/{chunk-45PEOCOM.js → chunk-3KVHGORG.js} +2 -2
- package/__chunks__/chunk-3MVAYKTW.js +2 -0
- package/__chunks__/chunk-3PMTHLWL.js +2 -0
- package/__chunks__/{chunk-P5TBJBJZ.js → chunk-3QJS2XJC.js} +2 -2
- package/__chunks__/{chunk-CEB2DSPZ.js → chunk-3SAXER2M.js} +2 -2
- package/__chunks__/chunk-3WE3FSIC.js +2 -0
- package/__chunks__/{chunk-SAMCZMKV.js → chunk-3WPEWIVC.js} +2 -2
- package/__chunks__/{chunk-T34WPLJ5.js → chunk-3ZMH2L6P.js} +2 -2
- package/__chunks__/{chunk-45ZG7JTQ.js → chunk-43BYI3CR.js} +2 -2
- package/__chunks__/chunk-43PV3G6T.js +2 -0
- package/__chunks__/chunk-45KLKZ7S.js +2 -0
- package/__chunks__/chunk-46XYGKUJ.js +2 -0
- package/__chunks__/{chunk-TLJQHEKJ.js → chunk-4AJOMQT6.js} +2 -2
- package/__chunks__/{chunk-UUALUSWP.js → chunk-4D3OXYZC.js} +2 -2
- package/__chunks__/{chunk-QGBYZ4WE.js → chunk-4GOZHKDZ.js} +2 -2
- package/__chunks__/chunk-4LTRPJPX.js +2 -0
- package/__chunks__/{chunk-BD4NE74I.js → chunk-4QBC3M4P.js} +2 -2
- package/__chunks__/{chunk-HOXB5DWJ.js → chunk-4RTBHYFD.js} +2 -2
- package/__chunks__/chunk-4WA2UD4D.js +2 -0
- package/__chunks__/{chunk-I6E6GQBF.js → chunk-4YUSE5P5.js} +2 -2
- package/__chunks__/{chunk-GCELHJN7.js → chunk-54OZMXO7.js} +2 -2
- package/__chunks__/{chunk-DTUG6NOR.js → chunk-55YSQFOB.js} +2 -2
- package/__chunks__/{chunk-TQNGTW7T.js → chunk-5BXRTWOQ.js} +2 -2
- package/__chunks__/chunk-5CBWIL53.js +2 -0
- package/__chunks__/{chunk-FXFUTPYK.js → chunk-5PSX3ZOM.js} +2 -2
- package/__chunks__/{chunk-FLANDGYY.js → chunk-5S4MCVS3.js} +2 -2
- package/__chunks__/{chunk-6645U37N.js → chunk-5S7Z7MUK.js} +2 -2
- package/__chunks__/{chunk-AOTWO4JG.js → chunk-622WANH6.js} +2 -2
- package/__chunks__/{chunk-UUA4YCW4.js → chunk-65WOKSA3.js} +2 -2
- package/__chunks__/{chunk-PBGUR7C7.js → chunk-6EL5DZKA.js} +2 -2
- package/__chunks__/chunk-6JESH7V2.js +2 -0
- package/__chunks__/chunk-6MPT4RP2.js +2 -0
- package/__chunks__/{chunk-BYTARBOJ.js → chunk-6NGMX52B.js} +2 -2
- package/__chunks__/{chunk-KEOFHL4A.js → chunk-6Z6FAEFL.js} +2 -2
- package/__chunks__/{chunk-FK636XIV.js → chunk-725XXGNF.js} +2 -2
- package/__chunks__/{chunk-BCL6XG34.js → chunk-73XRRTFR.js} +2 -2
- package/__chunks__/{chunk-5SGSDWGJ.js → chunk-745KN7MK.js} +2 -2
- package/__chunks__/{chunk-IZUPLFNL.js → chunk-76MKB3WB.js} +2 -2
- package/__chunks__/{chunk-24A3APB3.js → chunk-7ENOEWOM.js} +2 -2
- package/__chunks__/chunk-7GPLT6N6.js +2 -0
- package/__chunks__/{chunk-XYIFHJCO.js → chunk-7IPX7VKV.js} +2 -2
- package/__chunks__/{chunk-VBWLHJYZ.js → chunk-7JVHIZ43.js} +2 -2
- package/__chunks__/chunk-7WJJ2K3I.js +2 -0
- package/__chunks__/{chunk-6GDCAG44.js → chunk-7YOYKL4P.js} +2 -2
- package/__chunks__/{chunk-QIUMF7SH.js → chunk-7ZTWNZEZ.js} +2 -2
- package/__chunks__/chunk-A2WHT4UG.js +2 -0
- package/__chunks__/{chunk-6WT26566.js → chunk-A3CD43J2.js} +2 -2
- package/__chunks__/{chunk-NDA62JR7.js → chunk-A3X7E7CN.js} +2 -2
- package/__chunks__/{chunk-5LTNF7DK.js → chunk-AAA32VT7.js} +2 -2
- package/__chunks__/{chunk-6EKWMELX.js → chunk-AEW2WY3D.js} +2 -2
- package/__chunks__/{chunk-HDDHM7GV.js → chunk-AI2GYPG7.js} +2 -2
- package/__chunks__/{chunk-37HMQWF5.js → chunk-AL6MSTEY.js} +2 -2
- package/__chunks__/{chunk-DLTK5ASX.js → chunk-AOKNP3ZG.js} +2 -2
- package/__chunks__/{chunk-PXMHH6XN.js → chunk-AXCZ6ISD.js} +2 -2
- package/__chunks__/{chunk-N7PPBB54.js → chunk-AXM7JBJB.js} +2 -2
- package/__chunks__/{chunk-7MYRGXAF.js → chunk-AZQL6D6O.js} +2 -2
- package/__chunks__/{chunk-4J6TDW4Y.js → chunk-B3GKJXXY.js} +2 -2
- package/__chunks__/chunk-B7F4BYJR.js +2 -0
- package/__chunks__/{chunk-HB7U5OKO.js → chunk-BBP55JG6.js} +2 -2
- package/__chunks__/{chunk-OJ3DGN7M.js → chunk-BKGOYZSO.js} +2 -2
- package/__chunks__/{chunk-4MBZLWQQ.js → chunk-BLUVMUHE.js} +2 -2
- package/__chunks__/{chunk-IQJGNG35.js → chunk-BP5FPZP7.js} +2 -2
- package/__chunks__/chunk-BRJTIKNG.js +2 -0
- package/__chunks__/{chunk-RBCV2HTG.js → chunk-BRT7QLJM.js} +2 -2
- package/__chunks__/{chunk-IKGN4DLL.js → chunk-BSE4ZRLY.js} +2 -2
- package/__chunks__/chunk-BSEAI4O3.js +2 -0
- package/__chunks__/{chunk-NYCSGB7Q.js → chunk-BTYV3DY5.js} +2 -2
- package/__chunks__/{chunk-47L7L5Y4.js → chunk-BVYVHFDN.js} +2 -2
- package/__chunks__/chunk-BWLZBTUX.js +2 -0
- package/__chunks__/{chunk-IBGE6727.js → chunk-C6SBK4ZO.js} +2 -2
- package/__chunks__/{chunk-KAGQ5TIE.js → chunk-CBHAGUFT.js} +2 -2
- package/__chunks__/{chunk-TK2Z24BY.js → chunk-CDDTY2SZ.js} +2 -2
- package/__chunks__/{chunk-YXIG6FJU.js → chunk-CGCR7SX2.js} +2 -2
- package/__chunks__/{chunk-NOTZKINU.js → chunk-CGW7WBFQ.js} +2 -2
- package/__chunks__/{chunk-JVOHPA3T.js → chunk-CIRISKV5.js} +2 -2
- package/__chunks__/{chunk-TEEC32U7.js → chunk-CNXPQ5DB.js} +2 -2
- package/__chunks__/{chunk-YEFDEE6A.js → chunk-CU7XZU3A.js} +2 -2
- package/__chunks__/chunk-CWEZOS76.js +2 -0
- package/__chunks__/{chunk-W46OTGE5.js → chunk-CZQ7VIPN.js} +2 -2
- package/__chunks__/{chunk-RP4UN6LM.js → chunk-D2YDSBEG.js} +2 -2
- package/__chunks__/{chunk-57FJNL7B.js → chunk-D4MV56G6.js} +2 -2
- package/__chunks__/chunk-D5G24YY6.js +2 -0
- package/__chunks__/{chunk-XO2HGXCH.js → chunk-D5HURI4J.js} +2 -2
- package/__chunks__/{chunk-2ZMYRBKE.js → chunk-D5WIAHLN.js} +2 -2
- package/__chunks__/{chunk-RU5QNJEV.js → chunk-DGTP5JY7.js} +2 -2
- package/__chunks__/{chunk-LO2SEXFP.js → chunk-DJDRSSMB.js} +2 -2
- package/__chunks__/chunk-DKLHCXRJ.js +2 -0
- package/__chunks__/chunk-DNQKGS4N.js +2 -0
- package/__chunks__/{chunk-7ML6NB7V.js → chunk-DOR7NFVU.js} +2 -2
- package/__chunks__/{chunk-F5FW32LU.js → chunk-DOY3GAIB.js} +2 -2
- package/__chunks__/chunk-DPSTSFBF.js +2 -0
- package/__chunks__/{chunk-QZV2BCRC.js → chunk-DPXJK5BW.js} +2 -2
- package/__chunks__/{chunk-LTW72H5W.js → chunk-DSKSPTXM.js} +2 -2
- package/__chunks__/{chunk-QRIEXGS2.js → chunk-DSOSKJ3O.js} +2 -2
- package/__chunks__/{chunk-NIRRIFWB.js → chunk-DUAEGZ5I.js} +2 -2
- package/__chunks__/{chunk-V7YGRPXE.js → chunk-DWXL7ZJZ.js} +2 -2
- package/__chunks__/chunk-DYROTYSY.js +2 -0
- package/__chunks__/{chunk-C3VT3KFA.js → chunk-ECIULNAM.js} +2 -2
- package/__chunks__/{chunk-2E3LPUQF.js → chunk-ECY43BJD.js} +2 -2
- package/__chunks__/{chunk-FGJ7TP5D.js → chunk-EFTSGKWO.js} +2 -2
- package/__chunks__/{chunk-B7JOTWE2.js → chunk-EGNKQFJQ.js} +2 -2
- package/__chunks__/{chunk-T4D24YCO.js → chunk-EGOTY3GM.js} +2 -2
- package/__chunks__/{chunk-QPWXVZHM.js → chunk-EGTFAWAE.js} +2 -2
- package/__chunks__/chunk-ENNRTZ6G.js +2 -0
- package/__chunks__/{chunk-QN6IZUYL.js → chunk-EPXDXZXX.js} +2 -2
- package/__chunks__/chunk-EPZJMGOX.js +2 -0
- package/__chunks__/{chunk-XAACECZK.js → chunk-EWRYEIW7.js} +2 -2
- package/__chunks__/chunk-F3C4RYXE.js +2 -0
- package/__chunks__/{chunk-KZOR4H2K.js → chunk-F4AUEFWK.js} +2 -2
- package/__chunks__/{chunk-C4HUHWC4.js → chunk-F54V5VM5.js} +2 -2
- package/__chunks__/{chunk-GVAOPYYE.js → chunk-F6VGPR76.js} +2 -2
- package/__chunks__/{chunk-FW4EJPAK.js → chunk-FBM4JUYX.js} +2 -2
- package/__chunks__/{chunk-LVCZLKZB.js → chunk-FNXJUX7B.js} +2 -2
- package/__chunks__/{chunk-XIRZXU26.js → chunk-FPAIK3WA.js} +2 -2
- package/__chunks__/chunk-FPZFY6G2.js +2 -0
- package/__chunks__/{chunk-KRNBU6PT.js → chunk-FQ4BVQPU.js} +2 -2
- package/__chunks__/{chunk-UAUBK66M.js → chunk-FRFGRCLV.js} +2 -2
- package/__chunks__/{chunk-AQM3XY6A.js → chunk-FY2NWFET.js} +2 -2
- package/__chunks__/{chunk-3R3PUKAF.js → chunk-FYD6F5FD.js} +2 -2
- package/__chunks__/chunk-G6K6MKXY.js +2 -0
- package/__chunks__/{chunk-4KH5VXRM.js → chunk-G6XB2J7G.js} +2 -2
- package/__chunks__/{chunk-RSAPPFPL.js → chunk-G7TWR7H4.js} +2 -2
- package/__chunks__/{chunk-D67VOQSZ.js → chunk-GCTIKGFW.js} +2 -2
- package/__chunks__/{chunk-HKRUWTAE.js → chunk-GJFUKDVI.js} +2 -2
- package/__chunks__/{chunk-5GNVDOCM.js → chunk-GL6S5K5P.js} +2 -2
- package/__chunks__/chunk-GPLW4JWY.js +2 -0
- package/__chunks__/{chunk-DEGP4C3V.js → chunk-GRQMKRYY.js} +2 -2
- package/__chunks__/chunk-GSAWFBTF.js +2 -0
- package/__chunks__/chunk-GWVAIJP6.js +2 -0
- package/__chunks__/{chunk-Y7ESJMSW.js → chunk-H2DF6GCY.js} +2 -2
- package/__chunks__/chunk-HCQAQ47K.js +2 -0
- package/__chunks__/{chunk-T3ELSWUG.js → chunk-HF5EVVIC.js} +2 -2
- package/__chunks__/{chunk-R5DL3XSI.js → chunk-HJUYKR66.js} +2 -2
- package/__chunks__/chunk-HMAM7HQU.js +2 -0
- package/__chunks__/chunk-HRDBJVF3.js +2 -0
- package/__chunks__/{chunk-BFPIYGP6.js → chunk-HZMCL7IW.js} +2 -2
- package/__chunks__/{chunk-GYOPLUWW.js → chunk-I6CY5Q54.js} +2 -2
- package/__chunks__/{chunk-NTFDCSH5.js → chunk-IBONRID5.js} +2 -2
- package/__chunks__/{chunk-OZYNW3JP.js → chunk-IC7BCUNC.js} +2 -2
- package/__chunks__/chunk-IDS4LUFP.js +2 -0
- package/__chunks__/{chunk-UZO6U3YY.js → chunk-IE6AOX2V.js} +2 -2
- package/__chunks__/{chunk-L2GWYHD7.js → chunk-IHNJWXJO.js} +2 -2
- package/__chunks__/{chunk-IYCS2I43.js → chunk-IKYQHBMR.js} +2 -2
- package/__chunks__/{chunk-N4OHAMFH.js → chunk-ILFFSW3H.js} +2 -2
- package/__chunks__/{chunk-YWHYMJK3.js → chunk-IPIDVPQC.js} +2 -2
- package/__chunks__/{chunk-IZSSLKFM.js → chunk-ITTIZGG3.js} +2 -2
- package/__chunks__/{chunk-JLSGOLLG.js → chunk-IXKQ7WNP.js} +2 -2
- package/__chunks__/{chunk-WSBBNMEL.js → chunk-IYRRB5VU.js} +2 -2
- package/__chunks__/{chunk-2N4EIE5Z.js → chunk-J2ASLAKG.js} +2 -2
- package/__chunks__/{chunk-2RAFLLWS.js → chunk-J5F6EJJZ.js} +2 -2
- package/__chunks__/{chunk-6ZBBLLLM.js → chunk-J6OQSHHT.js} +2 -2
- package/__chunks__/{chunk-JMWWAYA5.js → chunk-J6PCNFUQ.js} +2 -2
- package/__chunks__/{chunk-PO7KPAET.js → chunk-JFHJ3VRS.js} +2 -2
- package/__chunks__/{chunk-YBENY3BJ.js → chunk-JHRN7KME.js} +2 -2
- package/__chunks__/{chunk-6YVU7KG4.js → chunk-JHTJ76SU.js} +2 -2
- package/__chunks__/{chunk-PNCJE534.js → chunk-JIELLFNA.js} +2 -2
- package/__chunks__/{chunk-X6LD4BTY.js → chunk-JIQXQPIW.js} +2 -2
- package/__chunks__/chunk-JJJ7WO7R.js +2 -0
- package/__chunks__/chunk-JM5624PA.js +2 -0
- package/__chunks__/{chunk-4NZOWIB6.js → chunk-JQRTD77Q.js} +2 -2
- package/__chunks__/{chunk-L7EGO43D.js → chunk-JW2XATOA.js} +2 -2
- package/__chunks__/{chunk-GOTWCABN.js → chunk-JWEZ46IR.js} +2 -2
- package/__chunks__/{chunk-XEB3CP25.js → chunk-JYFSXNL3.js} +2 -2
- package/__chunks__/chunk-JZCKLQSU.js +2 -0
- package/__chunks__/{chunk-CNRSPC7U.js → chunk-JZKM2C54.js} +2 -2
- package/__chunks__/{chunk-YSSHV56U.js → chunk-K5YZJKXF.js} +2 -2
- package/__chunks__/{chunk-KIX3PNJL.js → chunk-KDJEFHDA.js} +2 -2
- package/__chunks__/chunk-KE6HROJC.js +2 -0
- package/__chunks__/{chunk-OWRLRXQN.js → chunk-KEPXF6B5.js} +2 -2
- package/__chunks__/chunk-KKIRI32I.js +2 -0
- package/__chunks__/{chunk-TGQPRC3E.js → chunk-KLF63E36.js} +2 -2
- package/__chunks__/{chunk-BEDMP6DW.js → chunk-KM5VID2Y.js} +2 -2
- package/__chunks__/{chunk-XSHCNXON.js → chunk-KQNLURSR.js} +2 -2
- package/__chunks__/chunk-L2E7HLRX.js +2 -0
- package/__chunks__/{chunk-5SMV2HL6.js → chunk-L5KAPOB2.js} +2 -2
- package/__chunks__/{chunk-WPJCOYHI.js → chunk-L7SYNU3B.js} +2 -2
- package/__chunks__/{chunk-TDXF63R5.js → chunk-LFTXDP3V.js} +2 -2
- package/__chunks__/{chunk-REFUPMY7.js → chunk-LIQIEJ4G.js} +2 -2
- package/__chunks__/{chunk-MPIMSPN7.js → chunk-LNF5YD5R.js} +2 -2
- package/__chunks__/{chunk-6UQZ3OKM.js → chunk-LNV6RM3B.js} +2 -2
- package/__chunks__/{chunk-UIIZ6NP2.js → chunk-LNVZWQN5.js} +2 -2
- package/__chunks__/{chunk-5GMNPCKD.js → chunk-LO47QIGW.js} +2 -2
- package/__chunks__/{chunk-DRJH5L43.js → chunk-LPO3Z7B7.js} +2 -2
- package/__chunks__/chunk-LW7JNB3E.js +2 -0
- package/__chunks__/{chunk-JO34VAEB.js → chunk-LWSGVE66.js} +2 -2
- package/__chunks__/{chunk-HQSE7JYF.js → chunk-LXYDM3ZJ.js} +2 -2
- package/__chunks__/{chunk-P4PQKFP6.js → chunk-LYFZVP6O.js} +2 -2
- package/__chunks__/{chunk-7NBSAZAZ.js → chunk-M2YEWGWW.js} +2 -2
- package/__chunks__/{chunk-DZPTMTNA.js → chunk-M33AYCCE.js} +2 -2
- package/__chunks__/{chunk-C3VMCHKV.js → chunk-M3HFJYTH.js} +2 -2
- package/__chunks__/{chunk-VJTK5CAX.js → chunk-M7DPYTT6.js} +2 -2
- package/__chunks__/{chunk-RIYODA4U.js → chunk-MKCZQ5MD.js} +2 -2
- package/__chunks__/{chunk-XUC4HXOH.js → chunk-MKRLJ2PN.js} +2 -2
- package/__chunks__/{chunk-CQYV7VLN.js → chunk-MUC7ICOT.js} +2 -2
- package/__chunks__/{chunk-ERGUC7RS.js → chunk-MUWZOIKA.js} +2 -2
- package/__chunks__/chunk-MV4EAS7G.js +2 -0
- package/__chunks__/{chunk-7ZFN6DAF.js → chunk-MYWXSGPN.js} +2 -2
- package/__chunks__/{chunk-2UELE5RP.js → chunk-N4UYEP6W.js} +2 -2
- package/__chunks__/chunk-NDRUVBBB.js +2 -0
- package/__chunks__/{chunk-JXNIKWR3.js → chunk-NDVUOS7D.js} +2 -2
- package/__chunks__/chunk-NFOFGSPN.js +2 -0
- package/__chunks__/{chunk-XVFUG6HX.js → chunk-NHCVT6PA.js} +2 -2
- package/__chunks__/{chunk-YS6VTJRF.js → chunk-NIDER4T2.js} +2 -2
- package/__chunks__/{chunk-KL5TOS66.js → chunk-NJ4A7FTQ.js} +2 -2
- package/__chunks__/{chunk-2RPKO46G.js → chunk-NJNWFMF7.js} +2 -2
- package/__chunks__/{chunk-7RHCSKH4.js → chunk-NMJNHPQ2.js} +2 -2
- package/__chunks__/{chunk-PEWA4F72.js → chunk-NNSFFGZO.js} +2 -2
- package/__chunks__/{chunk-ERFSDC7O.js → chunk-NOJ47DZM.js} +2 -2
- package/__chunks__/{chunk-6LPW3CDV.js → chunk-NXEQ23NV.js} +2 -2
- package/__chunks__/{chunk-BPXAQ3N6.js → chunk-NZDF4OJ4.js} +2 -2
- package/__chunks__/{chunk-ALA3L6KA.js → chunk-NZDQ5B22.js} +2 -2
- package/__chunks__/{chunk-3W5E4B37.js → chunk-OIUSVMST.js} +2 -2
- package/__chunks__/chunk-OJZ5CHVT.js +2 -0
- package/__chunks__/{chunk-HCHGE46O.js → chunk-OLCE3IBV.js} +2 -2
- package/__chunks__/{chunk-OU2XINDL.js → chunk-OMMS3TDP.js} +2 -2
- package/__chunks__/{chunk-AVUWLK23.js → chunk-OPBOK7NH.js} +2 -2
- package/__chunks__/{chunk-4EN2N632.js → chunk-OQIGIUYV.js} +2 -2
- package/__chunks__/{chunk-RZG4WZYV.js → chunk-ORP6ANNG.js} +2 -2
- package/__chunks__/{chunk-RXMTHMME.js → chunk-ORS3X6E6.js} +2 -2
- package/__chunks__/{chunk-FE5YIIRT.js → chunk-OSLKCV43.js} +2 -2
- package/__chunks__/{chunk-23SK5JZV.js → chunk-OT6XVANJ.js} +2 -2
- package/__chunks__/{chunk-SKT4IMT2.js → chunk-OVIFMM5W.js} +2 -2
- package/__chunks__/{chunk-TGPYMIYT.js → chunk-P2XNUA3E.js} +2 -2
- package/__chunks__/{chunk-ZNVXGWDA.js → chunk-P54RMDWF.js} +2 -2
- package/__chunks__/{chunk-AZMRUMNU.js → chunk-P7JZ2V3F.js} +2 -2
- package/__chunks__/{chunk-UFNCDNRY.js → chunk-PE5T4NQD.js} +2 -2
- package/__chunks__/chunk-PRTUJNMU.js +2 -0
- package/__chunks__/{chunk-IYTI4QKG.js → chunk-PSXJQSQW.js} +2 -2
- package/__chunks__/{chunk-ZXVNULI4.js → chunk-PXAQXPOP.js} +2 -2
- package/__chunks__/{chunk-2KY4QWSC.js → chunk-PXY6DLDS.js} +2 -2
- package/__chunks__/chunk-PZAWH4JF.js +2 -0
- package/__chunks__/{chunk-3YXC5JZZ.js → chunk-PZCZ744L.js} +2 -2
- package/__chunks__/{chunk-3MTW6CKP.js → chunk-Q7AS2DI4.js} +2 -2
- package/__chunks__/{chunk-AR3OQ7J5.js → chunk-Q7GNNHQN.js} +2 -2
- package/__chunks__/{chunk-6JABOYPC.js → chunk-QG4NHYTE.js} +2 -2
- package/__chunks__/{chunk-CWYU3776.js → chunk-QMJMAAJR.js} +2 -2
- package/__chunks__/{chunk-ZOOB6JMS.js → chunk-QSFCFBTY.js} +2 -2
- package/__chunks__/{chunk-SHWKM62K.js → chunk-QXMHZUA3.js} +2 -2
- package/__chunks__/{chunk-CIK3OP3W.js → chunk-QYC7YEV6.js} +2 -2
- package/__chunks__/{chunk-IFUFEVQK.js → chunk-QYE64N7C.js} +2 -2
- package/__chunks__/{chunk-72V5YBWF.js → chunk-QYHVONTE.js} +2 -2
- package/__chunks__/{chunk-65WWIF7D.js → chunk-RAM7BRTM.js} +2 -2
- package/__chunks__/{chunk-G3ZOQGZX.js → chunk-RAOOB77T.js} +2 -2
- package/__chunks__/chunk-RCQP4KA4.js +2 -0
- package/__chunks__/{chunk-3AXXYUOP.js → chunk-RH42MKGL.js} +2 -2
- package/__chunks__/{chunk-BZQLEROR.js → chunk-RHKZMT5Q.js} +2 -2
- package/__chunks__/{chunk-PD32FUSS.js → chunk-RHNWMDQA.js} +2 -2
- package/__chunks__/{chunk-MZHG2RI3.js → chunk-RN5J5JCS.js} +2 -2
- package/__chunks__/{chunk-ZV73R3EO.js → chunk-ROPM2POW.js} +2 -2
- package/__chunks__/{chunk-7LKRSFH6.js → chunk-RRD6KUKX.js} +2 -2
- package/__chunks__/{chunk-I2R5RIDT.js → chunk-RUIPRG2Z.js} +2 -2
- package/__chunks__/{chunk-RPM6LGWA.js → chunk-RUWTABTA.js} +2 -2
- package/__chunks__/{chunk-226GRIU3.js → chunk-RY7CQ27Q.js} +2 -2
- package/__chunks__/{chunk-SPOOVKNY.js → chunk-RYIA276T.js} +2 -2
- package/__chunks__/{chunk-UGMTUEKR.js → chunk-RZGURUQJ.js} +2 -2
- package/__chunks__/chunk-RZIHP55A.js +2 -0
- package/__chunks__/{chunk-6F4XCMWV.js → chunk-S4LT7RDG.js} +2 -2
- package/__chunks__/{chunk-OEMZAY67.js → chunk-S5IQBF7Z.js} +2 -2
- package/__chunks__/chunk-S62Z73KA.js +2 -0
- package/__chunks__/{chunk-GE564K2K.js → chunk-SBFJYOBA.js} +2 -2
- package/__chunks__/{chunk-CIQXACPM.js → chunk-SCYICY25.js} +2 -2
- package/__chunks__/{chunk-FS6XJT4C.js → chunk-SIRPFOC2.js} +2 -2
- package/__chunks__/{chunk-GAYRFMCJ.js → chunk-SNKQCASD.js} +2 -2
- package/__chunks__/chunk-SOLKX4GS.js +2 -0
- package/__chunks__/{chunk-FE7FEMEL.js → chunk-SR4EHA2M.js} +2 -2
- package/__chunks__/{chunk-RZWJ6KVC.js → chunk-SXSVN3XM.js} +2 -2
- package/__chunks__/{chunk-KIL25NBT.js → chunk-SYGQ4KXJ.js} +2 -2
- package/__chunks__/chunk-SYQQ2ZJZ.js +2 -0
- package/__chunks__/{chunk-F3JYEJF7.js → chunk-SYRUCQNC.js} +2 -2
- package/__chunks__/{chunk-XAGDXYXW.js → chunk-T2RK4PSV.js} +2 -2
- package/__chunks__/{chunk-2JBVTT6H.js → chunk-T7N3XKKN.js} +2 -2
- package/__chunks__/chunk-TBXFO7X4.js +2 -0
- package/__chunks__/{chunk-NAR2K24X.js → chunk-TG3EUVK2.js} +2 -2
- package/__chunks__/{chunk-P6W73G5S.js → chunk-TIP4DZIO.js} +1 -1
- package/__chunks__/{chunk-ZM7KWXFM.js → chunk-TJG3Q5SV.js} +2 -2
- package/__chunks__/{chunk-ENZLOTF5.js → chunk-TL3VVE3L.js} +2 -2
- package/__chunks__/{chunk-ABHZRPVD.js → chunk-TLKAAX2W.js} +2 -2
- package/__chunks__/{chunk-OYWOUMWN.js → chunk-TSO5AETL.js} +2 -2
- package/__chunks__/chunk-TT3TXT62.js +2 -0
- package/__chunks__/{chunk-L3MXJ2M2.js → chunk-TT5WNMCD.js} +2 -2
- package/__chunks__/{chunk-NXTBT3IO.js → chunk-TTDXQQSI.js} +2 -2
- package/__chunks__/{chunk-G7SYG472.js → chunk-TTVLWKH3.js} +2 -2
- package/__chunks__/{chunk-TDD4M4EI.js → chunk-TUOF7EUP.js} +2 -2
- package/__chunks__/chunk-TVGICYGX.js +2 -0
- package/__chunks__/chunk-U6BQJCEY.js +2 -0
- package/__chunks__/{chunk-UALIH6UW.js → chunk-UA4TRF5Z.js} +2 -2
- package/__chunks__/{chunk-JBMC7FX4.js → chunk-UEKUGJN6.js} +2 -2
- package/__chunks__/{chunk-NZOEVENA.js → chunk-UEY6TCUR.js} +2 -2
- package/__chunks__/{chunk-KFGCNXAS.js → chunk-UISGO47J.js} +2 -2
- package/__chunks__/{chunk-GE7XCKW5.js → chunk-UNNXSOTB.js} +2 -2
- package/__chunks__/{chunk-2XRIEURJ.js → chunk-UOH5VTV4.js} +2 -2
- package/__chunks__/chunk-UV7SNEOD.js +2 -0
- package/__chunks__/chunk-UVD6IP2L.js +2 -0
- package/__chunks__/chunk-V3TEWFE6.js +2 -0
- package/__chunks__/chunk-V5JQ4K27.js +2 -0
- package/__chunks__/{chunk-EA4ZP2SI.js → chunk-V6I3BAYH.js} +2 -2
- package/__chunks__/{chunk-GYR6H4IK.js → chunk-V6YKGM5W.js} +2 -2
- package/__chunks__/{chunk-STVZIEFH.js → chunk-V7MXZY5Z.js} +2 -2
- package/__chunks__/chunk-VAWZV2EL.js +2 -0
- package/__chunks__/chunk-VBYPB2CY.js +2 -0
- package/__chunks__/{chunk-3UD25ZV3.js → chunk-VDDGQRVP.js} +2 -2
- package/__chunks__/{chunk-KBVXFWUL.js → chunk-VGIUMM3T.js} +2 -2
- package/__chunks__/{chunk-3K72QKXJ.js → chunk-VH5NH2CF.js} +2 -2
- package/__chunks__/{chunk-NTE3LFFU.js → chunk-VILRG2M7.js} +2 -2
- package/__chunks__/{chunk-5FVLUCWD.js → chunk-VLIXR53Q.js} +2 -2
- package/__chunks__/{chunk-MHZLCTGU.js → chunk-VMITCNT4.js} +2 -2
- package/__chunks__/{chunk-6KUGC3JN.js → chunk-VOTDYSB3.js} +2 -2
- package/__chunks__/{chunk-KONFL2W6.js → chunk-VTANRYZH.js} +2 -2
- package/__chunks__/chunk-VYFR2F6X.js +2 -0
- package/__chunks__/{chunk-LWI2L2ZK.js → chunk-W2WUWDGR.js} +2 -2
- package/__chunks__/{chunk-CQLYAJIL.js → chunk-W2YO5QJT.js} +2 -2
- package/__chunks__/{chunk-RVSNSIGR.js → chunk-W3SJMUQN.js} +2 -2
- package/__chunks__/{chunk-LGKH75Q3.js → chunk-W5N5HOWQ.js} +2 -2
- package/__chunks__/{chunk-7FHGGB2O.js → chunk-W7VW4WIH.js} +2 -2
- package/__chunks__/{chunk-2P25JN34.js → chunk-WIFXGSJB.js} +2 -2
- package/__chunks__/{chunk-AZWWHYRV.js → chunk-WLCAEKTC.js} +2 -2
- package/__chunks__/{chunk-5IYFGFIY.js → chunk-WLMU3NLM.js} +2 -2
- package/__chunks__/{chunk-CSSFZPNZ.js → chunk-WLPODFT3.js} +2 -2
- package/__chunks__/{chunk-AYESQJ5A.js → chunk-X2QI6H5S.js} +2 -2
- package/__chunks__/{chunk-DLSA4Y5E.js → chunk-XBFDMYTL.js} +2 -2
- package/__chunks__/{chunk-WGY6OXMJ.js → chunk-XD6IE4VN.js} +2 -2
- package/__chunks__/{chunk-TZFTWIII.js → chunk-XDQSMAIT.js} +2 -2
- package/__chunks__/chunk-XLYEJCM4.js +2 -0
- package/__chunks__/{chunk-Q6GLZCBY.js → chunk-XMRHG65R.js} +2 -2
- package/__chunks__/chunk-XSZE7DDT.js +2 -0
- package/__chunks__/{chunk-MXWTBFES.js → chunk-Y3DVSW3J.js} +2 -2
- package/__chunks__/{chunk-62Q7IIQQ.js → chunk-Y7Q7GOKF.js} +2 -2
- package/__chunks__/{chunk-HKX7J55L.js → chunk-YAAH2DP7.js} +2 -2
- package/__chunks__/chunk-YFTCDGF5.js +2 -0
- package/__chunks__/{chunk-BJGCBR4B.js → chunk-YGSDDNGG.js} +2 -2
- package/__chunks__/{chunk-DC6SGPAM.js → chunk-YIP2QOMP.js} +2 -2
- package/__chunks__/{chunk-HXBGVHIC.js → chunk-YIWXX2UT.js} +2 -2
- package/__chunks__/{chunk-GAZQLL7K.js → chunk-YKFLJ6UA.js} +2 -2
- package/__chunks__/{chunk-DJGL5PNP.js → chunk-YNL5DMER.js} +2 -2
- package/__chunks__/{chunk-3X7STVWS.js → chunk-YP633REM.js} +2 -2
- package/__chunks__/{chunk-DKWBX5AH.js → chunk-YWS35R44.js} +2 -2
- package/__chunks__/chunk-YWYKCNJE.js +2 -0
- package/__chunks__/{chunk-I2IXRA46.js → chunk-YYLPDQ2D.js} +2 -2
- package/__chunks__/{chunk-VFVJY5YN.js → chunk-ZA2VDOW6.js} +2 -2
- package/__chunks__/{chunk-SGPGBRHF.js → chunk-ZDIZBRUN.js} +2 -2
- package/__chunks__/{chunk-CVDMNL7U.js → chunk-ZEE2HWPY.js} +2 -2
- package/__chunks__/{chunk-YKBHREFY.js → chunk-ZIJYH4DY.js} +2 -2
- package/__chunks__/{chunk-3PIW7IXZ.js → chunk-ZM23OWNF.js} +2 -2
- package/__chunks__/{chunk-YKAO443T.js → chunk-ZRB2R2K3.js} +2 -2
- package/__chunks__/{chunk-BOO55BUP.js → chunk-ZYK3SYJD.js} +2 -2
- package/__chunks__/{chunk-UASO4ZWS.js → chunk-ZYVOMA2Z.js} +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithMetamaskModal/SignWithMetamaskModal.js +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignWithMetamaskModal/index.js +2 -2
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/index.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +3 -3
- package/__commonjs/UI/index.js +1 -1
- package/__commonjs/__mocks__/index.js +2 -2
- package/__commonjs/__mocks__/utils/index.js +3 -3
- package/__commonjs/__mocks__/utils/renderWithProvider.js +3 -3
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
- package/__commonjs/hooks/transactions/helpers/index.js +1 -1
- package/__commonjs/hooks/transactions/index.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/__commonjs/types/network.types.d.ts +1 -1
- package/__commonjs/utils/index.js +1 -1
- package/__commonjs/utils/transactions/builtCallbackUrl.js +1 -1
- package/__commonjs/utils/transactions/index.js +1 -1
- package/__commonjs/utils/transactions/parseMultiEsdtTransferDataForMultipleTransactions.js +1 -1
- package/__commonjs/wrappers/AppInitializer.d.ts +2 -2
- package/__commonjs/wrappers/AppInitializer.js +1 -1
- package/__commonjs/wrappers/DappProvider/DappProvider.d.ts +3 -3
- package/__commonjs/wrappers/DappProvider/DappProvider.js +3 -3
- package/__commonjs/wrappers/DappProvider/index.js +3 -3
- package/__commonjs/wrappers/index.js +3 -3
- package/__mocks__/accountConfig.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/server.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/accounts/useGetAccountFromApi.js +1 -1
- package/apiCalls/configuration/getApiAddressForChainId.js +1 -1
- package/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
- package/apiCalls/configuration/getNetworkConfig.js +1 -1
- package/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
- package/apiCalls/configuration/index.js +1 -1
- package/apiCalls/configuration/useGetNetworkConfigFromApi.js +1 -1
- package/apiCalls/configuration/useGetServerConfigurationFromApi.js +1 -1
- package/apiCalls/economics/getEconomicsInfo.js +1 -1
- package/apiCalls/economics/index.js +1 -1
- package/apiCalls/economics/useGetEconomicsInfoFromApi.js +1 -1
- package/apiCalls/index.js +1 -1
- package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
- package/apiCalls/transactions/index.js +1 -1
- package/apiCalls/transactions/sendSignedBatchTransactions.js +1 -1
- package/apiCalls/transactions/sendSignedTransactions.js +1 -1
- package/apiCalls/transactions/useGetTransactionsFromApi.js +1 -1
- package/apiCalls/utils/getCleanApiAddress.js +1 -1
- package/apiCalls/utils/getScamAddressData.js +1 -1
- package/apiCalls/utils/index.js +1 -1
- package/apiCalls/utils/useApiFetch.js +1 -1
- package/components/LogoutListener/LogoutListener.js +1 -1
- package/components/LogoutListener/helpers/index.js +1 -1
- package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/components/LogoutListener/index.js +1 -1
- package/components/ProviderInitializer/ProviderInitializer.js +1 -1
- package/components/ProviderInitializer/helpers/index.js +1 -1
- package/components/ProviderInitializer/helpers/processModifiedAccount.js +1 -1
- package/components/ProviderInitializer/hooks/index.js +1 -1
- package/components/ProviderInitializer/hooks/useSetLedgerProvider.js +1 -1
- package/components/ProviderInitializer/index.js +1 -1
- package/components/TransactionSender/TransactionSender.js +1 -1
- package/components/TransactionSender/index.js +1 -1
- package/components/TransactionSender/utils/handleSendBatchTransactionsErrors.js +1 -1
- package/components/TransactionSender/utils/handleSendTransactionsErrors.js +1 -1
- package/components/TransactionSender/utils/invokeSendTransactions.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/constants/index.js +1 -1
- package/constants/network.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/useGetAccountProvider.js +1 -1
- package/hooks/account/useGetIsLoggedIn.js +1 -1
- package/hooks/account/useGetIsWalletConnectV2Initialized.js +1 -1
- package/hooks/account/useGetLoginInfo.js +1 -1
- package/hooks/account/useGetWebsocketEvent.js +1 -1
- package/hooks/economics/index.js +1 -1
- package/hooks/economics/useGetEgldPrice.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useCrossWindowLogin.js +1 -1
- package/hooks/login/useExtensionLogin.js +1 -1
- package/hooks/login/useGetModalLoginMethods.js +1 -1
- package/hooks/login/useLedgerLogin.js +1 -1
- package/hooks/login/useLoginService.js +1 -1
- package/hooks/login/useMetamaskLogin.js +1 -1
- package/hooks/login/useOperaLogin.js +1 -1
- package/hooks/login/useWalletConnectV2Login.js +1 -1
- package/hooks/login/useWebViewLogin.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/login/useXaliasLogin.js +1 -1
- package/hooks/signMessage/index.js +1 -1
- package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
- package/hooks/signMessage/useSignMessage.js +1 -1
- package/hooks/toasts/index.js +1 -1
- package/hooks/toasts/useGetToasts.js +1 -1
- package/hooks/toasts/useTransactionsToasts.js +1 -1
- package/hooks/transactions/batch/tracker/useBatchTransactionsTracker.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckBatch.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckBatchesOnWsFailureFallback.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckHangingBatchesFallback.js +1 -1
- package/hooks/transactions/batch/tracker/useUpdateBatch.js +1 -1
- package/hooks/transactions/batch/tracker/useVerifyBatchStatus.js +1 -1
- package/hooks/transactions/batch/useGetBatchStatus.js +1 -1
- package/hooks/transactions/batch/useGetBatches.js +1 -1
- package/hooks/transactions/batch/useResolveBatchStatusResponse.js +1 -1
- package/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
- package/hooks/transactions/helpers/buildBatchId.js +1 -1
- package/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
- package/hooks/transactions/helpers/extractSessionId.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/useGetLedgerProvider.js +1 -1
- package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
- package/hooks/transactions/index.js +1 -1
- package/hooks/transactions/useCancelWalletConnectAction.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/useGetLastPendingTransactionHash.js +1 -1
- package/hooks/transactions/useGetPendingTransactions.js +1 -1
- package/hooks/transactions/useGetSignTransactionsError.js +1 -1
- package/hooks/transactions/useGetSignedTransactions.js +1 -1
- package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
- package/hooks/transactions/useGetTokenDetails.js +1 -1
- package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
- package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/hooks/transactions/useSignMultipleTransactions.js +1 -1
- package/hooks/transactions/useSignTransactions.js +1 -1
- package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/hooks/transactions/useTransactionsTracker.js +1 -1
- package/hooks/useGetNetworkConfig.js +1 -1
- package/hooks/useGetNotification.js +1 -1
- package/hooks/websocketListener/index.js +1 -1
- package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
- package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
- package/models/index.js +1 -1
- package/models/newTransaction.js +1 -1
- package/package.json +1 -1
- package/providers/accountProvider.js +1 -1
- package/providers/experimentalWebViewProvider/ExperimentalWebviewProvider.js +1 -1
- package/providers/experimentalWebViewProvider/index.js +1 -1
- package/providers/index.js +1 -1
- package/providers/utils.js +1 -1
- package/providers/webviewProvider/index.js +1 -1
- package/providers/webviewProvider/requestMethods.js +1 -1
- package/providers/webviewProvider/webviewProvider.js +1 -1
- package/reduxStore/DappProviderContext.js +1 -1
- package/reduxStore/commonActions.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/batchTransactionsSlice.js +1 -1
- package/reduxStore/slices/dappConfigSlice.js +1 -1
- package/reduxStore/slices/index.js +1 -1
- package/reduxStore/slices/loginInfoSlice.js +1 -1
- package/reduxStore/slices/modalsSlice.js +1 -1
- package/reduxStore/slices/networkConfigSlice.js +1 -1
- package/reduxStore/slices/signedMessageInfoSlice.js +1 -1
- package/reduxStore/slices/toastsSlice.js +1 -1
- package/reduxStore/slices/transactionsInfoSlice.js +1 -1
- package/reduxStore/slices/transactionsSlice.js +1 -1
- package/reduxStore/store.js +1 -1
- package/services/index.js +1 -1
- package/services/nativeAuth/helpers/getAuthorizationInfo.js +1 -1
- package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
- package/services/nativeAuth/helpers/index.js +1 -1
- package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/services/transactions/clearTransactions.js +1 -1
- package/services/transactions/getBatchTransactionsStatus.js +1 -1
- package/services/transactions/getTransactionsDetails.js +1 -1
- package/services/transactions/index.js +1 -1
- package/services/transactions/isCrossShardTransaction.js +1 -1
- package/services/transactions/sendBatchTransactions.js +1 -1
- package/services/transactions/sendBatchTransactions.test.js +1 -1
- package/services/transactions/sendTransactions.js +1 -1
- package/services/transactions/signTransactions.js +1 -1
- package/services/transactions/transformAndSignTransactions.js +1 -1
- package/services/transactions/updateSignedTransactions.js +1 -1
- package/services/transactions/utils/transformTransactionsToSign.js +1 -1
- package/services/transactions/utils.js +1 -1
- package/types/index.js +1 -1
- package/types/network.types.d.ts +1 -1
- package/types/network.types.js +1 -1
- package/utils/account/getAccount.js +1 -1
- package/utils/account/getAccountBalance.js +1 -1
- package/utils/account/getAccountProviderType.js +1 -1
- package/utils/account/getAccountShard.js +1 -1
- package/utils/account/getAddress.js +1 -1
- package/utils/account/getIsProviderEqualTo.js +1 -1
- package/utils/account/getLatestNonce.js +1 -1
- package/utils/account/getShardOfAddress.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/calculateFeeInFiat.js +1 -1
- package/utils/operations/calculateFeeLimit.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/operations/ledger/getLedgerVersionOptions.js +1 -1
- package/utils/operations/ledger/index.js +1 -1
- package/utils/operations/nominate.js +1 -1
- package/utils/operations/parseAmount.js +1 -1
- package/utils/smartContracts.js +1 -1
- package/utils/toasts/customToastsActions.js +1 -1
- package/utils/toasts/index.js +1 -1
- package/utils/transactions/batch/getTransactionsStatus.js +1 -1
- package/utils/transactions/batch/updateBatchTransactionsStatuses.js +1 -1
- package/utils/transactions/builtCallbackUrl.js +1 -1
- package/utils/transactions/getAllTransactionsLink.js +1 -1
- package/utils/transactions/getAreTransactionsOnSameShard.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/getOperationsDetails.js +1 -1
- package/utils/transactions/getTransactionLink.js +1 -1
- package/utils/transactions/index.js +1 -1
- package/utils/transactions/isGuardianTx.js +1 -1
- package/utils/transactions/parseMultiEsdtTransferData.js +1 -1
- package/utils/transactions/parseMultiEsdtTransferDataForMultipleTransactions.js +1 -1
- package/utils/transactions/parseTransactionAfterSigning.js +1 -1
- package/utils/transactions/removeTransactionParamsFromUrl.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/getSmartDecodedParts.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/getScResultsInitialDecodeMethod.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
- package/utils/transactions/transactionInfoHelpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/mexUnwrapper.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/transactionActionUnwrapper.js +1 -1
- package/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
- package/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
- package/utils/validation/index.js +1 -1
- package/utils/validation/maxDecimals.js +1 -1
- package/utils/validation/stringIsFloat.js +1 -1
- package/utils/waitForChainID.js +1 -1
- package/utils/walletconnect/__mocks__/sdkWalletconnectProvider.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.d.ts +2 -2
- package/wrappers/AppInitializer.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/index.js +1 -1
- package/wrappers/DappProvider/CustomComponents.js +1 -1
- package/wrappers/DappProvider/DappProvider.d.ts +3 -3
- package/wrappers/DappProvider/DappProvider.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-26BFOSYR.js +0 -2
- package/__chunks__/chunk-27BI35VQ.js +0 -2
- package/__chunks__/chunk-2MEHZ3E7.js +0 -2
- package/__chunks__/chunk-44TKILLH.js +0 -2
- package/__chunks__/chunk-4IXXF2OS.js +0 -2
- package/__chunks__/chunk-4L4YMUXN.js +0 -2
- package/__chunks__/chunk-4UCPZKWV.js +0 -2
- package/__chunks__/chunk-55S34MLG.js +0 -2
- package/__chunks__/chunk-5DFAFR4Y.js +0 -2
- package/__chunks__/chunk-6WR3P3SZ.js +0 -2
- package/__chunks__/chunk-7AP2JWN4.js +0 -2
- package/__chunks__/chunk-A543D7LE.js +0 -2
- package/__chunks__/chunk-ADV34QOX.js +0 -2
- package/__chunks__/chunk-AG5QSXN7.js +0 -2
- package/__chunks__/chunk-AJVEWURR.js +0 -2
- package/__chunks__/chunk-ARUFLCIF.js +0 -2
- package/__chunks__/chunk-AVVEB4ZO.js +0 -2
- package/__chunks__/chunk-B4AWZODK.js +0 -2
- package/__chunks__/chunk-BGI2MJL6.js +0 -2
- package/__chunks__/chunk-BV4WUHVL.js +0 -2
- package/__chunks__/chunk-BZWABG5P.js +0 -2
- package/__chunks__/chunk-C2CPND3O.js +0 -2
- package/__chunks__/chunk-CBVPW6XF.js +0 -2
- package/__chunks__/chunk-CUJVEF7E.js +0 -2
- package/__chunks__/chunk-DBOSYIA6.js +0 -2
- package/__chunks__/chunk-DC533G6D.js +0 -2
- package/__chunks__/chunk-DC5I2W2A.js +0 -2
- package/__chunks__/chunk-ELLPXOTR.js +0 -2
- package/__chunks__/chunk-EOT7EIAH.js +0 -2
- package/__chunks__/chunk-EVDR3237.js +0 -2
- package/__chunks__/chunk-FCYX6V2K.js +0 -2
- package/__chunks__/chunk-GIXZPP2X.js +0 -2
- package/__chunks__/chunk-GNXN7TIU.js +0 -2
- package/__chunks__/chunk-H3XPQ474.js +0 -2
- package/__chunks__/chunk-HPBWF4DU.js +0 -2
- package/__chunks__/chunk-HT4E4WDW.js +0 -2
- package/__chunks__/chunk-IN6IW6EE.js +0 -2
- package/__chunks__/chunk-IPW2LEMR.js +0 -2
- package/__chunks__/chunk-JBIF67QA.js +0 -2
- package/__chunks__/chunk-K44442IF.js +0 -2
- package/__chunks__/chunk-KCXZWFFH.js +0 -2
- package/__chunks__/chunk-L2Y22B4V.js +0 -2
- package/__chunks__/chunk-MEUMBNFZ.js +0 -2
- package/__chunks__/chunk-MTUQFPUY.js +0 -2
- package/__chunks__/chunk-NWHCEOEY.js +0 -2
- package/__chunks__/chunk-NZVZDQME.js +0 -2
- package/__chunks__/chunk-O55WMRTG.js +0 -2
- package/__chunks__/chunk-O5XMV5V3.js +0 -2
- package/__chunks__/chunk-OB5QVPHT.js +0 -2
- package/__chunks__/chunk-ODQFRDDN.js +0 -2
- package/__chunks__/chunk-OJEND2JN.js +0 -2
- package/__chunks__/chunk-P2B7Q2NM.js +0 -2
- package/__chunks__/chunk-PFSNJY72.js +0 -2
- package/__chunks__/chunk-PLVWMRQ2.js +0 -2
- package/__chunks__/chunk-QDDCV2AF.js +0 -2
- package/__chunks__/chunk-QMQN46OR.js +0 -2
- package/__chunks__/chunk-QP2B5YYT.js +0 -2
- package/__chunks__/chunk-QXUIGOWP.js +0 -2
- package/__chunks__/chunk-SSSXBE2F.js +0 -2
- package/__chunks__/chunk-STLEVKSL.js +0 -2
- package/__chunks__/chunk-T7FA7AAZ.js +0 -2
- package/__chunks__/chunk-TK5ODW3Z.js +0 -2
- package/__chunks__/chunk-TPWNQ73D.js +0 -2
- package/__chunks__/chunk-TR5S3XEF.js +0 -2
- package/__chunks__/chunk-V3A2Z4NA.js +0 -2
- package/__chunks__/chunk-V5SCS5YF.js +0 -2
- package/__chunks__/chunk-VIY2BIZ6.js +0 -2
- package/__chunks__/chunk-VQX2KQ62.js +0 -2
- package/__chunks__/chunk-X63JL7LV.js +0 -2
- package/__chunks__/chunk-YZ24RXA2.js +0 -2
- package/__chunks__/chunk-ZM6K3JPJ.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Yr=Object.create;var M=Object.defineProperty;var $r=Object.getOwnPropertyDescriptor;var zr=Object.getOwnPropertyNames,ur=Object.getOwnPropertySymbols,Xr=Object.getPrototypeOf,cr=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable;var pr=(t,r,e)=>r in t?M(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,W=(t,r)=>{for(var e in r||(r={}))cr.call(r,e)&&pr(t,e,r[e]);if(ur)for(var e of ur(r))Jr.call(r,e)&&pr(t,e,r[e]);return t};var Kr=(t,r)=>()=>(t&&(r=t(t=0)),r);var G=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),jr=(t,r)=>{for(var e in r)M(t,e,{get:r[e],enumerable:!0})},lr=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of zr(r))!cr.call(t,i)&&i!==e&&M(t,i,{get:()=>r[i],enumerable:!(n=$r(r,i))||n.enumerable});return t};var H=(t,r,e)=>(e=t!=null?Yr(Xr(t)):{},lr(r||!t||!t.__esModule?M(e,"default",{value:t,enumerable:!0}):e,t)),Qr=t=>lr(M({},"__esModule",{value:!0}),t);var dr=G(q=>{"use strict";l();q.byteLength=re;q.toByteArray=te;q.fromByteArray=oe;var F=[],k=[],Zr=typeof Uint8Array!="undefined"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(D=0,fr=X.length;D<fr;++D)F[D]=X[D],k[X.charCodeAt(D)]=D;var D,fr;k["-".charCodeAt(0)]=62;k["_".charCodeAt(0)]=63;function gr(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function re(t){var r=gr(t),e=r[0],n=r[1];return(e+n)*3/4-n}function ee(t,r,e){return(r+e)*3/4-e}function te(t){var r,e=gr(t),n=e[0],i=e[1],o=new Zr(ee(t,n,i)),a=0,u=i>0?n-4:n,p;for(p=0;p<u;p+=4)r=k[t.charCodeAt(p)]<<18|k[t.charCodeAt(p+1)]<<12|k[t.charCodeAt(p+2)]<<6|k[t.charCodeAt(p+3)],o[a++]=r>>16&255,o[a++]=r>>8&255,o[a++]=r&255;return i===2&&(r=k[t.charCodeAt(p)]<<2|k[t.charCodeAt(p+1)]>>4,o[a++]=r&255),i===1&&(r=k[t.charCodeAt(p)]<<10|k[t.charCodeAt(p+1)]<<4|k[t.charCodeAt(p+2)]>>2,o[a++]=r>>8&255,o[a++]=r&255),o}function ne(t){return F[t>>18&63]+F[t>>12&63]+F[t>>6&63]+F[t&63]}function ie(t,r,e){for(var n,i=[],o=r;o<e;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(ne(n));return i.join("")}function oe(t){for(var r,e=t.length,n=e%3,i=[],o=16383,a=0,u=e-n;a<u;a+=o)i.push(ie(t,a,a+o>u?u:a+o));return n===1?(r=t[e-1],i.push(F[r>>2]+F[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),i.join("")}});var hr=G(J=>{l();J.read=function(t,r,e,n,i){var o,a,u=i*8-n-1,p=(1<<u)-1,f=p>>1,g=-7,c=e?i-1:0,d=e?-1:1,w=t[r+c];for(c+=d,o=w&(1<<-g)-1,w>>=-g,g+=u;g>0;o=o*256+t[r+c],c+=d,g-=8);for(a=o&(1<<-g)-1,o>>=-g,g+=n;g>0;a=a*256+t[r+c],c+=d,g-=8);if(o===0)o=1-f;else{if(o===p)return a?NaN:(w?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-f}return(w?-1:1)*a*Math.pow(2,o-n)};J.write=function(t,r,e,n,i,o){var a,u,p,f=o*8-i-1,g=(1<<f)-1,c=g>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:o-1,b=n?1:-1,Vr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,a=g):(a=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+c>=1?r+=d/p:r+=d*Math.pow(2,1-c),r*p>=2&&(a++,p/=2),a+c>=g?(u=0,a=g):a+c>=1?(u=(r*p-1)*Math.pow(2,i),a=a+c):(u=r*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;t[e+w]=u&255,w+=b,u/=256,i-=8);for(a=a<<i|u,f+=i;f>0;t[e+w]=a&255,w+=b,a/=256,f-=8);t[e+w-b]|=Vr*128}});var Rr=G(U=>{"use strict";l();var K=dr(),L=hr(),mr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;U.Buffer=s;U.SlowBuffer=le;U.INSPECT_MAX_BYTES=50;var O=2147483647;U.kMaxLength=O;s.TYPED_ARRAY_SUPPORT=ae();!s.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 ae(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function R(t){if(t>O)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,s.prototype),r}function s(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return rr(t)}return Tr(t,r,e)}s.poolSize=8192;function Tr(t,r,e){if(typeof t=="string")return ue(t,r);if(ArrayBuffer.isView(t))return pe(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return Q(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,r,e);var i=ce(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,r,e){return Tr(t,r,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function wr(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function se(t,r,e){return wr(t),t<=0?R(t):r!==void 0?typeof e=="string"?R(t).fill(r,e):R(t).fill(r):R(t)}s.alloc=function(t,r,e){return se(t,r,e)};function rr(t){return wr(t),R(t<0?0:er(t)|0)}s.allocUnsafe=function(t){return rr(t)};s.allocUnsafeSlow=function(t){return rr(t)};function ue(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=vr(t,r)|0,n=R(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function j(t){for(var r=t.length<0?0:er(t.length)|0,e=R(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function pe(t){if(I(t,Uint8Array)){var r=new Uint8Array(t);return Q(r.buffer,r.byteOffset,r.byteLength)}return j(t)}function Q(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,s.prototype),n}function ce(t){if(s.isBuffer(t)){var r=er(t.length)|0,e=R(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||tr(t.length)?R(0):j(t);if(t.type==="Buffer"&&Array.isArray(t.data))return j(t.data)}function er(t){if(t>=O)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O.toString(16)+" bytes");return t|0}function le(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,e){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(r)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,i=e.length,o=0,a=Math.min(n,i);o<a;++o)if(r[o]!==e[o]){n=r[o],i=e[o];break}return n<i?-1:i<n?1:0};s.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=s.allocUnsafe(e),o=0;for(n=0;n<r.length;++n){var a=r[n];if(I(a,Uint8Array))o+a.length>i.length?s.from(a).copy(i,o):Uint8Array.prototype.set.call(i,a,o);else if(s.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function vr(t,r){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Br(t).length;default:if(i)return n?-1:Z(t).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=vr;function fe(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ke(this,r,e);case"utf8":case"utf-8":return br(this,r,e);case"ascii":return we(this,r,e);case"latin1":case"binary":return ve(this,r,e);case"base64":return xe(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function E(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}s.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)E(this,e,e+1);return this};s.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)E(this,e,e+3),E(this,e+1,e+2);return this};s.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)E(this,e,e+7),E(this,e+1,e+6),E(this,e+2,e+5),E(this,e+3,e+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?br(this,0,r):fe.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",e=U.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};mr&&(s.prototype[mr]=s.prototype.inspect);s.prototype.compare=function(r,e,n,i,o){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),e<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var a=o-i,u=n-e,p=Math.min(a,u),f=this.slice(i,o),g=r.slice(e,n),c=0;c<p;++c)if(f[c]!==g[c]){a=f[c],u=g[c];break}return a<u?-1:u<a?1:0};function kr(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,tr(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=s.from(r,n)),s.isBuffer(r))return r.length===0?-1:yr(t,r,e,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):yr(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function yr(t,r,e,n,i){var o=1,a=t.length,u=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;o=2,a/=2,u/=2,e/=2}function p(w,b){return o===1?w[b]:w.readUInt16BE(b*o)}var f;if(i){var g=-1;for(f=e;f<a;f++)if(p(t,f)===p(r,g===-1?0:f-g)){if(g===-1&&(g=f),f-g+1===u)return g*o}else g!==-1&&(f-=f-g),g=-1}else for(e+u>a&&(e=a-u),f=e;f>=0;f--){for(var c=!0,d=0;d<u;d++)if(p(t,f+d)!==p(r,d)){c=!1;break}if(c)return f}return-1}s.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};s.prototype.indexOf=function(r,e,n){return kr(this,r,e,n,!0)};s.prototype.lastIndexOf=function(r,e,n){return kr(this,r,e,n,!1)};function ge(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var u=parseInt(r.substr(a*2,2),16);if(tr(u))return a;t[e+a]=u}return a}function de(t,r,e,n){return V(Z(r,t.length-e),t,e,n)}function he(t,r,e,n){return V(Se(r),t,e,n)}function me(t,r,e,n){return V(Br(r),t,e,n)}function ye(t,r,e,n){return V(Be(r,t.length-e),t,e,n)}s.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-e;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return ge(this,r,e,n);case"utf8":case"utf-8":return de(this,r,e,n);case"ascii":case"latin1":case"binary":return he(this,r,e,n);case"base64":return me(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,r,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xe(t,r,e){return r===0&&e===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(r,e))}function br(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o=t[i],a=null,u=o>239?4:o>223?3:o>191?2:1;if(i+u<=e){var p,f,g,c;switch(u){case 1:o<128&&(a=o);break;case 2:p=t[i+1],(p&192)===128&&(c=(o&31)<<6|p&63,c>127&&(a=c));break;case 3:p=t[i+1],f=t[i+2],(p&192)===128&&(f&192)===128&&(c=(o&15)<<12|(p&63)<<6|f&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:p=t[i+1],f=t[i+2],g=t[i+3],(p&192)===128&&(f&192)===128&&(g&192)===128&&(c=(o&15)<<18|(p&63)<<12|(f&63)<<6|g&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,u=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=u}return Te(n)}var xr=4096;function Te(t){var r=t.length;if(r<=xr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=xr));return e}function we(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function ve(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ke(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o<e;++o)i+=Re[t[o]];return i}function be(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i=this.subarray(r,e);return Object.setPrototypeOf(i,s.prototype),i};function T(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||T(r,e,this.length);for(var i=this[r],o=1,a=0;++a<e&&(o*=256);)i+=this[r+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||T(r,e,this.length);for(var i=this[r+--e],o=1;e>0&&(o*=256);)i+=this[r+--e]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,e){return r=r>>>0,e||T(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||T(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||T(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||T(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||T(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||T(r,e,this.length);for(var i=this[r],o=1,a=0;++a<e&&(o*=256);)i+=this[r+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||T(r,e,this.length);for(var i=e,o=1,a=this[r+--i];i>0&&(o*=256);)a+=this[r+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*e)),a};s.prototype.readInt8=function(r,e){return r=r>>>0,e||T(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,e){r=r>>>0,e||T(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(r,e){r=r>>>0,e||T(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(r,e){return r=r>>>0,e||T(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,e){return r=r>>>0,e||T(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,e){return r=r>>>0,e||T(r,4,this.length),L.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,e){return r=r>>>0,e||T(r,4,this.length),L.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||T(r,8,this.length),L.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||T(r,8,this.length),L.read(this,r,!1,52,8)};function v(t,r,e,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;v(this,r,e,n,o,0)}var a=1,u=0;for(this[e]=r&255;++u<n&&(a*=256);)this[e+u]=r/a&255;return e+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;v(this,r,e,n,o,0)}var a=n-1,u=1;for(this[e+a]=r&255;--a>=0&&(u*=256);)this[e+a]=r/u&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,1,255,0),this[e]=r&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};s.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var o=Math.pow(2,8*n-1);v(this,r,e,n,o-1,-o)}var a=0,u=1,p=0;for(this[e]=r&255;++a<n&&(u*=256);)r<0&&p===0&&this[e+a-1]!==0&&(p=1),this[e+a]=(r/u>>0)-p&255;return e+n};s.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var o=Math.pow(2,8*n-1);v(this,r,e,n,o-1,-o)}var a=n-1,u=1,p=0;for(this[e+a]=r&255;--a>=0&&(u*=256);)r<0&&p===0&&this[e+a+1]!==0&&(p=1),this[e+a]=(r/u>>0)-p&255;return e+n};s.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};s.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};s.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function Fr(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function Ir(t,r,e,n,i){return r=+r,e=e>>>0,i||Fr(t,r,e,4,34028234663852886e22,-34028234663852886e22),L.write(t,r,e,n,23,4),e+4}s.prototype.writeFloatLE=function(r,e,n){return Ir(this,r,e,!0,n)};s.prototype.writeFloatBE=function(r,e,n){return Ir(this,r,e,!1,n)};function Sr(t,r,e,n,i){return r=+r,e=e>>>0,i||Fr(t,r,e,8,17976931348623157e292,-17976931348623157e292),L.write(t,r,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(r,e,n){return Sr(this,r,e,!0,n)};s.prototype.writeDoubleBE=function(r,e,n){return Sr(this,r,e,!1,n)};s.prototype.copy=function(r,e,n,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),e),o};s.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var a;if(typeof r=="number")for(a=e;a<n;++a)this[a]=r;else{var u=s.isBuffer(r)?r:s.from(r,i),p=u.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(a=0;a<n-e;++a)this[a+e]=u[a%p]}return this};var Fe=/[^+/0-9A-Za-z-_]/g;function Ie(t){if(t=t.split("=")[0],t=t.trim().replace(Fe,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Z(t,r){r=r||1/0;for(var e,n=t.length,i=null,o=[],a=0;a<n;++a){if(e=t.charCodeAt(a),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function Se(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function Be(t,r){for(var e,n,i,o=[],a=0;a<t.length&&!((r-=2)<0);++a)e=t.charCodeAt(a),n=e>>8,i=e%256,o.push(i),o.push(n);return o}function Br(t){return K.toByteArray(Ie(t))}function V(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function I(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function tr(t){return t!==t}var Re=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()});var _r=G((Ge,Er)=>{l();var x=Er.exports={},S,B;function nr(){throw new Error("setTimeout has not been defined")}function ir(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?S=setTimeout:S=nr}catch(t){S=nr}try{typeof clearTimeout=="function"?B=clearTimeout:B=ir}catch(t){B=ir}})();function Ar(t){if(S===setTimeout)return setTimeout(t,0);if((S===nr||!S)&&setTimeout)return S=setTimeout,setTimeout(t,0);try{return S(t,0)}catch(r){try{return S.call(null,t,0)}catch(e){return S.call(this,t,0)}}}function Ae(t){if(B===clearTimeout)return clearTimeout(t);if((B===ir||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(t);try{return B(t)}catch(r){try{return B.call(null,t)}catch(e){return B.call(this,t)}}}var A=[],N=!1,_,Y=-1;function Ce(){!N||!_||(N=!1,_.length?A=_.concat(A):Y=-1,A.length&&Cr())}function Cr(){if(!N){var t=Ar(Ce);N=!0;for(var r=A.length;r;){for(_=A,A=[];++Y<r;)_&&_[Y].run();Y=-1,r=A.length}_=null,N=!1,Ae(t)}}x.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];A.push(new Dr(t,r)),A.length===1&&!N&&Ar(Cr)};function Dr(t,r){this.fun=t,this.array=r}Dr.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function C(){}x.on=C;x.addListener=C;x.once=C;x.off=C;x.removeListener=C;x.removeAllListeners=C;x.emit=C;x.prependListener=C;x.prependOnceListener=C;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var h,m,He,l=Kr(()=>{h=H(Rr()),m=H(_r()),He=function(t){function r(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var Ue={};jr(Ue,{parseMultiEsdtTransferDataForMultipleTransactions:()=>Le});module.exports=Qr(Ue);l();l();var ar=require("@multiversx/sdk-core"),z=H(require("bignumber.js"));l();l();var De=require("@multiversx/sdk-dapp-utils/out/constants/crossWindowProviderConstants"),P=require("@multiversx/sdk-dapp-utils/out/enums/crossWindowProviderEnums");var Lr=(e=>(e.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",e.reloginRequest="RELOGIN_REQUEST",e))(Lr||{}),Ye=W(W({},P.CrossWindowProviderRequestEnums),Lr),Ur=(r=>(r.reloginResponse="RELOGIN_RESPONSE",r))(Ur||{}),$e=W(W({},P.CrossWindowProviderResponseEnums),Ur);l();var Nr=require("@multiversx/sdk-core");function Ee(t){try{let r=new Nr.Address(t);return Boolean(r.bech32())}catch(r){return!1}}function Pr(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&Ee(t)}l();l();function Mr(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>127)return!1;return!0}function $(t){let r=t;try{let e=h.Buffer.from(t,"hex").toString();Mr(e)&&e.length>1&&(r=e)}catch(e){}return r}var or={tokenId:"",amount:""},Wr=t=>t.split("@").map((o,a)=>[2,3].includes(a)?o:$(o));function Gr(t){if(!t)return or;let r=t.startsWith("ESDTTransfer"),e=t.startsWith("ESDTNFTTransfer")&&t.includes("@"),n=t.startsWith("ESDTNFTBurn")&&t.includes("@");if(r){let[,i,o]=t.split("@");try{let a=h.Buffer.from(i,"hex").toString("ascii");if(!a)return or;let u=new z.default("0x"+o.replace("0x","")).toString(10);return{tokenId:a,amount:u}}catch(a){console.error("Error getting token from transaction data",a)}}if(e)try{let[,i,o,a,u]=Wr(t);if([i,o,a,u].every(p=>Boolean(p))&&Pr(new ar.Address(u).bech32()))return{tokenId:`${i}-${o}`,amount:new z.default(a,16).toString(10),collection:i,nonce:o,receiver:new ar.Address(u).bech32()}}catch(i){}if(n)try{let[,i,o,a]=Wr(t);if([i,o,a].every(u=>Boolean(u)))return{tokenId:`${i}-${o}`,amount:new z.default(a,16).toString(10),collection:i,nonce:o}}catch(i){}return or}l();var sr=H(require("bignumber.js"));l();l();l();l();l();l();l();l();l();l();l();var Hr=(t,r)=>{let e=[],n=t.indexOf(r,0);for(;n>=0;)e.push(n),n=t.indexOf(r,n+1);return e};function qr(t){let r=[],e=0;try{if((t==null?void 0:t.startsWith("MultiESDTNFTTransfer"))&&(t==null?void 0:t.includes("@"))){let[,n,i,...o]=t==null?void 0:t.split("@");if(n){let a=new sr.default(i,16).toNumber();if(a>=Number.MAX_SAFE_INTEGER)return[];let u=0;for(let c=0;c<a;c++){let d={type:"nftTransaction",data:"",receiver:n};for(let w=0;w<3;w++){switch(w){case 0:d.token=$(o[u]),d.data=o[u];break;case 1:{let b=o[u]&&o[u].length?o[u]:"";b&&b!=="00"?d.nonce=b:d.type="esdtTransaction",d.data=`${d.data}@${o[u]}`;break}case 2:d.amount=new sr.default(o[u],16).toString(10),d.data=`${d.data}@${o[u]}`;break;default:break}e=u+1,u++}r[c]=d}let p=r.length!==a,f=r.some(c=>Hr(c.data,"@").length!==2),g=r.some(c=>c.data.startsWith("@"));if(p||f||g)return[];if(o[e]){let c=o[e];for(let d=e+1;d<o.length;d++)c+="@"+o[d];r[a]={type:"scCall",data:c,receiver:n}}}}}catch(n){return console.error("failed parsing tx",n),r}return r}function Or({parsedTransactionsByDataField:t,data:r,txInfo:e}){!t||(t[r]=e)}function Le({transactions:t}){let r={},e=[];return!t||t.length===0?{allTransactions:e,parsedTransactionsByDataField:r}:(t.forEach((n,i)=>{let o=n.getData().toString(),a=qr(o);if(a.length>0)a.forEach((u,p)=>{let f={transaction:n,multiTxData:u.data,transactionIndex:p};Or({parsedTransactionsByDataField:r,data:u.data,txInfo:{tokenId:u.token?u.token:"",amount:u.amount?u.amount:"",type:u.type,nonce:u.nonce?u.nonce:"",multiTxData:u.data,receiver:u.receiver}}),e.push(f)});else{let u=n.getData().toString(),{tokenId:p,amount:f}=Gr(u);p&&Or({parsedTransactionsByDataField:r,data:u,txInfo:{tokenId:p,amount:f,receiver:n.getReceiver().bech32()}}),e.push({transaction:n,transactionIndex:i,multiTxData:u})}}),{allTransactions:e,parsedTransactionsByDataField:r})}0&&(module.exports={parseMultiEsdtTransferDataForMultipleTransactions});
|
|
1
|
+
"use strict";var Yr=Object.create;var M=Object.defineProperty;var $r=Object.getOwnPropertyDescriptor;var zr=Object.getOwnPropertyNames,ur=Object.getOwnPropertySymbols,Xr=Object.getPrototypeOf,cr=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable;var pr=(t,r,e)=>r in t?M(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,W=(t,r)=>{for(var e in r||(r={}))cr.call(r,e)&&pr(t,e,r[e]);if(ur)for(var e of ur(r))Jr.call(r,e)&&pr(t,e,r[e]);return t};var Kr=(t,r)=>()=>(t&&(r=t(t=0)),r);var G=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),jr=(t,r)=>{for(var e in r)M(t,e,{get:r[e],enumerable:!0})},lr=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of zr(r))!cr.call(t,i)&&i!==e&&M(t,i,{get:()=>r[i],enumerable:!(n=$r(r,i))||n.enumerable});return t};var H=(t,r,e)=>(e=t!=null?Yr(Xr(t)):{},lr(r||!t||!t.__esModule?M(e,"default",{value:t,enumerable:!0}):e,t)),Qr=t=>lr(M({},"__esModule",{value:!0}),t);var dr=G(q=>{"use strict";l();q.byteLength=re;q.toByteArray=te;q.fromByteArray=oe;var F=[],b=[],Zr=typeof Uint8Array!="undefined"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(D=0,fr=X.length;D<fr;++D)F[D]=X[D],b[X.charCodeAt(D)]=D;var D,fr;b["-".charCodeAt(0)]=62;b["_".charCodeAt(0)]=63;function gr(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function re(t){var r=gr(t),e=r[0],n=r[1];return(e+n)*3/4-n}function ee(t,r,e){return(r+e)*3/4-e}function te(t){var r,e=gr(t),n=e[0],i=e[1],o=new Zr(ee(t,n,i)),a=0,u=i>0?n-4:n,p;for(p=0;p<u;p+=4)r=b[t.charCodeAt(p)]<<18|b[t.charCodeAt(p+1)]<<12|b[t.charCodeAt(p+2)]<<6|b[t.charCodeAt(p+3)],o[a++]=r>>16&255,o[a++]=r>>8&255,o[a++]=r&255;return i===2&&(r=b[t.charCodeAt(p)]<<2|b[t.charCodeAt(p+1)]>>4,o[a++]=r&255),i===1&&(r=b[t.charCodeAt(p)]<<10|b[t.charCodeAt(p+1)]<<4|b[t.charCodeAt(p+2)]>>2,o[a++]=r>>8&255,o[a++]=r&255),o}function ne(t){return F[t>>18&63]+F[t>>12&63]+F[t>>6&63]+F[t&63]}function ie(t,r,e){for(var n,i=[],o=r;o<e;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(ne(n));return i.join("")}function oe(t){for(var r,e=t.length,n=e%3,i=[],o=16383,a=0,u=e-n;a<u;a+=o)i.push(ie(t,a,a+o>u?u:a+o));return n===1?(r=t[e-1],i.push(F[r>>2]+F[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),i.join("")}});var hr=G(J=>{l();J.read=function(t,r,e,n,i){var o,a,u=i*8-n-1,p=(1<<u)-1,f=p>>1,g=-7,c=e?i-1:0,d=e?-1:1,w=t[r+c];for(c+=d,o=w&(1<<-g)-1,w>>=-g,g+=u;g>0;o=o*256+t[r+c],c+=d,g-=8);for(a=o&(1<<-g)-1,o>>=-g,g+=n;g>0;a=a*256+t[r+c],c+=d,g-=8);if(o===0)o=1-f;else{if(o===p)return a?NaN:(w?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-f}return(w?-1:1)*a*Math.pow(2,o-n)};J.write=function(t,r,e,n,i,o){var a,u,p,f=o*8-i-1,g=(1<<f)-1,c=g>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:o-1,k=n?1:-1,Vr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,a=g):(a=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+c>=1?r+=d/p:r+=d*Math.pow(2,1-c),r*p>=2&&(a++,p/=2),a+c>=g?(u=0,a=g):a+c>=1?(u=(r*p-1)*Math.pow(2,i),a=a+c):(u=r*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;t[e+w]=u&255,w+=k,u/=256,i-=8);for(a=a<<i|u,f+=i;f>0;t[e+w]=a&255,w+=k,a/=256,f-=8);t[e+w-k]|=Vr*128}});var Rr=G(U=>{"use strict";l();var K=dr(),L=hr(),mr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;U.Buffer=s;U.SlowBuffer=le;U.INSPECT_MAX_BYTES=50;var O=2147483647;U.kMaxLength=O;s.TYPED_ARRAY_SUPPORT=ae();!s.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 ae(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function R(t){if(t>O)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,s.prototype),r}function s(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return rr(t)}return Tr(t,r,e)}s.poolSize=8192;function Tr(t,r,e){if(typeof t=="string")return ue(t,r);if(ArrayBuffer.isView(t))return pe(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return Q(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,r,e);var i=ce(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,r,e){return Tr(t,r,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function wr(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function se(t,r,e){return wr(t),t<=0?R(t):r!==void 0?typeof e=="string"?R(t).fill(r,e):R(t).fill(r):R(t)}s.alloc=function(t,r,e){return se(t,r,e)};function rr(t){return wr(t),R(t<0?0:er(t)|0)}s.allocUnsafe=function(t){return rr(t)};s.allocUnsafeSlow=function(t){return rr(t)};function ue(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=vr(t,r)|0,n=R(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function j(t){for(var r=t.length<0?0:er(t.length)|0,e=R(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function pe(t){if(I(t,Uint8Array)){var r=new Uint8Array(t);return Q(r.buffer,r.byteOffset,r.byteLength)}return j(t)}function Q(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,s.prototype),n}function ce(t){if(s.isBuffer(t)){var r=er(t.length)|0,e=R(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||tr(t.length)?R(0):j(t);if(t.type==="Buffer"&&Array.isArray(t.data))return j(t.data)}function er(t){if(t>=O)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O.toString(16)+" bytes");return t|0}function le(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,e){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(r)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,i=e.length,o=0,a=Math.min(n,i);o<a;++o)if(r[o]!==e[o]){n=r[o],i=e[o];break}return n<i?-1:i<n?1:0};s.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=s.allocUnsafe(e),o=0;for(n=0;n<r.length;++n){var a=r[n];if(I(a,Uint8Array))o+a.length>i.length?s.from(a).copy(i,o):Uint8Array.prototype.set.call(i,a,o);else if(s.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function vr(t,r){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Br(t).length;default:if(i)return n?-1:Z(t).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=vr;function fe(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return be(this,r,e);case"utf8":case"utf-8":return kr(this,r,e);case"ascii":return we(this,r,e);case"latin1":case"binary":return ve(this,r,e);case"base64":return xe(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ke(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function E(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}s.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)E(this,e,e+1);return this};s.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)E(this,e,e+3),E(this,e+1,e+2);return this};s.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)E(this,e,e+7),E(this,e+1,e+6),E(this,e+2,e+5),E(this,e+3,e+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?kr(this,0,r):fe.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",e=U.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};mr&&(s.prototype[mr]=s.prototype.inspect);s.prototype.compare=function(r,e,n,i,o){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),e<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var a=o-i,u=n-e,p=Math.min(a,u),f=this.slice(i,o),g=r.slice(e,n),c=0;c<p;++c)if(f[c]!==g[c]){a=f[c],u=g[c];break}return a<u?-1:u<a?1:0};function br(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,tr(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=s.from(r,n)),s.isBuffer(r))return r.length===0?-1:yr(t,r,e,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):yr(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function yr(t,r,e,n,i){var o=1,a=t.length,u=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;o=2,a/=2,u/=2,e/=2}function p(w,k){return o===1?w[k]:w.readUInt16BE(k*o)}var f;if(i){var g=-1;for(f=e;f<a;f++)if(p(t,f)===p(r,g===-1?0:f-g)){if(g===-1&&(g=f),f-g+1===u)return g*o}else g!==-1&&(f-=f-g),g=-1}else for(e+u>a&&(e=a-u),f=e;f>=0;f--){for(var c=!0,d=0;d<u;d++)if(p(t,f+d)!==p(r,d)){c=!1;break}if(c)return f}return-1}s.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};s.prototype.indexOf=function(r,e,n){return br(this,r,e,n,!0)};s.prototype.lastIndexOf=function(r,e,n){return br(this,r,e,n,!1)};function ge(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var u=parseInt(r.substr(a*2,2),16);if(tr(u))return a;t[e+a]=u}return a}function de(t,r,e,n){return V(Z(r,t.length-e),t,e,n)}function he(t,r,e,n){return V(Se(r),t,e,n)}function me(t,r,e,n){return V(Br(r),t,e,n)}function ye(t,r,e,n){return V(Be(r,t.length-e),t,e,n)}s.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-e;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return ge(this,r,e,n);case"utf8":case"utf-8":return de(this,r,e,n);case"ascii":case"latin1":case"binary":return he(this,r,e,n);case"base64":return me(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,r,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xe(t,r,e){return r===0&&e===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(r,e))}function kr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o=t[i],a=null,u=o>239?4:o>223?3:o>191?2:1;if(i+u<=e){var p,f,g,c;switch(u){case 1:o<128&&(a=o);break;case 2:p=t[i+1],(p&192)===128&&(c=(o&31)<<6|p&63,c>127&&(a=c));break;case 3:p=t[i+1],f=t[i+2],(p&192)===128&&(f&192)===128&&(c=(o&15)<<12|(p&63)<<6|f&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:p=t[i+1],f=t[i+2],g=t[i+3],(p&192)===128&&(f&192)===128&&(g&192)===128&&(c=(o&15)<<18|(p&63)<<12|(f&63)<<6|g&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,u=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=u}return Te(n)}var xr=4096;function Te(t){var r=t.length;if(r<=xr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=xr));return e}function we(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function ve(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function be(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o<e;++o)i+=Re[t[o]];return i}function ke(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i=this.subarray(r,e);return Object.setPrototypeOf(i,s.prototype),i};function T(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||T(r,e,this.length);for(var i=this[r],o=1,a=0;++a<e&&(o*=256);)i+=this[r+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||T(r,e,this.length);for(var i=this[r+--e],o=1;e>0&&(o*=256);)i+=this[r+--e]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,e){return r=r>>>0,e||T(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||T(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||T(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||T(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||T(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||T(r,e,this.length);for(var i=this[r],o=1,a=0;++a<e&&(o*=256);)i+=this[r+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||T(r,e,this.length);for(var i=e,o=1,a=this[r+--i];i>0&&(o*=256);)a+=this[r+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*e)),a};s.prototype.readInt8=function(r,e){return r=r>>>0,e||T(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,e){r=r>>>0,e||T(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(r,e){r=r>>>0,e||T(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(r,e){return r=r>>>0,e||T(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,e){return r=r>>>0,e||T(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,e){return r=r>>>0,e||T(r,4,this.length),L.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,e){return r=r>>>0,e||T(r,4,this.length),L.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||T(r,8,this.length),L.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||T(r,8,this.length),L.read(this,r,!1,52,8)};function v(t,r,e,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;v(this,r,e,n,o,0)}var a=1,u=0;for(this[e]=r&255;++u<n&&(a*=256);)this[e+u]=r/a&255;return e+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;v(this,r,e,n,o,0)}var a=n-1,u=1;for(this[e+a]=r&255;--a>=0&&(u*=256);)this[e+a]=r/u&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,1,255,0),this[e]=r&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};s.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var o=Math.pow(2,8*n-1);v(this,r,e,n,o-1,-o)}var a=0,u=1,p=0;for(this[e]=r&255;++a<n&&(u*=256);)r<0&&p===0&&this[e+a-1]!==0&&(p=1),this[e+a]=(r/u>>0)-p&255;return e+n};s.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var o=Math.pow(2,8*n-1);v(this,r,e,n,o-1,-o)}var a=n-1,u=1,p=0;for(this[e+a]=r&255;--a>=0&&(u*=256);)r<0&&p===0&&this[e+a+1]!==0&&(p=1),this[e+a]=(r/u>>0)-p&255;return e+n};s.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};s.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};s.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function Fr(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function Ir(t,r,e,n,i){return r=+r,e=e>>>0,i||Fr(t,r,e,4,34028234663852886e22,-34028234663852886e22),L.write(t,r,e,n,23,4),e+4}s.prototype.writeFloatLE=function(r,e,n){return Ir(this,r,e,!0,n)};s.prototype.writeFloatBE=function(r,e,n){return Ir(this,r,e,!1,n)};function Sr(t,r,e,n,i){return r=+r,e=e>>>0,i||Fr(t,r,e,8,17976931348623157e292,-17976931348623157e292),L.write(t,r,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(r,e,n){return Sr(this,r,e,!0,n)};s.prototype.writeDoubleBE=function(r,e,n){return Sr(this,r,e,!1,n)};s.prototype.copy=function(r,e,n,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),e),o};s.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var a;if(typeof r=="number")for(a=e;a<n;++a)this[a]=r;else{var u=s.isBuffer(r)?r:s.from(r,i),p=u.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(a=0;a<n-e;++a)this[a+e]=u[a%p]}return this};var Fe=/[^+/0-9A-Za-z-_]/g;function Ie(t){if(t=t.split("=")[0],t=t.trim().replace(Fe,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Z(t,r){r=r||1/0;for(var e,n=t.length,i=null,o=[],a=0;a<n;++a){if(e=t.charCodeAt(a),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function Se(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function Be(t,r){for(var e,n,i,o=[],a=0;a<t.length&&!((r-=2)<0);++a)e=t.charCodeAt(a),n=e>>8,i=e%256,o.push(i),o.push(n);return o}function Br(t){return K.toByteArray(Ie(t))}function V(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function I(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function tr(t){return t!==t}var Re=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()});var _r=G((Ge,Er)=>{l();var x=Er.exports={},S,B;function nr(){throw new Error("setTimeout has not been defined")}function ir(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?S=setTimeout:S=nr}catch(t){S=nr}try{typeof clearTimeout=="function"?B=clearTimeout:B=ir}catch(t){B=ir}})();function Ar(t){if(S===setTimeout)return setTimeout(t,0);if((S===nr||!S)&&setTimeout)return S=setTimeout,setTimeout(t,0);try{return S(t,0)}catch(r){try{return S.call(null,t,0)}catch(e){return S.call(this,t,0)}}}function Ae(t){if(B===clearTimeout)return clearTimeout(t);if((B===ir||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(t);try{return B(t)}catch(r){try{return B.call(null,t)}catch(e){return B.call(this,t)}}}var A=[],N=!1,_,Y=-1;function Ce(){!N||!_||(N=!1,_.length?A=_.concat(A):Y=-1,A.length&&Cr())}function Cr(){if(!N){var t=Ar(Ce);N=!0;for(var r=A.length;r;){for(_=A,A=[];++Y<r;)_&&_[Y].run();Y=-1,r=A.length}_=null,N=!1,Ae(t)}}x.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];A.push(new Dr(t,r)),A.length===1&&!N&&Ar(Cr)};function Dr(t,r){this.fun=t,this.array=r}Dr.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function C(){}x.on=C;x.addListener=C;x.once=C;x.off=C;x.removeListener=C;x.removeAllListeners=C;x.emit=C;x.prependListener=C;x.prependOnceListener=C;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var h,m,He,l=Kr(()=>{h=H(Rr()),m=H(_r()),He=function(t){function r(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var Ue={};jr(Ue,{parseMultiEsdtTransferDataForMultipleTransactions:()=>Le});module.exports=Qr(Ue);l();l();var ar=require("@multiversx/sdk-core"),z=H(require("bignumber.js"));l();l();var De=require("@multiversx/sdk-dapp-utils/out/constants/crossWindowProviderConstants"),P=require("@multiversx/sdk-dapp-utils/out/enums/crossWindowProviderEnums");var Lr=(e=>(e.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",e.reloginRequest="RELOGIN_REQUEST",e))(Lr||{}),Ye=W(W({},P.CrossWindowProviderRequestEnums),Lr),Ur=(r=>(r.reloginResponse="RELOGIN_RESPONSE",r))(Ur||{}),$e=W(W({},P.CrossWindowProviderResponseEnums),Ur);l();var Nr=require("@multiversx/sdk-core");function Ee(t){try{let r=new Nr.Address(t);return Boolean(r.bech32())}catch(r){return!1}}function Pr(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&Ee(t)}l();l();function Mr(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>127)return!1;return!0}function $(t){let r=t;try{let e=h.Buffer.from(t,"hex").toString();Mr(e)&&e.length>1&&(r=e)}catch(e){}return r}var or={tokenId:"",amount:""},Wr=t=>t.split("@").map((o,a)=>[2,3].includes(a)?o:$(o));function Gr(t){if(!t)return or;let r=t.startsWith("ESDTTransfer"),e=t.startsWith("ESDTNFTTransfer")&&t.includes("@"),n=t.startsWith("ESDTNFTBurn")&&t.includes("@");if(r){let[,i,o]=t.split("@");try{let a=h.Buffer.from(i,"hex").toString("ascii");if(!a)return or;let u=new z.default("0x"+o.replace("0x","")).toString(10);return{tokenId:a,amount:u}}catch(a){console.error("Error getting token from transaction data",a)}}if(e)try{let[,i,o,a,u]=Wr(t);if([i,o,a,u].every(p=>Boolean(p))&&Pr(new ar.Address(u).bech32()))return{tokenId:`${i}-${o}`,amount:new z.default(a,16).toString(10),collection:i,nonce:o,receiver:new ar.Address(u).bech32()}}catch(i){}if(n)try{let[,i,o,a]=Wr(t);if([i,o,a].every(u=>Boolean(u)))return{tokenId:`${i}-${o}`,amount:new z.default(a,16).toString(10),collection:i,nonce:o}}catch(i){}return or}l();var sr=H(require("bignumber.js"));l();l();l();l();l();l();l();l();l();l();l();var Hr=(t,r)=>{let e=[],n=t.indexOf(r,0);for(;n>=0;)e.push(n),n=t.indexOf(r,n+1);return e};function qr(t){let r=[],e=0;try{if((t==null?void 0:t.startsWith("MultiESDTNFTTransfer"))&&(t==null?void 0:t.includes("@"))){let[,n,i,...o]=t==null?void 0:t.split("@");if(n){let a=new sr.default(i,16).toNumber();if(a>=Number.MAX_SAFE_INTEGER)return[];let u=0;for(let c=0;c<a;c++){let d={type:"nftTransaction",data:"",receiver:n};for(let w=0;w<3;w++){switch(w){case 0:d.token=$(o[u]),d.data=o[u];break;case 1:{let k=o[u]&&o[u].length?o[u]:"";k&&k!=="00"?d.nonce=k:d.type="esdtTransaction",d.data=`${d.data}@${o[u]}`;break}case 2:d.amount=new sr.default(o[u],16).toString(10),d.data=`${d.data}@${o[u]}`;break;default:break}e=u+1,u++}r[c]=d}let p=r.length!==a,f=r.some(c=>Hr(c.data,"@").length!==2),g=r.some(c=>c.data.startsWith("@"));if(p||f||g)return[];if(o[e]){let c=o[e];for(let d=e+1;d<o.length;d++)c+="@"+o[d];r[a]={type:"scCall",data:c,receiver:n}}}}}catch(n){return console.error("failed parsing tx",n),r}return r}function Or({parsedTransactionsByDataField:t,data:r,txInfo:e}){!t||(t[r]=e)}function Le({transactions:t}){let r={},e=[];return!t||t.length===0?{allTransactions:e,parsedTransactionsByDataField:r}:(t.forEach((n,i)=>{let o=n.getData().toString(),a=qr(o);if(a.length>0)a.forEach((u,p)=>{let f={transaction:n,multiTxData:u.data,transactionIndex:p};Or({parsedTransactionsByDataField:r,data:u.data,txInfo:{tokenId:u.token?u.token:"",amount:u.amount?u.amount:"",type:u.type,nonce:u.nonce?u.nonce:"",multiTxData:u.data,receiver:u.receiver}}),e.push(f)});else{let u=n.getData().toString(),{tokenId:p,amount:f}=Gr(u);p&&Or({parsedTransactionsByDataField:r,data:u,txInfo:{tokenId:p,amount:f,receiver:n.getReceiver().bech32()}}),e.push({transaction:n,transactionIndex:i,multiTxData:u})}}),{allTransactions:e,parsedTransactionsByDataField:r})}0&&(module.exports={parseMultiEsdtTransferDataForMultipleTransactions});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CustomNetworkType, DappConfigType,
|
|
1
|
+
import { CustomNetworkType, DappConfigType, IDappProvider, EnvironmentsEnum } from '../types';
|
|
2
2
|
export interface UseAppInitializerPropsType {
|
|
3
3
|
customNetworkConfig?: CustomNetworkType;
|
|
4
4
|
externalProvider?: IDappProvider;
|
|
5
|
-
environment: EnvironmentsEnum;
|
|
5
|
+
environment: 'testnet' | 'mainnet' | 'devnet' | EnvironmentsEnum | string;
|
|
6
6
|
dappConfig?: DappConfigType;
|
|
7
7
|
}
|
|
8
8
|
export interface AppInitializerPropsType extends UseAppInitializerPropsType {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Zi=Object.create;var Ee=Object.defineProperty,Ji=Object.defineProperties,Qi=Object.getOwnPropertyDescriptor,es=Object.getOwnPropertyDescriptors,ts=Object.getOwnPropertyNames,je=Object.getOwnPropertySymbols,rs=Object.getPrototypeOf,Mt=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable;var jr=(e,t,r)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))Mt.call(t,r)&&jr(e,r,t[r]);if(je)for(var r of je(t))Kr.call(t,r)&&jr(e,r,t[r]);return e},w=(e,t)=>Ji(e,es(t));var Bt=e=>typeof e=="symbol"?e:e+"",ke=(e,t)=>{var r={};for(var o in e)Mt.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&&Kr.call(e,o)&&(r[o]=e[o]);return r};var h=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ke=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),le=(e,t)=>{for(var r in t)Ee(e,r,{get:t[r],enumerable:!0})},Yr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ts(t))!Mt.call(e,i)&&i!==r&&Ee(e,i,{get:()=>t[i],enumerable:!(o=Qi(t,i))||o.enumerable});return e};var S=(e,t,r)=>(r=e!=null?Zi(rs(e)):{},Yr(t||!e||!e.__esModule?Ee(r,"default",{value:e,enumerable:!0}):r,e)),Pe=e=>Yr(Ee({},"__esModule",{value:!0}),e);var v=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(T){i(T)}},p=m=>{try{d(r.throw(m))}catch(T){i(T)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var Jr=Ke(Ye=>{"use strict";n();Ye.byteLength=os;Ye.toByteArray=ss;Ye.fromByteArray=ls;var G=[],M=[],ns=typeof Uint8Array!="undefined"?Uint8Array:Array,Ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(pe=0,Xr=Ut.length;pe<Xr;++pe)G[pe]=Ut[pe],M[Ut.charCodeAt(pe)]=pe;var pe,Xr;M["-".charCodeAt(0)]=62;M["_".charCodeAt(0)]=63;function Zr(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 os(e){var t=Zr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function is(e,t,r){return(t+r)*3/4-r}function ss(e){var t,r=Zr(e),o=r[0],i=r[1],l=new ns(is(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=M[e.charCodeAt(m)]<<18|M[e.charCodeAt(m+1)]<<12|M[e.charCodeAt(m+2)]<<6|M[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=M[e.charCodeAt(m)]<<2|M[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=M[e.charCodeAt(m)]<<10|M[e.charCodeAt(m+1)]<<4|M[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function as(e){return G[e>>18&63]+G[e>>12&63]+G[e>>6&63]+G[e&63]}function cs(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(as(o));return i.join("")}function ls(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(cs(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(G[t>>2]+G[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(G[t>>10]+G[t>>4&63]+G[t<<2&63]+"=")),i.join("")}});var Qr=Ke(Wt=>{n();Wt.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,T=m>>1,x=-7,y=r?i-1:0,b=r?-1:1,k=e[t+y];for(y+=b,l=k&(1<<-x)-1,k>>=-x,x+=d;x>0;l=l*256+e[t+y],y+=b,x-=8);for(p=l&(1<<-x)-1,l>>=-x,x+=o;x>0;p=p*256+e[t+y],y+=b,x-=8);if(l===0)l=1-T;else{if(l===m)return p?NaN:(k?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-T}return(k?-1:1)*p*Math.pow(2,l-o)};Wt.write=function(e,t,r,o,i,l){var p,d,m,T=l*8-i-1,x=(1<<T)-1,y=x>>1,b=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=o?0:l-1,L=o?1:-1,V=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,p=x):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+y>=1?t+=b/m:t+=b*Math.pow(2,1-y),t*m>=2&&(p++,m/=2),p+y>=x?(d=0,p=x):p+y>=1?(d=(t*m-1)*Math.pow(2,i),p=p+y):(d=t*Math.pow(2,y-1)*Math.pow(2,i),p=0));i>=8;e[r+k]=d&255,k+=L,d/=256,i-=8);for(p=p<<i|d,T+=i;T>0;e[r+k]=p&255,k+=L,p/=256,T-=8);e[r+k-L]|=V*128}});var mn=Ke(he=>{"use strict";n();var $t=Jr(),ye=Qr(),en=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;he.Buffer=u;he.SlowBuffer=fs;he.INSPECT_MAX_BYTES=50;var Xe=2147483647;he.kMaxLength=Xe;u.TYPED_ARRAY_SUPPORT=ps();!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 ps(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function J(e){if(e>Xe)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 qt(e)}return nn(e,t,r)}u.poolSize=8192;function nn(e,t,r){if(typeof e=="string")return ds(e,t);if(ArrayBuffer.isView(e))return ms(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 Gt(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=gs(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return nn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function on(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 us(e,t,r){return on(e),e<=0?J(e):t!==void 0?typeof r=="string"?J(e).fill(t,r):J(e).fill(t):J(e)}u.alloc=function(e,t,r){return us(e,t,r)};function qt(e){return on(e),J(e<0?0:zt(e)|0)}u.allocUnsafe=function(e){return qt(e)};u.allocUnsafeSlow=function(e){return qt(e)};function ds(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=sn(e,t)|0,o=J(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Vt(e){for(var t=e.length<0?0:zt(e.length)|0,r=J(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function ms(e){if(H(e,Uint8Array)){var t=new Uint8Array(e);return Gt(t.buffer,t.byteOffset,t.byteLength)}return Vt(e)}function Gt(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function gs(e){if(u.isBuffer(e)){var t=zt(e.length)|0,r=J(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||jt(e.length)?J(0):Vt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Vt(e.data)}function zt(e){if(e>=Xe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Xe.toString(16)+" bytes");return e|0}function fs(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,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(H(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function sn(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 i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Ht(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return dn(e).length;default:if(i)return o?-1:Ht(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=sn;function Ts(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 Es(this,t,r);case"utf8":case"utf-8":return cn(this,t,r);case"ascii":return Is(this,t,r);case"latin1":case"binary":return bs(this,t,r);case"base64":return As(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ks(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function ue(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)ue(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)ue(this,r,r+3),ue(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)ue(this,r,r+7),ue(this,r+1,r+6),ue(this,r+2,r+5),ue(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?cn(this,0,t):Ts.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=he.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};en&&(u.prototype[en]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,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),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,d=o-r,m=Math.min(p,d),T=this.slice(i,l),x=t.slice(r,o),y=0;y<m;++y)if(T[y]!==x[y]){p=T[y],d=x[y];break}return p<d?-1:d<p?1:0};function an(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,jt(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:tn(e,t,r,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):tn(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function tn(e,t,r,o,i){var l=1,p=e.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,d/=2,r/=2}function m(k,L){return l===1?k[L]:k.readUInt16BE(L*l)}var T;if(i){var x=-1;for(T=r;T<p;T++)if(m(e,T)===m(t,x===-1?0:T-x)){if(x===-1&&(x=T),T-x+1===d)return x*l}else x!==-1&&(T-=T-x),x=-1}else for(r+d>p&&(r=p-d),T=r;T>=0;T--){for(var y=!0,b=0;b<d;b++)if(m(e,T+b)!==m(t,b)){y=!1;break}if(y)return T}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return an(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return an(this,t,r,o,!1)};function ys(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var d=parseInt(t.substr(p*2,2),16);if(jt(d))return p;e[r+p]=d}return p}function hs(e,t,r,o){return Ze(Ht(t,e.length-r),e,r,o)}function xs(e,t,r,o){return Ze(Ls(t),e,r,o)}function Ss(e,t,r,o){return Ze(dn(t),e,r,o)}function ws(e,t,r,o){return Ze(Ns(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return ys(this,t,r,o);case"utf8":case"utf-8":return hs(this,t,r,o);case"ascii":case"latin1":case"binary":return xs(this,t,r,o);case"base64":return Ss(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ws(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function As(e,t,r){return t===0&&r===e.length?$t.fromByteArray(e):$t.fromByteArray(e.slice(t,r))}function cn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,T,x,y;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(y=(l&31)<<6|m&63,y>127&&(p=y));break;case 3:m=e[i+1],T=e[i+2],(m&192)===128&&(T&192)===128&&(y=(l&15)<<12|(m&63)<<6|T&63,y>2047&&(y<55296||y>57343)&&(p=y));break;case 4:m=e[i+1],T=e[i+2],x=e[i+3],(m&192)===128&&(T&192)===128&&(x&192)===128&&(y=(l&15)<<18|(m&63)<<12|(T&63)<<6|x&63,y>65535&&y<1114112&&(p=y))}}p===null?(p=65533,d=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=d}return vs(o)}var rn=4096;function vs(e){var t=e.length;if(t<=rn)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=rn));return r}function Is(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function bs(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function Es(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=Cs[e[l]];return i}function ks(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function R(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||R(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||R(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||R(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||R(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||R(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||R(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||R(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||R(t,4,this.length),ye.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||R(t,4,this.length),ye.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||R(t,8,this.length),ye.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||R(t,8,this.length),ye.read(this,t,!1,52,8)};function N(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;N(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;N(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||N(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||N(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||N(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||N(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||N(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);N(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);N(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||N(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||N(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||N(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||N(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||N(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 ln(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function pn(e,t,r,o,i){return t=+t,r=r>>>0,i||ln(e,t,r,4,34028234663852886e22,-34028234663852886e22),ye.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return pn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return pn(this,t,r,!1,o)};function un(e,t,r,o,i){return t=+t,r=r>>>0,i||ln(e,t,r,8,17976931348623157e292,-17976931348623157e292),ye.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return un(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return un(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var Ps=/[^+/0-9A-Za-z-_]/g;function Rs(e){if(e=e.split("=")[0],e=e.trim().replace(Ps,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Ht(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function Ls(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Ns(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function dn(e){return $t.toByteArray(Rs(e))}function Ze(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function H(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function jt(e){return e!==e}var Cs=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var hn=Ke((Yc,yn)=>{n();var E=yn.exports={},q,z;function Kt(){throw new Error("setTimeout has not been defined")}function Yt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?q=setTimeout:q=Kt}catch(e){q=Kt}try{typeof clearTimeout=="function"?z=clearTimeout:z=Yt}catch(e){z=Yt}})();function gn(e){if(q===setTimeout)return setTimeout(e,0);if((q===Kt||!q)&&setTimeout)return q=setTimeout,setTimeout(e,0);try{return q(e,0)}catch(t){try{return q.call(null,e,0)}catch(r){return q.call(this,e,0)}}}function Ds(e){if(z===clearTimeout)return clearTimeout(e);if((z===Yt||!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 Q=[],xe=!1,de,Je=-1;function _s(){!xe||!de||(xe=!1,de.length?Q=de.concat(Q):Je=-1,Q.length&&fn())}function fn(){if(!xe){var e=gn(_s);xe=!0;for(var t=Q.length;t;){for(de=Q,Q=[];++Je<t;)de&&de[Je].run();Je=-1,t=Q.length}de=null,xe=!1,Ds(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];Q.push(new Tn(e,t)),Q.length===1&&!xe&&gn(fn)};function Tn(e,t){this.fun=e,this.array=t}Tn.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function ee(){}E.on=ee;E.addListener=ee;E.once=ee;E.off=ee;E.removeListener=ee;E.removeAllListeners=ee;E.emit=ee;E.prependListener=ee;E.prependOnceListener=ee;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 s,a,Xc,n=h(()=>{s=S(mn()),a=S(hn()),Xc=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 xn=h(()=>{"use strict";n()});var Sn=h(()=>{"use strict";n()});var wn=h(()=>{"use strict";n()});var Xt,An=h(()=>{"use strict";n();Xt=(o=>(o.SetGuardian="SetGuardian",o.GuardAccount="GuardAccount",o.UnGuardAccount="UnGuardAccount",o))(Xt||{})});var vn=h(()=>{"use strict";n()});var Zt=h(()=>{"use strict";n()});var In=h(()=>{"use strict";n()});var bn=h(()=>{"use strict";n()});var En=h(()=>{"use strict";n()});var kn=h(()=>{"use strict";n()});var Jt,Se,Qt=h(()=>{"use strict";n();Jt=require("@multiversx/sdk-dapp-utils/out/constants/crossWindowProviderConstants"),Se=require("@multiversx/sdk-dapp-utils/out/enums/crossWindowProviderEnums")});var Pn,cl,Rn,ll,W=h(()=>{"use strict";n();Qt();Pn=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(Pn||{}),cl=g(g({},Se.CrossWindowProviderRequestEnums),Pn),Rn=(t=>(t.reloginResponse="RELOGIN_RESPONSE",t))(Rn||{}),ll=g(g({},Se.CrossWindowProviderResponseEnums),Rn)});var Ln=h(()=>{"use strict";n()});var Nn=h(()=>{"use strict";n()});var C=h(()=>{"use strict";n()});var Cn=h(()=>{"use strict";n()});var Dn=h(()=>{"use strict";n()});var _n=h(()=>{"use strict";n()});var D=h(()=>{"use strict";n();bn();En();kn();W();Ln();Nn();C();Cn();Dn();_n()});var me,On,El,Fn,kl,Mn,Pl,Rl,Os,ge=h(()=>{"use strict";n();D();me={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:On,egldLabel:El}=me["devnet"],{chainId:Fn,egldLabel:kl}=me["testnet"],{chainId:Mn,egldLabel:Pl}=me["mainnet"],Rl={["devnet"]:On,["testnet"]:Fn,["mainnet"]:Mn},Os={[On]:"devnet",[Fn]:"testnet",[Mn]:"mainnet"}});var Bn=h(()=>{"use strict";n()});var j,Un=h(()=>{"use strict";n();j=require("@multiversx/sdk-web-wallet-provider")});var Wn,$n,er,_l,Ol,Vn=h(()=>{"use strict";n();Qt();er=String(($n=(Wn=Jt.safeWindow)==null?void 0:Wn.navigator)==null?void 0:$n.userAgent),_l=/^((?!chrome|android).)*safari/i.test(er),Ol=/firefox/i.test(er)&&/windows/i.test(er)});var tr,rr,Gn,Qe,Hn,we,A=h(()=>{"use strict";n();xn();Sn();wn();An();vn();Zt();In();ge();Bn();Un();Vn();tr=5e4,rr=1e9,Gn=1,Qe="logout",Hn="login",we="0"});var et,nr=h(()=>{"use strict";n();et=()=>Date.now()/1e3});var qn=h(()=>{"use strict";n()});var zn=h(()=>{"use strict";n()});var jn=h(()=>{"use strict";n();nr();qn();zn()});var or={};le(or,{clear:()=>Us,getItem:()=>Ms,localStorageKeys:()=>$,removeItem:()=>Bs,setItem:()=>Fs});var $,tt,Fs,Ms,Bs,Us,Ae=h(()=>{"use strict";n();jn();$={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},tt=typeof localStorage!="undefined",Fs=({key:e,data:t,expires:r})=>{!tt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Ms=e=>{if(!tt)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:et()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Bs=e=>{!tt||localStorage.removeItem(String(e))},Us=()=>{!tt||localStorage.clear()}});var ir={};le(ir,{clear:()=>Zn,getItem:()=>Yn,removeItem:()=>Xn,setItem:()=>Kn,storage:()=>Ws});var Kn,Yn,Xn,Zn,Ws,Jn=h(()=>{"use strict";n();Kn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Yn=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},Xn=e=>sessionStorage.removeItem(String(e)),Zn=()=>sessionStorage.clear(),Ws={setItem:Kn,getItem:Yn,removeItem:Xn,clear:Zn}});var K,Re=h(()=>{"use strict";n();Ae();Jn();K={session:ir,local:or}});var sr,I,Le,O=h(()=>{"use strict";n();sr=require("@reduxjs/toolkit");A();I=(0,sr.createAction)(Qe),Le=(0,sr.createAction)(Hn,e=>({payload:e}))});var cr,Qn,eo,rt,ar,to,lr,dp,pr,mp,gp,fp,Tp,yp,hp,xp,Sp,nt,ot=h(()=>{"use strict";n();cr=require("@multiversx/sdk-core"),Qn=require("@reduxjs/toolkit"),eo=require("redux-persist");A();Re();Ae();O();rt={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:we},ar={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":rt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},to=(0,Qn.createSlice)({name:"accountInfoSlice",initialState:ar,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=r?new cr.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}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(I,()=>(K.local.removeItem($.loginExpiresAt),ar)),e.addCase(Le,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new cr.Address(o).hex()}),e.addCase(eo.REHYDRATE,(t,r)=>{var T;if(!((T=r.payload)!=null&&T.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let m=p&&i in p;t.accounts=m?p:ar.accounts,t.publicKey=d})}}),{setAccount:lr,setAddress:dp,setAccountNonce:pr,setAccountShard:mp,setLedgerAccount:gp,updateLedgerAccount:fp,setWalletConnectAccount:Tp,setIsAccountLoading:yp,setAccountLoadingError:hp,setWebsocketEvent:xp,setWebsocketBatchEvent:Sp}=to.actions,nt=to.reducer});function Ne(){return new Date().setHours(new Date().getHours()+24)}function Ce(e){K.local.setItem({key:$.loginExpiresAt,data:e,expires:e})}var ur=h(()=>{"use strict";n();Re();Ae()});var no,ro,oo,Lp,Np,Cp,Dp,_p,Op,io,so,Fp,it,_e=h(()=>{"use strict";n();no=require("@reduxjs/toolkit");ur();W();O();ro={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,crossWindowLogin:null,isLoginSessionInvalid:!1},oo=(0,no.createSlice)({name:"loginInfoSlice",initialState:ro,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},setIsWalletConnectV2Initialized:(e,t)=>{e.isWalletConnectV2Initialized=t.payload}},extraReducers:e=>{e.addCase(I,()=>ro),e.addCase(Le,(t,r)=>{t.isLoginSessionInvalid=!1,t.loginMethod=r.payload.loginMethod,Ce(Ne())})}}),{setLoginMethod:Lp,setWalletConnectLogin:Np,setLedgerLogin:Cp,setTokenLogin:Dp,setTokenLoginSignature:_p,setWalletLogin:Op,invalidateLoginSession:io,setLogoutRoute:so,setIsWalletConnectV2Initialized:Fp}=oo.actions,it=oo.reducer});var co,ao,lo,Wp,$p,Vp,Gp,st,at=h(()=>{"use strict";n();co=require("@reduxjs/toolkit");O();ao={},lo=(0,co.createSlice)({name:"modalsSlice",initialState:ao,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(I,()=>ao)}}),{setTxSubmittedModal:Wp,setNotificationModal:$p,clearTxSubmittedModal:Vp,clearNotificationModal:Gp}=lo.actions,st=lo.reducer});var po,uo,dr,mr=h(()=>{"use strict";n();po=!1,uo=(e=!0)=>{po=e},dr=({timeout:e=0,url:t})=>{po||setTimeout(()=>{if(!!window)return window.location.assign(t)},e)}});var mo=h(()=>{"use strict";n();mr()});function go(e){return e[Math.floor(Math.random()*e.length)]}var fo=h(()=>{"use strict";n()});var To=h(()=>{"use strict";n();Zt()});var yo=h(()=>{"use strict";n();mo();fo();To()});var ho,xo,So,gr,$s,wo,fr,iu,su,ct,Oe=h(()=>{"use strict";n();ho=require("@reduxjs/toolkit"),xo=S(require("lodash.omit")),So=require("redux-persist");O();yo();gr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},$s={network:gr,chainID:""},wo=(0,ho.createSlice)({name:"appConfig",initialState:$s,reducers:{initializeNetworkConfig:(e,t)=>{let r=go(t.payload.walletConnectV2RelayAddresses),o=(0,xo.default)(t.payload,"walletConnectV2RelayAddresses");e.network=w(g(g({},e.network),o),{walletConnectV2RelayAddress:r})},setChainID:(e,t)=>{e.chainID=t.payload},setCustomWalletAddress:(e,t)=>{e.network.customWalletAddress=t.payload}},extraReducers:e=>{e.addCase(I,t=>{t.network.customWalletAddress=void 0}),e.addCase(So.REHYDRATE,(t,r)=>{var i,l;if(!((l=(i=r.payload)==null?void 0:i.network)!=null&&l.customWalletAddress))return;let{network:{customWalletAddress:o}}=r.payload;t.network.customWalletAddress=o})}}),{initializeNetworkConfig:fr,setChainID:iu,setCustomWalletAddress:su}=wo.actions,ct=wo.reducer});var Ao,Tr,vo,du,mu,gu,lt,pt=h(()=>{"use strict";n();Ao=require("@reduxjs/toolkit");D();O();Tr={isSigning:!1,signedSessions:{}},vo=(0,Ao.createSlice)({name:"signedMessageInfoSliceState",initialState:Tr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=g(g({},e.signedSessions[r]),o)},setSignSessionState:(e,t)=>g(g({},e),t.payload),clearSignedMessageInfo:()=>Tr},extraReducers:e=>{e.addCase(I,()=>Tr)}}),{setSignSession:du,clearSignedMessageInfo:mu,setSignSessionState:gu}=vo.actions,lt=vo.reducer});var bo,Eo,Io,ko,wu,Au,vu,Iu,ut,dt=h(()=>{"use strict";n();bo=require("@reduxjs/toolkit"),Eo=require("redux-persist");D();nr();O();Io={customToasts:[],transactionToasts:[]},ko=(0,bo.createSlice)({name:"toastsSlice",initialState:Io,reducers:{addCustomToast:(e,t)=>{let r=t.payload.toastId||`custom-toast-${e.customToasts.length+1}`,o=e.customToasts.findIndex(i=>i.toastId===r);if(o!==-1){e.customToasts[o]=w(g(g({},e.customToasts[o]),t.payload),{type:"custom",toastId:r});return}e.customToasts.push(w(g({},t.payload),{type:"custom",toastId:r}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:et(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)}},extraReducers:e=>{e.addCase(I,()=>Io),e.addCase(Eo.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:wu,removeCustomToast:Au,addTransactionToast:vu,removeTransactionToast:Iu}=ko.actions,ut=ko.reducer});var Po,hr,xr,Sr,Vs,yr,Ro,Pu,Ru,Lu,mt,gt=h(()=>{"use strict";n();Po=require("@reduxjs/toolkit");O();hr="Transaction failed",xr="Transaction successful",Sr="Processing transaction",Vs="Transaction submitted",yr={},Ro=(0,Po.createSlice)({name:"transactionsInfo",initialState:yr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||hr,successMessage:(o==null?void 0:o.successMessage)||xr,processingMessage:(o==null?void 0:o.processingMessage)||Sr,submittedMessage:(o==null?void 0:o.submittedMessage)||Vs,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>yr},extraReducers:e=>{e.addCase(I,()=>yr)}}),{clearTransactionsInfo:Pu,setTransactionsDisplayInfo:Ru,clearTransactionsInfoForSessionId:Lu}=Ro.actions,mt=Ro.reducer});function Lo(e){return e!=null&&(Qs(e)||oa(e))}function ft(e){return e!=null&&(ea(e)||ia(e))}function Tt(e){return e!=null&&(ta(e)||sa(e))}function No(e){return e!=null&&(ra(e)||aa(e))}function Co(e){return e!=null&&na(e)}function Qs(e){return e!=null&&Hs.includes(e)}function ea(e){return e!=null&&qs.includes(e)}function ta(e){return e!=null&&zs.includes(e)}function ra(e){return e!=null&&js.includes(e)}function na(e){return e!=null&&Ks.includes(e)}function oa(e){return e!=null&&Ys.includes(e)}function ia(e){return e!=null&&Xs.includes(e)}function sa(e){return e!=null&&Zs.includes(e)}function aa(e){return e!=null&&Js.includes(e)}var Hs,qs,zs,js,Ks,Ys,Xs,Zs,Js,Ar=h(()=>{"use strict";n();W();Hs=["sent"],qs=["success"],zs=["fail","cancelled","timedOut"],js=["invalid"],Ks=["timedOut"],Ys=["pending"],Xs=["success"],Zs=["fail","invalid"],Js=["not executed"]});var Do,_o,Fe,ca,Oo,Uu,Wu,$u,Vu,Gu,Hu,qu,zu,ju,Ku,Yu,yt,ht=h(()=>{"use strict";n();Do=require("@reduxjs/toolkit"),_o=require("redux-persist");W();Ar();O();Fe={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},ca={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Oo=(0,Do.createSlice)({name:"transactionsSlice",initialState:Fe,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,T;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p,customTransactionInformation:d}=t.payload;e.customTransactionInformationForSessionId[r]=g(g(g({},ca),((m=e.signedTransactions[r])==null?void 0:m.customTransactionInformation)||{}),e.customTransactionInformationForSessionId[r]||{}),e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:g(g({},e.customTransactionInformationForSessionId[r]),d!=null?d:{})},((T=e==null?void 0:e.transactionsToSign)==null?void 0:T.sessionId)===r&&(e.transactionsToSign=Fe.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=g(g({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var T,x,y,b,k,L,V,ae;let{sessionId:r,status:o,errorMessage:i,transactionHash:l,serverTransaction:p,inTransit:d}=t.payload,m=(x=(T=e.signedTransactions)==null?void 0:T[r])==null?void 0:x.transactions;if(m!=null){e.signedTransactions[r].transactions=m.map(U=>U.hash===l?w(g(g({},p!=null?p:{}),U),{status:o,errorMessage:i,inTransit:d}):U);let Ot=(b=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:b.every(U=>ft(U.status)),Ft=(L=(k=e.signedTransactions[r])==null?void 0:k.transactions)==null?void 0:L.some(U=>Tt(U.status)),ze=(ae=(V=e.signedTransactions[r])==null?void 0:V.transactions)==null?void 0:ae.every(U=>No(U.status));Ot&&(e.signedTransactions[r].status="success"),Ft&&(e.signedTransactions[r].status="fail"),ze&&(e.signedTransactions[r].status="invalid")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=Fe.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Fe.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload},updateSignedTransactionsCustomTransactionInformation:(e,t)=>{let{sessionId:r,customTransactionInformationOverrides:o}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].customTransactionInformation=g(g({},e.signedTransactions[r].customTransactionInformation),o))}},extraReducers:e=>{e.addCase(I,()=>Fe),e.addCase(_o.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((d,[m,T])=>{let x=new Date(m),y=new Date;return y.setHours(y.getHours()+5),y-x>0||(d[m]=T),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Uu,updateSignedTransactions:Wu,setTransactionsToSign:$u,clearAllTransactionsToSign:Vu,clearAllSignedTransactions:Gu,clearSignedTransaction:Hu,clearTransactionToSign:qu,setSignTransactionsError:zu,setSignTransactionsCancelMessage:ju,moveTransactionsToSignedState:Ku,updateSignedTransactionsCustomTransactionInformation:Yu}=Oo.actions,yt=Oo.reducer});var Fo,vr,Mo,Qu,ed,td,rd,xt,St=h(()=>{"use strict";n();Fo=require("@reduxjs/toolkit");O();vr={},Mo=(0,Fo.createSlice)({name:"batchTransactionsSlice",initialState:vr,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>vr},extraReducers:e=>{e.addCase(I,()=>vr)}}),{setBatchTransactions:Qu,updateBatchTransactions:ed,clearBatchTransactions:td,clearAllBatchTransactions:rd}=Mo.actions,xt=Mo.reducer});var Uo,Bo,Wo,$o,Vo,Ir=h(()=>{"use strict";n();Uo=require("@reduxjs/toolkit");O();Bo={},Wo=(0,Uo.createSlice)({name:"dappConfigSlice",initialState:Bo,reducers:{setDappConfig:(e,t)=>t.payload},extraReducers:e=>{e.addCase(I,()=>Bo)}}),{setDappConfig:$o}=Wo.actions,Vo=Wo.reducer});var te=h(()=>{"use strict";n();ot();_e();at();Oe();pt();dt();gt();ht();St();Ir()});var Pr=h(()=>{"use strict";n()});var ri,ya,ha,Te,kt=h(()=>{"use strict";n();ri=require("@reduxjs/toolkit");Pr();ot();St();Ir();_e();at();Oe();pt();dt();gt();ht();ya={["account"]:nt,["dappConfig"]:Vo,["loginInfo"]:it,["modals"]:st,["networkConfig"]:ct,["signedMessageInfo"]:lt,["toasts"]:ut,["transactionsInfo"]:mt,["transactions"]:yt,["batchTransactions"]:xt},ha=(e={})=>(0,ri.combineReducers)(g(g({},ya),e)),Te=ha});var si={};le(si,{default:()=>_a,sessionStorageReducers:()=>Rr});function ne(e,t=[]){return{key:e,version:1,storage:oi.default,blacklist:t}}var _,ni,oi,xa,Me,Sa,wa,Aa,va,Ia,ba,Ea,ka,Pa,Ra,ii,La,Rr,Na,Ca,Da,_a,ai=h(()=>{"use strict";n();_=require("redux-persist"),ni=S(require("redux-persist/lib/storage")),oi=S(require("redux-persist/lib/storage/session"));kt();te();ot();St();_e();at();Oe();pt();dt();gt();ht();Pr();xa={persistReducersStorageType:"localStorage"},Me={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Sa=ne(Me["account"]),wa=ne(Me["loginInfo"]),Aa=ne(Me["modals"]),va=ne(Me["networkConfig"]),Ia={2:e=>w(g({},e),{networkConfig:gr})};ba=ne("sdk-dapp-transactionsInfo"),Ea=ne("sdk-dapp-transactions",["transactionsToSign"]),ka=ne("sdk-dapp-batchTransactions",["batchTransactions"]),Pa=ne("sdk-dapp-toasts"),Ra=ne("sdk-dapp-signedMessageInfo"),ii={key:"sdk-dapp-store",version:2,storage:ni.default,whitelist:Object.keys(Me),migrate:(0,_.createMigrate)(Ia,{debug:!1})},La=w(g({},ii),{whitelist:[]}),Rr={["toasts"]:(0,_.persistReducer)(Pa,ut),["transactions"]:(0,_.persistReducer)(Ea,yt),["transactionsInfo"]:(0,_.persistReducer)(ba,mt),["batchTransactions"]:(0,_.persistReducer)(ka,xt),["signedMessageInfo"]:(0,_.persistReducer)(Ra,lt)},Na=w(g({},Rr),{["account"]:(0,_.persistReducer)(Sa,nt),["loginInfo"]:(0,_.persistReducer)(wa,it),["modals"]:(0,_.persistReducer)(Aa,st),["networkConfig"]:(0,_.persistReducer)(va,ct)}),Ca=xa.persistReducersStorageType==="localStorage",Da=Ca?(0,_.persistReducer)(ii,Te(Rr)):(0,_.persistReducer)(La,Te(Na)),_a=Da});var ci={};le(ci,{default:()=>Oa});var Oa,li=h(()=>{"use strict";n();kt();Oa=Te()});var pi={};le(pi,{default:()=>Ma});var B,Fa,Ma,ui=h(()=>{"use strict";n();B=require("redux-persist"),Fa=[B.FLUSH,B.REHYDRATE,B.PAUSE,B.PERSIST,B.PURGE,B.REGISTER],Ma=Fa});var gi={};le(gi,{default:()=>mi});function mi(e){return(0,di.persistStore)(e)}var di,fi=h(()=>{"use strict";n();di=require("redux-persist")});var Hc={};le(Hc,{AppInitializer:()=>Gc,useAppInitializer:()=>Xi});module.exports=Pe(Hc);n();var Z=require("react"),Yi=require("@multiversx/sdk-core/out");n();n();n();var Sc=S(require("axios"));n();n();te();n();var Go=S(require("lodash.isequal")),wt=require("reselect"),f=(0,wt.createSelectorCreator)(wt.defaultMemoize,Go.default);var Y=e=>e.account,ve=f(Y,e=>e.address),At=f(Y,ve,(e,t)=>t in e.accounts?e.accounts[t]:rt),Ho=f(Y,At,(e,t)=>{let i=e,{accounts:r}=i,o=ke(i,["accounts"]);return w(g({},o),{address:t.address,account:t})}),wd=f(At,e=>e.balance),la=f(At,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Ad=f(Y,e=>e.shard),vd=f(Y,e=>e.ledgerAccount),Id=f(Y,e=>e.walletConnectAccount),bd=f(Y,e=>e.isAccountLoading),Ed=f(Y,e=>e.accountLoadingError),kd=f(Y,e=>e.websocketEvent),Pd=f(Y,e=>e.websocketBatchEvent);n();var pa=e=>e.dappConfig,Nd=f(pa,e=>e.shouldUseWebViewProvider);n();var re=e=>e.loginInfo,Od=f(re,e=>e.loginMethod),qo=f(re,ve,(e,t)=>Boolean(t)),Fd=f(re,e=>e.walletConnectLogin),Md=f(re,e=>e.ledgerLogin),zo=f(re,e=>e.walletLogin),jo=f(re,e=>e.isLoginSessionInvalid),Bd=f(re,e=>e.tokenLogin),Ud=f(re,e=>e.logoutRoute),Wd=f(re,e=>e.isWalletConnectV2Initialized);n();var Ko=e=>e.modals,Gd=f(Ko,e=>e.txSubmittedModal),Hd=f(Ko,e=>e.notificationModal);n();var ce=e=>e.networkConfig,jd=f(ce,e=>e.chainID),Kd=f(ce,e=>e.network.walletConnectBridgeAddress),Yd=f(ce,e=>e.network.walletConnectV2RelayAddress),Xd=f(ce,e=>e.network.walletConnectV2ProjectId),Zd=f(ce,e=>e.network.walletConnectV2Options),Jd=f(ce,e=>e.network.walletConnectDeepLink),fe=f(ce,e=>e.network),Yo=f(fe,e=>e.apiAddress),Xo=f(fe,e=>e.explorerAddress),Qd=f(fe,e=>{var t;return(t=e.customWalletAddress)!=null?t:e.walletAddress}),em=f(fe,e=>e.xAliasAddress),tm=f(fe,e=>e.egldLabel);n();var vt=e=>e.signedMessageInfo,om=f(vt,e=>e.isSigning),im=f(vt,e=>e.errorMessage),sm=f(vt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),am=f(vt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var Zo=e=>e.toasts,pm=f(Zo,e=>e.customToasts),um=f(Zo,e=>e.transactionToasts);n();te();var Jo={errorMessage:hr,successMessage:xr,processingMessage:Sr},ua=e=>e.transactionsInfo,fm=f(ua,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Jo);n();n();var X=require("@multiversx/sdk-core");A();n();var Er=require("@multiversx/sdk-core/out");n();n();function br(e){try{let t=atob(e),r=btoa(t),o=s.Buffer.from(e,"base64").toString(),i=s.Buffer.from(o).toString("base64"),l=e===r||r.startsWith(e),p=e===i||i.startsWith(e);if(l&&p)return!0}catch(t){return!1}return!1}n();n();n();n();var Qo=e=>{let t=e!=null?e:"";return br(t)?Er.TransactionPayload.fromEncoded(t):new Er.TransactionPayload(t)};n();A();var It=({data:e,onlySetGuardian:t})=>e?t?e.startsWith("SetGuardian"):Object.values(Xt).some(r=>e.startsWith(r)):!1;function kr(e){var o,i,l;let t=g({},e);It({data:t.data,onlySetGuardian:!0})&&(delete t.senderUsername,delete t.receiverUsername);let r=new X.Transaction(g(g(w(g(w(g({value:t.value.valueOf(),data:Qo(t.data),nonce:t.nonce.valueOf(),receiver:new X.Address(t.receiver)},t.receiverUsername?{receiverUsername:t.receiverUsername}:{}),{sender:new X.Address(t.sender)}),t.senderUsername?{senderUsername:t.senderUsername}:{}),{gasLimit:(o=t.gasLimit.valueOf())!=null?o:tr,gasPrice:(i=t.gasPrice.valueOf())!=null?i:rr,chainID:t.chainID.valueOf(),version:new X.TransactionVersion((l=t.version)!=null?l:Gn)}),t.options?{options:new X.TransactionOptions(t.options)}:{}),t.guardian?{guardian:new X.Address(t.guardian)}:{}));return t.guardianSignature&&r.applyGuardianSignature(s.Buffer.from(t.guardianSignature,"hex")),t.signature&&r.applySignature(s.Buffer.from(t.signature,"hex")),r}n();n();A();n();n();var Lr=require("@reduxjs/toolkit"),xi=require("react-redux/lib/utils/Subscription");te();n();var ei=S(require("lodash.throttle"));A();te();ur();Re();Ae();var ga=[Qe],bt=!1,fa=(0,ei.default)(()=>{Ce(Ne())},5e3),ti=e=>t=>r=>{if(ga.includes(r.type))return t(r);let o=e.getState(),i=K.local.getItem($.loginExpiresAt);if(!Boolean(o==null?void 0:o.account.address))return t(r);if(i==null)return Ce(Ne());let p=Date.now();return i-p<0&&!bt?setTimeout(()=>{bt=!0,e.dispatch(io())},1e3):(bt&&(bt=!1),fa()),t(r)};n();n();function Et(){return typeof sessionStorage!="undefined"}var Ti=Et()?(ai(),Pe(si)).default:(li(),Pe(ci)).default,yi=Et()?(ui(),Pe(pi)).default:[],hi=Et()?(fi(),Pe(gi)).default:e=>e;kt();var P=(0,Lr.configureStore)({reducer:Ti,middleware:e=>e({serializableCheck:{ignoredActions:[...yi,pr.type,lr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(ti)}),Si=(0,xi.createSubscription)(P),Ig=hi(P),bg=(0,Lr.configureStore)({reducer:Te});n();n();var Ua=require("@multiversx/sdk-core/out");n();A();n();var Ai=require("@multiversx/sdk-core");D();n();var wi=require("@multiversx/sdk-core");function Wa(e){try{let t=new wi.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function Be(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&Wa(e)}n();n();n();var $a=require("@multiversx/sdk-core"),Va=S(require("bignumber.js"));W();n();n();n();var Nr="dapp/config";n();n();n();n();C();n();n();C();n();n();n();var Ka=S(require("bignumber.js"));A();n();var ja=require("@multiversx/sdk-core"),_r=S(require("bignumber.js"));A();n();var qa=S(require("bignumber.js"));n();_r.default.config({ROUNDING_MODE:_r.default.ROUND_FLOOR});n();n();n();A();n();n();n();n();A();n();A();n();var Ya=require("@multiversx/sdk-core");A();n();var We=require("@multiversx/sdk-core"),Za=S(require("bignumber.js"));A();n();n();var Xa=S(require("bignumber.js"));A();n();A();n();n();n();n();n();n();A();n();A();n();A();n();C();var Qa=["reDelegateRewards","claimRewards","unBond"],ec=["wrapEgld","unwrapEgld"],tc=["unStake"],rc=["unDelegate"];n();n();n();A();n();var ic=S(require("bignumber.js"));n();n();C();n();var ac=S(require("bignumber.js"));n();n();n();n();var lc=S(require("bignumber.js"));D();n();n();n();n();W();n();var dc=require("@multiversx/sdk-web-wallet-provider");A();n();var uc=S(require("qs"));n();n();n();n();n();var $e=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined";var F=()=>{if(!$e())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:t,hash:r,origin:o,href:i,search:l}}=window;return{pathname:t,hash:r,origin:o,href:i,search:l}};var Mr=(e="")=>{let t=F(),r=e.startsWith("http")||e.startsWith("www.");return!t.origin||e.startsWith(t.origin)||r?e:`${t.origin}/${e.replace("/","")}`};n();n();var Jh={search:$e()?window.location.search:"",removeParams:[]};n();n();n();n();C();n();n();n();var mc=S(require("linkifyjs"));n();A();n();var gc=S(require("bignumber.js"));n();D();n();n();W();n();W();n();n();n();C();n();C();n();var fc=S(require("bignumber.js"));A();C();n();C();n();var Pi=require("react");D();n();n();C();n();n();var Tc=require("@multiversx/sdk-core/out"),yc=S(require("bignumber.js"));C();n();D();n();n();D();var zS=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Ri=require("react");D();n();var xc=require("react");C();var ew=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Ar();n();var Lt=e=>e.transactions,Ve=f(Lt,e=>e.signedTransactions),Hw=f(Lt,e=>e.signTransactionsError),qw=f(Lt,e=>e.signTransactionsCancelMessage),Nt=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),zw=f(Ve,Nt(Lo)),jw=f(Ve,Nt(ft)),Kw=f(Ve,Nt(Tt)),Yw=f(Ve,Nt(Co)),Xw=f(Lt,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:w(g({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>kr(r)))||[]})}),Zw=f(Ve,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});n();var wc=S(require("axios"));ge();n();A();n();var Ac=S(require("axios"));n();var Ic=S(require("axios"));n();n();var bc=S(require("axios"));n();var Ec=S(require("axios"));n();n();n();n();n();var Ni=require("@lifeomic/axios-fetch"),Br=S(require("axios")),Ur=(0,Ni.buildAxiosFetch)(Br.default),Wr=(e,t)=>v(void 0,null,function*(){if(!e.ok)throw new Error(`HTTP error! Status: ${e.status}`);let o=e.clone().json(),[i]=yield Promise.all([o]);return{data:i,status:e.status,statusText:e.statusText,headers:e.headers,config:t}});function kc(e,t,r){return v(this,null,function*(){try{let o=yield Ur(e,g({method:"POST",body:t?JSON.stringify(t):void 0,headers:g({"Content-Type":"application/json"},(r==null?void 0:r.headers)||{})},r));return Wr(o,r)}catch(o){throw console.error("Fetch Error:",o),o}})}function Pc(e,t){return v(this,null,function*(){try{let r=yield Ur(e,t);if(!r.ok)throw new Error(`HTTP error! Status: ${r.status}`);return Wr(r,t)}catch(r){throw console.error("Fetch Error:",r),r}})}function Rc(e,t,r){return v(this,null,function*(){try{let o=yield Ur(e,g({method:"PATCH",body:t?JSON.stringify(t):void 0,headers:(r==null?void 0:r.headers)||{}},r));if(!o.ok)throw new Error(`HTTP error! Status: ${o.status}`);return Wr(o,r)}catch(o){throw console.error("Fetch Error:",o),o}})}var Ge=Br.default.create();Ge.get=Pc;Ge.post=kc;Ge.patch=Rc;n();n();var Lc=S(require("axios"));n();var Nc=S(require("swr"));n();n();n();n();n();ge();n();var Ci=S(require("axios"));function Vr(e){return v(this,null,function*(){let t=`${e}/${Nr}`;try{let{data:o}=yield Ci.default.get(t);if(o!=null){let i="egldDenomination";if(i in o){let r=o,{[i]:l,decimals:p}=r,d=ke(r,[Bt(i),"decimals"]);return w(g({},d),{decimals:l,digits:p})}return o}}catch(o){console.error("error fetching configuration for ",t)}return null})}n();var Dc=S(require("axios"));n();ge();n();ge();n();n();n();n();var Oc=S(require("axios"));n();ge();n();n();var Di=require("react"),Ie=require("react-redux");var Fc={store:P,subscription:Si},Gr=(0,Di.createContext)(Fc),SI=(0,Ie.createStoreHook)(Gr),_i=(0,Ie.createDispatchHook)(Gr),Dt=(0,Ie.createSelectorHook)(Gr);var Oi=()=>Dt(Ho);te();_e();Oe();n();n();n();n();var Mi=require("@multiversx/sdk-extension-provider"),Bi=require("@multiversx/sdk-hw-provider"),Ui=require("@multiversx/sdk-metamask-provider/out/metamaskProvider"),Wi=require("@multiversx/sdk-opera-provider"),$i=require("@multiversx/sdk-web-wallet-provider");A();n();var Hr=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider");W();n();var Fi=be;var He=e=>{switch(e==null?void 0:e.constructor){case $i.WalletProvider:return"wallet";case Fi:return"walletconnectv2";case Bi.HWProvider:return"ledger";case Mi.ExtensionProvider:return"extension";case Ui.MetamaskProvider:return"metamask";case Wi.OperaProvider:return"opera";case Hr.CrossWindowProvider:return"crossWindow";case be:return"";default:return"extra"}};var ie=e=>`Unable to perform ${e}, Provider not initialized`,be=class{init(){return Promise.resolve(!1)}login(t){throw new Error(ie(`login with options: ${t}`))}logout(t){throw new Error(ie(`logout with options: ${t}`))}getAddress(){throw new Error(ie("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(ie(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(ie(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(ie(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(ie(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(ie(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(ie(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},qr=new be;var Mc=qr;function se(){return Mc||qr}O();D();n();function Vi(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(r){}}}function Gi(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=Bc(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let l=i[0],p=l.replace(/(.)\/+$/,"$1"),d=i.slice(1);return{params:o.reduce((T,x,y)=>{if(x==="*"){let b=d[y]||"";p=l.slice(0,l.length-b.length).replace(/(.)\/+$/,"$1")}return T[x]=Uc(d[y]||"",x),T},{}),pathname:l,pathnameBase:p,pattern:e}}function Bc(e,t=!1,r=!0){Vi(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(p,d)=>(o.push(d),"([^\\/]+)"));return e.endsWith("*")?(o.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i+=r?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(i,t?void 0:"i"),o]}function Uc(e,t){try{return decodeURIComponent(e)}catch(r){return Vi(!1,`The value for the URL param "${t}" will not be decoded because the string "${e}" is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),e}}n();n();var Hi=()=>{let{search:e}=F(),t=new URLSearchParams(e),r=Object.fromEntries(t),o=r==null?void 0:r.address;return Be(o)?o:null};n();n();n();function qi(){let e=se();return He(e)}n();W();n();function qe(e){return qi()===e}function _t(){let e=P.getState(),t=se(),r=ve(e),o=qo(e),i=zo(e);if(!t)throw"provider not initialized";return qe("ledger")&&o?new Promise(l=>{l(r)}):!qe("")&&!qe("wallet")&&!qe("extra")?t.getAddress():new Promise(l=>{let p=Hi();i!=null&&p&&l(p),o&&l(r),l("")})}n();n();var zi=()=>{let{search:e}=F(),t=new URLSearchParams(e),r=Object.fromEntries(t);return r==null?void 0:r.accessToken};n();O();D();n();te();n();te();n();var ji=require("@multiversx/sdk-core");D();mr();Re();Ae();var Ki=({callbackUrl:e,onRedirect:t})=>{typeof t=="function"?t(e):e&&dr({url:e})},$c=e=>{let t=K.local.getItem($.logoutEvent),{data:r}=t?JSON.parse(t):{data:e};e===r&&(K.local.setItem({key:$.logoutEvent,data:e,expires:0}),K.local.removeItem($.logoutEvent))},Vc=500;function zr(i,l){return v(this,arguments,function*(e,t,r=Boolean(zi()),o={shouldBroadcastLogoutAcrossTabs:!0,hasConsentPopup:!1}){var L;let p="",d=se(),m=He(d),T=m==="wallet",x=((L=d==null?void 0:d.isInitialized)==null?void 0:L.call(d))===!0;if(r&&(d==null?void 0:d.relogin)!=null)return d.relogin();if(o.shouldBroadcastLogoutAcrossTabs)try{p=yield _t(),$c(p)}catch(V){console.error("error fetching logout address",V)}let y=Mr(e),b=F(),k=new URL(decodeURIComponent(y)).pathname;if((Gi(b.pathname,k)||T&&x)&&uo(),!p&&!x)return Ki({callbackUrl:y,onRedirect:t});try{if(P.dispatch(I()),T)return setTimeout(()=>{d.logout({callbackUrl:y})},Vc);o.hasConsentPopup&&m==="crossWindow"&&d.setShouldShowConsentPopup(!0),yield d.logout({callbackUrl:y})}catch(V){console.error("Logging out error:",V)}finally{T||Ki({callbackUrl:y,onRedirect:t})}})}var Xi=({customNetworkConfig:e={},environment:t,dappConfig:r})=>{let[o,i]=(0,Z.useState)(!1),l=Oi(),p=Dt(jo),d=(0,Z.useMemo)(()=>r,[]),m=d==null?void 0:d.logoutRoute,{address:T,publicKey:x}=l,y=_i();function b(){return v(this,null,function*(){let L=!(e!=null&&e.skipFetchFromServer),V=e==null?void 0:e.apiAddress,ae=me[t]||{},Ot=g(g({},ae),e);if(L){let Ft=ae==null?void 0:ae.apiAddress,ze=yield Vr(V||Ft);if(ze!=null){let U=g(g(g({},ae),ze),e);y(fr(U));return}}y(fr(Ot))})}function k(){return v(this,null,function*(){d&&y($o(d)),y(so(m)),yield b(),i(!0)})}return(0,Z.useEffect)(()=>{T&&new Yi.Address(T).hex()!==x&&zr(m)},[T,x,m]),(0,Z.useEffect)(()=>{k()},[e,t,d]),(0,Z.useEffect)(()=>{l.address&&p&&zr(m)},[p,l.address,m]),{initialized:o}};function Gc({customNetworkConfig:e={},children:t,environment:r,dappConfig:o}){let[i,l]=(0,Z.useState)(!(o!=null&&o.isSSR)),{initialized:p}=Xi({customNetworkConfig:e,environment:r,dappConfig:o});return(0,Z.useEffect)(()=>{l(!0)},[]),i?p?t:null:t}0&&(module.exports={AppInitializer,useAppInitializer});
|
|
1
|
+
"use strict";var Qi=Object.create;var ke=Object.defineProperty,es=Object.defineProperties,ts=Object.getOwnPropertyDescriptor,rs=Object.getOwnPropertyDescriptors,ns=Object.getOwnPropertyNames,Ye=Object.getOwnPropertySymbols,os=Object.getPrototypeOf,Bt=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable;var Yr=(e,t,r)=>t in e?ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))Bt.call(t,r)&&Yr(e,r,t[r]);if(Ye)for(var r of Ye(t))Xr.call(t,r)&&Yr(e,r,t[r]);return e},w=(e,t)=>es(e,rs(t));var Ut=e=>typeof e=="symbol"?e:e+"",Pe=(e,t)=>{var r={};for(var o in e)Bt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Ye)for(var o of Ye(e))t.indexOf(o)<0&&Xr.call(e,o)&&(r[o]=e[o]);return r};var h=(e,t)=>()=>(e&&(t=e(e=0)),t);var Xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pe=(e,t)=>{for(var r in t)ke(e,r,{get:t[r],enumerable:!0})},Zr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ns(t))!Bt.call(e,i)&&i!==r&&ke(e,i,{get:()=>t[i],enumerable:!(o=ts(t,i))||o.enumerable});return e};var S=(e,t,r)=>(r=e!=null?Qi(os(e)):{},Zr(t||!e||!e.__esModule?ke(r,"default",{value:e,enumerable:!0}):r,e)),Re=e=>Zr(ke({},"__esModule",{value:!0}),e);var v=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(T){i(T)}},p=m=>{try{d(r.throw(m))}catch(T){i(T)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var en=Xe(Ze=>{"use strict";n();Ze.byteLength=ss;Ze.toByteArray=cs;Ze.fromByteArray=us;var G=[],M=[],is=typeof Uint8Array!="undefined"?Uint8Array:Array,Wt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ue=0,Jr=Wt.length;ue<Jr;++ue)G[ue]=Wt[ue],M[Wt.charCodeAt(ue)]=ue;var ue,Jr;M["-".charCodeAt(0)]=62;M["_".charCodeAt(0)]=63;function Qr(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 ss(e){var t=Qr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function as(e,t,r){return(t+r)*3/4-r}function cs(e){var t,r=Qr(e),o=r[0],i=r[1],l=new is(as(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=M[e.charCodeAt(m)]<<18|M[e.charCodeAt(m+1)]<<12|M[e.charCodeAt(m+2)]<<6|M[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=M[e.charCodeAt(m)]<<2|M[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=M[e.charCodeAt(m)]<<10|M[e.charCodeAt(m+1)]<<4|M[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function ls(e){return G[e>>18&63]+G[e>>12&63]+G[e>>6&63]+G[e&63]}function ps(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(ls(o));return i.join("")}function us(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(ps(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(G[t>>2]+G[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(G[t>>10]+G[t>>4&63]+G[t<<2&63]+"=")),i.join("")}});var tn=Xe($t=>{n();$t.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,T=m>>1,x=-7,y=r?i-1:0,I=r?-1:1,k=e[t+y];for(y+=I,l=k&(1<<-x)-1,k>>=-x,x+=d;x>0;l=l*256+e[t+y],y+=I,x-=8);for(p=l&(1<<-x)-1,l>>=-x,x+=o;x>0;p=p*256+e[t+y],y+=I,x-=8);if(l===0)l=1-T;else{if(l===m)return p?NaN:(k?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-T}return(k?-1:1)*p*Math.pow(2,l-o)};$t.write=function(e,t,r,o,i,l){var p,d,m,T=l*8-i-1,x=(1<<T)-1,y=x>>1,I=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=o?0:l-1,N=o?1:-1,V=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,p=x):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+y>=1?t+=I/m:t+=I*Math.pow(2,1-y),t*m>=2&&(p++,m/=2),p+y>=x?(d=0,p=x):p+y>=1?(d=(t*m-1)*Math.pow(2,i),p=p+y):(d=t*Math.pow(2,y-1)*Math.pow(2,i),p=0));i>=8;e[r+k]=d&255,k+=N,d/=256,i-=8);for(p=p<<i|d,T+=i;T>0;e[r+k]=p&255,k+=N,p/=256,T-=8);e[r+k-N]|=V*128}});var fn=Xe(he=>{"use strict";n();var Vt=en(),ye=tn(),rn=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;he.Buffer=u;he.SlowBuffer=ys;he.INSPECT_MAX_BYTES=50;var Je=2147483647;he.kMaxLength=Je;u.TYPED_ARRAY_SUPPORT=ds();!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 ds(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function J(e){if(e>Je)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return zt(e)}return sn(e,t,r)}u.poolSize=8192;function sn(e,t,r){if(typeof e=="string")return gs(e,t);if(ArrayBuffer.isView(e))return fs(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 Ht(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=Ts(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return sn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function an(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 ms(e,t,r){return an(e),e<=0?J(e):t!==void 0?typeof r=="string"?J(e).fill(t,r):J(e).fill(t):J(e)}u.alloc=function(e,t,r){return ms(e,t,r)};function zt(e){return an(e),J(e<0?0:jt(e)|0)}u.allocUnsafe=function(e){return zt(e)};u.allocUnsafeSlow=function(e){return zt(e)};function gs(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=cn(e,t)|0,o=J(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Gt(e){for(var t=e.length<0?0:jt(e.length)|0,r=J(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function fs(e){if(H(e,Uint8Array)){var t=new Uint8Array(e);return Ht(t.buffer,t.byteOffset,t.byteLength)}return Gt(e)}function Ht(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 Ts(e){if(u.isBuffer(e)){var t=jt(e.length)|0,r=J(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Kt(e.length)?J(0):Gt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Gt(e.data)}function jt(e){if(e>=Je)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Je.toString(16)+" bytes");return e|0}function ys(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,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(H(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function cn(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 i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return qt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return gn(e).length;default:if(i)return o?-1:qt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=cn;function hs(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ps(this,t,r);case"utf8":case"utf-8":return pn(this,t,r);case"ascii":return Es(this,t,r);case"latin1":case"binary":return ks(this,t,r);case"base64":return bs(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rs(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function de(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)de(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)de(this,r,r+3),de(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)de(this,r,r+7),de(this,r+1,r+6),de(this,r+2,r+5),de(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?pn(this,0,t):hs.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=he.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};rn&&(u.prototype[rn]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,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),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,d=o-r,m=Math.min(p,d),T=this.slice(i,l),x=t.slice(r,o),y=0;y<m;++y)if(T[y]!==x[y]){p=T[y],d=x[y];break}return p<d?-1:d<p?1:0};function ln(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Kt(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:nn(e,t,r,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):nn(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function nn(e,t,r,o,i){var l=1,p=e.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,d/=2,r/=2}function m(k,N){return l===1?k[N]:k.readUInt16BE(N*l)}var T;if(i){var x=-1;for(T=r;T<p;T++)if(m(e,T)===m(t,x===-1?0:T-x)){if(x===-1&&(x=T),T-x+1===d)return x*l}else x!==-1&&(T-=T-x),x=-1}else for(r+d>p&&(r=p-d),T=r;T>=0;T--){for(var y=!0,I=0;I<d;I++)if(m(e,T+I)!==m(t,I)){y=!1;break}if(y)return T}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return ln(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return ln(this,t,r,o,!1)};function xs(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var d=parseInt(t.substr(p*2,2),16);if(Kt(d))return p;e[r+p]=d}return p}function Ss(e,t,r,o){return Qe(qt(t,e.length-r),e,r,o)}function ws(e,t,r,o){return Qe(Cs(t),e,r,o)}function As(e,t,r,o){return Qe(gn(t),e,r,o)}function vs(e,t,r,o){return Qe(Ds(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return xs(this,t,r,o);case"utf8":case"utf-8":return Ss(this,t,r,o);case"ascii":case"latin1":case"binary":return ws(this,t,r,o);case"base64":return As(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vs(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function bs(e,t,r){return t===0&&r===e.length?Vt.fromByteArray(e):Vt.fromByteArray(e.slice(t,r))}function pn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,T,x,y;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(y=(l&31)<<6|m&63,y>127&&(p=y));break;case 3:m=e[i+1],T=e[i+2],(m&192)===128&&(T&192)===128&&(y=(l&15)<<12|(m&63)<<6|T&63,y>2047&&(y<55296||y>57343)&&(p=y));break;case 4:m=e[i+1],T=e[i+2],x=e[i+3],(m&192)===128&&(T&192)===128&&(x&192)===128&&(y=(l&15)<<18|(m&63)<<12|(T&63)<<6|x&63,y>65535&&y<1114112&&(p=y))}}p===null?(p=65533,d=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=d}return Is(o)}var on=4096;function Is(e){var t=e.length;if(t<=on)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=on));return r}function Es(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function ks(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function Ps(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=_s[e[l]];return i}function Rs(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function R(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||R(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||R(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||R(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||R(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||R(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||R(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||R(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||R(t,4,this.length),ye.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||R(t,4,this.length),ye.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||R(t,8,this.length),ye.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||R(t,8,this.length),ye.read(this,t,!1,52,8)};function L(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;L(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;L(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||L(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||L(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||L(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||L(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||L(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);L(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);L(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||L(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||L(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||L(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||L(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||L(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 un(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function dn(e,t,r,o,i){return t=+t,r=r>>>0,i||un(e,t,r,4,34028234663852886e22,-34028234663852886e22),ye.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return dn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return dn(this,t,r,!1,o)};function mn(e,t,r,o,i){return t=+t,r=r>>>0,i||un(e,t,r,8,17976931348623157e292,-17976931348623157e292),ye.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return mn(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return mn(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var Ns=/[^+/0-9A-Za-z-_]/g;function Ls(e){if(e=e.split("=")[0],e=e.trim().replace(Ns,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function qt(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function Cs(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Ds(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function gn(e){return Vt.toByteArray(Ls(e))}function Qe(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function H(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Kt(e){return e!==e}var _s=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var Sn=Xe((Zc,xn)=>{n();var E=xn.exports={},q,z;function Yt(){throw new Error("setTimeout has not been defined")}function Xt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?q=setTimeout:q=Yt}catch(e){q=Yt}try{typeof clearTimeout=="function"?z=clearTimeout:z=Xt}catch(e){z=Xt}})();function Tn(e){if(q===setTimeout)return setTimeout(e,0);if((q===Yt||!q)&&setTimeout)return q=setTimeout,setTimeout(e,0);try{return q(e,0)}catch(t){try{return q.call(null,e,0)}catch(r){return q.call(this,e,0)}}}function Os(e){if(z===clearTimeout)return clearTimeout(e);if((z===Xt||!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 Q=[],xe=!1,me,et=-1;function Fs(){!xe||!me||(xe=!1,me.length?Q=me.concat(Q):et=-1,Q.length&&yn())}function yn(){if(!xe){var e=Tn(Fs);xe=!0;for(var t=Q.length;t;){for(me=Q,Q=[];++et<t;)me&&me[et].run();et=-1,t=Q.length}me=null,xe=!1,Os(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];Q.push(new hn(e,t)),Q.length===1&&!xe&&Tn(yn)};function hn(e,t){this.fun=e,this.array=t}hn.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function ee(){}E.on=ee;E.addListener=ee;E.once=ee;E.off=ee;E.removeListener=ee;E.removeAllListeners=ee;E.emit=ee;E.prependListener=ee;E.prependOnceListener=ee;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 s,a,Jc,n=h(()=>{s=S(fn()),a=S(Sn()),Jc=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 wn=h(()=>{"use strict";n()});var An=h(()=>{"use strict";n()});var vn=h(()=>{"use strict";n()});var Zt,bn=h(()=>{"use strict";n();Zt=(o=>(o.SetGuardian="SetGuardian",o.GuardAccount="GuardAccount",o.UnGuardAccount="UnGuardAccount",o))(Zt||{})});var In=h(()=>{"use strict";n()});var Jt=h(()=>{"use strict";n()});var En=h(()=>{"use strict";n()});var kn=h(()=>{"use strict";n()});var Pn=h(()=>{"use strict";n()});var Rn=h(()=>{"use strict";n()});var Qt,Se,er=h(()=>{"use strict";n();Qt=require("@multiversx/sdk-dapp-utils/out/constants/crossWindowProviderConstants"),Se=require("@multiversx/sdk-dapp-utils/out/enums/crossWindowProviderEnums")});var Nn,pl,Ln,ul,W=h(()=>{"use strict";n();er();Nn=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(Nn||{}),pl=g(g({},Se.CrossWindowProviderRequestEnums),Nn),Ln=(t=>(t.reloginResponse="RELOGIN_RESPONSE",t))(Ln||{}),ul=g(g({},Se.CrossWindowProviderResponseEnums),Ln)});var Cn=h(()=>{"use strict";n()});var Dn=h(()=>{"use strict";n()});var C=h(()=>{"use strict";n()});var _n=h(()=>{"use strict";n()});var On=h(()=>{"use strict";n()});var Fn=h(()=>{"use strict";n()});var D=h(()=>{"use strict";n();kn();Pn();Rn();W();Cn();Dn();C();_n();On();Fn()});var ae,Mn,Pl,Bn,Rl,Un,Nl,Ll,Ms,ge=h(()=>{"use strict";n();D();ae={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Mn,egldLabel:Pl}=ae["devnet"],{chainId:Bn,egldLabel:Rl}=ae["testnet"],{chainId:Un,egldLabel:Nl}=ae["mainnet"],Ll={["devnet"]:Mn,["testnet"]:Bn,["mainnet"]:Un},Ms={[Mn]:"devnet",[Bn]:"testnet",[Un]:"mainnet"}});var Wn=h(()=>{"use strict";n()});var j,$n=h(()=>{"use strict";n();j=require("@multiversx/sdk-web-wallet-provider")});var Vn,Gn,tr,Fl,Ml,Hn=h(()=>{"use strict";n();er();tr=String((Gn=(Vn=Qt.safeWindow)==null?void 0:Vn.navigator)==null?void 0:Gn.userAgent),Fl=/^((?!chrome|android).)*safari/i.test(tr),Ml=/firefox/i.test(tr)&&/windows/i.test(tr)});var rr,nr,qn,tt,zn,we,A=h(()=>{"use strict";n();wn();An();vn();bn();In();Jt();En();ge();Wn();$n();Hn();rr=5e4,nr=1e9,qn=1,tt="logout",zn="login",we="0"});var rt,or=h(()=>{"use strict";n();rt=()=>Date.now()/1e3});var jn=h(()=>{"use strict";n()});var Kn=h(()=>{"use strict";n()});var Yn=h(()=>{"use strict";n();or();jn();Kn()});var ir={};pe(ir,{clear:()=>$s,getItem:()=>Us,localStorageKeys:()=>$,removeItem:()=>Ws,setItem:()=>Bs});var $,nt,Bs,Us,Ws,$s,Ae=h(()=>{"use strict";n();Yn();$={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},nt=typeof localStorage!="undefined",Bs=({key:e,data:t,expires:r})=>{!nt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Us=e=>{if(!nt)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:rt()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Ws=e=>{!nt||localStorage.removeItem(String(e))},$s=()=>{!nt||localStorage.clear()}});var sr={};pe(sr,{clear:()=>Qn,getItem:()=>Zn,removeItem:()=>Jn,setItem:()=>Xn,storage:()=>Vs});var Xn,Zn,Jn,Qn,Vs,eo=h(()=>{"use strict";n();Xn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Zn=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},Jn=e=>sessionStorage.removeItem(String(e)),Qn=()=>sessionStorage.clear(),Vs={setItem:Xn,getItem:Zn,removeItem:Jn,clear:Qn}});var K,Ne=h(()=>{"use strict";n();Ae();eo();K={session:sr,local:ir}});var ar,b,Le,O=h(()=>{"use strict";n();ar=require("@reduxjs/toolkit");A();b=(0,ar.createAction)(tt),Le=(0,ar.createAction)(zn,e=>({payload:e}))});var lr,to,ro,ot,cr,no,pr,gp,ur,fp,Tp,yp,hp,xp,Sp,wp,Ap,it,st=h(()=>{"use strict";n();lr=require("@multiversx/sdk-core"),to=require("@reduxjs/toolkit"),ro=require("redux-persist");A();Ne();Ae();O();ot={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:we},cr={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":ot},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},no=(0,to.createSlice)({name:"accountInfoSlice",initialState:cr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=r?new lr.Address(r).hex():""},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:ot},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(b,()=>(K.local.removeItem($.loginExpiresAt),cr)),e.addCase(Le,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new lr.Address(o).hex()}),e.addCase(ro.REHYDRATE,(t,r)=>{var T;if(!((T=r.payload)!=null&&T.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let m=p&&i in p;t.accounts=m?p:cr.accounts,t.publicKey=d})}}),{setAccount:pr,setAddress:gp,setAccountNonce:ur,setAccountShard:fp,setLedgerAccount:Tp,updateLedgerAccount:yp,setWalletConnectAccount:hp,setIsAccountLoading:xp,setAccountLoadingError:Sp,setWebsocketEvent:wp,setWebsocketBatchEvent:Ap}=no.actions,it=no.reducer});function Ce(){return new Date().setHours(new Date().getHours()+24)}function De(e){K.local.setItem({key:$.loginExpiresAt,data:e,expires:e})}var dr=h(()=>{"use strict";n();Ne();Ae()});var io,oo,so,Cp,Dp,_p,Op,Fp,Mp,ao,co,Bp,at,Oe=h(()=>{"use strict";n();io=require("@reduxjs/toolkit");dr();W();O();oo={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,crossWindowLogin:null,isLoginSessionInvalid:!1},so=(0,io.createSlice)({name:"loginInfoSlice",initialState:oo,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},setIsWalletConnectV2Initialized:(e,t)=>{e.isWalletConnectV2Initialized=t.payload}},extraReducers:e=>{e.addCase(b,()=>oo),e.addCase(Le,(t,r)=>{t.isLoginSessionInvalid=!1,t.loginMethod=r.payload.loginMethod,De(Ce())})}}),{setLoginMethod:Cp,setWalletConnectLogin:Dp,setLedgerLogin:_p,setTokenLogin:Op,setTokenLoginSignature:Fp,setWalletLogin:Mp,invalidateLoginSession:ao,setLogoutRoute:co,setIsWalletConnectV2Initialized:Bp}=so.actions,at=so.reducer});var po,lo,uo,Vp,Gp,Hp,qp,ct,lt=h(()=>{"use strict";n();po=require("@reduxjs/toolkit");O();lo={},uo=(0,po.createSlice)({name:"modalsSlice",initialState:lo,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(b,()=>lo)}}),{setTxSubmittedModal:Vp,setNotificationModal:Gp,clearTxSubmittedModal:Hp,clearNotificationModal:qp}=uo.actions,ct=uo.reducer});var mo,go,mr,gr=h(()=>{"use strict";n();mo=!1,go=(e=!0)=>{mo=e},mr=({timeout:e=0,url:t})=>{mo||setTimeout(()=>{if(!!window)return window.location.assign(t)},e)}});var fo=h(()=>{"use strict";n();gr()});function To(e){return e[Math.floor(Math.random()*e.length)]}var yo=h(()=>{"use strict";n()});var ho=h(()=>{"use strict";n();Jt()});var xo=h(()=>{"use strict";n();fo();yo();ho()});var So,wo,Ao,Fe,Gs,vo,fr,au,cu,pt,Me=h(()=>{"use strict";n();So=require("@reduxjs/toolkit"),wo=S(require("lodash.omit")),Ao=require("redux-persist");O();xo();Fe={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Gs={network:Fe,chainID:""},vo=(0,So.createSlice)({name:"appConfig",initialState:Gs,reducers:{initializeNetworkConfig:(e,t)=>{let r=To(t.payload.walletConnectV2RelayAddresses),o=(0,wo.default)(t.payload,"walletConnectV2RelayAddresses");e.network=w(g(g({},e.network),o),{walletConnectV2RelayAddress:r})},setChainID:(e,t)=>{e.chainID=t.payload},setCustomWalletAddress:(e,t)=>{e.network.customWalletAddress=t.payload}},extraReducers:e=>{e.addCase(b,t=>{t.network.customWalletAddress=void 0}),e.addCase(Ao.REHYDRATE,(t,r)=>{var i,l;if(!((l=(i=r.payload)==null?void 0:i.network)!=null&&l.customWalletAddress))return;let{network:{customWalletAddress:o}}=r.payload;t.network.customWalletAddress=o})}}),{initializeNetworkConfig:fr,setChainID:au,setCustomWalletAddress:cu}=vo.actions,pt=vo.reducer});var bo,Tr,Io,gu,fu,Tu,ut,dt=h(()=>{"use strict";n();bo=require("@reduxjs/toolkit");D();O();Tr={isSigning:!1,signedSessions:{}},Io=(0,bo.createSlice)({name:"signedMessageInfoSliceState",initialState:Tr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=g(g({},e.signedSessions[r]),o)},setSignSessionState:(e,t)=>g(g({},e),t.payload),clearSignedMessageInfo:()=>Tr},extraReducers:e=>{e.addCase(b,()=>Tr)}}),{setSignSession:gu,clearSignedMessageInfo:fu,setSignSessionState:Tu}=Io.actions,ut=Io.reducer});var ko,Po,Eo,Ro,vu,bu,Iu,Eu,mt,gt=h(()=>{"use strict";n();ko=require("@reduxjs/toolkit"),Po=require("redux-persist");D();or();O();Eo={customToasts:[],transactionToasts:[]},Ro=(0,ko.createSlice)({name:"toastsSlice",initialState:Eo,reducers:{addCustomToast:(e,t)=>{let r=t.payload.toastId||`custom-toast-${e.customToasts.length+1}`,o=e.customToasts.findIndex(i=>i.toastId===r);if(o!==-1){e.customToasts[o]=w(g(g({},e.customToasts[o]),t.payload),{type:"custom",toastId:r});return}e.customToasts.push(w(g({},t.payload),{type:"custom",toastId:r}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:rt(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)}},extraReducers:e=>{e.addCase(b,()=>Eo),e.addCase(Po.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:vu,removeCustomToast:bu,addTransactionToast:Iu,removeTransactionToast:Eu}=Ro.actions,mt=Ro.reducer});var No,hr,xr,Sr,Hs,yr,Lo,Nu,Lu,Cu,ft,Tt=h(()=>{"use strict";n();No=require("@reduxjs/toolkit");O();hr="Transaction failed",xr="Transaction successful",Sr="Processing transaction",Hs="Transaction submitted",yr={},Lo=(0,No.createSlice)({name:"transactionsInfo",initialState:yr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||hr,successMessage:(o==null?void 0:o.successMessage)||xr,processingMessage:(o==null?void 0:o.processingMessage)||Sr,submittedMessage:(o==null?void 0:o.submittedMessage)||Hs,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>yr},extraReducers:e=>{e.addCase(b,()=>yr)}}),{clearTransactionsInfo:Nu,setTransactionsDisplayInfo:Lu,clearTransactionsInfoForSessionId:Cu}=Lo.actions,ft=Lo.reducer});function Co(e){return e!=null&&(ta(e)||sa(e))}function yt(e){return e!=null&&(ra(e)||aa(e))}function ht(e){return e!=null&&(na(e)||ca(e))}function Do(e){return e!=null&&(oa(e)||la(e))}function _o(e){return e!=null&&ia(e)}function ta(e){return e!=null&&zs.includes(e)}function ra(e){return e!=null&&js.includes(e)}function na(e){return e!=null&&Ks.includes(e)}function oa(e){return e!=null&&Ys.includes(e)}function ia(e){return e!=null&&Xs.includes(e)}function sa(e){return e!=null&&Zs.includes(e)}function aa(e){return e!=null&&Js.includes(e)}function ca(e){return e!=null&&Qs.includes(e)}function la(e){return e!=null&&ea.includes(e)}var zs,js,Ks,Ys,Xs,Zs,Js,Qs,ea,Ar=h(()=>{"use strict";n();W();zs=["sent"],js=["success"],Ks=["fail","cancelled","timedOut"],Ys=["invalid"],Xs=["timedOut"],Zs=["pending"],Js=["success"],Qs=["fail","invalid"],ea=["not executed"]});var Oo,Fo,Be,pa,Mo,$u,Vu,Gu,Hu,qu,zu,ju,Ku,Yu,Xu,Zu,xt,St=h(()=>{"use strict";n();Oo=require("@reduxjs/toolkit"),Fo=require("redux-persist");W();Ar();O();Be={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},pa={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Mo=(0,Oo.createSlice)({name:"transactionsSlice",initialState:Be,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,T;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p,customTransactionInformation:d}=t.payload;e.customTransactionInformationForSessionId[r]=g(g(g({},pa),((m=e.signedTransactions[r])==null?void 0:m.customTransactionInformation)||{}),e.customTransactionInformationForSessionId[r]||{}),e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:g(g({},e.customTransactionInformationForSessionId[r]),d!=null?d:{})},((T=e==null?void 0:e.transactionsToSign)==null?void 0:T.sessionId)===r&&(e.transactionsToSign=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=g(g({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var T,x,y,I,k,N,V,Mt;let{sessionId:r,status:o,errorMessage:i,transactionHash:l,serverTransaction:p,inTransit:d}=t.payload,m=(x=(T=e.signedTransactions)==null?void 0:T[r])==null?void 0:x.transactions;if(m!=null){e.signedTransactions[r].transactions=m.map(U=>U.hash===l?w(g(g({},p!=null?p:{}),U),{status:o,errorMessage:i,inTransit:d}):U);let Ee=(I=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:I.every(U=>yt(U.status)),le=(N=(k=e.signedTransactions[r])==null?void 0:k.transactions)==null?void 0:N.some(U=>ht(U.status)),Ke=(Mt=(V=e.signedTransactions[r])==null?void 0:V.transactions)==null?void 0:Mt.every(U=>Do(U.status));Ee&&(e.signedTransactions[r].status="success"),le&&(e.signedTransactions[r].status="fail"),Ke&&(e.signedTransactions[r].status="invalid")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=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},updateSignedTransactionsCustomTransactionInformation:(e,t)=>{let{sessionId:r,customTransactionInformationOverrides:o}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].customTransactionInformation=g(g({},e.signedTransactions[r].customTransactionInformation),o))}},extraReducers:e=>{e.addCase(b,()=>Be),e.addCase(Fo.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((d,[m,T])=>{let x=new Date(m),y=new Date;return y.setHours(y.getHours()+5),y-x>0||(d[m]=T),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:$u,updateSignedTransactions:Vu,setTransactionsToSign:Gu,clearAllTransactionsToSign:Hu,clearAllSignedTransactions:qu,clearSignedTransaction:zu,clearTransactionToSign:ju,setSignTransactionsError:Ku,setSignTransactionsCancelMessage:Yu,moveTransactionsToSignedState:Xu,updateSignedTransactionsCustomTransactionInformation:Zu}=Mo.actions,xt=Mo.reducer});var Bo,vr,Uo,td,rd,nd,od,wt,At=h(()=>{"use strict";n();Bo=require("@reduxjs/toolkit");O();vr={},Uo=(0,Bo.createSlice)({name:"batchTransactionsSlice",initialState:vr,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>vr},extraReducers:e=>{e.addCase(b,()=>vr)}}),{setBatchTransactions:td,updateBatchTransactions:rd,clearBatchTransactions:nd,clearAllBatchTransactions:od}=Uo.actions,wt=Uo.reducer});var $o,Wo,Vo,Go,Ho,br=h(()=>{"use strict";n();$o=require("@reduxjs/toolkit");O();Wo={},Vo=(0,$o.createSlice)({name:"dappConfigSlice",initialState:Wo,reducers:{setDappConfig:(e,t)=>t.payload},extraReducers:e=>{e.addCase(b,()=>Wo)}}),{setDappConfig:Go}=Vo.actions,Ho=Vo.reducer});var te=h(()=>{"use strict";n();st();Oe();lt();Me();dt();gt();Tt();St();At();br()});var Pr=h(()=>{"use strict";n()});var oi,xa,Sa,Te,Rt=h(()=>{"use strict";n();oi=require("@reduxjs/toolkit");Pr();st();At();br();Oe();lt();Me();dt();gt();Tt();St();xa={["account"]:it,["dappConfig"]:Ho,["loginInfo"]:at,["modals"]:ct,["networkConfig"]:pt,["signedMessageInfo"]:ut,["toasts"]:mt,["transactionsInfo"]:ft,["transactions"]:xt,["batchTransactions"]:wt},Sa=(e={})=>(0,oi.combineReducers)(g(g({},xa),e)),Te=Sa});var ci={};pe(ci,{default:()=>Fa,sessionStorageReducers:()=>Rr});function ne(e,t=[]){return{key:e,version:1,storage:si.default,blacklist:t}}var _,ii,si,wa,Ue,Aa,va,ba,Ia,Ea,ka,Pa,Ra,Na,La,ai,Ca,Rr,Da,_a,Oa,Fa,li=h(()=>{"use strict";n();_=require("redux-persist"),ii=S(require("redux-persist/lib/storage")),si=S(require("redux-persist/lib/storage/session"));Rt();te();st();At();Oe();lt();Me();dt();gt();Tt();St();Pr();wa={persistReducersStorageType:"localStorage"},Ue={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Aa=ne(Ue["account"]),va=ne(Ue["loginInfo"]),ba=ne(Ue["modals"]),Ia=ne(Ue["networkConfig"]),Ea={2:e=>w(g({},e),{networkConfig:Fe})};ka=ne("sdk-dapp-transactionsInfo"),Pa=ne("sdk-dapp-transactions",["transactionsToSign"]),Ra=ne("sdk-dapp-batchTransactions",["batchTransactions"]),Na=ne("sdk-dapp-toasts"),La=ne("sdk-dapp-signedMessageInfo"),ai={key:"sdk-dapp-store",version:2,storage:ii.default,whitelist:Object.keys(Ue),migrate:(0,_.createMigrate)(Ea,{debug:!1})},Ca=w(g({},ai),{whitelist:[]}),Rr={["toasts"]:(0,_.persistReducer)(Na,mt),["transactions"]:(0,_.persistReducer)(Pa,xt),["transactionsInfo"]:(0,_.persistReducer)(ka,ft),["batchTransactions"]:(0,_.persistReducer)(Ra,wt),["signedMessageInfo"]:(0,_.persistReducer)(La,ut)},Da=w(g({},Rr),{["account"]:(0,_.persistReducer)(Aa,it),["loginInfo"]:(0,_.persistReducer)(va,at),["modals"]:(0,_.persistReducer)(ba,ct),["networkConfig"]:(0,_.persistReducer)(Ia,pt)}),_a=wa.persistReducersStorageType==="localStorage",Oa=_a?(0,_.persistReducer)(ai,Te(Rr)):(0,_.persistReducer)(Ca,Te(Da)),Fa=Oa});var pi={};pe(pi,{default:()=>Ma});var Ma,ui=h(()=>{"use strict";n();Rt();Ma=Te()});var di={};pe(di,{default:()=>Ua});var B,Ba,Ua,mi=h(()=>{"use strict";n();B=require("redux-persist"),Ba=[B.FLUSH,B.REHYDRATE,B.PAUSE,B.PERSIST,B.PURGE,B.REGISTER],Ua=Ba});var Ti={};pe(Ti,{default:()=>fi});function fi(e){return(0,gi.persistStore)(e)}var gi,yi=h(()=>{"use strict";n();gi=require("redux-persist")});var zc={};pe(zc,{AppInitializer:()=>qc,useAppInitializer:()=>Ji});module.exports=Re(zc);n();var Z=require("react"),Zi=require("@multiversx/sdk-core/out");n();n();n();var Ac=S(require("axios"));n();n();te();n();var qo=S(require("lodash.isequal")),vt=require("reselect"),f=(0,vt.createSelectorCreator)(vt.defaultMemoize,qo.default);var Y=e=>e.account,ve=f(Y,e=>e.address),bt=f(Y,ve,(e,t)=>t in e.accounts?e.accounts[t]:ot),zo=f(Y,bt,(e,t)=>{let i=e,{accounts:r}=i,o=Pe(i,["accounts"]);return w(g({},o),{address:t.address,account:t})}),vd=f(bt,e=>e.balance),ua=f(bt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),bd=f(Y,e=>e.shard),Id=f(Y,e=>e.ledgerAccount),Ed=f(Y,e=>e.walletConnectAccount),kd=f(Y,e=>e.isAccountLoading),Pd=f(Y,e=>e.accountLoadingError),Rd=f(Y,e=>e.websocketEvent),Nd=f(Y,e=>e.websocketBatchEvent);n();var da=e=>e.dappConfig,Dd=f(da,e=>e.shouldUseWebViewProvider);n();var re=e=>e.loginInfo,Md=f(re,e=>e.loginMethod),jo=f(re,ve,(e,t)=>Boolean(t)),Bd=f(re,e=>e.walletConnectLogin),Ud=f(re,e=>e.ledgerLogin),Ko=f(re,e=>e.walletLogin),Yo=f(re,e=>e.isLoginSessionInvalid),Wd=f(re,e=>e.tokenLogin),$d=f(re,e=>e.logoutRoute),Vd=f(re,e=>e.isWalletConnectV2Initialized);n();var Xo=e=>e.modals,qd=f(Xo,e=>e.txSubmittedModal),zd=f(Xo,e=>e.notificationModal);n();var ce=e=>e.networkConfig,Yd=f(ce,e=>e.chainID),Xd=f(ce,e=>e.network.walletConnectBridgeAddress),Zd=f(ce,e=>e.network.walletConnectV2RelayAddress),Jd=f(ce,e=>e.network.walletConnectV2ProjectId),Qd=f(ce,e=>e.network.walletConnectV2Options),em=f(ce,e=>e.network.walletConnectDeepLink),fe=f(ce,e=>e.network),Zo=f(fe,e=>e.apiAddress),Jo=f(fe,e=>e.explorerAddress),tm=f(fe,e=>{var t;return(t=e.customWalletAddress)!=null?t:e.walletAddress}),rm=f(fe,e=>e.xAliasAddress),nm=f(fe,e=>e.egldLabel);n();var It=e=>e.signedMessageInfo,sm=f(It,e=>e.isSigning),am=f(It,e=>e.errorMessage),cm=f(It,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),lm=f(It,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var Qo=e=>e.toasts,dm=f(Qo,e=>e.customToasts),mm=f(Qo,e=>e.transactionToasts);n();te();var ei={errorMessage:hr,successMessage:xr,processingMessage:Sr},ma=e=>e.transactionsInfo,ym=f(ma,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||ei);n();n();var X=require("@multiversx/sdk-core");A();n();var Er=require("@multiversx/sdk-core/out");n();n();function Ir(e){try{let t=atob(e),r=btoa(t),o=s.Buffer.from(e,"base64").toString(),i=s.Buffer.from(o).toString("base64"),l=e===r||r.startsWith(e),p=e===i||i.startsWith(e);if(l&&p)return!0}catch(t){return!1}return!1}n();n();n();n();var ti=e=>{let t=e!=null?e:"";return Ir(t)?Er.TransactionPayload.fromEncoded(t):new Er.TransactionPayload(t)};n();A();var Et=({data:e,onlySetGuardian:t})=>e?t?e.startsWith("SetGuardian"):Object.values(Zt).some(r=>e.startsWith(r)):!1;function kr(e){var o,i,l;let t=g({},e);Et({data:t.data,onlySetGuardian:!0})&&(delete t.senderUsername,delete t.receiverUsername);let r=new X.Transaction(g(g(w(g(w(g({value:t.value.valueOf(),data:ti(t.data),nonce:t.nonce.valueOf(),receiver:new X.Address(t.receiver)},t.receiverUsername?{receiverUsername:t.receiverUsername}:{}),{sender:new X.Address(t.sender)}),t.senderUsername?{senderUsername:t.senderUsername}:{}),{gasLimit:(o=t.gasLimit.valueOf())!=null?o:rr,gasPrice:(i=t.gasPrice.valueOf())!=null?i:nr,chainID:t.chainID.valueOf(),version:new X.TransactionVersion((l=t.version)!=null?l:qn)}),t.options?{options:new X.TransactionOptions(t.options)}:{}),t.guardian?{guardian:new X.Address(t.guardian)}:{}));return t.guardianSignature&&r.applyGuardianSignature(s.Buffer.from(t.guardianSignature,"hex")),t.signature&&r.applySignature(s.Buffer.from(t.signature,"hex")),r}n();n();A();n();n();var Nr=require("@reduxjs/toolkit"),wi=require("react-redux/lib/utils/Subscription");te();n();var ri=S(require("lodash.throttle"));A();te();dr();Ne();Ae();var Ta=[tt],kt=!1,ya=(0,ri.default)(()=>{De(Ce())},5e3),ni=e=>t=>r=>{if(Ta.includes(r.type))return t(r);let o=e.getState(),i=K.local.getItem($.loginExpiresAt);if(!Boolean(o==null?void 0:o.account.address))return t(r);if(i==null)return De(Ce());let p=Date.now();return i-p<0&&!kt?setTimeout(()=>{kt=!0,e.dispatch(ao())},1e3):(kt&&(kt=!1),ya()),t(r)};n();n();function Pt(){return typeof sessionStorage!="undefined"}var hi=Pt()?(li(),Re(ci)).default:(ui(),Re(pi)).default,xi=Pt()?(mi(),Re(di)).default:[],Si=Pt()?(yi(),Re(Ti)).default:e=>e;Rt();var P=(0,Nr.configureStore)({reducer:hi,middleware:e=>e({serializableCheck:{ignoredActions:[...xi,ur.type,pr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(ni)}),Ai=(0,wi.createSubscription)(P),Eg=Si(P),kg=(0,Nr.configureStore)({reducer:Te});n();n();var $a=require("@multiversx/sdk-core/out");n();A();n();var bi=require("@multiversx/sdk-core");D();n();var vi=require("@multiversx/sdk-core");function Va(e){try{let t=new vi.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function We(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&Va(e)}n();n();n();var Ga=require("@multiversx/sdk-core"),Ha=S(require("bignumber.js"));W();n();n();n();var Lr="dapp/config";n();n();n();n();C();n();n();C();n();n();n();var Xa=S(require("bignumber.js"));A();n();var Ya=require("@multiversx/sdk-core"),_r=S(require("bignumber.js"));A();n();var ja=S(require("bignumber.js"));n();_r.default.config({ROUNDING_MODE:_r.default.ROUND_FLOOR});n();n();n();A();n();n();n();n();A();n();A();n();var Za=require("@multiversx/sdk-core");A();n();var Ve=require("@multiversx/sdk-core"),Qa=S(require("bignumber.js"));A();n();n();var Ja=S(require("bignumber.js"));A();n();A();n();n();n();n();n();n();A();n();A();n();A();n();C();var tc=["reDelegateRewards","claimRewards","unBond"],rc=["wrapEgld","unwrapEgld"],nc=["unStake"],oc=["unDelegate"];n();n();n();A();n();var ac=S(require("bignumber.js"));n();n();C();n();var lc=S(require("bignumber.js"));n();n();n();n();var uc=S(require("bignumber.js"));D();n();n();n();n();W();n();var gc=require("@multiversx/sdk-web-wallet-provider");A();n();var mc=S(require("qs"));n();n();n();n();n();var Ge=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined";var F=()=>{if(!Ge())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:t,hash:r,origin:o,href:i,search:l}}=window;return{pathname:t,hash:r,origin:o,href:i,search:l}};var Mr=(e="")=>{let t=F(),r=e.startsWith("http")||e.startsWith("www.");return!t.origin||e.startsWith(t.origin)||r?e:`${t.origin}/${e.replace("/","")}`};n();n();var ex={search:Ge()?window.location.search:"",removeParams:[]};n();n();n();n();C();n();n();n();var fc=S(require("linkifyjs"));n();A();n();var Tc=S(require("bignumber.js"));n();D();n();n();W();n();W();n();n();n();C();n();C();n();var yc=S(require("bignumber.js"));A();C();n();C();n();var Ni=require("react");D();n();n();C();n();n();var hc=require("@multiversx/sdk-core/out"),xc=S(require("bignumber.js"));C();n();D();n();n();D();var KS=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Li=require("react");D();n();var wc=require("react");C();var rw=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Ar();n();var Ct=e=>e.transactions,He=f(Ct,e=>e.signedTransactions),zw=f(Ct,e=>e.signTransactionsError),jw=f(Ct,e=>e.signTransactionsCancelMessage),Dt=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),Kw=f(He,Dt(Co)),Yw=f(He,Dt(yt)),Xw=f(He,Dt(ht)),Zw=f(He,Dt(_o)),Jw=f(Ct,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:w(g({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>kr(r)))||[]})}),Qw=f(He,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});n();var vc=S(require("axios"));ge();n();A();n();var bc=S(require("axios"));n();var Ec=S(require("axios"));n();n();var kc=S(require("axios"));n();var Pc=S(require("axios"));n();n();n();n();n();var Di=require("@lifeomic/axios-fetch"),Br=S(require("axios")),Ur=(0,Di.buildAxiosFetch)(Br.default),Wr=(e,t)=>v(void 0,null,function*(){if(!e.ok)throw new Error(`HTTP error! Status: ${e.status}`);let o=e.clone().json(),[i]=yield Promise.all([o]);return{data:i,status:e.status,statusText:e.statusText,headers:e.headers,config:t}});function Rc(e,t,r){return v(this,null,function*(){try{let o=yield Ur(e,g({method:"POST",body:t?JSON.stringify(t):void 0,headers:g({"Content-Type":"application/json"},(r==null?void 0:r.headers)||{})},r));return Wr(o,r)}catch(o){throw console.error("Fetch Error:",o),o}})}function Nc(e,t){return v(this,null,function*(){try{let r=yield Ur(e,t);if(!r.ok)throw new Error(`HTTP error! Status: ${r.status}`);return Wr(r,t)}catch(r){throw console.error("Fetch Error:",r),r}})}function Lc(e,t,r){return v(this,null,function*(){try{let o=yield Ur(e,g({method:"PATCH",body:t?JSON.stringify(t):void 0,headers:(r==null?void 0:r.headers)||{}},r));if(!o.ok)throw new Error(`HTTP error! Status: ${o.status}`);return Wr(o,r)}catch(o){throw console.error("Fetch Error:",o),o}})}var qe=Br.default.create();qe.get=Nc;qe.post=Rc;qe.patch=Lc;n();n();var Cc=S(require("axios"));n();var Dc=S(require("swr"));n();n();n();n();n();ge();n();var _i=S(require("axios"));function Vr(e){return v(this,null,function*(){let t=`${e}/${Lr}`;try{let{data:o}=yield _i.default.get(t);if(o!=null){let i="egldDenomination";if(i in o){let r=o,{[i]:l,decimals:p}=r,d=Pe(r,[Ut(i),"decimals"]);return w(g({},d),{decimals:l,digits:p})}return o}}catch(o){console.error("error fetching configuration for ",t)}return null})}n();var Oc=S(require("axios"));n();ge();n();ge();n();n();n();n();var Mc=S(require("axios"));n();ge();n();n();var Oi=require("react"),be=require("react-redux");var Bc={store:P,subscription:Ai},Gr=(0,Oi.createContext)(Bc),Ab=(0,be.createStoreHook)(Gr),Fi=(0,be.createDispatchHook)(Gr),Ot=(0,be.createSelectorHook)(Gr);var Mi=()=>Ot(zo);te();Oe();Me();n();n();n();n();var Ui=require("@multiversx/sdk-extension-provider"),Wi=require("@multiversx/sdk-hw-provider"),$i=require("@multiversx/sdk-metamask-provider/out/metamaskProvider"),Vi=require("@multiversx/sdk-opera-provider"),Gi=require("@multiversx/sdk-web-wallet-provider");A();n();var Hr=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider");W();n();var Bi=Ie;var ze=e=>{switch(e==null?void 0:e.constructor){case Gi.WalletProvider:return"wallet";case Bi:return"walletconnectv2";case Wi.HWProvider:return"ledger";case Ui.ExtensionProvider:return"extension";case $i.MetamaskProvider:return"metamask";case Vi.OperaProvider:return"opera";case Hr.CrossWindowProvider:return"crossWindow";case Ie:return"";default:return"extra"}};var ie=e=>`Unable to perform ${e}, Provider not initialized`,Ie=class{init(){return Promise.resolve(!1)}login(t){throw new Error(ie(`login with options: ${t}`))}logout(t){throw new Error(ie(`logout with options: ${t}`))}getAddress(){throw new Error(ie("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(ie(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(ie(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(ie(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(ie(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(ie(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(ie(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},qr=new Ie;var Uc=qr;function se(){return Uc||qr}O();D();n();function Hi(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(r){}}}function qi(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=Wc(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let l=i[0],p=l.replace(/(.)\/+$/,"$1"),d=i.slice(1);return{params:o.reduce((T,x,y)=>{if(x==="*"){let I=d[y]||"";p=l.slice(0,l.length-I.length).replace(/(.)\/+$/,"$1")}return T[x]=$c(d[y]||"",x),T},{}),pathname:l,pathnameBase:p,pattern:e}}function Wc(e,t=!1,r=!0){Hi(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(p,d)=>(o.push(d),"([^\\/]+)"));return e.endsWith("*")?(o.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i+=r?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(i,t?void 0:"i"),o]}function $c(e,t){try{return decodeURIComponent(e)}catch(r){return Hi(!1,`The value for the URL param "${t}" will not be decoded because the string "${e}" is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),e}}n();n();var zi=()=>{let{search:e}=F(),t=new URLSearchParams(e),r=Object.fromEntries(t),o=r==null?void 0:r.address;return We(o)?o:null};n();n();n();function ji(){let e=se();return ze(e)}n();W();n();function je(e){return ji()===e}function Ft(){let e=P.getState(),t=se(),r=ve(e),o=jo(e),i=Ko(e);if(!t)throw"provider not initialized";return je("ledger")&&o?new Promise(l=>{l(r)}):!je("")&&!je("wallet")&&!je("extra")?t.getAddress():new Promise(l=>{let p=zi();i!=null&&p&&l(p),o&&l(r),l("")})}n();n();var Ki=()=>{let{search:e}=F(),t=new URLSearchParams(e),r=Object.fromEntries(t);return r==null?void 0:r.accessToken};n();O();D();n();te();n();te();n();var Yi=require("@multiversx/sdk-core");D();gr();Ne();Ae();var Xi=({callbackUrl:e,onRedirect:t})=>{typeof t=="function"?t(e):e&&mr({url:e})},Gc=e=>{let t=K.local.getItem($.logoutEvent),{data:r}=t?JSON.parse(t):{data:e};e===r&&(K.local.setItem({key:$.logoutEvent,data:e,expires:0}),K.local.removeItem($.logoutEvent))},Hc=500;function zr(i,l){return v(this,arguments,function*(e,t,r=Boolean(Ki()),o={shouldBroadcastLogoutAcrossTabs:!0,hasConsentPopup:!1}){var N;let p="",d=se(),m=ze(d),T=m==="wallet",x=((N=d==null?void 0:d.isInitialized)==null?void 0:N.call(d))===!0;if(r&&(d==null?void 0:d.relogin)!=null)return d.relogin();if(o.shouldBroadcastLogoutAcrossTabs)try{p=yield Ft(),Gc(p)}catch(V){console.error("error fetching logout address",V)}let y=Mr(e),I=F(),k=new URL(decodeURIComponent(y)).pathname;if((qi(I.pathname,k)||T&&x)&&go(),!p&&!x)return Xi({callbackUrl:y,onRedirect:t});try{if(P.dispatch(b()),T)return setTimeout(()=>{d.logout({callbackUrl:y})},Hc);o.hasConsentPopup&&m==="crossWindow"&&d.setShouldShowConsentPopup(!0),yield d.logout({callbackUrl:y})}catch(V){console.error("Logging out error:",V)}finally{T||Xi({callbackUrl:y,onRedirect:t})}})}var Ji=({customNetworkConfig:e={},environment:t,dappConfig:r})=>{let[o,i]=(0,Z.useState)(!1),l=Mi(),p=Ot(Yo),d=(0,Z.useMemo)(()=>r,[]),m=d==null?void 0:d.logoutRoute,{address:T,publicKey:x}=l,y=Fi();function I(){return v(this,null,function*(){let N=!(e!=null&&e.skipFetchFromServer),V=e==null?void 0:e.apiAddress,Ee=t in ae?ae[t]:{},le=g(g(g({},Fe),Ee),e),Ke=w(g({},le),{apiTimeout:String(le.apiTimeout),walletConnectBridgeAddresses:le.walletConnectBridgeAddresses||[],walletConnectV2RelayAddresses:"walletConnectV2RelayAddresses"in le?le.walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"]});if(N){let U="apiAddress"in Ee?Ee.apiAddress:"",jr=yield Vr(V||U);if(jr!=null){let Kr=g(g(g({},Ke),jr),e);y(fr(w(g({},Kr),{apiTimeout:String(Kr.apiTimeout)})));return}}y(fr(Ke))})}function k(){return v(this,null,function*(){d&&y(Go(d)),y(co(m)),yield I(),i(!0)})}return(0,Z.useEffect)(()=>{T&&new Zi.Address(T).hex()!==x&&zr(m)},[T,x,m]),(0,Z.useEffect)(()=>{k()},[e,t,d]),(0,Z.useEffect)(()=>{l.address&&p&&zr(m)},[p,l.address,m]),{initialized:o}};function qc({customNetworkConfig:e={},children:t,environment:r,dappConfig:o}){let[i,l]=(0,Z.useState)(!(o!=null&&o.isSSR)),{initialized:p}=Ji({customNetworkConfig:e,environment:r,dappConfig:o});return(0,Z.useEffect)(()=>{l(!0)},[]),i?p?t:null:t}0&&(module.exports={AppInitializer,useAppInitializer});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
|
-
import { CustomNetworkType,
|
|
3
|
-
import {
|
|
2
|
+
import { CustomNetworkType, IDappProvider, DappConfigType } from '../../types';
|
|
3
|
+
import { UseAppInitializerPropsType } from './../../wrappers/AppInitializer';
|
|
4
4
|
import { CustomComponentsType } from './CustomComponents';
|
|
5
5
|
export { DappConfigType };
|
|
6
6
|
export interface DappProviderPropsType {
|
|
7
7
|
children: React.ReactNode | ReactElement;
|
|
8
8
|
customNetworkConfig?: CustomNetworkType;
|
|
9
9
|
externalProvider?: IDappProvider;
|
|
10
|
-
environment: '
|
|
10
|
+
environment: UseAppInitializerPropsType['environment'];
|
|
11
11
|
customComponents?: CustomComponentsType;
|
|
12
12
|
dappConfig?: DappConfigType;
|
|
13
13
|
}
|