@multiversx/sdk-dapp 2.14.0-alpha.7 → 2.14.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UI/CopyButton/CopyButton.js +1 -1
- package/UI/CopyButton/index.js +1 -1
- package/UI/DappModal/hooks/index.js +1 -1
- package/UI/DappModal/hooks/useDappModal.js +1 -1
- package/UI/DappModal/index.js +1 -1
- package/UI/Denominate/index.js +1 -1
- package/UI/ExplorerLink/ExplorerLink.js +1 -1
- package/UI/ExplorerLink/index.js +1 -1
- package/UI/FormatAmount/FormatAmount.js +1 -1
- package/UI/FormatAmount/index.js +1 -1
- package/UI/ModalContainer/ModalContainer.js +1 -1
- package/UI/ModalContainer/index.js +1 -1
- package/UI/NotificationModal/NotificationModal.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/ConfirmAmount.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/ConfirmFee.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/NftSftPreviewComponent/NftSftPreviewComponent.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/NftSftPreviewComponent/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/TokenAvatar/TokenAvatar.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/TokenAvatar/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/SignWithExtensionModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/LedgerGuardianSigningModalError.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/SignWithOperaModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/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/Linkified/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/TransactionInfoHash/TransactionInfoHash.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoHash/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/UI/TransactionInfo/index.js +1 -1
- package/UI/TransactionsTable/TransactionsTable.js +1 -1
- package/UI/TransactionsTable/components/AccountName.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/TransactionReceiver.js +1 -1
- package/UI/TransactionsTable/components/TransactionRow.js +1 -1
- package/UI/TransactionsTable/components/TransactionSender.js +1 -1
- package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
- package/UI/TransactionsTable/components/index.js +1 -1
- package/UI/TransactionsTable/index.js +1 -1
- package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/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/TransactionToastContent.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/Trim/Trim.js +1 -1
- package/UI/Trim/index.js +1 -1
- package/UI/UsdValue/UsdValue.js +1 -1
- package/UI/UsdValue/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/chunk-22ZRP27P.js +2 -0
- package/__chunks__/{chunk-KAKVGIXA.js → chunk-25SW766X.js} +2 -2
- package/__chunks__/{chunk-Z3B6O75V.js → chunk-2BUE57EU.js} +2 -2
- package/__chunks__/{chunk-U46GARPG.js → chunk-2G2JTU64.js} +2 -2
- package/__chunks__/{chunk-LKNIDSP3.js → chunk-2JJDO537.js} +2 -2
- package/__chunks__/{chunk-EL64DAPO.js → chunk-2M35GZ5E.js} +2 -2
- package/__chunks__/{chunk-BAHLCJQ4.js → chunk-2PBJXQPY.js} +2 -2
- package/__chunks__/{chunk-NL4XLIIC.js → chunk-2QBCDFHU.js} +2 -2
- package/__chunks__/chunk-2QJQKSL2.js +2 -0
- package/__chunks__/{chunk-BSE6QRTN.js → chunk-2RLHGYNJ.js} +2 -2
- package/__chunks__/{chunk-PY4CARQL.js → chunk-2SUGZLXT.js} +2 -2
- package/__chunks__/{chunk-YBPQFVHG.js → chunk-2UTL2IEG.js} +2 -2
- package/__chunks__/chunk-2XVSFTLP.js +2 -0
- package/__chunks__/{chunk-HFSF4GXN.js → chunk-2ZRO7COP.js} +2 -2
- package/__chunks__/{chunk-3YNZBPXG.js → chunk-32EDYHBS.js} +2 -2
- package/__chunks__/{chunk-PTYYBNUE.js → chunk-3BUKA5CH.js} +2 -2
- package/__chunks__/chunk-3DE4KAN3.js +2 -0
- package/__chunks__/{chunk-QEMYNJYU.js → chunk-3GHNAMJE.js} +2 -2
- package/__chunks__/{chunk-J6AWQIAU.js → chunk-3HFMUL6J.js} +2 -2
- package/__chunks__/{chunk-XIBZJOGV.js → chunk-3K4L65HZ.js} +2 -2
- package/__chunks__/{chunk-I7JA7B65.js → chunk-3M43ACAX.js} +2 -2
- package/__chunks__/{chunk-WFWKAE4O.js → chunk-3PGQTCG6.js} +2 -2
- package/__chunks__/{chunk-SAVDOQJJ.js → chunk-3YCRF36A.js} +2 -2
- package/__chunks__/{chunk-P4QUII45.js → chunk-3ZCV2HDX.js} +2 -2
- package/__chunks__/{chunk-25XHHAJL.js → chunk-465B4SWU.js} +2 -2
- package/__chunks__/{chunk-IJ7JNZC2.js → chunk-46MQMOU2.js} +2 -2
- package/__chunks__/{chunk-Y7E46NZY.js → chunk-4EIUCOAN.js} +2 -2
- package/__chunks__/chunk-4KZ3UGWS.js +2 -0
- package/__chunks__/{chunk-MNQOUA5W.js → chunk-4PXNL7Z6.js} +2 -2
- package/__chunks__/{chunk-CW3JC5CT.js → chunk-4QVXLUKH.js} +2 -2
- package/__chunks__/{chunk-MUGVNKCR.js → chunk-4TQWGDYU.js} +2 -2
- package/__chunks__/{chunk-U3FKLZF3.js → chunk-4U5MHG6K.js} +2 -2
- package/__chunks__/chunk-4VGXUQG7.js +2 -0
- package/__chunks__/{chunk-HLU74E2S.js → chunk-4VSVUNC2.js} +2 -2
- package/__chunks__/{chunk-TFS6EHUG.js → chunk-4YVA5SXJ.js} +2 -2
- package/__chunks__/{chunk-COALYGJ5.js → chunk-55URVC2P.js} +2 -2
- package/__chunks__/chunk-56OHCW6S.js +2 -0
- package/__chunks__/chunk-5WXYTTUV.js +2 -0
- package/__chunks__/{chunk-FFNONSBD.js → chunk-62MNH2QQ.js} +2 -2
- package/__chunks__/{chunk-BXXEZGOO.js → chunk-64DL47ES.js} +2 -2
- package/__chunks__/{chunk-JRPUHAD3.js → chunk-6AIWYCOK.js} +2 -2
- package/__chunks__/{chunk-PYISB7BV.js → chunk-6AKB7QDC.js} +2 -2
- package/__chunks__/{chunk-K4RKZBB7.js → chunk-6EHCHCZU.js} +2 -2
- package/__chunks__/{chunk-IYKEH7HF.js → chunk-6EXJ3W7K.js} +2 -2
- package/__chunks__/chunk-6MNBRV46.js +2 -0
- package/__chunks__/{chunk-D6GJOCSH.js → chunk-6MNRWHHD.js} +2 -2
- package/__chunks__/{chunk-4YEPTHM4.js → chunk-6NYKW3HN.js} +2 -2
- package/__chunks__/chunk-6OJZNPO4.js +2 -0
- package/__chunks__/{chunk-BBNNQ45H.js → chunk-6Q4EHEJG.js} +2 -2
- package/__chunks__/{chunk-Q5KIFM3U.js → chunk-6TFQEN4P.js} +2 -2
- package/__chunks__/{chunk-HA3RNMTM.js → chunk-6W5LJAR4.js} +2 -2
- package/__chunks__/{chunk-HVAUI4AR.js → chunk-6Z6APMVA.js} +2 -2
- package/__chunks__/{chunk-57R2O5D6.js → chunk-732VHYF5.js} +2 -2
- package/__chunks__/chunk-7BK4GIOY.js +2 -0
- package/__chunks__/{chunk-U7JVJHUW.js → chunk-7DV6GZ3T.js} +2 -2
- package/__chunks__/{chunk-SQUHCPW2.js → chunk-7FKFW6V5.js} +2 -2
- package/__chunks__/{chunk-L4KN6HH7.js → chunk-7H4YAAKZ.js} +2 -2
- package/__chunks__/{chunk-ENGRFEUJ.js → chunk-7HBPS6F5.js} +2 -2
- package/__chunks__/{chunk-SJTIPCXJ.js → chunk-7NQTUSSP.js} +2 -2
- package/__chunks__/chunk-7O2MELAM.js +2 -0
- package/__chunks__/chunk-7OI55YWR.js +2 -0
- package/__chunks__/{chunk-HPLVU77L.js → chunk-7QFW4UJZ.js} +2 -2
- package/__chunks__/{chunk-A7TJIATX.js → chunk-7ULGMIBK.js} +2 -2
- package/__chunks__/{chunk-ULKVZDZ7.js → chunk-A2P7ASWD.js} +2 -2
- package/__chunks__/{chunk-RAXXWQ4L.js → chunk-A5KF3GJF.js} +2 -2
- package/__chunks__/{chunk-2IDBLJNQ.js → chunk-A6GI7UQG.js} +2 -2
- package/__chunks__/chunk-AH33UCMC.js +2 -0
- package/__chunks__/{chunk-27NLNDHJ.js → chunk-AI6Z54KW.js} +2 -2
- package/__chunks__/chunk-AJSOVVVT.js +2 -0
- package/__chunks__/chunk-AND5PGV7.js +2 -0
- package/__chunks__/{chunk-I6XFHIQ7.js → chunk-ANRGGO4A.js} +2 -2
- package/__chunks__/{chunk-DOJSVREW.js → chunk-BFYVYNVH.js} +2 -2
- package/__chunks__/{chunk-QGV6SAM6.js → chunk-BOFKNYBB.js} +2 -2
- package/__chunks__/{chunk-URQQQ5NN.js → chunk-BXDAO45Q.js} +2 -2
- package/__chunks__/{chunk-OHNGL5M4.js → chunk-C4I7MIFP.js} +2 -2
- package/__chunks__/chunk-C6H67DWN.js +2 -0
- package/__chunks__/{chunk-J5ALA3MO.js → chunk-C7ONDBUD.js} +2 -2
- package/__chunks__/{chunk-UFIRMPAO.js → chunk-CJ5P73T6.js} +2 -2
- package/__chunks__/{chunk-AYE34BEG.js → chunk-CMVVMSEH.js} +2 -2
- package/__chunks__/{chunk-O4W276XZ.js → chunk-CR4NSICT.js} +2 -2
- package/__chunks__/{chunk-4H6GFMHB.js → chunk-CUIUJRVS.js} +2 -2
- package/__chunks__/{chunk-DNR4QV3V.js → chunk-CVQLZUYQ.js} +2 -2
- package/__chunks__/{chunk-7ZRNAFLC.js → chunk-CWAWMZY6.js} +2 -2
- package/__chunks__/chunk-D5NJK4CP.js +2 -0
- package/__chunks__/{chunk-GD5LM2WW.js → chunk-DFCPQRTM.js} +2 -2
- package/__chunks__/{chunk-NZNRWPEE.js → chunk-DHCR3JZ7.js} +2 -2
- package/__chunks__/{chunk-T7ZGBQSS.js → chunk-DNDH4SLB.js} +2 -2
- package/__chunks__/{chunk-QWUKLPMG.js → chunk-DPSYDCRQ.js} +2 -2
- package/__chunks__/{chunk-5LQSU3CM.js → chunk-DRFLHIGO.js} +2 -2
- package/__chunks__/{chunk-5IPU5Z6Y.js → chunk-DZFEM3KF.js} +2 -2
- package/__chunks__/{chunk-YLMETLUY.js → chunk-E37TSS3G.js} +2 -2
- package/__chunks__/{chunk-LD5OFM6J.js → chunk-E7SKXNFZ.js} +2 -2
- package/__chunks__/{chunk-A7SMZQHU.js → chunk-EBMNSIZZ.js} +2 -2
- package/__chunks__/chunk-ED7SDCIR.js +2 -0
- package/__chunks__/chunk-EF5FYBWO.js +2 -0
- package/__chunks__/{chunk-HGOCSAJ3.js → chunk-EFP3RXQV.js} +2 -2
- package/__chunks__/{chunk-F2VXI4GA.js → chunk-EH6V66TM.js} +2 -2
- package/__chunks__/chunk-EJCI6DHH.js +2 -0
- package/__chunks__/{chunk-EVDRXHWW.js → chunk-EK4YNLV6.js} +2 -2
- package/__chunks__/{chunk-FVX7DA6U.js → chunk-EPJBAB6J.js} +2 -2
- package/__chunks__/{chunk-YBE4P4LT.js → chunk-ERASJXXE.js} +2 -2
- package/__chunks__/chunk-EU6QWOMK.js +2 -0
- package/__chunks__/{chunk-D2TTJID3.js → chunk-EVL4CUGC.js} +2 -2
- package/__chunks__/{chunk-CMRQON5O.js → chunk-F3GBS4W4.js} +2 -2
- package/__chunks__/chunk-F3YJTUY6.js +2 -0
- package/__chunks__/chunk-F6TZUVGI.js +2 -0
- package/__chunks__/{chunk-YI6A3DXH.js → chunk-FCVWWF57.js} +2 -2
- package/__chunks__/{chunk-DMV66REH.js → chunk-FEFZWO4O.js} +2 -2
- package/__chunks__/{chunk-7G2AF2GN.js → chunk-FESSZWWA.js} +2 -2
- package/__chunks__/{chunk-QJS7JBDY.js → chunk-FG7GF73K.js} +2 -2
- package/__chunks__/{chunk-EIQ3EA5O.js → chunk-FGW6XVJC.js} +2 -2
- package/__chunks__/{chunk-Q46RRMKY.js → chunk-FLA5MESJ.js} +2 -2
- package/__chunks__/chunk-FLCSCZ6G.js +2 -0
- package/__chunks__/chunk-FNSMY23J.js +2 -0
- package/__chunks__/{chunk-QTRNCEH3.js → chunk-FO3HWJOO.js} +2 -2
- package/__chunks__/chunk-FPRH6A7Q.js +2 -0
- package/__chunks__/{chunk-KOAUIOAV.js → chunk-FV55SRGT.js} +2 -2
- package/__chunks__/{chunk-Q26YO6FJ.js → chunk-G4M7YU2C.js} +2 -2
- package/__chunks__/{chunk-BSNTEXXG.js → chunk-G6XV7HDQ.js} +2 -2
- package/__chunks__/{chunk-7JQMFQSS.js → chunk-GIBIQVVA.js} +2 -2
- package/__chunks__/{chunk-3TEDUHR7.js → chunk-GO6MLGJU.js} +2 -2
- package/__chunks__/{chunk-6MOO3DGE.js → chunk-GRJD4QFT.js} +2 -2
- package/__chunks__/{chunk-26ZRUEVW.js → chunk-GS4AKYQN.js} +2 -2
- package/__chunks__/{chunk-LABR4HPS.js → chunk-GSCXD4JI.js} +2 -2
- package/__chunks__/{chunk-OA5GPA6K.js → chunk-GTJFG66M.js} +2 -2
- package/__chunks__/chunk-GVMVFR52.js +2 -0
- package/__chunks__/{chunk-DTF4RW4N.js → chunk-HB6ASLAO.js} +2 -2
- package/__chunks__/{chunk-R4W5XGFI.js → chunk-HP7BUDQ2.js} +2 -2
- package/__chunks__/{chunk-K3SCJTLS.js → chunk-HQGJMOXC.js} +2 -2
- package/__chunks__/{chunk-UV7KJC5Z.js → chunk-HQQHKIEW.js} +2 -2
- package/__chunks__/chunk-HUQLSZTM.js +2 -0
- package/__chunks__/{chunk-SL3WCUB5.js → chunk-HYWHC3VZ.js} +2 -2
- package/__chunks__/{chunk-Q6AGQOMX.js → chunk-HZS4GHHB.js} +2 -2
- package/__chunks__/{chunk-HERNCEJA.js → chunk-I2CGTFPH.js} +2 -2
- package/__chunks__/{chunk-QHR25JDU.js → chunk-I2D6372N.js} +2 -2
- package/__chunks__/{chunk-7KCUTDUG.js → chunk-I2ZEOY3L.js} +2 -2
- package/__chunks__/{chunk-Z4FTF56X.js → chunk-IFNRV7TU.js} +2 -2
- package/__chunks__/{chunk-P2RVAXCM.js → chunk-IP7FENS2.js} +2 -2
- package/__chunks__/{chunk-Y7EBGYJX.js → chunk-IPX7D5ED.js} +2 -2
- package/__chunks__/chunk-ISXR365M.js +2 -0
- package/__chunks__/{chunk-ZNTILVZJ.js → chunk-ITWVUYJP.js} +2 -2
- package/__chunks__/{chunk-OOXENWMY.js → chunk-IY623RXI.js} +2 -2
- package/__chunks__/chunk-IY7Z6AIE.js +2 -0
- package/__chunks__/{chunk-LE2VIWKE.js → chunk-J4GTVTLD.js} +2 -2
- package/__chunks__/{chunk-XPCA3GC5.js → chunk-JDA7D22I.js} +2 -2
- package/__chunks__/{chunk-BAVZ5AWX.js → chunk-JQLNWBZS.js} +2 -2
- package/__chunks__/chunk-JRRXTQY4.js +2 -0
- package/__chunks__/{chunk-N6E6KJ3F.js → chunk-JVKQSOUF.js} +2 -2
- package/__chunks__/chunk-K4OR6E3Y.js +2 -0
- package/__chunks__/chunk-K5UJJ6MW.js +2 -0
- package/__chunks__/{chunk-P7XEDB4J.js → chunk-K6QYMTDX.js} +2 -2
- package/__chunks__/{chunk-4TSDIBU6.js → chunk-KEE2OXGG.js} +2 -2
- package/__chunks__/{chunk-SY6H3ZMZ.js → chunk-KF5E56YJ.js} +2 -2
- package/__chunks__/{chunk-VWITBR4V.js → chunk-KMMBBE4C.js} +2 -2
- package/__chunks__/{chunk-4GNHPT7M.js → chunk-KRC55ZVK.js} +2 -2
- package/__chunks__/{chunk-NNXQUEOI.js → chunk-KUKUZHNG.js} +2 -2
- package/__chunks__/{chunk-T7XFJBWS.js → chunk-L7QRRZXC.js} +2 -2
- package/__chunks__/{chunk-AHA2XBBI.js → chunk-LBQN5G7N.js} +2 -2
- package/__chunks__/{chunk-CXX55ALA.js → chunk-LCVMWXIJ.js} +2 -2
- package/__chunks__/chunk-LRE2WY2J.js +2 -0
- package/__chunks__/{chunk-HAWAVF73.js → chunk-LVTLKISE.js} +2 -2
- package/__chunks__/{chunk-3WITW7HU.js → chunk-LYJTYHFV.js} +2 -2
- package/__chunks__/chunk-LZOBQMEZ.js +2 -0
- package/__chunks__/{chunk-H6XATCGY.js → chunk-M2KYIJLW.js} +2 -2
- package/__chunks__/{chunk-E36H4A4X.js → chunk-M32AJ7S2.js} +2 -2
- package/__chunks__/{chunk-M3XR55V2.js → chunk-M7572BN4.js} +2 -2
- package/__chunks__/{chunk-JYGRTY7P.js → chunk-M7JOCEV3.js} +2 -2
- package/__chunks__/{chunk-PK2KSNL2.js → chunk-MBMHXM3K.js} +2 -2
- package/__chunks__/{chunk-5ONXBSBR.js → chunk-MBWBAFEW.js} +2 -2
- package/__chunks__/{chunk-GPDGR3SW.js → chunk-MEOB4YPG.js} +2 -2
- package/__chunks__/{chunk-KFQ337E7.js → chunk-MHMDCJAO.js} +2 -2
- package/__chunks__/{chunk-LSLXYLTK.js → chunk-MJWYP2SQ.js} +2 -2
- package/__chunks__/{chunk-CNC5NHHD.js → chunk-ML2CRKLR.js} +2 -2
- package/__chunks__/{chunk-USGKHMQS.js → chunk-MLFWEWTD.js} +2 -2
- package/__chunks__/chunk-MOFJD76J.js +2 -0
- package/__chunks__/{chunk-422LFS6P.js → chunk-MOJBIXWX.js} +2 -2
- package/__chunks__/{chunk-VDBJLQKT.js → chunk-MS5KN76B.js} +2 -2
- package/__chunks__/{chunk-FFNDAHJ6.js → chunk-MVMPOSIZ.js} +2 -2
- package/__chunks__/{chunk-3JMIVFPN.js → chunk-NDPL6RGM.js} +2 -2
- package/__chunks__/chunk-NDSRZT6Z.js +2 -0
- package/__chunks__/{chunk-H26SKDKM.js → chunk-NGPQX3YH.js} +2 -2
- package/__chunks__/{chunk-IM32VAMC.js → chunk-NIFUUTCX.js} +2 -2
- package/__chunks__/chunk-NIYFBCUS.js +2 -0
- package/__chunks__/{chunk-6NF5LYA4.js → chunk-NMYVWBEI.js} +2 -2
- package/__chunks__/{chunk-EPIUWVT2.js → chunk-NN4GSYWO.js} +2 -2
- package/__chunks__/{chunk-6YE6DPN3.js → chunk-NOHB7EPQ.js} +2 -2
- package/__chunks__/{chunk-LA3XIFL3.js → chunk-NPUTXKXB.js} +2 -2
- package/__chunks__/{chunk-BN2FNIZH.js → chunk-NSVV6ODK.js} +2 -2
- package/__chunks__/{chunk-U4DBSJHV.js → chunk-NVUBRKEA.js} +2 -2
- package/__chunks__/{chunk-VR2YFAMC.js → chunk-NWL5HZ2E.js} +2 -2
- package/__chunks__/{chunk-I2USUG37.js → chunk-NZOINDGJ.js} +2 -2
- package/__chunks__/{chunk-DHLSIZKV.js → chunk-NZUY5UBO.js} +2 -2
- package/__chunks__/{chunk-FVEAHOP7.js → chunk-OB4FP3JL.js} +2 -2
- package/__chunks__/{chunk-MXR2FTDY.js → chunk-OK5TBHKA.js} +2 -2
- package/__chunks__/{chunk-73RGTGMR.js → chunk-OOWLBYJY.js} +2 -2
- package/__chunks__/{chunk-MUJQ6IMN.js → chunk-OPVAZV55.js} +2 -2
- package/__chunks__/chunk-OQOCKWGK.js +2 -0
- package/__chunks__/{chunk-NQPIY7SQ.js → chunk-OS7UULMR.js} +2 -2
- package/__chunks__/{chunk-4L4UC4KK.js → chunk-OT2PPRIZ.js} +2 -2
- package/__chunks__/{chunk-WKCBMZFO.js → chunk-OXXDP4TM.js} +2 -2
- package/__chunks__/{chunk-ZBZ2D33T.js → chunk-P4LAJSZI.js} +2 -2
- package/__chunks__/{chunk-Y6T54GU3.js → chunk-PA2FJQE3.js} +2 -2
- package/__chunks__/{chunk-DZSDMTXC.js → chunk-PA7YRLJ4.js} +2 -2
- package/__chunks__/{chunk-RCUZRC3C.js → chunk-PDZZYGEC.js} +2 -2
- package/__chunks__/{chunk-BULVZINX.js → chunk-PEFJPUQU.js} +2 -2
- package/__chunks__/{chunk-XDRX4SAA.js → chunk-PEKYL4O6.js} +2 -2
- package/__chunks__/{chunk-T3SFM7BY.js → chunk-PMXHCQDC.js} +2 -2
- package/__chunks__/chunk-Q24VQFSB.js +2 -0
- package/__chunks__/{chunk-MIIMMEVB.js → chunk-Q4B23ZMI.js} +2 -2
- package/__chunks__/{chunk-VQ5TGJUP.js → chunk-QAPHCTL4.js} +2 -2
- package/__chunks__/{chunk-RGJDAPLE.js → chunk-QBAZSMIM.js} +2 -2
- package/__chunks__/chunk-QBG6EIOF.js +2 -0
- package/__chunks__/{chunk-FJHRJU3W.js → chunk-QDLXJWD6.js} +2 -2
- package/__chunks__/{chunk-Y4WLMD6W.js → chunk-QESTSN5D.js} +2 -2
- package/__chunks__/{chunk-LLG7KF23.js → chunk-QF3PUYSG.js} +2 -2
- package/__chunks__/{chunk-NMHAHOGT.js → chunk-QI53ZFDN.js} +2 -2
- package/__chunks__/chunk-QJY5QNFA.js +2 -0
- package/__chunks__/{chunk-FTSAKHAX.js → chunk-QKXWHPCN.js} +2 -2
- package/__chunks__/{chunk-3VTA7XBW.js → chunk-QLVXK52B.js} +2 -2
- package/__chunks__/{chunk-XOZSKHFZ.js → chunk-QLWEOZ3I.js} +2 -2
- package/__chunks__/{chunk-E2CNOTDH.js → chunk-QOEOEEUC.js} +2 -2
- package/__chunks__/{chunk-IRYEGW37.js → chunk-QQ7AWSBM.js} +2 -2
- package/__chunks__/{chunk-PWDYCQ7S.js → chunk-QSLHS2JE.js} +2 -2
- package/__chunks__/{chunk-V2BWUTXB.js → chunk-QUAFV4VI.js} +2 -2
- package/__chunks__/chunk-QVRBB25U.js +2 -0
- package/__chunks__/{chunk-K3R4M6A7.js → chunk-QW427S7G.js} +2 -2
- package/__chunks__/{chunk-4QZC5VYW.js → chunk-QYPDINPH.js} +2 -2
- package/__chunks__/{chunk-T2QJAF5S.js → chunk-R3MSN5L2.js} +2 -2
- package/__chunks__/{chunk-GKLEGK2D.js → chunk-R3WI3JNE.js} +2 -2
- package/__chunks__/{chunk-H2MK5BWL.js → chunk-RBMYEUX3.js} +2 -2
- package/__chunks__/{chunk-K2YVSANR.js → chunk-RNIHENPN.js} +2 -2
- package/__chunks__/{chunk-MEG34L3R.js → chunk-RSPGTB2V.js} +2 -2
- package/__chunks__/{chunk-XCJDZ65P.js → chunk-RU4FRKJY.js} +2 -2
- package/__chunks__/{chunk-MLECQR67.js → chunk-RVGODLNP.js} +2 -2
- package/__chunks__/{chunk-2H7PWXMZ.js → chunk-RYHKEYZX.js} +2 -2
- package/__chunks__/{chunk-XGAYXXA7.js → chunk-RZUMEGI7.js} +2 -2
- package/__chunks__/{chunk-KKOBLPUZ.js → chunk-S3W3BBIU.js} +2 -2
- package/__chunks__/{chunk-SW635R2U.js → chunk-S4HC6H3F.js} +2 -2
- package/__chunks__/{chunk-WNRKMZMI.js → chunk-S7YQZOOZ.js} +2 -2
- package/__chunks__/{chunk-GX5BE265.js → chunk-SKPR6TNH.js} +2 -2
- package/__chunks__/{chunk-XMM2Z37O.js → chunk-SMVKDDUZ.js} +2 -2
- package/__chunks__/chunk-SNJO67ZH.js +2 -0
- package/__chunks__/{chunk-4SEDQIOT.js → chunk-SVDAL73E.js} +2 -2
- package/__chunks__/{chunk-AA35WKQJ.js → chunk-SXZEUVYF.js} +2 -2
- package/__chunks__/{chunk-P3KSGC7W.js → chunk-SYDU4BW7.js} +2 -2
- package/__chunks__/{chunk-7TSJXKA3.js → chunk-T2WOMTKJ.js} +2 -2
- package/__chunks__/chunk-T6IOHK72.js +2 -0
- package/__chunks__/{chunk-DIYGINCZ.js → chunk-TBLDBFFI.js} +2 -2
- package/__chunks__/{chunk-GEJYMXWQ.js → chunk-TCHPOO6J.js} +2 -2
- package/__chunks__/{chunk-HAFE3WHH.js → chunk-THA4M25B.js} +2 -2
- package/__chunks__/{chunk-ASU3GLO3.js → chunk-TIKHFLJI.js} +2 -2
- package/__chunks__/{chunk-RNXS5IBD.js → chunk-TJFLZD7V.js} +2 -2
- package/__chunks__/chunk-TLRUVMJN.js +2 -0
- package/__chunks__/{chunk-KOP64L2D.js → chunk-TM6Z6WJ6.js} +2 -2
- package/__chunks__/chunk-TP2NMXYY.js +2 -0
- package/__chunks__/{chunk-VY7QSK42.js → chunk-TPHRAA6E.js} +2 -2
- package/__chunks__/{chunk-UWGY2YEJ.js → chunk-TPZ235DN.js} +2 -2
- package/__chunks__/{chunk-2IVD3GFM.js → chunk-TS44ZHPG.js} +2 -2
- package/__chunks__/chunk-U4324STT.js +2 -0
- package/__chunks__/chunk-U4SUWZ7Y.js +2 -0
- package/__chunks__/{chunk-T2MX23OJ.js → chunk-U5YUQ4MD.js} +2 -2
- package/__chunks__/{chunk-OH2UCTZX.js → chunk-U7S3TWHE.js} +2 -2
- package/__chunks__/{chunk-HFHJ3TMS.js → chunk-UCUVEH2Q.js} +2 -2
- package/__chunks__/{chunk-QFL7NB25.js → chunk-UK33LXFH.js} +2 -2
- package/__chunks__/{chunk-446T2OHG.js → chunk-ULNB675M.js} +2 -2
- package/__chunks__/{chunk-W7F3WF37.js → chunk-UOLOFOE3.js} +2 -2
- package/__chunks__/{chunk-IKV7IEEG.js → chunk-UPP6WSPM.js} +2 -2
- package/__chunks__/{chunk-CSIFIX5P.js → chunk-UWW5OBMP.js} +2 -2
- package/__chunks__/{chunk-M5M26J6K.js → chunk-UX4O3H7O.js} +2 -2
- package/__chunks__/{chunk-P22HXGAJ.js → chunk-UZTWS27N.js} +2 -2
- package/__chunks__/{chunk-4XO5NZKS.js → chunk-V425CTEM.js} +2 -2
- package/__chunks__/{chunk-YQW5K3T4.js → chunk-VMT6LU3R.js} +2 -2
- package/__chunks__/{chunk-P4U2XSNF.js → chunk-VREY4BVN.js} +2 -2
- package/__chunks__/{chunk-TKFNXM3N.js → chunk-VRKXTIY6.js} +2 -2
- package/__chunks__/chunk-VWUSDEKV.js +2 -0
- package/__chunks__/{chunk-G4FWHZSH.js → chunk-W2QZJ6OX.js} +2 -2
- package/__chunks__/{chunk-6J3O2KKN.js → chunk-W5W2M67Y.js} +2 -2
- package/__chunks__/{chunk-QHOYOUXJ.js → chunk-W6DUS53S.js} +2 -2
- package/__chunks__/{chunk-XIDRFQDP.js → chunk-WC7IFJTP.js} +2 -2
- package/__chunks__/{chunk-F6GJEF3F.js → chunk-WIME4ETA.js} +2 -2
- package/__chunks__/{chunk-5KL5TVVT.js → chunk-WKOOOEUH.js} +2 -2
- package/__chunks__/{chunk-AEVDDTEG.js → chunk-WLMUUCBQ.js} +2 -2
- package/__chunks__/{chunk-YQBNH4RE.js → chunk-WOPCFWSY.js} +2 -2
- package/__chunks__/{chunk-EQ6AGWUZ.js → chunk-WPR2ZU5H.js} +2 -2
- package/__chunks__/{chunk-UTGXTDPD.js → chunk-WQIHQKRV.js} +2 -2
- package/__chunks__/{chunk-6JZ25IT6.js → chunk-X2XZVOWI.js} +2 -2
- package/__chunks__/{chunk-O2WCHL3O.js → chunk-XANBIXAT.js} +2 -2
- package/__chunks__/{chunk-HURGY4RS.js → chunk-XFTZX2I3.js} +2 -2
- package/__chunks__/{chunk-DEBUQF77.js → chunk-XYPH7TRL.js} +2 -2
- package/__chunks__/chunk-Y4YWMBQ6.js +2 -0
- package/__chunks__/{chunk-SJ2FCFUG.js → chunk-YBHU2SJ5.js} +2 -2
- package/__chunks__/{chunk-2E7XRUMG.js → chunk-YCEO3NV2.js} +2 -2
- package/__chunks__/chunk-YH52GH5F.js +2 -0
- package/__chunks__/chunk-YIIAY6GO.js +2 -0
- package/__chunks__/{chunk-3OAF7PRP.js → chunk-YLZGDOOB.js} +2 -2
- package/__chunks__/{chunk-L4ZPBH5U.js → chunk-YNOGXPJJ.js} +2 -2
- package/__chunks__/{chunk-LNVC6RAX.js → chunk-YPLP2IW7.js} +2 -2
- package/__chunks__/{chunk-6PCJIJGY.js → chunk-YT7GNRA5.js} +2 -2
- package/__chunks__/{chunk-AIN2NYM7.js → chunk-YWJYCZZE.js} +2 -2
- package/__chunks__/{chunk-E3H6636E.js → chunk-YYB2GU5R.js} +2 -2
- package/__chunks__/{chunk-H37PXQOC.js → chunk-ZC2GVKFV.js} +2 -2
- package/__chunks__/{chunk-SKMTCCCN.js → chunk-ZDIY65C2.js} +2 -2
- package/__chunks__/{chunk-RMZ346YA.js → chunk-ZGFO23QH.js} +2 -2
- package/__chunks__/chunk-ZJVBTOV7.js +2 -0
- package/__chunks__/{chunk-5TZIWGJE.js → chunk-ZMOOJXFX.js} +2 -2
- package/__chunks__/{chunk-I5RLZWFU.js → chunk-ZOQ6TI6W.js} +2 -2
- package/__chunks__/{chunk-HIW6PEEL.js → chunk-ZTRQNIEW.js} +2 -2
- package/__chunks__/chunk-ZWCUEIJK.js +2 -0
- package/__chunks__/{chunk-RYKNEQO2.js → chunk-ZWWEUCPA.js} +2 -2
- package/__chunks__/{chunk-P3DHURF3.js → chunk-ZYD4PW5Y.js} +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +9 -9
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/ConfirmFee.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +14 -14
- package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +7 -7
- package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/ScResultsList/index.js +14 -14
- package/__commonjs/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/ScrDetailItem/index.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +9 -9
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +9 -9
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +7 -7
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +2 -2
- package/__commonjs/UI/index.js +58 -58
- package/__commonjs/UI/pages/UnlockPage/index.js +13 -13
- package/__commonjs/UI/pages/index.js +13 -13
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +7 -7
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +7 -7
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +6 -6
- package/__commonjs/UI/walletConnect/index.js +7 -7
- package/__commonjs/__mocks__/index.js +1 -1
- package/__commonjs/__mocks__/utils/index.js +1 -1
- package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/index.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/__commonjs/components/ProviderInitializer.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/login/index.js +1 -1
- package/__commonjs/hooks/login/useWalletConnectV2Login.js +1 -1
- package/__commonjs/hooks/signMessage/getVerifier.d.ts +3 -0
- package/__commonjs/hooks/signMessage/getVerifier.js +9 -0
- package/__commonjs/hooks/signMessage/index.d.ts +1 -0
- package/__commonjs/hooks/signMessage/index.js +1 -1
- package/__commonjs/hooks/signMessage/tests/verifyMessage.test.d.ts +2 -0
- package/__commonjs/hooks/signMessage/verifyMessage.js +1 -1
- package/__commonjs/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
- package/__commonjs/wrappers/AuthenticatedRoutesWrapper/index.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__/accountConfig.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/server.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/apiCalls/accounts/getAccountFromApi.js +1 -1
- package/apiCalls/accounts/index.js +1 -1
- package/apiCalls/configuration/getApiAddressForChainId.js +1 -1
- package/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
- package/apiCalls/configuration/getNetworkConfig.js +1 -1
- package/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
- package/apiCalls/configuration/index.js +1 -1
- package/apiCalls/economics/getEconomicsInfo.js +1 -1
- package/apiCalls/economics/index.js +1 -1
- package/apiCalls/getScamAddressData.js +1 -1
- package/apiCalls/index.js +1 -1
- package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
- package/apiCalls/transactions/index.js +1 -1
- package/apiCalls/transactions/sendSignedTransactions.js +1 -1
- package/apiCalls/utils/getCleanApiAddress.js +1 -1
- package/apiCalls/utils/index.js +1 -1
- package/components/BatchTransactionsSender/BatchTransactionsSender.js +1 -1
- package/components/BatchTransactionsSender/index.js +1 -1
- package/components/BatchTransactionsTracker/BatchTransactionsTracker.js +1 -1
- package/components/LogoutListener/LogoutListener.js +1 -1
- package/components/LogoutListener/helpers/index.js +1 -1
- package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/components/LogoutListener/index.js +1 -1
- package/components/ProviderInitializer.js +1 -1
- package/components/TransactionSender/TransactionSender.js +1 -1
- package/components/TransactionSender/index.js +1 -1
- package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/constants/index.js +1 -1
- package/constants/network.js +1 -1
- package/hooks/account/index.js +1 -1
- package/hooks/account/useGetAccount.js +1 -1
- package/hooks/account/useGetAccountInfo.js +1 -1
- package/hooks/account/useGetAccountProvider.js +1 -1
- package/hooks/account/useGetIsLoggedIn.js +1 -1
- package/hooks/account/useGetLoginInfo.js +1 -1
- package/hooks/account/useGetWebsocketEvent.js +1 -1
- package/hooks/economics/index.js +1 -1
- package/hooks/economics/useGetEgldPrice.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useExtensionLogin.js +1 -1
- package/hooks/login/useLedgerLogin.js +1 -1
- package/hooks/login/useLoginService.js +1 -1
- package/hooks/login/useOperaLogin.js +1 -1
- package/hooks/login/useWalletConnectV2Login.js +1 -1
- package/hooks/login/useWebViewLogin.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/signMessage/getVerifier.d.ts +3 -0
- package/hooks/signMessage/getVerifier.js +2 -0
- package/hooks/signMessage/index.d.ts +1 -0
- package/hooks/signMessage/index.js +1 -1
- package/hooks/signMessage/tests/verifyMessage.test.d.ts +2 -0
- 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/signMessage/verifyMessage.js +1 -1
- package/hooks/toasts/index.js +1 -1
- package/hooks/toasts/useTransactionsToasts.js +1 -1
- package/hooks/transactions/batch/tracker/useBatchTransactionsTracker.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckBatch.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckBatchesOnWsFailureFallback.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckHangingBatchesFallback.js +1 -1
- package/hooks/transactions/batch/tracker/useUpdateBatch.js +1 -1
- package/hooks/transactions/batch/tracker/useVerifyBatchStatus.js +1 -1
- package/hooks/transactions/batch/useGetBatchStatus.js +1 -1
- package/hooks/transactions/batch/useGetBatches.js +1 -1
- package/hooks/transactions/batch/useResolveBatchStatusResponse.js +1 -1
- package/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
- package/hooks/transactions/helpers/buildBatchId.js +1 -1
- package/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
- package/hooks/transactions/helpers/extractSessionId.js +1 -1
- package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
- package/hooks/transactions/helpers/index.js +1 -1
- package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
- package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
- package/hooks/transactions/index.js +1 -1
- package/hooks/transactions/useCancelWalletConnectAction.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
- package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
- package/hooks/transactions/useGetFailedTransactions.js +1 -1
- package/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
- package/hooks/transactions/useGetPendingTransactions.js +1 -1
- package/hooks/transactions/useGetSignTransactionsError.js +1 -1
- package/hooks/transactions/useGetSignedTransactions.js +1 -1
- package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
- package/hooks/transactions/useGetTokenDetails.js +1 -1
- package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
- package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/hooks/transactions/useSignMultipleTransactions.js +1 -1
- package/hooks/transactions/useSignTransactions.js +1 -1
- package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/hooks/useGetNetworkConfig.js +1 -1
- package/hooks/useGetNotification.js +1 -1
- package/hooks/userInterface/index.js +1 -1
- package/hooks/userInterface/useIsDappModalVisible.js +1 -1
- package/hooks/websocketListener/index.js +1 -1
- package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
- package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
- package/models/index.js +1 -1
- package/models/newTransaction.js +1 -1
- package/package.json +1 -1
- package/providers/accountProvider.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/batchTransactionsSelectors.js +1 -1
- package/reduxStore/selectors/dappConfigSelector.js +1 -1
- package/reduxStore/selectors/dappModalsSelectors.js +1 -1
- package/reduxStore/selectors/helpers.js +1 -1
- package/reduxStore/selectors/index.js +1 -1
- package/reduxStore/selectors/loginInfoSelectors.js +1 -1
- package/reduxStore/selectors/modalsSelectors.js +1 -1
- package/reduxStore/selectors/networkConfigSelectors.js +1 -1
- package/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
- package/reduxStore/selectors/toastsSelectors.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/dappModalsSlice.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/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/nativeAuth/index.js +1 -1
- package/services/nativeAuth/nativeAuth.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/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.js +1 -1
- package/types/index.js +1 -1
- package/utils/account/getAccount.js +1 -1
- package/utils/account/getAccountBalance.js +1 -1
- package/utils/account/getAccountProviderType.js +1 -1
- package/utils/account/getAccountShard.js +1 -1
- package/utils/account/getAddress.js +1 -1
- package/utils/account/getIsProviderEqualTo.js +1 -1
- package/utils/account/getLatestNonce.js +1 -1
- package/utils/account/getShardOfAddress.js +1 -1
- package/utils/account/index.js +1 -1
- package/utils/account/loginWithExternalProvider.js +1 -1
- package/utils/account/refreshAccount.js +1 -1
- package/utils/account/setNonce.js +1 -1
- package/utils/account/signMessage.js +1 -1
- package/utils/decoders/index.js +1 -1
- package/utils/getIsLoggedIn.js +1 -1
- package/utils/index.js +1 -1
- package/utils/logout.js +1 -1
- package/utils/network/getChainID.js +1 -1
- package/utils/network/getEgldLabel.js +1 -1
- package/utils/network/getNetworkConfig.js +1 -1
- package/utils/network/index.js +1 -1
- package/utils/operations/calculateFeeInFiat.js +1 -1
- package/utils/operations/calculateFeeLimit.js +1 -1
- package/utils/operations/denominate.js +1 -1
- package/utils/operations/formatAmount.js +1 -1
- package/utils/operations/index.js +1 -1
- package/utils/operations/ledger/getLedgerVersionOptions.js +1 -1
- package/utils/operations/ledger/index.js +1 -1
- package/utils/operations/nominate.js +1 -1
- package/utils/operations/parseAmount.js +1 -1
- package/utils/smartContracts.js +1 -1
- package/utils/toasts/customToastsActions.js +1 -1
- package/utils/toasts/index.js +1 -1
- package/utils/transactions/batch/getTransactionsStatus.js +1 -1
- package/utils/transactions/batch/updateBatchTransactionsStatuses.js +1 -1
- package/utils/transactions/getAllTransactionsLink.js +1 -1
- package/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
- package/utils/transactions/getDataPayloadForTransaction.js +1 -1
- package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/index.js +1 -1
- package/utils/transactions/getTransactionLink.js +1 -1
- package/utils/transactions/index.js +1 -1
- package/utils/transactions/parseMultiEsdtTransferData.js +1 -1
- package/utils/transactions/parseTransactionAfterSigning.js +1 -1
- package/utils/transactions/removeTransactionParamsFromUrl.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/decodeByMethod.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
- package/utils/transactions/transactionInfoHelpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/mexUnwrapper.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/transactionActionUnwrapper.js +1 -1
- package/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
- package/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
- package/utils/validation/index.js +1 -1
- package/utils/validation/maxDecimals.js +1 -1
- package/utils/validation/stringIsFloat.js +1 -1
- package/utils/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-2M5KNKS5.js +0 -2
- package/__chunks__/chunk-2QSE2FA6.js +0 -2
- package/__chunks__/chunk-35ZYMGQO.js +0 -2
- package/__chunks__/chunk-3H6UA36E.js +0 -2
- package/__chunks__/chunk-3UFPJEQN.js +0 -2
- package/__chunks__/chunk-4P2IIDID.js +0 -2
- package/__chunks__/chunk-4QKZES5J.js +0 -2
- package/__chunks__/chunk-5NTLCVHO.js +0 -2
- package/__chunks__/chunk-5QBBCJKC.js +0 -2
- package/__chunks__/chunk-5RNZMIOW.js +0 -2
- package/__chunks__/chunk-6Y56RT2V.js +0 -2
- package/__chunks__/chunk-7DRXFFVW.js +0 -2
- package/__chunks__/chunk-A5ETHXWO.js +0 -2
- package/__chunks__/chunk-B32HQQCF.js +0 -2
- package/__chunks__/chunk-BFG6QNRW.js +0 -2
- package/__chunks__/chunk-CH4FIBVL.js +0 -2
- package/__chunks__/chunk-CYE2CU54.js +0 -2
- package/__chunks__/chunk-DCWHPWPW.js +0 -2
- package/__chunks__/chunk-DKZ7I33M.js +0 -2
- package/__chunks__/chunk-EJHK64CS.js +0 -2
- package/__chunks__/chunk-EOUJPDUA.js +0 -2
- package/__chunks__/chunk-EUIPKTRB.js +0 -2
- package/__chunks__/chunk-G2KBD6OO.js +0 -2
- package/__chunks__/chunk-GI346TGH.js +0 -2
- package/__chunks__/chunk-H47CES6D.js +0 -2
- package/__chunks__/chunk-H5XPEYMO.js +0 -2
- package/__chunks__/chunk-HW3OXH2C.js +0 -2
- package/__chunks__/chunk-IRHWNL6D.js +0 -2
- package/__chunks__/chunk-JP3D6JGV.js +0 -2
- package/__chunks__/chunk-K5Z2PDT5.js +0 -2
- package/__chunks__/chunk-KNFYDJS5.js +0 -2
- package/__chunks__/chunk-KP4OSU2E.js +0 -2
- package/__chunks__/chunk-KYWJKY5B.js +0 -2
- package/__chunks__/chunk-LF4J476I.js +0 -2
- package/__chunks__/chunk-LT2YIWYP.js +0 -2
- package/__chunks__/chunk-M233ITQP.js +0 -2
- package/__chunks__/chunk-MNLPCPQM.js +0 -2
- package/__chunks__/chunk-N6IULBUC.js +0 -2
- package/__chunks__/chunk-OP3UHPFU.js +0 -2
- package/__chunks__/chunk-PB3DZJL6.js +0 -2
- package/__chunks__/chunk-PDFAUOHN.js +0 -2
- package/__chunks__/chunk-QAJA57XC.js +0 -2
- package/__chunks__/chunk-RCJSLD5T.js +0 -2
- package/__chunks__/chunk-SGPL4FK2.js +0 -2
- package/__chunks__/chunk-SWFGAVUI.js +0 -2
- package/__chunks__/chunk-SXFI46PB.js +0 -2
- package/__chunks__/chunk-TIJSECHB.js +0 -2
- package/__chunks__/chunk-UB2JBJZS.js +0 -2
- package/__chunks__/chunk-UPBYOIIN.js +0 -2
- package/__chunks__/chunk-VNMYXJAN.js +0 -2
- package/__chunks__/chunk-WAP7EAYI.js +0 -2
- package/__chunks__/chunk-WILFGSVH.js +0 -2
- package/__chunks__/chunk-X42HGQWW.js +0 -2
- package/__chunks__/chunk-YCQU46Z3.js +0 -2
- package/__chunks__/chunk-ZQILXDLJ.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var _i=Object.create;var ke=Object.defineProperty,Oi=Object.defineProperties,Fi=Object.getOwnPropertyDescriptor,Ui=Object.getOwnPropertyDescriptors,Bi=Object.getOwnPropertyNames,qe=Object.getOwnPropertySymbols,Vi=Object.getPrototypeOf,Wt=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable;var Hr=(e,t,r)=>t in e?ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Wt.call(t,r)&&Hr(e,r,t[r]);if(qe)for(var r of qe(t))qr.call(t,r)&&Hr(e,r,t[r]);return e},w=(e,t)=>Oi(e,Ui(t));var je=(e,t)=>{var r={};for(var o in e)Wt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&qe)for(var o of qe(e))t.indexOf(o)<0&&qr.call(e,o)&&(r[o]=e[o]);return r};var f=(e,t)=>()=>(e&&(t=e(e=0)),t);var ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ce=(e,t)=>{for(var r in t)ke(e,r,{get:t[r],enumerable:!0})},jr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Bi(t))!Wt.call(e,i)&&i!==r&&ke(e,i,{get:()=>t[i],enumerable:!(o=Fi(t,i))||o.enumerable});return e};var b=(e,t,r)=>(r=e!=null?_i(Vi(e)):{},jr(t||!e||!e.__esModule?ke(r,"default",{value:e,enumerable:!0}):r,e)),Le=e=>jr(ke({},"__esModule",{value:!0}),e);var C=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(T){i(T)}},p=m=>{try{d(r.throw(m))}catch(T){i(T)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var Xr=ze(Ke=>{"use strict";n();Ke.byteLength=Gi;Ke.toByteArray=Hi;Ke.fromByteArray=zi;var H=[],V=[],$i=typeof Uint8Array!="undefined"?Uint8Array:Array,Ht="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(le=0,zr=Ht.length;le<zr;++le)H[le]=Ht[le],V[Ht.charCodeAt(le)]=le;var le,zr;V["-".charCodeAt(0)]=62;V["_".charCodeAt(0)]=63;function Kr(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function Gi(e){var t=Kr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Wi(e,t,r){return(t+r)*3/4-r}function Hi(e){var t,r=Kr(e),o=r[0],i=r[1],l=new $i(Wi(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=V[e.charCodeAt(m)]<<18|V[e.charCodeAt(m+1)]<<12|V[e.charCodeAt(m+2)]<<6|V[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=V[e.charCodeAt(m)]<<2|V[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=V[e.charCodeAt(m)]<<10|V[e.charCodeAt(m+1)]<<4|V[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function qi(e){return H[e>>18&63]+H[e>>12&63]+H[e>>6&63]+H[e&63]}function ji(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(qi(o));return i.join("")}function zi(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(ji(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(H[t>>2]+H[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(H[t>>10]+H[t>>4&63]+H[t<<2&63]+"=")),i.join("")}});var Yr=ze(qt=>{n();qt.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,T=m>>1,y=-7,h=r?i-1:0,R=r?-1:1,v=e[t+h];for(h+=R,l=v&(1<<-y)-1,v>>=-y,y+=d;y>0;l=l*256+e[t+h],h+=R,y-=8);for(p=l&(1<<-y)-1,l>>=-y,y+=o;y>0;p=p*256+e[t+h],h+=R,y-=8);if(l===0)l=1-T;else{if(l===m)return p?NaN:(v?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-T}return(v?-1:1)*p*Math.pow(2,l-o)};qt.write=function(e,t,r,o,i,l){var p,d,m,T=l*8-i-1,y=(1<<T)-1,h=y>>1,R=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=o?0:l-1,W=o?1:-1,fe=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,p=y):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+h>=1?t+=R/m:t+=R*Math.pow(2,1-h),t*m>=2&&(p++,m/=2),p+h>=y?(d=0,p=y):p+h>=1?(d=(t*m-1)*Math.pow(2,i),p=p+h):(d=t*Math.pow(2,h-1)*Math.pow(2,i),p=0));i>=8;e[r+v]=d&255,v+=W,d/=256,i-=8);for(p=p<<i|d,T+=i;T>0;e[r+v]=p&255,v+=W,p/=256,T-=8);e[r+v-W]|=fe*128}});var pn=ze(ye=>{"use strict";n();var jt=Xr(),Te=Yr(),Zr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ye.Buffer=u;ye.SlowBuffer=Qi;ye.INSPECT_MAX_BYTES=50;var Xe=2147483647;ye.kMaxLength=Xe;u.TYPED_ARRAY_SUPPORT=Ki();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Ki(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function Q(e){if(e>Xe)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Yt(e)}return en(e,t,r)}u.poolSize=8192;function en(e,t,r){if(typeof e=="string")return Yi(e,t);if(ArrayBuffer.isView(e))return Zi(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(q(e,ArrayBuffer)||e&&q(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(q(e,SharedArrayBuffer)||e&&q(e.buffer,SharedArrayBuffer)))return Kt(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=Ji(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return en(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function tn(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Xi(e,t,r){return tn(e),e<=0?Q(e):t!==void 0?typeof r=="string"?Q(e).fill(t,r):Q(e).fill(t):Q(e)}u.alloc=function(e,t,r){return Xi(e,t,r)};function Yt(e){return tn(e),Q(e<0?0:Zt(e)|0)}u.allocUnsafe=function(e){return Yt(e)};u.allocUnsafeSlow=function(e){return Yt(e)};function Yi(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=rn(e,t)|0,o=Q(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function zt(e){for(var t=e.length<0?0:Zt(e.length)|0,r=Q(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function Zi(e){if(q(e,Uint8Array)){var t=new Uint8Array(e);return Kt(t.buffer,t.byteOffset,t.byteLength)}return zt(e)}function Kt(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function Ji(e){if(u.isBuffer(e)){var t=Zt(e.length)|0,r=Q(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Jt(e.length)?Q(0):zt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return zt(e.data)}function Zt(e){if(e>=Xe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Xe.toString(16)+" bytes");return e|0}function Qi(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(q(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),q(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(q(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function rn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||q(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Xt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ln(e).length;default:if(i)return o?-1:Xt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=rn;function es(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return ps(this,t,r);case"utf8":case"utf-8":return on(this,t,r);case"ascii":return cs(this,t,r);case"latin1":case"binary":return ls(this,t,r);case"base64":return ss(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return us(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function pe(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)pe(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)pe(this,r,r+3),pe(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)pe(this,r,r+7),pe(this,r+1,r+6),pe(this,r+2,r+5),pe(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?on(this,0,t):es.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=ye.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Zr&&(u.prototype[Zr]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(q(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,d=o-r,m=Math.min(p,d),T=this.slice(i,l),y=t.slice(r,o),h=0;h<m;++h)if(T[h]!==y[h]){p=T[h],d=y[h];break}return p<d?-1:d<p?1:0};function nn(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Jt(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:Jr(e,t,r,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Jr(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function Jr(e,t,r,o,i){var l=1,p=e.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,d/=2,r/=2}function m(v,W){return l===1?v[W]:v.readUInt16BE(W*l)}var T;if(i){var y=-1;for(T=r;T<p;T++)if(m(e,T)===m(t,y===-1?0:T-y)){if(y===-1&&(y=T),T-y+1===d)return y*l}else y!==-1&&(T-=T-y),y=-1}else for(r+d>p&&(r=p-d),T=r;T>=0;T--){for(var h=!0,R=0;R<d;R++)if(m(e,T+R)!==m(t,R)){h=!1;break}if(h)return T}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return nn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return nn(this,t,r,o,!1)};function ts(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var d=parseInt(t.substr(p*2,2),16);if(Jt(d))return p;e[r+p]=d}return p}function rs(e,t,r,o){return Ye(Xt(t,e.length-r),e,r,o)}function ns(e,t,r,o){return Ye(gs(t),e,r,o)}function os(e,t,r,o){return Ye(ln(t),e,r,o)}function is(e,t,r,o){return Ye(fs(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return ts(this,t,r,o);case"utf8":case"utf-8":return rs(this,t,r,o);case"ascii":case"latin1":case"binary":return ns(this,t,r,o);case"base64":return os(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return is(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ss(e,t,r){return t===0&&r===e.length?jt.fromByteArray(e):jt.fromByteArray(e.slice(t,r))}function on(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,T,y,h;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(h=(l&31)<<6|m&63,h>127&&(p=h));break;case 3:m=e[i+1],T=e[i+2],(m&192)===128&&(T&192)===128&&(h=(l&15)<<12|(m&63)<<6|T&63,h>2047&&(h<55296||h>57343)&&(p=h));break;case 4:m=e[i+1],T=e[i+2],y=e[i+3],(m&192)===128&&(T&192)===128&&(y&192)===128&&(h=(l&15)<<18|(m&63)<<12|(T&63)<<6|y&63,h>65535&&h<1114112&&(p=h))}}p===null?(p=65533,d=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=d}return as(o)}var Qr=4096;function as(e){var t=e.length;if(t<=Qr)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=Qr));return r}function cs(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function ls(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function ps(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=Ts[e[l]];return i}function us(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function N(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||N(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||N(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||N(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||N(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||N(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||N(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||N(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||N(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||N(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||N(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||N(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||N(t,4,this.length),Te.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||N(t,4,this.length),Te.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||N(t,8,this.length),Te.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||N(t,8,this.length),Te.read(this,t,!1,52,8)};function _(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;_(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;_(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);_(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);_(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function sn(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function an(e,t,r,o,i){return t=+t,r=r>>>0,i||sn(e,t,r,4,34028234663852886e22,-34028234663852886e22),Te.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return an(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return an(this,t,r,!1,o)};function cn(e,t,r,o,i){return t=+t,r=r>>>0,i||sn(e,t,r,8,17976931348623157e292,-17976931348623157e292),Te.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return cn(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return cn(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var ds=/[^+/0-9A-Za-z-_]/g;function ms(e){if(e=e.split("=")[0],e=e.trim().replace(ds,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Xt(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function gs(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function fs(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function ln(e){return jt.toByteArray(ms(e))}function Ye(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function q(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Jt(e){return e!==e}var Ts=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var fn=ze((Ic,gn)=>{n();var E=gn.exports={},j,z;function Qt(){throw new Error("setTimeout has not been defined")}function er(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?j=setTimeout:j=Qt}catch(e){j=Qt}try{typeof clearTimeout=="function"?z=clearTimeout:z=er}catch(e){z=er}})();function un(e){if(j===setTimeout)return setTimeout(e,0);if((j===Qt||!j)&&setTimeout)return j=setTimeout,setTimeout(e,0);try{return j(e,0)}catch(t){try{return j.call(null,e,0)}catch(r){return j.call(this,e,0)}}}function ys(e){if(z===clearTimeout)return clearTimeout(e);if((z===er||!z)&&clearTimeout)return z=clearTimeout,clearTimeout(e);try{return z(e)}catch(t){try{return z.call(null,e)}catch(r){return z.call(this,e)}}}var ee=[],he=!1,ue,Ze=-1;function hs(){!he||!ue||(he=!1,ue.length?ee=ue.concat(ee):Ze=-1,ee.length&&dn())}function dn(){if(!he){var e=un(hs);he=!0;for(var t=ee.length;t;){for(ue=ee,ee=[];++Ze<t;)ue&&ue[Ze].run();Ze=-1,t=ee.length}ue=null,he=!1,ys(e)}}E.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];ee.push(new mn(e,t)),ee.length===1&&!he&&un(dn)};function mn(e,t){this.fun=e,this.array=t}mn.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function te(){}E.on=te;E.addListener=te;E.once=te;E.off=te;E.removeListener=te;E.removeAllListeners=te;E.emit=te;E.prependListener=te;E.prependOnceListener=te;E.listeners=function(e){return[]};E.binding=function(e){throw new Error("process.binding is not supported")};E.cwd=function(){return"/"};E.chdir=function(e){throw new Error("process.chdir is not supported")};E.umask=function(){return 0}});var s,a,bc,n=f(()=>{s=b(pn()),a=b(fn()),bc=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object)});var tr,De,Tn,yn=f(()=>{"use strict";n();tr="error when signing",De="cancelled",Tn="provider not initialized"});var Je,hn=f(()=>{"use strict";n();Je=(o=>(o.signature="signature",o.sessionId="sessionId",o.status="status",o))(Je||{})});var xn=f(()=>{"use strict";n()});var Sn=f(()=>{"use strict";n()});var $=f(()=>{"use strict";n()});var wn=f(()=>{"use strict";n()});var In=f(()=>{"use strict";n()});var O=f(()=>{"use strict";n()});var bn=f(()=>{"use strict";n()});var vn=f(()=>{"use strict";n()});var An=f(()=>{"use strict";n()});var M=f(()=>{"use strict";n();hn();xn();Sn();$();wn();In();O();bn();vn();An()});var rr,En,Wc,kn,Hc,Ln,qc,jc,zc,Dn=f(()=>{"use strict";n();M();rr={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"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",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:En,egldLabel:Wc}=rr["devnet"],{chainId:kn,egldLabel:Hc}=rr["testnet"],{chainId:Ln,egldLabel:qc}=rr["mainnet"],jc={["devnet"]:En,["testnet"]:kn,["mainnet"]:Ln},zc={[En]:"devnet",[kn]:"testnet",[Ln]:"mainnet"}});var nr=f(()=>{"use strict";n()});var Nn=f(()=>{"use strict";n()});var Rn,or=f(()=>{"use strict";n();Rn="transaction-status-toast-id"});var K,Pn=f(()=>{"use strict";n();K=require("@multiversx/sdk-web-wallet-provider")});var Cn=f(()=>{"use strict";n()});var Mn=f(()=>{"use strict";n()});var ir,sr,_n,Qe,On,xe,I=f(()=>{"use strict";n();yn();Dn();nr();Nn();or();Pn();Cn();Mn();ir=5e4,sr=1e9,_n=1,Qe="logout",On="login",xe="0"});var et,ar=f(()=>{"use strict";n();et=()=>Date.now()/1e3});var Fn=f(()=>{"use strict";n()});var Un=f(()=>{"use strict";n()});var cr=f(()=>{"use strict";n();ar();Fn();Un()});var pr={};ce(pr,{getItem:()=>Ss,localStorageKeys:()=>ie,removeItem:()=>ws,setItem:()=>xs});var ie,lr,xs,Ss,ws,Se=f(()=>{"use strict";n();cr();ie={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},lr=typeof localStorage!="undefined",xs=({key:e,data:t,expires:r})=>{!lr||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Ss=e=>{if(!lr)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:et()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},ws=e=>{!lr||localStorage.removeItem(String(e))}});var ur={};ce(ur,{clear:()=>Gn,getItem:()=>Vn,removeItem:()=>$n,setItem:()=>Bn,storage:()=>Is});var Bn,Vn,$n,Gn,Is,Wn=f(()=>{"use strict";n();Bn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Vn=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},$n=e=>sessionStorage.removeItem(String(e)),Gn=()=>sessionStorage.clear(),Is={setItem:Bn,getItem:Vn,removeItem:$n,clear:Gn}});var de,we=f(()=>{"use strict";n();Se();Wn();de={session:ur,local:pr}});var dr,k,Ne,U=f(()=>{"use strict";n();dr=require("@reduxjs/toolkit");I();k=(0,dr.createAction)(Qe),Ne=(0,dr.createAction)(On,e=>({payload:e}))});var gr,Hn,qn,tt,mr,jn,fr,kl,Tr,Ll,Dl,Nl,Rl,Pl,Cl,Ml,_l,rt,nt=f(()=>{"use strict";n();gr=require("@multiversx/sdk-core"),Hn=require("@reduxjs/toolkit"),qn=require("redux-persist");I();we();Se();U();tt={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:xe},mr={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":tt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},jn=(0,Hn.createSlice)({name:"accountInfoSlice",initialState:mr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new gr.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:tt},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(k,()=>(de.local.removeItem(ie.loginExpiresAt),mr)),e.addCase(Ne,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new gr.Address(o).hex()}),e.addCase(qn.REHYDRATE,(t,r)=>{var T;if(!((T=r.payload)!=null&&T.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let m=p&&i in p;t.accounts=m?p:mr.accounts,t.publicKey=d})}}),{setAccount:fr,setAddress:kl,setAccountNonce:Tr,setAccountShard:Ll,setLedgerAccount:Dl,updateLedgerAccount:Nl,setWalletConnectAccount:Rl,setIsAccountLoading:Pl,setAccountLoadingError:Cl,setWebsocketEvent:Ml,setWebsocketBatchEvent:_l}=jn.actions,rt=jn.reducer});function Re(){return new Date().setHours(new Date().getHours()+24)}function Pe(e){de.local.setItem({key:ie.loginExpiresAt,data:e,expires:e})}var yr=f(()=>{"use strict";n();we();Se()});var Kn,zn,Xn,ql,jl,zl,Kl,Xl,Yl,Yn,Zl,ot,it=f(()=>{"use strict";n();Kn=require("@reduxjs/toolkit");yr();$();U();zn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Xn=(0,Kn.createSlice)({name:"loginInfoSlice",initialState:zn,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload}},extraReducers:e=>{e.addCase(k,()=>zn),e.addCase(Ne,(t,r)=>{t.loginMethod=r.payload.loginMethod,Pe(Re())})}}),{setLoginMethod:ql,setWalletConnectLogin:jl,setLedgerLogin:zl,setTokenLogin:Kl,setTokenLoginSignature:Xl,setWalletLogin:Yl,invalidateLoginSession:Yn,setLogoutRoute:Zl}=Xn.actions,ot=Xn.reducer});var Jn,Zn,Qn,tp,rp,np,op,st,at=f(()=>{"use strict";n();Jn=require("@reduxjs/toolkit");U();Zn={},Qn=(0,Jn.createSlice)({name:"modalsSlice",initialState:Zn,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(k,()=>Zn)}}),{setTxSubmittedModal:tp,setNotificationModal:rp,clearTxSubmittedModal:np,clearNotificationModal:op}=Qn.actions,st=Qn.reducer});var ct=f(()=>{"use strict";n()});var eo=f(()=>{"use strict";n();ct()});function to(e){return e[Math.floor(Math.random()*e.length)]}var ro=f(()=>{"use strict";n()});var no=f(()=>{"use strict";n();nr()});var oo=f(()=>{"use strict";n();eo();ro();no()});var io,so,hr,vs,ao,xp,Sp,lt,pt=f(()=>{"use strict";n();io=require("@reduxjs/toolkit"),so=b(require("lodash.omit"));oo();hr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},vs={network:hr,chainID:"-1"},ao=(0,io.createSlice)({name:"appConfig",initialState:vs,reducers:{initializeNetworkConfig:(e,t)=>{let r=to(t.payload.walletConnectV2RelayAddresses),o=(0,so.default)(t.payload,"walletConnectV2RelayAddresses");e.network=w(x(x({},e.network),o),{walletConnectV2RelayAddress:r})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:xp,setChainID:Sp}=ao.actions,lt=ao.reducer});var co,xr,lo,Ce,po,Sr,ut,dt=f(()=>{"use strict";n();co=require("@reduxjs/toolkit");M();U();xr={isSigning:!1,signedSessions:{}},lo=(0,co.createSlice)({name:"signedMessageInfoSliceState",initialState:xr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=o},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>xr},extraReducers:e=>{e.addCase(k,()=>xr)}}),{setSignSession:Ce,clearSignedMessageInfo:po,setSignSessionState:Sr}=lo.actions,ut=lo.reducer});var mo,go,uo,fo,Es,ks,Pp,Cp,Mp,_p,mt,gt=f(()=>{"use strict";n();mo=require("@reduxjs/toolkit"),go=require("redux-persist");or();M();ar();U();uo={customToasts:[],transactionToasts:[],failTransactionToast:null},fo=(0,mo.createSlice)({name:"toastsSlice",initialState:uo,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(w(x({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:et(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=w(x({},t.payload),{toastId:Rn})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(k,()=>uo),e.addCase(go.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:Es,removeCustomToast:ks,addTransactionToast:Pp,removeTransactionToast:Cp,addFailTransactionToast:Mp,removeFailTransactionToast:_p}=fo.actions,mt=fo.reducer});var To,Ir,br,vr,Ls,wr,yo,Bp,Vp,$p,ft,Tt=f(()=>{"use strict";n();To=require("@reduxjs/toolkit");U();Ir="Transaction failed",br="Transaction successful",vr="Processing transaction",Ls="Transaction submitted",wr={},yo=(0,To.createSlice)({name:"transactionsInfo",initialState:wr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||Ir,successMessage:(o==null?void 0:o.successMessage)||br,processingMessage:(o==null?void 0:o.processingMessage)||vr,submittedMessage:(o==null?void 0:o.submittedMessage)||Ls,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>wr},extraReducers:e=>{e.addCase(k,()=>wr)}}),{clearTransactionsInfo:Bp,setTransactionsDisplayInfo:Vp,clearTransactionsInfoForSessionId:$p}=yo.actions,ft=yo.reducer});function ho(e){return e!=null&&(Bs(e)||Hs(e))}function yt(e){return e!=null&&(Vs(e)||qs(e))}function ht(e){return e!=null&&($s(e)||js(e))}function xo(e){return e!=null&&(Gs(e)||zs(e))}function So(e){return e!=null&&Ws(e)}function Bs(e){return e!=null&&Ns.includes(e)}function Vs(e){return e!=null&&Rs.includes(e)}function $s(e){return e!=null&&Ps.includes(e)}function Gs(e){return e!=null&&Cs.includes(e)}function Ws(e){return e!=null&&Ms.includes(e)}function Hs(e){return e!=null&&_s.includes(e)}function qs(e){return e!=null&&Os.includes(e)}function js(e){return e!=null&&Fs.includes(e)}function zs(e){return e!=null&&Us.includes(e)}var Ns,Rs,Ps,Cs,Ms,_s,Os,Fs,Us,Er=f(()=>{"use strict";n();$();Ns=["sent"],Rs=["success"],Ps=["fail","cancelled","timedOut"],Cs=["invalid"],Ms=["timedOut"],_s=["pending"],Os=["success"],Fs=["fail","invalid"],Us=["not executed"]});var wo,Io,Me,Ks,bo,Yp,Zp,Jp,Qp,eu,tu,ru,nu,ou,iu,xt,St=f(()=>{"use strict";n();wo=require("@reduxjs/toolkit"),Io=require("redux-persist");$();Er();U();Me={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Ks={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},bo=(0,wo.createSlice)({name:"transactionsSlice",initialState:Me,reducers:{moveTransactionsToSignedState:(e,t)=>{var T,y;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p,customTransactionInformation:d={}}=t.payload,m=((T=e.customTransactionInformationForSessionId)==null?void 0:T[r])||Ks;e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:x(x({},m),d)},((y=e==null?void 0:e.transactionsToSign)==null?void 0:y.sessionId)===r&&(e.transactionsToSign=Me.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=x(x({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var m,T,y,h,R,v,W,fe;let{sessionId:r,status:o,errorMessage:i,transactionHash:l,inTransit:p}=t.payload,d=(T=(m=e.signedTransactions)==null?void 0:m[r])==null?void 0:T.transactions;if(d!=null){e.signedTransactions[r].transactions=d.map(S=>S.hash===l?w(x({},S),{status:o,errorMessage:i,inTransit:p}):S);let Bt=(h=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:h.every(S=>yt(S.status)),Vt=(v=(R=e.signedTransactions[r])==null?void 0:R.transactions)==null?void 0:v.every(S=>ht(S.status)),$t=(fe=(W=e.signedTransactions[r])==null?void 0:W.transactions)==null?void 0:fe.every(S=>xo(S.status));Bt&&(e.signedTransactions[r].status="success"),Vt&&(e.signedTransactions[r].status="fail"),$t&&(e.signedTransactions[r].status="invalid")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=Me.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Me.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(k,()=>Me),e.addCase(Io.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((d,[m,T])=>{let y=new Date(m),h=new Date;return h.setHours(h.getHours()+5),h-y>0||(d[m]=T),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Yp,updateSignedTransactions:Zp,setTransactionsToSign:Jp,clearAllTransactionsToSign:Qp,clearAllSignedTransactions:eu,clearSignedTransaction:tu,clearTransactionToSign:ru,setSignTransactionsError:nu,setSignTransactionsCancelMessage:ou,moveTransactionsToSignedState:iu}=bo.actions,xt=bo.reducer});var vo,kr,Ao,lu,pu,uu,du,wt,It=f(()=>{"use strict";n();vo=require("@reduxjs/toolkit");U();kr={},Ao=(0,vo.createSlice)({name:"batchTransactionsSlice",initialState:kr,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>kr},extraReducers:e=>{e.addCase(k,()=>kr)}}),{setBatchTransactions:lu,updateBatchTransactions:pu,clearBatchTransactions:uu,clearAllBatchTransactions:du}=Ao.actions,wt=Ao.reducer});var ko,Eo,Lo,Tu,Do,Lr=f(()=>{"use strict";n();ko=require("@reduxjs/toolkit");U();Eo={},Lo=(0,ko.createSlice)({name:"dappConfigSlice",initialState:Eo,reducers:{setDappConfig:(e,t)=>{if(e&&t.payload){let{logoutRoute:r,shouldUseWebViewProvider:o}=t.payload;e.logoutRoute=r,e.shouldUseWebViewProvider=o}else e=t.payload}},extraReducers:e=>{e.addCase(k,()=>Eo)}}),{setDappConfig:Tu}=Lo.actions,Do=Lo.reducer});var X=f(()=>{"use strict";n();nt();it();at();pt();dt();gt();Tt();St();It();Lr()});var Dr=f(()=>{"use strict";n()});var Mo,Co,_o,Gu,Wu,Hu,qu,ju,zu,Oo,Fo=f(()=>{"use strict";n();Mo=require("@reduxjs/toolkit");U();Co={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},_o=(0,Mo.createSlice)({name:"dappModalsSlice",initialState:Co,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=x({},t.payload)}},extraReducers:e=>{e.addCase(k,()=>Co)}}),{setDappModalVisibility:Gu,setDappModalHeaderVisibility:Wu,setDappModalFooterVisibility:Hu,setDappModalHeaderText:qu,setDappModalFooterText:ju,setDappModalConfig:zu}=_o.actions,Oo=_o.reducer});var Uo,Js,Qs,me,kt=f(()=>{"use strict";n();Uo=require("@reduxjs/toolkit");Dr();nt();It();Lr();Fo();it();at();pt();dt();gt();Tt();St();Js={["account"]:rt,["dappModal"]:Oo,["dappConfig"]:Do,["loginInfo"]:ot,["modals"]:st,["networkConfig"]:lt,["signedMessageInfo"]:ut,["toasts"]:mt,["transactionsInfo"]:ft,["transactions"]:xt,["batchTransactions"]:wt},Qs=(e={})=>(0,Uo.combineReducers)(x(x({},Js),e)),me=Qs});var Go={};ce(Go,{default:()=>fa,sessionStorageReducers:()=>Nr});function re(e,t=[]){return{key:e,version:1,storage:Vo.default,blacklist:t}}var F,Bo,Vo,ea,_e,ta,ra,na,oa,ia,sa,aa,ca,la,pa,$o,ua,Nr,da,ma,ga,fa,Wo=f(()=>{"use strict";n();F=require("redux-persist"),Bo=b(require("redux-persist/lib/storage")),Vo=b(require("redux-persist/lib/storage/session"));kt();X();nt();It();it();at();pt();dt();gt();Tt();St();Dr();ea={persistReducersStorageType:"localStorage"},_e={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},ta=re(_e["account"]),ra=re(_e["loginInfo"]),na=re(_e["modals"]),oa=re(_e["networkConfig"]),ia={2:e=>w(x({},e),{networkConfig:hr})};sa=re("sdk-dapp-transactionsInfo"),aa=re("sdk-dapp-transactions",["transactionsToSign"]),ca=re("sdk-dapp-batchTransactions",["batchTransactions"]),la=re("sdk-dapp-toasts"),pa=re("sdk-dapp-signedMessageInfo"),$o={key:"sdk-dapp-store",version:2,storage:Bo.default,whitelist:Object.keys(_e),migrate:(0,F.createMigrate)(ia,{debug:!1})},ua=w(x({},$o),{whitelist:[]}),Nr={["toasts"]:(0,F.persistReducer)(la,mt),["transactions"]:(0,F.persistReducer)(aa,xt),["transactionsInfo"]:(0,F.persistReducer)(sa,ft),["batchTransactions"]:(0,F.persistReducer)(ca,wt),["signedMessageInfo"]:(0,F.persistReducer)(pa,ut)},da=w(x({},Nr),{["account"]:(0,F.persistReducer)(ta,rt),["loginInfo"]:(0,F.persistReducer)(ra,ot),["modals"]:(0,F.persistReducer)(na,st),["networkConfig"]:(0,F.persistReducer)(oa,lt)}),ma=ea.persistReducersStorageType==="localStorage",ga=ma?(0,F.persistReducer)($o,me(Nr)):(0,F.persistReducer)(ua,me(da)),fa=ga});var Ho={};ce(Ho,{default:()=>Ta});var Ta,qo=f(()=>{"use strict";n();kt();Ta=me()});var jo={};ce(jo,{default:()=>ha});var G,ya,ha,zo=f(()=>{"use strict";n();G=require("redux-persist"),ya=[G.FLUSH,G.REHYDRATE,G.PAUSE,G.PERSIST,G.PURGE,G.REGISTER],ha=ya});var Yo={};ce(Yo,{default:()=>Xo});function Xo(e){return(0,Ko.persistStore)(e)}var Ko,Zo=f(()=>{"use strict";n();Ko=require("redux-persist")});var yc={};ce(yc,{useGetLastSignedMessageSession:()=>cc,useGetSignMessageInfoStatus:()=>Gr,useGetSignMessageSession:()=>lc,useSignMessage:()=>fc,verifyMessage:()=>Tc});module.exports=Le(yc);n();n();n();var ni=require("react"),be=require("react-redux");n();var Rr=require("@reduxjs/toolkit"),ti=require("react-redux/lib/utils/Subscription");X();n();var Ro=b(require("lodash.throttle"));I();n();var No=b(require("lodash.isequal")),bt=require("reselect");M();var g=(0,bt.createSelectorCreator)(bt.defaultMemoize,No.default),vt=(e,t)=>e!=""&&Boolean(t);X();yr();we();Se();var Xs=[Qe],At=!1,Ys=(0,Ro.default)(()=>{Pe(Re())},5e3),Po=e=>t=>r=>{var m;if(Xs.includes(r.type))return t(r);let o=e.getState(),i=de.local.getItem(ie.loginExpiresAt);if(!vt((m=o==null?void 0:o.loginInfo)==null?void 0:m.loginMethod,o==null?void 0:o.account.address))return t(r);if(i==null)return Pe(Re());let p=Date.now();return i-p<0&&!At?setTimeout(()=>{At=!0,e.dispatch(Yn())},1e3):(At&&(At=!1),Ys()),t(r)};n();n();function Et(){return typeof sessionStorage!="undefined"}var Jo=Et()?(Wo(),Le(Go)).default:(qo(),Le(Ho)).default,Qo=Et()?(zo(),Le(jo)).default:[],ei=Et()?(Zo(),Le(Yo)).default:e=>e;kt();var D=(0,Rr.configureStore)({reducer:Jo,middleware:e=>e({serializableCheck:{ignoredActions:[...Qo,Tr.type,fr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Po)}),ri=(0,ti.createSubscription)(D),kd=ei(D),Ld=(0,Rr.configureStore)({reducer:me});var xa={store:D,subscription:ri},Pr=(0,ni.createContext)(xa),Pd=(0,be.createStoreHook)(Pr),oi=(0,be.createDispatchHook)(Pr),Y=(0,be.createSelectorHook)(Pr);n();n();X();var Z=e=>e.account,Oe=g(Z,e=>e.address),Lt=g(Z,Oe,(e,t)=>t in e.accounts?e.accounts[t]:tt),Od=g(Z,Lt,(e,t)=>{let i=e,{accounts:r}=i,o=je(i,["accounts"]);return w(x({},o),{account:t})}),Fd=g(Lt,e=>e.balance),Sa=g(Lt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Ud=g(Z,e=>e.shard),Bd=g(Z,e=>e.ledgerAccount),Vd=g(Z,e=>e.walletConnectAccount),$d=g(Z,e=>e.isAccountLoading),Gd=g(Z,e=>e.accountLoadingError),Wd=g(Z,e=>e.websocketEvent),Hd=g(Z,e=>e.websocketBatchEvent);n();var wa=e=>e.dappConfig,zd=g(wa,e=>e.shouldUseWebViewProvider);n();var se=e=>e.loginInfo,Zd=g(se,e=>e.loginMethod),Cr=g(se,Oe,(e,t)=>vt(e.loginMethod,t)),Jd=g(se,e=>e.walletConnectLogin),Qd=g(se,e=>e.ledgerLogin),ii=g(se,e=>e.walletLogin),em=g(se,e=>e.isLoginSessionInvalid),tm=g(se,e=>e.tokenLogin),rm=g(se,e=>e.logoutRoute);n();var si=e=>e.modals,im=g(si,e=>e.txSubmittedModal),sm=g(si,e=>e.notificationModal);n();var ge=e=>e.networkConfig,Ia=g(ge,e=>e.chainID),lm=g(ge,e=>e.network.walletConnectBridgeAddress),pm=g(ge,e=>e.network.walletConnectV2RelayAddress),um=g(ge,e=>e.network.walletConnectV2ProjectId),dm=g(ge,e=>e.network.walletConnectV2Options),mm=g(ge,e=>e.network.walletConnectDeepLink),Dt=g(ge,e=>e.network),ba=g(Dt,e=>e.apiAddress),ai=g(Dt,e=>e.explorerAddress),va=g(Dt,e=>e.egldLabel);n();var ae=e=>e.signedMessageInfo,ci=g(ae,e=>e.isSigning),li=g(ae,e=>e.errorMessage),pi=g(ae,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),ui=g(ae,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var Mr=e=>e.toasts,hm=g(Mr,e=>e.customToasts),xm=g(Mr,e=>e.transactionToasts),Sm=g(Mr,e=>e.failTransactionToast);n();X();var di={errorMessage:Ir,successMessage:br,processingMessage:vr},Aa=e=>e.transactionsInfo,vm=g(Aa,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||di);n();n();var J=require("@multiversx/sdk-core");I();n();var Or=require("@multiversx/sdk-core/out");n();n();function _r(e){try{let t=atob(e),r=btoa(t),o=s.Buffer.from(e,"base64").toString(),i=s.Buffer.from(o).toString("base64");if(e===r&&e===i||t===o)return!0}catch(t){return!1}return!1}n();n();n();n();var mi=e=>{let t=e!=null?e:"";return _r(t)?Or.TransactionPayload.fromEncoded(t):new Or.TransactionPayload(t)};function Fr(e){var r,o,i;let t=new J.Transaction(x(x({value:e.value.valueOf(),data:mi(e.data),nonce:e.nonce.valueOf(),receiver:new J.Address(e.receiver),sender:new J.Address(e.sender),gasLimit:(r=e.gasLimit.valueOf())!=null?r:ir,gasPrice:(o=e.gasPrice.valueOf())!=null?o:sr,chainID:e.chainID.valueOf(),version:new J.TransactionVersion((i=e.version)!=null?i:_n)},e.options?{options:new J.TransactionOptions(e.options)}:{}),e.guardian?{guardian:new J.Address(e.guardian)}:{}));return e.guardianSignature&&t.applySignature(s.Buffer.from(e.guardianSignature,"hex")),e.signature&&t.applySignature(s.Buffer.from(e.signature,"hex")),t}n();n();n();n();n();var La=require("@multiversx/sdk-core/out");n();I();n();var fi=require("@multiversx/sdk-core");M();n();var gi=require("@multiversx/sdk-core");function Da(e){try{let t=new gi.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function Fe(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&Da(e)}n();n();n();var Na=require("@multiversx/sdk-core"),Ra=b(require("bignumber.js"));$();n();n();n();n();n();n();n();O();n();n();O();n();n();n();var Ua=b(require("bignumber.js"));I();n();var Fa=require("@multiversx/sdk-core"),Ur=b(require("bignumber.js"));I();n();var _a=b(require("bignumber.js"));n();Ur.default.config({ROUNDING_MODE:Ur.default.ROUND_FLOOR});n();n();n();I();n();n();n();n();I();n();I();n();var Ba=require("@multiversx/sdk-core");I();n();var Be=require("@multiversx/sdk-core"),$a=require("@multiversx/sdk-network-providers");I();n();n();var Va=b(require("bignumber.js"));I();n();I();n();n();n();n();n();n();I();n();I();n();I();n();O();var Wa=["reDelegateRewards","claimRewards","unBond"],Ha=["wrapEgld","unwrapEgld"],qa=["unStake"],ja=["unDelegate"];n();n();n();I();n();var Xa=b(require("bignumber.js"));n();n();O();n();var Ya=b(require("bignumber.js"));n();n();n();var Ja=b(require("bignumber.js"));M();n();n();n();n();$();n();var ec=require("@multiversx/sdk-web-wallet-provider");I();n();var Si=b(require("qs"));n();var Rt=e=>{let t=new URLSearchParams(e).toString(),r=window==null?void 0:window.location.pathname,o=t?`?${t}`:"",i=r?`${r}${o}`:"./";setTimeout(()=>{window==null||window.history.replaceState({},document==null?void 0:document.title,i)})};n();var Ve=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined";n();var Qa={search:Ve()?window.location.search:"",removeParams:[]},Pt=(e,t=Qa)=>{var p;let r={},o=Ve()?window.location.search:"",i=(p=t.search)!=null?p:o;if(i){let d=i?new URLSearchParams(i):[];r=Object.fromEntries(d)}let l={};return e.forEach(d=>{l[d]=r[d],delete r[d]}),t.removeParams!=null&&Object.keys(r).forEach(d=>{var T,y;let[m]=d.split("[");(((T=t.removeParams)==null?void 0:T.includes(d))||((y=t.removeParams)==null?void 0:y.includes(m)))&&delete r[d]}),{remainingParams:l,params:r,clearNavigationHistory:()=>Rt(r)}};var $r=({removeParams:e,search:t})=>{let r=Ve()?window.location.search:"",o=t!=null?t:r;if(!o)return{};let i=Si.default.parse(o.replace("?","")),l=Object.keys(i).filter(d=>!e.includes(d)),{remainingParams:p}=Pt(l,{search:t,removeParams:e});return Rt(p),p};n();n();n();n();O();n();n();n();var tc=b(require("linkifyjs"));n();I();n();var rc=b(require("bignumber.js"));n();M();n();n();$();n();$();n();n();n();O();n();O();n();var nc=b(require("bignumber.js"));I();O();n();O();n();var Ii=require("react");M();n();n();O();n();n();var oc=require("@multiversx/sdk-core/out"),ic=b(require("bignumber.js"));O();n();M();n();n();M();var Wx=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var bi=require("react");M();n();var ac=require("react");O();var Yx=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Er();var Mt=e=>e.transactions,$e=g(Mt,e=>e.signedTransactions),_S=g(Mt,e=>e.signTransactionsError),OS=g(Mt,e=>e.signTransactionsCancelMessage),_t=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),FS=g($e,_t(ho)),US=g($e,_t(yt)),BS=g($e,_t(ht)),VS=g($e,_t(So)),$S=g(Mt,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:w(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Fr(r)))||[]})}),GS=g($e,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});var cc=()=>Y(pi);n();var lc=e=>{let t=Y(ae);if(!!e)return t.signedSessions[e]};n();var Gr=()=>{let e=Y(ci),t=Y(li);return{isPending:e,errorMessage:t}};n();var Ee=require("react"),Ft=require("@multiversx/sdk-core");I();n();n();n();n();var Ai=require("@multiversx/sdk-extension-provider"),Ei=require("@multiversx/sdk-hw-provider"),ki=require("@multiversx/sdk-opera-provider"),Li=require("@multiversx/sdk-web-wallet-provider");I();$();n();var vi=ve;var Ge=e=>{switch(e==null?void 0:e.constructor){case Li.WalletProvider:return"wallet";case vi:return"walletconnectv2";case Ei.HWProvider:return"ledger";case Ai.ExtensionProvider:return"extension";case ki.OperaProvider:return"opera";case ve:return"";default:return"extra"}};var oe=e=>`Unable to perform ${e}, Provider not initialized`,ve=class{init(){return Promise.resolve(!1)}login(t){throw new Error(oe(`login with options: ${t}`))}logout(t){throw new Error(oe(`logout with options: ${t}`))}getAddress(){throw new Error(oe("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(oe(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(oe(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(oe(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(oe(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(oe(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(oe(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},Wr=new ve;var pc=Wr;function B(){return pc||Wr}var Di=()=>{let e=B(),t=Ge(e);return{provider:e,providerType:t}};X();M();n();var Ot=require("@multiversx/sdk-core");n();$();n();n();function Ni(){let e=B();return Ge(e)}function We(e){return Ni()===e}n();var Ri=()=>{let e=window==null?void 0:window.location.search,t=new URLSearchParams(e),r=Object.fromEntries(t),o=r==null?void 0:r.address;return Fe(o)?o:null};function Ae(){let e=D.getState(),t=B(),r=Oe(e),o=Cr(e),i=ii(e);if(!t)throw"provider not initialized";return We("ledger")&&o?new Promise(l=>{l(r)}):!We("")&&!We("wallet")&&!We("extra")?t.getAddress():new Promise(l=>{let p=Ri();i!=null&&p&&l(p),o&&l(r),l("")})}var Pi=r=>C(void 0,[r],function*({message:e,callbackRoute:t}){let o=yield Ae(),i=B(),l=window!=null&&window.location?`${window.location.origin}${t}`:`${t}`,p=new Ot.SignableMessage({address:new Ot.Address(o),message:s.Buffer.from(e,"ascii")});return yield i.signMessage(p,{callbackUrl:encodeURIComponent(l)})});n();n();n();n();var uc=b(require("axios"));n();n();n();n();n();n();U();M();n();X();n();X();n();cr();n();n();var mc=b(require("platform"));n();n();U();M();ct();we();Se();n();n();n();n();n();n();n();n();n();$();n();ct();n();n();n();n();we();n();n();n();X();n();n();var gc=b(require("axios"));var fc=()=>{let e=oi(),[t,r]=(0,Ee.useState)(""),i=Y(ae).signedSessions[t],{isPending:l,errorMessage:p}=Gr(),d=window==null?void 0:window.location.search,{provider:m,providerType:T}=Di(),y=T==="wallet",h=Y(ui),R=()=>(e(po()),$r({removeParams:Object.keys(Je)})),v=({callbackRoute:S,errorMessage:L=De})=>{let A=L.includes(De),P=Date.now().toString();i||r(P),e(Ce({errorMessage:L,sessionId:P,signedSession:{callbackUrl:S,status:A?"cancelled":"failed"}}))},W=(S,L)=>{if(!S)return"";let A=new URL(S);return A.searchParams.get("sessionId")||A.searchParams.append("sessionId",L),`${y?window==null?void 0:window.location.origin:""}${A.pathname}${A.search}`},fe=()=>C(void 0,null,function*(){var S;if(!y)try{if(!(yield(S=m==null?void 0:m.init)==null?void 0:S.call(m)))return}catch(L){let A=(L==null?void 0:L.message)||L||Tn;console.error(A)}}),Bt=A=>C(void 0,[A],function*({message:S,callbackRoute:L}){let P=yield Ae(),Gt=B(),Ci=encodeURIComponent(String(L)),Mi=new Ft.SignableMessage({address:new Ft.Address(P),message:s.Buffer.from(S,"ascii")});return Gt.signMessage(Mi,{callbackUrl:Ci})}),Vt=S=>C(void 0,null,function*(){let L=Date.now().toString();r(L);let A=W(S.callbackRoute,L);if(e(Ce({sessionId:L,signedSession:{status:"pending",message:S.message,callbackUrl:A}})),y)return Bt(w(x({},S),{callbackRoute:A}));try{yield fe()}catch(P){return v({errorMessage:String(P),callbackRoute:A}),null}try{let P=yield Pi(w(x({},S),{callbackRoute:A}));if(P.signature)return e(Ce({sessionId:L,signedSession:{status:"signed",callbackUrl:A,message:S.message,signature:P.signature.toString("hex")}})),P;v({errorMessage:De,callbackRoute:A})}catch(P){let Gt=(P==null?void 0:P.message)||P||tr;v({errorMessage:Gt,callbackRoute:A})}return null}),$t=()=>{if(d){let{remainingParams:{signature:S,sessionId:L,status:A},clearNavigationHistory:P}=Pt(Object.values(Je));if(!L)return;if(r(L),["cancelled","failed"].includes(A))return v({errorMessage:A==="cancelled"?De:tr});if(S&&A==="signed")return e(Ce({sessionId:t,signedSession:{signature:S,status:A}}));P()}};return(0,Ee.useEffect)(()=>{$t()},[d]),(0,Ee.useEffect)(()=>{(l||p)&&!i&&e(Sr({isSigning:!1,errorMessage:""}))},[]),(0,Ee.useEffect)(()=>{t&&!i&&!l&&e(Sr({isSigning:!1,errorMessage:""}))},[t]),{onAbort:R,onCancel:v,signMessage:Vt,sessionId:t||h}};n();var He=require("@multiversx/sdk-core/out"),Ut=require("@multiversx/sdk-wallet"),Tc=e=>{try{let{message:t,address:r,signature:o}=JSON.parse(e),i=s.Buffer.from(t.replace("0x",""),"hex"),l=s.Buffer.from(o.replace("0x",""),"hex"),p=new He.Address(r),d=new He.SignableMessage({address:p,message:i,signature:l}),m=new Ut.UserPublicKey(He.Address.fromString(r).pubkey());return{isVerified:new Ut.UserVerifier(m).verify(d.serializeForSigning(),d.getSignature()),message:i.toString(),address:r}}catch(t){return{isVerified:!1,message:"",address:""}}};0&&(module.exports={useGetLastSignedMessageSession,useGetSignMessageInfoStatus,useGetSignMessageSession,useSignMessage,verifyMessage});
|
|
1
|
+
"use strict";var Fi=Object.create;var ke=Object.defineProperty,Ui=Object.defineProperties,Bi=Object.getOwnPropertyDescriptor,Vi=Object.getOwnPropertyDescriptors,$i=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols,Gi=Object.getPrototypeOf,Wt=Object.prototype.hasOwnProperty,jr=Object.prototype.propertyIsEnumerable;var qr=(e,t,r)=>t in e?ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Wt.call(t,r)&&qr(e,r,t[r]);if(He)for(var r of He(t))jr.call(t,r)&&qr(e,r,t[r]);return e},w=(e,t)=>Ui(e,Vi(t));var qe=(e,t)=>{var r={};for(var o in e)Wt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&He)for(var o of He(e))t.indexOf(o)<0&&jr.call(e,o)&&(r[o]=e[o]);return r};var f=(e,t)=>()=>(e&&(t=e(e=0)),t);var je=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ce=(e,t)=>{for(var r in t)ke(e,r,{get:t[r],enumerable:!0})},zr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of $i(t))!Wt.call(e,i)&&i!==r&&ke(e,i,{get:()=>t[i],enumerable:!(o=Bi(t,i))||o.enumerable});return e};var b=(e,t,r)=>(r=e!=null?Fi(Gi(e)):{},zr(t||!e||!e.__esModule?ke(r,"default",{value:e,enumerable:!0}):r,e)),Le=e=>zr(ke({},"__esModule",{value:!0}),e);var C=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(T){i(T)}},p=m=>{try{d(r.throw(m))}catch(T){i(T)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var Yr=je(ze=>{"use strict";n();ze.byteLength=Hi;ze.toByteArray=ji;ze.fromByteArray=Xi;var H=[],V=[],Wi=typeof Uint8Array!="undefined"?Uint8Array:Array,Ht="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(le=0,Kr=Ht.length;le<Kr;++le)H[le]=Ht[le],V[Ht.charCodeAt(le)]=le;var le,Kr;V["-".charCodeAt(0)]=62;V["_".charCodeAt(0)]=63;function Xr(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function Hi(e){var t=Xr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function qi(e,t,r){return(t+r)*3/4-r}function ji(e){var t,r=Xr(e),o=r[0],i=r[1],l=new Wi(qi(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=V[e.charCodeAt(m)]<<18|V[e.charCodeAt(m+1)]<<12|V[e.charCodeAt(m+2)]<<6|V[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=V[e.charCodeAt(m)]<<2|V[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=V[e.charCodeAt(m)]<<10|V[e.charCodeAt(m+1)]<<4|V[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function zi(e){return H[e>>18&63]+H[e>>12&63]+H[e>>6&63]+H[e&63]}function Ki(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(zi(o));return i.join("")}function Xi(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(Ki(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(H[t>>2]+H[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(H[t>>10]+H[t>>4&63]+H[t<<2&63]+"=")),i.join("")}});var Zr=je(qt=>{n();qt.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,T=m>>1,y=-7,h=r?i-1:0,R=r?-1:1,v=e[t+h];for(h+=R,l=v&(1<<-y)-1,v>>=-y,y+=d;y>0;l=l*256+e[t+h],h+=R,y-=8);for(p=l&(1<<-y)-1,l>>=-y,y+=o;y>0;p=p*256+e[t+h],h+=R,y-=8);if(l===0)l=1-T;else{if(l===m)return p?NaN:(v?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-T}return(v?-1:1)*p*Math.pow(2,l-o)};qt.write=function(e,t,r,o,i,l){var p,d,m,T=l*8-i-1,y=(1<<T)-1,h=y>>1,R=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=o?0:l-1,W=o?1:-1,fe=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,p=y):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+h>=1?t+=R/m:t+=R*Math.pow(2,1-h),t*m>=2&&(p++,m/=2),p+h>=y?(d=0,p=y):p+h>=1?(d=(t*m-1)*Math.pow(2,i),p=p+h):(d=t*Math.pow(2,h-1)*Math.pow(2,i),p=0));i>=8;e[r+v]=d&255,v+=W,d/=256,i-=8);for(p=p<<i|d,T+=i;T>0;e[r+v]=p&255,v+=W,p/=256,T-=8);e[r+v-W]|=fe*128}});var un=je(ye=>{"use strict";n();var jt=Yr(),Te=Zr(),Jr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ye.Buffer=u;ye.SlowBuffer=ts;ye.INSPECT_MAX_BYTES=50;var Ke=2147483647;ye.kMaxLength=Ke;u.TYPED_ARRAY_SUPPORT=Yi();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Yi(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function Q(e){if(e>Ke)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Yt(e)}return tn(e,t,r)}u.poolSize=8192;function tn(e,t,r){if(typeof e=="string")return Ji(e,t);if(ArrayBuffer.isView(e))return Qi(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(q(e,ArrayBuffer)||e&&q(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(q(e,SharedArrayBuffer)||e&&q(e.buffer,SharedArrayBuffer)))return Kt(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=es(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return tn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function rn(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Zi(e,t,r){return rn(e),e<=0?Q(e):t!==void 0?typeof r=="string"?Q(e).fill(t,r):Q(e).fill(t):Q(e)}u.alloc=function(e,t,r){return Zi(e,t,r)};function Yt(e){return rn(e),Q(e<0?0:Zt(e)|0)}u.allocUnsafe=function(e){return Yt(e)};u.allocUnsafeSlow=function(e){return Yt(e)};function Ji(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=nn(e,t)|0,o=Q(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function zt(e){for(var t=e.length<0?0:Zt(e.length)|0,r=Q(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function Qi(e){if(q(e,Uint8Array)){var t=new Uint8Array(e);return Kt(t.buffer,t.byteOffset,t.byteLength)}return zt(e)}function Kt(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function es(e){if(u.isBuffer(e)){var t=Zt(e.length)|0,r=Q(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Jt(e.length)?Q(0):zt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return zt(e.data)}function Zt(e){if(e>=Ke)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ke.toString(16)+" bytes");return e|0}function ts(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(q(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),q(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(q(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function nn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||q(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Xt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return pn(e).length;default:if(i)return o?-1:Xt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=nn;function rs(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return ds(this,t,r);case"utf8":case"utf-8":return sn(this,t,r);case"ascii":return ps(this,t,r);case"latin1":case"binary":return us(this,t,r);case"base64":return cs(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ms(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function pe(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)pe(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)pe(this,r,r+3),pe(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)pe(this,r,r+7),pe(this,r+1,r+6),pe(this,r+2,r+5),pe(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?sn(this,0,t):rs.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=ye.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Jr&&(u.prototype[Jr]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(q(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,d=o-r,m=Math.min(p,d),T=this.slice(i,l),y=t.slice(r,o),h=0;h<m;++h)if(T[h]!==y[h]){p=T[h],d=y[h];break}return p<d?-1:d<p?1:0};function on(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Jt(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:Qr(e,t,r,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Qr(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function Qr(e,t,r,o,i){var l=1,p=e.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,d/=2,r/=2}function m(v,W){return l===1?v[W]:v.readUInt16BE(W*l)}var T;if(i){var y=-1;for(T=r;T<p;T++)if(m(e,T)===m(t,y===-1?0:T-y)){if(y===-1&&(y=T),T-y+1===d)return y*l}else y!==-1&&(T-=T-y),y=-1}else for(r+d>p&&(r=p-d),T=r;T>=0;T--){for(var h=!0,R=0;R<d;R++)if(m(e,T+R)!==m(t,R)){h=!1;break}if(h)return T}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return on(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return on(this,t,r,o,!1)};function ns(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var d=parseInt(t.substr(p*2,2),16);if(Jt(d))return p;e[r+p]=d}return p}function os(e,t,r,o){return Xe(Xt(t,e.length-r),e,r,o)}function is(e,t,r,o){return Xe(Ts(t),e,r,o)}function ss(e,t,r,o){return Xe(pn(t),e,r,o)}function as(e,t,r,o){return Xe(ys(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return ns(this,t,r,o);case"utf8":case"utf-8":return os(this,t,r,o);case"ascii":case"latin1":case"binary":return is(this,t,r,o);case"base64":return ss(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return as(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function cs(e,t,r){return t===0&&r===e.length?jt.fromByteArray(e):jt.fromByteArray(e.slice(t,r))}function sn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,T,y,h;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(h=(l&31)<<6|m&63,h>127&&(p=h));break;case 3:m=e[i+1],T=e[i+2],(m&192)===128&&(T&192)===128&&(h=(l&15)<<12|(m&63)<<6|T&63,h>2047&&(h<55296||h>57343)&&(p=h));break;case 4:m=e[i+1],T=e[i+2],y=e[i+3],(m&192)===128&&(T&192)===128&&(y&192)===128&&(h=(l&15)<<18|(m&63)<<12|(T&63)<<6|y&63,h>65535&&h<1114112&&(p=h))}}p===null?(p=65533,d=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=d}return ls(o)}var en=4096;function ls(e){var t=e.length;if(t<=en)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=en));return r}function ps(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function us(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function ds(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=hs[e[l]];return i}function ms(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function N(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||N(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||N(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||N(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||N(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||N(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||N(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||N(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||N(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||N(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||N(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||N(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||N(t,4,this.length),Te.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||N(t,4,this.length),Te.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||N(t,8,this.length),Te.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||N(t,8,this.length),Te.read(this,t,!1,52,8)};function _(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;_(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;_(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);_(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);_(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function an(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function cn(e,t,r,o,i){return t=+t,r=r>>>0,i||an(e,t,r,4,34028234663852886e22,-34028234663852886e22),Te.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return cn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return cn(this,t,r,!1,o)};function ln(e,t,r,o,i){return t=+t,r=r>>>0,i||an(e,t,r,8,17976931348623157e292,-17976931348623157e292),Te.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return ln(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return ln(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var gs=/[^+/0-9A-Za-z-_]/g;function fs(e){if(e=e.split("=")[0],e=e.trim().replace(gs,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Xt(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function Ts(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function ys(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function pn(e){return jt.toByteArray(fs(e))}function Xe(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function q(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Jt(e){return e!==e}var hs=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var Tn=je((vc,fn)=>{n();var E=fn.exports={},j,z;function Qt(){throw new Error("setTimeout has not been defined")}function er(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?j=setTimeout:j=Qt}catch(e){j=Qt}try{typeof clearTimeout=="function"?z=clearTimeout:z=er}catch(e){z=er}})();function dn(e){if(j===setTimeout)return setTimeout(e,0);if((j===Qt||!j)&&setTimeout)return j=setTimeout,setTimeout(e,0);try{return j(e,0)}catch(t){try{return j.call(null,e,0)}catch(r){return j.call(this,e,0)}}}function xs(e){if(z===clearTimeout)return clearTimeout(e);if((z===er||!z)&&clearTimeout)return z=clearTimeout,clearTimeout(e);try{return z(e)}catch(t){try{return z.call(null,e)}catch(r){return z.call(this,e)}}}var ee=[],he=!1,ue,Ye=-1;function Ss(){!he||!ue||(he=!1,ue.length?ee=ue.concat(ee):Ye=-1,ee.length&&mn())}function mn(){if(!he){var e=dn(Ss);he=!0;for(var t=ee.length;t;){for(ue=ee,ee=[];++Ye<t;)ue&&ue[Ye].run();Ye=-1,t=ee.length}ue=null,he=!1,xs(e)}}E.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];ee.push(new gn(e,t)),ee.length===1&&!he&&dn(mn)};function gn(e,t){this.fun=e,this.array=t}gn.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function te(){}E.on=te;E.addListener=te;E.once=te;E.off=te;E.removeListener=te;E.removeAllListeners=te;E.emit=te;E.prependListener=te;E.prependOnceListener=te;E.listeners=function(e){return[]};E.binding=function(e){throw new Error("process.binding is not supported")};E.cwd=function(){return"/"};E.chdir=function(e){throw new Error("process.chdir is not supported")};E.umask=function(){return 0}});var s,a,Ac,n=f(()=>{s=b(un()),a=b(Tn()),Ac=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object)});var rr,De,hn,xn=f(()=>{"use strict";n();rr="error when signing",De="cancelled",hn="provider not initialized"});var Je,Sn=f(()=>{"use strict";n();Je=(o=>(o.signature="signature",o.sessionId="sessionId",o.status="status",o))(Je||{})});var wn=f(()=>{"use strict";n()});var In=f(()=>{"use strict";n()});var $=f(()=>{"use strict";n()});var bn=f(()=>{"use strict";n()});var vn=f(()=>{"use strict";n()});var O=f(()=>{"use strict";n()});var An=f(()=>{"use strict";n()});var En=f(()=>{"use strict";n()});var kn=f(()=>{"use strict";n()});var M=f(()=>{"use strict";n();Sn();wn();In();$();bn();vn();O();An();En();kn()});var nr,Ln,jc,Dn,zc,Nn,Kc,Xc,Yc,Rn=f(()=>{"use strict";n();M();nr={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"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",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Ln,egldLabel:jc}=nr["devnet"],{chainId:Dn,egldLabel:zc}=nr["testnet"],{chainId:Nn,egldLabel:Kc}=nr["mainnet"],Xc={["devnet"]:Ln,["testnet"]:Dn,["mainnet"]:Nn},Yc={[Ln]:"devnet",[Dn]:"testnet",[Nn]:"mainnet"}});var or=f(()=>{"use strict";n()});var Pn=f(()=>{"use strict";n()});var Cn,ir=f(()=>{"use strict";n();Cn="transaction-status-toast-id"});var K,Mn=f(()=>{"use strict";n();K=require("@multiversx/sdk-web-wallet-provider")});var _n=f(()=>{"use strict";n()});var On=f(()=>{"use strict";n()});var sr,ar,Fn,Qe,Un,xe,I=f(()=>{"use strict";n();xn();Rn();or();Pn();ir();Mn();_n();On();sr=5e4,ar=1e9,Fn=1,Qe="logout",Un="login",xe="0"});var et,cr=f(()=>{"use strict";n();et=()=>Date.now()/1e3});var Bn=f(()=>{"use strict";n()});var Vn=f(()=>{"use strict";n()});var lr=f(()=>{"use strict";n();cr();Bn();Vn()});var ur={};ce(ur,{getItem:()=>Is,localStorageKeys:()=>ie,removeItem:()=>bs,setItem:()=>ws});var ie,pr,ws,Is,bs,Se=f(()=>{"use strict";n();lr();ie={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},pr=typeof localStorage!="undefined",ws=({key:e,data:t,expires:r})=>{!pr||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Is=e=>{if(!pr)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:et()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},bs=e=>{!pr||localStorage.removeItem(String(e))}});var dr={};ce(dr,{clear:()=>Hn,getItem:()=>Gn,removeItem:()=>Wn,setItem:()=>$n,storage:()=>vs});var $n,Gn,Wn,Hn,vs,qn=f(()=>{"use strict";n();$n=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Gn=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},Wn=e=>sessionStorage.removeItem(String(e)),Hn=()=>sessionStorage.clear(),vs={setItem:$n,getItem:Gn,removeItem:Wn,clear:Hn}});var de,we=f(()=>{"use strict";n();Se();qn();de={session:dr,local:ur}});var mr,k,Ne,U=f(()=>{"use strict";n();mr=require("@reduxjs/toolkit");I();k=(0,mr.createAction)(Qe),Ne=(0,mr.createAction)(Un,e=>({payload:e}))});var fr,jn,zn,tt,gr,Kn,Tr,Nl,yr,Rl,Pl,Cl,Ml,_l,Ol,Fl,Ul,rt,nt=f(()=>{"use strict";n();fr=require("@multiversx/sdk-core"),jn=require("@reduxjs/toolkit"),zn=require("redux-persist");I();we();Se();U();tt={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:xe},gr={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":tt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Kn=(0,jn.createSlice)({name:"accountInfoSlice",initialState:gr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new fr.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:tt},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(k,()=>(de.local.removeItem(ie.loginExpiresAt),gr)),e.addCase(Ne,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new fr.Address(o).hex()}),e.addCase(zn.REHYDRATE,(t,r)=>{var T;if(!((T=r.payload)!=null&&T.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let m=p&&i in p;t.accounts=m?p:gr.accounts,t.publicKey=d})}}),{setAccount:Tr,setAddress:Nl,setAccountNonce:yr,setAccountShard:Rl,setLedgerAccount:Pl,updateLedgerAccount:Cl,setWalletConnectAccount:Ml,setIsAccountLoading:_l,setAccountLoadingError:Ol,setWebsocketEvent:Fl,setWebsocketBatchEvent:Ul}=Kn.actions,rt=Kn.reducer});function Re(){return new Date().setHours(new Date().getHours()+24)}function Pe(e){de.local.setItem({key:ie.loginExpiresAt,data:e,expires:e})}var hr=f(()=>{"use strict";n();we();Se()});var Yn,Xn,Zn,Kl,Xl,Yl,Zl,Jl,Ql,Jn,ep,ot,it=f(()=>{"use strict";n();Yn=require("@reduxjs/toolkit");hr();$();U();Xn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Zn=(0,Yn.createSlice)({name:"loginInfoSlice",initialState:Xn,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload}},extraReducers:e=>{e.addCase(k,()=>Xn),e.addCase(Ne,(t,r)=>{t.loginMethod=r.payload.loginMethod,Pe(Re())})}}),{setLoginMethod:Kl,setWalletConnectLogin:Xl,setLedgerLogin:Yl,setTokenLogin:Zl,setTokenLoginSignature:Jl,setWalletLogin:Ql,invalidateLoginSession:Jn,setLogoutRoute:ep}=Zn.actions,ot=Zn.reducer});var eo,Qn,to,op,ip,sp,ap,st,at=f(()=>{"use strict";n();eo=require("@reduxjs/toolkit");U();Qn={},to=(0,eo.createSlice)({name:"modalsSlice",initialState:Qn,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(k,()=>Qn)}}),{setTxSubmittedModal:op,setNotificationModal:ip,clearTxSubmittedModal:sp,clearNotificationModal:ap}=to.actions,st=to.reducer});var ct=f(()=>{"use strict";n()});var ro=f(()=>{"use strict";n();ct()});function no(e){return e[Math.floor(Math.random()*e.length)]}var oo=f(()=>{"use strict";n()});var io=f(()=>{"use strict";n();or()});var so=f(()=>{"use strict";n();ro();oo();io()});var ao,co,xr,Es,lo,Ip,bp,lt,pt=f(()=>{"use strict";n();ao=require("@reduxjs/toolkit"),co=b(require("lodash.omit"));so();xr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Es={network:xr,chainID:"-1"},lo=(0,ao.createSlice)({name:"appConfig",initialState:Es,reducers:{initializeNetworkConfig:(e,t)=>{let r=no(t.payload.walletConnectV2RelayAddresses),o=(0,co.default)(t.payload,"walletConnectV2RelayAddresses");e.network=w(x(x({},e.network),o),{walletConnectV2RelayAddress:r})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Ip,setChainID:bp}=lo.actions,lt=lo.reducer});var po,Sr,uo,Ce,mo,wr,ut,dt=f(()=>{"use strict";n();po=require("@reduxjs/toolkit");M();U();Sr={isSigning:!1,signedSessions:{}},uo=(0,po.createSlice)({name:"signedMessageInfoSliceState",initialState:Sr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=o},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>Sr},extraReducers:e=>{e.addCase(k,()=>Sr)}}),{setSignSession:Ce,clearSignedMessageInfo:mo,setSignSessionState:wr}=uo.actions,ut=uo.reducer});var fo,To,go,yo,Ls,Ds,_p,Op,Fp,Up,mt,gt=f(()=>{"use strict";n();fo=require("@reduxjs/toolkit"),To=require("redux-persist");ir();M();cr();U();go={customToasts:[],transactionToasts:[],failTransactionToast:null},yo=(0,fo.createSlice)({name:"toastsSlice",initialState:go,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(w(x({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:et(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=w(x({},t.payload),{toastId:Cn})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(k,()=>go),e.addCase(To.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:Ls,removeCustomToast:Ds,addTransactionToast:_p,removeTransactionToast:Op,addFailTransactionToast:Fp,removeFailTransactionToast:Up}=yo.actions,mt=yo.reducer});var ho,br,vr,Ar,Ns,Ir,xo,Gp,Wp,Hp,ft,Tt=f(()=>{"use strict";n();ho=require("@reduxjs/toolkit");U();br="Transaction failed",vr="Transaction successful",Ar="Processing transaction",Ns="Transaction submitted",Ir={},xo=(0,ho.createSlice)({name:"transactionsInfo",initialState:Ir,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||br,successMessage:(o==null?void 0:o.successMessage)||vr,processingMessage:(o==null?void 0:o.processingMessage)||Ar,submittedMessage:(o==null?void 0:o.submittedMessage)||Ns,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Ir},extraReducers:e=>{e.addCase(k,()=>Ir)}}),{clearTransactionsInfo:Gp,setTransactionsDisplayInfo:Wp,clearTransactionsInfoForSessionId:Hp}=xo.actions,ft=xo.reducer});function So(e){return e!=null&&($s(e)||js(e))}function yt(e){return e!=null&&(Gs(e)||zs(e))}function ht(e){return e!=null&&(Ws(e)||Ks(e))}function wo(e){return e!=null&&(Hs(e)||Xs(e))}function Io(e){return e!=null&&qs(e)}function $s(e){return e!=null&&Ps.includes(e)}function Gs(e){return e!=null&&Cs.includes(e)}function Ws(e){return e!=null&&Ms.includes(e)}function Hs(e){return e!=null&&_s.includes(e)}function qs(e){return e!=null&&Os.includes(e)}function js(e){return e!=null&&Fs.includes(e)}function zs(e){return e!=null&&Us.includes(e)}function Ks(e){return e!=null&&Bs.includes(e)}function Xs(e){return e!=null&&Vs.includes(e)}var Ps,Cs,Ms,_s,Os,Fs,Us,Bs,Vs,kr=f(()=>{"use strict";n();$();Ps=["sent"],Cs=["success"],Ms=["fail","cancelled","timedOut"],_s=["invalid"],Os=["timedOut"],Fs=["pending"],Us=["success"],Bs=["fail","invalid"],Vs=["not executed"]});var bo,vo,Me,Ys,Ao,Qp,eu,tu,ru,nu,ou,iu,su,au,cu,xt,St=f(()=>{"use strict";n();bo=require("@reduxjs/toolkit"),vo=require("redux-persist");$();kr();U();Me={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Ys={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Ao=(0,bo.createSlice)({name:"transactionsSlice",initialState:Me,reducers:{moveTransactionsToSignedState:(e,t)=>{var T,y;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p,customTransactionInformation:d={}}=t.payload,m=((T=e.customTransactionInformationForSessionId)==null?void 0:T[r])||Ys;e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:x(x({},m),d)},((y=e==null?void 0:e.transactionsToSign)==null?void 0:y.sessionId)===r&&(e.transactionsToSign=Me.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=x(x({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var m,T,y,h,R,v,W,fe;let{sessionId:r,status:o,errorMessage:i,transactionHash:l,inTransit:p}=t.payload,d=(T=(m=e.signedTransactions)==null?void 0:m[r])==null?void 0:T.transactions;if(d!=null){e.signedTransactions[r].transactions=d.map(S=>S.hash===l?w(x({},S),{status:o,errorMessage:i,inTransit:p}):S);let Bt=(h=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:h.every(S=>yt(S.status)),Vt=(v=(R=e.signedTransactions[r])==null?void 0:R.transactions)==null?void 0:v.every(S=>ht(S.status)),$t=(fe=(W=e.signedTransactions[r])==null?void 0:W.transactions)==null?void 0:fe.every(S=>wo(S.status));Bt&&(e.signedTransactions[r].status="success"),Vt&&(e.signedTransactions[r].status="fail"),$t&&(e.signedTransactions[r].status="invalid")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=Me.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Me.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(k,()=>Me),e.addCase(vo.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((d,[m,T])=>{let y=new Date(m),h=new Date;return h.setHours(h.getHours()+5),h-y>0||(d[m]=T),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Qp,updateSignedTransactions:eu,setTransactionsToSign:tu,clearAllTransactionsToSign:ru,clearAllSignedTransactions:nu,clearSignedTransaction:ou,clearTransactionToSign:iu,setSignTransactionsError:su,setSignTransactionsCancelMessage:au,moveTransactionsToSignedState:cu}=Ao.actions,xt=Ao.reducer});var Eo,Lr,ko,du,mu,gu,fu,wt,It=f(()=>{"use strict";n();Eo=require("@reduxjs/toolkit");U();Lr={},ko=(0,Eo.createSlice)({name:"batchTransactionsSlice",initialState:Lr,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>Lr},extraReducers:e=>{e.addCase(k,()=>Lr)}}),{setBatchTransactions:du,updateBatchTransactions:mu,clearBatchTransactions:gu,clearAllBatchTransactions:fu}=ko.actions,wt=ko.reducer});var Do,Lo,No,xu,Ro,Dr=f(()=>{"use strict";n();Do=require("@reduxjs/toolkit");U();Lo={},No=(0,Do.createSlice)({name:"dappConfigSlice",initialState:Lo,reducers:{setDappConfig:(e,t)=>{if(e&&t.payload){let{logoutRoute:r,shouldUseWebViewProvider:o}=t.payload;e.logoutRoute=r,e.shouldUseWebViewProvider=o}else e=t.payload}},extraReducers:e=>{e.addCase(k,()=>Lo)}}),{setDappConfig:xu}=No.actions,Ro=No.reducer});var X=f(()=>{"use strict";n();nt();it();at();pt();dt();gt();Tt();St();It();Dr()});var Nr=f(()=>{"use strict";n()});var Oo,_o,Fo,qu,ju,zu,Ku,Xu,Yu,Uo,Bo=f(()=>{"use strict";n();Oo=require("@reduxjs/toolkit");U();_o={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Fo=(0,Oo.createSlice)({name:"dappModalsSlice",initialState:_o,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=x({},t.payload)}},extraReducers:e=>{e.addCase(k,()=>_o)}}),{setDappModalVisibility:qu,setDappModalHeaderVisibility:ju,setDappModalFooterVisibility:zu,setDappModalHeaderText:Ku,setDappModalFooterText:Xu,setDappModalConfig:Yu}=Fo.actions,Uo=Fo.reducer});var Vo,ea,ta,me,kt=f(()=>{"use strict";n();Vo=require("@reduxjs/toolkit");Nr();nt();It();Dr();Bo();it();at();pt();dt();gt();Tt();St();ea={["account"]:rt,["dappModal"]:Uo,["dappConfig"]:Ro,["loginInfo"]:ot,["modals"]:st,["networkConfig"]:lt,["signedMessageInfo"]:ut,["toasts"]:mt,["transactionsInfo"]:ft,["transactions"]:xt,["batchTransactions"]:wt},ta=(e={})=>(0,Vo.combineReducers)(x(x({},ea),e)),me=ta});var Ho={};ce(Ho,{default:()=>ya,sessionStorageReducers:()=>Rr});function re(e,t=[]){return{key:e,version:1,storage:Go.default,blacklist:t}}var F,$o,Go,ra,_e,na,oa,ia,sa,aa,ca,la,pa,ua,da,Wo,ma,Rr,ga,fa,Ta,ya,qo=f(()=>{"use strict";n();F=require("redux-persist"),$o=b(require("redux-persist/lib/storage")),Go=b(require("redux-persist/lib/storage/session"));kt();X();nt();It();it();at();pt();dt();gt();Tt();St();Nr();ra={persistReducersStorageType:"localStorage"},_e={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},na=re(_e["account"]),oa=re(_e["loginInfo"]),ia=re(_e["modals"]),sa=re(_e["networkConfig"]),aa={2:e=>w(x({},e),{networkConfig:xr})};ca=re("sdk-dapp-transactionsInfo"),la=re("sdk-dapp-transactions",["transactionsToSign"]),pa=re("sdk-dapp-batchTransactions",["batchTransactions"]),ua=re("sdk-dapp-toasts"),da=re("sdk-dapp-signedMessageInfo"),Wo={key:"sdk-dapp-store",version:2,storage:$o.default,whitelist:Object.keys(_e),migrate:(0,F.createMigrate)(aa,{debug:!1})},ma=w(x({},Wo),{whitelist:[]}),Rr={["toasts"]:(0,F.persistReducer)(ua,mt),["transactions"]:(0,F.persistReducer)(la,xt),["transactionsInfo"]:(0,F.persistReducer)(ca,ft),["batchTransactions"]:(0,F.persistReducer)(pa,wt),["signedMessageInfo"]:(0,F.persistReducer)(da,ut)},ga=w(x({},Rr),{["account"]:(0,F.persistReducer)(na,rt),["loginInfo"]:(0,F.persistReducer)(oa,ot),["modals"]:(0,F.persistReducer)(ia,st),["networkConfig"]:(0,F.persistReducer)(sa,lt)}),fa=ra.persistReducersStorageType==="localStorage",Ta=fa?(0,F.persistReducer)(Wo,me(Rr)):(0,F.persistReducer)(ma,me(ga)),ya=Ta});var jo={};ce(jo,{default:()=>ha});var ha,zo=f(()=>{"use strict";n();kt();ha=me()});var Ko={};ce(Ko,{default:()=>Sa});var G,xa,Sa,Xo=f(()=>{"use strict";n();G=require("redux-persist"),xa=[G.FLUSH,G.REHYDRATE,G.PAUSE,G.PERSIST,G.PURGE,G.REGISTER],Sa=xa});var Jo={};ce(Jo,{default:()=>Zo});function Zo(e){return(0,Yo.persistStore)(e)}var Yo,Qo=f(()=>{"use strict";n();Yo=require("redux-persist")});var xc={};ce(xc,{getVerifier:()=>tr,useGetLastSignedMessageSession:()=>pc,useGetSignMessageInfoStatus:()=>Wr,useGetSignMessageSession:()=>uc,useSignMessage:()=>yc,verifyMessage:()=>hc});module.exports=Le(xc);n();n();var yn=require("@multiversx/sdk-core/out"),Ze=require("@multiversx/sdk-wallet"),tr=e=>{let t=new Ze.UserPublicKey(yn.Address.fromString(e).pubkey());return new Ze.UserVerifier(t)};n();n();var ii=require("react"),be=require("react-redux");n();var Pr=require("@reduxjs/toolkit"),ni=require("react-redux/lib/utils/Subscription");X();n();var Co=b(require("lodash.throttle"));I();n();var Po=b(require("lodash.isequal")),bt=require("reselect");M();var g=(0,bt.createSelectorCreator)(bt.defaultMemoize,Po.default),vt=(e,t)=>e!=""&&Boolean(t);X();hr();we();Se();var Zs=[Qe],At=!1,Js=(0,Co.default)(()=>{Pe(Re())},5e3),Mo=e=>t=>r=>{var m;if(Zs.includes(r.type))return t(r);let o=e.getState(),i=de.local.getItem(ie.loginExpiresAt);if(!vt((m=o==null?void 0:o.loginInfo)==null?void 0:m.loginMethod,o==null?void 0:o.account.address))return t(r);if(i==null)return Pe(Re());let p=Date.now();return i-p<0&&!At?setTimeout(()=>{At=!0,e.dispatch(Jn())},1e3):(At&&(At=!1),Js()),t(r)};n();n();function Et(){return typeof sessionStorage!="undefined"}var ei=Et()?(qo(),Le(Ho)).default:(zo(),Le(jo)).default,ti=Et()?(Xo(),Le(Ko)).default:[],ri=Et()?(Qo(),Le(Jo)).default:e=>e;kt();var D=(0,Pr.configureStore)({reducer:ei,middleware:e=>e({serializableCheck:{ignoredActions:[...ti,yr.type,Tr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Mo)}),oi=(0,ni.createSubscription)(D),Nd=ri(D),Rd=(0,Pr.configureStore)({reducer:me});var wa={store:D,subscription:oi},Cr=(0,ii.createContext)(wa),_d=(0,be.createStoreHook)(Cr),si=(0,be.createDispatchHook)(Cr),Y=(0,be.createSelectorHook)(Cr);n();n();X();var Z=e=>e.account,Oe=g(Z,e=>e.address),Lt=g(Z,Oe,(e,t)=>t in e.accounts?e.accounts[t]:tt),Bd=g(Z,Lt,(e,t)=>{let i=e,{accounts:r}=i,o=qe(i,["accounts"]);return w(x({},o),{account:t})}),Vd=g(Lt,e=>e.balance),Ia=g(Lt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),$d=g(Z,e=>e.shard),Gd=g(Z,e=>e.ledgerAccount),Wd=g(Z,e=>e.walletConnectAccount),Hd=g(Z,e=>e.isAccountLoading),qd=g(Z,e=>e.accountLoadingError),jd=g(Z,e=>e.websocketEvent),zd=g(Z,e=>e.websocketBatchEvent);n();var ba=e=>e.dappConfig,Yd=g(ba,e=>e.shouldUseWebViewProvider);n();var se=e=>e.loginInfo,em=g(se,e=>e.loginMethod),Mr=g(se,Oe,(e,t)=>vt(e.loginMethod,t)),tm=g(se,e=>e.walletConnectLogin),rm=g(se,e=>e.ledgerLogin),ai=g(se,e=>e.walletLogin),nm=g(se,e=>e.isLoginSessionInvalid),om=g(se,e=>e.tokenLogin),im=g(se,e=>e.logoutRoute);n();var ci=e=>e.modals,cm=g(ci,e=>e.txSubmittedModal),lm=g(ci,e=>e.notificationModal);n();var ge=e=>e.networkConfig,va=g(ge,e=>e.chainID),dm=g(ge,e=>e.network.walletConnectBridgeAddress),mm=g(ge,e=>e.network.walletConnectV2RelayAddress),gm=g(ge,e=>e.network.walletConnectV2ProjectId),fm=g(ge,e=>e.network.walletConnectV2Options),Tm=g(ge,e=>e.network.walletConnectDeepLink),Dt=g(ge,e=>e.network),Aa=g(Dt,e=>e.apiAddress),li=g(Dt,e=>e.explorerAddress),Ea=g(Dt,e=>e.egldLabel);n();var ae=e=>e.signedMessageInfo,pi=g(ae,e=>e.isSigning),ui=g(ae,e=>e.errorMessage),di=g(ae,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),mi=g(ae,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var _r=e=>e.toasts,wm=g(_r,e=>e.customToasts),Im=g(_r,e=>e.transactionToasts),bm=g(_r,e=>e.failTransactionToast);n();X();var gi={errorMessage:br,successMessage:vr,processingMessage:Ar},ka=e=>e.transactionsInfo,km=g(ka,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||gi);n();n();var J=require("@multiversx/sdk-core");I();n();var Fr=require("@multiversx/sdk-core/out");n();n();function Or(e){try{let t=atob(e),r=btoa(t),o=s.Buffer.from(e,"base64").toString(),i=s.Buffer.from(o).toString("base64");if(e===r&&e===i||t===o)return!0}catch(t){return!1}return!1}n();n();n();n();var fi=e=>{let t=e!=null?e:"";return Or(t)?Fr.TransactionPayload.fromEncoded(t):new Fr.TransactionPayload(t)};function Ur(e){var r,o,i;let t=new J.Transaction(x(x({value:e.value.valueOf(),data:fi(e.data),nonce:e.nonce.valueOf(),receiver:new J.Address(e.receiver),sender:new J.Address(e.sender),gasLimit:(r=e.gasLimit.valueOf())!=null?r:sr,gasPrice:(o=e.gasPrice.valueOf())!=null?o:ar,chainID:e.chainID.valueOf(),version:new J.TransactionVersion((i=e.version)!=null?i:Fn)},e.options?{options:new J.TransactionOptions(e.options)}:{}),e.guardian?{guardian:new J.Address(e.guardian)}:{}));return e.guardianSignature&&t.applySignature(s.Buffer.from(e.guardianSignature,"hex")),e.signature&&t.applySignature(s.Buffer.from(e.signature,"hex")),t}n();n();n();n();n();var Na=require("@multiversx/sdk-core/out");n();I();n();var yi=require("@multiversx/sdk-core");M();n();var Ti=require("@multiversx/sdk-core");function Ra(e){try{let t=new Ti.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function Fe(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&Ra(e)}n();n();n();var Pa=require("@multiversx/sdk-core"),Ca=b(require("bignumber.js"));$();n();n();n();n();n();n();n();O();n();n();O();n();n();n();var Va=b(require("bignumber.js"));I();n();var Ba=require("@multiversx/sdk-core"),Br=b(require("bignumber.js"));I();n();var Fa=b(require("bignumber.js"));n();Br.default.config({ROUNDING_MODE:Br.default.ROUND_FLOOR});n();n();n();I();n();n();n();n();I();n();I();n();var $a=require("@multiversx/sdk-core");I();n();var Be=require("@multiversx/sdk-core"),Wa=require("@multiversx/sdk-network-providers");I();n();n();var Ga=b(require("bignumber.js"));I();n();I();n();n();n();n();n();n();I();n();I();n();I();n();O();var qa=["reDelegateRewards","claimRewards","unBond"],ja=["wrapEgld","unwrapEgld"],za=["unStake"],Ka=["unDelegate"];n();n();n();I();n();var Za=b(require("bignumber.js"));n();n();O();n();var Ja=b(require("bignumber.js"));n();n();n();var ec=b(require("bignumber.js"));M();n();n();n();n();$();n();var rc=require("@multiversx/sdk-web-wallet-provider");I();n();var Ii=b(require("qs"));n();var Rt=e=>{let t=new URLSearchParams(e).toString(),r=window==null?void 0:window.location.pathname,o=t?`?${t}`:"",i=r?`${r}${o}`:"./";setTimeout(()=>{window==null||window.history.replaceState({},document==null?void 0:document.title,i)})};n();var Ve=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined";n();var tc={search:Ve()?window.location.search:"",removeParams:[]},Pt=(e,t=tc)=>{var p;let r={},o=Ve()?window.location.search:"",i=(p=t.search)!=null?p:o;if(i){let d=i?new URLSearchParams(i):[];r=Object.fromEntries(d)}let l={};return e.forEach(d=>{l[d]=r[d],delete r[d]}),t.removeParams!=null&&Object.keys(r).forEach(d=>{var T,y;let[m]=d.split("[");(((T=t.removeParams)==null?void 0:T.includes(d))||((y=t.removeParams)==null?void 0:y.includes(m)))&&delete r[d]}),{remainingParams:l,params:r,clearNavigationHistory:()=>Rt(r)}};var Gr=({removeParams:e,search:t})=>{let r=Ve()?window.location.search:"",o=t!=null?t:r;if(!o)return{};let i=Ii.default.parse(o.replace("?","")),l=Object.keys(i).filter(d=>!e.includes(d)),{remainingParams:p}=Pt(l,{search:t,removeParams:e});return Rt(p),p};n();n();n();n();O();n();n();n();var nc=b(require("linkifyjs"));n();I();n();var oc=b(require("bignumber.js"));n();M();n();n();$();n();$();n();n();n();O();n();O();n();var ic=b(require("bignumber.js"));I();O();n();O();n();var vi=require("react");M();n();n();O();n();n();var sc=require("@multiversx/sdk-core/out"),ac=b(require("bignumber.js"));O();n();M();n();n();M();var jx=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Ai=require("react");M();n();var lc=require("react");O();var Qx=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];kr();var Mt=e=>e.transactions,$e=g(Mt,e=>e.signedTransactions),US=g(Mt,e=>e.signTransactionsError),BS=g(Mt,e=>e.signTransactionsCancelMessage),_t=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),VS=g($e,_t(So)),$S=g($e,_t(yt)),GS=g($e,_t(ht)),WS=g($e,_t(Io)),HS=g(Mt,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:w(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Ur(r)))||[]})}),qS=g($e,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});var pc=()=>Y(di);n();var uc=e=>{let t=Y(ae);if(!!e)return t.signedSessions[e]};n();var Wr=()=>{let e=Y(pi),t=Y(ui);return{isPending:e,errorMessage:t}};n();var Ee=require("react"),Ft=require("@multiversx/sdk-core");I();n();n();n();n();var ki=require("@multiversx/sdk-extension-provider"),Li=require("@multiversx/sdk-hw-provider"),Di=require("@multiversx/sdk-opera-provider"),Ni=require("@multiversx/sdk-web-wallet-provider");I();$();n();var Ei=ve;var Ge=e=>{switch(e==null?void 0:e.constructor){case Ni.WalletProvider:return"wallet";case Ei:return"walletconnectv2";case Li.HWProvider:return"ledger";case ki.ExtensionProvider:return"extension";case Di.OperaProvider:return"opera";case ve:return"";default:return"extra"}};var oe=e=>`Unable to perform ${e}, Provider not initialized`,ve=class{init(){return Promise.resolve(!1)}login(t){throw new Error(oe(`login with options: ${t}`))}logout(t){throw new Error(oe(`logout with options: ${t}`))}getAddress(){throw new Error(oe("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(oe(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(oe(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(oe(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(oe(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(oe(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(oe(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},Hr=new ve;var dc=Hr;function B(){return dc||Hr}var Ri=()=>{let e=B(),t=Ge(e);return{provider:e,providerType:t}};X();M();n();var Ot=require("@multiversx/sdk-core");n();$();n();n();function Pi(){let e=B();return Ge(e)}function We(e){return Pi()===e}n();var Ci=()=>{let e=window==null?void 0:window.location.search,t=new URLSearchParams(e),r=Object.fromEntries(t),o=r==null?void 0:r.address;return Fe(o)?o:null};function Ae(){let e=D.getState(),t=B(),r=Oe(e),o=Mr(e),i=ai(e);if(!t)throw"provider not initialized";return We("ledger")&&o?new Promise(l=>{l(r)}):!We("")&&!We("wallet")&&!We("extra")?t.getAddress():new Promise(l=>{let p=Ci();i!=null&&p&&l(p),o&&l(r),l("")})}var Mi=r=>C(void 0,[r],function*({message:e,callbackRoute:t}){let o=yield Ae(),i=B(),l=window!=null&&window.location?`${window.location.origin}${t}`:`${t}`,p=new Ot.SignableMessage({address:new Ot.Address(o),message:s.Buffer.from(e,"ascii")});return yield i.signMessage(p,{callbackUrl:encodeURIComponent(l)})});n();n();n();n();var mc=b(require("axios"));n();n();n();n();n();n();U();M();n();X();n();X();n();lr();n();n();var fc=b(require("platform"));n();n();U();M();ct();we();Se();n();n();n();n();n();n();n();n();n();$();n();ct();n();n();n();n();we();n();n();n();X();n();n();var Tc=b(require("axios"));var yc=()=>{let e=si(),[t,r]=(0,Ee.useState)(""),i=Y(ae).signedSessions[t],{isPending:l,errorMessage:p}=Wr(),d=window==null?void 0:window.location.search,{provider:m,providerType:T}=Ri(),y=T==="wallet",h=Y(mi),R=()=>(e(mo()),Gr({removeParams:Object.keys(Je)})),v=({callbackRoute:S,errorMessage:L=De})=>{let A=L.includes(De),P=Date.now().toString();i||r(P),e(Ce({errorMessage:L,sessionId:P,signedSession:{callbackUrl:S,status:A?"cancelled":"failed"}}))},W=(S,L)=>{if(!S)return"";let A=new URL(S);return A.searchParams.get("sessionId")||A.searchParams.append("sessionId",L),`${y?window==null?void 0:window.location.origin:""}${A.pathname}${A.search}`},fe=()=>C(void 0,null,function*(){var S;if(!y)try{if(!(yield(S=m==null?void 0:m.init)==null?void 0:S.call(m)))return}catch(L){let A=(L==null?void 0:L.message)||L||hn;console.error(A)}}),Bt=A=>C(void 0,[A],function*({message:S,callbackRoute:L}){let P=yield Ae(),Gt=B(),_i=encodeURIComponent(String(L)),Oi=new Ft.SignableMessage({address:new Ft.Address(P),message:s.Buffer.from(S,"ascii")});return Gt.signMessage(Oi,{callbackUrl:_i})}),Vt=S=>C(void 0,null,function*(){let L=Date.now().toString();r(L);let A=W(S.callbackRoute,L);if(e(Ce({sessionId:L,signedSession:{status:"pending",message:S.message,callbackUrl:A}})),y)return Bt(w(x({},S),{callbackRoute:A}));try{yield fe()}catch(P){return v({errorMessage:String(P),callbackRoute:A}),null}try{let P=yield Mi(w(x({},S),{callbackRoute:A}));if(P.signature)return e(Ce({sessionId:L,signedSession:{status:"signed",callbackUrl:A,message:S.message,signature:P.signature.toString("hex")}})),P;v({errorMessage:De,callbackRoute:A})}catch(P){let Gt=(P==null?void 0:P.message)||P||rr;v({errorMessage:Gt,callbackRoute:A})}return null}),$t=()=>{if(d){let{remainingParams:{signature:S,sessionId:L,status:A},clearNavigationHistory:P}=Pt(Object.values(Je));if(!L)return;if(r(L),["cancelled","failed"].includes(A))return v({errorMessage:A==="cancelled"?De:rr});if(S&&A==="signed")return e(Ce({sessionId:t,signedSession:{signature:S,status:A}}));P()}};return(0,Ee.useEffect)(()=>{$t()},[d]),(0,Ee.useEffect)(()=>{(l||p)&&!i&&e(wr({isSigning:!1,errorMessage:""}))},[]),(0,Ee.useEffect)(()=>{t&&!i&&!l&&e(wr({isSigning:!1,errorMessage:""}))},[t]),{onAbort:R,onCancel:v,signMessage:Vt,sessionId:t||h}};n();var Ut=require("@multiversx/sdk-core/out");var hc=e=>{try{let{message:t,address:r,signature:o}=JSON.parse(e),i=s.Buffer.from(t.replace("0x",""),"hex"),l=s.Buffer.from(o.replace("0x",""),"hex"),p=new Ut.Address(r),d=new Ut.SignableMessage({address:p,message:i,signature:l});return{isVerified:tr(r).verify(d.serializeForSigning(),d.getSignature()),message:i.toString(),address:r}}catch(t){return{isVerified:!1,message:"",address:""}}};0&&(module.exports={getVerifier,useGetLastSignedMessageSession,useGetSignMessageInfoStatus,useGetSignMessageSession,useSignMessage,verifyMessage});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Ir=Object.create;var N=Object.defineProperty;var Cr=Object.getOwnPropertyDescriptor;var Sr=Object.getOwnPropertyNames;var Lr=Object.getPrototypeOf,Mr=Object.prototype.hasOwnProperty;var Rr=(t,r)=>()=>(t&&(r=t(t=0)),r);var W=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),_r=(t,r)=>{for(var e in r)N(t,e,{get:r[e],enumerable:!0})},tr=(t,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Sr(r))!Mr.call(t,n)&&n!==e&&N(t,n,{get:()=>r[n],enumerable:!(i=Cr(r,n))||i.enumerable});return t};var ir=(t,r,e)=>(e=t!=null?Ir(Lr(t)):{},tr(r||!t||!t.__esModule?N(e,"default",{value:t,enumerable:!0}):e,t)),kr=t=>tr(N({},"__esModule",{value:!0}),t);var ur=W(Y=>{"use strict";g();Y.byteLength=Dr;Y.toByteArray=Wr;Y.fromByteArray=Vr;var F=[],m=[],br=typeof Uint8Array!="undefined"?Uint8Array:Array,G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(I=0,nr=G.length;I<nr;++I)F[I]=G[I],m[G.charCodeAt(I)]=I;var I,nr;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function or(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var i=e===r?0:4-e%4;return[e,i]}function Dr(t){var r=or(t),e=r[0],i=r[1];return(e+i)*3/4-i}function Nr(t,r,e){return(r+e)*3/4-e}function Wr(t){var r,e=or(t),i=e[0],n=e[1],o=new br(Nr(t,i,n)),u=0,h=n>0?i-4:i,f;for(f=0;f<h;f+=4)r=m[t.charCodeAt(f)]<<18|m[t.charCodeAt(f+1)]<<12|m[t.charCodeAt(f+2)]<<6|m[t.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return n===2&&(r=m[t.charCodeAt(f)]<<2|m[t.charCodeAt(f+1)]>>4,o[u++]=r&255),n===1&&(r=m[t.charCodeAt(f)]<<10|m[t.charCodeAt(f+1)]<<4|m[t.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Yr(t){return F[t>>18&63]+F[t>>12&63]+F[t>>6&63]+F[t&63]}function qr(t,r,e){for(var i,n=[],o=r;o<e;o+=3)i=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),n.push(Yr(i));return n.join("")}function Vr(t){for(var r,e=t.length,i=e%3,n=[],o=16383,u=0,h=e-i;u<h;u+=o)n.push(qr(t,u,u+o>h?h:u+o));return i===1?(r=t[e-1],n.push(F[r>>2]+F[r<<4&63]+"==")):i===2&&(r=(t[e-2]<<8)+t[e-1],n.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),n.join("")}});var ar=W(J=>{g();J.read=function(t,r,e,i,n){var o,u,h=n*8-i-1,f=(1<<h)-1,c=f>>1,s=-7,p=e?n-1:0,E=e?-1:1,x=t[r+p];for(p+=E,o=x&(1<<-s)-1,x>>=-s,s+=h;s>0;o=o*256+t[r+p],p+=E,s-=8);for(u=o&(1<<-s)-1,o>>=-s,s+=i;s>0;u=u*256+t[r+p],p+=E,s-=8);if(o===0)o=1-c;else{if(o===f)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,i),o=o-c}return(x?-1:1)*u*Math.pow(2,o-i)};J.write=function(t,r,e,i,n,o){var u,h,f,c=o*8-n-1,s=(1<<c)-1,p=s>>1,E=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=i?0:o-1,M=i?1:-1,Tr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=s):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?r+=E/f:r+=E*Math.pow(2,1-p),r*f>=2&&(u++,f/=2),u+p>=s?(h=0,u=s):u+p>=1?(h=(r*f-1)*Math.pow(2,n),u=u+p):(h=r*Math.pow(2,p-1)*Math.pow(2,n),u=0));n>=8;t[e+x]=h&255,x+=M,h/=256,n-=8);for(u=u<<n|h,c+=n;c>0;t[e+x]=u&255,x+=M,u/=256,c-=8);t[e+x-M]|=Tr*128}});var Fr=W(_=>{"use strict";g();var K=ur(),R=ar(),hr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_.Buffer=a;_.SlowBuffer=Kr;_.INSPECT_MAX_BYTES=50;var V=2147483647;_.kMaxLength=V;a.TYPED_ARRAY_SUPPORT=Hr();!a.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),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function U(t){if(t>V)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,a.prototype),r}function a(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $(t)}return cr(t,r,e)}a.poolSize=8192;function cr(t,r,e){if(typeof t=="string")return zr(t,r);if(ArrayBuffer.isView(t))return Gr(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(B(t,ArrayBuffer)||t&&B(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(t,SharedArrayBuffer)||t&&B(t.buffer,SharedArrayBuffer)))return Q(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(i!=null&&i!==t)return a.from(i,r,e);var n=Jr(t);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return a.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}a.from=function(t,r,e){return cr(t,r,e)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function sr(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 Xr(t,r,e){return sr(t),t<=0?U(t):r!==void 0?typeof e=="string"?U(t).fill(r,e):U(t).fill(r):U(t)}a.alloc=function(t,r,e){return Xr(t,r,e)};function $(t){return sr(t),U(t<0?0:P(t)|0)}a.allocUnsafe=function(t){return $(t)};a.allocUnsafeSlow=function(t){return $(t)};function zr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=lr(t,r)|0,i=U(e),n=i.write(t,r);return n!==e&&(i=i.slice(0,n)),i}function O(t){for(var r=t.length<0?0:P(t.length)|0,e=U(r),i=0;i<r;i+=1)e[i]=t[i]&255;return e}function Gr(t){if(B(t,Uint8Array)){var r=new Uint8Array(t);return Q(r.buffer,r.byteOffset,r.byteLength)}return O(t)}function Q(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&e===void 0?i=new Uint8Array(t):e===void 0?i=new Uint8Array(t,r):i=new Uint8Array(t,r,e),Object.setPrototypeOf(i,a.prototype),i}function Jr(t){if(a.isBuffer(t)){var r=P(t.length)|0,e=U(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||j(t.length)?U(0):O(t);if(t.type==="Buffer"&&Array.isArray(t.data))return O(t.data)}function P(t){if(t>=V)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+V.toString(16)+" bytes");return t|0}function Kr(t){return+t!=t&&(t=0),a.alloc(+t)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,e){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(r)||!a.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var i=r.length,n=e.length,o=0,u=Math.min(i,n);o<u;++o)if(r[o]!==e[o]){i=r[o],n=e[o];break}return i<n?-1:n<i?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var i;if(e===void 0)for(e=0,i=0;i<r.length;++i)e+=r[i].length;var n=a.allocUnsafe(e),o=0;for(i=0;i<r.length;++i){var u=r[i];if(B(u,Uint8Array))o+u.length>n.length?a.from(u).copy(n,o):Uint8Array.prototype.set.call(n,u,o);else if(a.isBuffer(u))u.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return n};function lr(t,r){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&e===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return gr(t).length;default:if(n)return i?-1:Z(t).length;r=(""+r).toLowerCase(),n=!0}}a.byteLength=lr;function Or(t,r,e){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ne(this,r,e);case"utf8":case"utf-8":return yr(this,r,e);case"ascii":return te(this,r,e);case"latin1":case"binary":return ie(this,r,e);case"base64":return re(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,r,e);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function S(t,r,e){var i=t[r];t[r]=t[e],t[e]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)S(this,e,e+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)S(this,e,e+3),S(this,e+1,e+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)S(this,e,e+7),S(this,e+1,e+6),S(this,e+2,e+5),S(this,e+3,e+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?yr(this,0,r):Or.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",e=_.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};hr&&(a.prototype[hr]=a.prototype.inspect);a.prototype.compare=function(r,e,i,n,o){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),e<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=i)return 0;if(n>=o)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var u=o-n,h=i-e,f=Math.min(u,h),c=this.slice(n,o),s=r.slice(e,i),p=0;p<f;++p)if(c[p]!==s[p]){u=c[p],h=s[p];break}return u<h?-1:h<u?1:0};function wr(t,r,e,i,n){if(t.length===0)return-1;if(typeof e=="string"?(i=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,j(e)&&(e=n?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(n)return-1;e=t.length-1}else if(e<0)if(n)e=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),a.isBuffer(r))return r.length===0?-1:fr(t,r,e,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):fr(t,[r],e,i,n);throw new TypeError("val must be string, number or Buffer")}function fr(t,r,e,i,n){var o=1,u=t.length,h=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||r.length<2)return-1;o=2,u/=2,h/=2,e/=2}function f(x,M){return o===1?x[M]:x.readUInt16BE(M*o)}var c;if(n){var s=-1;for(c=e;c<u;c++)if(f(t,c)===f(r,s===-1?0:c-s)){if(s===-1&&(s=c),c-s+1===h)return s*o}else s!==-1&&(c-=c-s),s=-1}else for(e+h>u&&(e=u-h),c=e;c>=0;c--){for(var p=!0,E=0;E<h;E++)if(f(t,c+E)!==f(r,E)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,e,i){return this.indexOf(r,e,i)!==-1};a.prototype.indexOf=function(r,e,i){return wr(this,r,e,i,!0)};a.prototype.lastIndexOf=function(r,e,i){return wr(this,r,e,i,!1)};function Qr(t,r,e,i){e=Number(e)||0;var n=t.length-e;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);for(var u=0;u<i;++u){var h=parseInt(r.substr(u*2,2),16);if(j(h))return u;t[e+u]=h}return u}function Zr(t,r,e,i){return H(Z(r,t.length-e),t,e,i)}function $r(t,r,e,i){return H(he(r),t,e,i)}function Pr(t,r,e,i){return H(gr(r),t,e,i)}function jr(t,r,e,i){return H(fe(r,t.length-e),t,e,i)}a.prototype.write=function(r,e,i,n){if(e===void 0)n="utf8",i=this.length,e=0;else if(i===void 0&&typeof e=="string")n=e,i=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-e;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return Qr(this,r,e,i);case"utf8":case"utf-8":return Zr(this,r,e,i);case"ascii":case"latin1":case"binary":return $r(this,r,e,i);case"base64":return Pr(this,r,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jr(this,r,e,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function re(t,r,e){return r===0&&e===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(r,e))}function yr(t,r,e){e=Math.min(t.length,e);for(var i=[],n=r;n<e;){var o=t[n],u=null,h=o>239?4:o>223?3:o>191?2:1;if(n+h<=e){var f,c,s,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=t[n+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=t[n+1],c=t[n+2],(f&192)===128&&(c&192)===128&&(p=(o&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:f=t[n+1],c=t[n+2],s=t[n+3],(f&192)===128&&(c&192)===128&&(s&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|s&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|u&1023),i.push(u),n+=h}return ee(i)}var pr=4096;function ee(t){var r=t.length;if(r<=pr)return String.fromCharCode.apply(String,t);for(var e="",i=0;i<r;)e+=String.fromCharCode.apply(String,t.slice(i,i+=pr));return e}function te(t,r,e){var i="";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]&127);return i}function ie(t,r,e){var i="";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]);return i}function ne(t,r,e){var i=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>i)&&(e=i);for(var n="",o=r;o<e;++o)n+=pe[t[o]];return n}function oe(t,r,e){for(var i=t.slice(r,e),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}a.prototype.slice=function(r,e){var i=this.length;r=~~r,e=e===void 0?i:~~e,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e<r&&(e=r);var n=this.subarray(r,e);return Object.setPrototypeOf(n,a.prototype),n};function w(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,e,i){r=r>>>0,e=e>>>0,i||w(r,e,this.length);for(var n=this[r],o=1,u=0;++u<e&&(o*=256);)n+=this[r+u]*o;return n};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,e,i){r=r>>>0,e=e>>>0,i||w(r,e,this.length);for(var n=this[r+--e],o=1;e>0&&(o*=256);)n+=this[r+--e]*o;return n};a.prototype.readUint8=a.prototype.readUInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,e,i){r=r>>>0,e=e>>>0,i||w(r,e,this.length);for(var n=this[r],o=1,u=0;++u<e&&(o*=256);)n+=this[r+u]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n};a.prototype.readIntBE=function(r,e,i){r=r>>>0,e=e>>>0,i||w(r,e,this.length);for(var n=e,o=1,u=this[r+--n];n>0&&(o*=256);)u+=this[r+--n]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*e)),u};a.prototype.readInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,e){r=r>>>0,e||w(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,e){r=r>>>0,e||w(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,e){return r=r>>>0,e||w(r,4,this.length),R.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,e){return r=r>>>0,e||w(r,4,this.length),R.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||w(r,8,this.length),R.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||w(r,8,this.length),R.read(this,r,!1,52,8)};function y(t,r,e,i,n,o){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(e+i>t.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,e,i,n){if(r=+r,e=e>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,e,i,o,0)}var u=1,h=0;for(this[e]=r&255;++h<i&&(u*=256);)this[e+h]=r/u&255;return e+i};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,e,i,n){if(r=+r,e=e>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,e,i,o,0)}var u=i-1,h=1;for(this[e+u]=r&255;--u>=0&&(h*=256);)this[e+u]=r/h&255;return e+i};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,1,255,0),this[e]=r&255,e+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};a.prototype.writeIntLE=function(r,e,i,n){if(r=+r,e=e>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,e,i,o-1,-o)}var u=0,h=1,f=0;for(this[e]=r&255;++u<i&&(h*=256);)r<0&&f===0&&this[e+u-1]!==0&&(f=1),this[e+u]=(r/h>>0)-f&255;return e+i};a.prototype.writeIntBE=function(r,e,i,n){if(r=+r,e=e>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,e,i,o-1,-o)}var u=i-1,h=1,f=0;for(this[e+u]=r&255;--u>=0&&(h*=256);)r<0&&f===0&&this[e+u+1]!==0&&(f=1),this[e+u]=(r/h>>0)-f&255;return e+i};a.prototype.writeInt8=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};a.prototype.writeInt16LE=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};a.prototype.writeInt16BE=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};a.prototype.writeInt32LE=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};a.prototype.writeInt32BE=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function xr(t,r,e,i,n,o){if(e+i>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function mr(t,r,e,i,n){return r=+r,e=e>>>0,n||xr(t,r,e,4,34028234663852886e22,-34028234663852886e22),R.write(t,r,e,i,23,4),e+4}a.prototype.writeFloatLE=function(r,e,i){return mr(this,r,e,!0,i)};a.prototype.writeFloatBE=function(r,e,i){return mr(this,r,e,!1,i)};function Er(t,r,e,i,n){return r=+r,e=e>>>0,n||xr(t,r,e,8,17976931348623157e292,-17976931348623157e292),R.write(t,r,e,i,52,8),e+8}a.prototype.writeDoubleLE=function(r,e,i){return Er(this,r,e,!0,i)};a.prototype.writeDoubleBE=function(r,e,i){return Er(this,r,e,!1,i)};a.prototype.copy=function(r,e,i,n){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),e>=r.length&&(e=r.length),e||(e=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-e<n-i&&(n=r.length-e+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),e),o};a.prototype.fill=function(r,e,i,n){if(typeof r=="string"){if(typeof e=="string"?(n=e,e=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;e=e>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var u;if(typeof r=="number")for(u=e;u<i;++u)this[u]=r;else{var h=a.isBuffer(r)?r:a.from(r,n),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<i-e;++u)this[u+e]=h[u%f]}return this};var ue=/[^+/0-9A-Za-z-_]/g;function ae(t){if(t=t.split("=")[0],t=t.trim().replace(ue,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Z(t,r){r=r||1/0;for(var e,i=t.length,n=null,o=[],u=0;u<i;++u){if(e=t.charCodeAt(u),e>55295&&e<57344){if(!n){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),n=e;continue}e=(n-55296<<10|e-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function he(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function fe(t,r){for(var e,i,n,o=[],u=0;u<t.length&&!((r-=2)<0);++u)e=t.charCodeAt(u),i=e>>8,n=e%256,o.push(n),o.push(i);return o}function gr(t){return K.toByteArray(ae(t))}function H(t,r,e,i){for(var n=0;n<i&&!(n+e>=r.length||n>=t.length);++n)r[n+e]=t[n];return n}function B(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function j(t){return t!==t}var pe=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var i=e*16,n=0;n<16;++n)r[i+n]=t[e]+t[n];return r}()});var dr=W((ge,Ur)=>{g();var l=Ur.exports={},A,v;function rr(){throw new Error("setTimeout has not been defined")}function er(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=rr}catch(t){A=rr}try{typeof clearTimeout=="function"?v=clearTimeout:v=er}catch(t){v=er}})();function Br(t){if(A===setTimeout)return setTimeout(t,0);if((A===rr||!A)&&setTimeout)return A=setTimeout,setTimeout(t,0);try{return A(t,0)}catch(r){try{return A.call(null,t,0)}catch(e){return A.call(this,t,0)}}}function ce(t){if(v===clearTimeout)return clearTimeout(t);if((v===er||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(t);try{return v(t)}catch(r){try{return v.call(null,t)}catch(e){return v.call(this,t)}}}var d=[],k=!1,L,X=-1;function se(){!k||!L||(k=!1,L.length?d=L.concat(d):X=-1,d.length&&Ar())}function Ar(){if(!k){var t=Br(se);k=!0;for(var r=d.length;r;){for(L=d,d=[];++X<r;)L&&L[X].run();X=-1,r=d.length}L=null,k=!1,ce(t)}}l.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];d.push(new vr(t,r)),d.length===1&&!k&&Br(Ar)};function vr(t,r){this.fun=t,this.array=r}vr.prototype.run=function(){this.fun.apply(null,this.array)};l.title="browser";l.browser=!0;l.env={};l.argv=[];l.version="";l.versions={};function T(){}l.on=T;l.addListener=T;l.once=T;l.off=T;l.removeListener=T;l.removeAllListeners=T;l.emit=T;l.prependListener=T;l.prependOnceListener=T;l.listeners=function(t){return[]};l.binding=function(t){throw new Error("process.binding is not supported")};l.cwd=function(){return"/"};l.chdir=function(t){throw new Error("process.chdir is not supported")};l.umask=function(){return 0}});var C,b,Fe,g=Rr(()=>{C=ir(Fr()),b=ir(dr()),Fe=function(t){function r(){var i=this||self;return delete t.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var we={};_r(we,{verifyMessage:()=>le});module.exports=kr(we);g();var D=require("@multiversx/sdk-core/out"),z=require("@multiversx/sdk-wallet"),le=t=>{try{let{message:r,address:e,signature:i}=JSON.parse(t),n=C.Buffer.from(r.replace("0x",""),"hex"),o=C.Buffer.from(i.replace("0x",""),"hex"),u=new D.Address(e),h=new D.SignableMessage({address:u,message:n,signature:o}),f=new z.UserPublicKey(D.Address.fromString(e).pubkey());return{isVerified:new z.UserVerifier(f).verify(h.serializeForSigning(),h.getSignature()),message:n.toString(),address:e}}catch(r){return{isVerified:!1,message:"",address:""}}};0&&(module.exports={verifyMessage});
|
|
1
|
+
"use strict";var Sr=Object.create;var N=Object.defineProperty;var Lr=Object.getOwnPropertyDescriptor;var Mr=Object.getOwnPropertyNames;var Rr=Object.getPrototypeOf,_r=Object.prototype.hasOwnProperty;var kr=(t,r)=>()=>(t&&(r=t(t=0)),r);var V=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),br=(t,r)=>{for(var e in r)N(t,e,{get:r[e],enumerable:!0})},tr=(t,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Mr(r))!_r.call(t,n)&&n!==e&&N(t,n,{get:()=>r[n],enumerable:!(i=Lr(r,n))||i.enumerable});return t};var ir=(t,r,e)=>(e=t!=null?Sr(Rr(t)):{},tr(r||!t||!t.__esModule?N(e,"default",{value:t,enumerable:!0}):e,t)),Dr=t=>tr(N({},"__esModule",{value:!0}),t);var ur=V(W=>{"use strict";m();W.byteLength=Vr;W.toByteArray=Yr;W.fromByteArray=Xr;var F=[],E=[],Nr=typeof Uint8Array!="undefined"?Uint8Array:Array,G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(C=0,nr=G.length;C<nr;++C)F[C]=G[C],E[G.charCodeAt(C)]=C;var C,nr;E["-".charCodeAt(0)]=62;E["_".charCodeAt(0)]=63;function or(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var i=e===r?0:4-e%4;return[e,i]}function Vr(t){var r=or(t),e=r[0],i=r[1];return(e+i)*3/4-i}function Wr(t,r,e){return(r+e)*3/4-e}function Yr(t){var r,e=or(t),i=e[0],n=e[1],o=new Nr(Wr(t,i,n)),u=0,f=n>0?i-4:i,h;for(h=0;h<f;h+=4)r=E[t.charCodeAt(h)]<<18|E[t.charCodeAt(h+1)]<<12|E[t.charCodeAt(h+2)]<<6|E[t.charCodeAt(h+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return n===2&&(r=E[t.charCodeAt(h)]<<2|E[t.charCodeAt(h+1)]>>4,o[u++]=r&255),n===1&&(r=E[t.charCodeAt(h)]<<10|E[t.charCodeAt(h+1)]<<4|E[t.charCodeAt(h+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function qr(t){return F[t>>18&63]+F[t>>12&63]+F[t>>6&63]+F[t&63]}function Hr(t,r,e){for(var i,n=[],o=r;o<e;o+=3)i=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),n.push(qr(i));return n.join("")}function Xr(t){for(var r,e=t.length,i=e%3,n=[],o=16383,u=0,f=e-i;u<f;u+=o)n.push(Hr(t,u,u+o>f?f:u+o));return i===1?(r=t[e-1],n.push(F[r>>2]+F[r<<4&63]+"==")):i===2&&(r=(t[e-2]<<8)+t[e-1],n.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),n.join("")}});var ar=V(J=>{m();J.read=function(t,r,e,i,n){var o,u,f=n*8-i-1,h=(1<<f)-1,c=h>>1,s=-7,p=e?n-1:0,g=e?-1:1,x=t[r+p];for(p+=g,o=x&(1<<-s)-1,x>>=-s,s+=f;s>0;o=o*256+t[r+p],p+=g,s-=8);for(u=o&(1<<-s)-1,o>>=-s,s+=i;s>0;u=u*256+t[r+p],p+=g,s-=8);if(o===0)o=1-c;else{if(o===h)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,i),o=o-c}return(x?-1:1)*u*Math.pow(2,o-i)};J.write=function(t,r,e,i,n,o){var u,f,h,c=o*8-n-1,s=(1<<c)-1,p=s>>1,g=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=i?0:o-1,M=i?1:-1,Cr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,u=s):(u=Math.floor(Math.log(r)/Math.LN2),r*(h=Math.pow(2,-u))<1&&(u--,h*=2),u+p>=1?r+=g/h:r+=g*Math.pow(2,1-p),r*h>=2&&(u++,h/=2),u+p>=s?(f=0,u=s):u+p>=1?(f=(r*h-1)*Math.pow(2,n),u=u+p):(f=r*Math.pow(2,p-1)*Math.pow(2,n),u=0));n>=8;t[e+x]=f&255,x+=M,f/=256,n-=8);for(u=u<<n|f,c+=n;c>0;t[e+x]=u&255,x+=M,u/=256,c-=8);t[e+x-M]|=Cr*128}});var Fr=V(k=>{"use strict";m();var K=ur(),_=ar(),fr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;k.Buffer=a;k.SlowBuffer=Qr;k.INSPECT_MAX_BYTES=50;var Y=2147483647;k.kMaxLength=Y;a.TYPED_ARRAY_SUPPORT=zr();!a.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 zr(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function d(t){if(t>Y)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,a.prototype),r}function a(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $(t)}return cr(t,r,e)}a.poolSize=8192;function cr(t,r,e){if(typeof t=="string")return Jr(t,r);if(ArrayBuffer.isView(t))return Kr(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(B(t,ArrayBuffer)||t&&B(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(t,SharedArrayBuffer)||t&&B(t.buffer,SharedArrayBuffer)))return Q(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(i!=null&&i!==t)return a.from(i,r,e);var n=Or(t);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return a.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}a.from=function(t,r,e){return cr(t,r,e)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function sr(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 Gr(t,r,e){return sr(t),t<=0?d(t):r!==void 0?typeof e=="string"?d(t).fill(r,e):d(t).fill(r):d(t)}a.alloc=function(t,r,e){return Gr(t,r,e)};function $(t){return sr(t),d(t<0?0:P(t)|0)}a.allocUnsafe=function(t){return $(t)};a.allocUnsafeSlow=function(t){return $(t)};function Jr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=lr(t,r)|0,i=d(e),n=i.write(t,r);return n!==e&&(i=i.slice(0,n)),i}function O(t){for(var r=t.length<0?0:P(t.length)|0,e=d(r),i=0;i<r;i+=1)e[i]=t[i]&255;return e}function Kr(t){if(B(t,Uint8Array)){var r=new Uint8Array(t);return Q(r.buffer,r.byteOffset,r.byteLength)}return O(t)}function Q(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&e===void 0?i=new Uint8Array(t):e===void 0?i=new Uint8Array(t,r):i=new Uint8Array(t,r,e),Object.setPrototypeOf(i,a.prototype),i}function Or(t){if(a.isBuffer(t)){var r=P(t.length)|0,e=d(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||j(t.length)?d(0):O(t);if(t.type==="Buffer"&&Array.isArray(t.data))return O(t.data)}function P(t){if(t>=Y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Y.toString(16)+" bytes");return t|0}function Qr(t){return+t!=t&&(t=0),a.alloc(+t)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,e){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(r)||!a.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var i=r.length,n=e.length,o=0,u=Math.min(i,n);o<u;++o)if(r[o]!==e[o]){i=r[o],n=e[o];break}return i<n?-1:n<i?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var i;if(e===void 0)for(e=0,i=0;i<r.length;++i)e+=r[i].length;var n=a.allocUnsafe(e),o=0;for(i=0;i<r.length;++i){var u=r[i];if(B(u,Uint8Array))o+u.length>n.length?a.from(u).copy(n,o):Uint8Array.prototype.set.call(n,u,o);else if(a.isBuffer(u))u.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return n};function lr(t,r){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&e===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return gr(t).length;default:if(n)return i?-1:Z(t).length;r=(""+r).toLowerCase(),n=!0}}a.byteLength=lr;function Zr(t,r,e){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ue(this,r,e);case"utf8":case"utf-8":return yr(this,r,e);case"ascii":return ne(this,r,e);case"latin1":case"binary":return oe(this,r,e);case"base64":return te(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,r,e);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function S(t,r,e){var i=t[r];t[r]=t[e],t[e]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)S(this,e,e+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)S(this,e,e+3),S(this,e+1,e+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)S(this,e,e+7),S(this,e+1,e+6),S(this,e+2,e+5),S(this,e+3,e+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?yr(this,0,r):Zr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",e=k.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};fr&&(a.prototype[fr]=a.prototype.inspect);a.prototype.compare=function(r,e,i,n,o){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),e<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=i)return 0;if(n>=o)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var u=o-n,f=i-e,h=Math.min(u,f),c=this.slice(n,o),s=r.slice(e,i),p=0;p<h;++p)if(c[p]!==s[p]){u=c[p],f=s[p];break}return u<f?-1:f<u?1:0};function wr(t,r,e,i,n){if(t.length===0)return-1;if(typeof e=="string"?(i=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,j(e)&&(e=n?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(n)return-1;e=t.length-1}else if(e<0)if(n)e=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),a.isBuffer(r))return r.length===0?-1:hr(t,r,e,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):hr(t,[r],e,i,n);throw new TypeError("val must be string, number or Buffer")}function hr(t,r,e,i,n){var o=1,u=t.length,f=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||r.length<2)return-1;o=2,u/=2,f/=2,e/=2}function h(x,M){return o===1?x[M]:x.readUInt16BE(M*o)}var c;if(n){var s=-1;for(c=e;c<u;c++)if(h(t,c)===h(r,s===-1?0:c-s)){if(s===-1&&(s=c),c-s+1===f)return s*o}else s!==-1&&(c-=c-s),s=-1}else for(e+f>u&&(e=u-f),c=e;c>=0;c--){for(var p=!0,g=0;g<f;g++)if(h(t,c+g)!==h(r,g)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,e,i){return this.indexOf(r,e,i)!==-1};a.prototype.indexOf=function(r,e,i){return wr(this,r,e,i,!0)};a.prototype.lastIndexOf=function(r,e,i){return wr(this,r,e,i,!1)};function $r(t,r,e,i){e=Number(e)||0;var n=t.length-e;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);for(var u=0;u<i;++u){var f=parseInt(r.substr(u*2,2),16);if(j(f))return u;t[e+u]=f}return u}function Pr(t,r,e,i){return q(Z(r,t.length-e),t,e,i)}function jr(t,r,e,i){return q(pe(r),t,e,i)}function re(t,r,e,i){return q(gr(r),t,e,i)}function ee(t,r,e,i){return q(ce(r,t.length-e),t,e,i)}a.prototype.write=function(r,e,i,n){if(e===void 0)n="utf8",i=this.length,e=0;else if(i===void 0&&typeof e=="string")n=e,i=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-e;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return $r(this,r,e,i);case"utf8":case"utf-8":return Pr(this,r,e,i);case"ascii":case"latin1":case"binary":return jr(this,r,e,i);case"base64":return re(this,r,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,r,e,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function te(t,r,e){return r===0&&e===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(r,e))}function yr(t,r,e){e=Math.min(t.length,e);for(var i=[],n=r;n<e;){var o=t[n],u=null,f=o>239?4:o>223?3:o>191?2:1;if(n+f<=e){var h,c,s,p;switch(f){case 1:o<128&&(u=o);break;case 2:h=t[n+1],(h&192)===128&&(p=(o&31)<<6|h&63,p>127&&(u=p));break;case 3:h=t[n+1],c=t[n+2],(h&192)===128&&(c&192)===128&&(p=(o&15)<<12|(h&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:h=t[n+1],c=t[n+2],s=t[n+3],(h&192)===128&&(c&192)===128&&(s&192)===128&&(p=(o&15)<<18|(h&63)<<12|(c&63)<<6|s&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,f=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|u&1023),i.push(u),n+=f}return ie(i)}var pr=4096;function ie(t){var r=t.length;if(r<=pr)return String.fromCharCode.apply(String,t);for(var e="",i=0;i<r;)e+=String.fromCharCode.apply(String,t.slice(i,i+=pr));return e}function ne(t,r,e){var i="";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]&127);return i}function oe(t,r,e){var i="";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]);return i}function ue(t,r,e){var i=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>i)&&(e=i);for(var n="",o=r;o<e;++o)n+=se[t[o]];return n}function ae(t,r,e){for(var i=t.slice(r,e),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}a.prototype.slice=function(r,e){var i=this.length;r=~~r,e=e===void 0?i:~~e,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e<r&&(e=r);var n=this.subarray(r,e);return Object.setPrototypeOf(n,a.prototype),n};function w(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,e,i){r=r>>>0,e=e>>>0,i||w(r,e,this.length);for(var n=this[r],o=1,u=0;++u<e&&(o*=256);)n+=this[r+u]*o;return n};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,e,i){r=r>>>0,e=e>>>0,i||w(r,e,this.length);for(var n=this[r+--e],o=1;e>0&&(o*=256);)n+=this[r+--e]*o;return n};a.prototype.readUint8=a.prototype.readUInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,e,i){r=r>>>0,e=e>>>0,i||w(r,e,this.length);for(var n=this[r],o=1,u=0;++u<e&&(o*=256);)n+=this[r+u]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n};a.prototype.readIntBE=function(r,e,i){r=r>>>0,e=e>>>0,i||w(r,e,this.length);for(var n=e,o=1,u=this[r+--n];n>0&&(o*=256);)u+=this[r+--n]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*e)),u};a.prototype.readInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,e){r=r>>>0,e||w(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,e){r=r>>>0,e||w(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,e){return r=r>>>0,e||w(r,4,this.length),_.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,e){return r=r>>>0,e||w(r,4,this.length),_.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||w(r,8,this.length),_.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||w(r,8,this.length),_.read(this,r,!1,52,8)};function y(t,r,e,i,n,o){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(e+i>t.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,e,i,n){if(r=+r,e=e>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,e,i,o,0)}var u=1,f=0;for(this[e]=r&255;++f<i&&(u*=256);)this[e+f]=r/u&255;return e+i};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,e,i,n){if(r=+r,e=e>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,e,i,o,0)}var u=i-1,f=1;for(this[e+u]=r&255;--u>=0&&(f*=256);)this[e+u]=r/f&255;return e+i};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,1,255,0),this[e]=r&255,e+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};a.prototype.writeIntLE=function(r,e,i,n){if(r=+r,e=e>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,e,i,o-1,-o)}var u=0,f=1,h=0;for(this[e]=r&255;++u<i&&(f*=256);)r<0&&h===0&&this[e+u-1]!==0&&(h=1),this[e+u]=(r/f>>0)-h&255;return e+i};a.prototype.writeIntBE=function(r,e,i,n){if(r=+r,e=e>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,e,i,o-1,-o)}var u=i-1,f=1,h=0;for(this[e+u]=r&255;--u>=0&&(f*=256);)r<0&&h===0&&this[e+u+1]!==0&&(h=1),this[e+u]=(r/f>>0)-h&255;return e+i};a.prototype.writeInt8=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};a.prototype.writeInt16LE=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};a.prototype.writeInt16BE=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};a.prototype.writeInt32LE=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};a.prototype.writeInt32BE=function(r,e,i){return r=+r,e=e>>>0,i||y(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function xr(t,r,e,i,n,o){if(e+i>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function mr(t,r,e,i,n){return r=+r,e=e>>>0,n||xr(t,r,e,4,34028234663852886e22,-34028234663852886e22),_.write(t,r,e,i,23,4),e+4}a.prototype.writeFloatLE=function(r,e,i){return mr(this,r,e,!0,i)};a.prototype.writeFloatBE=function(r,e,i){return mr(this,r,e,!1,i)};function Er(t,r,e,i,n){return r=+r,e=e>>>0,n||xr(t,r,e,8,17976931348623157e292,-17976931348623157e292),_.write(t,r,e,i,52,8),e+8}a.prototype.writeDoubleLE=function(r,e,i){return Er(this,r,e,!0,i)};a.prototype.writeDoubleBE=function(r,e,i){return Er(this,r,e,!1,i)};a.prototype.copy=function(r,e,i,n){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),e>=r.length&&(e=r.length),e||(e=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-e<n-i&&(n=r.length-e+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),e),o};a.prototype.fill=function(r,e,i,n){if(typeof r=="string"){if(typeof e=="string"?(n=e,e=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;e=e>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var u;if(typeof r=="number")for(u=e;u<i;++u)this[u]=r;else{var f=a.isBuffer(r)?r:a.from(r,n),h=f.length;if(h===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<i-e;++u)this[u+e]=f[u%h]}return this};var fe=/[^+/0-9A-Za-z-_]/g;function he(t){if(t=t.split("=")[0],t=t.trim().replace(fe,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Z(t,r){r=r||1/0;for(var e,i=t.length,n=null,o=[],u=0;u<i;++u){if(e=t.charCodeAt(u),e>55295&&e<57344){if(!n){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),n=e;continue}e=(n-55296<<10|e-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function pe(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function ce(t,r){for(var e,i,n,o=[],u=0;u<t.length&&!((r-=2)<0);++u)e=t.charCodeAt(u),i=e>>8,n=e%256,o.push(n),o.push(i);return o}function gr(t){return K.toByteArray(he(t))}function q(t,r,e,i){for(var n=0;n<i&&!(n+e>=r.length||n>=t.length);++n)r[n+e]=t[n];return n}function B(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function j(t){return t!==t}var se=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var i=e*16,n=0;n<16;++n)r[i+n]=t[e]+t[n];return r}()});var Ur=V((Be,dr)=>{m();var l=dr.exports={},A,v;function rr(){throw new Error("setTimeout has not been defined")}function er(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=rr}catch(t){A=rr}try{typeof clearTimeout=="function"?v=clearTimeout:v=er}catch(t){v=er}})();function Br(t){if(A===setTimeout)return setTimeout(t,0);if((A===rr||!A)&&setTimeout)return A=setTimeout,setTimeout(t,0);try{return A(t,0)}catch(r){try{return A.call(null,t,0)}catch(e){return A.call(this,t,0)}}}function le(t){if(v===clearTimeout)return clearTimeout(t);if((v===er||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(t);try{return v(t)}catch(r){try{return v.call(null,t)}catch(e){return v.call(this,t)}}}var U=[],b=!1,L,H=-1;function we(){!b||!L||(b=!1,L.length?U=L.concat(U):H=-1,U.length&&Ar())}function Ar(){if(!b){var t=Br(we);b=!0;for(var r=U.length;r;){for(L=U,U=[];++H<r;)L&&L[H].run();H=-1,r=U.length}L=null,b=!1,le(t)}}l.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];U.push(new vr(t,r)),U.length===1&&!b&&Br(Ar)};function vr(t,r){this.fun=t,this.array=r}vr.prototype.run=function(){this.fun.apply(null,this.array)};l.title="browser";l.browser=!0;l.env={};l.argv=[];l.version="";l.versions={};function T(){}l.on=T;l.addListener=T;l.once=T;l.off=T;l.removeListener=T;l.removeAllListeners=T;l.emit=T;l.prependListener=T;l.prependOnceListener=T;l.listeners=function(t){return[]};l.binding=function(t){throw new Error("process.binding is not supported")};l.cwd=function(){return"/"};l.chdir=function(t){throw new Error("process.chdir is not supported")};l.umask=function(){return 0}});var I,R,Ae,m=kr(()=>{I=ir(Fr()),R=ir(Ur()),Ae=function(t){function r(){var i=this||self;return delete t.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var xe={};br(xe,{verifyMessage:()=>ye});module.exports=Dr(xe);m();var z=require("@multiversx/sdk-core/out");m();var Tr=require("@multiversx/sdk-core/out"),X=require("@multiversx/sdk-wallet"),Ir=t=>{let r=new X.UserPublicKey(Tr.Address.fromString(t).pubkey());return new X.UserVerifier(r)};var ye=t=>{try{let{message:r,address:e,signature:i}=JSON.parse(t),n=I.Buffer.from(r.replace("0x",""),"hex"),o=I.Buffer.from(i.replace("0x",""),"hex"),u=new z.Address(e),f=new z.SignableMessage({address:u,message:n,signature:o});return{isVerified:Ir(e).verify(f.serializeForSigning(),f.getSignature()),message:n.toString(),address:e}}catch(r){return{isVerified:!1,message:"",address:""}}};0&&(module.exports={verifyMessage});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|