@multiversx/sdk-dapp 2.15.2-alpha.0 → 2.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UI/DappModal/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/Progress/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/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/LedgerLoading/LedgerLoading.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoading/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/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-BOR6DLV5.js → chunk-22EASKEQ.js} +2 -2
- package/__chunks__/{chunk-3R54WDVQ.js → chunk-267OXC5K.js} +2 -2
- package/__chunks__/{chunk-6KBTDVJ4.js → chunk-2B6RMHWC.js} +2 -2
- package/__chunks__/chunk-2DYJU2M4.js +2 -0
- package/__chunks__/{chunk-4S2VQARY.js → chunk-2MZCHDLD.js} +2 -2
- package/__chunks__/{chunk-IYFHKEND.js → chunk-2QKH35IL.js} +2 -2
- package/__chunks__/{chunk-C7EK46KM.js → chunk-2R4HRJGA.js} +2 -2
- package/__chunks__/{chunk-5INRTZIU.js → chunk-2WI2347T.js} +2 -2
- package/__chunks__/{chunk-MBDS7WSA.js → chunk-2WROCLJR.js} +2 -2
- package/__chunks__/{chunk-IKBCIBFI.js → chunk-35LP55H2.js} +2 -2
- package/__chunks__/{chunk-MQICKPTK.js → chunk-3EDCO5DB.js} +2 -2
- package/__chunks__/{chunk-HZ5Z3WKV.js → chunk-3EIVLWJP.js} +2 -2
- package/__chunks__/{chunk-XFSNB6AW.js → chunk-3MCMEWK2.js} +2 -2
- package/__chunks__/{chunk-IKIMHLI3.js → chunk-3MKLCFBI.js} +2 -2
- package/__chunks__/{chunk-XZPQF7KS.js → chunk-3NZQWMVP.js} +2 -2
- package/__chunks__/{chunk-2LGV7I4X.js → chunk-3WGY36H5.js} +2 -2
- package/__chunks__/{chunk-7JVMILLF.js → chunk-3Y4E2DKR.js} +2 -2
- package/__chunks__/{chunk-LMRIKCH6.js → chunk-42SQJS6C.js} +2 -2
- package/__chunks__/{chunk-2OXUWP34.js → chunk-47BKPUOO.js} +2 -2
- package/__chunks__/{chunk-N45DWDXN.js → chunk-4BMQR6EH.js} +2 -2
- package/__chunks__/{chunk-2ALU2GZN.js → chunk-4DHPXWFR.js} +2 -2
- package/__chunks__/{chunk-VX2LYCNM.js → chunk-4HG6UMXB.js} +2 -2
- package/__chunks__/{chunk-AJX73FDB.js → chunk-4JNO3L2W.js} +2 -2
- package/__chunks__/{chunk-MB3UXECX.js → chunk-4O2RTHBP.js} +2 -2
- package/__chunks__/{chunk-OHPARBZY.js → chunk-4TGTCMG7.js} +2 -2
- package/__chunks__/{chunk-PO5YDHQK.js → chunk-4VW7JMP2.js} +2 -2
- package/__chunks__/{chunk-GLM6VXND.js → chunk-4XMAX5PE.js} +2 -2
- package/__chunks__/{chunk-T6Y5FZ6P.js → chunk-4XQMHQX5.js} +2 -2
- package/__chunks__/{chunk-TUD5M6MY.js → chunk-4XZQJ4Z5.js} +2 -2
- package/__chunks__/{chunk-AW3WWY2T.js → chunk-4Y7M3LUY.js} +2 -2
- package/__chunks__/{chunk-XEQA7UUE.js → chunk-52FHIE3G.js} +2 -2
- package/__chunks__/{chunk-4QXCZ2UP.js → chunk-53YUGN45.js} +2 -2
- package/__chunks__/chunk-57UD6CJB.js +2 -0
- package/__chunks__/{chunk-MIB6JOBT.js → chunk-5BOS2S75.js} +2 -2
- package/__chunks__/{chunk-FOPCDC2P.js → chunk-5CC4B47U.js} +2 -2
- package/__chunks__/{chunk-2SXZCGEP.js → chunk-5KG56WUX.js} +2 -2
- package/__chunks__/{chunk-FFFBH5SD.js → chunk-5MFKNDEE.js} +2 -2
- package/__chunks__/{chunk-LPMAW3AU.js → chunk-5NBNNF7Q.js} +2 -2
- package/__chunks__/{chunk-XVFD2OQ5.js → chunk-5O7CIQDE.js} +2 -2
- package/__chunks__/chunk-5S5CGTHP.js +2 -0
- package/__chunks__/{chunk-LDYUG4HD.js → chunk-5SSVSEPF.js} +2 -2
- package/__chunks__/{chunk-R4WZHY5L.js → chunk-5ZAHDMSG.js} +2 -2
- package/__chunks__/{chunk-IQTWN2FQ.js → chunk-64BWT6NY.js} +2 -2
- package/__chunks__/chunk-6ASRKYIY.js +2 -0
- package/__chunks__/{chunk-76DWFZ6Z.js → chunk-6H3CY6VZ.js} +2 -2
- package/__chunks__/{chunk-AFTTX47G.js → chunk-6IVU4I45.js} +2 -2
- package/__chunks__/{chunk-PO7P2NDG.js → chunk-6LDO4JEI.js} +2 -2
- package/__chunks__/{chunk-UX342J5N.js → chunk-6R6JEQDG.js} +2 -2
- package/__chunks__/chunk-6TYOL4WX.js +2 -0
- package/__chunks__/{chunk-L7PMFZDS.js → chunk-6U6VOH6Z.js} +2 -2
- package/__chunks__/{chunk-6MAPL6W2.js → chunk-6WJ7SYH2.js} +2 -2
- package/__chunks__/chunk-6X36IWKB.js +2 -0
- package/__chunks__/{chunk-NFSSFSS5.js → chunk-6Y2CM4EN.js} +2 -2
- package/__chunks__/{chunk-B3VUALUZ.js → chunk-6ZTYGEH2.js} +2 -2
- package/__chunks__/chunk-72TR5ROY.js +2 -0
- package/__chunks__/chunk-73EE2EXW.js +2 -0
- package/__chunks__/{chunk-QVLMKITK.js → chunk-73L22AGE.js} +2 -2
- package/__chunks__/{chunk-6GYI3SDB.js → chunk-74Y2KAKW.js} +2 -2
- package/__chunks__/{chunk-2D6T6EEY.js → chunk-75FGRZ2S.js} +2 -2
- package/__chunks__/{chunk-SSGLP5DB.js → chunk-763DRARD.js} +2 -2
- package/__chunks__/{chunk-LHE4YARS.js → chunk-7G3CPKDX.js} +2 -2
- package/__chunks__/{chunk-L5DUIYF6.js → chunk-7HS4YGIP.js} +2 -2
- package/__chunks__/{chunk-POVQ7WNN.js → chunk-7I4MJEKZ.js} +2 -2
- package/__chunks__/{chunk-AB7JWEPK.js → chunk-7QDLQ3WY.js} +2 -2
- package/__chunks__/{chunk-4HFCRYLW.js → chunk-7TAZACDX.js} +2 -2
- package/__chunks__/{chunk-KQR6JG33.js → chunk-A7ZLWYWT.js} +2 -2
- package/__chunks__/{chunk-CVIVXLZI.js → chunk-AKAQAZVM.js} +2 -2
- package/__chunks__/{chunk-MPRZSCHJ.js → chunk-ANIKTNCR.js} +2 -2
- package/__chunks__/chunk-AO3GMA2W.js +2 -0
- package/__chunks__/{chunk-O266RX2I.js → chunk-AP54QAMP.js} +2 -2
- package/__chunks__/{chunk-INQ2UR2E.js → chunk-AQAGI6HC.js} +2 -2
- package/__chunks__/{chunk-HBT3OOSB.js → chunk-ASZDKSL7.js} +2 -2
- package/__chunks__/{chunk-WVCMMQHK.js → chunk-AUVTYAU3.js} +2 -2
- package/__chunks__/{chunk-DLHS7X56.js → chunk-B23DSIN7.js} +2 -2
- package/__chunks__/{chunk-DS2P6MSW.js → chunk-B33QJXM7.js} +2 -2
- package/__chunks__/chunk-BGHSXU5Z.js +2 -0
- package/__chunks__/{chunk-BIUJWUYK.js → chunk-BJ4H63DH.js} +2 -2
- package/__chunks__/{chunk-PL4JK44Q.js → chunk-BMOJBVLH.js} +2 -2
- package/__chunks__/{chunk-AB2STFLO.js → chunk-BNYUGNZS.js} +2 -2
- package/__chunks__/chunk-BO2FCMDI.js +2 -0
- package/__chunks__/{chunk-BLHE4L2A.js → chunk-BSJQMDPA.js} +2 -2
- package/__chunks__/chunk-BZHRVTOF.js +2 -0
- package/__chunks__/{chunk-MJ4HJH2R.js → chunk-C2GY75AY.js} +2 -2
- package/__chunks__/{chunk-PMEPFTAL.js → chunk-C3YL5B7V.js} +2 -2
- package/__chunks__/{chunk-2X7ETWFE.js → chunk-C47M6NAU.js} +2 -2
- package/__chunks__/{chunk-JDLHAOM3.js → chunk-CCGUPQUW.js} +2 -2
- package/__chunks__/{chunk-5VTISBBB.js → chunk-CF7NIQPL.js} +2 -2
- package/__chunks__/{chunk-VF4OOA47.js → chunk-CI7JPMPN.js} +2 -2
- package/__chunks__/{chunk-F326VPWJ.js → chunk-CK2XU2MZ.js} +2 -2
- package/__chunks__/{chunk-MJ66QE7S.js → chunk-CNC3H2PQ.js} +2 -2
- package/__chunks__/{chunk-IIKMJPR2.js → chunk-COW6WLHG.js} +2 -2
- package/__chunks__/{chunk-EFI2DL24.js → chunk-CZ76CHAV.js} +2 -2
- package/__chunks__/{chunk-G6FZG5T7.js → chunk-D56W5D5H.js} +2 -2
- package/__chunks__/{chunk-AGA76HOV.js → chunk-DCR6LGVO.js} +2 -2
- package/__chunks__/{chunk-6RD4KWQK.js → chunk-DDWFRMFY.js} +2 -2
- package/__chunks__/{chunk-IAKPT2BW.js → chunk-DFGQJPVF.js} +2 -2
- package/__chunks__/{chunk-YB5XOG3Y.js → chunk-DKNTCKVQ.js} +2 -2
- package/__chunks__/chunk-DLWHBWA4.js +2 -0
- package/__chunks__/{chunk-P6WVZH6R.js → chunk-DNRC5I2L.js} +2 -2
- package/__chunks__/{chunk-ASODBYA6.js → chunk-DO3IYCHW.js} +2 -2
- package/__chunks__/{chunk-3ZXBMWYX.js → chunk-DPIFNXQQ.js} +2 -2
- package/__chunks__/{chunk-Q3TZEKKN.js → chunk-DXMIMRO5.js} +2 -2
- package/__chunks__/chunk-E3VXNJH7.js +2 -0
- package/__chunks__/{chunk-SBFPI27Z.js → chunk-E547FN45.js} +2 -2
- package/__chunks__/{chunk-E2JGYCT2.js → chunk-E5JYYR6J.js} +2 -2
- package/__chunks__/{chunk-A46RH3CU.js → chunk-EBFR25LZ.js} +2 -2
- package/__chunks__/chunk-EBIB2OWL.js +2 -0
- package/__chunks__/{chunk-ONQENVBF.js → chunk-ECSV5ZO4.js} +2 -2
- package/__chunks__/{chunk-OR5XYSPR.js → chunk-EIO5B2QI.js} +2 -2
- package/__chunks__/{chunk-AMRA6OTO.js → chunk-EIWFTEZZ.js} +2 -2
- package/__chunks__/{chunk-37ZJOOHJ.js → chunk-ESW2GYOK.js} +2 -2
- package/__chunks__/chunk-EUWAHRRR.js +2 -0
- package/__chunks__/{chunk-TLYW3D57.js → chunk-F5MJXWOC.js} +2 -2
- package/__chunks__/chunk-FE7LNSA6.js +2 -0
- package/__chunks__/{chunk-5LYQKQXH.js → chunk-FITUS6F7.js} +2 -2
- package/__chunks__/{chunk-34TMDFQ3.js → chunk-FKZZND5G.js} +2 -2
- package/__chunks__/{chunk-RXS4QJUW.js → chunk-FTZYTVFH.js} +2 -2
- package/__chunks__/{chunk-4YDRR2OB.js → chunk-FU2GCO5F.js} +2 -2
- package/__chunks__/{chunk-GCRBSH7S.js → chunk-FUMFZSIA.js} +2 -2
- package/__chunks__/{chunk-HEHFJYSE.js → chunk-FXHV2O7Z.js} +2 -2
- package/__chunks__/{chunk-EIHFKAY4.js → chunk-FZFXBAFD.js} +2 -2
- package/__chunks__/chunk-G27WGMMD.js +2 -0
- package/__chunks__/{chunk-GLTQGBBA.js → chunk-G6BTPPEH.js} +2 -2
- package/__chunks__/{chunk-YKLTXHO3.js → chunk-G7WM2HSR.js} +2 -2
- package/__chunks__/{chunk-WT7VMPBF.js → chunk-GEBTV224.js} +2 -2
- package/__chunks__/chunk-GNFEAZ2J.js +2 -0
- package/__chunks__/{chunk-C6VPGYF7.js → chunk-GPASIS5E.js} +2 -2
- package/__chunks__/{chunk-5MIDJXF6.js → chunk-GV33TWMM.js} +2 -2
- package/__chunks__/{chunk-EHLPJ7NP.js → chunk-GXAR7TJI.js} +2 -2
- package/__chunks__/{chunk-XHI6Q24M.js → chunk-GZXS3DIF.js} +2 -2
- package/__chunks__/{chunk-GLWTVP4E.js → chunk-H2XK726N.js} +2 -2
- package/__chunks__/{chunk-MTYPP2JW.js → chunk-HAM4GENQ.js} +2 -2
- package/__chunks__/{chunk-4KWOFXS6.js → chunk-HBAFASPY.js} +2 -2
- package/__chunks__/{chunk-5BVPMCNV.js → chunk-HBS2IMU6.js} +2 -2
- package/__chunks__/{chunk-KYVGX3TP.js → chunk-HCEKS226.js} +2 -2
- package/__chunks__/chunk-HFYMPI3I.js +2 -0
- package/__chunks__/{chunk-FRIJXKKD.js → chunk-HGOV2FKD.js} +2 -2
- package/__chunks__/{chunk-KUC7PYAE.js → chunk-HIW5J5NO.js} +2 -2
- package/__chunks__/chunk-HKO6CNLR.js +2 -0
- package/__chunks__/{chunk-YZFRCKBQ.js → chunk-HMSLHZUT.js} +2 -2
- package/__chunks__/{chunk-EPAUZEX3.js → chunk-HTIXF3N5.js} +2 -2
- package/__chunks__/chunk-HTQNCTR6.js +2 -0
- package/__chunks__/{chunk-WOODEN24.js → chunk-HUBDSYBD.js} +2 -2
- package/__chunks__/{chunk-2MU6JHLC.js → chunk-HZ4LWGGW.js} +2 -2
- package/__chunks__/{chunk-MEGRBLUI.js → chunk-I3XJSHEL.js} +2 -2
- package/__chunks__/{chunk-C642REF7.js → chunk-I7PFUV7R.js} +2 -2
- package/__chunks__/{chunk-WP6SELDK.js → chunk-ICLQEBET.js} +2 -2
- package/__chunks__/chunk-IFPVDOEN.js +2 -0
- package/__chunks__/{chunk-AXSKLOSY.js → chunk-IG4CCSSK.js} +2 -2
- package/__chunks__/{chunk-PRR4EJJ7.js → chunk-IHJIWSIL.js} +2 -2
- package/__chunks__/chunk-INYZJFRR.js +2 -0
- package/__chunks__/{chunk-SI5TLADF.js → chunk-IOL7ECDB.js} +2 -2
- package/__chunks__/{chunk-DMU7PFV7.js → chunk-IYKQC7NO.js} +2 -2
- package/__chunks__/{chunk-FQB7Y5UF.js → chunk-JI6WOVEC.js} +2 -2
- package/__chunks__/{chunk-3HOFOSSH.js → chunk-JQNQQKEC.js} +2 -2
- package/__chunks__/chunk-JRRXTQY4.js +2 -0
- package/__chunks__/{chunk-XJ2JYCHU.js → chunk-JS2TQKMA.js} +2 -2
- package/__chunks__/{chunk-AOHVOY5X.js → chunk-JXJ2BELR.js} +2 -2
- package/__chunks__/{chunk-P3W3WONM.js → chunk-JZZX5K7O.js} +2 -2
- package/__chunks__/{chunk-VXE4OBUU.js → chunk-K2QXDIYW.js} +2 -2
- package/__chunks__/chunk-KDIRGJY5.js +2 -0
- package/__chunks__/chunk-KGFBT2NY.js +2 -0
- package/__chunks__/{chunk-JIXXJMPY.js → chunk-KIB3DWJS.js} +2 -2
- package/__chunks__/{chunk-UIN3DACR.js → chunk-KLJ4OK73.js} +2 -2
- package/__chunks__/{chunk-ZZZYAIF2.js → chunk-KZPSR5PU.js} +2 -2
- package/__chunks__/chunk-LDKTALX6.js +2 -0
- package/__chunks__/{chunk-5VXT5PDS.js → chunk-LGRDCGKC.js} +2 -2
- package/__chunks__/{chunk-AROILIMR.js → chunk-LIXFG7A3.js} +2 -2
- package/__chunks__/{chunk-D6ATDAPH.js → chunk-LMJPKGRH.js} +2 -2
- package/__chunks__/{chunk-6U5DHIND.js → chunk-LN3UNMB3.js} +2 -2
- package/__chunks__/{chunk-TRCCJVRB.js → chunk-LSLSKXLL.js} +2 -2
- package/__chunks__/chunk-LSQC5V24.js +2 -0
- package/__chunks__/{chunk-IQZSVCGQ.js → chunk-LU5UNDPG.js} +2 -2
- package/__chunks__/{chunk-S4SDA6GD.js → chunk-LWJKWLE6.js} +2 -2
- package/__chunks__/{chunk-H5DOMVJR.js → chunk-LX6RGJVE.js} +2 -2
- package/__chunks__/chunk-M7TCHCBT.js +2 -0
- package/__chunks__/{chunk-45GSKXQ5.js → chunk-MA4WTRQK.js} +2 -2
- package/__chunks__/{chunk-BEQUKMQM.js → chunk-MASIX5GP.js} +2 -2
- package/__chunks__/{chunk-BNPKFAM2.js → chunk-MDIBUFMQ.js} +2 -2
- package/__chunks__/{chunk-3TYAQKFO.js → chunk-MGUPCACB.js} +2 -2
- package/__chunks__/{chunk-R2AEY6SX.js → chunk-MLHNIGZZ.js} +2 -2
- package/__chunks__/{chunk-CDNAUKEE.js → chunk-MPQ3OFUB.js} +2 -2
- package/__chunks__/{chunk-T3PHUHBP.js → chunk-MQTUE5NM.js} +2 -2
- package/__chunks__/{chunk-JQJXNKND.js → chunk-MR5AZADM.js} +2 -2
- package/__chunks__/{chunk-BVL6YZSF.js → chunk-MRZKMABV.js} +2 -2
- package/__chunks__/{chunk-27MOHCJ6.js → chunk-MSSX7PDN.js} +2 -2
- package/__chunks__/{chunk-H3AY3QBK.js → chunk-MYGF7NH6.js} +2 -2
- package/__chunks__/chunk-NABUXAGW.js +2 -0
- package/__chunks__/chunk-NAIKOKEO.js +2 -0
- package/__chunks__/{chunk-7MIEKMWV.js → chunk-NFOEFEDF.js} +2 -2
- package/__chunks__/chunk-NIYFBCUS.js +2 -0
- package/__chunks__/chunk-NJFIVZOQ.js +2 -0
- package/__chunks__/{chunk-LJ6WLNY4.js → chunk-NM6B7GYM.js} +2 -2
- package/__chunks__/{chunk-7XYS7XP6.js → chunk-NNDA6L6F.js} +2 -2
- package/__chunks__/{chunk-S6IJ55CJ.js → chunk-NNUVCOVZ.js} +2 -2
- package/__chunks__/{chunk-RWFMG4FA.js → chunk-NVLVGYOD.js} +2 -2
- package/__chunks__/{chunk-LK222MWF.js → chunk-NXTEVZGP.js} +2 -2
- package/__chunks__/chunk-NYNMYCKP.js +2 -0
- package/__chunks__/{chunk-TGOFVDEX.js → chunk-ODEE6TCS.js} +2 -2
- package/__chunks__/chunk-OHDYFJGA.js +2 -0
- package/__chunks__/{chunk-DLAPTOKB.js → chunk-OI2XSIUV.js} +2 -2
- package/__chunks__/{chunk-IT5WIGPH.js → chunk-OPSV7QF3.js} +2 -2
- package/__chunks__/chunk-OQEBUXQY.js +2 -0
- package/__chunks__/chunk-OS2VHNM7.js +2 -0
- package/__chunks__/{chunk-TQ52FBA2.js → chunk-OUCS2SSL.js} +2 -2
- package/__chunks__/{chunk-UZ6I7WCO.js → chunk-P3G4NKE2.js} +2 -2
- package/__chunks__/{chunk-XOJZJ54Y.js → chunk-PB5IVI6V.js} +2 -2
- package/__chunks__/{chunk-DHACOD4I.js → chunk-PLBYBTFQ.js} +2 -2
- package/__chunks__/{chunk-UTVIRA4E.js → chunk-PM7AYNHS.js} +2 -2
- package/__chunks__/chunk-PNPPUJK6.js +2 -0
- package/__chunks__/{chunk-CRD7UBCS.js → chunk-POHTDMXQ.js} +2 -2
- package/__chunks__/{chunk-WRD3SMWS.js → chunk-PPNSTERY.js} +2 -2
- package/__chunks__/{chunk-TGM4V2RH.js → chunk-PTZZUHQ5.js} +2 -2
- package/__chunks__/{chunk-QOAWBYWA.js → chunk-PYDNKQIP.js} +2 -2
- package/__chunks__/{chunk-EDBF7OZR.js → chunk-Q3KSQKEE.js} +2 -2
- package/__chunks__/{chunk-TBFFYHU5.js → chunk-Q4FHPF5K.js} +2 -2
- package/__chunks__/{chunk-3ICOVGSF.js → chunk-Q567XRX6.js} +2 -2
- package/__chunks__/{chunk-P3C2AC4P.js → chunk-Q5BGYVWZ.js} +2 -2
- package/__chunks__/{chunk-G25V5GWE.js → chunk-QDFNQFKF.js} +2 -2
- package/__chunks__/{chunk-DEJHZLSH.js → chunk-QGC4MYV3.js} +2 -2
- package/__chunks__/{chunk-QINDCIDH.js → chunk-QKT7BGIL.js} +2 -2
- package/__chunks__/{chunk-7LWCGDKS.js → chunk-QOPG5ULO.js} +2 -2
- package/__chunks__/chunk-QPHQ255Q.js +2 -0
- package/__chunks__/{chunk-GWLOOEXG.js → chunk-QUKEDGJ6.js} +2 -2
- package/__chunks__/{chunk-SVPBI3OL.js → chunk-QXVZP7BJ.js} +2 -2
- package/__chunks__/chunk-QZESE2JZ.js +2 -0
- package/__chunks__/{chunk-HVZ4LX72.js → chunk-RIHGHY7C.js} +2 -2
- package/__chunks__/{chunk-ATDDRZUH.js → chunk-RJMXSJYA.js} +2 -2
- package/__chunks__/{chunk-KWVF6N6E.js → chunk-RR2EXIU2.js} +2 -2
- package/__chunks__/{chunk-JNQVUNIM.js → chunk-SDNFDS6Q.js} +2 -2
- package/__chunks__/chunk-SGY23NKY.js +2 -0
- package/__chunks__/chunk-SH77HZZZ.js +2 -0
- package/__chunks__/{chunk-CF4TEGWJ.js → chunk-SIP5EOWH.js} +2 -2
- package/__chunks__/{chunk-WZPHTELB.js → chunk-SLAT3EJ2.js} +2 -2
- package/__chunks__/{chunk-OCWY6T5V.js → chunk-SPNARIPF.js} +2 -2
- package/__chunks__/{chunk-T6WUXT3J.js → chunk-ST3TQNEC.js} +2 -2
- package/__chunks__/{chunk-6XLTTWVB.js → chunk-SUVCMQI7.js} +2 -2
- package/__chunks__/{chunk-HNTDHMNF.js → chunk-SVFOP3P5.js} +2 -2
- package/__chunks__/{chunk-NFM27T7H.js → chunk-SWMBOYNP.js} +2 -2
- package/__chunks__/chunk-T4QGFOHG.js +2 -0
- package/__chunks__/{chunk-NIOJF35C.js → chunk-T7GX5SH3.js} +2 -2
- package/__chunks__/{chunk-OKB2NV33.js → chunk-TCRLTWBL.js} +2 -2
- package/__chunks__/{chunk-T6Z7OOLV.js → chunk-TG6UV2U7.js} +2 -2
- package/__chunks__/chunk-TKOPBX5Y.js +2 -0
- package/__chunks__/{chunk-KGISQGIK.js → chunk-TMVBA23W.js} +2 -2
- package/__chunks__/chunk-TNJQUMM7.js +2 -0
- package/__chunks__/{chunk-VG7VMB3F.js → chunk-TV6QHFSY.js} +2 -2
- package/__chunks__/{chunk-FNZRE5N3.js → chunk-TZW6GDDJ.js} +2 -2
- package/__chunks__/chunk-U4VIOFAC.js +2 -0
- package/__chunks__/chunk-UC56HX6F.js +2 -0
- package/__chunks__/{chunk-NCMBMYFQ.js → chunk-UCQVPD7E.js} +2 -2
- package/__chunks__/{chunk-TVHFBPLS.js → chunk-UEKWMB44.js} +2 -2
- package/__chunks__/chunk-UFGPJRWA.js +2 -0
- package/__chunks__/{chunk-UGPMEBSY.js → chunk-UFLOJLHA.js} +2 -2
- package/__chunks__/{chunk-UN4PKZM2.js → chunk-UGV7Q5DL.js} +2 -2
- package/__chunks__/{chunk-AZBHQN4H.js → chunk-URJLKR6N.js} +2 -2
- package/__chunks__/{chunk-O76NE5JW.js → chunk-UTZH2MYE.js} +2 -2
- package/__chunks__/{chunk-IF2EMKYK.js → chunk-UXA6KYFU.js} +2 -2
- package/__chunks__/{chunk-SOUTIAAN.js → chunk-UYUXZROU.js} +2 -2
- package/__chunks__/{chunk-LVMX6HUJ.js → chunk-UZLIRC6Y.js} +2 -2
- package/__chunks__/{chunk-NBIKXY7X.js → chunk-V2PSDEZD.js} +2 -2
- package/__chunks__/{chunk-OSEFHIZ3.js → chunk-VLSI5TEL.js} +2 -2
- package/__chunks__/{chunk-CAW4L5LA.js → chunk-VRXOPYLW.js} +2 -2
- package/__chunks__/{chunk-X2JRDOQU.js → chunk-VXS4RIPE.js} +2 -2
- package/__chunks__/{chunk-SBNHPE47.js → chunk-VXZTNHU5.js} +2 -2
- package/__chunks__/{chunk-IKJ6AQZ5.js → chunk-VYQCQNDT.js} +2 -2
- package/__chunks__/{chunk-LM5HIOMR.js → chunk-VZ6FGOFL.js} +2 -2
- package/__chunks__/chunk-W3VGTHTS.js +2 -0
- package/__chunks__/{chunk-OXXNXJ4R.js → chunk-W7VMRDSX.js} +2 -2
- package/__chunks__/{chunk-UWRMDODI.js → chunk-WD7TP6PM.js} +2 -2
- package/__chunks__/{chunk-ZVJ5RBRX.js → chunk-WLLJBQR6.js} +2 -2
- package/__chunks__/{chunk-VKRC4QMK.js → chunk-WNDFDYD7.js} +2 -2
- package/__chunks__/{chunk-C2W4BPK5.js → chunk-WOTNTRP4.js} +2 -2
- package/__chunks__/{chunk-MW6CXQMH.js → chunk-WPBYG7NA.js} +2 -2
- package/__chunks__/{chunk-DLG53V7H.js → chunk-WRSWTRV5.js} +2 -2
- package/__chunks__/{chunk-LVWSCBIF.js → chunk-WT2PNZQQ.js} +2 -2
- package/__chunks__/chunk-WTN6CT6K.js +2 -0
- package/__chunks__/{chunk-VTBA4I2E.js → chunk-WYSZHORV.js} +2 -2
- package/__chunks__/chunk-X2UMKCBO.js +2 -0
- package/__chunks__/{chunk-GYPSFKPJ.js → chunk-X6BEA6ZB.js} +2 -2
- package/__chunks__/{chunk-EFQXNDOI.js → chunk-X7G5IEN2.js} +2 -2
- package/__chunks__/{chunk-LCMBECJZ.js → chunk-XALTZGMU.js} +2 -2
- package/__chunks__/chunk-XB3SZG7C.js +2 -0
- package/__chunks__/{chunk-4JDYQFVZ.js → chunk-XBRTGIYZ.js} +2 -2
- package/__chunks__/{chunk-G3PWY56D.js → chunk-XEBSYJ6B.js} +2 -2
- package/__chunks__/chunk-XEEVQDUP.js +2 -0
- package/__chunks__/{chunk-UTNZJTOQ.js → chunk-XIPI66ZD.js} +2 -2
- package/__chunks__/{chunk-N7GXD3P6.js → chunk-XIUZH6CO.js} +2 -2
- package/__chunks__/chunk-XJE7Q5CI.js +2 -0
- package/__chunks__/{chunk-MNUYD7Y6.js → chunk-XNCOA3SJ.js} +2 -2
- package/__chunks__/{chunk-VGQLQLXR.js → chunk-XNR4G3GS.js} +2 -2
- package/__chunks__/{chunk-EPV7EQGD.js → chunk-Y34JJNKO.js} +2 -2
- package/__chunks__/{chunk-JBG77AHM.js → chunk-Y5FQBNWF.js} +2 -2
- package/__chunks__/{chunk-M3HOHZP2.js → chunk-Y6IEZBCW.js} +2 -2
- package/__chunks__/{chunk-2N4QT3PA.js → chunk-YA2Z2OMT.js} +2 -2
- package/__chunks__/{chunk-COVBFZQN.js → chunk-YFXJ4GPS.js} +2 -2
- package/__chunks__/{chunk-VIVFZPAX.js → chunk-YI4LSXL5.js} +2 -2
- package/__chunks__/{chunk-CC7R4Y4N.js → chunk-YKPNTVTV.js} +2 -2
- package/__chunks__/{chunk-DRKJVD2T.js → chunk-YS55XYVN.js} +2 -2
- package/__chunks__/{chunk-S7ELVIOA.js → chunk-YSRT7MUR.js} +2 -2
- package/__chunks__/{chunk-FS3WXJVO.js → chunk-YW3LVQ6E.js} +2 -2
- package/__chunks__/{chunk-WL32SMOC.js → chunk-YWU5EB23.js} +2 -2
- package/__chunks__/{chunk-CECFFMSV.js → chunk-YYOP2VRJ.js} +2 -2
- package/__chunks__/{chunk-KLW5GU5V.js → chunk-YZ754A73.js} +2 -2
- package/__chunks__/{chunk-WRWMJVJ5.js → chunk-Z4NYIPM4.js} +2 -2
- package/__chunks__/{chunk-4GTVMK7Q.js → chunk-Z7227VRD.js} +2 -2
- package/__chunks__/{chunk-NWBACW3A.js → chunk-ZCRBRWH2.js} +2 -2
- package/__chunks__/{chunk-CFGXW4IY.js → chunk-ZEDFG6TQ.js} +2 -2
- package/__chunks__/{chunk-65XGWRGZ.js → chunk-ZFHLGJH7.js} +2 -2
- package/__chunks__/{chunk-IT2LCTPB.js → chunk-ZG4J5MFA.js} +2 -2
- package/__chunks__/chunk-ZHYRQKZ3.js +2 -0
- package/__chunks__/{chunk-A4WAENME.js → chunk-ZNSO6EOT.js} +2 -2
- package/__chunks__/{chunk-BS7BS7MR.js → chunk-ZO3V6VFJ.js} +2 -2
- package/__chunks__/{chunk-Z2FJGISK.js → chunk-ZQQUQ5OB.js} +2 -2
- 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/reduxStore/persistedRootReducer.d.ts +1 -1
- package/__commonjs/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
- package/__commonjs/wrappers/AuthenticatedRoutesWrapper/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/useWalletConnectLogin.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.d.ts +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/methods/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/storage/local.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/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/storage/index.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/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/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-2FCBWAZL.js +0 -2
- package/__chunks__/chunk-33CB4BWJ.js +0 -2
- package/__chunks__/chunk-3H6UA36E.js +0 -2
- package/__chunks__/chunk-3JTCN5YP.js +0 -2
- package/__chunks__/chunk-3XQJ3H4R.js +0 -2
- package/__chunks__/chunk-42MIPQSL.js +0 -2
- package/__chunks__/chunk-4V4EG7AP.js +0 -2
- package/__chunks__/chunk-5OH7MD37.js +0 -2
- package/__chunks__/chunk-6EDVJOU6.js +0 -2
- package/__chunks__/chunk-6NVYCGBU.js +0 -2
- package/__chunks__/chunk-6OJZNPO4.js +0 -2
- package/__chunks__/chunk-6XCK67XD.js +0 -2
- package/__chunks__/chunk-7BKNYXL4.js +0 -2
- package/__chunks__/chunk-AR5XBAMQ.js +0 -2
- package/__chunks__/chunk-AW3ZQQ2J.js +0 -2
- package/__chunks__/chunk-B4LFUEC4.js +0 -2
- package/__chunks__/chunk-BMADSBJF.js +0 -2
- package/__chunks__/chunk-CE26ITYT.js +0 -2
- package/__chunks__/chunk-CZY77XMO.js +0 -2
- package/__chunks__/chunk-D6UIQQT3.js +0 -2
- package/__chunks__/chunk-DG27HLVH.js +0 -2
- package/__chunks__/chunk-EFDZ3SAH.js +0 -2
- package/__chunks__/chunk-FCRLZTTG.js +0 -2
- package/__chunks__/chunk-FT5WKUFX.js +0 -2
- package/__chunks__/chunk-FTXBH3CW.js +0 -2
- package/__chunks__/chunk-GNBGXXMV.js +0 -2
- package/__chunks__/chunk-GPCUPFBB.js +0 -2
- package/__chunks__/chunk-HSUU5363.js +0 -2
- package/__chunks__/chunk-K6IH7S5F.js +0 -2
- package/__chunks__/chunk-KW3OG4MN.js +0 -2
- package/__chunks__/chunk-LG2RHI5W.js +0 -2
- package/__chunks__/chunk-MCICJT5Y.js +0 -2
- package/__chunks__/chunk-MTJYGEXV.js +0 -2
- package/__chunks__/chunk-NET5TALF.js +0 -2
- package/__chunks__/chunk-NFSAMHOF.js +0 -2
- package/__chunks__/chunk-O6BJCFP2.js +0 -2
- package/__chunks__/chunk-ONIX4EMQ.js +0 -2
- package/__chunks__/chunk-PGGI3DZB.js +0 -2
- package/__chunks__/chunk-PHISGKTV.js +0 -2
- package/__chunks__/chunk-QRRAOH2T.js +0 -2
- package/__chunks__/chunk-R5HIY2ZW.js +0 -2
- package/__chunks__/chunk-RK6JM6YP.js +0 -2
- package/__chunks__/chunk-RTU2B6SI.js +0 -2
- package/__chunks__/chunk-TDN357VQ.js +0 -2
- package/__chunks__/chunk-TP3GZI6S.js +0 -2
- package/__chunks__/chunk-TQP4E23V.js +0 -2
- package/__chunks__/chunk-UMD7WWI7.js +0 -2
- package/__chunks__/chunk-UZKL7YGO.js +0 -2
- package/__chunks__/chunk-VNORQA6F.js +0 -2
- package/__chunks__/chunk-W67GCFWY.js +0 -2
- package/__chunks__/chunk-XMVYOKIP.js +0 -2
- package/__chunks__/chunk-YJ4PCIFW.js +0 -2
- package/__chunks__/chunk-Z3D5ZYVC.js +0 -2
- package/__chunks__/chunk-Z547BAER.js +0 -2
- package/__chunks__/chunk-ZJPTLIXI.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as I}from"./chunk-25NFBJIK.js";import{b as e}from"./chunk-FEEPN2KN.js";import{a as E}from"./chunk-5BCRD2HN.js";import{a as b}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as I}from"./chunk-25NFBJIK.js";import{b as e}from"./chunk-FEEPN2KN.js";import{a as E}from"./chunk-5BCRD2HN.js";import{a as b}from"./chunk-6ZTYGEH2.js";import{a as H}from"./chunk-V5JKJ3V5.js";import{a as B}from"./chunk-HZ4LWGGW.js";import{b as i}from"./chunk-GCUT2XXY.js";import{a as W}from"./chunk-TXAITGIS.js";import{b as T}from"./chunk-4DHPXWFR.js";import{a as y,j as S,m as s}from"./chunk-HBP5N4FR.js";s();import t,{useEffect as V,useState as fe}from"react";import{faCircleNotch as pe}from"@fortawesome/free-solid-svg-icons";import n from"classnames";import xe from"qrcode";s();import*as r from"react";var ge=m=>r.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 31.114 44.981",width:16,height:16},m),r.createElement("g",{transform:"translate(-47.168 -21.519)"},r.createElement("g",{transform:"translate(-247.872 -130.693)"},r.createElement("path",{d:"M355.676,152.213l-3.832,17.8h-9.661Z",transform:"translate(-40.089 1)",fillRule:"evenodd",fill:"#fff"}),r.createElement("path",{d:"M326.45,271.184l-7.053,9.379H295.04l7.054-9.379Z",transform:"translate(0 -101.17)",fillRule:"evenodd",fill:"#fff"}),r.createElement("path",{d:"M381.139,333.864l-13.493,17.8,3.832-17.8Z",transform:"translate(-61.742 -155.472)",fillRule:"evenodd",fill:"#fff"})))),A=ge;var Ie=({callbackRoute:m,loginButtonText:Q="xPortal App",title:k="Login with the xPortal App",logoutRoute:D="/unlock",className:C="dapp-wallet-connect-login-modal",lead:z="Scan the QR code using the xPortal App",wrapContentInsideModal:Z=!0,token:g,nativeAuth:_,onClose:d,onLoginRedirect:O,innerWalletConnectComponentsClasses:U,customSpinnerComponent:f,showScamPhishingAlert:p=!0})=>{var P;let[q,{error:x},{connectExisting:X,removeExistingPairing:j,cancelLogin:F,uriDeepLink:G,walletConnectUri:c,wcPairings:l}]=T({logoutRoute:D,callbackRoute:m,token:g,nativeAuth:_,onLoginRedirect:O}),[u,J]=fe(""),{containerContentClassName:K,containerScamPhishingAlertClassName:Y,containerTitleClassName:$,containerSubtitleClassName:R,containerErrorClassName:ee,containerQrCodeClassName:te,containerLoaderClassName:oe,containerButtonClassName:ne,walletConnectPairingListClassNames:ae}=U||{},re=W(),h=(P=l==null?void 0:l.filter(o=>{let me=l.some(a=>{var N,M,w,L;return((N=o.peerMetadata)==null?void 0:N.name)===((M=a==null?void 0:a.peerMetadata)==null?void 0:M.name)&&((w=o.peerMetadata)==null?void 0:w.url)===((L=a==null?void 0:a.peerMetadata)==null?void 0:L.url)&&o.expiry<a.expiry});return Boolean(o.active)&&o.peerMetadata&&!me}))!=null?P:[],le=()=>S(void 0,null,function*(){if(!c)return;let o=yield xe.toString(c,{type:"svg"});o&&J(o)}),se=()=>{F(),d==null||d()};V(()=>{le()},[c]),V(()=>{q()},[]);let ie=p?B(g):void 0,v=t.createElement(t.Fragment,null,p&&t.createElement(E,{url:window==null?void 0:window.location.origin,authorizationInfo:ie,className:Y}),t.createElement("div",{className:n(e.xPortalContent,K)},t.createElement("div",{className:n(e.xPortalContainerHeading,$)},k),t.createElement("div",{className:n(e.xPortalContainerSubheading,R)},z),t.createElement("div",null,x&&t.createElement("p",{className:n(e.xPortalContainerError,ee)},x)),u?t.createElement("div",{className:n(e.xPortalQrCode,te),dangerouslySetInnerHTML:{__html:u}}):t.createElement("div",{className:n(e.xPortalLoader,oe)},f||t.createElement(H,{iconSize:"10x",icon:pe,iconClass:n("fa-spin",i.textPrimary)})),re&&t.createElement("a",{id:"accessWalletBtn","data-testid":"accessWalletBtn",href:G,rel:"noopener noreferrer nofollow",target:"_blank",className:n(i.btn,i.btnPrimary,e.xPortalContainerButton,ne)},t.createElement(A,{className:e.xPortalContainerButtonIcon}),Q),h.length>0&&t.createElement(I,{activePairings:h,connectExisting:X,removeExistingPairing:j,className:C,pairingListClasses:ae})));return Z?t.createElement(b,{onClose:se,modalConfig:{headerText:"Login using the xPortal App",showHeader:!0,modalContentClassName:e.xPortalModalDialogContent,modalHeaderClassName:e.xPortalModalHeader,modalHeaderTextClassName:e.xPortalModalHeaderText,modalCloseButtonClassName:e.xPortalModalCloseButton,modalBodyClassName:e.xPortalModalBody,modalDialogClassName:e.xPortalLoginContainer},className:C},v):v};export{Ie as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZCRBRWH2.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as g}from"./chunk-267OXC5K.js";import{d as n}from"./chunk-SPNARIPF.js";import{a as s,c}from"./chunk-E5JYYR6J.js";import{a as t,b as e,m as i}from"./chunk-HBP5N4FR.js";i();var d=()=>{try{let{loginInfo:r,isLoggedIn:o}=g();return e(t({},r),{isLoggedIn:o})}catch(r){let o=n(s),I=n(c);return e(t({},o),{isLoggedIn:I})}};export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZEDFG6TQ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-W7VMRDSX.js";import{a as d}from"./chunk-73EE2EXW.js";import{a as e,b as o,m as t}from"./chunk-HBP5N4FR.js";t();d();import r from"react";import{render as p}from"@testing-library/react";import{createMemoryHistory as y}from"history";var x=({children:n,route:m="/"})=>{let s=y({initialEntries:[m]});return o(e({},p(r.createElement(i,{environment:"devnet"},r.createElement(r.Fragment,null,n)))),{history:s})};export{x as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZFHLGJH7.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as p}from"./chunk-GZXS3DIF.js";import{a as L}from"./chunk-TNJQUMM7.js";import{h as c}from"./chunk-JXJ2BELR.js";import{a as r,b as s,c as I}from"./chunk-IOL7ECDB.js";import{a as f,b as E}from"./chunk-XB3SZG7C.js";import{a as g,f as y}from"./chunk-WZZ2ZH2A.js";import{n as a,v as A}from"./chunk-7HS4YGIP.js";import{m as d}from"./chunk-HBP5N4FR.js";d();A();import w from"lodash.throttle";L();I();E();y();var h=[a],i=!1,x=w(()=>{s(r())},5e3),K=n=>e=>t=>{var m;if(h.includes(t.type))return e(t);let o=n.getState(),l=f.local.getItem(g.loginExpiresAt);if(!p((m=o==null?void 0:o.loginInfo)==null?void 0:m.loginMethod,o==null?void 0:o.account.address))return e(t);if(l==null)return s(r());let u=Date.now();return l-u<0&&!i?setTimeout(()=>{i=!0,n.dispatch(c())},1e3):(i&&(i=!1),x()),e(t)};export{K as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZG4J5MFA.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-NYNMYCKP.js";import{a as d}from"./chunk-73EE2EXW.js";import{m as a}from"./chunk-HBP5N4FR.js";a();d();var b=()=>{var t,e;let{hasPendingTransactions:i,pendingTransactions:s}=o();if(!i)return"";let c=Object.keys(s).sort().reverse();for(let h of c){let n=(e=(t=s[h].transactions)==null?void 0:t.filter(r=>r.status==="pending"))!=null?e:[];if(n.length>0)return n[n.length-1].hash}return""};export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZNSO6EOT.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as M}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as M}from"./chunk-P3G4NKE2.js";import{a as k}from"./chunk-YS55XYVN.js";import{a as w}from"./chunk-LDKTALX6.js";import{a as C}from"./chunk-NABUXAGW.js";import{a as W}from"./chunk-6H3CY6VZ.js";import{a as R}from"./chunk-FE7LNSA6.js";import{a as y}from"./chunk-PNPPUJK6.js";import{a as b}from"./chunk-HKO6CNLR.js";import{c as G,d as s}from"./chunk-SPNARIPF.js";import{a as A}from"./chunk-XBRTGIYZ.js";import{a as D}from"./chunk-MRZKMABV.js";import{h as v,k as h}from"./chunk-UZLIRC6Y.js";import{a as en}from"./chunk-TNJQUMM7.js";import{b as m,c as nn}from"./chunk-XRCJ5PNU.js";import{i as f,k as r}from"./chunk-4XQMHQX5.js";import{a as $}from"./chunk-73EE2EXW.js";import{a as g,b as T,j as S,m as p}from"./chunk-HBP5N4FR.js";p();import{useState as an}from"react";en();$();nn();function kn(L){let{onCancel:E,verifyReceiverScam:x=!0,hasGuardianScreen:c}=L,{transactionsToSign:P,hasTransactions:F}=k(),U=s(v),I=s(h),{account:N}=b(),{address:q,isGuarded:d,activeGuardianAddress:B}=N,{provider:V}=y(),t=G(),j=C(),[o,z]=an(),{transactions:H,sessionId:e,callbackRoute:i,customTransactionInformation:a}=P||{};function J(n){e&&t(r({sessionId:e,status:"cancelled"})),t(f(n))}let K=i!=null&&(window==null?void 0:window.location.pathname.includes(i)),u=!(a!=null&&a.skipGuardian);function O(n){if(!w(n))return;let{needs2FaSigning:Y,sendTransactionsToGuardian:Z}=W({transactions:n,sessionId:e,callbackRoute:i,hasGuardianScreen:c,isGuarded:d&&u,walletAddress:U.walletAddress});if(Y)return z(!0),Z();e&&(t(r({sessionId:e,status:"signed",transactions:n.map(_=>D(_))})),i!=null&&(a==null?void 0:a.redirectAfterSign)&&!K&&m(i))}function Q(){E(),j(e)}function X(n){return S(this,null,function*(){return yield V.signTransaction(n)})}let l=M({address:q,egldLabel:I,activeGuardianAddress:d&&u?B:void 0,transactionsToSign:F?H:[],onGetScamAddressData:x?A:null,isLedger:R("ledger"),hasGuardianScreen:c,onCancel:Q,onSignTransaction:X,onTransactionsSignError:J,onTransactionsSignSuccess:O});return T(g({},l),{callbackRoute:i,waitingForDevice:o!=null?o:l.waitingForDevice})}export{kn as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZO3V6VFJ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as r}from"./chunk-NQKCNVSW.js";import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as r}from"./chunk-NQKCNVSW.js";import{a as p}from"./chunk-QGC4MYV3.js";import{a as l}from"./chunk-35LP55H2.js";import{a as d}from"./chunk-F4FOQ2AU.js";import{a}from"./chunk-I3XJSHEL.js";import{a as n}from"./chunk-732VHYF5.js";import{b as i}from"./chunk-H2XK726N.js";import{a as m}from"./chunk-XIPI66ZD.js";import{o as h}from"./chunk-NDBCUTWV.js";import{m as o}from"./chunk-HBP5N4FR.js";o();h();import e from"react";import{faAngleDown as c}from"@fortawesome/free-solid-svg-icons";import{FontAwesomeIcon as v}from"@fortawesome/react-fontawesome";import x from"classnames";var _=({className:T,transaction:s})=>{let f=m(s),N=s.status==="reward-reverted";return e.createElement(d,{title:"To",className:x(r.to,T)},e.createElement("div",{className:r.wrapper,"data-testid":"transactionTo"},e.createElement("div",{className:r.content},i(s.receiver)&&e.createElement("span",{className:r.contract,"data-testid":"transactionToContract"},"Contract"),e.createElement(a,{page:String(s.links.receiverLink),"data-testid":"transactionToExplorerLink",className:r.explorer},e.createElement(l,{address:s.receiver,assets:s.receiverAssets,"data-testid":"transactionToAccount"})),e.createElement(n,{className:r.copy,text:s.receiver}),!isNaN(s.receiverShard)&&e.createElement(a,{page:String(s.links.receiverShardLink),className:r.shard},"(",e.createElement(p,{shard:s.receiverShard,"data-testid":"transactionToShard"}),")")),f.map((g,t)=>e.createElement("div",{"data-testid":`message_${t}`,key:`tx-message-${t}`,className:r.message},e.createElement(v,{icon:c,className:r.icon,style:{marginTop:"2px"},transform:{rotate:45}}),e.createElement("small",{className:r.text},g))),N&&e.createElement("div",{className:r.message},e.createElement(v,{icon:c,className:r.icon,style:{marginTop:"2px"},transform:{rotate:45}}),e.createElement("small",{className:r.text},"Block Reverted"))))};export{_ as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZQQUQ5OB.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";var dr=Object.create;var b=Object.defineProperty;var Cr=Object.getOwnPropertyDescriptor;var Sr=Object.getOwnPropertyNames;var Lr=Object.getPrototypeOf,Rr=Object.prototype.hasOwnProperty;var _r=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Mr=(e,r)=>{for(var t in r)b(e,t,{get:r[t],enumerable:!0})},tr=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Sr(r))!Rr.call(e,n)&&n!==t&&b(e,n,{get:()=>r[n],enumerable:!(i=Cr(r,n))||i.enumerable});return e};var er=(e,r,t)=>(t=e!=null?dr(Lr(e)):{},tr(r||!e||!e.__esModule?b(t,"default",{value:e,enumerable:!0}):t,e)),kr=e=>tr(b({},"__esModule",{value:!0}),e);var or=N(W=>{"use strict";F();W.byteLength=br;W.toByteArray=Wr;W.fromByteArray=Hr;var g=[],m=[],Dr=typeof Uint8Array!="undefined"?Uint8Array:Array,G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(d=0,ir=G.length;d<ir;++d)g[d]=G[d],m[G.charCodeAt(d)]=d;var d,ir;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function nr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]}function br(e){var r=nr(e),t=r[0],i=r[1];return(t+i)*3/4-i}function Nr(e,r,t){return(r+t)*3/4-t}function Wr(e){var r,t=nr(e),i=t[0],n=t[1],o=new Dr(Nr(e,i,n)),u=0,h=n>0?i-4:i,f;for(f=0;f<h;f+=4)r=m[e.charCodeAt(f)]<<18|m[e.charCodeAt(f+1)]<<12|m[e.charCodeAt(f+2)]<<6|m[e.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return n===2&&(r=m[e.charCodeAt(f)]<<2|m[e.charCodeAt(f+1)]>>4,o[u++]=r&255),n===1&&(r=m[e.charCodeAt(f)]<<10|m[e.charCodeAt(f+1)]<<4|m[e.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Yr(e){return g[e>>18&63]+g[e>>12&63]+g[e>>6&63]+g[e&63]}function qr(e,r,t){for(var i,n=[],o=r;o<t;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(Yr(i));return n.join("")}function Hr(e){for(var r,t=e.length,i=t%3,n=[],o=16383,u=0,h=t-i;u<h;u+=o)n.push(qr(e,u,u+o>h?h:u+o));return i===1?(r=e[t-1],n.push(g[r>>2]+g[r<<4&63]+"==")):i===2&&(r=(e[t-2]<<8)+e[t-1],n.push(g[r>>10]+g[r>>4&63]+g[r<<2&63]+"=")),n.join("")}});var ur=N(K=>{F();K.read=function(e,r,t,i,n){var o,u,h=n*8-i-1,f=(1<<h)-1,c=f>>1,l=-7,p=t?n-1:0,E=t?-1:1,x=e[r+p];for(p+=E,o=x&(1<<-l)-1,x>>=-l,l+=h;l>0;o=o*256+e[r+p],p+=E,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=i;l>0;u=u*256+e[r+p],p+=E,l-=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)};K.write=function(e,r,t,i,n,o){var u,h,f,c=o*8-n-1,l=(1<<c)-1,p=l>>1,E=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=i?0:o-1,L=i?1:-1,Ir=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=l):(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>=l?(h=0,u=l):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;e[t+x]=h&255,x+=L,h/=256,n-=8);for(u=u<<n|h,c+=n;c>0;e[t+x]=u&255,x+=L,u/=256,c-=8);e[t+x-L]|=Ir*128}});var Fr=N(_=>{"use strict";F();var z=or(),R=ur(),ar=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_.Buffer=a;_.SlowBuffer=Jr;_.INSPECT_MAX_BYTES=50;var q=2147483647;_.kMaxLength=q;a.TYPED_ARRAY_SUPPORT=Vr();!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 Vr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){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(e){if(e>q)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Z(e)}return pr(e,r,t)}a.poolSize=8192;function pr(e,r,t){if(typeof e=="string")return Gr(e,r);if(ArrayBuffer.isView(e))return Kr(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(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return Q(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return a.from(i,r,t);var n=zr(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return pr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function cr(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 Xr(e,r,t){return cr(e),e<=0?U(e):r!==void 0?typeof t=="string"?U(e).fill(r,t):U(e).fill(r):U(e)}a.alloc=function(e,r,t){return Xr(e,r,t)};function Z(e){return cr(e),U(e<0?0:$(e)|0)}a.allocUnsafe=function(e){return Z(e)};a.allocUnsafeSlow=function(e){return Z(e)};function Gr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=lr(e,r)|0,i=U(t),n=i.write(e,r);return n!==t&&(i=i.slice(0,n)),i}function J(e){for(var r=e.length<0?0:$(e.length)|0,t=U(r),i=0;i<r;i+=1)t[i]=e[i]&255;return t}function Kr(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return Q(r.buffer,r.byteOffset,r.byteLength)}return J(e)}function Q(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&t===void 0?i=new Uint8Array(e):t===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,t),Object.setPrototypeOf(i,a.prototype),i}function zr(e){if(a.isBuffer(e)){var r=$(e.length)|0,t=U(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||P(e.length)?U(0):J(e);if(e.type==="Buffer"&&Array.isArray(e.data))return J(e.data)}function $(e){if(e>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return e|0}function Jr(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var i=r.length,n=t.length,o=0,u=Math.min(i,n);o<u;++o)if(r[o]!==t[o]){i=r[o],n=t[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,t){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(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;var n=a.allocUnsafe(t),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(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(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 t=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Er(e).length;default:if(n)return i?-1:O(e).length;r=(""+r).toLowerCase(),n=!0}}a.byteLength=lr;function Qr(e,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return nt(this,r,t);case"utf8":case"utf-8":return wr(this,r,t);case"ascii":return et(this,r,t);case"latin1":case"binary":return it(this,r,t);case"base64":return rt(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ot(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function C(e,r,t){var i=e[r];e[r]=e[t],e[t]=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 t=0;t<r;t+=2)C(this,t,t+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 t=0;t<r;t+=4)C(this,t,t+3),C(this,t+1,t+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 t=0;t<r;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?wr(this,0,r):Qr.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="",t=_.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};ar&&(a.prototype[ar]=a.prototype.inspect);a.prototype.compare=function(r,t,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(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var u=o-n,h=i-t,f=Math.min(u,h),c=this.slice(n,o),l=r.slice(t,i),p=0;p<f;++p)if(c[p]!==l[p]){u=c[p],h=l[p];break}return u<h?-1:h<u?1:0};function sr(e,r,t,i,n){if(e.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,P(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),a.isBuffer(r))return r.length===0?-1:hr(e,r,t,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):hr(e,[r],t,i,n);throw new TypeError("val must be string, number or Buffer")}function hr(e,r,t,i,n){var o=1,u=e.length,h=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,h/=2,t/=2}function f(x,L){return o===1?x[L]:x.readUInt16BE(L*o)}var c;if(n){var l=-1;for(c=t;c<u;c++)if(f(e,c)===f(r,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===h)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(t+h>u&&(t=u-h),c=t;c>=0;c--){for(var p=!0,E=0;E<h;E++)if(f(e,c+E)!==f(r,E)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};a.prototype.indexOf=function(r,t,i){return sr(this,r,t,i,!0)};a.prototype.lastIndexOf=function(r,t,i){return sr(this,r,t,i,!1)};function Or(e,r,t,i){t=Number(t)||0;var n=e.length-t;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(P(h))return u;e[t+u]=h}return u}function Zr(e,r,t,i){return H(O(r,e.length-t),e,t,i)}function $r(e,r,t,i){return H(ht(r),e,t,i)}function Pr(e,r,t,i){return H(Er(r),e,t,i)}function jr(e,r,t,i){return H(ft(r,e.length-t),e,t,i)}a.prototype.write=function(r,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>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-t;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return Or(this,r,t,i);case"utf8":case"utf-8":return Zr(this,r,t,i);case"ascii":case"latin1":case"binary":return $r(this,r,t,i);case"base64":return Pr(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jr(this,r,t,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 rt(e,r,t){return r===0&&t===e.length?z.fromByteArray(e):z.fromByteArray(e.slice(r,t))}function wr(e,r,t){t=Math.min(e.length,t);for(var i=[],n=r;n<t;){var o=e[n],u=null,h=o>239?4:o>223?3:o>191?2:1;if(n+h<=t){var f,c,l,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=e[n+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=e[n+1],c=e[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=e[n+1],c=e[n+2],l=e[n+3],(f&192)===128&&(c&192)===128&&(l&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|l&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 tt(i)}var fr=4096;function tt(e){var r=e.length;if(r<=fr)return String.fromCharCode.apply(String,e);for(var t="",i=0;i<r;)t+=String.fromCharCode.apply(String,e.slice(i,i+=fr));return t}function et(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]&127);return i}function it(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]);return i}function nt(e,r,t){var i=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);for(var n="",o=r;o<t;++o)n+=pt[e[o]];return n}function ot(e,r,t){for(var i=e.slice(r,t),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,t){var i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,a.prototype),n};function w(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return n};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r+--t],o=1;t>0&&(o*=256);)n+=this[r+--t]*o;return n};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||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,t){return r=r>>>0,t||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n};a.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=t,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*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!1,52,8)};function y(e,r,t,i,n,o){if(!a.isBuffer(e))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(t+i>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=1,h=0;for(this[t]=r&255;++h<i&&(u*=256);)this[t+h]=r/u&255;return t+i};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=i-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+i};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=0,h=1,f=0;for(this[t]=r&255;++u<i&&(h*=256);)r<0&&f===0&&this[t+u-1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=i-1,h=1,f=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&f===0&&this[t+u+1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function yr(e,r,t,i,n,o){if(t+i>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function xr(e,r,t,i,n){return r=+r,t=t>>>0,n||yr(e,r,t,4,34028234663852886e22,-34028234663852886e22),R.write(e,r,t,i,23,4),t+4}a.prototype.writeFloatLE=function(r,t,i){return xr(this,r,t,!0,i)};a.prototype.writeFloatBE=function(r,t,i){return xr(this,r,t,!1,i)};function mr(e,r,t,i,n){return r=+r,t=t>>>0,n||yr(e,r,t,8,17976931348623157e292,-17976931348623157e292),R.write(e,r,t,i,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,i){return mr(this,r,t,!0,i)};a.prototype.writeDoubleBE=function(r,t,i){return mr(this,r,t,!1,i)};a.prototype.copy=function(r,t,i,n){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(t<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-t<n-i&&(n=r.length-t+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),t),o};a.prototype.fill=function(r,t,i,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=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(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;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-t;++u)this[u+t]=h[u%f]}return this};var ut=/[^+/0-9A-Za-z-_]/g;function at(e){if(e=e.split("=")[0],e=e.trim().replace(ut,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function O(e,r){r=r||1/0;for(var t,i=e.length,n=null,o=[],u=0;u<i;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!n){if(t>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=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ht(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function ft(e,r){for(var t,i,n,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),i=t>>8,n=t%256,o.push(n),o.push(i);return o}function Er(e){return z.toByteArray(at(e))}function H(e,r,t,i){for(var n=0;n<i&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function P(e){return e!==e}var pt=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var i=t*16,n=0;n<16;++n)r[i+n]=e[t]+e[n];return r}()});var Ur=N((Ft,vr)=>{F();var s=vr.exports={},A,v;function j(){throw new Error("setTimeout has not been defined")}function rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=j}catch(e){A=j}try{typeof clearTimeout=="function"?v=clearTimeout:v=rr}catch(e){v=rr}})();function gr(e){if(A===setTimeout)return setTimeout(e,0);if((A===j||!A)&&setTimeout)return A=setTimeout,setTimeout(e,0);try{return A(e,0)}catch(r){try{return A.call(null,e,0)}catch(t){return A.call(this,e,0)}}}function ct(e){if(v===clearTimeout)return clearTimeout(e);if((v===rr||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var T=[],M=!1,S,V=-1;function lt(){!M||!S||(M=!1,S.length?T=S.concat(T):V=-1,T.length&&Br())}function Br(){if(!M){var e=gr(lt);M=!0;for(var r=T.length;r;){for(S=T,T=[];++V<r;)S&&S[V].run();V=-1,r=T.length}S=null,M=!1,ct(e)}}s.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];T.push(new Ar(e,r)),T.length===1&&!M&&gr(Br)};function Ar(e,r){this.fun=e,this.array=r}Ar.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function I(){}s.on=I;s.addListener=I;s.once=I;s.off=I;s.removeListener=I;s.removeAllListeners=I;s.emit=I;s.prependListener=I;s.prependOnceListener=I;s.listeners=function(e){return[]};s.binding=function(e){throw new Error("process.binding is not supported")};s.cwd=function(){return"/"};s.chdir=function(e){throw new Error("process.chdir is not supported")};s.umask=function(){return 0}});var k,D,gt,F=_r(()=>{k=er(Fr()),D=er(Ur()),gt=function(e){function r(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var wt={};Mr(wt,{getVerifier:()=>st});module.exports=kr(wt);F();var Tr=require("@multiversx/sdk-core/out"),X=require("@multiversx/sdk-wallet"),st=e=>{let r=new X.UserPublicKey(Tr.Address.fromString(e).pubkey());return new X.UserVerifier(r)};0&&(module.exports={getVerifier});
|
|
2
|
+
/*!
|
|
3
|
+
* The buffer module from node.js, for the browser.
|
|
4
|
+
*
|
|
5
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
6
|
+
* @license MIT
|
|
7
|
+
*/
|
|
8
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9
|
+
//# sourceMappingURL=getVerifier.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Oi=Object.create;var ke=Object.defineProperty,Fi=Object.defineProperties,Ui=Object.getOwnPropertyDescriptor,Bi=Object.getOwnPropertyDescriptors,Vi=Object.getOwnPropertyNames,qe=Object.getOwnPropertySymbols,$i=Object.getPrototypeOf,Wt=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable;var jr=(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)&&jr(e,r,t[r]);if(qe)for(var r of qe(t))zr.call(t,r)&&jr(e,r,t[r]);return e},w=(e,t)=>Fi(e,Bi(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&&zr.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})},Kr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Vi(t))!Wt.call(e,i)&&i!==r&&ke(e,i,{get:()=>t[i],enumerable:!(o=Ui(t,i))||o.enumerable});return e};var b=(e,t,r)=>(r=e!=null?Oi($i(e)):{},Kr(t||!e||!e.__esModule?ke(r,"default",{value:e,enumerable:!0}):r,e)),Le=e=>Kr(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 Zr=ze(Ke=>{"use strict";n();Ke.byteLength=Wi;Ke.toByteArray=qi;Ke.fromByteArray=Ki;var H=[],V=[],Gi=typeof Uint8Array!="undefined"?Uint8Array:Array,Ht="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(le=0,Xr=Ht.length;le<Xr;++le)H[le]=Ht[le],V[Ht.charCodeAt(le)]=le;var le,Xr;V["-".charCodeAt(0)]=62;V["_".charCodeAt(0)]=63;function Yr(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 Wi(e){var t=Yr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Hi(e,t,r){return(t+r)*3/4-r}function qi(e){var t,r=Yr(e),o=r[0],i=r[1],l=new Gi(Hi(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 ji(e){return H[e>>18&63]+H[e>>12&63]+H[e>>6&63]+H[e&63]}function zi(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(ji(o));return i.join("")}function Ki(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(zi(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 Jr=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 dn=ze(ye=>{"use strict";n();var jt=Zr(),Te=Jr(),Qr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ye.Buffer=u;ye.SlowBuffer=es;ye.INSPECT_MAX_BYTES=50;var Xe=2147483647;ye.kMaxLength=Xe;u.TYPED_ARRAY_SUPPORT=Xi();!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 Xi(){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 rn(e,t,r)}u.poolSize=8192;function rn(e,t,r){if(typeof e=="string")return Zi(e,t);if(ArrayBuffer.isView(e))return Ji(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=Qi(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 rn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function nn(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 Yi(e,t,r){return nn(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 Yi(e,t,r)};function Yt(e){return nn(e),Q(e<0?0:Zt(e)|0)}u.allocUnsafe=function(e){return Yt(e)};u.allocUnsafeSlow=function(e){return Yt(e)};function Zi(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=on(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 Ji(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 Qi(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 es(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 on(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 un(e).length;default:if(i)return o?-1:Xt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=on;function ts(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return us(this,t,r);case"utf8":case"utf-8":return an(this,t,r);case"ascii":return ls(this,t,r);case"latin1":case"binary":return ps(this,t,r);case"base64":return as(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ds(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?an(this,0,t):ts.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=ye.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Qr&&(u.prototype[Qr]=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 sn(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:en(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):en(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function en(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 sn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return sn(this,t,r,o,!1)};function rs(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 ns(e,t,r,o){return Ye(Xt(t,e.length-r),e,r,o)}function os(e,t,r,o){return Ye(fs(t),e,r,o)}function is(e,t,r,o){return Ye(un(t),e,r,o)}function ss(e,t,r,o){return Ye(Ts(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 rs(this,t,r,o);case"utf8":case"utf-8":return ns(this,t,r,o);case"ascii":case"latin1":case"binary":return os(this,t,r,o);case"base64":return is(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ss(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function as(e,t,r){return t===0&&r===e.length?jt.fromByteArray(e):jt.fromByteArray(e.slice(t,r))}function an(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 cs(o)}var tn=4096;function cs(e){var t=e.length;if(t<=tn)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=tn));return r}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]&127);return o}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]);return o}function us(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+=ys[e[l]];return i}function ds(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 cn(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 ln(e,t,r,o,i){return t=+t,r=r>>>0,i||cn(e,t,r,4,34028234663852886e22,-34028234663852886e22),Te.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return ln(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return ln(this,t,r,!1,o)};function pn(e,t,r,o,i){return t=+t,r=r>>>0,i||cn(e,t,r,8,17976931348623157e292,-17976931348623157e292),Te.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return pn(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return pn(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 ms=/[^+/0-9A-Za-z-_]/g;function gs(e){if(e=e.split("=")[0],e=e.trim().replace(ms,""),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 fs(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Ts(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 un(e){return jt.toByteArray(gs(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 ys=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 yn=ze((bc,Tn)=>{n();var E=Tn.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 mn(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 hs(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 xs(){!he||!ue||(he=!1,ue.length?ee=ue.concat(ee):Ze=-1,ee.length&&gn())}function gn(){if(!he){var e=mn(xs);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,hs(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 fn(e,t)),ee.length===1&&!he&&mn(gn)};function fn(e,t){this.fun=e,this.array=t}fn.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,vc,n=f(()=>{s=b(dn()),a=b(yn()),vc=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,hn,xn=f(()=>{"use strict";n();tr="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 rr,Ln,Hc,Dn,qc,Nn,jc,zc,Kc,Rn=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:Ln,egldLabel:Hc}=rr["devnet"],{chainId:Dn,egldLabel:qc}=rr["testnet"],{chainId:Nn,egldLabel:jc}=rr["mainnet"],zc={["devnet"]:Ln,["testnet"]:Dn,["mainnet"]:Nn},Kc={[Ln]:"devnet",[Dn]:"testnet",[Nn]:"mainnet"}});var nr=f(()=>{"use strict";n()});var Pn=f(()=>{"use strict";n()});var Cn,or=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 ir,sr,Fn,Qe,Un,xe,I=f(()=>{"use strict";n();xn();Rn();nr();Pn();or();Mn();_n();On();ir=5e4,sr=1e9,Fn=1,Qe="logout",Un="login",xe="0"});var et,ar=f(()=>{"use strict";n();et=()=>Date.now()/1e3});var Bn=f(()=>{"use strict";n()});var Vn=f(()=>{"use strict";n()});var cr=f(()=>{"use strict";n();ar();Bn();Vn()});var pr={};ce(pr,{getItem:()=>ws,localStorageKeys:()=>ie,removeItem:()=>Is,setItem:()=>Ss});var ie,lr,Ss,ws,Is,Se=f(()=>{"use strict";n();cr();ie={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},lr=typeof localStorage!="undefined",Ss=({key:e,data:t,expires:r})=>{!lr||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},ws=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},Is=e=>{!lr||localStorage.removeItem(String(e))}});var ur={};ce(ur,{clear:()=>Hn,getItem:()=>Gn,removeItem:()=>Wn,setItem:()=>$n,storage:()=>bs});var $n,Gn,Wn,Hn,bs,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(),bs={setItem:$n,getItem:Gn,removeItem:Wn,clear:Hn}});var de,we=f(()=>{"use strict";n();Se();qn();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)(Un,e=>({payload:e}))});var gr,jn,zn,tt,mr,Kn,fr,Ll,Tr,Dl,Nl,Rl,Pl,Cl,Ml,_l,Ol,rt,nt=f(()=>{"use strict";n();gr=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},mr={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":tt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Kn=(0,jn.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(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:mr.accounts,t.publicKey=d})}}),{setAccount:fr,setAddress:Ll,setAccountNonce:Tr,setAccountShard:Dl,setLedgerAccount:Nl,updateLedgerAccount:Rl,setWalletConnectAccount:Pl,setIsAccountLoading:Cl,setAccountLoadingError:Ml,setWebsocketEvent:_l,setWebsocketBatchEvent:Ol}=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 yr=f(()=>{"use strict";n();we();Se()});var Yn,Xn,Zn,jl,zl,Kl,Xl,Yl,Zl,Jn,Jl,ot,it=f(()=>{"use strict";n();Yn=require("@reduxjs/toolkit");yr();$();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:jl,setWalletConnectLogin:zl,setLedgerLogin:Kl,setTokenLogin:Xl,setTokenLoginSignature:Yl,setWalletLogin:Zl,invalidateLoginSession:Jn,setLogoutRoute:Jl}=Zn.actions,ot=Zn.reducer});var eo,Qn,to,rp,np,op,ip,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:rp,setNotificationModal:np,clearTxSubmittedModal:op,clearNotificationModal:ip}=to.actions,st=to.reducer});var ct=f(()=>{"use strict";n()});var ro=f(()=>{"use strict";n();ct()});function hr(e){return e[Math.floor(Math.random()*e.length)]}var no=f(()=>{"use strict";n()});var oo=f(()=>{"use strict";n();nr()});var io=f(()=>{"use strict";n();ro();no();oo()});var so,ao,xr,As,co,Sp,wp,lt,pt=f(()=>{"use strict";n();so=require("@reduxjs/toolkit"),ao=b(require("lodash.omit"));io();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"},As={network:xr,chainID:"-1"},co=(0,so.createSlice)({name:"appConfig",initialState:As,reducers:{initializeNetworkConfig:(e,t)=>{let r=hr(t.payload.walletConnectBridgeAddresses),o=hr(t.payload.walletConnectV2RelayAddresses),i=(0,ao.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=w(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Sp,setChainID:wp}=co.actions,lt=co.reducer});var lo,Sr,po,Ce,uo,wr,ut,dt=f(()=>{"use strict";n();lo=require("@reduxjs/toolkit");M();U();Sr={isSigning:!1,signedSessions:{}},po=(0,lo.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:uo,setSignSessionState:wr}=po.actions,ut=po.reducer});var go,fo,mo,To,ks,Ls,Cp,Mp,_p,Op,mt,gt=f(()=>{"use strict";n();go=require("@reduxjs/toolkit"),fo=require("redux-persist");or();M();ar();U();mo={customToasts:[],transactionToasts:[],failTransactionToast:null},To=(0,go.createSlice)({name:"toastsSlice",initialState:mo,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,()=>mo),e.addCase(fo.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:ks,removeCustomToast:Ls,addTransactionToast:Cp,removeTransactionToast:Mp,addFailTransactionToast:_p,removeFailTransactionToast:Op}=To.actions,mt=To.reducer});var yo,br,vr,Ar,Ds,Ir,ho,Vp,$p,Gp,ft,Tt=f(()=>{"use strict";n();yo=require("@reduxjs/toolkit");U();br="Transaction failed",vr="Transaction successful",Ar="Processing transaction",Ds="Transaction submitted",Ir={},ho=(0,yo.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)||Ds,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:Vp,setTransactionsDisplayInfo:$p,clearTransactionsInfoForSessionId:Gp}=ho.actions,ft=ho.reducer});function xo(e){return e!=null&&(Vs(e)||qs(e))}function yt(e){return e!=null&&($s(e)||js(e))}function ht(e){return e!=null&&(Gs(e)||zs(e))}function So(e){return e!=null&&(Ws(e)||Ks(e))}function wo(e){return e!=null&&Hs(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)}function Ks(e){return e!=null&&Bs.includes(e)}var Rs,Ps,Cs,Ms,_s,Os,Fs,Us,Bs,kr=f(()=>{"use strict";n();$();Rs=["sent"],Ps=["success"],Cs=["fail","cancelled","timedOut"],Ms=["invalid"],_s=["timedOut"],Os=["pending"],Fs=["success"],Us=["fail","invalid"],Bs=["not executed"]});var Io,bo,Me,Xs,vo,Zp,Jp,Qp,eu,tu,ru,nu,ou,iu,su,xt,St=f(()=>{"use strict";n();Io=require("@reduxjs/toolkit"),bo=require("redux-persist");$();kr();U();Me={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Xs={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},vo=(0,Io.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])||Xs;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=>So(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(bo.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:Zp,updateSignedTransactions:Jp,setTransactionsToSign:Qp,clearAllTransactionsToSign:eu,clearAllSignedTransactions:tu,clearSignedTransaction:ru,clearTransactionToSign:nu,setSignTransactionsError:ou,setSignTransactionsCancelMessage:iu,moveTransactionsToSignedState:su}=vo.actions,xt=vo.reducer});var Ao,Lr,Eo,pu,uu,du,mu,wt,It=f(()=>{"use strict";n();Ao=require("@reduxjs/toolkit");U();Lr={},Eo=(0,Ao.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:pu,updateBatchTransactions:uu,clearBatchTransactions:du,clearAllBatchTransactions:mu}=Eo.actions,wt=Eo.reducer});var Lo,ko,Do,yu,No,Dr=f(()=>{"use strict";n();Lo=require("@reduxjs/toolkit");U();ko={},Do=(0,Lo.createSlice)({name:"dappConfigSlice",initialState:ko,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,()=>ko)}}),{setDappConfig:yu}=Do.actions,No=Do.reducer});var X=f(()=>{"use strict";n();nt();it();at();pt();dt();gt();Tt();St();It();Dr()});var Nr=f(()=>{"use strict";n()});var _o,Mo,Oo,Wu,Hu,qu,ju,zu,Ku,Fo,Uo=f(()=>{"use strict";n();_o=require("@reduxjs/toolkit");U();Mo={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Oo=(0,_o.createSlice)({name:"dappModalsSlice",initialState:Mo,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,()=>Mo)}}),{setDappModalVisibility:Wu,setDappModalHeaderVisibility:Hu,setDappModalFooterVisibility:qu,setDappModalHeaderText:ju,setDappModalFooterText:zu,setDappModalConfig:Ku}=Oo.actions,Fo=Oo.reducer});var Bo,Qs,ea,me,kt=f(()=>{"use strict";n();Bo=require("@reduxjs/toolkit");Nr();nt();It();Dr();Uo();it();at();pt();dt();gt();Tt();St();Qs={["account"]:rt,["dappModal"]:Fo,["dappConfig"]:No,["loginInfo"]:ot,["modals"]:st,["networkConfig"]:lt,["signedMessageInfo"]:ut,["toasts"]:mt,["transactionsInfo"]:ft,["transactions"]:xt,["batchTransactions"]:wt},ea=(e={})=>(0,Bo.combineReducers)(x(x({},Qs),e)),me=ea});var Wo={};ce(Wo,{default:()=>Ta,sessionStorageReducers:()=>Rr});function re(e,t=[]){return{key:e,version:1,storage:$o.default,blacklist:t}}var F,Vo,$o,ta,_e,ra,na,oa,ia,sa,aa,ca,la,pa,ua,Go,da,Rr,ma,ga,fa,Ta,Ho=f(()=>{"use strict";n();F=require("redux-persist"),Vo=b(require("redux-persist/lib/storage")),$o=b(require("redux-persist/lib/storage/session"));kt();X();nt();It();it();at();pt();dt();gt();Tt();St();Nr();ta={persistReducersStorageType:"localStorage"},_e={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},ra=re(_e["account"]),na=re(_e["loginInfo"]),oa=re(_e["modals"]),ia=re(_e["networkConfig"]),sa={2:e=>w(x({},e),{networkConfig:xr})};aa=re("sdk-dapp-transactionsInfo"),ca=re("sdk-dapp-transactions",["transactionsToSign"]),la=re("sdk-dapp-batchTransactions",["batchTransactions"]),pa=re("sdk-dapp-toasts"),ua=re("sdk-dapp-signedMessageInfo"),Go={key:"sdk-dapp-store",version:2,storage:Vo.default,whitelist:Object.keys(_e),migrate:(0,F.createMigrate)(sa,{debug:!1})},da=w(x({},Go),{whitelist:[]}),Rr={["toasts"]:(0,F.persistReducer)(pa,mt),["transactions"]:(0,F.persistReducer)(ca,xt),["transactionsInfo"]:(0,F.persistReducer)(aa,ft),["batchTransactions"]:(0,F.persistReducer)(la,wt),["signedMessageInfo"]:(0,F.persistReducer)(ua,ut)},ma=w(x({},Rr),{["account"]:(0,F.persistReducer)(ra,rt),["loginInfo"]:(0,F.persistReducer)(na,ot),["modals"]:(0,F.persistReducer)(oa,st),["networkConfig"]:(0,F.persistReducer)(ia,lt)}),ga=ta.persistReducersStorageType==="localStorage",fa=ga?(0,F.persistReducer)(Go,me(Rr)):(0,F.persistReducer)(da,me(ma)),Ta=fa});var qo={};ce(qo,{default:()=>ya});var ya,jo=f(()=>{"use strict";n();kt();ya=me()});var zo={};ce(zo,{default:()=>xa});var G,ha,xa,Ko=f(()=>{"use strict";n();G=require("redux-persist"),ha=[G.FLUSH,G.REHYDRATE,G.PAUSE,G.PERSIST,G.PURGE,G.REGISTER],xa=ha});var Zo={};ce(Zo,{default:()=>Yo});function Yo(e){return(0,Xo.persistStore)(e)}var Xo,Jo=f(()=>{"use strict";n();Xo=require("redux-persist")});var hc={};ce(hc,{useGetLastSignedMessageSession:()=>lc,useGetSignMessageInfoStatus:()=>Wr,useGetSignMessageSession:()=>pc,useSignMessage:()=>Tc,verifyMessage:()=>yc});module.exports=Le(hc);n();n();n();var oi=require("react"),be=require("react-redux");n();var Pr=require("@reduxjs/toolkit"),ri=require("react-redux/lib/utils/Subscription");X();n();var Po=b(require("lodash.throttle"));I();n();var Ro=b(require("lodash.isequal")),bt=require("reselect");M();var g=(0,bt.createSelectorCreator)(bt.defaultMemoize,Ro.default),vt=(e,t)=>e!=""&&Boolean(t);X();yr();we();Se();var Ys=[Qe],At=!1,Zs=(0,Po.default)(()=>{Pe(Re())},5e3),Co=e=>t=>r=>{var m;if(Ys.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),Zs()),t(r)};n();n();function Et(){return typeof sessionStorage!="undefined"}var Qo=Et()?(Ho(),Le(Wo)).default:(jo(),Le(qo)).default,ei=Et()?(Ko(),Le(zo)).default:[],ti=Et()?(Jo(),Le(Zo)).default:e=>e;kt();var D=(0,Pr.configureStore)({reducer:Qo,middleware:e=>e({serializableCheck:{ignoredActions:[...ei,Tr.type,fr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Co)}),ni=(0,ri.createSubscription)(D),Ld=ti(D),Dd=(0,Pr.configureStore)({reducer:me});var Sa={store:D,subscription:ni},Cr=(0,oi.createContext)(Sa),Cd=(0,be.createStoreHook)(Cr),ii=(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),Fd=g(Z,Lt,(e,t)=>{let i=e,{accounts:r}=i,o=je(i,["accounts"]);return w(x({},o),{account:t})}),Ud=g(Lt,e=>e.balance),wa=g(Lt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Bd=g(Z,e=>e.shard),Vd=g(Z,e=>e.ledgerAccount),$d=g(Z,e=>e.walletConnectAccount),Gd=g(Z,e=>e.isAccountLoading),Wd=g(Z,e=>e.accountLoadingError),Hd=g(Z,e=>e.websocketEvent),qd=g(Z,e=>e.websocketBatchEvent);n();var Ia=e=>e.dappConfig,Kd=g(Ia,e=>e.shouldUseWebViewProvider);n();var se=e=>e.loginInfo,Jd=g(se,e=>e.loginMethod),Mr=g(se,Oe,(e,t)=>vt(e.loginMethod,t)),Qd=g(se,e=>e.walletConnectLogin),em=g(se,e=>e.ledgerLogin),si=g(se,e=>e.walletLogin),tm=g(se,e=>e.isLoginSessionInvalid),rm=g(se,e=>e.tokenLogin),nm=g(se,e=>e.logoutRoute);n();var ai=e=>e.modals,sm=g(ai,e=>e.txSubmittedModal),am=g(ai,e=>e.notificationModal);n();var ge=e=>e.networkConfig,ba=g(ge,e=>e.chainID),pm=g(ge,e=>e.network.walletConnectBridgeAddress),um=g(ge,e=>e.network.walletConnectV2RelayAddress),dm=g(ge,e=>e.network.walletConnectV2ProjectId),mm=g(ge,e=>e.network.walletConnectV2Options),gm=g(ge,e=>e.network.walletConnectDeepLink),Dt=g(ge,e=>e.network),va=g(Dt,e=>e.apiAddress),ci=g(Dt,e=>e.explorerAddress),Aa=g(Dt,e=>e.egldLabel);n();var ae=e=>e.signedMessageInfo,li=g(ae,e=>e.isSigning),pi=g(ae,e=>e.errorMessage),ui=g(ae,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),di=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,xm=g(_r,e=>e.customToasts),Sm=g(_r,e=>e.transactionToasts),wm=g(_r,e=>e.failTransactionToast);n();X();var mi={errorMessage:br,successMessage:vr,processingMessage:Ar},Ea=e=>e.transactionsInfo,Am=g(Ea,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||mi);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 gi=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:gi(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: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 Da=require("@multiversx/sdk-core/out");n();I();n();var Ti=require("@multiversx/sdk-core");M();n();var fi=require("@multiversx/sdk-core");function Na(e){try{let t=new fi.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)&&Na(e)}n();n();n();var Ra=require("@multiversx/sdk-core"),Pa=b(require("bignumber.js"));$();n();n();n();n();n();n();n();O();n();n();O();n();n();n();var Ba=b(require("bignumber.js"));I();n();var Ua=require("@multiversx/sdk-core"),Br=b(require("bignumber.js"));I();n();var Oa=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 Va=require("@multiversx/sdk-core");I();n();var Be=require("@multiversx/sdk-core"),Ga=require("@multiversx/sdk-network-providers");I();n();n();var $a=b(require("bignumber.js"));I();n();I();n();n();n();n();n();n();I();n();I();n();I();n();O();var Ha=["reDelegateRewards","claimRewards","unBond"],qa=["wrapEgld","unwrapEgld"],ja=["unStake"],za=["unDelegate"];n();n();n();I();n();var Ya=b(require("bignumber.js"));n();n();O();n();var Za=b(require("bignumber.js"));n();n();n();var Qa=b(require("bignumber.js"));M();n();n();n();n();$();n();var tc=require("@multiversx/sdk-web-wallet-provider");I();n();var wi=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 ec={search:Ve()?window.location.search:"",removeParams:[]},Pt=(e,t=ec)=>{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=wi.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 rc=b(require("linkifyjs"));n();I();n();var nc=b(require("bignumber.js"));n();M();n();n();$();n();$();n();n();n();O();n();O();n();var oc=b(require("bignumber.js"));I();O();n();O();n();var bi=require("react");M();n();n();O();n();n();var ic=require("@multiversx/sdk-core/out"),sc=b(require("bignumber.js"));O();n();M();n();n();M();var Hx=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var vi=require("react");M();n();var cc=require("react");O();var Zx=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];kr();var Mt=e=>e.transactions,$e=g(Mt,e=>e.signedTransactions),OS=g(Mt,e=>e.signTransactionsError),FS=g(Mt,e=>e.signTransactionsCancelMessage),_t=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),US=g($e,_t(xo)),BS=g($e,_t(yt)),VS=g($e,_t(ht)),$S=g($e,_t(wo)),GS=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)))||[]})}),WS=g($e,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});var lc=()=>Y(ui);n();var pc=e=>{let t=Y(ae);if(!!e)return t.signedSessions[e]};n();var Wr=()=>{let e=Y(li),t=Y(pi);return{isPending:e,errorMessage:t}};n();var Ee=require("react"),Ft=require("@multiversx/sdk-core");I();n();n();n();n();var Ei=require("@multiversx/sdk-extension-provider"),ki=require("@multiversx/sdk-hw-provider"),Li=require("@multiversx/sdk-opera-provider"),Di=require("@multiversx/sdk-web-wallet-provider");I();$();n();var Hr=ve,Ai=Hr;var Ge=e=>{switch(e==null?void 0:e.constructor){case Di.WalletProvider:return"wallet";case Hr:return"walletconnect";case Ai:return"walletconnectv2";case ki.HWProvider:return"ledger";case Ei.ExtensionProvider:return"extension";case Li.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)}},qr=new ve;var uc=qr;function B(){return uc||qr}var Ni=()=>{let e=B(),t=Ge(e);return{provider:e,providerType:t}};X();M();n();var Ot=require("@multiversx/sdk-core");n();$();n();n();function Ri(){let e=B();return Ge(e)}function We(e){return Ri()===e}n();var Pi=()=>{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=si(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=Pi();i!=null&&p&&l(p),o&&l(r),l("")})}var Ci=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 dc=b(require("axios"));n();n();n();n();n();n();U();M();n();X();n();X();n();cr();n();n();var gc=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 fc=b(require("axios"));var Tc=()=>{let e=ii(),[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}=Ni(),y=T==="wallet",h=Y(di),R=()=>(e(uo()),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(),Mi=encodeURIComponent(String(L)),_i=new Ft.SignableMessage({address:new Ft.Address(P),message:s.Buffer.from(S,"ascii")});return Gt.signMessage(_i,{callbackUrl:Mi})}),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 Ci(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(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 He=require("@multiversx/sdk-core/out"),Ut=require("@multiversx/sdk-wallet"),yc=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 Ui=Object.create;var ke=Object.defineProperty,Bi=Object.defineProperties,Vi=Object.getOwnPropertyDescriptor,$i=Object.getOwnPropertyDescriptors,Gi=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols,Wi=Object.getPrototypeOf,Wt=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable;var zr=(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)&&zr(e,r,t[r]);if(He)for(var r of He(t))Kr.call(t,r)&&zr(e,r,t[r]);return e},w=(e,t)=>Bi(e,$i(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&&Kr.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})},Xr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Gi(t))!Wt.call(e,i)&&i!==r&&ke(e,i,{get:()=>t[i],enumerable:!(o=Vi(t,i))||o.enumerable});return e};var b=(e,t,r)=>(r=e!=null?Ui(Wi(e)):{},Xr(t||!e||!e.__esModule?ke(r,"default",{value:e,enumerable:!0}):r,e)),Le=e=>Xr(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 Jr=je(ze=>{"use strict";n();ze.byteLength=qi;ze.toByteArray=zi;ze.fromByteArray=Yi;var H=[],V=[],Hi=typeof Uint8Array!="undefined"?Uint8Array:Array,Ht="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(le=0,Yr=Ht.length;le<Yr;++le)H[le]=Ht[le],V[Ht.charCodeAt(le)]=le;var le,Yr;V["-".charCodeAt(0)]=62;V["_".charCodeAt(0)]=63;function Zr(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function qi(e){var t=Zr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function ji(e,t,r){return(t+r)*3/4-r}function zi(e){var t,r=Zr(e),o=r[0],i=r[1],l=new Hi(ji(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 Ki(e){return H[e>>18&63]+H[e>>12&63]+H[e>>6&63]+H[e&63]}function Xi(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(Ki(o));return i.join("")}function Yi(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(Xi(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 Qr=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 mn=je(ye=>{"use strict";n();var jt=Jr(),Te=Qr(),en=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ye.Buffer=u;ye.SlowBuffer=rs;ye.INSPECT_MAX_BYTES=50;var Ke=2147483647;ye.kMaxLength=Ke;u.TYPED_ARRAY_SUPPORT=Zi();!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 Zi(){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 nn(e,t,r)}u.poolSize=8192;function nn(e,t,r){if(typeof e=="string")return Qi(e,t);if(ArrayBuffer.isView(e))return es(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=ts(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return nn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function on(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Ji(e,t,r){return on(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 Ji(e,t,r)};function Yt(e){return on(e),Q(e<0?0:Zt(e)|0)}u.allocUnsafe=function(e){return Yt(e)};u.allocUnsafeSlow=function(e){return Yt(e)};function Qi(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=sn(e,t)|0,o=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 es(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 ts(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 rs(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 sn(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 dn(e).length;default:if(i)return o?-1:Xt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=sn;function ns(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 ms(this,t,r);case"utf8":case"utf-8":return cn(this,t,r);case"ascii":return us(this,t,r);case"latin1":case"binary":return ds(this,t,r);case"base64":return ls(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gs(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?cn(this,0,t):ns.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+">"};en&&(u.prototype[en]=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 an(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Jt(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:tn(e,t,r,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):tn(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function tn(e,t,r,o,i){var l=1,p=e.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,d/=2,r/=2}function m(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 an(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return an(this,t,r,o,!1)};function os(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 is(e,t,r,o){return Xe(Xt(t,e.length-r),e,r,o)}function ss(e,t,r,o){return Xe(ys(t),e,r,o)}function as(e,t,r,o){return Xe(dn(t),e,r,o)}function cs(e,t,r,o){return Xe(hs(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 os(this,t,r,o);case"utf8":case"utf-8":return is(this,t,r,o);case"ascii":case"latin1":case"binary":return ss(this,t,r,o);case"base64":return as(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return cs(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 ls(e,t,r){return t===0&&r===e.length?jt.fromByteArray(e):jt.fromByteArray(e.slice(t,r))}function cn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,T,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 ps(o)}var rn=4096;function ps(e){var t=e.length;if(t<=rn)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=rn));return r}function us(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 ds(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 ms(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+=xs[e[l]];return i}function gs(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 ln(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function pn(e,t,r,o,i){return t=+t,r=r>>>0,i||ln(e,t,r,4,34028234663852886e22,-34028234663852886e22),Te.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return pn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return pn(this,t,r,!1,o)};function un(e,t,r,o,i){return t=+t,r=r>>>0,i||ln(e,t,r,8,17976931348623157e292,-17976931348623157e292),Te.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return un(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return un(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var fs=/[^+/0-9A-Za-z-_]/g;function Ts(e){if(e=e.split("=")[0],e=e.trim().replace(fs,""),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 ys(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function hs(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function dn(e){return jt.toByteArray(Ts(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 xs=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var hn=je((Ac,yn)=>{n();var E=yn.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 gn(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 Ss(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 ws(){!he||!ue||(he=!1,ue.length?ee=ue.concat(ee):Ye=-1,ee.length&&fn())}function fn(){if(!he){var e=gn(ws);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,Ss(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 Tn(e,t)),ee.length===1&&!he&&gn(fn)};function Tn(e,t){this.fun=e,this.array=t}Tn.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function 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,Ec,n=f(()=>{s=b(mn()),a=b(hn()),Ec=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,Sn,wn=f(()=>{"use strict";n();rr="error when signing",De="cancelled",Sn="provider not initialized"});var Je,In=f(()=>{"use strict";n();Je=(o=>(o.signature="signature",o.sessionId="sessionId",o.status="status",o))(Je||{})});var bn=f(()=>{"use strict";n()});var vn=f(()=>{"use strict";n()});var $=f(()=>{"use strict";n()});var An=f(()=>{"use strict";n()});var En=f(()=>{"use strict";n()});var O=f(()=>{"use strict";n()});var kn=f(()=>{"use strict";n()});var Ln=f(()=>{"use strict";n()});var Dn=f(()=>{"use strict";n()});var M=f(()=>{"use strict";n();In();bn();vn();$();An();En();O();kn();Ln();Dn()});var nr,Nn,zc,Rn,Kc,Pn,Xc,Yc,Zc,Cn=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:Nn,egldLabel:zc}=nr["devnet"],{chainId:Rn,egldLabel:Kc}=nr["testnet"],{chainId:Pn,egldLabel:Xc}=nr["mainnet"],Yc={["devnet"]:Nn,["testnet"]:Rn,["mainnet"]:Pn},Zc={[Nn]:"devnet",[Rn]:"testnet",[Pn]:"mainnet"}});var or=f(()=>{"use strict";n()});var Mn=f(()=>{"use strict";n()});var _n,ir=f(()=>{"use strict";n();_n="transaction-status-toast-id"});var K,On=f(()=>{"use strict";n();K=require("@multiversx/sdk-web-wallet-provider")});var Fn=f(()=>{"use strict";n()});var Un=f(()=>{"use strict";n()});var sr,ar,Bn,Qe,Vn,xe,I=f(()=>{"use strict";n();wn();Cn();or();Mn();ir();On();Fn();Un();sr=5e4,ar=1e9,Bn=1,Qe="logout",Vn="login",xe="0"});var et,cr=f(()=>{"use strict";n();et=()=>Date.now()/1e3});var $n=f(()=>{"use strict";n()});var Gn=f(()=>{"use strict";n()});var lr=f(()=>{"use strict";n();cr();$n();Gn()});var ur={};ce(ur,{getItem:()=>bs,localStorageKeys:()=>ie,removeItem:()=>vs,setItem:()=>Is});var ie,pr,Is,bs,vs,Se=f(()=>{"use strict";n();lr();ie={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},pr=typeof localStorage!="undefined",Is=({key:e,data:t,expires:r})=>{!pr||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},bs=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},vs=e=>{!pr||localStorage.removeItem(String(e))}});var dr={};ce(dr,{clear:()=>jn,getItem:()=>Hn,removeItem:()=>qn,setItem:()=>Wn,storage:()=>As});var Wn,Hn,qn,jn,As,zn=f(()=>{"use strict";n();Wn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Hn=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},qn=e=>sessionStorage.removeItem(String(e)),jn=()=>sessionStorage.clear(),As={setItem:Wn,getItem:Hn,removeItem:qn,clear:jn}});var de,we=f(()=>{"use strict";n();Se();zn();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)(Vn,e=>({payload:e}))});var fr,Kn,Xn,tt,gr,Yn,Tr,Rl,yr,Pl,Cl,Ml,_l,Ol,Fl,Ul,Bl,rt,nt=f(()=>{"use strict";n();fr=require("@multiversx/sdk-core"),Kn=require("@reduxjs/toolkit"),Xn=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},Yn=(0,Kn.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(Xn.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:Rl,setAccountNonce:yr,setAccountShard:Pl,setLedgerAccount:Cl,updateLedgerAccount:Ml,setWalletConnectAccount:_l,setIsAccountLoading:Ol,setAccountLoadingError:Fl,setWebsocketEvent:Ul,setWebsocketBatchEvent:Bl}=Yn.actions,rt=Yn.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 Jn,Zn,Qn,Xl,Yl,Zl,Jl,Ql,ep,eo,tp,ot,it=f(()=>{"use strict";n();Jn=require("@reduxjs/toolkit");hr();$();U();Zn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Qn=(0,Jn.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:Xl,setWalletConnectLogin:Yl,setLedgerLogin:Zl,setTokenLogin:Jl,setTokenLoginSignature:Ql,setWalletLogin:ep,invalidateLoginSession:eo,setLogoutRoute:tp}=Qn.actions,ot=Qn.reducer});var ro,to,no,ip,sp,ap,cp,st,at=f(()=>{"use strict";n();ro=require("@reduxjs/toolkit");U();to={},no=(0,ro.createSlice)({name:"modalsSlice",initialState:to,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,()=>to)}}),{setTxSubmittedModal:ip,setNotificationModal:sp,clearTxSubmittedModal:ap,clearNotificationModal:cp}=no.actions,st=no.reducer});var ct=f(()=>{"use strict";n()});var oo=f(()=>{"use strict";n();ct()});function xr(e){return e[Math.floor(Math.random()*e.length)]}var io=f(()=>{"use strict";n()});var so=f(()=>{"use strict";n();or()});var ao=f(()=>{"use strict";n();oo();io();so()});var co,lo,Sr,ks,po,bp,vp,lt,pt=f(()=>{"use strict";n();co=require("@reduxjs/toolkit"),lo=b(require("lodash.omit"));ao();Sr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},ks={network:Sr,chainID:"-1"},po=(0,co.createSlice)({name:"appConfig",initialState:ks,reducers:{initializeNetworkConfig:(e,t)=>{let r=xr(t.payload.walletConnectBridgeAddresses),o=xr(t.payload.walletConnectV2RelayAddresses),i=(0,lo.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=w(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:bp,setChainID:vp}=po.actions,lt=po.reducer});var uo,wr,mo,Ce,go,Ir,ut,dt=f(()=>{"use strict";n();uo=require("@reduxjs/toolkit");M();U();wr={isSigning:!1,signedSessions:{}},mo=(0,uo.createSlice)({name:"signedMessageInfoSliceState",initialState:wr,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:()=>wr},extraReducers:e=>{e.addCase(k,()=>wr)}}),{setSignSession:Ce,clearSignedMessageInfo:go,setSignSessionState:Ir}=mo.actions,ut=mo.reducer});var To,yo,fo,ho,Ds,Ns,Op,Fp,Up,Bp,mt,gt=f(()=>{"use strict";n();To=require("@reduxjs/toolkit"),yo=require("redux-persist");ir();M();cr();U();fo={customToasts:[],transactionToasts:[],failTransactionToast:null},ho=(0,To.createSlice)({name:"toastsSlice",initialState:fo,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:_n})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(k,()=>fo),e.addCase(yo.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:Ds,removeCustomToast:Ns,addTransactionToast:Op,removeTransactionToast:Fp,addFailTransactionToast:Up,removeFailTransactionToast:Bp}=ho.actions,mt=ho.reducer});var xo,vr,Ar,Er,Rs,br,So,Wp,Hp,qp,ft,Tt=f(()=>{"use strict";n();xo=require("@reduxjs/toolkit");U();vr="Transaction failed",Ar="Transaction successful",Er="Processing transaction",Rs="Transaction submitted",br={},So=(0,xo.createSlice)({name:"transactionsInfo",initialState:br,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||vr,successMessage:(o==null?void 0:o.successMessage)||Ar,processingMessage:(o==null?void 0:o.processingMessage)||Er,submittedMessage:(o==null?void 0:o.submittedMessage)||Rs,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>br},extraReducers:e=>{e.addCase(k,()=>br)}}),{clearTransactionsInfo:Wp,setTransactionsDisplayInfo:Hp,clearTransactionsInfoForSessionId:qp}=So.actions,ft=So.reducer});function wo(e){return e!=null&&(Gs(e)||zs(e))}function yt(e){return e!=null&&(Ws(e)||Ks(e))}function ht(e){return e!=null&&(Hs(e)||Xs(e))}function Io(e){return e!=null&&(qs(e)||Ys(e))}function bo(e){return e!=null&&js(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)}function Ys(e){return e!=null&&$s.includes(e)}var Cs,Ms,_s,Os,Fs,Us,Bs,Vs,$s,Lr=f(()=>{"use strict";n();$();Cs=["sent"],Ms=["success"],_s=["fail","cancelled","timedOut"],Os=["invalid"],Fs=["timedOut"],Us=["pending"],Bs=["success"],Vs=["fail","invalid"],$s=["not executed"]});var vo,Ao,Me,Zs,Eo,eu,tu,ru,nu,ou,iu,su,au,cu,lu,xt,St=f(()=>{"use strict";n();vo=require("@reduxjs/toolkit"),Ao=require("redux-persist");$();Lr();U();Me={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Zs={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Eo=(0,vo.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])||Zs;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=>Io(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(Ao.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:eu,updateSignedTransactions:tu,setTransactionsToSign:ru,clearAllTransactionsToSign:nu,clearAllSignedTransactions:ou,clearSignedTransaction:iu,clearTransactionToSign:su,setSignTransactionsError:au,setSignTransactionsCancelMessage:cu,moveTransactionsToSignedState:lu}=Eo.actions,xt=Eo.reducer});var ko,Dr,Lo,mu,gu,fu,Tu,wt,It=f(()=>{"use strict";n();ko=require("@reduxjs/toolkit");U();Dr={},Lo=(0,ko.createSlice)({name:"batchTransactionsSlice",initialState:Dr,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:()=>Dr},extraReducers:e=>{e.addCase(k,()=>Dr)}}),{setBatchTransactions:mu,updateBatchTransactions:gu,clearBatchTransactions:fu,clearAllBatchTransactions:Tu}=Lo.actions,wt=Lo.reducer});var No,Do,Ro,Su,Po,Nr=f(()=>{"use strict";n();No=require("@reduxjs/toolkit");U();Do={},Ro=(0,No.createSlice)({name:"dappConfigSlice",initialState:Do,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,()=>Do)}}),{setDappConfig:Su}=Ro.actions,Po=Ro.reducer});var X=f(()=>{"use strict";n();nt();it();at();pt();dt();gt();Tt();St();It();Nr()});var Rr=f(()=>{"use strict";n()});var Fo,Oo,Uo,ju,zu,Ku,Xu,Yu,Zu,Bo,Vo=f(()=>{"use strict";n();Fo=require("@reduxjs/toolkit");U();Oo={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Uo=(0,Fo.createSlice)({name:"dappModalsSlice",initialState:Oo,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,()=>Oo)}}),{setDappModalVisibility:ju,setDappModalHeaderVisibility:zu,setDappModalFooterVisibility:Ku,setDappModalHeaderText:Xu,setDappModalFooterText:Yu,setDappModalConfig:Zu}=Uo.actions,Bo=Uo.reducer});var $o,ta,ra,me,kt=f(()=>{"use strict";n();$o=require("@reduxjs/toolkit");Rr();nt();It();Nr();Vo();it();at();pt();dt();gt();Tt();St();ta={["account"]:rt,["dappModal"]:Bo,["dappConfig"]:Po,["loginInfo"]:ot,["modals"]:st,["networkConfig"]:lt,["signedMessageInfo"]:ut,["toasts"]:mt,["transactionsInfo"]:ft,["transactions"]:xt,["batchTransactions"]:wt},ra=(e={})=>(0,$o.combineReducers)(x(x({},ta),e)),me=ra});var qo={};ce(qo,{default:()=>ha,sessionStorageReducers:()=>Pr});function re(e,t=[]){return{key:e,version:1,storage:Wo.default,blacklist:t}}var F,Go,Wo,na,_e,oa,ia,sa,aa,ca,la,pa,ua,da,ma,Ho,ga,Pr,fa,Ta,ya,ha,jo=f(()=>{"use strict";n();F=require("redux-persist"),Go=b(require("redux-persist/lib/storage")),Wo=b(require("redux-persist/lib/storage/session"));kt();X();nt();It();it();at();pt();dt();gt();Tt();St();Rr();na={persistReducersStorageType:"localStorage"},_e={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},oa=re(_e["account"]),ia=re(_e["loginInfo"]),sa=re(_e["modals"]),aa=re(_e["networkConfig"]),ca={2:e=>w(x({},e),{networkConfig:Sr})};la=re("sdk-dapp-transactionsInfo"),pa=re("sdk-dapp-transactions",["transactionsToSign"]),ua=re("sdk-dapp-batchTransactions",["batchTransactions"]),da=re("sdk-dapp-toasts"),ma=re("sdk-dapp-signedMessageInfo"),Ho={key:"sdk-dapp-store",version:2,storage:Go.default,whitelist:Object.keys(_e),migrate:(0,F.createMigrate)(ca,{debug:!1})},ga=w(x({},Ho),{whitelist:[]}),Pr={["toasts"]:(0,F.persistReducer)(da,mt),["transactions"]:(0,F.persistReducer)(pa,xt),["transactionsInfo"]:(0,F.persistReducer)(la,ft),["batchTransactions"]:(0,F.persistReducer)(ua,wt),["signedMessageInfo"]:(0,F.persistReducer)(ma,ut)},fa=w(x({},Pr),{["account"]:(0,F.persistReducer)(oa,rt),["loginInfo"]:(0,F.persistReducer)(ia,ot),["modals"]:(0,F.persistReducer)(sa,st),["networkConfig"]:(0,F.persistReducer)(aa,lt)}),Ta=na.persistReducersStorageType==="localStorage",ya=Ta?(0,F.persistReducer)(Ho,me(Pr)):(0,F.persistReducer)(ga,me(fa)),ha=ya});var zo={};ce(zo,{default:()=>xa});var xa,Ko=f(()=>{"use strict";n();kt();xa=me()});var Xo={};ce(Xo,{default:()=>wa});var G,Sa,wa,Yo=f(()=>{"use strict";n();G=require("redux-persist"),Sa=[G.FLUSH,G.REHYDRATE,G.PAUSE,G.PERSIST,G.PURGE,G.REGISTER],wa=Sa});var Qo={};ce(Qo,{default:()=>Jo});function Jo(e){return(0,Zo.persistStore)(e)}var Zo,ei=f(()=>{"use strict";n();Zo=require("redux-persist")});var Sc={};ce(Sc,{getVerifier:()=>tr,useGetLastSignedMessageSession:()=>uc,useGetSignMessageInfoStatus:()=>Hr,useGetSignMessageSession:()=>dc,useSignMessage:()=>hc,verifyMessage:()=>xc});module.exports=Le(Sc);n();n();var xn=require("@multiversx/sdk-core/out"),Ze=require("@multiversx/sdk-wallet"),tr=e=>{let t=new Ze.UserPublicKey(xn.Address.fromString(e).pubkey());return new Ze.UserVerifier(t)};n();n();var si=require("react"),be=require("react-redux");n();var Cr=require("@reduxjs/toolkit"),oi=require("react-redux/lib/utils/Subscription");X();n();var Mo=b(require("lodash.throttle"));I();n();var Co=b(require("lodash.isequal")),bt=require("reselect");M();var g=(0,bt.createSelectorCreator)(bt.defaultMemoize,Co.default),vt=(e,t)=>e!=""&&Boolean(t);X();hr();we();Se();var Js=[Qe],At=!1,Qs=(0,Mo.default)(()=>{Pe(Re())},5e3),_o=e=>t=>r=>{var m;if(Js.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(eo())},1e3):(At&&(At=!1),Qs()),t(r)};n();n();function Et(){return typeof sessionStorage!="undefined"}var ti=Et()?(jo(),Le(qo)).default:(Ko(),Le(zo)).default,ri=Et()?(Yo(),Le(Xo)).default:[],ni=Et()?(ei(),Le(Qo)).default:e=>e;kt();var D=(0,Cr.configureStore)({reducer:ti,middleware:e=>e({serializableCheck:{ignoredActions:[...ri,yr.type,Tr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(_o)}),ii=(0,oi.createSubscription)(D),Rd=ni(D),Pd=(0,Cr.configureStore)({reducer:me});var Ia={store:D,subscription:ii},Mr=(0,si.createContext)(Ia),Od=(0,be.createStoreHook)(Mr),ai=(0,be.createDispatchHook)(Mr),Y=(0,be.createSelectorHook)(Mr);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),Vd=g(Z,Lt,(e,t)=>{let i=e,{accounts:r}=i,o=qe(i,["accounts"]);return w(x({},o),{account:t})}),$d=g(Lt,e=>e.balance),ba=g(Lt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Gd=g(Z,e=>e.shard),Wd=g(Z,e=>e.ledgerAccount),Hd=g(Z,e=>e.walletConnectAccount),qd=g(Z,e=>e.isAccountLoading),jd=g(Z,e=>e.accountLoadingError),zd=g(Z,e=>e.websocketEvent),Kd=g(Z,e=>e.websocketBatchEvent);n();var va=e=>e.dappConfig,Zd=g(va,e=>e.shouldUseWebViewProvider);n();var se=e=>e.loginInfo,tm=g(se,e=>e.loginMethod),_r=g(se,Oe,(e,t)=>vt(e.loginMethod,t)),rm=g(se,e=>e.walletConnectLogin),nm=g(se,e=>e.ledgerLogin),ci=g(se,e=>e.walletLogin),om=g(se,e=>e.isLoginSessionInvalid),im=g(se,e=>e.tokenLogin),sm=g(se,e=>e.logoutRoute);n();var li=e=>e.modals,lm=g(li,e=>e.txSubmittedModal),pm=g(li,e=>e.notificationModal);n();var ge=e=>e.networkConfig,Aa=g(ge,e=>e.chainID),mm=g(ge,e=>e.network.walletConnectBridgeAddress),gm=g(ge,e=>e.network.walletConnectV2RelayAddress),fm=g(ge,e=>e.network.walletConnectV2ProjectId),Tm=g(ge,e=>e.network.walletConnectV2Options),ym=g(ge,e=>e.network.walletConnectDeepLink),Dt=g(ge,e=>e.network),Ea=g(Dt,e=>e.apiAddress),pi=g(Dt,e=>e.explorerAddress),ka=g(Dt,e=>e.egldLabel);n();var ae=e=>e.signedMessageInfo,ui=g(ae,e=>e.isSigning),di=g(ae,e=>e.errorMessage),mi=g(ae,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),gi=g(ae,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var Or=e=>e.toasts,Im=g(Or,e=>e.customToasts),bm=g(Or,e=>e.transactionToasts),vm=g(Or,e=>e.failTransactionToast);n();X();var fi={errorMessage:vr,successMessage:Ar,processingMessage:Er},La=e=>e.transactionsInfo,Lm=g(La,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||fi);n();n();var J=require("@multiversx/sdk-core");I();n();var Ur=require("@multiversx/sdk-core/out");n();n();function Fr(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 Ti=e=>{let t=e!=null?e:"";return Fr(t)?Ur.TransactionPayload.fromEncoded(t):new Ur.TransactionPayload(t)};function Br(e){var r,o,i;let t=new J.Transaction(x(x({value:e.value.valueOf(),data:Ti(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:Bn)},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 Ra=require("@multiversx/sdk-core/out");n();I();n();var hi=require("@multiversx/sdk-core");M();n();var yi=require("@multiversx/sdk-core");function Pa(e){try{let t=new yi.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)&&Pa(e)}n();n();n();var Ca=require("@multiversx/sdk-core"),Ma=b(require("bignumber.js"));$();n();n();n();n();n();n();n();O();n();n();O();n();n();n();var $a=b(require("bignumber.js"));I();n();var Va=require("@multiversx/sdk-core"),Vr=b(require("bignumber.js"));I();n();var Ua=b(require("bignumber.js"));n();Vr.default.config({ROUNDING_MODE:Vr.default.ROUND_FLOOR});n();n();n();I();n();n();n();n();I();n();I();n();var Ga=require("@multiversx/sdk-core");I();n();var Be=require("@multiversx/sdk-core"),Ha=require("@multiversx/sdk-network-providers");I();n();n();var Wa=b(require("bignumber.js"));I();n();I();n();n();n();n();n();n();I();n();I();n();I();n();O();var ja=["reDelegateRewards","claimRewards","unBond"],za=["wrapEgld","unwrapEgld"],Ka=["unStake"],Xa=["unDelegate"];n();n();n();I();n();var Ja=b(require("bignumber.js"));n();n();O();n();var Qa=b(require("bignumber.js"));n();n();n();var tc=b(require("bignumber.js"));M();n();n();n();n();$();n();var nc=require("@multiversx/sdk-web-wallet-provider");I();n();var bi=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 rc={search:Ve()?window.location.search:"",removeParams:[]},Pt=(e,t=rc)=>{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 Wr=({removeParams:e,search:t})=>{let r=Ve()?window.location.search:"",o=t!=null?t:r;if(!o)return{};let i=bi.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 oc=b(require("linkifyjs"));n();I();n();var ic=b(require("bignumber.js"));n();M();n();n();$();n();$();n();n();n();O();n();O();n();var sc=b(require("bignumber.js"));I();O();n();O();n();var Ai=require("react");M();n();n();O();n();n();var ac=require("@multiversx/sdk-core/out"),cc=b(require("bignumber.js"));O();n();M();n();n();M();var zx=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Ei=require("react");M();n();var pc=require("react");O();var eS=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Lr();var Mt=e=>e.transactions,$e=g(Mt,e=>e.signedTransactions),BS=g(Mt,e=>e.signTransactionsError),VS=g(Mt,e=>e.signTransactionsCancelMessage),_t=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),$S=g($e,_t(wo)),GS=g($e,_t(yt)),WS=g($e,_t(ht)),HS=g($e,_t(bo)),qS=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=>Br(r)))||[]})}),jS=g($e,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});var uc=()=>Y(mi);n();var dc=e=>{let t=Y(ae);if(!!e)return t.signedSessions[e]};n();var Hr=()=>{let e=Y(ui),t=Y(di);return{isPending:e,errorMessage:t}};n();var Ee=require("react"),Ft=require("@multiversx/sdk-core");I();n();n();n();n();var Li=require("@multiversx/sdk-extension-provider"),Di=require("@multiversx/sdk-hw-provider"),Ni=require("@multiversx/sdk-opera-provider"),Ri=require("@multiversx/sdk-web-wallet-provider");I();$();n();var qr=ve,ki=qr;var Ge=e=>{switch(e==null?void 0:e.constructor){case Ri.WalletProvider:return"wallet";case qr:return"walletconnect";case ki:return"walletconnectv2";case Di.HWProvider:return"ledger";case Li.ExtensionProvider:return"extension";case Ni.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)}},jr=new ve;var mc=jr;function B(){return mc||jr}var Pi=()=>{let e=B(),t=Ge(e);return{provider:e,providerType:t}};X();M();n();var Ot=require("@multiversx/sdk-core");n();$();n();n();function Ci(){let e=B();return Ge(e)}function We(e){return Ci()===e}n();var Mi=()=>{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=_r(e),i=ci(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=Mi();i!=null&&p&&l(p),o&&l(r),l("")})}var _i=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 gc=b(require("axios"));n();n();n();n();n();n();U();M();n();X();n();X();n();lr();n();n();var Tc=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 yc=b(require("axios"));var hc=()=>{let e=ai(),[t,r]=(0,Ee.useState)(""),i=Y(ae).signedSessions[t],{isPending:l,errorMessage:p}=Hr(),d=window==null?void 0:window.location.search,{provider:m,providerType:T}=Pi(),y=T==="wallet",h=Y(gi),R=()=>(e(go()),Wr({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||Sn;console.error(A)}}),Bt=A=>C(void 0,[A],function*({message:S,callbackRoute:L}){let P=yield Ae(),Gt=B(),Oi=encodeURIComponent(String(L)),Fi=new Ft.SignableMessage({address:new Ft.Address(P),message:s.Buffer.from(S,"ascii")});return Gt.signMessage(Fi,{callbackUrl:Oi})}),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 _i(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(Ir({isSigning:!1,errorMessage:""}))},[]),(0,Ee.useEffect)(()=>{t&&!i&&!l&&e(Ir({isSigning:!1,errorMessage:""}))},[t]),{onAbort:R,onCancel:v,signMessage:Vt,sessionId:t||h}};n();var Ut=require("@multiversx/sdk-core/out");var xc=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
|
*
|