@multiversx/sdk-dapp 4.5.0 → 4.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UI/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/Pagination/Pagination.js +1 -1
- package/UI/Pagination/helpers/getPagination/getPagination.js +1 -1
- package/UI/Pagination/helpers/getPagination/getPagination.spec.js +1 -1
- package/UI/Pagination/helpers/getPagination/index.js +1 -1
- package/UI/Pagination/helpers/index.js +1 -1
- package/UI/Pagination/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/components/GasDetails/GasDetails.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/components/GasDetails/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/components/index.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/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/SignWithIframeModal/SignWithIframeModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithIframeModal/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/SignWithPasskeyModal/SignWithPasskeyModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithPasskeyModal/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/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/iframe/IframeLoginButton/IframeButton.js +1 -1
- package/UI/iframe/IframeLoginButton/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/passkey/PasskeyLoginButton/PasskeyLoginButton.js +1 -1
- package/UI/passkey/PasskeyLoginButton/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-Z3BHYWI2.js → chunk-2K2I7POW.js} +2 -2
- package/__chunks__/{chunk-YVDQRW6Z.js → chunk-2NDFZFFA.js} +2 -2
- package/__chunks__/{chunk-JQOAJCEE.js → chunk-2OMXS33B.js} +2 -2
- package/__chunks__/{chunk-NMQOTJVE.js → chunk-2UPRUAJD.js} +2 -2
- package/__chunks__/{chunk-5NLDE2M6.js → chunk-2WK27JLL.js} +2 -2
- package/__chunks__/{chunk-IU4XYDFL.js → chunk-35IMGEGS.js} +2 -2
- package/__chunks__/{chunk-753ZKERX.js → chunk-36J2YD36.js} +2 -2
- package/__chunks__/{chunk-E445ZLFG.js → chunk-3ASMFH3M.js} +2 -2
- package/__chunks__/chunk-3DLCJJT3.js +2 -0
- package/__chunks__/{chunk-XY2ADFOV.js → chunk-3FLBDMZL.js} +2 -2
- package/__chunks__/{chunk-23YQWJ53.js → chunk-3ITNC4BR.js} +2 -2
- package/__chunks__/{chunk-N2YFQIHN.js → chunk-3LI4G6J5.js} +2 -2
- package/__chunks__/{chunk-OMUZRB52.js → chunk-3LNZUSHQ.js} +2 -2
- package/__chunks__/{chunk-NW3NUEH4.js → chunk-3MH6BOK2.js} +2 -2
- package/__chunks__/{chunk-53MJS2UN.js → chunk-3OFQJ5EE.js} +2 -2
- package/__chunks__/{chunk-LYQHJMVE.js → chunk-3XJAG4WD.js} +2 -2
- package/__chunks__/{chunk-35DEXYGI.js → chunk-44CRUFPA.js} +2 -2
- package/__chunks__/{chunk-3WQ4IBE4.js → chunk-4AYROJTH.js} +2 -2
- package/__chunks__/{chunk-N6D4CBS3.js → chunk-4EMLN6H7.js} +2 -2
- package/__chunks__/{chunk-INLSUUDL.js → chunk-4FDCZ72Q.js} +2 -2
- package/__chunks__/{chunk-VPRAZBFT.js → chunk-4GTSITDA.js} +2 -2
- package/__chunks__/{chunk-BMQ2D6AI.js → chunk-4HDJTTN5.js} +2 -2
- package/__chunks__/{chunk-IFCVOGBC.js → chunk-4IRXMJL2.js} +2 -2
- package/__chunks__/{chunk-MC3NWM2P.js → chunk-4KDGJ5YP.js} +2 -2
- package/__chunks__/{chunk-WF2453OL.js → chunk-4NLJWHH4.js} +2 -2
- package/__chunks__/{chunk-WBYKDP4P.js → chunk-4QF3Q4BD.js} +2 -2
- package/__chunks__/{chunk-IPF5D5U6.js → chunk-4SU4BMTK.js} +2 -2
- package/__chunks__/{chunk-KXVWXU7X.js → chunk-4TYYEUKJ.js} +2 -2
- package/__chunks__/{chunk-VDKCS5XV.js → chunk-4VUQ6AJV.js} +2 -2
- package/__chunks__/{chunk-7MD6JYSE.js → chunk-4X4YGCNU.js} +2 -2
- package/__chunks__/{chunk-YC4PYJSV.js → chunk-4X7CLN37.js} +2 -2
- package/__chunks__/chunk-54HQEPKH.js +2 -0
- package/__chunks__/{chunk-CTZRMAIE.js → chunk-56WHADDT.js} +2 -2
- package/__chunks__/{chunk-SYNQCYKY.js → chunk-5AA4GXNY.js} +2 -2
- package/__chunks__/{chunk-WHY4HSMI.js → chunk-5EV3AWHZ.js} +2 -2
- package/__chunks__/chunk-5F4AET3X.js +2 -0
- package/__chunks__/{chunk-OMINC7E6.js → chunk-5JW5RYZG.js} +2 -2
- package/__chunks__/chunk-5OVPPTAT.js +2 -0
- package/__chunks__/{chunk-CBB3SAMO.js → chunk-5QQBGBO6.js} +2 -2
- package/__chunks__/{chunk-IAMOD6DB.js → chunk-5VZ37H4A.js} +2 -2
- package/__chunks__/{chunk-BLWQF7RV.js → chunk-66LBGFRZ.js} +2 -2
- package/__chunks__/chunk-6BIBC3R3.js +2 -0
- package/__chunks__/chunk-6G4W7Y3U.js +2 -0
- package/__chunks__/{chunk-YSH7GZ72.js → chunk-6PGMCNST.js} +2 -2
- package/__chunks__/{chunk-CAQE3LB5.js → chunk-6SJCQU3L.js} +2 -2
- package/__chunks__/{chunk-AO5NJUJ5.js → chunk-6USVZZ6Q.js} +2 -2
- package/__chunks__/{chunk-KIVUCBDI.js → chunk-6WFSCYTL.js} +2 -2
- package/__chunks__/{chunk-LLYCQY4F.js → chunk-6Z4IIJB3.js} +2 -2
- package/__chunks__/{chunk-5UWMFB5V.js → chunk-75CVQ6GE.js} +2 -2
- package/__chunks__/{chunk-CNJYC4ME.js → chunk-7M5GCSH6.js} +2 -2
- package/__chunks__/chunk-7SBQ3LEX.js +2 -0
- package/__chunks__/{chunk-OEYDXF7S.js → chunk-7UCDGHRA.js} +2 -2
- package/__chunks__/{chunk-XLZEJFGA.js → chunk-7ULKRQFD.js} +2 -2
- package/__chunks__/{chunk-FLHFOQWH.js → chunk-7XFQ6AIO.js} +2 -2
- package/__chunks__/{chunk-WRFRJHHT.js → chunk-7YK3453O.js} +2 -2
- package/__chunks__/chunk-AAHCQZFX.js +2 -0
- package/__chunks__/{chunk-4J7T3ITM.js → chunk-AB5HSFHR.js} +2 -2
- package/__chunks__/{chunk-YXCA6OWH.js → chunk-AD2G7ML2.js} +2 -2
- package/__chunks__/{chunk-UMMDHDDK.js → chunk-ADEFMXJL.js} +2 -2
- package/__chunks__/{chunk-S7A5K4N6.js → chunk-AFSN2BHB.js} +2 -2
- package/__chunks__/chunk-AIOEYTOG.js +2 -0
- package/__chunks__/chunk-AOBYVG7C.js +2 -0
- package/__chunks__/{chunk-QQBLDHHX.js → chunk-APCIKBV6.js} +2 -2
- package/__chunks__/{chunk-WVFNSSLI.js → chunk-APGVNXFV.js} +2 -2
- package/__chunks__/{chunk-ZCBY7D6F.js → chunk-ARM7CW7F.js} +2 -2
- package/__chunks__/{chunk-FDHEJ7TD.js → chunk-ATPOT5O4.js} +2 -2
- package/__chunks__/chunk-AW5DF4SB.js +2 -0
- package/__chunks__/chunk-B6SRZVD4.js +2 -0
- package/__chunks__/{chunk-7JHWHHOA.js → chunk-B6SZ3LU7.js} +2 -2
- package/__chunks__/{chunk-IN2RGX66.js → chunk-B75YSVLP.js} +2 -2
- package/__chunks__/{chunk-HZXRDHWZ.js → chunk-BECPO6EF.js} +2 -2
- package/__chunks__/{chunk-H36F2DC6.js → chunk-BF657KHL.js} +2 -2
- package/__chunks__/chunk-BGQFAV2J.js +2 -0
- package/__chunks__/chunk-BGT54OVS.js +2 -0
- package/__chunks__/{chunk-DPE6LMNH.js → chunk-BIUS2EVV.js} +2 -2
- package/__chunks__/{chunk-NT7GWM46.js → chunk-BJ5NMDKV.js} +2 -2
- package/__chunks__/{chunk-ZBMS25W3.js → chunk-BJ6C74OV.js} +2 -2
- package/__chunks__/{chunk-MTKIP56T.js → chunk-BLUCNNR2.js} +2 -2
- package/__chunks__/{chunk-THPXO2GZ.js → chunk-BPGX25LY.js} +2 -2
- package/__chunks__/{chunk-ZPLBE5I4.js → chunk-BU7GTULJ.js} +2 -2
- package/__chunks__/{chunk-G6RECRW4.js → chunk-BVOVWN5Y.js} +2 -2
- package/__chunks__/{chunk-AIS2COIW.js → chunk-BWGLODP6.js} +2 -2
- package/__chunks__/{chunk-GRQGQ3NE.js → chunk-BWX4676R.js} +2 -2
- package/__chunks__/chunk-BXKSPPIC.js +2 -0
- package/__chunks__/{chunk-2KKODEHE.js → chunk-CB4GEA4S.js} +2 -2
- package/__chunks__/chunk-CFRLFYAV.js +2 -0
- package/__chunks__/{chunk-P23Q3D4G.js → chunk-CGXJFVZM.js} +2 -2
- package/__chunks__/{chunk-7G3HPM22.js → chunk-CH3C53AO.js} +2 -2
- package/__chunks__/chunk-CINXL6S6.js +2 -0
- package/__chunks__/chunk-CMT2YLHS.js +2 -0
- package/__chunks__/{chunk-3DAQVHZA.js → chunk-COIOGDTJ.js} +2 -2
- package/__chunks__/{chunk-AWMNYB42.js → chunk-CPEXDCSU.js} +2 -2
- package/__chunks__/chunk-CQVG7IY4.js +2 -0
- package/__chunks__/{chunk-USAAXM5Q.js → chunk-CT2QI4K2.js} +2 -2
- package/__chunks__/{chunk-QTDF6V5P.js → chunk-CUGUE4LD.js} +2 -2
- package/__chunks__/chunk-CUKB5INY.js +2 -0
- package/__chunks__/{chunk-NLJWAMY7.js → chunk-CWN2QGRT.js} +2 -2
- package/__chunks__/{chunk-FYNDKXBZ.js → chunk-CX6KTHP5.js} +2 -2
- package/__chunks__/{chunk-X3JHZFAE.js → chunk-CX7KCL5H.js} +2 -2
- package/__chunks__/{chunk-QKFY3IKC.js → chunk-D3MHXO7L.js} +2 -2
- package/__chunks__/{chunk-4D6NBDW2.js → chunk-DDWRCCCZ.js} +2 -2
- package/__chunks__/{chunk-CJWOZ7WH.js → chunk-DG4FPIVJ.js} +2 -2
- package/__chunks__/{chunk-6XXPSZN5.js → chunk-DGEGNXMM.js} +2 -2
- package/__chunks__/chunk-DKU4VSVV.js +2 -0
- package/__chunks__/{chunk-YYHAWMRH.js → chunk-DM4BJXEM.js} +2 -2
- package/__chunks__/{chunk-UWNULMVI.js → chunk-DMULRVRA.js} +2 -2
- package/__chunks__/{chunk-7KAAWHQR.js → chunk-DRS3U275.js} +2 -2
- package/__chunks__/{chunk-H2LOTPFT.js → chunk-DZSMQIIA.js} +2 -2
- package/__chunks__/{chunk-BLDYFAMF.js → chunk-E6Q2Y3W3.js} +2 -2
- package/__chunks__/{chunk-KPLDAPRZ.js → chunk-E6TYN2RW.js} +2 -2
- package/__chunks__/{chunk-DQZ5XI37.js → chunk-EMLCTW7A.js} +2 -2
- package/__chunks__/{chunk-HKXLCM7L.js → chunk-EMVCPTHR.js} +2 -2
- package/__chunks__/{chunk-EREZSUUB.js → chunk-EO6HXDCR.js} +2 -2
- package/__chunks__/{chunk-OKHUJ6CT.js → chunk-EPVNC46A.js} +2 -2
- package/__chunks__/{chunk-ZYLKUSOM.js → chunk-EYQC3ENH.js} +2 -2
- package/__chunks__/{chunk-6UTDKIJQ.js → chunk-F3NQDSS7.js} +2 -2
- package/__chunks__/chunk-FC4AKO7M.js +2 -0
- package/__chunks__/{chunk-L2OZR2CY.js → chunk-FDIU3DMA.js} +2 -2
- package/__chunks__/{chunk-IHMIYIXV.js → chunk-FEFMKBHU.js} +2 -2
- package/__chunks__/{chunk-KZSL52ES.js → chunk-FIU4IYCF.js} +2 -2
- package/__chunks__/{chunk-C6OAICVO.js → chunk-FJ3NU4RP.js} +2 -2
- package/__chunks__/{chunk-R7PG4CX5.js → chunk-FZDOJFOW.js} +2 -2
- package/__chunks__/{chunk-OADCTH2V.js → chunk-G2JNPFUT.js} +2 -2
- package/__chunks__/chunk-G36Z3MYL.js +2 -0
- package/__chunks__/{chunk-HOTZHU6C.js → chunk-GDVUBIAA.js} +2 -2
- package/__chunks__/chunk-GEEKB72J.js +2 -0
- package/__chunks__/{chunk-SWUZLNZF.js → chunk-GFTHBT5S.js} +2 -2
- package/__chunks__/{chunk-OUI3PAS7.js → chunk-GGVRPC44.js} +2 -2
- package/__chunks__/{chunk-V45PX7SK.js → chunk-GI4FSMXP.js} +2 -2
- package/__chunks__/chunk-GIORI2OH.js +2 -0
- package/__chunks__/{chunk-VIIMPGHZ.js → chunk-GSEUOARU.js} +2 -2
- package/__chunks__/{chunk-RK4EFPVI.js → chunk-GXB2HDQT.js} +2 -2
- package/__chunks__/{chunk-6BWEAQYK.js → chunk-H2OAZP4M.js} +2 -2
- package/__chunks__/{chunk-OMEZRPYI.js → chunk-H3SVFYNB.js} +2 -2
- package/__chunks__/{chunk-KTHN7K4J.js → chunk-H6MUJD4E.js} +2 -2
- package/__chunks__/{chunk-5HE26PEM.js → chunk-HAQS3VTI.js} +2 -2
- package/__chunks__/{chunk-TFYCUHSH.js → chunk-HBPDRU2X.js} +2 -2
- package/__chunks__/{chunk-ORUY525X.js → chunk-HCSOTX7M.js} +2 -2
- package/__chunks__/{chunk-PIBSWY65.js → chunk-HJ365HGN.js} +2 -2
- package/__chunks__/{chunk-OB7A2DQB.js → chunk-HJS7UPLA.js} +2 -2
- package/__chunks__/{chunk-WT53PGGK.js → chunk-HNQE3MUU.js} +2 -2
- package/__chunks__/chunk-HU3KKNCO.js +2 -0
- package/__chunks__/chunk-HZG4VDTB.js +2 -0
- package/__chunks__/{chunk-D2FZ3AY6.js → chunk-IBRCVMB3.js} +2 -2
- package/__chunks__/{chunk-ONSQEJQ7.js → chunk-ICBJRFED.js} +2 -2
- package/__chunks__/{chunk-5GOVGL5F.js → chunk-IOB7ZE6S.js} +2 -2
- package/__chunks__/{chunk-U6ZMO2NF.js → chunk-IPFJF54U.js} +2 -2
- package/__chunks__/{chunk-K2REVJW5.js → chunk-IS5TGR57.js} +2 -2
- package/__chunks__/{chunk-MSC3X6UJ.js → chunk-IY32SQ2N.js} +2 -2
- package/__chunks__/{chunk-4EH75OYN.js → chunk-IZ326AFU.js} +2 -2
- package/__chunks__/{chunk-45IK7E3E.js → chunk-J2WDVSN3.js} +2 -2
- package/__chunks__/{chunk-EOADUL42.js → chunk-J3YUJE2R.js} +2 -2
- package/__chunks__/{chunk-VHE5W3LK.js → chunk-J4F5N3ZT.js} +2 -2
- package/__chunks__/{chunk-HRI3IU3O.js → chunk-J5V3BK3K.js} +2 -2
- package/__chunks__/{chunk-XLIHKENR.js → chunk-JEEIA3PW.js} +2 -2
- package/__chunks__/{chunk-2ILBLRYP.js → chunk-JICIOSCH.js} +2 -2
- package/__chunks__/{chunk-PUKSSL4B.js → chunk-JKZAYYS7.js} +2 -2
- package/__chunks__/{chunk-AWTCUL56.js → chunk-JLILH67N.js} +2 -2
- package/__chunks__/{chunk-KNR666GN.js → chunk-JNLAZTS4.js} +2 -2
- package/__chunks__/{chunk-NBRXKEWE.js → chunk-JOWEGCWE.js} +2 -2
- package/__chunks__/chunk-JQJQ7LHF.js +2 -0
- package/__chunks__/{chunk-OWQN4SST.js → chunk-JQXPZ6QT.js} +2 -2
- package/__chunks__/chunk-JR45NQ66.js +2 -0
- package/__chunks__/{chunk-CNMPGSI4.js → chunk-K2S5LXYA.js} +2 -2
- package/__chunks__/{chunk-4UI7AJUB.js → chunk-K2X5ELXZ.js} +2 -2
- package/__chunks__/{chunk-2TNJWI6O.js → chunk-K7ZPCXVP.js} +2 -2
- package/__chunks__/chunk-KBJOYGV3.js +2 -0
- package/__chunks__/{chunk-CLMEZF3T.js → chunk-KIAMT7PX.js} +2 -2
- package/__chunks__/{chunk-C6FWOIAJ.js → chunk-KLOCMESI.js} +2 -2
- package/__chunks__/chunk-KR4AUSGR.js +2 -0
- package/__chunks__/{chunk-AUTX2AU4.js → chunk-KSQBMD6F.js} +2 -2
- package/__chunks__/{chunk-2Q2YI5BP.js → chunk-KUWKJTM3.js} +2 -2
- package/__chunks__/{chunk-PB26C735.js → chunk-KWB3CSYB.js} +2 -2
- package/__chunks__/{chunk-AUV2YMMV.js → chunk-KWQEBYAL.js} +2 -2
- package/__chunks__/chunk-KYNY6J5Y.js +2 -0
- package/__chunks__/chunk-LE6GU2X4.js +2 -0
- package/__chunks__/{chunk-CZU5I22H.js → chunk-LIELXMI3.js} +2 -2
- package/__chunks__/chunk-LK3GLF7O.js +2 -0
- package/__chunks__/{chunk-XJUJRMW2.js → chunk-LLGTKTPK.js} +2 -2
- package/__chunks__/{chunk-A2IGIV7E.js → chunk-LLZNCZE6.js} +2 -2
- package/__chunks__/{chunk-W4VJ6KST.js → chunk-LNSE5XNM.js} +2 -2
- package/__chunks__/{chunk-KEG5V3YK.js → chunk-LOQ76KHF.js} +2 -2
- package/__chunks__/chunk-LQBB552V.js +2 -0
- package/__chunks__/chunk-LS7ZYS4M.js +2 -0
- package/__chunks__/{chunk-MN6IA7DE.js → chunk-LZWGCXQS.js} +2 -2
- package/__chunks__/{chunk-DB3X3DBS.js → chunk-M3EARCD3.js} +2 -2
- package/__chunks__/{chunk-LAHEZYF6.js → chunk-M5JEB3JX.js} +2 -2
- package/__chunks__/chunk-M5OD2X65.js +2 -0
- package/__chunks__/{chunk-SBAXVPVV.js → chunk-MDG6MATJ.js} +2 -2
- package/__chunks__/chunk-MELVLLHR.js +2 -0
- package/__chunks__/{chunk-ISO2AWEE.js → chunk-MGO2OJJR.js} +2 -2
- package/__chunks__/{chunk-4SDU6RPN.js → chunk-MJQLD33A.js} +2 -2
- package/__chunks__/chunk-MNWCBW5Y.js +2 -0
- package/__chunks__/{chunk-MYKHD6TD.js → chunk-MR4F7VN3.js} +2 -2
- package/__chunks__/{chunk-QAHRORZG.js → chunk-MTUOEG4L.js} +2 -2
- package/__chunks__/chunk-MXGXIZED.js +2 -0
- package/__chunks__/{chunk-BXJIXZFJ.js → chunk-MYCI2XL6.js} +2 -2
- package/__chunks__/{chunk-BSTV7EXM.js → chunk-N3BJ42WD.js} +2 -2
- package/__chunks__/{chunk-FBN5LHMU.js → chunk-N3S4PVNK.js} +2 -2
- package/__chunks__/{chunk-ZTQDAQIB.js → chunk-N7SQSNMP.js} +2 -2
- package/__chunks__/chunk-NDVYP4GL.js +2 -0
- package/__chunks__/{chunk-B5J4WVB2.js → chunk-NGKIF246.js} +2 -2
- package/__chunks__/chunk-NIGPIPSW.js +2 -0
- package/__chunks__/chunk-NJMDHZIK.js +2 -0
- package/__chunks__/{chunk-NPJOOCZ7.js → chunk-NMKEUZS6.js} +2 -2
- package/__chunks__/{chunk-LHPFWKUO.js → chunk-NO5JSFSP.js} +2 -2
- package/__chunks__/{chunk-67WBRVY5.js → chunk-NRGXWLE3.js} +2 -2
- package/__chunks__/chunk-NT56YZIX.js +2 -0
- package/__chunks__/{chunk-HTJUWOTH.js → chunk-NTXARDKH.js} +2 -2
- package/__chunks__/chunk-NXPG6E4S.js +2 -0
- package/__chunks__/{chunk-I23RFGCU.js → chunk-NXSIIFLS.js} +2 -2
- package/__chunks__/{chunk-T6BGDGI4.js → chunk-O2K6SRXS.js} +2 -2
- package/__chunks__/{chunk-WCES5BZL.js → chunk-O2WWOVAA.js} +2 -2
- package/__chunks__/{chunk-ZX34BIQY.js → chunk-O77TEM5H.js} +2 -2
- package/__chunks__/{chunk-6CHMDMOI.js → chunk-OBKZA6WE.js} +2 -2
- package/__chunks__/{chunk-PHMNM5J6.js → chunk-ODFJ4D3P.js} +2 -2
- package/__chunks__/{chunk-WH3DQSON.js → chunk-OEMMQBND.js} +2 -2
- package/__chunks__/{chunk-D6GAS366.js → chunk-OGWPFO2E.js} +2 -2
- package/__chunks__/{chunk-5YBHFKIF.js → chunk-OJJCYG3B.js} +2 -2
- package/__chunks__/{chunk-OTLA6FLL.js → chunk-OJXKCUI6.js} +2 -2
- package/__chunks__/{chunk-L6HAFP2H.js → chunk-OKDLNCLS.js} +2 -2
- package/__chunks__/{chunk-QZT2SFMM.js → chunk-OLTIGYTD.js} +2 -2
- package/__chunks__/chunk-OLXMTV3K.js +2 -0
- package/__chunks__/{chunk-5BDF4YMO.js → chunk-ORKOMULF.js} +2 -2
- package/__chunks__/{chunk-AB3PZCYE.js → chunk-OUQUVMP5.js} +2 -2
- package/__chunks__/{chunk-SXKWSF42.js → chunk-OVQY55MU.js} +2 -2
- package/__chunks__/{chunk-FKXDLGWC.js → chunk-P3OIVL6D.js} +2 -2
- package/__chunks__/chunk-P3WBUHDD.js +2 -0
- package/__chunks__/{chunk-HGPBGLTH.js → chunk-P563BKWF.js} +2 -2
- package/__chunks__/{chunk-AFCV3QID.js → chunk-PDA5OY3Q.js} +2 -2
- package/__chunks__/{chunk-LBWDM2WS.js → chunk-PG2EUCFN.js} +2 -2
- package/__chunks__/{chunk-YG27VNDE.js → chunk-PIW74OD5.js} +2 -2
- package/__chunks__/{chunk-BX5HH547.js → chunk-PNHQ2N3L.js} +2 -2
- package/__chunks__/{chunk-H5T2IEFD.js → chunk-PPIRVTWC.js} +2 -2
- package/__chunks__/{chunk-TKVDUKJ5.js → chunk-PRFA6SXP.js} +2 -2
- package/__chunks__/{chunk-TGYN752O.js → chunk-PRSAX766.js} +2 -2
- package/__chunks__/{chunk-BHSNVNQO.js → chunk-PSWY5DES.js} +2 -2
- package/__chunks__/{chunk-YG7UA67K.js → chunk-Q4F7QCMB.js} +2 -2
- package/__chunks__/{chunk-W4GHVZZI.js → chunk-Q74F5K2H.js} +2 -2
- package/__chunks__/{chunk-SZEUI4OR.js → chunk-Q74FEJZV.js} +2 -2
- package/__chunks__/chunk-Q76COMSQ.js +2 -0
- package/__chunks__/{chunk-ON5LP6JP.js → chunk-Q7VFYYE6.js} +2 -2
- package/__chunks__/chunk-QC2HODGU.js +2 -0
- package/__chunks__/{chunk-3VM4WTSL.js → chunk-QCXE5MDH.js} +2 -2
- package/__chunks__/{chunk-GUYURVJK.js → chunk-QG55NZL3.js} +2 -2
- package/__chunks__/{chunk-BC3IQLZJ.js → chunk-QGOMOCS5.js} +2 -2
- package/__chunks__/{chunk-ZTEUU5H5.js → chunk-QOD57VGA.js} +2 -2
- package/__chunks__/{chunk-AFWXD6D2.js → chunk-QU32YKRN.js} +2 -2
- package/__chunks__/{chunk-IIIUTIXU.js → chunk-QVC437DJ.js} +2 -2
- package/__chunks__/{chunk-US37PFYF.js → chunk-QVN57DZM.js} +2 -2
- package/__chunks__/{chunk-3S44WZ6S.js → chunk-QYYRMYZZ.js} +2 -2
- package/__chunks__/{chunk-DGJNZAH7.js → chunk-R5JHOYMG.js} +2 -2
- package/__chunks__/{chunk-XHESHVFW.js → chunk-RKOYLBHX.js} +2 -2
- package/__chunks__/{chunk-5RMZNCGN.js → chunk-RLJQFYZO.js} +2 -2
- package/__chunks__/{chunk-YLCNB656.js → chunk-RNKMCLKC.js} +2 -2
- package/__chunks__/{chunk-CDDW2IBX.js → chunk-RNR7TM4C.js} +2 -2
- package/__chunks__/{chunk-Y5MSFSID.js → chunk-RPLMYIHO.js} +2 -2
- package/__chunks__/{chunk-I3KUOXAQ.js → chunk-RV5MR57H.js} +2 -2
- package/__chunks__/{chunk-GCIT5EQL.js → chunk-RWM2DX2N.js} +2 -2
- package/__chunks__/{chunk-QTEMRGTF.js → chunk-RWRE7J6C.js} +2 -2
- package/__chunks__/{chunk-IIVIW4IU.js → chunk-S35OO5TF.js} +2 -2
- package/__chunks__/chunk-S3LHPV2C.js +2 -0
- package/__chunks__/{chunk-EIOQ4AZU.js → chunk-S42LSTGT.js} +2 -2
- package/__chunks__/{chunk-AUCWY6HH.js → chunk-S44ARFAW.js} +2 -2
- package/__chunks__/{chunk-OWLKFN3L.js → chunk-S67USAUD.js} +2 -2
- package/__chunks__/{chunk-BVHM5RCS.js → chunk-SITMCCOG.js} +2 -2
- package/__chunks__/{chunk-747W4CCW.js → chunk-SP4WXLGN.js} +2 -2
- package/__chunks__/{chunk-QAILRCL2.js → chunk-SUFG3P2I.js} +2 -2
- package/__chunks__/{chunk-7O6FTRXC.js → chunk-T3ZE2WFR.js} +2 -2
- package/__chunks__/{chunk-K6Z6FB2Z.js → chunk-T6XTMCQC.js} +2 -2
- package/__chunks__/{chunk-TRHXE2FH.js → chunk-TC2WVD6T.js} +2 -2
- package/__chunks__/chunk-TCEQHR33.js +2 -0
- package/__chunks__/{chunk-J55FTVT5.js → chunk-TDHAGKBY.js} +2 -2
- package/__chunks__/chunk-TGYMSW3J.js +2 -0
- package/__chunks__/{chunk-HYAP5S7Y.js → chunk-TIJP4PS7.js} +2 -2
- package/__chunks__/chunk-TOKNON6B.js +2 -0
- package/__chunks__/{chunk-2YJ77Q6U.js → chunk-TPTPBUTP.js} +2 -2
- package/__chunks__/{chunk-2AFSONSG.js → chunk-TR2WXKZY.js} +2 -2
- package/__chunks__/{chunk-H466TX27.js → chunk-TUQKHHOA.js} +2 -2
- package/__chunks__/{chunk-J2Y6GBC2.js → chunk-TZ5PMIJ3.js} +2 -2
- package/__chunks__/{chunk-22SSNQZC.js → chunk-TZIVVSS6.js} +2 -2
- package/__chunks__/{chunk-N77RIXSH.js → chunk-U2KLQAGM.js} +2 -2
- package/__chunks__/{chunk-TAQCSBSJ.js → chunk-U32PX6NF.js} +2 -2
- package/__chunks__/{chunk-2L4SILFQ.js → chunk-U3XBUPXD.js} +2 -2
- package/__chunks__/{chunk-AWKMJ6BH.js → chunk-U4CDBI6P.js} +2 -2
- package/__chunks__/{chunk-25Z4RRV2.js → chunk-U62E2JHZ.js} +2 -2
- package/__chunks__/chunk-UBSBJF3A.js +2 -0
- package/__chunks__/{chunk-XDWFAAXF.js → chunk-UDJZII4B.js} +2 -2
- package/__chunks__/{chunk-5ERYPF64.js → chunk-UGJQKACR.js} +2 -2
- package/__chunks__/chunk-UNR5DH2P.js +2 -0
- package/__chunks__/chunk-UNV565VI.js +2 -0
- package/__chunks__/{chunk-AC6CKWKK.js → chunk-UOF2PVU3.js} +2 -2
- package/__chunks__/{chunk-ZZC6YAK2.js → chunk-UQSSY2CE.js} +2 -2
- package/__chunks__/chunk-UZGZ2ISZ.js +2 -0
- package/__chunks__/{chunk-XCYTLFVY.js → chunk-UZYWNRXB.js} +2 -2
- package/__chunks__/{chunk-FOMXUSAM.js → chunk-VCDU5F5F.js} +2 -2
- package/__chunks__/chunk-VH5LM3UB.js +2 -0
- package/__chunks__/{chunk-CJNQHFTG.js → chunk-VKH7RCJZ.js} +2 -2
- package/__chunks__/{chunk-GZERAGVT.js → chunk-VKL3IX6D.js} +2 -2
- package/__chunks__/{chunk-6OW2H4GX.js → chunk-VLKMA43H.js} +2 -2
- package/__chunks__/{chunk-67RP574Q.js → chunk-VOLV2VKJ.js} +2 -2
- package/__chunks__/{chunk-PSPRNXGD.js → chunk-VSI5CFOL.js} +2 -2
- package/__chunks__/{chunk-KXEIICKC.js → chunk-VX22PWSV.js} +2 -2
- package/__chunks__/{chunk-UZXHNLYR.js → chunk-VZZWVSGN.js} +2 -2
- package/__chunks__/{chunk-KT55VLK7.js → chunk-W6OHCIBK.js} +2 -2
- package/__chunks__/chunk-WBABHHWB.js +2 -0
- package/__chunks__/{chunk-2OXZHY47.js → chunk-WG6VCGOH.js} +2 -2
- package/__chunks__/{chunk-KQLXRMEE.js → chunk-WHCSXRYV.js} +2 -2
- package/__chunks__/{chunk-2C47U57W.js → chunk-WJ2GENHB.js} +2 -2
- package/__chunks__/{chunk-M45Q3B6D.js → chunk-WOWQGT7T.js} +2 -2
- package/__chunks__/{chunk-6IRIYBXO.js → chunk-WPDQHXZM.js} +2 -2
- package/__chunks__/{chunk-LQ4H4XMZ.js → chunk-WSG6OJID.js} +2 -2
- package/__chunks__/{chunk-SNG6AUN5.js → chunk-WSJ4FZAD.js} +2 -2
- package/__chunks__/{chunk-XSJL7C5B.js → chunk-WXMF242R.js} +2 -2
- package/__chunks__/{chunk-OITS4WSY.js → chunk-WYIOA2CW.js} +2 -2
- package/__chunks__/{chunk-QHH3TL5J.js → chunk-WZEXDOL3.js} +2 -2
- package/__chunks__/{chunk-LC7VM2V2.js → chunk-X2LMCP63.js} +2 -2
- package/__chunks__/{chunk-3KBIJZ5B.js → chunk-X3OARZY4.js} +2 -2
- package/__chunks__/{chunk-XRF5BC57.js → chunk-X65KMBSX.js} +2 -2
- package/__chunks__/{chunk-CZ67K2JP.js → chunk-XBWMKBSN.js} +2 -2
- package/__chunks__/{chunk-AN4EQXPW.js → chunk-XDNPLITT.js} +2 -2
- package/__chunks__/{chunk-KZYHCUBK.js → chunk-XFSTF6UC.js} +2 -2
- package/__chunks__/chunk-XH77T23W.js +2 -0
- package/__chunks__/{chunk-UOALD6V5.js → chunk-XNLN42WC.js} +2 -2
- package/__chunks__/{chunk-A7SBHPK3.js → chunk-XOBLTJNU.js} +2 -2
- package/__chunks__/{chunk-NJG4RGRY.js → chunk-XSFCMLI3.js} +2 -2
- package/__chunks__/{chunk-46Q4JMMY.js → chunk-XT6L5CMF.js} +2 -2
- package/__chunks__/{chunk-B77YM2QS.js → chunk-XU33WKHX.js} +2 -2
- package/__chunks__/{chunk-ZI35GMEV.js → chunk-XUEPSM7T.js} +2 -2
- package/__chunks__/{chunk-2UHZELCK.js → chunk-XXISC3KD.js} +2 -2
- package/__chunks__/{chunk-L23BUP6N.js → chunk-XXSB4UGQ.js} +2 -2
- package/__chunks__/{chunk-ZPCED2P2.js → chunk-XXWCVDZO.js} +2 -2
- package/__chunks__/{chunk-Z2KDG7AO.js → chunk-YBPRSVO6.js} +2 -2
- package/__chunks__/{chunk-Z6OXO2BW.js → chunk-YC2CGRNI.js} +2 -2
- package/__chunks__/chunk-YH6HFGXF.js +2 -0
- package/__chunks__/{chunk-XCVB7MGI.js → chunk-YIWF5JW6.js} +2 -2
- package/__chunks__/{chunk-TRTXE3Z7.js → chunk-YK7LH7KM.js} +2 -2
- package/__chunks__/{chunk-CDI4B37I.js → chunk-YQ6NUZ2W.js} +2 -2
- package/__chunks__/chunk-YQDDOHUJ.js +2 -0
- package/__chunks__/{chunk-46Z23CL7.js → chunk-YSRVOBZJ.js} +2 -2
- package/__chunks__/chunk-YV4AGZES.js +2 -0
- package/__chunks__/{chunk-BKTFKAC4.js → chunk-YY6PRNL7.js} +2 -2
- package/__chunks__/{chunk-LSQTYC7X.js → chunk-Z32YFOTU.js} +2 -2
- package/__chunks__/{chunk-RQQPHH3S.js → chunk-Z4ETRVIP.js} +2 -2
- package/__chunks__/{chunk-WSN6FXFB.js → chunk-Z4QVA43D.js} +2 -2
- package/__chunks__/{chunk-NXXPLTPH.js → chunk-Z6OTYTVD.js} +2 -2
- package/__chunks__/{chunk-DBKTZD7C.js → chunk-ZDLS2ROS.js} +2 -2
- package/__chunks__/{chunk-Q6A7MYXT.js → chunk-ZFM3AKZB.js} +2 -2
- package/__chunks__/{chunk-QTYHDB7M.js → chunk-ZJYZLU6I.js} +2 -2
- package/__chunks__/{chunk-V5XLW2QX.js → chunk-ZNZM64XX.js} +2 -2
- package/__chunks__/{chunk-KFAAZM3U.js → chunk-ZOF7RQG3.js} +2 -2
- package/__chunks__/{chunk-BQNKL3NQ.js → chunk-ZR4MYNG7.js} +2 -2
- package/__chunks__/{chunk-YDRJBGVE.js → chunk-ZRQ2S7FV.js} +2 -2
- package/__chunks__/{chunk-FCFDUSOQ.js → chunk-ZSFQJ5ZZ.js} +2 -2
- package/__chunks__/{chunk-66GRGLZZ.js → chunk-ZSXLZAFD.js} +2 -2
- package/__chunks__/chunk-ZU2IKIWJ.js +2 -0
- package/__chunks__/{chunk-XBWZHLBR.js → chunk-ZU6LWXRY.js} +2 -2
- package/__chunks__/{chunk-2EBHEIPK.js → chunk-ZWVTQKFC.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 +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignWithMetamaskModal/SignWithMetamaskModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithMetamaskModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +12 -12
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +3 -3
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +8 -8
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +8 -8
- package/__commonjs/UI/index.js +1 -1
- package/__commonjs/__mocks__/index.js +1 -1
- package/__commonjs/__mocks__/utils/index.js +1 -1
- package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
- package/__commonjs/constants/index.js +1 -1
- package/__commonjs/hooks/account/index.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/transactions/batch/tracker/useCheckBatchesOnWsFailureFallback.js +1 -1
- package/__commonjs/hooks/transactions/batch/tracker/useVerifyBatchStatus.js +1 -1
- package/__commonjs/hooks/transactions/batch/useGetBatchStatus.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/providers/experimentalWebViewProvider/useInitiateExperimentalWebviewLogin.js +1 -1
- package/__commonjs/utils/index.js +1 -1
- package/__commonjs/utils/operations/index.js +1 -1
- package/__commonjs/utils/operations/nominate.js +1 -1
- package/__commonjs/utils/operations/parseAmount.js +1 -1
- package/__commonjs/utils/transactions/builtCallbackUrl.js +1 -1
- package/__commonjs/utils/transactions/index.js +1 -1
- package/__commonjs/wrappers/AppInitializer.js +1 -1
- package/__commonjs/wrappers/DappProvider/DappProvider.js +1 -1
- package/__commonjs/wrappers/DappProvider/index.js +1 -1
- package/__commonjs/wrappers/index.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/apiCalls/accounts/getAccountFromApi.js +1 -1
- package/apiCalls/accounts/index.js +1 -1
- package/apiCalls/accounts/useGetAccountFromApi.js +1 -1
- package/apiCalls/configuration/getGasStationMetadata.js +1 -1
- package/apiCalls/configuration/getNetworkConfig.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/tokens/getPersistedToken.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/handleGuardianWarning.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/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/useGetBatchWebsocketEvent.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/useIframeLogin.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/usePasskeyLogin.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/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/useCancelActionAndDispose.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/useGetPollingInterval.js +1 -1
- package/hooks/transactions/useGetSignTransactionsError.js +1 -1
- package/hooks/transactions/useGetSignedTransactions.js +1 -1
- package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
- package/hooks/transactions/useGetTokenDetails.js +1 -1
- package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/hooks/transactions/useSignMultipleTransactions.js +1 -1
- package/hooks/transactions/useSignTransactions.js +1 -1
- package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/hooks/transactions/useTransactionsTracker/index.js +1 -1
- package/hooks/transactions/useTransactionsTracker/useCheckHangingTransactionsFallback.js +1 -1
- package/hooks/transactions/useTransactionsTracker/useCheckTransactionOnWsFailureFallback.js +1 -1
- package/hooks/transactions/useTransactionsTracker/useTransactionsTracker.js +1 -1
- package/hooks/transactions/useTransactionsTracker/useUpdateTrackedTransactions.js +1 -1
- package/hooks/transactions/useTransactionsTracker/useWebsocketPollingFallback.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/experimentalWebViewProvider/useInitiateExperimentalWebviewLogin.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/__tests__/transformAndSignTransactions.test.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/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/getWebviewToken.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/toasts/customToastsActions.js +1 -1
- package/utils/toasts/index.js +1 -1
- package/utils/transactions/batch/updateBatchTransactionsStatuses.js +1 -1
- package/utils/transactions/builtCallbackUrl.js +1 -1
- package/utils/transactions/getAllTransactionsLink.js +1 -1
- package/utils/transactions/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/parseTransactionAfterSigning.js +1 -1
- package/utils/transactions/removeTransactionParamsFromUrl.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/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/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.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/index.js +1 -1
- package/wrappers/DappProvider/CustomComponents.js +1 -1
- package/wrappers/DappProvider/DappProvider.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-2Q5VPGVR.js +0 -2
- package/__chunks__/chunk-3Q2QS7OH.js +0 -2
- package/__chunks__/chunk-53QQTAG7.js +0 -2
- package/__chunks__/chunk-54N4RLY7.js +0 -2
- package/__chunks__/chunk-5K4MPEY2.js +0 -2
- package/__chunks__/chunk-5WAZ3K6U.js +0 -2
- package/__chunks__/chunk-5XWVSVRW.js +0 -2
- package/__chunks__/chunk-67G3XPT7.js +0 -2
- package/__chunks__/chunk-6FE2EYKS.js +0 -2
- package/__chunks__/chunk-6MTDG7G3.js +0 -2
- package/__chunks__/chunk-6T4AZFRE.js +0 -2
- package/__chunks__/chunk-6TPYTRCS.js +0 -2
- package/__chunks__/chunk-7BOOLJNP.js +0 -2
- package/__chunks__/chunk-A5IPDDY2.js +0 -2
- package/__chunks__/chunk-APJUXVK5.js +0 -2
- package/__chunks__/chunk-B3CXC2BR.js +0 -2
- package/__chunks__/chunk-B3PWB73S.js +0 -2
- package/__chunks__/chunk-BOAI2G6O.js +0 -2
- package/__chunks__/chunk-CAL3BHAI.js +0 -2
- package/__chunks__/chunk-CN3FGBRK.js +0 -2
- package/__chunks__/chunk-DVINHABK.js +0 -2
- package/__chunks__/chunk-E6AIPJSA.js +0 -2
- package/__chunks__/chunk-E6BNKX7K.js +0 -2
- package/__chunks__/chunk-EARJ52RB.js +0 -2
- package/__chunks__/chunk-EDFVHYJF.js +0 -2
- package/__chunks__/chunk-EDK6INJL.js +0 -2
- package/__chunks__/chunk-EJ2CBRFF.js +0 -2
- package/__chunks__/chunk-EUCMN4BM.js +0 -2
- package/__chunks__/chunk-EXEWFABM.js +0 -2
- package/__chunks__/chunk-FRJB4JTM.js +0 -2
- package/__chunks__/chunk-G2A36HG2.js +0 -2
- package/__chunks__/chunk-GMNKJ4ZS.js +0 -2
- package/__chunks__/chunk-GTSTSF47.js +0 -2
- package/__chunks__/chunk-HEAKSCAP.js +0 -2
- package/__chunks__/chunk-I4Y3IIJO.js +0 -2
- package/__chunks__/chunk-I63Y245T.js +0 -2
- package/__chunks__/chunk-IMZUYKG4.js +0 -2
- package/__chunks__/chunk-JHDN4BLB.js +0 -2
- package/__chunks__/chunk-JQATXIEX.js +0 -2
- package/__chunks__/chunk-KLEOGM4X.js +0 -2
- package/__chunks__/chunk-LGWKMXIO.js +0 -2
- package/__chunks__/chunk-M3MIM7GR.js +0 -2
- package/__chunks__/chunk-M5VRMICG.js +0 -2
- package/__chunks__/chunk-MOKL3ZOL.js +0 -2
- package/__chunks__/chunk-MOPJUB6Q.js +0 -2
- package/__chunks__/chunk-NSWJUNJF.js +0 -2
- package/__chunks__/chunk-OADTUICJ.js +0 -2
- package/__chunks__/chunk-OXWCW7XG.js +0 -2
- package/__chunks__/chunk-PNP2BH4R.js +0 -2
- package/__chunks__/chunk-QMKFQ6ZQ.js +0 -2
- package/__chunks__/chunk-SRH7RK7R.js +0 -2
- package/__chunks__/chunk-THUOPOUB.js +0 -2
- package/__chunks__/chunk-TKGTFJEU.js +0 -2
- package/__chunks__/chunk-TS7WMZBR.js +0 -2
- package/__chunks__/chunk-TSXGHSFO.js +0 -2
- package/__chunks__/chunk-U636KPVK.js +0 -2
- package/__chunks__/chunk-UAKBMT2M.js +0 -2
- package/__chunks__/chunk-USRAPINT.js +0 -2
- package/__chunks__/chunk-V7GRT5JW.js +0 -2
- package/__chunks__/chunk-WMMWWMRE.js +0 -2
- package/__chunks__/chunk-WYYEOAV7.js +0 -2
- package/__chunks__/chunk-XDTJMHQJ.js +0 -2
- package/__chunks__/chunk-YWPMLMPE.js +0 -2
- package/__chunks__/chunk-ZTTCSRY7.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Rr=Object.create;var Y=Object.defineProperty;var Er=Object.getOwnPropertyDescriptor;var Lr=Object.getOwnPropertyNames,Ce=Object.getOwnPropertySymbols,Nr=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable;var Be=(t,e,r)=>e in t?Y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,V=(t,e)=>{for(var r in e||(e={}))Ue.call(e,r)&&Be(t,r,e[r]);if(Ce)for(var r of Ce(e))Fr.call(e,r)&&Be(t,r,e[r]);return t};var Cr=(t,e)=>()=>(t&&(e=t(t=0)),e);var re=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Br=(t,e)=>{for(var r in e)Y(t,r,{get:e[r],enumerable:!0})},De=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Lr(e))!Ue.call(t,i)&&i!==r&&Y(t,i,{get:()=>e[i],enumerable:!(n=Er(e,i))||n.enumerable});return t};var D=(t,e,r)=>(r=t!=null?Rr(Nr(t)):{},De(e||!t||!t.__esModule?Y(r,"default",{value:t,enumerable:!0}):r,t)),Ur=t=>De(Y({},"__esModule",{value:!0}),t);var Pe=re(te=>{"use strict";l();te.byteLength=Mr;te.toByteArray=Pr;te.fromByteArray=Vr;var S=[],A=[],Dr=typeof Uint8Array!="undefined"?Uint8Array:Array,le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(M=0,Me=le.length;M<Me;++M)S[M]=le[M],A[le.charCodeAt(M)]=M;var M,Me;A["-".charCodeAt(0)]=62;A["_".charCodeAt(0)]=63;function Oe(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Mr(t){var e=Oe(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Or(t,e,r){return(e+r)*3/4-r}function Pr(t){var e,r=Oe(t),n=r[0],i=r[1],o=new Dr(Or(t,n,i)),a=0,p=i>0?n-4:n,c;for(c=0;c<p;c+=4)e=A[t.charCodeAt(c)]<<18|A[t.charCodeAt(c+1)]<<12|A[t.charCodeAt(c+2)]<<6|A[t.charCodeAt(c+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=A[t.charCodeAt(c)]<<2|A[t.charCodeAt(c+1)]>>4,o[a++]=e&255),i===1&&(e=A[t.charCodeAt(c)]<<10|A[t.charCodeAt(c+1)]<<4|A[t.charCodeAt(c+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function Gr(t){return S[t>>18&63]+S[t>>12&63]+S[t>>6&63]+S[t&63]}function Wr(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(Gr(n));return i.join("")}function Vr(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,p=r-n;a<p;a+=o)i.push(Wr(t,a,a+o>p?p:a+o));return n===1?(e=t[r-1],i.push(S[e>>2]+S[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(S[e>>10]+S[e>>4&63]+S[e<<2&63]+"=")),i.join("")}});var Ge=re(ce=>{l();ce.read=function(t,e,r,n,i){var o,a,p=i*8-n-1,c=(1<<p)-1,f=c>>1,m=-7,h=r?i-1:0,y=r?-1:1,w=t[e+h];for(h+=y,o=w&(1<<-m)-1,w>>=-m,m+=p;m>0;o=o*256+t[e+h],h+=y,m-=8);for(a=o&(1<<-m)-1,o>>=-m,m+=n;m>0;a=a*256+t[e+h],h+=y,m-=8);if(o===0)o=1-f;else{if(o===c)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)};ce.write=function(t,e,r,n,i,o){var a,p,c,f=o*8-i-1,m=(1<<f)-1,h=m>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:o-1,v=n?1:-1,X=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(p=isNaN(e)?1:0,a=m):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+h>=1?e+=y/c:e+=y*Math.pow(2,1-h),e*c>=2&&(a++,c/=2),a+h>=m?(p=0,a=m):a+h>=1?(p=(e*c-1)*Math.pow(2,i),a=a+h):(p=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+w]=p&255,w+=v,p/=256,i-=8);for(a=a<<i|p,f+=i;f>0;t[r+w]=a&255,w+=v,a/=256,f-=8);t[r+w-v]|=X*128}});var Qe=re(q=>{"use strict";l();var pe=Pe(),H=Ge(),We=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=s;q.SlowBuffer=Xr;q.INSPECT_MAX_BYTES=50;var ne=2147483647;q.kMaxLength=ne;s.TYPED_ARRAY_SUPPORT=Hr();!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 Hr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){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 F(t){if(t>ne)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return fe(t)}return qe(t,e,r)}s.poolSize=8192;function qe(t,e,r){if(typeof t=="string")return zr(t,e);if(ArrayBuffer.isView(t))return jr(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 de(t,e,r);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,e,r);var i=$r(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);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,e,r){return qe(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function ze(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 qr(t,e,r){return ze(t),t<=0?F(t):e!==void 0?typeof r=="string"?F(t).fill(e,r):F(t).fill(e):F(t)}s.alloc=function(t,e,r){return qr(t,e,r)};function fe(t){return ze(t),F(t<0?0:me(t)|0)}s.allocUnsafe=function(t){return fe(t)};s.allocUnsafeSlow=function(t){return fe(t)};function zr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=je(t,e)|0,n=F(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ue(t){for(var e=t.length<0?0:me(t.length)|0,r=F(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function jr(t){if(I(t,Uint8Array)){var e=new Uint8Array(t);return de(e.buffer,e.byteOffset,e.byteLength)}return ue(t)}function de(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function $r(t){if(s.isBuffer(t)){var e=me(t.length)|0,r=F(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||he(t.length)?F(0):ue(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ue(t.data)}function me(t){if(t>=ne)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ne.toString(16)+" bytes");return t|0}function Xr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,a=Math.min(n,i);o<a;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).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(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[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 je(t,e){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 r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ge(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Je(t).length;default:if(i)return n?-1:ge(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=je;function Kr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return ot(this,e,r);case"utf8":case"utf-8":return Xe(this,e,r);case"ascii":return nt(this,e,r);case"latin1":case"binary":return it(this,e,r);case"base64":return rt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return at(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function O(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)O(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)O(this,r,r+3),O(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)O(this,r,r+7),O(this,r+1,r+6),O(this,r+2,r+5),O(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Xe(this,0,e):Kr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=q.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};We&&(s.prototype[We]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,o){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,p=n-r,c=Math.min(a,p),f=this.slice(i,o),m=e.slice(r,n),h=0;h<c;++h)if(f[h]!==m[h]){a=f[h],p=m[h];break}return a<p?-1:p<a?1:0};function $e(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,he(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:Ve(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Ve(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Ve(t,e,r,n,i){var o=1,a=t.length,p=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,a/=2,p/=2,r/=2}function c(w,v){return o===1?w[v]:w.readUInt16BE(v*o)}var f;if(i){var m=-1;for(f=r;f<a;f++)if(c(t,f)===c(e,m===-1?0:f-m)){if(m===-1&&(m=f),f-m+1===p)return m*o}else m!==-1&&(f-=f-m),m=-1}else for(r+p>a&&(r=a-p),f=r;f>=0;f--){for(var h=!0,y=0;y<p;y++)if(c(t,f+y)!==c(e,y)){h=!1;break}if(h)return f}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return $e(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return $e(this,e,r,n,!1)};function Yr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var p=parseInt(e.substr(a*2,2),16);if(he(p))return a;t[r+a]=p}return a}function Zr(t,e,r,n){return ie(ge(e,t.length-r),t,r,n)}function Jr(t,e,r,n){return ie(ct(e),t,r,n)}function Qr(t,e,r,n){return ie(Je(e),t,r,n)}function et(t,e,r,n){return ie(pt(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>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-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return Yr(this,e,r,n);case"utf8":case"utf-8":return Zr(this,e,r,n);case"ascii":case"latin1":case"binary":return Jr(this,e,r,n);case"base64":return Qr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,e,r,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 rt(t,e,r){return e===0&&r===t.length?pe.fromByteArray(t):pe.fromByteArray(t.slice(e,r))}function Xe(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,p=o>239?4:o>223?3:o>191?2:1;if(i+p<=r){var c,f,m,h;switch(p){case 1:o<128&&(a=o);break;case 2:c=t[i+1],(c&192)===128&&(h=(o&31)<<6|c&63,h>127&&(a=h));break;case 3:c=t[i+1],f=t[i+2],(c&192)===128&&(f&192)===128&&(h=(o&15)<<12|(c&63)<<6|f&63,h>2047&&(h<55296||h>57343)&&(a=h));break;case 4:c=t[i+1],f=t[i+2],m=t[i+3],(c&192)===128&&(f&192)===128&&(m&192)===128&&(h=(o&15)<<18|(c&63)<<12|(f&63)<<6|m&63,h>65535&&h<1114112&&(a=h))}}a===null?(a=65533,p=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=p}return tt(n)}var He=4096;function tt(t){var e=t.length;if(e<=He)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=He));return r}function nt(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function it(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function ot(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=ut[t[o]];return i}function at(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function b(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||b(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||b(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||b(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||b(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||b(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||b(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||b(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||b(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};s.prototype.readInt8=function(e,r){return e=e>>>0,r||b(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||b(e,4,this.length),H.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||b(e,4,this.length),H.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||b(e,8,this.length),H.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||b(e,8,this.length),H.read(this,e,!1,52,8)};function T(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;T(this,e,r,n,o,0)}var a=1,p=0;for(this[r]=e&255;++p<n&&(a*=256);)this[r+p]=e/a&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;T(this,e,r,n,o,0)}var a=n-1,p=1;for(this[r+a]=e&255;--a>=0&&(p*=256);)this[r+a]=e/p&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);T(this,e,r,n,o-1,-o)}var a=0,p=1,c=0;for(this[r]=e&255;++a<n&&(p*=256);)e<0&&c===0&&this[r+a-1]!==0&&(c=1),this[r+a]=(e/p>>0)-c&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);T(this,e,r,n,o-1,-o)}var a=n-1,p=1,c=0;for(this[r+a]=e&255;--a>=0&&(p*=256);)e<0&&c===0&&this[r+a+1]!==0&&(c=1),this[r+a]=(e/p>>0)-c&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ke(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ye(t,e,r,n,i){return e=+e,r=r>>>0,i||Ke(t,e,r,4,34028234663852886e22,-34028234663852886e22),H.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ye(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ye(this,e,r,!1,n)};function Ze(t,e,r,n,i){return e=+e,r=r>>>0,i||Ke(t,e,r,8,17976931348623157e292,-17976931348623157e292),H.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Ze(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Ze(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<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),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=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(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var p=s.isBuffer(e)?e:s.from(e,i),c=p.length;if(c===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=p[a%c]}return this};var st=/[^+/0-9A-Za-z-_]/g;function lt(t){if(t=t.split("=")[0],t=t.trim().replace(st,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ge(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function ct(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function pt(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Je(t){return pe.toByteArray(lt(t))}function ie(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function I(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function he(t){return t!==t}var ut=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var ir=re((Ft,nr)=>{l();var x=nr.exports={},R,E;function ye(){throw new Error("setTimeout has not been defined")}function xe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?R=setTimeout:R=ye}catch(t){R=ye}try{typeof clearTimeout=="function"?E=clearTimeout:E=xe}catch(t){E=xe}})();function er(t){if(R===setTimeout)return setTimeout(t,0);if((R===ye||!R)&&setTimeout)return R=setTimeout,setTimeout(t,0);try{return R(t,0)}catch(e){try{return R.call(null,t,0)}catch(r){return R.call(this,t,0)}}}function dt(t){if(E===clearTimeout)return clearTimeout(t);if((E===xe||!E)&&clearTimeout)return E=clearTimeout,clearTimeout(t);try{return E(t)}catch(e){try{return E.call(null,t)}catch(r){return E.call(this,t)}}}var C=[],z=!1,P,oe=-1;function gt(){!z||!P||(z=!1,P.length?C=P.concat(C):oe=-1,C.length&&rr())}function rr(){if(!z){var t=er(gt);z=!0;for(var e=C.length;e;){for(P=C,C=[];++oe<e;)P&&P[oe].run();oe=-1,e=C.length}P=null,z=!1,dt(t)}}x.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];C.push(new tr(t,e)),C.length===1&&!z&&er(rr)};function tr(t,e){this.fun=t,this.array=e}tr.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function B(){}x.on=B;x.addListener=B;x.once=B;x.off=B;x.removeListener=B;x.removeAllListeners=B;x.emit=B;x.prependListener=B;x.prependOnceListener=B;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 u,d,Ct,l=Cr(()=>{u=D(Qe()),d=D(ir()),Ct=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var St={};Br(St,{calculateFeeInFiat:()=>_t,calculateFeeLimit:()=>yt,denominate:()=>mt,formatAmount:()=>Z,getLedgerVersionOptions:()=>kt,getRemainingTime:()=>Fe,getUsdValue:()=>Ne,nominate:()=>ht,parseAmount:()=>Ee,pipe:()=>N,timeAgo:()=>Tt,timeRemaining:()=>wt,truncate:()=>vt});module.exports=Ur(St);l();l();l();l();l();l();l();var we=(n=>(n.SetGuardian="SetGuardian",n.GuardAccount="GuardAccount",n.UnGuardAccount="UnGuardAccount",n))(we||{});l();var be="1.0.8",Te="1.0.11",ve="1.0.15",Ae="1.0.17",ke="1.0.22",_e="1.0.23";l();l();l();l();l();l();l();l();l();var ft=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),j=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums");var or=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(or||{}),zt=V(V({},j.WindowProviderRequestEnums),or),ar=(e=>(e.reloginResponse="RELOGIN_RESPONSE",e))(ar||{}),jt=V(V({},j.WindowProviderResponseEnums),ar);l();l();l();l();l();l();var Se={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",extrasApiAddress:"https://devnet-extras-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://devnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},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",extrasApiAddress:"https://testnet-extras-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://testnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},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",extrasApiAddress:"https://extras-api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:sr,egldLabel:pn}=Se["devnet"],{chainId:lr,egldLabel:un}=Se["testnet"],{chainId:cr,egldLabel:dn}=Se["mainnet"];var gn={["devnet"]:sr,["testnet"]:lr,["mainnet"]:cr},fn={[sr]:"devnet",[lr]:"testnet",[cr]:"mainnet"};l();l();var L=require("@multiversx/sdk-web-wallet-provider");l();l();var Ie=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants");var pr,ur,Re=String((ur=(pr=Ie.safeWindow)==null?void 0:pr.navigator)==null?void 0:ur.userAgent),bn=/^((?!chrome|android).)*safari/i.test(Re),Tn=/firefox/i.test(Re)&&/windows/i.test(Re);var dr=5e4,gr=5e4,fr=1e9,_=18,G=4;var $="0";l();var U=D(require("bignumber.js"));l();var mr=D(require("bignumber.js")),ae=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new mr.default(r),i=!e||n.isGreaterThanOrEqualTo(0);return n.toString(10)===r&&i};l();function N(t){return{if:function(e){return e?{then:r=>r instanceof Function?N(r(t)):N(r)}:{then:()=>N(t)}},then:e=>e instanceof Function?N(e(t)):N(e),valueOf:function(){return t}}}U.default.config({ROUNDING_MODE:U.default.ROUND_FLOOR});function Z({input:t,decimals:e=_,digits:r=G,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:o=!1}){if(!ae(t,!1))throw new Error("Invalid input");let a=new U.default(t).isNegative(),p=t;return a&&(p=t.substring(1)),N(p).then(()=>new U.default(p).shiftedBy(-e).toFixed(e)).then(c=>{let f=new U.default(c);if(f.isZero())return $;let m=f.toString(10),[h,y]=m.split("."),w=new U.default(y||0),v=N(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(w.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),X=y&&r>=1&&r<=y.length&&w.isGreaterThan(0)&&new U.default(y.substring(0,r)).isZero(),_r=f.toFormat(v);return N(m).if(o).then(_r).if(Boolean(X)).then(J=>{let K=new U.default(h).isZero(),[k,Q]=J.split("."),ee=new Array(r-1).fill(0),Sr=[...ee,0].join(""),Ir=[...ee,1].join("");return K?i?`<${k}.${Ir}`:n?`${k}.${Q}`:k:`${k}.${Sr}`}).if(Boolean(!X&&y)).then(J=>{let[K]=J.split("."),k=y.substring(0,v);if(n){let Q=r-k.length;if(Q>0){let ee=Array(Q).fill(0).join("");return k=`${k}${ee}`,`${K}.${k}`}return J}return k?`${K}.${k}`:K}).valueOf()}).if(a).then(c=>`-${c}`).valueOf()}var hr=!1;function mt({input:t,denomination:e=_,decimals:r=G,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:o=!1}){return hr||(console.warn('!!! Be aware !!! The "denominate" function is deprecated. Please use "formatAmount" instead.'),hr=!0),Z({input:t,decimals:e,addCommas:o,digits:r,showIsLessThanDecimalsLabel:i,showLastNonZeroDecimal:n})}l();l();var se=require("@multiversx/sdk-core"),yr=D(require("bignumber.js"));function Ee(t,e=_){return new se.TokenTransfer({token:new se.Token({identifier:""}),amount:BigInt(new yr.default(t).shiftedBy(e).decimalPlaces(0).toString())}).toString()}var xr=!1;function ht(t,e=_){return xr||(console.warn('!!! Be aware !!! The "nominate" function is deprecated. Please use "parseAmount" instead.'),xr=!0),Ee(t,e)}l();var W=require("@multiversx/sdk-core"),vr=D(require("bignumber.js"));l();var wr=({data:t,onlySetGuardian:e})=>t?e?t.startsWith("SetGuardian"):Object.values(we).some(r=>t.startsWith(r)):!1;l();l();var Le=D(require("bignumber.js"));var br=t=>{if(isNaN(t)||t==null||String(t).includes("Infinity"))return!1;let[e,r]=t.split("."),n=Le.default.clone();if(r){let p=r.split("").every(c=>!isNaN(parseInt(c)));for(n.set({DECIMAL_PLACES:p?r.length:Le.default.config().DECIMAL_PLACES});r.charAt(r.length-1)===$;)r=r.slice(0,-1)}let i=r?[e,r].join("."):e,o=n(i);return o.toString(10)===i&&o.isGreaterThanOrEqualTo(0)};l();l();var Tr={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function yt({minGasLimit:t=String(dr),gasLimit:e,gasPrice:r,data:n,gasPerDataByte:i,gasPriceModifier:o,defaultGasPrice:a=String(fr),chainId:p}){let c=n||"",f=ae(e)?e:t,m=wr({data:c})?gr:0,h=new vr.default(f).plus(m).toNumber(),y=br(r)?r:a,w=new W.Transaction({nonce:BigInt(0),value:BigInt(0),receiver:new W.Address(Tr.to),sender:new W.Address(Tr.to),gasPrice:BigInt(parseInt(y)),gasLimit:BigInt(h),data:u.Buffer.from(c.trim()),chainID:p,version:1});try{return new W.TransactionComputer().computeTransactionFee(w,{gasPerDataByte:BigInt(i),minGasLimit:BigInt(t),gasPriceModifier:parseFloat(o),chainID:p}).toString(10)}catch(v){return console.error(v),$}}l();var Ne=({amount:t,usd:e,decimals:r=2,addEqualSign:n})=>{let i=(parseFloat(t)*e).toFixed(r),o=parseFloat(i).toLocaleString("en",{maximumFractionDigits:r,minimumFractionDigits:r}),a=parseFloat(t)>0?"\u2248":"=";return`${n?`${a} `:""}$${o}`};l();function Fe(t){let e=Math.floor(t/864e5),r=t%(24*60*60*1e3),n=Math.floor(r/(60*60*1e3)),i=r%(60*60*1e3),o=Math.floor(i/(60*1e3)),a=i%(60*1e3),p=Math.floor(a/1e3),c=p+" sec",f=o+" min",m=n+" hr",h=e+" day";if(p>1&&(c=p+" sec"),o>1&&(f=o+" min"),n>1&&(m=n+" hrs"),e>1&&(h=e+" days"),e>=1)return h+" "+m;if(n>=1){let y=o===0?"":" "+f;return m+y}if(o>=1){let y=p===0?"":" "+c;return f+y}return c}function kr(t){let e=t.split(" ");return e.length>1?`${e[0]} ${e[1]}`:t}var Ar=(t=new Date,e=0)=>Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()+e,t.getUTCMilliseconds());function xt(t){let e=new Date,r=Ar(e),n=Ar(e,t);return Math.max(n-r,0)}function wt(t,e=!0){let r=xt(t),n=Fe(r);return e?kr(n):n}function bt(t){let r=new Date().getTime()-t;return Math.max(r,0)}function Tt(t,e=!0){let r=bt(t),n=Fe(r);return e?kr(n):n}l();function vt(t,e,r="..."){return isNaN(e)&&(e=10),r||(r="..."),t!=null&&(t.length<=e||t.length-r.length<=e)?t:String(t).substring(0,e-r.length)+r}l();l();function At(t,e){let r,n,i=/(\.0+)+$/,o=t.replace(i,"").split("."),a=e.replace(i,"").split("."),p=Math.min(o.length,a.length);for(r=0;r<p;r++)if(n=parseInt(o[r],10)-parseInt(a[r],10),n)return n;return o.length-a.length}function kt(t){let e=[be,Te,ve,Ae,ke,_e,t].sort((f,m)=>At(f,m)),r=e.indexOf(be),n=e.indexOf(Te),i=e.indexOf(ve),o=e.indexOf(Ae),a=e.indexOf(ke),p=e.indexOf(_e),c=e.indexOf(t);return{ledgerWithMultiAccount:c>=r,ledgerWithHashSign:c>=n,ledgerWithSignAuthToken:c>=i,ledgerWithWhitelistedTokens:c>=o,ledgerWithGuardians:c>=a,ledgerWithUsernames:c>=p}}l();var _t=({feeLimit:t,egldPriceInUsd:e,hideEqualSign:r})=>{let n=Z({input:t,decimals:_,digits:G,showLastNonZeroDecimal:!0}),i=Ne({amount:n,usd:e,decimals:G});return r?i:`\u2248 ${i}`};0&&(module.exports={calculateFeeInFiat,calculateFeeLimit,denominate,formatAmount,getLedgerVersionOptions,getRemainingTime,getUsdValue,nominate,parseAmount,pipe,timeAgo,timeRemaining,truncate});
|
|
1
|
+
"use strict";var Rr=Object.create;var Y=Object.defineProperty;var Er=Object.getOwnPropertyDescriptor;var Lr=Object.getOwnPropertyNames,Ce=Object.getOwnPropertySymbols,Nr=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable;var Be=(t,e,r)=>e in t?Y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,V=(t,e)=>{for(var r in e||(e={}))Ue.call(e,r)&&Be(t,r,e[r]);if(Ce)for(var r of Ce(e))Fr.call(e,r)&&Be(t,r,e[r]);return t};var Cr=(t,e)=>()=>(t&&(e=t(t=0)),e);var re=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Br=(t,e)=>{for(var r in e)Y(t,r,{get:e[r],enumerable:!0})},De=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Lr(e))!Ue.call(t,i)&&i!==r&&Y(t,i,{get:()=>e[i],enumerable:!(n=Er(e,i))||n.enumerable});return t};var D=(t,e,r)=>(r=t!=null?Rr(Nr(t)):{},De(e||!t||!t.__esModule?Y(r,"default",{value:t,enumerable:!0}):r,t)),Ur=t=>De(Y({},"__esModule",{value:!0}),t);var Pe=re(te=>{"use strict";l();te.byteLength=Mr;te.toByteArray=Pr;te.fromByteArray=Vr;var S=[],A=[],Dr=typeof Uint8Array!="undefined"?Uint8Array:Array,le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(M=0,Me=le.length;M<Me;++M)S[M]=le[M],A[le.charCodeAt(M)]=M;var M,Me;A["-".charCodeAt(0)]=62;A["_".charCodeAt(0)]=63;function Oe(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Mr(t){var e=Oe(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Or(t,e,r){return(e+r)*3/4-r}function Pr(t){var e,r=Oe(t),n=r[0],i=r[1],o=new Dr(Or(t,n,i)),a=0,p=i>0?n-4:n,c;for(c=0;c<p;c+=4)e=A[t.charCodeAt(c)]<<18|A[t.charCodeAt(c+1)]<<12|A[t.charCodeAt(c+2)]<<6|A[t.charCodeAt(c+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=A[t.charCodeAt(c)]<<2|A[t.charCodeAt(c+1)]>>4,o[a++]=e&255),i===1&&(e=A[t.charCodeAt(c)]<<10|A[t.charCodeAt(c+1)]<<4|A[t.charCodeAt(c+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function Gr(t){return S[t>>18&63]+S[t>>12&63]+S[t>>6&63]+S[t&63]}function Wr(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(Gr(n));return i.join("")}function Vr(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,p=r-n;a<p;a+=o)i.push(Wr(t,a,a+o>p?p:a+o));return n===1?(e=t[r-1],i.push(S[e>>2]+S[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(S[e>>10]+S[e>>4&63]+S[e<<2&63]+"=")),i.join("")}});var Ge=re(ce=>{l();ce.read=function(t,e,r,n,i){var o,a,p=i*8-n-1,c=(1<<p)-1,f=c>>1,m=-7,h=r?i-1:0,y=r?-1:1,w=t[e+h];for(h+=y,o=w&(1<<-m)-1,w>>=-m,m+=p;m>0;o=o*256+t[e+h],h+=y,m-=8);for(a=o&(1<<-m)-1,o>>=-m,m+=n;m>0;a=a*256+t[e+h],h+=y,m-=8);if(o===0)o=1-f;else{if(o===c)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)};ce.write=function(t,e,r,n,i,o){var a,p,c,f=o*8-i-1,m=(1<<f)-1,h=m>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:o-1,v=n?1:-1,X=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(p=isNaN(e)?1:0,a=m):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+h>=1?e+=y/c:e+=y*Math.pow(2,1-h),e*c>=2&&(a++,c/=2),a+h>=m?(p=0,a=m):a+h>=1?(p=(e*c-1)*Math.pow(2,i),a=a+h):(p=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+w]=p&255,w+=v,p/=256,i-=8);for(a=a<<i|p,f+=i;f>0;t[r+w]=a&255,w+=v,a/=256,f-=8);t[r+w-v]|=X*128}});var Qe=re(q=>{"use strict";l();var pe=Pe(),H=Ge(),We=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=s;q.SlowBuffer=Xr;q.INSPECT_MAX_BYTES=50;var ne=2147483647;q.kMaxLength=ne;s.TYPED_ARRAY_SUPPORT=Hr();!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 Hr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){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 F(t){if(t>ne)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return fe(t)}return qe(t,e,r)}s.poolSize=8192;function qe(t,e,r){if(typeof t=="string")return zr(t,e);if(ArrayBuffer.isView(t))return jr(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 de(t,e,r);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,e,r);var i=$r(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);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,e,r){return qe(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function ze(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 qr(t,e,r){return ze(t),t<=0?F(t):e!==void 0?typeof r=="string"?F(t).fill(e,r):F(t).fill(e):F(t)}s.alloc=function(t,e,r){return qr(t,e,r)};function fe(t){return ze(t),F(t<0?0:me(t)|0)}s.allocUnsafe=function(t){return fe(t)};s.allocUnsafeSlow=function(t){return fe(t)};function zr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=je(t,e)|0,n=F(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ue(t){for(var e=t.length<0?0:me(t.length)|0,r=F(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function jr(t){if(I(t,Uint8Array)){var e=new Uint8Array(t);return de(e.buffer,e.byteOffset,e.byteLength)}return ue(t)}function de(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function $r(t){if(s.isBuffer(t)){var e=me(t.length)|0,r=F(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||he(t.length)?F(0):ue(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ue(t.data)}function me(t){if(t>=ne)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ne.toString(16)+" bytes");return t|0}function Xr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,a=Math.min(n,i);o<a;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).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(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[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 je(t,e){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 r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ge(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Je(t).length;default:if(i)return n?-1:ge(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=je;function Kr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return ot(this,e,r);case"utf8":case"utf-8":return Xe(this,e,r);case"ascii":return nt(this,e,r);case"latin1":case"binary":return it(this,e,r);case"base64":return rt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return at(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function O(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)O(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)O(this,r,r+3),O(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)O(this,r,r+7),O(this,r+1,r+6),O(this,r+2,r+5),O(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Xe(this,0,e):Kr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=q.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};We&&(s.prototype[We]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,o){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,p=n-r,c=Math.min(a,p),f=this.slice(i,o),m=e.slice(r,n),h=0;h<c;++h)if(f[h]!==m[h]){a=f[h],p=m[h];break}return a<p?-1:p<a?1:0};function $e(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,he(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:Ve(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Ve(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Ve(t,e,r,n,i){var o=1,a=t.length,p=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,a/=2,p/=2,r/=2}function c(w,v){return o===1?w[v]:w.readUInt16BE(v*o)}var f;if(i){var m=-1;for(f=r;f<a;f++)if(c(t,f)===c(e,m===-1?0:f-m)){if(m===-1&&(m=f),f-m+1===p)return m*o}else m!==-1&&(f-=f-m),m=-1}else for(r+p>a&&(r=a-p),f=r;f>=0;f--){for(var h=!0,y=0;y<p;y++)if(c(t,f+y)!==c(e,y)){h=!1;break}if(h)return f}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return $e(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return $e(this,e,r,n,!1)};function Yr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var p=parseInt(e.substr(a*2,2),16);if(he(p))return a;t[r+a]=p}return a}function Zr(t,e,r,n){return ie(ge(e,t.length-r),t,r,n)}function Jr(t,e,r,n){return ie(ct(e),t,r,n)}function Qr(t,e,r,n){return ie(Je(e),t,r,n)}function et(t,e,r,n){return ie(pt(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>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-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return Yr(this,e,r,n);case"utf8":case"utf-8":return Zr(this,e,r,n);case"ascii":case"latin1":case"binary":return Jr(this,e,r,n);case"base64":return Qr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,e,r,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 rt(t,e,r){return e===0&&r===t.length?pe.fromByteArray(t):pe.fromByteArray(t.slice(e,r))}function Xe(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,p=o>239?4:o>223?3:o>191?2:1;if(i+p<=r){var c,f,m,h;switch(p){case 1:o<128&&(a=o);break;case 2:c=t[i+1],(c&192)===128&&(h=(o&31)<<6|c&63,h>127&&(a=h));break;case 3:c=t[i+1],f=t[i+2],(c&192)===128&&(f&192)===128&&(h=(o&15)<<12|(c&63)<<6|f&63,h>2047&&(h<55296||h>57343)&&(a=h));break;case 4:c=t[i+1],f=t[i+2],m=t[i+3],(c&192)===128&&(f&192)===128&&(m&192)===128&&(h=(o&15)<<18|(c&63)<<12|(f&63)<<6|m&63,h>65535&&h<1114112&&(a=h))}}a===null?(a=65533,p=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=p}return tt(n)}var He=4096;function tt(t){var e=t.length;if(e<=He)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=He));return r}function nt(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function it(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function ot(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=ut[t[o]];return i}function at(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function b(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||b(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||b(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||b(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||b(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||b(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||b(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||b(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||b(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};s.prototype.readInt8=function(e,r){return e=e>>>0,r||b(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||b(e,4,this.length),H.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||b(e,4,this.length),H.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||b(e,8,this.length),H.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||b(e,8,this.length),H.read(this,e,!1,52,8)};function T(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;T(this,e,r,n,o,0)}var a=1,p=0;for(this[r]=e&255;++p<n&&(a*=256);)this[r+p]=e/a&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;T(this,e,r,n,o,0)}var a=n-1,p=1;for(this[r+a]=e&255;--a>=0&&(p*=256);)this[r+a]=e/p&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);T(this,e,r,n,o-1,-o)}var a=0,p=1,c=0;for(this[r]=e&255;++a<n&&(p*=256);)e<0&&c===0&&this[r+a-1]!==0&&(c=1),this[r+a]=(e/p>>0)-c&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);T(this,e,r,n,o-1,-o)}var a=n-1,p=1,c=0;for(this[r+a]=e&255;--a>=0&&(p*=256);)e<0&&c===0&&this[r+a+1]!==0&&(c=1),this[r+a]=(e/p>>0)-c&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ke(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ye(t,e,r,n,i){return e=+e,r=r>>>0,i||Ke(t,e,r,4,34028234663852886e22,-34028234663852886e22),H.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ye(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ye(this,e,r,!1,n)};function Ze(t,e,r,n,i){return e=+e,r=r>>>0,i||Ke(t,e,r,8,17976931348623157e292,-17976931348623157e292),H.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Ze(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Ze(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<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),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=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(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var p=s.isBuffer(e)?e:s.from(e,i),c=p.length;if(c===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=p[a%c]}return this};var st=/[^+/0-9A-Za-z-_]/g;function lt(t){if(t=t.split("=")[0],t=t.trim().replace(st,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ge(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function ct(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function pt(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Je(t){return pe.toByteArray(lt(t))}function ie(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function I(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function he(t){return t!==t}var ut=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var ir=re((Ft,nr)=>{l();var x=nr.exports={},R,E;function ye(){throw new Error("setTimeout has not been defined")}function xe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?R=setTimeout:R=ye}catch(t){R=ye}try{typeof clearTimeout=="function"?E=clearTimeout:E=xe}catch(t){E=xe}})();function er(t){if(R===setTimeout)return setTimeout(t,0);if((R===ye||!R)&&setTimeout)return R=setTimeout,setTimeout(t,0);try{return R(t,0)}catch(e){try{return R.call(null,t,0)}catch(r){return R.call(this,t,0)}}}function dt(t){if(E===clearTimeout)return clearTimeout(t);if((E===xe||!E)&&clearTimeout)return E=clearTimeout,clearTimeout(t);try{return E(t)}catch(e){try{return E.call(null,t)}catch(r){return E.call(this,t)}}}var C=[],z=!1,P,oe=-1;function gt(){!z||!P||(z=!1,P.length?C=P.concat(C):oe=-1,C.length&&rr())}function rr(){if(!z){var t=er(gt);z=!0;for(var e=C.length;e;){for(P=C,C=[];++oe<e;)P&&P[oe].run();oe=-1,e=C.length}P=null,z=!1,dt(t)}}x.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];C.push(new tr(t,e)),C.length===1&&!z&&er(rr)};function tr(t,e){this.fun=t,this.array=e}tr.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function B(){}x.on=B;x.addListener=B;x.once=B;x.off=B;x.removeListener=B;x.removeAllListeners=B;x.emit=B;x.prependListener=B;x.prependOnceListener=B;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 u,d,Ct,l=Cr(()=>{u=D(Qe()),d=D(ir()),Ct=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var St={};Br(St,{calculateFeeInFiat:()=>_t,calculateFeeLimit:()=>yt,denominate:()=>mt,formatAmount:()=>Z,getLedgerVersionOptions:()=>kt,getRemainingTime:()=>Fe,getUsdValue:()=>Ne,nominate:()=>ht,parseAmount:()=>Ee,pipe:()=>N,timeAgo:()=>Tt,timeRemaining:()=>wt,truncate:()=>vt});module.exports=Ur(St);l();l();l();l();l();l();l();var we=(n=>(n.SetGuardian="SetGuardian",n.GuardAccount="GuardAccount",n.UnGuardAccount="UnGuardAccount",n))(we||{});l();var be="1.0.8",Te="1.0.11",ve="1.0.15",Ae="1.0.17",ke="1.0.22",_e="1.0.23";l();l();l();l();l();l();l();l();l();var ft=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),j=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums");var or=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(or||{}),zt=V(V({},j.WindowProviderRequestEnums),or),ar=(e=>(e.reloginResponse="RELOGIN_RESPONSE",e))(ar||{}),jt=V(V({},j.WindowProviderResponseEnums),ar);l();l();l();l();l();l();var Se={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",extrasApiAddress:"https://devnet-extras-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://devnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},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",extrasApiAddress:"https://testnet-extras-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://testnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},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",extrasApiAddress:"https://extras-api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:sr,egldLabel:pn}=Se["devnet"],{chainId:lr,egldLabel:un}=Se["testnet"],{chainId:cr,egldLabel:dn}=Se["mainnet"];var gn={["devnet"]:sr,["testnet"]:lr,["mainnet"]:cr},fn={[sr]:"devnet",[lr]:"testnet",[cr]:"mainnet"};l();l();var L=require("@multiversx/sdk-web-wallet-provider");l();l();var Ie=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants");var pr,ur,Re=String((ur=(pr=Ie.safeWindow)==null?void 0:pr.navigator)==null?void 0:ur.userAgent),bn=/^((?!chrome|android).)*safari/i.test(Re),Tn=/firefox/i.test(Re)&&/windows/i.test(Re);var dr=5e4,gr=5e4,fr=1e9,_=18,G=4;var $="0";l();var U=D(require("bignumber.js"));l();var mr=D(require("bignumber.js")),ae=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new mr.default(r),i=!e||n.isGreaterThanOrEqualTo(0);return n.toString(10)===r&&i};l();function N(t){return{if:function(e){return e?{then:r=>r instanceof Function?N(r(t)):N(r)}:{then:()=>N(t)}},then:e=>e instanceof Function?N(e(t)):N(e),valueOf:function(){return t}}}U.default.config({ROUNDING_MODE:U.default.ROUND_FLOOR});function Z({input:t,decimals:e=_,digits:r=G,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:o=!1}){if(!ae(t,!1))throw new Error("Invalid input");let a=new U.default(t).isNegative(),p=t;return a&&(p=t.substring(1)),N(p).then(()=>new U.default(p).shiftedBy(-e).toFixed(e)).then(c=>{let f=new U.default(c);if(f.isZero())return $;let m=f.toString(10),[h,y]=m.split("."),w=new U.default(y||0),v=N(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(w.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),X=y&&r>=1&&r<=y.length&&w.isGreaterThan(0)&&new U.default(y.substring(0,r)).isZero(),_r=f.toFormat(v);return N(m).if(o).then(_r).if(Boolean(X)).then(J=>{let K=new U.default(h).isZero(),[k,Q]=J.split("."),ee=new Array(r-1).fill(0),Sr=[...ee,0].join(""),Ir=[...ee,1].join("");return K?i?`<${k}.${Ir}`:n?`${k}.${Q}`:k:`${k}.${Sr}`}).if(Boolean(!X&&y)).then(J=>{let[K]=J.split("."),k=y.substring(0,v);if(n){let Q=r-k.length;if(Q>0){let ee=Array(Q).fill(0).join("");return k=`${k}${ee}`,`${K}.${k}`}return J}return k?`${K}.${k}`:K}).valueOf()}).if(a).then(c=>`-${c}`).valueOf()}var hr=!1;function mt({input:t,denomination:e=_,decimals:r=G,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:o=!1}){return hr||(console.warn('!!! Be aware !!! The "denominate" function is deprecated. Please use "formatAmount" instead.'),hr=!0),Z({input:t,decimals:e,addCommas:o,digits:r,showIsLessThanDecimalsLabel:i,showLastNonZeroDecimal:n})}l();l();var se=require("@multiversx/sdk-core"),yr=D(require("bignumber.js"));function Ee(t,e=_){return new se.TokenTransfer({token:new se.Token({identifier:""}),amount:BigInt(new yr.default(t).shiftedBy(e).decimalPlaces(0).toFixed(0))}).toString()}var xr=!1;function ht(t,e=_){return xr||(console.warn('!!! Be aware !!! The "nominate" function is deprecated. Please use "parseAmount" instead.'),xr=!0),Ee(t,e)}l();var W=require("@multiversx/sdk-core"),vr=D(require("bignumber.js"));l();var wr=({data:t,onlySetGuardian:e})=>t?e?t.startsWith("SetGuardian"):Object.values(we).some(r=>t.startsWith(r)):!1;l();l();var Le=D(require("bignumber.js"));var br=t=>{if(isNaN(t)||t==null||String(t).includes("Infinity"))return!1;let[e,r]=t.split("."),n=Le.default.clone();if(r){let p=r.split("").every(c=>!isNaN(parseInt(c)));for(n.set({DECIMAL_PLACES:p?r.length:Le.default.config().DECIMAL_PLACES});r.charAt(r.length-1)===$;)r=r.slice(0,-1)}let i=r?[e,r].join("."):e,o=n(i);return o.toString(10)===i&&o.isGreaterThanOrEqualTo(0)};l();l();var Tr={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function yt({minGasLimit:t=String(dr),gasLimit:e,gasPrice:r,data:n,gasPerDataByte:i,gasPriceModifier:o,defaultGasPrice:a=String(fr),chainId:p}){let c=n||"",f=ae(e)?e:t,m=wr({data:c})?gr:0,h=new vr.default(f).plus(m).toNumber(),y=br(r)?r:a,w=new W.Transaction({nonce:BigInt(0),value:BigInt(0),receiver:new W.Address(Tr.to),sender:new W.Address(Tr.to),gasPrice:BigInt(parseInt(y)),gasLimit:BigInt(h),data:u.Buffer.from(c.trim()),chainID:p,version:1});try{return new W.TransactionComputer().computeTransactionFee(w,{gasPerDataByte:BigInt(i),minGasLimit:BigInt(t),gasPriceModifier:parseFloat(o),chainID:p}).toString(10)}catch(v){return console.error(v),$}}l();var Ne=({amount:t,usd:e,decimals:r=2,addEqualSign:n})=>{let i=(parseFloat(t)*e).toFixed(r),o=parseFloat(i).toLocaleString("en",{maximumFractionDigits:r,minimumFractionDigits:r}),a=parseFloat(t)>0?"\u2248":"=";return`${n?`${a} `:""}$${o}`};l();function Fe(t){let e=Math.floor(t/864e5),r=t%(24*60*60*1e3),n=Math.floor(r/(60*60*1e3)),i=r%(60*60*1e3),o=Math.floor(i/(60*1e3)),a=i%(60*1e3),p=Math.floor(a/1e3),c=p+" sec",f=o+" min",m=n+" hr",h=e+" day";if(p>1&&(c=p+" sec"),o>1&&(f=o+" min"),n>1&&(m=n+" hrs"),e>1&&(h=e+" days"),e>=1)return h+" "+m;if(n>=1){let y=o===0?"":" "+f;return m+y}if(o>=1){let y=p===0?"":" "+c;return f+y}return c}function kr(t){let e=t.split(" ");return e.length>1?`${e[0]} ${e[1]}`:t}var Ar=(t=new Date,e=0)=>Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()+e,t.getUTCMilliseconds());function xt(t){let e=new Date,r=Ar(e),n=Ar(e,t);return Math.max(n-r,0)}function wt(t,e=!0){let r=xt(t),n=Fe(r);return e?kr(n):n}function bt(t){let r=new Date().getTime()-t;return Math.max(r,0)}function Tt(t,e=!0){let r=bt(t),n=Fe(r);return e?kr(n):n}l();function vt(t,e,r="..."){return isNaN(e)&&(e=10),r||(r="..."),t!=null&&(t.length<=e||t.length-r.length<=e)?t:String(t).substring(0,e-r.length)+r}l();l();function At(t,e){let r,n,i=/(\.0+)+$/,o=t.replace(i,"").split("."),a=e.replace(i,"").split("."),p=Math.min(o.length,a.length);for(r=0;r<p;r++)if(n=parseInt(o[r],10)-parseInt(a[r],10),n)return n;return o.length-a.length}function kt(t){let e=[be,Te,ve,Ae,ke,_e,t].sort((f,m)=>At(f,m)),r=e.indexOf(be),n=e.indexOf(Te),i=e.indexOf(ve),o=e.indexOf(Ae),a=e.indexOf(ke),p=e.indexOf(_e),c=e.indexOf(t);return{ledgerWithMultiAccount:c>=r,ledgerWithHashSign:c>=n,ledgerWithSignAuthToken:c>=i,ledgerWithWhitelistedTokens:c>=o,ledgerWithGuardians:c>=a,ledgerWithUsernames:c>=p}}l();var _t=({feeLimit:t,egldPriceInUsd:e,hideEqualSign:r})=>{let n=Z({input:t,decimals:_,digits:G,showLastNonZeroDecimal:!0}),i=Ne({amount:n,usd:e,decimals:G});return r?i:`\u2248 ${i}`};0&&(module.exports={calculateFeeInFiat,calculateFeeLimit,denominate,formatAmount,getLedgerVersionOptions,getRemainingTime,getUsdValue,nominate,parseAmount,pipe,timeAgo,timeRemaining,truncate});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var je=Object.create;var M=Object.defineProperty;var Xe=Object.getOwnPropertyDescriptor;var Ye=Object.getOwnPropertyNames,ce=Object.getOwnPropertySymbols,Ke=Object.getPrototypeOf,ue=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable;var pe=(t,e,r)=>e in t?M(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,G=(t,e)=>{for(var r in e||(e={}))ue.call(e,r)&&pe(t,r,e[r]);if(ce)for(var r of ce(e))Je.call(e,r)&&pe(t,r,e[r]);return t};var Ze=(t,e)=>()=>(t&&(e=t(t=0)),e);var W=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Qe=(t,e)=>{for(var r in e)M(t,r,{get:e[r],enumerable:!0})},de=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ye(e))!ue.call(t,i)&&i!==r&&M(t,i,{get:()=>e[i],enumerable:!(n=Xe(e,i))||n.enumerable});return t};var Y=(t,e,r)=>(r=t!=null?je(Ke(t)):{},de(e||!t||!t.__esModule?M(r,"default",{value:t,enumerable:!0}):r,t)),$e=t=>de(M({},"__esModule",{value:!0}),t);var me=W(V=>{"use strict";l();V.byteLength=rr;V.toByteArray=nr;V.fromByteArray=ar;var k=[],v=[],er=typeof Uint8Array!="undefined"?Uint8Array:Array,K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(N=0,ge=K.length;N<ge;++N)k[N]=K[N],v[K.charCodeAt(N)]=N;var N,ge;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function fe(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function rr(t){var e=fe(t),r=e[0],n=e[1];return(r+n)*3/4-n}function tr(t,e,r){return(e+r)*3/4-r}function nr(t){var e,r=fe(t),n=r[0],i=r[1],o=new er(tr(t,n,i)),a=0,c=i>0?n-4:n,p;for(p=0;p<c;p+=4)e=v[t.charCodeAt(p)]<<18|v[t.charCodeAt(p+1)]<<12|v[t.charCodeAt(p+2)]<<6|v[t.charCodeAt(p+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=v[t.charCodeAt(p)]<<2|v[t.charCodeAt(p+1)]>>4,o[a++]=e&255),i===1&&(e=v[t.charCodeAt(p)]<<10|v[t.charCodeAt(p+1)]<<4|v[t.charCodeAt(p+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function ir(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function or(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(ir(n));return i.join("")}function ar(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(or(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var he=W(J=>{l();J.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,p=(1<<c)-1,d=p>>1,g=-7,u=r?i-1:0,T=r?-1:1,b=t[e+u];for(u+=T,o=b&(1<<-g)-1,b>>=-g,g+=c;g>0;o=o*256+t[e+u],u+=T,g-=8);for(a=o&(1<<-g)-1,o>>=-g,g+=n;g>0;a=a*256+t[e+u],u+=T,g-=8);if(o===0)o=1-d;else{if(o===p)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-d}return(b?-1:1)*a*Math.pow(2,o-n)};J.write=function(t,e,r,n,i,o){var a,c,p,d=o*8-i-1,g=(1<<d)-1,u=g>>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:o-1,B=n?1:-1,ze=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=g):(a=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+u>=1?e+=T/p:e+=T*Math.pow(2,1-u),e*p>=2&&(a++,p/=2),a+u>=g?(c=0,a=g):a+u>=1?(c=(e*p-1)*Math.pow(2,i),a=a+u):(c=e*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;t[r+b]=c&255,b+=B,c/=256,i-=8);for(a=a<<i|c,d+=i;d>0;t[r+b]=a&255,b+=B,a/=256,d-=8);t[r+b-B]|=ze*128}});var Le=W(D=>{"use strict";l();var Z=me(),U=he(),ye=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;D.Buffer=s;D.SlowBuffer=dr;D.INSPECT_MAX_BYTES=50;var H=2147483647;D.kMaxLength=H;s.TYPED_ARRAY_SUPPORT=sr();!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 sr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){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 I(t){if(t>H)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return re(t)}return be(t,e,r)}s.poolSize=8192;function be(t,e,r){if(typeof t=="string")return cr(t,e);if(ArrayBuffer.isView(t))return pr(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(A(t,ArrayBuffer)||t&&A(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(A(t,SharedArrayBuffer)||t&&A(t.buffer,SharedArrayBuffer)))return $(t,e,r);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,e,r);var i=ur(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);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,e,r){return be(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function ve(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 lr(t,e,r){return ve(t),t<=0?I(t):e!==void 0?typeof r=="string"?I(t).fill(e,r):I(t).fill(e):I(t)}s.alloc=function(t,e,r){return lr(t,e,r)};function re(t){return ve(t),I(t<0?0:te(t)|0)}s.allocUnsafe=function(t){return re(t)};s.allocUnsafeSlow=function(t){return re(t)};function cr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Te(t,e)|0,n=I(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Q(t){for(var e=t.length<0?0:te(t.length)|0,r=I(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function pr(t){if(A(t,Uint8Array)){var e=new Uint8Array(t);return $(e.buffer,e.byteOffset,e.byteLength)}return Q(t)}function $(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function ur(t){if(s.isBuffer(t)){var e=te(t.length)|0,r=I(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ne(t.length)?I(0):Q(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Q(t.data)}function te(t){if(t>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return t|0}function dr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),A(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,a=Math.min(n,i);o<a;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).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(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[n];if(A(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 Te(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||A(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 r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ee(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ie(t).length;default:if(i)return n?-1:ee(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=Te;function gr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return kr(this,e,r);case"utf8":case"utf-8":return Ae(this,e,r);case"ascii":return vr(this,e,r);case"latin1":case"binary":return Tr(this,e,r);case"base64":return wr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ar(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function F(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)F(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)F(this,r,r+3),F(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)F(this,r,r+7),F(this,r+1,r+6),F(this,r+2,r+5),F(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Ae(this,0,e):gr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=D.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};ye&&(s.prototype[ye]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,o){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,c=n-r,p=Math.min(a,c),d=this.slice(i,o),g=e.slice(r,n),u=0;u<p;++u)if(d[u]!==g[u]){a=d[u],c=g[u];break}return a<c?-1:c<a?1:0};function ke(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ne(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:xe(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):xe(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function xe(t,e,r,n,i){var o=1,a=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,r/=2}function p(b,B){return o===1?b[B]:b.readUInt16BE(B*o)}var d;if(i){var g=-1;for(d=r;d<a;d++)if(p(t,d)===p(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*o}else g!==-1&&(d-=d-g),g=-1}else for(r+c>a&&(r=a-c),d=r;d>=0;d--){for(var u=!0,T=0;T<c;T++)if(p(t,d+T)!==p(e,T)){u=!1;break}if(u)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return ke(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return ke(this,e,r,n,!1)};function fr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var c=parseInt(e.substr(a*2,2),16);if(ne(c))return a;t[r+a]=c}return a}function mr(t,e,r,n){return q(ee(e,t.length-r),t,r,n)}function hr(t,e,r,n){return q(Sr(e),t,r,n)}function yr(t,e,r,n){return q(Ie(e),t,r,n)}function xr(t,e,r,n){return q(Ir(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>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-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return fr(this,e,r,n);case"utf8":case"utf-8":return mr(this,e,r,n);case"ascii":case"latin1":case"binary":return hr(this,e,r,n);case"base64":return yr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xr(this,e,r,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 wr(t,e,r){return e===0&&r===t.length?Z.fromByteArray(t):Z.fromByteArray(t.slice(e,r))}function Ae(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,c=o>239?4:o>223?3:o>191?2:1;if(i+c<=r){var p,d,g,u;switch(c){case 1:o<128&&(a=o);break;case 2:p=t[i+1],(p&192)===128&&(u=(o&31)<<6|p&63,u>127&&(a=u));break;case 3:p=t[i+1],d=t[i+2],(p&192)===128&&(d&192)===128&&(u=(o&15)<<12|(p&63)<<6|d&63,u>2047&&(u<55296||u>57343)&&(a=u));break;case 4:p=t[i+1],d=t[i+2],g=t[i+3],(p&192)===128&&(d&192)===128&&(g&192)===128&&(u=(o&15)<<18|(p&63)<<12|(d&63)<<6|g&63,u>65535&&u<1114112&&(a=u))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=c}return br(n)}var we=4096;function br(t){var e=t.length;if(e<=we)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=we));return r}function vr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function Tr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function kr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Lr[t[o]];return i}function Ar(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),U.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),U.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),U.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),U.read(this,e,!1,52,8)};function w(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=1,c=0;for(this[r]=e&255;++c<n&&(a*=256);)this[r+c]=e/a&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=n-1,c=1;for(this[r+a]=e&255;--a>=0&&(c*=256);)this[r+a]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=0,c=1,p=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&p===0&&this[r+a-1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=n-1,c=1,p=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&p===0&&this[r+a+1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function _e(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Re(t,e,r,n,i){return e=+e,r=r>>>0,i||_e(t,e,r,4,34028234663852886e22,-34028234663852886e22),U.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Re(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Re(this,e,r,!1,n)};function Se(t,e,r,n,i){return e=+e,r=r>>>0,i||_e(t,e,r,8,17976931348623157e292,-17976931348623157e292),U.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Se(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Se(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<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),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=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(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),p=c.length;if(p===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%p]}return this};var _r=/[^+/0-9A-Za-z-_]/g;function Rr(t){if(t=t.split("=")[0],t=t.trim().replace(_r,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ee(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function Sr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Ir(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Ie(t){return Z.toByteArray(Rr(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function A(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ne(t){return t!==t}var Lr=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Be=W((Mr,Ce)=>{l();var y=Ce.exports={},_,R;function ie(){throw new Error("setTimeout has not been defined")}function oe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_=setTimeout:_=ie}catch(t){_=ie}try{typeof clearTimeout=="function"?R=clearTimeout:R=oe}catch(t){R=oe}})();function Ee(t){if(_===setTimeout)return setTimeout(t,0);if((_===ie||!_)&&setTimeout)return _=setTimeout,setTimeout(t,0);try{return _(t,0)}catch(e){try{return _.call(null,t,0)}catch(r){return _.call(this,t,0)}}}function Er(t){if(R===clearTimeout)return clearTimeout(t);if((R===oe||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(t);try{return R(t)}catch(e){try{return R.call(null,t)}catch(r){return R.call(this,t)}}}var L=[],O=!1,C,z=-1;function Nr(){!O||!C||(O=!1,C.length?L=C.concat(L):z=-1,L.length&&Ne())}function Ne(){if(!O){var t=Ee(Nr);O=!0;for(var e=L.length;e;){for(C=L,L=[];++z<e;)C&&C[z].run();z=-1,e=L.length}C=null,O=!1,Er(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];L.push(new Fe(t,e)),L.length===1&&!O&&Ee(Ne)};function Fe(t,e){this.fun=t,this.array=e}Fe.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function E(){}y.on=E;y.addListener=E;y.once=E;y.off=E;y.removeListener=E;y.removeAllListeners=E;y.emit=E;y.prependListener=E;y.prependOnceListener=E;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var f,m,Gr,l=Ze(()=>{f=Y(Le()),m=Y(Be()),Gr=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Br={};Qe(Br,{nominate:()=>Cr});module.exports=$e(Br);l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();var Fr=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),P=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums");var Ue=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(Ue||{}),Qr=G(G({},P.WindowProviderRequestEnums),Ue),De=(e=>(e.reloginResponse="RELOGIN_RESPONSE",e))(De||{}),$r=G(G({},P.WindowProviderResponseEnums),De);l();l();l();l();l();l();var 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",extrasApiAddress:"https://devnet-extras-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://devnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},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",extrasApiAddress:"https://testnet-extras-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://testnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},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",extrasApiAddress:"https://extras-api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:Oe,egldLabel:ht}=ae["devnet"],{chainId:Pe,egldLabel:yt}=ae["testnet"],{chainId:Me,egldLabel:xt}=ae["mainnet"];var wt={["devnet"]:Oe,["testnet"]:Pe,["mainnet"]:Me},bt={[Oe]:"devnet",[Pe]:"testnet",[Me]:"mainnet"};l();l();var S=require("@multiversx/sdk-web-wallet-provider");l();l();var se=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants");var Ge,We,le=String((We=(Ge=se.safeWindow)==null?void 0:Ge.navigator)==null?void 0:We.userAgent),Rt=/^((?!chrome|android).)*safari/i.test(le),St=/firefox/i.test(le)&&/windows/i.test(le);var j=18;l();var X=require("@multiversx/sdk-core"),Ve=Y(require("bignumber.js"));function He(t,e=j){return new X.TokenTransfer({token:new X.Token({identifier:""}),amount:BigInt(new Ve.default(t).shiftedBy(e).decimalPlaces(0).toString())}).toString()}var qe=!1;function Cr(t,e=j){return qe||(console.warn('!!! Be aware !!! The "nominate" function is deprecated. Please use "parseAmount" instead.'),qe=!0),He(t,e)}0&&(module.exports={nominate});
|
|
1
|
+
"use strict";var je=Object.create;var M=Object.defineProperty;var Xe=Object.getOwnPropertyDescriptor;var Ye=Object.getOwnPropertyNames,ce=Object.getOwnPropertySymbols,Ke=Object.getPrototypeOf,ue=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable;var pe=(t,e,r)=>e in t?M(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,G=(t,e)=>{for(var r in e||(e={}))ue.call(e,r)&&pe(t,r,e[r]);if(ce)for(var r of ce(e))Je.call(e,r)&&pe(t,r,e[r]);return t};var Ze=(t,e)=>()=>(t&&(e=t(t=0)),e);var W=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Qe=(t,e)=>{for(var r in e)M(t,r,{get:e[r],enumerable:!0})},de=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ye(e))!ue.call(t,i)&&i!==r&&M(t,i,{get:()=>e[i],enumerable:!(n=Xe(e,i))||n.enumerable});return t};var Y=(t,e,r)=>(r=t!=null?je(Ke(t)):{},de(e||!t||!t.__esModule?M(r,"default",{value:t,enumerable:!0}):r,t)),$e=t=>de(M({},"__esModule",{value:!0}),t);var me=W(V=>{"use strict";l();V.byteLength=rr;V.toByteArray=nr;V.fromByteArray=ar;var k=[],v=[],er=typeof Uint8Array!="undefined"?Uint8Array:Array,K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(N=0,ge=K.length;N<ge;++N)k[N]=K[N],v[K.charCodeAt(N)]=N;var N,ge;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function fe(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function rr(t){var e=fe(t),r=e[0],n=e[1];return(r+n)*3/4-n}function tr(t,e,r){return(e+r)*3/4-r}function nr(t){var e,r=fe(t),n=r[0],i=r[1],o=new er(tr(t,n,i)),a=0,c=i>0?n-4:n,p;for(p=0;p<c;p+=4)e=v[t.charCodeAt(p)]<<18|v[t.charCodeAt(p+1)]<<12|v[t.charCodeAt(p+2)]<<6|v[t.charCodeAt(p+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=v[t.charCodeAt(p)]<<2|v[t.charCodeAt(p+1)]>>4,o[a++]=e&255),i===1&&(e=v[t.charCodeAt(p)]<<10|v[t.charCodeAt(p+1)]<<4|v[t.charCodeAt(p+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function ir(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function or(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(ir(n));return i.join("")}function ar(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(or(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var he=W(J=>{l();J.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,p=(1<<c)-1,d=p>>1,g=-7,u=r?i-1:0,T=r?-1:1,b=t[e+u];for(u+=T,o=b&(1<<-g)-1,b>>=-g,g+=c;g>0;o=o*256+t[e+u],u+=T,g-=8);for(a=o&(1<<-g)-1,o>>=-g,g+=n;g>0;a=a*256+t[e+u],u+=T,g-=8);if(o===0)o=1-d;else{if(o===p)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-d}return(b?-1:1)*a*Math.pow(2,o-n)};J.write=function(t,e,r,n,i,o){var a,c,p,d=o*8-i-1,g=(1<<d)-1,u=g>>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:o-1,B=n?1:-1,ze=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=g):(a=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+u>=1?e+=T/p:e+=T*Math.pow(2,1-u),e*p>=2&&(a++,p/=2),a+u>=g?(c=0,a=g):a+u>=1?(c=(e*p-1)*Math.pow(2,i),a=a+u):(c=e*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;t[r+b]=c&255,b+=B,c/=256,i-=8);for(a=a<<i|c,d+=i;d>0;t[r+b]=a&255,b+=B,a/=256,d-=8);t[r+b-B]|=ze*128}});var Le=W(D=>{"use strict";l();var Z=me(),U=he(),ye=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;D.Buffer=s;D.SlowBuffer=dr;D.INSPECT_MAX_BYTES=50;var H=2147483647;D.kMaxLength=H;s.TYPED_ARRAY_SUPPORT=sr();!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 sr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){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 I(t){if(t>H)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return re(t)}return be(t,e,r)}s.poolSize=8192;function be(t,e,r){if(typeof t=="string")return cr(t,e);if(ArrayBuffer.isView(t))return pr(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(A(t,ArrayBuffer)||t&&A(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(A(t,SharedArrayBuffer)||t&&A(t.buffer,SharedArrayBuffer)))return $(t,e,r);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,e,r);var i=ur(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);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,e,r){return be(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function ve(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 lr(t,e,r){return ve(t),t<=0?I(t):e!==void 0?typeof r=="string"?I(t).fill(e,r):I(t).fill(e):I(t)}s.alloc=function(t,e,r){return lr(t,e,r)};function re(t){return ve(t),I(t<0?0:te(t)|0)}s.allocUnsafe=function(t){return re(t)};s.allocUnsafeSlow=function(t){return re(t)};function cr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Te(t,e)|0,n=I(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Q(t){for(var e=t.length<0?0:te(t.length)|0,r=I(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function pr(t){if(A(t,Uint8Array)){var e=new Uint8Array(t);return $(e.buffer,e.byteOffset,e.byteLength)}return Q(t)}function $(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function ur(t){if(s.isBuffer(t)){var e=te(t.length)|0,r=I(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ne(t.length)?I(0):Q(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Q(t.data)}function te(t){if(t>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return t|0}function dr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),A(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,a=Math.min(n,i);o<a;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).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(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[n];if(A(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 Te(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||A(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 r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ee(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ie(t).length;default:if(i)return n?-1:ee(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=Te;function gr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return kr(this,e,r);case"utf8":case"utf-8":return Ae(this,e,r);case"ascii":return vr(this,e,r);case"latin1":case"binary":return Tr(this,e,r);case"base64":return wr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ar(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function F(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)F(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)F(this,r,r+3),F(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)F(this,r,r+7),F(this,r+1,r+6),F(this,r+2,r+5),F(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Ae(this,0,e):gr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=D.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};ye&&(s.prototype[ye]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,o){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,c=n-r,p=Math.min(a,c),d=this.slice(i,o),g=e.slice(r,n),u=0;u<p;++u)if(d[u]!==g[u]){a=d[u],c=g[u];break}return a<c?-1:c<a?1:0};function ke(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ne(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:xe(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):xe(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function xe(t,e,r,n,i){var o=1,a=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,r/=2}function p(b,B){return o===1?b[B]:b.readUInt16BE(B*o)}var d;if(i){var g=-1;for(d=r;d<a;d++)if(p(t,d)===p(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*o}else g!==-1&&(d-=d-g),g=-1}else for(r+c>a&&(r=a-c),d=r;d>=0;d--){for(var u=!0,T=0;T<c;T++)if(p(t,d+T)!==p(e,T)){u=!1;break}if(u)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return ke(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return ke(this,e,r,n,!1)};function fr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var c=parseInt(e.substr(a*2,2),16);if(ne(c))return a;t[r+a]=c}return a}function mr(t,e,r,n){return q(ee(e,t.length-r),t,r,n)}function hr(t,e,r,n){return q(Sr(e),t,r,n)}function yr(t,e,r,n){return q(Ie(e),t,r,n)}function xr(t,e,r,n){return q(Ir(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>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-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return fr(this,e,r,n);case"utf8":case"utf-8":return mr(this,e,r,n);case"ascii":case"latin1":case"binary":return hr(this,e,r,n);case"base64":return yr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xr(this,e,r,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 wr(t,e,r){return e===0&&r===t.length?Z.fromByteArray(t):Z.fromByteArray(t.slice(e,r))}function Ae(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,c=o>239?4:o>223?3:o>191?2:1;if(i+c<=r){var p,d,g,u;switch(c){case 1:o<128&&(a=o);break;case 2:p=t[i+1],(p&192)===128&&(u=(o&31)<<6|p&63,u>127&&(a=u));break;case 3:p=t[i+1],d=t[i+2],(p&192)===128&&(d&192)===128&&(u=(o&15)<<12|(p&63)<<6|d&63,u>2047&&(u<55296||u>57343)&&(a=u));break;case 4:p=t[i+1],d=t[i+2],g=t[i+3],(p&192)===128&&(d&192)===128&&(g&192)===128&&(u=(o&15)<<18|(p&63)<<12|(d&63)<<6|g&63,u>65535&&u<1114112&&(a=u))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=c}return br(n)}var we=4096;function br(t){var e=t.length;if(e<=we)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=we));return r}function vr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function Tr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function kr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Lr[t[o]];return i}function Ar(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),U.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),U.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),U.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),U.read(this,e,!1,52,8)};function w(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=1,c=0;for(this[r]=e&255;++c<n&&(a*=256);)this[r+c]=e/a&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=n-1,c=1;for(this[r+a]=e&255;--a>=0&&(c*=256);)this[r+a]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=0,c=1,p=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&p===0&&this[r+a-1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=n-1,c=1,p=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&p===0&&this[r+a+1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function _e(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Re(t,e,r,n,i){return e=+e,r=r>>>0,i||_e(t,e,r,4,34028234663852886e22,-34028234663852886e22),U.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Re(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Re(this,e,r,!1,n)};function Se(t,e,r,n,i){return e=+e,r=r>>>0,i||_e(t,e,r,8,17976931348623157e292,-17976931348623157e292),U.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Se(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Se(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<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),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=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(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),p=c.length;if(p===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%p]}return this};var _r=/[^+/0-9A-Za-z-_]/g;function Rr(t){if(t=t.split("=")[0],t=t.trim().replace(_r,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ee(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function Sr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Ir(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Ie(t){return Z.toByteArray(Rr(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function A(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ne(t){return t!==t}var Lr=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Be=W((Mr,Ce)=>{l();var y=Ce.exports={},_,R;function ie(){throw new Error("setTimeout has not been defined")}function oe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_=setTimeout:_=ie}catch(t){_=ie}try{typeof clearTimeout=="function"?R=clearTimeout:R=oe}catch(t){R=oe}})();function Ee(t){if(_===setTimeout)return setTimeout(t,0);if((_===ie||!_)&&setTimeout)return _=setTimeout,setTimeout(t,0);try{return _(t,0)}catch(e){try{return _.call(null,t,0)}catch(r){return _.call(this,t,0)}}}function Er(t){if(R===clearTimeout)return clearTimeout(t);if((R===oe||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(t);try{return R(t)}catch(e){try{return R.call(null,t)}catch(r){return R.call(this,t)}}}var L=[],O=!1,C,z=-1;function Nr(){!O||!C||(O=!1,C.length?L=C.concat(L):z=-1,L.length&&Ne())}function Ne(){if(!O){var t=Ee(Nr);O=!0;for(var e=L.length;e;){for(C=L,L=[];++z<e;)C&&C[z].run();z=-1,e=L.length}C=null,O=!1,Er(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];L.push(new Fe(t,e)),L.length===1&&!O&&Ee(Ne)};function Fe(t,e){this.fun=t,this.array=e}Fe.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function E(){}y.on=E;y.addListener=E;y.once=E;y.off=E;y.removeListener=E;y.removeAllListeners=E;y.emit=E;y.prependListener=E;y.prependOnceListener=E;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var f,m,Gr,l=Ze(()=>{f=Y(Le()),m=Y(Be()),Gr=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Br={};Qe(Br,{nominate:()=>Cr});module.exports=$e(Br);l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();var Fr=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),P=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums");var Ue=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(Ue||{}),Qr=G(G({},P.WindowProviderRequestEnums),Ue),De=(e=>(e.reloginResponse="RELOGIN_RESPONSE",e))(De||{}),$r=G(G({},P.WindowProviderResponseEnums),De);l();l();l();l();l();l();var 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",extrasApiAddress:"https://devnet-extras-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://devnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},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",extrasApiAddress:"https://testnet-extras-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://testnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},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",extrasApiAddress:"https://extras-api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:Oe,egldLabel:ht}=ae["devnet"],{chainId:Pe,egldLabel:yt}=ae["testnet"],{chainId:Me,egldLabel:xt}=ae["mainnet"];var wt={["devnet"]:Oe,["testnet"]:Pe,["mainnet"]:Me},bt={[Oe]:"devnet",[Pe]:"testnet",[Me]:"mainnet"};l();l();var S=require("@multiversx/sdk-web-wallet-provider");l();l();var se=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants");var Ge,We,le=String((We=(Ge=se.safeWindow)==null?void 0:Ge.navigator)==null?void 0:We.userAgent),Rt=/^((?!chrome|android).)*safari/i.test(le),St=/firefox/i.test(le)&&/windows/i.test(le);var j=18;l();var X=require("@multiversx/sdk-core"),Ve=Y(require("bignumber.js"));function He(t,e=j){return new X.TokenTransfer({token:new X.Token({identifier:""}),amount:BigInt(new Ve.default(t).shiftedBy(e).decimalPlaces(0).toFixed(0))}).toString()}var qe=!1;function Cr(t,e=j){return qe||(console.warn('!!! Be aware !!! The "nominate" function is deprecated. Please use "parseAmount" instead.'),qe=!0),He(t,e)}0&&(module.exports={nominate});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var qe=Object.create;var M=Object.defineProperty;var ze=Object.getOwnPropertyDescriptor;var je=Object.getOwnPropertyNames,le=Object.getOwnPropertySymbols,Xe=Object.getPrototypeOf,pe=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable;var ce=(t,e,r)=>e in t?M(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,G=(t,e)=>{for(var r in e||(e={}))pe.call(e,r)&&ce(t,r,e[r]);if(le)for(var r of le(e))Ye.call(e,r)&&ce(t,r,e[r]);return t};var Ke=(t,e)=>()=>(t&&(e=t(t=0)),e);var W=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Je=(t,e)=>{for(var r in e)M(t,r,{get:e[r],enumerable:!0})},ue=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of je(e))!pe.call(t,i)&&i!==r&&M(t,i,{get:()=>e[i],enumerable:!(n=ze(e,i))||n.enumerable});return t};var X=(t,e,r)=>(r=t!=null?qe(Xe(t)):{},ue(e||!t||!t.__esModule?M(r,"default",{value:t,enumerable:!0}):r,t)),Ze=t=>ue(M({},"__esModule",{value:!0}),t);var fe=W(V=>{"use strict";l();V.byteLength=$e;V.toByteArray=rr;V.fromByteArray=ir;var k=[],v=[],Qe=typeof Uint8Array!="undefined"?Uint8Array:Array,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(N=0,de=Y.length;N<de;++N)k[N]=Y[N],v[Y.charCodeAt(N)]=N;var N,de;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function ge(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function $e(t){var e=ge(t),r=e[0],n=e[1];return(r+n)*3/4-n}function er(t,e,r){return(e+r)*3/4-r}function rr(t){var e,r=ge(t),n=r[0],i=r[1],o=new Qe(er(t,n,i)),a=0,c=i>0?n-4:n,p;for(p=0;p<c;p+=4)e=v[t.charCodeAt(p)]<<18|v[t.charCodeAt(p+1)]<<12|v[t.charCodeAt(p+2)]<<6|v[t.charCodeAt(p+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=v[t.charCodeAt(p)]<<2|v[t.charCodeAt(p+1)]>>4,o[a++]=e&255),i===1&&(e=v[t.charCodeAt(p)]<<10|v[t.charCodeAt(p+1)]<<4|v[t.charCodeAt(p+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function tr(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function nr(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(tr(n));return i.join("")}function ir(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(nr(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var me=W(K=>{l();K.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,p=(1<<c)-1,d=p>>1,g=-7,u=r?i-1:0,T=r?-1:1,b=t[e+u];for(u+=T,o=b&(1<<-g)-1,b>>=-g,g+=c;g>0;o=o*256+t[e+u],u+=T,g-=8);for(a=o&(1<<-g)-1,o>>=-g,g+=n;g>0;a=a*256+t[e+u],u+=T,g-=8);if(o===0)o=1-d;else{if(o===p)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-d}return(b?-1:1)*a*Math.pow(2,o-n)};K.write=function(t,e,r,n,i,o){var a,c,p,d=o*8-i-1,g=(1<<d)-1,u=g>>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:o-1,B=n?1:-1,He=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=g):(a=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+u>=1?e+=T/p:e+=T*Math.pow(2,1-u),e*p>=2&&(a++,p/=2),a+u>=g?(c=0,a=g):a+u>=1?(c=(e*p-1)*Math.pow(2,i),a=a+u):(c=e*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;t[r+b]=c&255,b+=B,c/=256,i-=8);for(a=a<<i|c,d+=i;d>0;t[r+b]=a&255,b+=B,a/=256,d-=8);t[r+b-B]|=He*128}});var Ie=W(D=>{"use strict";l();var J=fe(),U=me(),he=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;D.Buffer=s;D.SlowBuffer=pr;D.INSPECT_MAX_BYTES=50;var H=2147483647;D.kMaxLength=H;s.TYPED_ARRAY_SUPPORT=or();!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 or(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){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 I(t){if(t>H)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ee(t)}return we(t,e,r)}s.poolSize=8192;function we(t,e,r){if(typeof t=="string")return sr(t,e);if(ArrayBuffer.isView(t))return lr(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(A(t,ArrayBuffer)||t&&A(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(A(t,SharedArrayBuffer)||t&&A(t.buffer,SharedArrayBuffer)))return Q(t,e,r);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,e,r);var i=cr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);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,e,r){return we(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function be(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 ar(t,e,r){return be(t),t<=0?I(t):e!==void 0?typeof r=="string"?I(t).fill(e,r):I(t).fill(e):I(t)}s.alloc=function(t,e,r){return ar(t,e,r)};function ee(t){return be(t),I(t<0?0:re(t)|0)}s.allocUnsafe=function(t){return ee(t)};s.allocUnsafeSlow=function(t){return ee(t)};function sr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=ve(t,e)|0,n=I(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Z(t){for(var e=t.length<0?0:re(t.length)|0,r=I(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function lr(t){if(A(t,Uint8Array)){var e=new Uint8Array(t);return Q(e.buffer,e.byteOffset,e.byteLength)}return Z(t)}function Q(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function cr(t){if(s.isBuffer(t)){var e=re(t.length)|0,r=I(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||te(t.length)?I(0):Z(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Z(t.data)}function re(t){if(t>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return t|0}function pr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),A(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,a=Math.min(n,i);o<a;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).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(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[n];if(A(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 ve(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||A(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 r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Se(t).length;default:if(i)return n?-1:$(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=ve;function ur(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return vr(this,e,r);case"utf8":case"utf-8":return ke(this,e,r);case"ascii":return wr(this,e,r);case"latin1":case"binary":return br(this,e,r);case"base64":return yr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Tr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function F(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)F(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)F(this,r,r+3),F(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)F(this,r,r+7),F(this,r+1,r+6),F(this,r+2,r+5),F(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?ke(this,0,e):ur.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=D.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};he&&(s.prototype[he]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,o){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,c=n-r,p=Math.min(a,c),d=this.slice(i,o),g=e.slice(r,n),u=0;u<p;++u)if(d[u]!==g[u]){a=d[u],c=g[u];break}return a<c?-1:c<a?1:0};function Te(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,te(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:ye(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):ye(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ye(t,e,r,n,i){var o=1,a=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,r/=2}function p(b,B){return o===1?b[B]:b.readUInt16BE(B*o)}var d;if(i){var g=-1;for(d=r;d<a;d++)if(p(t,d)===p(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*o}else g!==-1&&(d-=d-g),g=-1}else for(r+c>a&&(r=a-c),d=r;d>=0;d--){for(var u=!0,T=0;T<c;T++)if(p(t,d+T)!==p(e,T)){u=!1;break}if(u)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return Te(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return Te(this,e,r,n,!1)};function dr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var c=parseInt(e.substr(a*2,2),16);if(te(c))return a;t[r+a]=c}return a}function gr(t,e,r,n){return q($(e,t.length-r),t,r,n)}function fr(t,e,r,n){return q(_r(e),t,r,n)}function mr(t,e,r,n){return q(Se(e),t,r,n)}function hr(t,e,r,n){return q(Rr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>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-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return dr(this,e,r,n);case"utf8":case"utf-8":return gr(this,e,r,n);case"ascii":case"latin1":case"binary":return fr(this,e,r,n);case"base64":return mr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return hr(this,e,r,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 yr(t,e,r){return e===0&&r===t.length?J.fromByteArray(t):J.fromByteArray(t.slice(e,r))}function ke(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,c=o>239?4:o>223?3:o>191?2:1;if(i+c<=r){var p,d,g,u;switch(c){case 1:o<128&&(a=o);break;case 2:p=t[i+1],(p&192)===128&&(u=(o&31)<<6|p&63,u>127&&(a=u));break;case 3:p=t[i+1],d=t[i+2],(p&192)===128&&(d&192)===128&&(u=(o&15)<<12|(p&63)<<6|d&63,u>2047&&(u<55296||u>57343)&&(a=u));break;case 4:p=t[i+1],d=t[i+2],g=t[i+3],(p&192)===128&&(d&192)===128&&(g&192)===128&&(u=(o&15)<<18|(p&63)<<12|(d&63)<<6|g&63,u>65535&&u<1114112&&(a=u))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=c}return xr(n)}var xe=4096;function xr(t){var e=t.length;if(e<=xe)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=xe));return r}function wr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function br(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function vr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Sr[t[o]];return i}function Tr(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),U.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),U.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),U.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),U.read(this,e,!1,52,8)};function w(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=1,c=0;for(this[r]=e&255;++c<n&&(a*=256);)this[r+c]=e/a&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=n-1,c=1;for(this[r+a]=e&255;--a>=0&&(c*=256);)this[r+a]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=0,c=1,p=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&p===0&&this[r+a-1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=n-1,c=1,p=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&p===0&&this[r+a+1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ae(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _e(t,e,r,n,i){return e=+e,r=r>>>0,i||Ae(t,e,r,4,34028234663852886e22,-34028234663852886e22),U.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return _e(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return _e(this,e,r,!1,n)};function Re(t,e,r,n,i){return e=+e,r=r>>>0,i||Ae(t,e,r,8,17976931348623157e292,-17976931348623157e292),U.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Re(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Re(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<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),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=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(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),p=c.length;if(p===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%p]}return this};var kr=/[^+/0-9A-Za-z-_]/g;function Ar(t){if(t=t.split("=")[0],t=t.trim().replace(kr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function $(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function _r(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Rr(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Se(t){return J.toByteArray(Ar(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function A(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function te(t){return t!==t}var Sr=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Ce=W((Or,Fe)=>{l();var y=Fe.exports={},_,R;function ne(){throw new Error("setTimeout has not been defined")}function ie(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_=setTimeout:_=ne}catch(t){_=ne}try{typeof clearTimeout=="function"?R=clearTimeout:R=ie}catch(t){R=ie}})();function Le(t){if(_===setTimeout)return setTimeout(t,0);if((_===ne||!_)&&setTimeout)return _=setTimeout,setTimeout(t,0);try{return _(t,0)}catch(e){try{return _.call(null,t,0)}catch(r){return _.call(this,t,0)}}}function Ir(t){if(R===clearTimeout)return clearTimeout(t);if((R===ie||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(t);try{return R(t)}catch(e){try{return R.call(null,t)}catch(r){return R.call(this,t)}}}var L=[],O=!1,C,z=-1;function Lr(){!O||!C||(O=!1,C.length?L=C.concat(L):z=-1,L.length&&Ee())}function Ee(){if(!O){var t=Le(Lr);O=!0;for(var e=L.length;e;){for(C=L,L=[];++z<e;)C&&C[z].run();z=-1,e=L.length}C=null,O=!1,Ir(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];L.push(new Ne(t,e)),L.length===1&&!O&&Le(Ee)};function Ne(t,e){this.fun=t,this.array=e}Ne.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function E(){}y.on=E;y.addListener=E;y.once=E;y.off=E;y.removeListener=E;y.removeAllListeners=E;y.emit=E;y.prependListener=E;y.prependOnceListener=E;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var f,m,Pr,l=Ke(()=>{f=X(Ie()),m=X(Ce()),Pr=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Fr={};Je(Fr,{parseAmount:()=>Nr});module.exports=Ze(Fr);l();var j=require("@multiversx/sdk-core"),Ve=X(require("bignumber.js"));l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();var Er=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),P=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums");var Be=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(Be||{}),Jr=G(G({},P.WindowProviderRequestEnums),Be),Ue=(e=>(e.reloginResponse="RELOGIN_RESPONSE",e))(Ue||{}),Zr=G(G({},P.WindowProviderResponseEnums),Ue);l();l();l();l();l();l();var oe={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",extrasApiAddress:"https://devnet-extras-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://devnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},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",extrasApiAddress:"https://testnet-extras-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://testnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},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",extrasApiAddress:"https://extras-api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:De,egldLabel:ft}=oe["devnet"],{chainId:Oe,egldLabel:mt}=oe["testnet"],{chainId:Pe,egldLabel:ht}=oe["mainnet"];var yt={["devnet"]:De,["testnet"]:Oe,["mainnet"]:Pe},xt={[De]:"devnet",[Oe]:"testnet",[Pe]:"mainnet"};l();l();var S=require("@multiversx/sdk-web-wallet-provider");l();l();var ae=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants");var Me,Ge,se=String((Ge=(Me=ae.safeWindow)==null?void 0:Me.navigator)==null?void 0:Ge.userAgent),At=/^((?!chrome|android).)*safari/i.test(se),_t=/firefox/i.test(se)&&/windows/i.test(se);var We=18;function Nr(t,e=We){return new j.TokenTransfer({token:new j.Token({identifier:""}),amount:BigInt(new Ve.default(t).shiftedBy(e).decimalPlaces(0).toString())}).toString()}0&&(module.exports={parseAmount});
|
|
1
|
+
"use strict";var qe=Object.create;var M=Object.defineProperty;var ze=Object.getOwnPropertyDescriptor;var je=Object.getOwnPropertyNames,le=Object.getOwnPropertySymbols,Xe=Object.getPrototypeOf,pe=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable;var ce=(t,e,r)=>e in t?M(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,G=(t,e)=>{for(var r in e||(e={}))pe.call(e,r)&&ce(t,r,e[r]);if(le)for(var r of le(e))Ye.call(e,r)&&ce(t,r,e[r]);return t};var Ke=(t,e)=>()=>(t&&(e=t(t=0)),e);var W=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Je=(t,e)=>{for(var r in e)M(t,r,{get:e[r],enumerable:!0})},ue=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of je(e))!pe.call(t,i)&&i!==r&&M(t,i,{get:()=>e[i],enumerable:!(n=ze(e,i))||n.enumerable});return t};var X=(t,e,r)=>(r=t!=null?qe(Xe(t)):{},ue(e||!t||!t.__esModule?M(r,"default",{value:t,enumerable:!0}):r,t)),Ze=t=>ue(M({},"__esModule",{value:!0}),t);var fe=W(V=>{"use strict";l();V.byteLength=$e;V.toByteArray=rr;V.fromByteArray=ir;var k=[],v=[],Qe=typeof Uint8Array!="undefined"?Uint8Array:Array,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(N=0,de=Y.length;N<de;++N)k[N]=Y[N],v[Y.charCodeAt(N)]=N;var N,de;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function ge(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function $e(t){var e=ge(t),r=e[0],n=e[1];return(r+n)*3/4-n}function er(t,e,r){return(e+r)*3/4-r}function rr(t){var e,r=ge(t),n=r[0],i=r[1],o=new Qe(er(t,n,i)),a=0,c=i>0?n-4:n,p;for(p=0;p<c;p+=4)e=v[t.charCodeAt(p)]<<18|v[t.charCodeAt(p+1)]<<12|v[t.charCodeAt(p+2)]<<6|v[t.charCodeAt(p+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=v[t.charCodeAt(p)]<<2|v[t.charCodeAt(p+1)]>>4,o[a++]=e&255),i===1&&(e=v[t.charCodeAt(p)]<<10|v[t.charCodeAt(p+1)]<<4|v[t.charCodeAt(p+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function tr(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function nr(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(tr(n));return i.join("")}function ir(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(nr(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var me=W(K=>{l();K.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,p=(1<<c)-1,d=p>>1,g=-7,u=r?i-1:0,T=r?-1:1,b=t[e+u];for(u+=T,o=b&(1<<-g)-1,b>>=-g,g+=c;g>0;o=o*256+t[e+u],u+=T,g-=8);for(a=o&(1<<-g)-1,o>>=-g,g+=n;g>0;a=a*256+t[e+u],u+=T,g-=8);if(o===0)o=1-d;else{if(o===p)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-d}return(b?-1:1)*a*Math.pow(2,o-n)};K.write=function(t,e,r,n,i,o){var a,c,p,d=o*8-i-1,g=(1<<d)-1,u=g>>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:o-1,B=n?1:-1,He=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=g):(a=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+u>=1?e+=T/p:e+=T*Math.pow(2,1-u),e*p>=2&&(a++,p/=2),a+u>=g?(c=0,a=g):a+u>=1?(c=(e*p-1)*Math.pow(2,i),a=a+u):(c=e*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;t[r+b]=c&255,b+=B,c/=256,i-=8);for(a=a<<i|c,d+=i;d>0;t[r+b]=a&255,b+=B,a/=256,d-=8);t[r+b-B]|=He*128}});var Ie=W(D=>{"use strict";l();var J=fe(),U=me(),he=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;D.Buffer=s;D.SlowBuffer=pr;D.INSPECT_MAX_BYTES=50;var H=2147483647;D.kMaxLength=H;s.TYPED_ARRAY_SUPPORT=or();!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 or(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){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 I(t){if(t>H)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ee(t)}return we(t,e,r)}s.poolSize=8192;function we(t,e,r){if(typeof t=="string")return sr(t,e);if(ArrayBuffer.isView(t))return lr(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(A(t,ArrayBuffer)||t&&A(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(A(t,SharedArrayBuffer)||t&&A(t.buffer,SharedArrayBuffer)))return Q(t,e,r);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,e,r);var i=cr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);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,e,r){return we(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function be(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 ar(t,e,r){return be(t),t<=0?I(t):e!==void 0?typeof r=="string"?I(t).fill(e,r):I(t).fill(e):I(t)}s.alloc=function(t,e,r){return ar(t,e,r)};function ee(t){return be(t),I(t<0?0:re(t)|0)}s.allocUnsafe=function(t){return ee(t)};s.allocUnsafeSlow=function(t){return ee(t)};function sr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=ve(t,e)|0,n=I(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Z(t){for(var e=t.length<0?0:re(t.length)|0,r=I(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function lr(t){if(A(t,Uint8Array)){var e=new Uint8Array(t);return Q(e.buffer,e.byteOffset,e.byteLength)}return Z(t)}function Q(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function cr(t){if(s.isBuffer(t)){var e=re(t.length)|0,r=I(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||te(t.length)?I(0):Z(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Z(t.data)}function re(t){if(t>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return t|0}function pr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),A(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,a=Math.min(n,i);o<a;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).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(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[n];if(A(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 ve(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||A(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 r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Se(t).length;default:if(i)return n?-1:$(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=ve;function ur(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return vr(this,e,r);case"utf8":case"utf-8":return ke(this,e,r);case"ascii":return wr(this,e,r);case"latin1":case"binary":return br(this,e,r);case"base64":return yr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Tr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function F(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)F(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)F(this,r,r+3),F(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)F(this,r,r+7),F(this,r+1,r+6),F(this,r+2,r+5),F(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?ke(this,0,e):ur.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=D.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};he&&(s.prototype[he]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,o){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,c=n-r,p=Math.min(a,c),d=this.slice(i,o),g=e.slice(r,n),u=0;u<p;++u)if(d[u]!==g[u]){a=d[u],c=g[u];break}return a<c?-1:c<a?1:0};function Te(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,te(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:ye(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):ye(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ye(t,e,r,n,i){var o=1,a=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,r/=2}function p(b,B){return o===1?b[B]:b.readUInt16BE(B*o)}var d;if(i){var g=-1;for(d=r;d<a;d++)if(p(t,d)===p(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*o}else g!==-1&&(d-=d-g),g=-1}else for(r+c>a&&(r=a-c),d=r;d>=0;d--){for(var u=!0,T=0;T<c;T++)if(p(t,d+T)!==p(e,T)){u=!1;break}if(u)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return Te(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return Te(this,e,r,n,!1)};function dr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var c=parseInt(e.substr(a*2,2),16);if(te(c))return a;t[r+a]=c}return a}function gr(t,e,r,n){return q($(e,t.length-r),t,r,n)}function fr(t,e,r,n){return q(_r(e),t,r,n)}function mr(t,e,r,n){return q(Se(e),t,r,n)}function hr(t,e,r,n){return q(Rr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>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-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return dr(this,e,r,n);case"utf8":case"utf-8":return gr(this,e,r,n);case"ascii":case"latin1":case"binary":return fr(this,e,r,n);case"base64":return mr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return hr(this,e,r,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 yr(t,e,r){return e===0&&r===t.length?J.fromByteArray(t):J.fromByteArray(t.slice(e,r))}function ke(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,c=o>239?4:o>223?3:o>191?2:1;if(i+c<=r){var p,d,g,u;switch(c){case 1:o<128&&(a=o);break;case 2:p=t[i+1],(p&192)===128&&(u=(o&31)<<6|p&63,u>127&&(a=u));break;case 3:p=t[i+1],d=t[i+2],(p&192)===128&&(d&192)===128&&(u=(o&15)<<12|(p&63)<<6|d&63,u>2047&&(u<55296||u>57343)&&(a=u));break;case 4:p=t[i+1],d=t[i+2],g=t[i+3],(p&192)===128&&(d&192)===128&&(g&192)===128&&(u=(o&15)<<18|(p&63)<<12|(d&63)<<6|g&63,u>65535&&u<1114112&&(a=u))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=c}return xr(n)}var xe=4096;function xr(t){var e=t.length;if(e<=xe)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=xe));return r}function wr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function br(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function vr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Sr[t[o]];return i}function Tr(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),U.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),U.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),U.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),U.read(this,e,!1,52,8)};function w(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=1,c=0;for(this[r]=e&255;++c<n&&(a*=256);)this[r+c]=e/a&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=n-1,c=1;for(this[r+a]=e&255;--a>=0&&(c*=256);)this[r+a]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=0,c=1,p=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&p===0&&this[r+a-1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=n-1,c=1,p=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&p===0&&this[r+a+1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ae(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _e(t,e,r,n,i){return e=+e,r=r>>>0,i||Ae(t,e,r,4,34028234663852886e22,-34028234663852886e22),U.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return _e(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return _e(this,e,r,!1,n)};function Re(t,e,r,n,i){return e=+e,r=r>>>0,i||Ae(t,e,r,8,17976931348623157e292,-17976931348623157e292),U.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Re(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Re(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<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),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=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(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),p=c.length;if(p===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%p]}return this};var kr=/[^+/0-9A-Za-z-_]/g;function Ar(t){if(t=t.split("=")[0],t=t.trim().replace(kr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function $(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function _r(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Rr(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Se(t){return J.toByteArray(Ar(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function A(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function te(t){return t!==t}var Sr=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Ce=W((Or,Fe)=>{l();var y=Fe.exports={},_,R;function ne(){throw new Error("setTimeout has not been defined")}function ie(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_=setTimeout:_=ne}catch(t){_=ne}try{typeof clearTimeout=="function"?R=clearTimeout:R=ie}catch(t){R=ie}})();function Le(t){if(_===setTimeout)return setTimeout(t,0);if((_===ne||!_)&&setTimeout)return _=setTimeout,setTimeout(t,0);try{return _(t,0)}catch(e){try{return _.call(null,t,0)}catch(r){return _.call(this,t,0)}}}function Ir(t){if(R===clearTimeout)return clearTimeout(t);if((R===ie||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(t);try{return R(t)}catch(e){try{return R.call(null,t)}catch(r){return R.call(this,t)}}}var L=[],O=!1,C,z=-1;function Lr(){!O||!C||(O=!1,C.length?L=C.concat(L):z=-1,L.length&&Ee())}function Ee(){if(!O){var t=Le(Lr);O=!0;for(var e=L.length;e;){for(C=L,L=[];++z<e;)C&&C[z].run();z=-1,e=L.length}C=null,O=!1,Ir(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];L.push(new Ne(t,e)),L.length===1&&!O&&Le(Ee)};function Ne(t,e){this.fun=t,this.array=e}Ne.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function E(){}y.on=E;y.addListener=E;y.once=E;y.off=E;y.removeListener=E;y.removeAllListeners=E;y.emit=E;y.prependListener=E;y.prependOnceListener=E;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var f,m,Pr,l=Ke(()=>{f=X(Ie()),m=X(Ce()),Pr=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Fr={};Je(Fr,{parseAmount:()=>Nr});module.exports=Ze(Fr);l();var j=require("@multiversx/sdk-core"),Ve=X(require("bignumber.js"));l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();var Er=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),P=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums");var Be=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(Be||{}),Jr=G(G({},P.WindowProviderRequestEnums),Be),Ue=(e=>(e.reloginResponse="RELOGIN_RESPONSE",e))(Ue||{}),Zr=G(G({},P.WindowProviderResponseEnums),Ue);l();l();l();l();l();l();var oe={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",extrasApiAddress:"https://devnet-extras-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://devnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},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",extrasApiAddress:"https://testnet-extras-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://testnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},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",extrasApiAddress:"https://extras-api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:De,egldLabel:ft}=oe["devnet"],{chainId:Oe,egldLabel:mt}=oe["testnet"],{chainId:Pe,egldLabel:ht}=oe["mainnet"];var yt={["devnet"]:De,["testnet"]:Oe,["mainnet"]:Pe},xt={[De]:"devnet",[Oe]:"testnet",[Pe]:"mainnet"};l();l();var S=require("@multiversx/sdk-web-wallet-provider");l();l();var ae=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants");var Me,Ge,se=String((Ge=(Me=ae.safeWindow)==null?void 0:Me.navigator)==null?void 0:Ge.userAgent),At=/^((?!chrome|android).)*safari/i.test(se),_t=/firefox/i.test(se)&&/windows/i.test(se);var We=18;function Nr(t,e=We){return new j.TokenTransfer({token:new j.Token({identifier:""}),amount:BigInt(new Ve.default(t).shiftedBy(e).decimalPlaces(0).toFixed(0))}).toString()}0&&(module.exports={parseAmount});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|