@multiversx/sdk-dapp 2.35.0-alpha.0 → 2.35.0
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/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/NotificationModal/NotificationModal.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithCrossWindowWalletModal/SignWithCrossWindowWalletModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithCrossWindowWalletModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/ConfirmAmount.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountData/ConfirmAmountData.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountData/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountNftSft/ConfirmAmountNftSft.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountNftSft/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/ConfirmFee.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/ConfirmReceiver.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/SignWithExtensionModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/LedgerGuardianSigningModalError.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithMetamaskModal/SignWithMetamaskModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithMetamaskModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
- package/UI/SignTransactionsModals/components/index.js +1 -1
- package/UI/SignTransactionsModals/index.js +1 -1
- package/UI/TokenDetails/index.js +1 -1
- package/UI/TransactionDetails/TransactionDetails.js +1 -1
- package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
- package/UI/TransactionDetails/components/index.js +1 -1
- package/UI/TransactionDetails/index.js +1 -1
- package/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/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/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/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/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/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/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/TransactionHash.js +1 -1
- package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
- package/UI/TransactionsTable/components/TransactionRow.js +1 -1
- package/UI/TransactionsTable/components/TransactionSender.js +1 -1
- package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
- package/UI/TransactionsTable/components/index.js +1 -1
- package/UI/TransactionsTable/index.js +1 -1
- package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/CustomComponentToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/Trim/Trim.js +1 -1
- package/UI/Trim/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContainer.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/LedgerLoginContent.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/LedgerLoginContentBody.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/LedgerScamPhishingAlert.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/metamask/MetamaskLoginButton/MetamaskLoginButton.js +1 -1
- package/UI/metamask/MetamaskLoginButton/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContainer.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/WalletConnectLoginContent.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/CrossWindowLoginButton/CrossWindowLoginButton.js +1 -1
- package/UI/webWallet/CrossWindowLoginButton/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/UI/webWallet/XaliasCrossWindowLoginButton/XaliasCrossWindowLoginButton.js +1 -1
- package/UI/webWallet/XaliasCrossWindowLoginButton/index.js +1 -1
- package/UI/webWallet/XaliasLoginButton/XaliasLoginButton.js +1 -1
- package/UI/webWallet/XaliasLoginButton/index.js +1 -1
- package/__chunks__/chunk-2IS3NGOD.js +2 -0
- package/__chunks__/{chunk-IO2GRTGX.js → chunk-2SHWM7Y6.js} +2 -2
- package/__chunks__/{chunk-RZZMINBD.js → chunk-2WMZMZQI.js} +2 -2
- package/__chunks__/{chunk-SBFDIN2O.js → chunk-2WXCLAD6.js} +2 -2
- package/__chunks__/{chunk-DSSN3DLB.js → chunk-2Y3M6GTG.js} +2 -2
- package/__chunks__/{chunk-TRVXPC5N.js → chunk-32P4UUDB.js} +2 -2
- package/__chunks__/{chunk-KZL2ZNA6.js → chunk-37AIPPWD.js} +2 -2
- package/__chunks__/{chunk-DAIC6HZN.js → chunk-3BSVYMEW.js} +2 -2
- package/__chunks__/{chunk-MLL2CMK3.js → chunk-3GEJYZYS.js} +2 -2
- package/__chunks__/{chunk-XUWYCQYA.js → chunk-3IGICP6U.js} +2 -2
- package/__chunks__/{chunk-TMELGPB7.js → chunk-3PRYSIKF.js} +2 -2
- package/__chunks__/chunk-4AL6ZHRG.js +2 -0
- package/__chunks__/{chunk-GYUKIY7X.js → chunk-4EQ6RJWG.js} +2 -2
- package/__chunks__/{chunk-JT4RFK6N.js → chunk-4MPWH4BH.js} +2 -2
- package/__chunks__/{chunk-EZZ625MZ.js → chunk-4N5O5ZOR.js} +2 -2
- package/__chunks__/{chunk-DYDF4HQU.js → chunk-4NQ6LQJG.js} +2 -2
- package/__chunks__/{chunk-W4Z47VRA.js → chunk-4OQCEYZK.js} +2 -2
- package/__chunks__/{chunk-CV67DQ7A.js → chunk-4VV2CLZO.js} +2 -2
- package/__chunks__/{chunk-4S2WCN7B.js → chunk-4WFCKLE3.js} +2 -2
- package/__chunks__/{chunk-GW6B75YP.js → chunk-5LE7E55H.js} +2 -2
- package/__chunks__/chunk-5VC5P6MH.js +2 -0
- package/__chunks__/{chunk-T7NYHBJP.js → chunk-65NVJM5I.js} +2 -2
- package/__chunks__/{chunk-WVG7QKDR.js → chunk-6CK7N6L5.js} +2 -2
- package/__chunks__/{chunk-RSENE7DM.js → chunk-6GGYR5G4.js} +2 -2
- package/__chunks__/{chunk-FLDTDN7F.js → chunk-6GRCMTFM.js} +2 -2
- package/__chunks__/{chunk-NEKMESEM.js → chunk-6HE4HKWY.js} +2 -2
- package/__chunks__/chunk-6IOGEMDT.js +2 -0
- package/__chunks__/{chunk-P4V4ET4P.js → chunk-6SOBXT4O.js} +2 -2
- package/__chunks__/{chunk-5SU46NJE.js → chunk-6SVBPEG4.js} +2 -2
- package/__chunks__/{chunk-MYY24HGA.js → chunk-6VB5I4RE.js} +2 -2
- package/__chunks__/{chunk-334IJCYB.js → chunk-76WAZOOT.js} +2 -2
- package/__chunks__/{chunk-X6NI2ZBT.js → chunk-77A3XDXJ.js} +2 -2
- package/__chunks__/{chunk-S4UN2P4O.js → chunk-77ENRYPS.js} +2 -2
- package/__chunks__/{chunk-DWQ2ZV4G.js → chunk-7FITRDO7.js} +2 -2
- package/__chunks__/{chunk-DDE2MXGH.js → chunk-7HTB62WI.js} +2 -2
- package/__chunks__/{chunk-6ACFJJXR.js → chunk-7KKHY3TZ.js} +2 -2
- package/__chunks__/{chunk-FUSIZ46H.js → chunk-AESXBA56.js} +2 -2
- package/__chunks__/{chunk-TXZITA5D.js → chunk-APEWOWSC.js} +2 -2
- package/__chunks__/chunk-AQV5TH4Q.js +2 -0
- package/__chunks__/{chunk-LLUYYL3U.js → chunk-AWAXFT65.js} +2 -2
- package/__chunks__/{chunk-E2JITJIG.js → chunk-AWQBE76O.js} +2 -2
- package/__chunks__/{chunk-5R6GYLSI.js → chunk-AYV7WR7R.js} +2 -2
- package/__chunks__/{chunk-C23NMV4R.js → chunk-B2OYHUMV.js} +2 -2
- package/__chunks__/{chunk-R6WVYIDS.js → chunk-B65ZSDSY.js} +2 -2
- package/__chunks__/{chunk-2H5JMTXF.js → chunk-BCOAJUNQ.js} +2 -2
- package/__chunks__/{chunk-7OJW5FBB.js → chunk-BJLNRINU.js} +2 -2
- package/__chunks__/{chunk-QQ2462BR.js → chunk-BRC5JVQX.js} +2 -2
- package/__chunks__/{chunk-2CQSINGW.js → chunk-BYXZSMIG.js} +2 -2
- package/__chunks__/{chunk-F3QUUDWL.js → chunk-C33IFAGH.js} +2 -2
- package/__chunks__/{chunk-ZHZR5E3J.js → chunk-C3Q236R6.js} +2 -2
- package/__chunks__/{chunk-63IDHUOF.js → chunk-C4PV3KKZ.js} +2 -2
- package/__chunks__/{chunk-EF26LBPA.js → chunk-CDBLPD2D.js} +2 -2
- package/__chunks__/{chunk-63FTOMHT.js → chunk-CIRJPPV3.js} +2 -2
- package/__chunks__/{chunk-7APY2BML.js → chunk-CJY6CZJN.js} +2 -2
- package/__chunks__/{chunk-D3RGXIBA.js → chunk-CN77B2AZ.js} +2 -2
- package/__chunks__/{chunk-WLKJYOJZ.js → chunk-CTIHELBB.js} +2 -2
- package/__chunks__/{chunk-5WT7VRDX.js → chunk-CVRPSVOI.js} +2 -2
- package/__chunks__/{chunk-FKKQ6WYZ.js → chunk-CX5WJXW6.js} +2 -2
- package/__chunks__/{chunk-CA2RH57B.js → chunk-D3OULPCY.js} +2 -2
- package/__chunks__/chunk-DJ6KORJN.js +2 -0
- package/__chunks__/{chunk-MX5VS4MW.js → chunk-DKTG62WZ.js} +2 -2
- package/__chunks__/{chunk-P2F4LDDC.js → chunk-DLTB7WE2.js} +2 -2
- package/__chunks__/{chunk-7ADDF63Z.js → chunk-E56UIYUF.js} +2 -2
- package/__chunks__/{chunk-CDETHWBG.js → chunk-E5IZKUKT.js} +2 -2
- package/__chunks__/{chunk-4JD5K7KM.js → chunk-EJ64O4C7.js} +2 -2
- package/__chunks__/{chunk-Z4EAKPZC.js → chunk-EJFAI7UI.js} +2 -2
- package/__chunks__/{chunk-7SA24V6A.js → chunk-ELSL42KX.js} +2 -2
- package/__chunks__/{chunk-QLXJZD2Q.js → chunk-EOW2IXDE.js} +2 -2
- package/__chunks__/chunk-EV37PGN4.js +2 -0
- package/__chunks__/{chunk-5XD22647.js → chunk-EZVLVKMF.js} +2 -2
- package/__chunks__/{chunk-5Z6UDSPB.js → chunk-F77IKWXQ.js} +2 -2
- package/__chunks__/{chunk-LNO32UMY.js → chunk-FD5K5VZ7.js} +2 -2
- package/__chunks__/chunk-FNMJXVBN.js +2 -0
- package/__chunks__/{chunk-ESPUVOEE.js → chunk-FP2QMRPX.js} +2 -2
- package/__chunks__/{chunk-4MNKTQEX.js → chunk-FY5QMRAW.js} +2 -2
- package/__chunks__/{chunk-FBBMDWYJ.js → chunk-G3T4NREU.js} +2 -2
- package/__chunks__/{chunk-M5I3ZEX7.js → chunk-GE5QLTQK.js} +2 -2
- package/__chunks__/chunk-GGZNBXV4.js +2 -0
- package/__chunks__/{chunk-34TAI2EE.js → chunk-GJ667GOC.js} +2 -2
- package/__chunks__/{chunk-53UVZ34A.js → chunk-GJRH72PL.js} +2 -2
- package/__chunks__/{chunk-PPA5VFJI.js → chunk-GTDFJK6B.js} +2 -2
- package/__chunks__/{chunk-N7RASPO7.js → chunk-GWI7FK46.js} +2 -2
- package/__chunks__/chunk-GXIGE2A2.js +2 -0
- package/__chunks__/{chunk-IYSWF43C.js → chunk-HFCDO2SH.js} +2 -2
- package/__chunks__/{chunk-MF2GL5BQ.js → chunk-HIQCFAV4.js} +2 -2
- package/__chunks__/{chunk-FSCH7LGH.js → chunk-HJ5HKNY2.js} +2 -2
- package/__chunks__/{chunk-GQRHL2ES.js → chunk-HLFFET2J.js} +2 -2
- package/__chunks__/{chunk-P5FNWQN4.js → chunk-HLKBN6WQ.js} +2 -2
- package/__chunks__/{chunk-H5PYQ4JY.js → chunk-HSFVFR6A.js} +2 -2
- package/__chunks__/{chunk-K55DTSGY.js → chunk-HYB55VHC.js} +2 -2
- package/__chunks__/chunk-I54N2B6R.js +2 -0
- package/__chunks__/{chunk-ZG4DMMBS.js → chunk-I65Z7GLU.js} +2 -2
- package/__chunks__/{chunk-ZFKYAMBT.js → chunk-I7V23NKQ.js} +2 -2
- package/__chunks__/{chunk-5WWRELUW.js → chunk-ICBDXFF2.js} +2 -2
- package/__chunks__/{chunk-6OG6L4PJ.js → chunk-IIAAKHBU.js} +2 -2
- package/__chunks__/{chunk-7UZ4J5JG.js → chunk-IIYDCPGS.js} +2 -2
- package/__chunks__/{chunk-LQGF3OWA.js → chunk-IL2EIQKD.js} +2 -2
- package/__chunks__/{chunk-UV5N3IH6.js → chunk-J3IAJDXB.js} +2 -2
- package/__chunks__/{chunk-KR2ARTCP.js → chunk-J3ISR7AL.js} +2 -2
- package/__chunks__/{chunk-7YONUUOO.js → chunk-J4JBJKMG.js} +2 -2
- package/__chunks__/{chunk-YGRHXYST.js → chunk-J64Q2SL3.js} +2 -2
- package/__chunks__/{chunk-YTLKFQBO.js → chunk-J77IIVOG.js} +2 -2
- package/__chunks__/{chunk-AOIBM7ZU.js → chunk-JEEOVMWJ.js} +2 -2
- package/__chunks__/{chunk-G4QHZOPA.js → chunk-JGEJC6RC.js} +2 -2
- package/__chunks__/{chunk-7TTGCNHL.js → chunk-JV7YXUHZ.js} +2 -2
- package/__chunks__/{chunk-5WGWHWZW.js → chunk-K5O44LSJ.js} +2 -2
- package/__chunks__/{chunk-BXCKPAHV.js → chunk-K7ZSPLZS.js} +2 -2
- package/__chunks__/{chunk-XZTHT5F5.js → chunk-KA3JIHEW.js} +2 -2
- package/__chunks__/{chunk-TBMWFTEQ.js → chunk-L33VEO77.js} +2 -2
- package/__chunks__/chunk-LIK74JDX.js +2 -0
- package/__chunks__/{chunk-YCY4QZNR.js → chunk-LMNIFRDM.js} +2 -2
- package/__chunks__/{chunk-64JBKFDD.js → chunk-LPH6AFCJ.js} +2 -2
- package/__chunks__/{chunk-ATBMFOXG.js → chunk-M2DIXNGJ.js} +2 -2
- package/__chunks__/{chunk-P5DRT2MS.js → chunk-MKJXDNN3.js} +2 -2
- package/__chunks__/{chunk-ZZMUFBXR.js → chunk-MOH4ZT6B.js} +2 -2
- package/__chunks__/{chunk-XQLFQDE7.js → chunk-MRZJLQZA.js} +2 -2
- package/__chunks__/{chunk-TJOAEICR.js → chunk-MTC6AWFO.js} +2 -2
- package/__chunks__/{chunk-RNLO3AA2.js → chunk-N3V2LUM3.js} +2 -2
- package/__chunks__/{chunk-5TMRSJSU.js → chunk-N43HYBZ5.js} +2 -2
- package/__chunks__/{chunk-HJ33QCDH.js → chunk-NMFTQG4K.js} +2 -2
- package/__chunks__/{chunk-XAEVCOV3.js → chunk-NYLFMG5R.js} +2 -2
- package/__chunks__/{chunk-IJXOIFL4.js → chunk-NYSEURJU.js} +2 -2
- package/__chunks__/{chunk-XZ556LC5.js → chunk-O4GIE5RY.js} +2 -2
- package/__chunks__/chunk-OAPCFZPT.js +2 -0
- package/__chunks__/{chunk-NJPAWJJN.js → chunk-OIM3XVCK.js} +2 -2
- package/__chunks__/{chunk-UO5TEXIW.js → chunk-OLZUROXN.js} +2 -2
- package/__chunks__/{chunk-UEAUOIB2.js → chunk-OMXAS2O3.js} +2 -2
- package/__chunks__/{chunk-GNAAJSVI.js → chunk-ONT4XW4W.js} +2 -2
- package/__chunks__/{chunk-H55GEKZM.js → chunk-OWTTVXEQ.js} +2 -2
- package/__chunks__/{chunk-YXGNUBFZ.js → chunk-P6VXMCJH.js} +2 -2
- package/__chunks__/{chunk-WTHB2BFP.js → chunk-PMQOTSZW.js} +2 -2
- package/__chunks__/{chunk-CYKIGZFU.js → chunk-PPO6MN7V.js} +2 -2
- package/__chunks__/{chunk-XMUJLGT3.js → chunk-PTQ3J4O7.js} +2 -2
- package/__chunks__/{chunk-UVADYCXD.js → chunk-PU6DIMOU.js} +2 -2
- package/__chunks__/{chunk-Z4OSI5TN.js → chunk-QDL7MVI7.js} +2 -2
- package/__chunks__/{chunk-CZ2HDCWP.js → chunk-QG23XIIN.js} +2 -2
- package/__chunks__/{chunk-UTAE7XQN.js → chunk-QOMVDLMH.js} +2 -2
- package/__chunks__/{chunk-VDQMS3HU.js → chunk-QRT266HH.js} +2 -2
- package/__chunks__/{chunk-P5JOU3W4.js → chunk-QRWW5EJR.js} +2 -2
- package/__chunks__/{chunk-XZYZJMGU.js → chunk-QRYZKPGU.js} +2 -2
- package/__chunks__/{chunk-UIAONUFV.js → chunk-QVQFPTUC.js} +2 -2
- package/__chunks__/{chunk-S46UX7RK.js → chunk-QWTEG2DJ.js} +2 -2
- package/__chunks__/{chunk-W6RSSCO2.js → chunk-QXJDA33X.js} +2 -2
- package/__chunks__/{chunk-MLNHCFIX.js → chunk-QYXFV2E6.js} +2 -2
- package/__chunks__/{chunk-QQDFQ6QB.js → chunk-RHFB6HZF.js} +2 -2
- package/__chunks__/{chunk-KOYSTO4J.js → chunk-RIPZ6HGC.js} +2 -2
- package/__chunks__/{chunk-HWNJBKH7.js → chunk-RLCM4VXF.js} +2 -2
- package/__chunks__/{chunk-V4JHR2AD.js → chunk-RNSJF4T2.js} +2 -2
- package/__chunks__/{chunk-BY3JZHLO.js → chunk-ROEIDAEH.js} +2 -2
- package/__chunks__/chunk-ROPJPUNI.js +2 -0
- package/__chunks__/{chunk-2R6UU5E4.js → chunk-RPL2WPGF.js} +2 -2
- package/__chunks__/{chunk-OVGKRSHW.js → chunk-RQZOQK3M.js} +2 -2
- package/__chunks__/chunk-RWDNUFSB.js +2 -0
- package/__chunks__/{chunk-HQSUGCPF.js → chunk-RXL7YGZY.js} +2 -2
- package/__chunks__/{chunk-QF3TXUGC.js → chunk-RXZRVPNE.js} +2 -2
- package/__chunks__/{chunk-OFZBCUQQ.js → chunk-S2FR3NID.js} +2 -2
- package/__chunks__/{chunk-IH32LBQP.js → chunk-S6R2PGYR.js} +2 -2
- package/__chunks__/{chunk-63BVOCUN.js → chunk-SEEBGF3N.js} +2 -2
- package/__chunks__/{chunk-LJ6UQPM7.js → chunk-SKI26662.js} +2 -2
- package/__chunks__/{chunk-PVNMN64E.js → chunk-SQEPWAVK.js} +2 -2
- package/__chunks__/{chunk-FYREC7VY.js → chunk-SSRAME56.js} +2 -2
- package/__chunks__/chunk-SVTLXG3A.js +2 -0
- package/__chunks__/{chunk-MFXYOZQF.js → chunk-T2UVKIEO.js} +2 -2
- package/__chunks__/{chunk-GKZDDZIT.js → chunk-T3S7JN6D.js} +2 -2
- package/__chunks__/{chunk-DIFDESK2.js → chunk-TBI7NVKM.js} +2 -2
- package/__chunks__/{chunk-ABVNY34P.js → chunk-TD47LQ2G.js} +2 -2
- package/__chunks__/{chunk-LG3ZD4HN.js → chunk-TDUHCVJY.js} +2 -2
- package/__chunks__/{chunk-X2RUH5IH.js → chunk-THBEUBJK.js} +2 -2
- package/__chunks__/{chunk-KP4AHH3I.js → chunk-TKONNQOW.js} +2 -2
- package/__chunks__/{chunk-ODKXMS5C.js → chunk-TZDZY2ZW.js} +2 -2
- package/__chunks__/{chunk-BRGSMSM3.js → chunk-U63Q7OSA.js} +2 -2
- package/__chunks__/{chunk-PLRCXLDC.js → chunk-UMVCK3NC.js} +2 -2
- package/__chunks__/{chunk-BNAFJW4D.js → chunk-UPEPZWUO.js} +2 -2
- package/__chunks__/{chunk-CEL2MILJ.js → chunk-UUZLGARX.js} +2 -2
- package/__chunks__/{chunk-6RVBQJBC.js → chunk-UVEEWOZL.js} +2 -2
- package/__chunks__/chunk-UYLTRHFO.js +2 -0
- package/__chunks__/{chunk-4V6QXTWS.js → chunk-UZWKC74I.js} +2 -2
- package/__chunks__/{chunk-BV46RAO4.js → chunk-VCBSLKFX.js} +2 -2
- package/__chunks__/{chunk-ECFN256M.js → chunk-VENT2GQV.js} +2 -2
- package/__chunks__/chunk-VGDPB6ZI.js +2 -0
- package/__chunks__/{chunk-3SAO7AED.js → chunk-VHSQNJC4.js} +2 -2
- package/__chunks__/{chunk-R5EAXSXL.js → chunk-VLBT4X47.js} +2 -2
- package/__chunks__/{chunk-VSXAVTKN.js → chunk-VOMDKQMF.js} +2 -2
- package/__chunks__/{chunk-74KJBGCJ.js → chunk-VPHOPRR5.js} +2 -2
- package/__chunks__/{chunk-62736POM.js → chunk-VWXUJHHS.js} +2 -2
- package/__chunks__/{chunk-5BL5POYI.js → chunk-W6DZGS63.js} +2 -2
- package/__chunks__/{chunk-BHY47JYV.js → chunk-W7XG3GAJ.js} +2 -2
- package/__chunks__/{chunk-SJLRPT4Z.js → chunk-WC4LTVQI.js} +2 -2
- package/__chunks__/{chunk-DT6Y2YCR.js → chunk-WOBRK5AX.js} +2 -2
- package/__chunks__/{chunk-SW6GSYKJ.js → chunk-WRVA4DPF.js} +2 -2
- package/__chunks__/{chunk-ACSSS6Z5.js → chunk-WSTVSZR5.js} +2 -2
- package/__chunks__/{chunk-OQPZMC5J.js → chunk-XDWFKCL6.js} +2 -2
- package/__chunks__/{chunk-22NRVJ63.js → chunk-XEJRPAXM.js} +2 -2
- package/__chunks__/{chunk-C3TPJOPF.js → chunk-XH3GV3DQ.js} +2 -2
- package/__chunks__/{chunk-TRSO3LFW.js → chunk-XWTY7VGY.js} +2 -2
- package/__chunks__/{chunk-7ZCFZBQ3.js → chunk-Y2QXLAEX.js} +2 -2
- package/__chunks__/{chunk-DQAJXQC6.js → chunk-YC4HKOZS.js} +2 -2
- package/__chunks__/{chunk-UQCIAY7O.js → chunk-YCNQHZOM.js} +2 -2
- package/__chunks__/{chunk-EF5I73WS.js → chunk-YFNKJGNZ.js} +2 -2
- package/__chunks__/{chunk-KDX3AZRC.js → chunk-YFPGSRZ2.js} +2 -2
- package/__chunks__/{chunk-ZR5XYMS3.js → chunk-YLU3KLJK.js} +2 -2
- package/__chunks__/{chunk-RCRIMQ4L.js → chunk-YMZHLFDW.js} +2 -2
- package/__chunks__/{chunk-MSAEZUGL.js → chunk-YOKOF5I7.js} +2 -2
- package/__chunks__/{chunk-JU7G7Z25.js → chunk-YQFTGSVA.js} +2 -2
- package/__chunks__/{chunk-XK4YJS4A.js → chunk-YVR2T6CZ.js} +2 -2
- package/__chunks__/{chunk-7YZJVW7L.js → chunk-YYNTYERD.js} +2 -2
- package/__chunks__/{chunk-UEIDSNZK.js → chunk-Z2WRW6RH.js} +2 -2
- package/__chunks__/{chunk-XY7N7HII.js → chunk-ZDTNRQYY.js} +2 -2
- package/__chunks__/{chunk-RELRRO5Y.js → chunk-ZJEUOS7B.js} +2 -2
- package/__chunks__/{chunk-EBCB6NJY.js → chunk-ZMJZQTJM.js} +2 -2
- package/__chunks__/{chunk-FRSLLKI2.js → chunk-ZN6IK23F.js} +2 -2
- package/__chunks__/{chunk-XOUFUM5K.js → chunk-ZUHK3OJ5.js} +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/index.js +1 -1
- package/__commonjs/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
- package/__commonjs/UI/index.js +1 -1
- package/__commonjs/components/ProviderInitializer/hooks/index.js +1 -1
- package/__commonjs/components/ProviderInitializer/hooks/useSetLedgerProvider.js +1 -1
- package/__commonjs/hooks/account/useGetIsLoggedIn.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
- package/__commonjs/hooks/transactions/helpers/index.js +1 -1
- package/__commonjs/hooks/transactions/index.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/__commonjs/services/transactions/sendBatchTransactions.test.js +1 -1
- package/__commonjs/utils/index.js +1 -1
- package/__commonjs/utils/transactions/batch/generateBatchTransactionsGrouping.test.js +1 -1
- package/__commonjs/utils/transactions/builtCallbackUrl.js +1 -1
- package/__commonjs/utils/transactions/index.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/apiCalls/accounts/getAccountFromApi.js +1 -1
- package/apiCalls/accounts/index.js +1 -1
- package/apiCalls/accounts/useGetAccountFromApi.js +1 -1
- package/apiCalls/configuration/getNetworkConfig.js +1 -1
- package/apiCalls/configuration/index.js +1 -1
- package/apiCalls/configuration/useGetNetworkConfigFromApi.js +1 -1
- package/apiCalls/configuration/useGetServerConfigurationFromApi.js +1 -1
- package/apiCalls/economics/getEconomicsInfo.js +1 -1
- package/apiCalls/economics/index.js +1 -1
- package/apiCalls/economics/useGetEconomicsInfoFromApi.js +1 -1
- package/apiCalls/index.js +1 -1
- package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
- package/apiCalls/transactions/index.js +1 -1
- package/apiCalls/transactions/sendSignedBatchTransactions.js +1 -1
- package/apiCalls/transactions/sendSignedTransactions.js +1 -1
- package/apiCalls/transactions/useGetTransactionsFromApi.js +1 -1
- package/apiCalls/utils/getCleanApiAddress.js +1 -1
- package/apiCalls/utils/getScamAddressData.js +1 -1
- package/apiCalls/utils/index.js +1 -1
- package/apiCalls/utils/useApiFetch.js +1 -1
- package/components/LogoutListener/LogoutListener.js +1 -1
- package/components/LogoutListener/helpers/index.js +1 -1
- package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/components/LogoutListener/index.js +1 -1
- package/components/ProviderInitializer/ProviderInitializer.js +1 -1
- package/components/ProviderInitializer/helpers/index.js +1 -1
- package/components/ProviderInitializer/helpers/processModifiedAccount.js +1 -1
- package/components/ProviderInitializer/hooks/index.js +1 -1
- package/components/ProviderInitializer/hooks/useSetLedgerProvider.js +1 -1
- package/components/ProviderInitializer/index.js +1 -1
- package/components/TransactionSender/TransactionSender.js +1 -1
- package/components/TransactionSender/index.js +1 -1
- package/components/TransactionSender/utils/invokeSendTransactions.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/hooks/account/index.js +1 -1
- package/hooks/account/useGetAccount.js +1 -1
- package/hooks/account/useGetAccountInfo.js +1 -1
- package/hooks/account/useGetIsLoggedIn.js +1 -1
- package/hooks/account/useGetIsWalletConnectV2Initialized.js +1 -1
- package/hooks/account/useGetLoginInfo.js +1 -1
- package/hooks/account/useGetWebsocketEvent.js +1 -1
- package/hooks/economics/index.js +1 -1
- package/hooks/economics/useGetEgldPrice.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useCrossWindowLogin.js +1 -1
- package/hooks/login/useExtensionLogin.js +1 -1
- package/hooks/login/useGetModalLoginMethods.js +1 -1
- package/hooks/login/useLedgerLogin.js +1 -1
- package/hooks/login/useLoginService.js +1 -1
- package/hooks/login/useMetamaskLogin.js +1 -1
- package/hooks/login/useOperaLogin.js +1 -1
- package/hooks/login/useWalletConnectV2Login.js +1 -1
- package/hooks/login/useWebViewLogin.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/login/useXaliasLogin.js +1 -1
- package/hooks/signMessage/index.js +1 -1
- package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
- package/hooks/signMessage/useSignMessage.js +1 -1
- package/hooks/toasts/index.js +1 -1
- package/hooks/toasts/useGetToasts.js +1 -1
- package/hooks/toasts/useTransactionsToasts.js +1 -1
- package/hooks/transactions/batch/tracker/useBatchTransactionsTracker.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckBatch.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckBatchesOnWsFailureFallback.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckHangingBatchesFallback.js +1 -1
- package/hooks/transactions/batch/tracker/useUpdateBatch.js +1 -1
- package/hooks/transactions/batch/tracker/useVerifyBatchStatus.js +1 -1
- package/hooks/transactions/batch/useGetBatchStatus.js +1 -1
- package/hooks/transactions/batch/useResolveBatchStatusResponse.js +1 -1
- package/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
- package/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
- package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
- package/hooks/transactions/helpers/index.js +1 -1
- package/hooks/transactions/helpers/useGetLedgerProvider.js +1 -1
- package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
- package/hooks/transactions/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
- package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
- package/hooks/transactions/useGetFailedTransactions.js +1 -1
- package/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
- package/hooks/transactions/useGetPendingTransactions.js +1 -1
- package/hooks/transactions/useGetPollingInterval.js +1 -1
- package/hooks/transactions/useGetSignTransactionsError.js +1 -1
- package/hooks/transactions/useGetSignedTransactions.js +1 -1
- package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
- package/hooks/transactions/useGetTokenDetails.js +1 -1
- package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/hooks/transactions/useSignMultipleTransactions.js +1 -1
- package/hooks/transactions/useSignTransactions.js +1 -1
- package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/hooks/transactions/useTransactionsTracker.js +1 -1
- package/hooks/useGetNetworkConfig.js +1 -1
- package/hooks/useGetNotification.js +1 -1
- package/hooks/websocketListener/index.js +1 -1
- package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
- package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
- package/package.json +1 -1
- package/providers/experimentalWebViewProvider/ExperimentalWebviewProvider.js +1 -1
- package/providers/experimentalWebViewProvider/index.js +1 -1
- package/reduxStore/selectors/index.js +1 -1
- package/reduxStore/selectors/transactionsSelectors.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/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/sendBatchTransactions.js +1 -1
- package/services/transactions/sendBatchTransactions.test.js +1 -1
- package/services/transactions/sendTransactions.js +1 -1
- package/services/transactions/transformAndSignTransactions.js +1 -1
- package/services/transactions/utils/transformTransactionsToSign.js +1 -1
- package/utils/account/getAccount.js +1 -1
- package/utils/account/getAccountBalance.js +1 -1
- package/utils/account/getAccountShard.js +1 -1
- package/utils/account/getAddress.js +1 -1
- package/utils/account/getLatestNonce.js +1 -1
- package/utils/account/getWebviewToken.js +1 -1
- package/utils/account/index.js +1 -1
- package/utils/account/refreshAccount.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/transactions/batch/generateBatchTransactionsGrouping.test.js +1 -1
- package/utils/transactions/batch/updateBatchTransactionsStatuses.js +1 -1
- package/utils/transactions/builtCallbackUrl.js +1 -1
- package/utils/transactions/getAllTransactionsLink.js +1 -1
- package/utils/transactions/getOperationsDetails.js +1 -1
- package/utils/transactions/getTransactionLink.js +1 -1
- package/utils/transactions/index.js +1 -1
- package/utils/waitForChainID.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-2A6RFZR7.js +0 -2
- package/__chunks__/chunk-A4GSZIRT.js +0 -2
- package/__chunks__/chunk-AAB6CQ5I.js +0 -2
- package/__chunks__/chunk-B54JX4WR.js +0 -2
- package/__chunks__/chunk-G44BWGNI.js +0 -2
- package/__chunks__/chunk-IT7ZT2P2.js +0 -2
- package/__chunks__/chunk-KW2IGPRW.js +0 -2
- package/__chunks__/chunk-M3SBK7QY.js +0 -2
- package/__chunks__/chunk-NNWTCWNG.js +0 -2
- package/__chunks__/chunk-O4UBBQ7Y.js +0 -2
- package/__chunks__/chunk-ODKCHYNM.js +0 -2
- package/__chunks__/chunk-SVA5I3CY.js +0 -2
- package/__chunks__/chunk-VPYNPYEE.js +0 -2
- package/__chunks__/chunk-VUWUMACI.js +0 -2
- package/__chunks__/chunk-VYISQ222.js +0 -2
- package/__chunks__/chunk-WLK77RUI.js +0 -2
- package/__chunks__/chunk-Y5QZ57NM.js +0 -2
- package/__chunks__/chunk-YG2WWRR5.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Tr=Object.create;var rr=Object.defineProperty;var Ur=Object.getOwnPropertyDescriptor;var Ir=Object.getOwnPropertyNames;var Cr=Object.getPrototypeOf,Sr=Object.prototype.hasOwnProperty;var Lr=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Rr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Ir(r))!Sr.call(e,i)&&i!==t&&rr(e,i,{get:()=>r[i],enumerable:!(n=Ur(r,i))||n.enumerable});return e};var tr=(e,r,t)=>(t=e!=null?Tr(Cr(e)):{},Rr(r||!e||!e.__esModule?rr(t,"default",{value:e,enumerable:!0}):t,e));var ir=N(q=>{"use strict";m();q.byteLength=Mr;q.toByteArray=Dr;q.fromByteArray=qr;var F=[],E=[],_r=typeof Uint8Array!="undefined"?Uint8Array:Array,H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(I=0,er=H.length;I<er;++I)F[I]=H[I],E[H.charCodeAt(I)]=I;var I,er;E["-".charCodeAt(0)]=62;E["_".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 n=t===r?0:4-t%4;return[t,n]}function Mr(e){var r=nr(e),t=r[0],n=r[1];return(t+n)*3/4-n}function kr(e,r,t){return(r+t)*3/4-t}function Dr(e){var r,t=nr(e),n=t[0],i=t[1],o=new _r(kr(e,n,i)),u=0,h=i>0?n-4:n,f;for(f=0;f<h;f+=4)r=E[e.charCodeAt(f)]<<18|E[e.charCodeAt(f+1)]<<12|E[e.charCodeAt(f+2)]<<6|E[e.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=E[e.charCodeAt(f)]<<2|E[e.charCodeAt(f+1)]>>4,o[u++]=r&255),i===1&&(r=E[e.charCodeAt(f)]<<10|E[e.charCodeAt(f+1)]<<4|E[e.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function br(e){return F[e>>18&63]+F[e>>12&63]+F[e>>6&63]+F[e&63]}function Nr(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(br(n));return i.join("")}function qr(e){for(var r,t=e.length,n=t%3,i=[],o=16383,u=0,h=t-n;u<h;u+=o)i.push(Nr(e,u,u+o>h?h:u+o));return n===1?(r=e[t-1],i.push(F[r>>2]+F[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),i.join("")}});var or=N(X=>{m();X.read=function(e,r,t,n,i){var o,u,h=i*8-n-1,f=(1<<h)-1,c=f>>1,s=-7,p=t?i-1:0,g=t?-1:1,x=e[r+p];for(p+=g,o=x&(1<<-s)-1,x>>=-s,s+=h;s>0;o=o*256+e[r+p],p+=g,s-=8);for(u=o&(1<<-s)-1,o>>=-s,s+=n;s>0;u=u*256+e[r+p],p+=g,s-=8);if(o===0)o=1-c;else{if(o===f)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-c}return(x?-1:1)*u*Math.pow(2,o-n)};X.write=function(e,r,t,n,i,o){var u,h,f,c=o*8-i-1,s=(1<<c)-1,p=s>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:o-1,L=n?1:-1,dr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=s):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?r+=g/f:r+=g*Math.pow(2,1-p),r*f>=2&&(u++,f/=2),u+p>=s?(h=0,u=s):u+p>=1?(h=(r*f-1)*Math.pow(2,i),u=u+p):(h=r*Math.pow(2,p-1)*Math.pow(2,i),u=0));i>=8;e[t+x]=h&255,x+=L,h/=256,i-=8);for(u=u<<i|h,c+=i;c>0;e[t+x]=u&255,x+=L,u/=256,c-=8);e[t+x-L]|=dr*128}});var Er=N(k=>{"use strict";m();var J=ir(),M=or(),ur=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;k.Buffer=a;k.SlowBuffer=Xr;k.INSPECT_MAX_BYTES=50;var G=2147483647;k.kMaxLength=G;a.TYPED_ARRAY_SUPPORT=Gr();!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 Gr(){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 d(e){if(e>G)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 O(e)}return fr(e,r,t)}a.poolSize=8192;function fr(e,r,t){if(typeof e=="string")return Yr(e,r);if(ArrayBuffer.isView(e))return zr(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(v(e,ArrayBuffer)||e&&v(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(v(e,SharedArrayBuffer)||e&&v(e.buffer,SharedArrayBuffer)))return V(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return a.from(n,r,t);var i=Hr(e);if(i)return i;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 fr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function pr(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 Wr(e,r,t){return pr(e),e<=0?d(e):r!==void 0?typeof t=="string"?d(e).fill(r,t):d(e).fill(r):d(e)}a.alloc=function(e,r,t){return Wr(e,r,t)};function O(e){return pr(e),d(e<0?0:Z(e)|0)}a.allocUnsafe=function(e){return O(e)};a.allocUnsafeSlow=function(e){return O(e)};function Yr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=cr(e,r)|0,n=d(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function Q(e){for(var r=e.length<0?0:Z(e.length)|0,t=d(r),n=0;n<r;n+=1)t[n]=e[n]&255;return t}function zr(e){if(v(e,Uint8Array)){var r=new Uint8Array(e);return V(r.buffer,r.byteOffset,r.byteLength)}return Q(e)}function V(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 n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,a.prototype),n}function Hr(e){if(a.isBuffer(e)){var r=Z(e.length)|0,t=d(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||$(e.length)?d(0):Q(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Q(e.data)}function Z(e){if(e>=G)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G.toString(16)+" bytes");return e|0}function Xr(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(v(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),v(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 n=r.length,i=t.length,o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?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 n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=a.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){var u=r[n];if(v(u,Uint8Array))o+u.length>i.length?a.from(u).copy(i,o):Uint8Array.prototype.set.call(i,u,o);else if(a.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function cr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||v(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,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return mr(e).length;default:if(i)return n?-1:K(e).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=cr;function Jr(e,r,t){var n=!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 tt(this,r,t);case"utf8":case"utf-8":return lr(this,r,t);case"ascii":return Pr(this,r,t);case"latin1":case"binary":return rt(this,r,t);case"base64":return $r(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function C(e,r,t){var n=e[r];e[r]=e[t],e[t]=n}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?lr(this,0,r):Jr.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=k.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};ur&&(a.prototype[ur]=a.prototype.inspect);a.prototype.compare=function(r,t,n,i,o){if(v(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),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var u=o-i,h=n-t,f=Math.min(u,h),c=this.slice(i,o),s=r.slice(t,n),p=0;p<f;++p)if(c[p]!==s[p]){u=c[p],h=s[p];break}return u<h?-1:h<u?1:0};function sr(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,$(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:ar(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):ar(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function ar(e,r,t,n,i){var o=1,u=e.length,h=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="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(i){var s=-1;for(c=t;c<u;c++)if(f(e,c)===f(r,s===-1?0:c-s)){if(s===-1&&(s=c),c-s+1===h)return s*o}else s!==-1&&(c-=c-s),s=-1}else for(t+h>u&&(t=u-h),c=t;c>=0;c--){for(var p=!0,g=0;g<h;g++)if(f(e,c+g)!==f(r,g)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};a.prototype.indexOf=function(r,t,n){return sr(this,r,t,n,!0)};a.prototype.lastIndexOf=function(r,t,n){return sr(this,r,t,n,!1)};function Qr(e,r,t,n){t=Number(t)||0;var i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var u=0;u<n;++u){var h=parseInt(r.substr(u*2,2),16);if($(h))return u;e[t+u]=h}return u}function Vr(e,r,t,n){return W(K(r,e.length-t),e,t,n)}function Kr(e,r,t,n){return W(ut(r),e,t,n)}function Or(e,r,t,n){return W(mr(r),e,t,n)}function Zr(e,r,t,n){return W(at(r,e.length-t),e,t,n)}a.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return Qr(this,r,t,n);case"utf8":case"utf-8":return Vr(this,r,t,n);case"ascii":case"latin1":case"binary":return Kr(this,r,t,n);case"base64":return Or(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zr(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function $r(e,r,t){return r===0&&t===e.length?J.fromByteArray(e):J.fromByteArray(e.slice(r,t))}function lr(e,r,t){t=Math.min(e.length,t);for(var n=[],i=r;i<t;){var o=e[i],u=null,h=o>239?4:o>223?3:o>191?2:1;if(i+h<=t){var f,c,s,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=e[i+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=e[i+1],c=e[i+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[i+1],c=e[i+2],s=e[i+3],(f&192)===128&&(c&192)===128&&(s&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|s&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=h}return jr(n)}var hr=4096;function jr(e){var r=e.length;if(r<=hr)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=hr));return t}function Pr(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function rt(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function tt(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var i="",o=r;o<t;++o)i+=ht[e[o]];return i}function et(e,r,t){for(var n=e.slice(r,t),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}a.prototype.slice=function(r,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,a.prototype),i};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,n){r=r>>>0,t=t>>>0,n||w(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||w(r,t,this.length);for(var i=this[r+--t],o=1;t>0&&(o*=256);)i+=this[r+--t]*o;return i};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,n){r=r>>>0,t=t>>>0,n||w(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};a.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||w(r,t,this.length);for(var i=t,o=1,u=this[r+--i];i>0&&(o*=256);)u+=this[r+--i]*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 n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};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),M.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),M.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),M.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),M.read(this,r,!1,52,8)};function y(e,r,t,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;y(this,r,t,n,o,0)}var u=1,h=0;for(this[t]=r&255;++h<n&&(u*=256);)this[t+h]=r/u&255;return t+n};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;y(this,r,t,n,o,0)}var u=n-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||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,n){return r=+r,t=t>>>0,n||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,n){return r=+r,t=t>>>0,n||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,n){return r=+r,t=t>>>0,n||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,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);y(this,r,t,n,o-1,-o)}var u=0,h=1,f=0;for(this[t]=r&255;++u<n&&(h*=256);)r<0&&f===0&&this[t+u-1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+n};a.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);y(this,r,t,n,o-1,-o)}var u=n-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+n};a.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||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,n){return r=+r,t=t>>>0,n||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||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,n){return r=+r,t=t>>>0,n||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 wr(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function yr(e,r,t,n,i){return r=+r,t=t>>>0,i||wr(e,r,t,4,34028234663852886e22,-34028234663852886e22),M.write(e,r,t,n,23,4),t+4}a.prototype.writeFloatLE=function(r,t,n){return yr(this,r,t,!0,n)};a.prototype.writeFloatBE=function(r,t,n){return yr(this,r,t,!1,n)};function xr(e,r,t,n,i){return r=+r,t=t>>>0,i||wr(e,r,t,8,17976931348623157e292,-17976931348623157e292),M.write(e,r,t,n,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,n){return xr(this,r,t,!0,n)};a.prototype.writeDoubleBE=function(r,t,n){return xr(this,r,t,!1,n)};a.prototype.copy=function(r,t,n,i){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};a.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else{var h=a.isBuffer(r)?r:a.from(r,i),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=h[u%f]}return this};var nt=/[^+/0-9A-Za-z-_]/g;function ot(e){if(e=e.split("=")[0],e=e.trim().replace(nt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function K(e,r){r=r||1/0;for(var t,n=e.length,i=null,o=[],u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=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 ut(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function at(e,r){for(var t,n,i,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function mr(e){return J.toByteArray(ot(e))}function W(e,r,t,n){for(var i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function v(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function $(e){return e!==e}var ht=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)r[n+i]=e[t]+e[i];return r}()});var Ar=N((yt,Br)=>{m();var l=Br.exports={},B,A;function j(){throw new Error("setTimeout has not been defined")}function P(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?B=setTimeout:B=j}catch(e){B=j}try{typeof clearTimeout=="function"?A=clearTimeout:A=P}catch(e){A=P}})();function gr(e){if(B===setTimeout)return setTimeout(e,0);if((B===j||!B)&&setTimeout)return B=setTimeout,setTimeout(e,0);try{return B(e,0)}catch(r){try{return B.call(null,e,0)}catch(t){return B.call(this,e,0)}}}function ft(e){if(A===clearTimeout)return clearTimeout(e);if((A===P||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(e);try{return A(e)}catch(r){try{return A.call(null,e)}catch(t){return A.call(this,e)}}}var T=[],D=!1,S,Y=-1;function pt(){!D||!S||(D=!1,S.length?T=S.concat(T):Y=-1,T.length&&Fr())}function Fr(){if(!D){var e=gr(pt);D=!0;for(var r=T.length;r;){for(S=T,T=[];++Y<r;)S&&S[Y].run();Y=-1,r=T.length}S=null,D=!1,ft(e)}}l.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 vr(e,r)),T.length===1&&!D&&gr(Fr)};function vr(e,r){this.fun=e,this.array=r}vr.prototype.run=function(){this.fun.apply(null,this.array)};l.title="browser";l.browser=!0;l.env={};l.argv=[];l.version="";l.versions={};function U(){}l.on=U;l.addListener=U;l.once=U;l.off=U;l.removeListener=U;l.removeAllListeners=U;l.emit=U;l.prependListener=U;l.prependOnceListener=U;l.listeners=function(e){return[]};l.binding=function(e){throw new Error("process.binding is not supported")};l.cwd=function(){return"/"};l.chdir=function(e){throw new Error("process.chdir is not supported")};l.umask=function(){return 0}});var R,_,xt,m=Lr(()=>{R=tr(Er()),_=tr(Ar()),xt=function(e){function r(){var n=this||self;return delete e.prototype.__magic__,n}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)});m();m();var z=e=>{let r=0;return e.map(t=>t.map(()=>r++))};describe("generateBatchTransactionsGrouping",()=>{it("should generate batch transactions grouping correctly",()=>{let e="erd1wh9c0sjr2xn8hzf02lwwcr4jk2s84tat9ud2kaq6zr7xzpvl9l5q8awmex",r=[[{receiver:e,sender:e,value:"0",data:"1"},{receiver:e,sender:e,value:"0",data:"2"}],[{receiver:e,sender:e,value:"0",data:"3"}],[{receiver:e,sender:e,value:"0",data:"4"},{receiver:e,sender:e,value:"0",data:"5"},{receiver:e,sender:e,value:"0",data:"6"}]],t=[[0,1],[2],[3,4,5]],n=z(r);expect(n).toEqual(t)}),it("should handle empty input",()=>{let r=z([]);expect(r).toEqual([])}),it("should handle nested empty arrays",()=>{let r=z([[],[],[]]);expect(r).toEqual([[],[],[]])})});
|
|
1
|
+
"use strict";var dr=Object.create;var rr=Object.defineProperty;var Ur=Object.getOwnPropertyDescriptor;var Ir=Object.getOwnPropertyNames;var Cr=Object.getPrototypeOf,Sr=Object.prototype.hasOwnProperty;var Lr=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Rr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Ir(r))!Sr.call(e,i)&&i!==t&&rr(e,i,{get:()=>r[i],enumerable:!(n=Ur(r,i))||n.enumerable});return e};var tr=(e,r,t)=>(t=e!=null?dr(Cr(e)):{},Rr(r||!e||!e.__esModule?rr(t,"default",{value:e,enumerable:!0}):t,e));var ir=N(q=>{"use strict";m();q.byteLength=Mr;q.toByteArray=Dr;q.fromByteArray=qr;var F=[],E=[],_r=typeof Uint8Array!="undefined"?Uint8Array:Array,H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(I=0,er=H.length;I<er;++I)F[I]=H[I],E[H.charCodeAt(I)]=I;var I,er;E["-".charCodeAt(0)]=62;E["_".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 n=t===r?0:4-t%4;return[t,n]}function Mr(e){var r=nr(e),t=r[0],n=r[1];return(t+n)*3/4-n}function kr(e,r,t){return(r+t)*3/4-t}function Dr(e){var r,t=nr(e),n=t[0],i=t[1],o=new _r(kr(e,n,i)),u=0,h=i>0?n-4:n,f;for(f=0;f<h;f+=4)r=E[e.charCodeAt(f)]<<18|E[e.charCodeAt(f+1)]<<12|E[e.charCodeAt(f+2)]<<6|E[e.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=E[e.charCodeAt(f)]<<2|E[e.charCodeAt(f+1)]>>4,o[u++]=r&255),i===1&&(r=E[e.charCodeAt(f)]<<10|E[e.charCodeAt(f+1)]<<4|E[e.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function br(e){return F[e>>18&63]+F[e>>12&63]+F[e>>6&63]+F[e&63]}function Nr(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(br(n));return i.join("")}function qr(e){for(var r,t=e.length,n=t%3,i=[],o=16383,u=0,h=t-n;u<h;u+=o)i.push(Nr(e,u,u+o>h?h:u+o));return n===1?(r=e[t-1],i.push(F[r>>2]+F[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),i.join("")}});var or=N(X=>{m();X.read=function(e,r,t,n,i){var o,u,h=i*8-n-1,f=(1<<h)-1,c=f>>1,s=-7,p=t?i-1:0,g=t?-1:1,x=e[r+p];for(p+=g,o=x&(1<<-s)-1,x>>=-s,s+=h;s>0;o=o*256+e[r+p],p+=g,s-=8);for(u=o&(1<<-s)-1,o>>=-s,s+=n;s>0;u=u*256+e[r+p],p+=g,s-=8);if(o===0)o=1-c;else{if(o===f)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-c}return(x?-1:1)*u*Math.pow(2,o-n)};X.write=function(e,r,t,n,i,o){var u,h,f,c=o*8-i-1,s=(1<<c)-1,p=s>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:o-1,L=n?1:-1,Tr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=s):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?r+=g/f:r+=g*Math.pow(2,1-p),r*f>=2&&(u++,f/=2),u+p>=s?(h=0,u=s):u+p>=1?(h=(r*f-1)*Math.pow(2,i),u=u+p):(h=r*Math.pow(2,p-1)*Math.pow(2,i),u=0));i>=8;e[t+x]=h&255,x+=L,h/=256,i-=8);for(u=u<<i|h,c+=i;c>0;e[t+x]=u&255,x+=L,u/=256,c-=8);e[t+x-L]|=Tr*128}});var Er=N(k=>{"use strict";m();var J=ir(),M=or(),ur=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;k.Buffer=a;k.SlowBuffer=Xr;k.INSPECT_MAX_BYTES=50;var G=2147483647;k.kMaxLength=G;a.TYPED_ARRAY_SUPPORT=Gr();!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 Gr(){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 T(e){if(e>G)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 O(e)}return fr(e,r,t)}a.poolSize=8192;function fr(e,r,t){if(typeof e=="string")return Yr(e,r);if(ArrayBuffer.isView(e))return zr(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(v(e,ArrayBuffer)||e&&v(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(v(e,SharedArrayBuffer)||e&&v(e.buffer,SharedArrayBuffer)))return V(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return a.from(n,r,t);var i=Hr(e);if(i)return i;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 fr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function pr(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 Wr(e,r,t){return pr(e),e<=0?T(e):r!==void 0?typeof t=="string"?T(e).fill(r,t):T(e).fill(r):T(e)}a.alloc=function(e,r,t){return Wr(e,r,t)};function O(e){return pr(e),T(e<0?0:Z(e)|0)}a.allocUnsafe=function(e){return O(e)};a.allocUnsafeSlow=function(e){return O(e)};function Yr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=cr(e,r)|0,n=T(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function Q(e){for(var r=e.length<0?0:Z(e.length)|0,t=T(r),n=0;n<r;n+=1)t[n]=e[n]&255;return t}function zr(e){if(v(e,Uint8Array)){var r=new Uint8Array(e);return V(r.buffer,r.byteOffset,r.byteLength)}return Q(e)}function V(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 n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,a.prototype),n}function Hr(e){if(a.isBuffer(e)){var r=Z(e.length)|0,t=T(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||$(e.length)?T(0):Q(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Q(e.data)}function Z(e){if(e>=G)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G.toString(16)+" bytes");return e|0}function Xr(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(v(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),v(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 n=r.length,i=t.length,o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?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 n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=a.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){var u=r[n];if(v(u,Uint8Array))o+u.length>i.length?a.from(u).copy(i,o):Uint8Array.prototype.set.call(i,u,o);else if(a.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function cr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||v(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,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return mr(e).length;default:if(i)return n?-1:K(e).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=cr;function Jr(e,r,t){var n=!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 tt(this,r,t);case"utf8":case"utf-8":return lr(this,r,t);case"ascii":return Pr(this,r,t);case"latin1":case"binary":return rt(this,r,t);case"base64":return $r(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function C(e,r,t){var n=e[r];e[r]=e[t],e[t]=n}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?lr(this,0,r):Jr.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=k.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};ur&&(a.prototype[ur]=a.prototype.inspect);a.prototype.compare=function(r,t,n,i,o){if(v(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),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var u=o-i,h=n-t,f=Math.min(u,h),c=this.slice(i,o),s=r.slice(t,n),p=0;p<f;++p)if(c[p]!==s[p]){u=c[p],h=s[p];break}return u<h?-1:h<u?1:0};function sr(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,$(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:ar(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):ar(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function ar(e,r,t,n,i){var o=1,u=e.length,h=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="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(i){var s=-1;for(c=t;c<u;c++)if(f(e,c)===f(r,s===-1?0:c-s)){if(s===-1&&(s=c),c-s+1===h)return s*o}else s!==-1&&(c-=c-s),s=-1}else for(t+h>u&&(t=u-h),c=t;c>=0;c--){for(var p=!0,g=0;g<h;g++)if(f(e,c+g)!==f(r,g)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};a.prototype.indexOf=function(r,t,n){return sr(this,r,t,n,!0)};a.prototype.lastIndexOf=function(r,t,n){return sr(this,r,t,n,!1)};function Qr(e,r,t,n){t=Number(t)||0;var i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var u=0;u<n;++u){var h=parseInt(r.substr(u*2,2),16);if($(h))return u;e[t+u]=h}return u}function Vr(e,r,t,n){return W(K(r,e.length-t),e,t,n)}function Kr(e,r,t,n){return W(ut(r),e,t,n)}function Or(e,r,t,n){return W(mr(r),e,t,n)}function Zr(e,r,t,n){return W(at(r,e.length-t),e,t,n)}a.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return Qr(this,r,t,n);case"utf8":case"utf-8":return Vr(this,r,t,n);case"ascii":case"latin1":case"binary":return Kr(this,r,t,n);case"base64":return Or(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zr(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function $r(e,r,t){return r===0&&t===e.length?J.fromByteArray(e):J.fromByteArray(e.slice(r,t))}function lr(e,r,t){t=Math.min(e.length,t);for(var n=[],i=r;i<t;){var o=e[i],u=null,h=o>239?4:o>223?3:o>191?2:1;if(i+h<=t){var f,c,s,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=e[i+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=e[i+1],c=e[i+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[i+1],c=e[i+2],s=e[i+3],(f&192)===128&&(c&192)===128&&(s&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|s&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=h}return jr(n)}var hr=4096;function jr(e){var r=e.length;if(r<=hr)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=hr));return t}function Pr(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function rt(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function tt(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var i="",o=r;o<t;++o)i+=ht[e[o]];return i}function et(e,r,t){for(var n=e.slice(r,t),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}a.prototype.slice=function(r,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,a.prototype),i};function y(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,n){r=r>>>0,t=t>>>0,n||y(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||y(r,t,this.length);for(var i=this[r+--t],o=1;t>0&&(o*=256);)i+=this[r+--t]*o;return i};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||y(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||y(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||y(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||y(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||y(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||y(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};a.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||y(r,t,this.length);for(var i=t,o=1,u=this[r+--i];i>0&&(o*=256);)u+=this[r+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||y(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||y(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||y(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||y(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||y(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||y(r,4,this.length),M.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||y(r,4,this.length),M.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||y(r,8,this.length),M.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||y(r,8,this.length),M.read(this,r,!1,52,8)};function w(e,r,t,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,r,t,n,o,0)}var u=1,h=0;for(this[t]=r&255;++h<n&&(u*=256);)this[t+h]=r/u&255;return t+n};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,r,t,n,o,0)}var u=n-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||w(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,n){return r=+r,t=t>>>0,n||w(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,n){return r=+r,t=t>>>0,n||w(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,n){return r=+r,t=t>>>0,n||w(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,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);w(this,r,t,n,o-1,-o)}var u=0,h=1,f=0;for(this[t]=r&255;++u<n&&(h*=256);)r<0&&f===0&&this[t+u-1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+n};a.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);w(this,r,t,n,o-1,-o)}var u=n-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+n};a.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||w(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,n){return r=+r,t=t>>>0,n||w(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,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function wr(e,r,t,n,i){return r=+r,t=t>>>0,i||yr(e,r,t,4,34028234663852886e22,-34028234663852886e22),M.write(e,r,t,n,23,4),t+4}a.prototype.writeFloatLE=function(r,t,n){return wr(this,r,t,!0,n)};a.prototype.writeFloatBE=function(r,t,n){return wr(this,r,t,!1,n)};function xr(e,r,t,n,i){return r=+r,t=t>>>0,i||yr(e,r,t,8,17976931348623157e292,-17976931348623157e292),M.write(e,r,t,n,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,n){return xr(this,r,t,!0,n)};a.prototype.writeDoubleBE=function(r,t,n){return xr(this,r,t,!1,n)};a.prototype.copy=function(r,t,n,i){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};a.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else{var h=a.isBuffer(r)?r:a.from(r,i),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=h[u%f]}return this};var nt=/[^+/0-9A-Za-z-_]/g;function ot(e){if(e=e.split("=")[0],e=e.trim().replace(nt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function K(e,r){r=r||1/0;for(var t,n=e.length,i=null,o=[],u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=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 ut(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function at(e,r){for(var t,n,i,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function mr(e){return J.toByteArray(ot(e))}function W(e,r,t,n){for(var i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function v(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function $(e){return e!==e}var ht=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)r[n+i]=e[t]+e[i];return r}()});var Ar=N((wt,Br)=>{m();var l=Br.exports={},B,A;function j(){throw new Error("setTimeout has not been defined")}function P(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?B=setTimeout:B=j}catch(e){B=j}try{typeof clearTimeout=="function"?A=clearTimeout:A=P}catch(e){A=P}})();function gr(e){if(B===setTimeout)return setTimeout(e,0);if((B===j||!B)&&setTimeout)return B=setTimeout,setTimeout(e,0);try{return B(e,0)}catch(r){try{return B.call(null,e,0)}catch(t){return B.call(this,e,0)}}}function ft(e){if(A===clearTimeout)return clearTimeout(e);if((A===P||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(e);try{return A(e)}catch(r){try{return A.call(null,e)}catch(t){return A.call(this,e)}}}var d=[],D=!1,S,Y=-1;function pt(){!D||!S||(D=!1,S.length?d=S.concat(d):Y=-1,d.length&&Fr())}function Fr(){if(!D){var e=gr(pt);D=!0;for(var r=d.length;r;){for(S=d,d=[];++Y<r;)S&&S[Y].run();Y=-1,r=d.length}S=null,D=!1,ft(e)}}l.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];d.push(new vr(e,r)),d.length===1&&!D&&gr(Fr)};function vr(e,r){this.fun=e,this.array=r}vr.prototype.run=function(){this.fun.apply(null,this.array)};l.title="browser";l.browser=!0;l.env={};l.argv=[];l.version="";l.versions={};function U(){}l.on=U;l.addListener=U;l.once=U;l.off=U;l.removeListener=U;l.removeAllListeners=U;l.emit=U;l.prependListener=U;l.prependOnceListener=U;l.listeners=function(e){return[]};l.binding=function(e){throw new Error("process.binding is not supported")};l.cwd=function(){return"/"};l.chdir=function(e){throw new Error("process.chdir is not supported")};l.umask=function(){return 0}});var R,_,xt,m=Lr(()=>{R=tr(Er()),_=tr(Ar()),xt=function(e){function r(){var n=this||self;return delete e.prototype.__magic__,n}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)});m();m();var z=e=>{let r=0;return e.map(t=>t.map(()=>r++))};describe("generateBatchTransactionsGrouping",()=>{it("should generate batch transactions grouping correctly",()=>{let e="erd1axhx4kenjlae6sknq7zjg2g4fvzavv979r2fg425p62wkl84avtqsf7vvv",r=[[{receiver:e,sender:e,value:"0",data:"1"},{receiver:e,sender:e,value:"0",data:"2"}],[{receiver:e,sender:e,value:"0",data:"3"}],[{receiver:e,sender:e,value:"0",data:"4"},{receiver:e,sender:e,value:"0",data:"5"},{receiver:e,sender:e,value:"0",data:"6"}]],t=[[0,1],[2],[3,4,5]],n=z(r);expect(n).toEqual(t)}),it("should handle empty input",()=>{let r=z([]);expect(r).toEqual([])}),it("should handle nested empty arrays",()=>{let r=z([[],[],[]]);expect(r).toEqual([[],[],[]])})});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var He=Object.create;var G=Object.defineProperty,qe=Object.defineProperties,ze=Object.getOwnPropertyDescriptor,je=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertyNames,ae=Object.getOwnPropertySymbols,Ke=Object.getPrototypeOf,le=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable;var se=(t,e,r)=>e in t?G(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,I=(t,e)=>{for(var r in e||(e={}))le.call(e,r)&&se(t,r,e[r]);if(ae)for(var r of ae(e))Ye.call(e,r)&&se(t,r,e[r]);return t},ce=(t,e)=>qe(t,je(e));var $e=(t,e)=>()=>(t&&(e=t(t=0)),e);var W=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Je=(t,e)=>{for(var r in e)G(t,r,{get:e[r],enumerable:!0})},pe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Xe(e))!le.call(t,i)&&i!==r&&G(t,i,{get:()=>e[i],enumerable:!(n=ze(e,i))||n.enumerable});return t};var ue=(t,e,r)=>(r=t!=null?He(Ke(t)):{},pe(e||!t||!t.__esModule?G(r,"default",{value:t,enumerable:!0}):r,t)),Ze=t=>pe(G({},"__esModule",{value:!0}),t);var fe=W(V=>{"use strict";l();V.byteLength=er;V.toByteArray=tr;V.fromByteArray=or;var k=[],v=[],Qe=typeof Uint8Array!="undefined"?Uint8Array:Array,j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(F=0,de=j.length;F<de;++F)k[F]=j[F],v[j.charCodeAt(F)]=F;var F,de;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function ge(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function er(t){var e=ge(t),r=e[0],n=e[1];return(r+n)*3/4-n}function rr(t,e,r){return(e+r)*3/4-r}function tr(t){var e,r=ge(t),n=r[0],i=r[1],o=new Qe(rr(t,n,i)),a=0,c=i>0?n-4:n,p;for(p=0;p<c;p+=4)e=v[t.charCodeAt(p)]<<18|v[t.charCodeAt(p+1)]<<12|v[t.charCodeAt(p+2)]<<6|v[t.charCodeAt(p+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=v[t.charCodeAt(p)]<<2|v[t.charCodeAt(p+1)]>>4,o[a++]=e&255),i===1&&(e=v[t.charCodeAt(p)]<<10|v[t.charCodeAt(p+1)]<<4|v[t.charCodeAt(p+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function nr(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function ir(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(nr(n));return i.join("")}function or(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(ir(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var me=W(X=>{l();X.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,p=(1<<c)-1,d=p>>1,g=-7,u=r?i-1:0,T=r?-1:1,b=t[e+u];for(u+=T,o=b&(1<<-g)-1,b>>=-g,g+=c;g>0;o=o*256+t[e+u],u+=T,g-=8);for(a=o&(1<<-g)-1,o>>=-g,g+=n;g>0;a=a*256+t[e+u],u+=T,g-=8);if(o===0)o=1-d;else{if(o===p)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-d}return(b?-1:1)*a*Math.pow(2,o-n)};X.write=function(t,e,r,n,i,o){var a,c,p,d=o*8-i-1,g=(1<<d)-1,u=g>>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:o-1,U=n?1:-1,Ve=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=g):(a=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+u>=1?e+=T/p:e+=T*Math.pow(2,1-u),e*p>=2&&(a++,p/=2),a+u>=g?(c=0,a=g):a+u>=1?(c=(e*p-1)*Math.pow(2,i),a=a+u):(c=e*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;t[r+b]=c&255,b+=U,c/=256,i-=8);for(a=a<<i|c,d+=i;d>0;t[r+b]=a&255,b+=U,a/=256,d-=8);t[r+b-U]|=Ve*128}});var Ie=W(P=>{"use strict";l();var K=fe(),D=me(),he=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;P.Buffer=s;P.SlowBuffer=ur;P.INSPECT_MAX_BYTES=50;var H=2147483647;P.kMaxLength=H;s.TYPED_ARRAY_SUPPORT=ar();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ar(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function L(t){if(t>H)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Z(t)}return we(t,e,r)}s.poolSize=8192;function we(t,e,r){if(typeof t=="string")return lr(t,e);if(ArrayBuffer.isView(t))return cr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return $(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=pr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return we(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function be(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function sr(t,e,r){return be(t),t<=0?L(t):e!==void 0?typeof r=="string"?L(t).fill(e,r):L(t).fill(e):L(t)}s.alloc=function(t,e,r){return sr(t,e,r)};function Z(t){return be(t),L(t<0?0:Q(t)|0)}s.allocUnsafe=function(t){return Z(t)};s.allocUnsafeSlow=function(t){return Z(t)};function lr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=ve(t,e)|0,n=L(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Y(t){for(var e=t.length<0?0:Q(t.length)|0,r=L(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function cr(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return $(e.buffer,e.byteOffset,e.byteLength)}return Y(t)}function $(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function pr(t){if(s.isBuffer(t)){var e=Q(t.length)|0,r=L(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ee(t.length)?L(0):Y(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Y(t.data)}function Q(t){if(t>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return t|0}function ur(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),_(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,a=Math.min(n,i);o<a;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[n];if(_(a,Uint8Array))o+a.length>i.length?s.from(a).copy(i,o):Uint8Array.prototype.set.call(i,a,o);else if(s.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function ve(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Se(t).length;default:if(i)return n?-1:J(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=ve;function dr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return Tr(this,e,r);case"utf8":case"utf-8":return ke(this,e,r);case"ascii":return br(this,e,r);case"latin1":case"binary":return vr(this,e,r);case"base64":return xr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function C(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)C(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)C(this,r,r+3),C(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)C(this,r,r+7),C(this,r+1,r+6),C(this,r+2,r+5),C(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?ke(this,0,e):dr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=P.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};he&&(s.prototype[he]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,o){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,c=n-r,p=Math.min(a,c),d=this.slice(i,o),g=e.slice(r,n),u=0;u<p;++u)if(d[u]!==g[u]){a=d[u],c=g[u];break}return a<c?-1:c<a?1:0};function Te(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ee(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:ye(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):ye(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ye(t,e,r,n,i){var o=1,a=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,r/=2}function p(b,U){return o===1?b[U]:b.readUInt16BE(U*o)}var d;if(i){var g=-1;for(d=r;d<a;d++)if(p(t,d)===p(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*o}else g!==-1&&(d-=d-g),g=-1}else for(r+c>a&&(r=a-c),d=r;d>=0;d--){for(var u=!0,T=0;T<c;T++)if(p(t,d+T)!==p(e,T)){u=!1;break}if(u)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return Te(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return Te(this,e,r,n,!1)};function gr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var c=parseInt(e.substr(a*2,2),16);if(ee(c))return a;t[r+a]=c}return a}function fr(t,e,r,n){return q(J(e,t.length-r),t,r,n)}function mr(t,e,r,n){return q(Rr(e),t,r,n)}function hr(t,e,r,n){return q(Se(e),t,r,n)}function yr(t,e,r,n){return q(Sr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return gr(this,e,r,n);case"utf8":case"utf-8":return fr(this,e,r,n);case"ascii":case"latin1":case"binary":return mr(this,e,r,n);case"base64":return hr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yr(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xr(t,e,r){return e===0&&r===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(e,r))}function ke(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,c=o>239?4:o>223?3:o>191?2:1;if(i+c<=r){var p,d,g,u;switch(c){case 1:o<128&&(a=o);break;case 2:p=t[i+1],(p&192)===128&&(u=(o&31)<<6|p&63,u>127&&(a=u));break;case 3:p=t[i+1],d=t[i+2],(p&192)===128&&(d&192)===128&&(u=(o&15)<<12|(p&63)<<6|d&63,u>2047&&(u<55296||u>57343)&&(a=u));break;case 4:p=t[i+1],d=t[i+2],g=t[i+3],(p&192)===128&&(d&192)===128&&(g&192)===128&&(u=(o&15)<<18|(p&63)<<12|(d&63)<<6|g&63,u>65535&&u<1114112&&(a=u))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=c}return wr(n)}var xe=4096;function wr(t){var e=t.length;if(e<=xe)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=xe));return r}function br(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function vr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Tr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Ir[t[o]];return i}function kr(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),D.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),D.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),D.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),D.read(this,e,!1,52,8)};function w(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=1,c=0;for(this[r]=e&255;++c<n&&(a*=256);)this[r+c]=e/a&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=n-1,c=1;for(this[r+a]=e&255;--a>=0&&(c*=256);)this[r+a]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=0,c=1,p=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&p===0&&this[r+a-1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=n-1,c=1,p=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&p===0&&this[r+a+1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function _e(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ae(t,e,r,n,i){return e=+e,r=r>>>0,i||_e(t,e,r,4,34028234663852886e22,-34028234663852886e22),D.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ae(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ae(this,e,r,!1,n)};function Re(t,e,r,n,i){return e=+e,r=r>>>0,i||_e(t,e,r,8,17976931348623157e292,-17976931348623157e292),D.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Re(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Re(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),p=c.length;if(p===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%p]}return this};var _r=/[^+/0-9A-Za-z-_]/g;function Ar(t){if(t=t.split("=")[0],t=t.trim().replace(_r,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function Rr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Sr(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Se(t){return K.toByteArray(Ar(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ee(t){return t!==t}var Ir=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Ce=W((Mr,Fe)=>{l();var y=Fe.exports={},A,R;function re(){throw new Error("setTimeout has not been defined")}function te(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=re}catch(t){A=re}try{typeof clearTimeout=="function"?R=clearTimeout:R=te}catch(t){R=te}})();function Le(t){if(A===setTimeout)return setTimeout(t,0);if((A===re||!A)&&setTimeout)return A=setTimeout,setTimeout(t,0);try{return A(t,0)}catch(e){try{return A.call(null,t,0)}catch(r){return A.call(this,t,0)}}}function Lr(t){if(R===clearTimeout)return clearTimeout(t);if((R===te||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(t);try{return R(t)}catch(e){try{return R.call(null,t)}catch(r){return R.call(this,t)}}}var E=[],O=!1,B,z=-1;function Er(){!O||!B||(O=!1,B.length?E=B.concat(E):z=-1,E.length&&Ee())}function Ee(){if(!O){var t=Le(Er);O=!0;for(var e=E.length;e;){for(B=E,E=[];++z<e;)B&&B[z].run();z=-1,e=E.length}B=null,O=!1,Lr(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];E.push(new Ne(t,e)),E.length===1&&!O&&Le(Ee)};function Ne(t,e){this.fun=t,this.array=e}Ne.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function N(){}y.on=N;y.addListener=N;y.once=N;y.off=N;y.removeListener=N;y.removeAllListeners=N;y.emit=N;y.prependListener=N;y.prependOnceListener=N;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var f,m,Gr,l=$e(()=>{f=ue(Ie()),m=ue(Ce()),Gr=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Br={};Je(Br,{builtCallbackUrl:()=>Cr});module.exports=Ze(Br);l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();var ne=require("@multiversx/sdk-dapp-utils/out/constants/crossWindowProviderConstants"),M=require("@multiversx/sdk-dapp-utils/out/enums/crossWindowProviderEnums");var Be=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(Be||{}),Zr=I(I({},M.CrossWindowProviderRequestEnums),Be),Ue=(e=>(e.reloginResponse="RELOGIN_RESPONSE",e))(Ue||{}),Qr=I(I({},M.CrossWindowProviderResponseEnums),Ue);l();l();l();l();l();l();var ie={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000",roundDuration:6e3},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000",roundDuration:6e3},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:De,egldLabel:ht}=ie["devnet"],{chainId:Pe,egldLabel:yt}=ie["testnet"],{chainId:Oe,egldLabel:xt}=ie["mainnet"];var wt={["devnet"]:De,["testnet"]:Pe,["mainnet"]:Oe},bt={[De]:"devnet",[Pe]:"testnet",[Oe]:"mainnet"};l();l();var S=require("@multiversx/sdk-web-wallet-provider");l();var Me,Ge,oe=String((Ge=(Me=ne.safeWindow)==null?void 0:Me.navigator)==null?void 0:Ge.userAgent),At=/^((?!chrome|android).)*safari/i.test(oe),Rt=/firefox/i.test(oe)&&/windows/i.test(oe);var We="sdk-dapp-version";function Nr(t,e){let r=new URLSearchParams(t),n=Object.fromEntries(r);return{nextUrlParams:new URLSearchParams(I(I({},n),e)).toString(),params:n}}var Fr="2.35.0-alpha.0";function Cr({callbackUrl:t,urlParams:e={}}){let r=t;if(Object.entries(e).length>0)try{let{search:n,origin:i,pathname:o,hash:a}=new URL(t),c=ce(I({},e),{[We]:Fr}),{nextUrlParams:p}=Nr(n,c);r=`${i}${o}?${p}${a}`}catch(n){return console.error("Unable to construct URL from: ",t,n),r}return r}0&&(module.exports={builtCallbackUrl});
|
|
1
|
+
"use strict";var He=Object.create;var G=Object.defineProperty,qe=Object.defineProperties,ze=Object.getOwnPropertyDescriptor,je=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertyNames,ae=Object.getOwnPropertySymbols,Ke=Object.getPrototypeOf,le=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable;var se=(t,e,r)=>e in t?G(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,I=(t,e)=>{for(var r in e||(e={}))le.call(e,r)&&se(t,r,e[r]);if(ae)for(var r of ae(e))Ye.call(e,r)&&se(t,r,e[r]);return t},ce=(t,e)=>qe(t,je(e));var $e=(t,e)=>()=>(t&&(e=t(t=0)),e);var W=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Je=(t,e)=>{for(var r in e)G(t,r,{get:e[r],enumerable:!0})},pe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Xe(e))!le.call(t,i)&&i!==r&&G(t,i,{get:()=>e[i],enumerable:!(n=ze(e,i))||n.enumerable});return t};var ue=(t,e,r)=>(r=t!=null?He(Ke(t)):{},pe(e||!t||!t.__esModule?G(r,"default",{value:t,enumerable:!0}):r,t)),Ze=t=>pe(G({},"__esModule",{value:!0}),t);var fe=W(V=>{"use strict";l();V.byteLength=er;V.toByteArray=tr;V.fromByteArray=or;var k=[],v=[],Qe=typeof Uint8Array!="undefined"?Uint8Array:Array,j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(F=0,de=j.length;F<de;++F)k[F]=j[F],v[j.charCodeAt(F)]=F;var F,de;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function ge(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function er(t){var e=ge(t),r=e[0],n=e[1];return(r+n)*3/4-n}function rr(t,e,r){return(e+r)*3/4-r}function tr(t){var e,r=ge(t),n=r[0],i=r[1],o=new Qe(rr(t,n,i)),a=0,c=i>0?n-4:n,p;for(p=0;p<c;p+=4)e=v[t.charCodeAt(p)]<<18|v[t.charCodeAt(p+1)]<<12|v[t.charCodeAt(p+2)]<<6|v[t.charCodeAt(p+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=v[t.charCodeAt(p)]<<2|v[t.charCodeAt(p+1)]>>4,o[a++]=e&255),i===1&&(e=v[t.charCodeAt(p)]<<10|v[t.charCodeAt(p+1)]<<4|v[t.charCodeAt(p+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function nr(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function ir(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(nr(n));return i.join("")}function or(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(ir(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var me=W(X=>{l();X.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,p=(1<<c)-1,d=p>>1,g=-7,u=r?i-1:0,T=r?-1:1,b=t[e+u];for(u+=T,o=b&(1<<-g)-1,b>>=-g,g+=c;g>0;o=o*256+t[e+u],u+=T,g-=8);for(a=o&(1<<-g)-1,o>>=-g,g+=n;g>0;a=a*256+t[e+u],u+=T,g-=8);if(o===0)o=1-d;else{if(o===p)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-d}return(b?-1:1)*a*Math.pow(2,o-n)};X.write=function(t,e,r,n,i,o){var a,c,p,d=o*8-i-1,g=(1<<d)-1,u=g>>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:o-1,U=n?1:-1,Ve=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=g):(a=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+u>=1?e+=T/p:e+=T*Math.pow(2,1-u),e*p>=2&&(a++,p/=2),a+u>=g?(c=0,a=g):a+u>=1?(c=(e*p-1)*Math.pow(2,i),a=a+u):(c=e*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;t[r+b]=c&255,b+=U,c/=256,i-=8);for(a=a<<i|c,d+=i;d>0;t[r+b]=a&255,b+=U,a/=256,d-=8);t[r+b-U]|=Ve*128}});var Ie=W(P=>{"use strict";l();var K=fe(),D=me(),he=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;P.Buffer=s;P.SlowBuffer=ur;P.INSPECT_MAX_BYTES=50;var H=2147483647;P.kMaxLength=H;s.TYPED_ARRAY_SUPPORT=ar();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ar(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function L(t){if(t>H)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Z(t)}return we(t,e,r)}s.poolSize=8192;function we(t,e,r){if(typeof t=="string")return lr(t,e);if(ArrayBuffer.isView(t))return cr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return $(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=pr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return we(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function be(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function sr(t,e,r){return be(t),t<=0?L(t):e!==void 0?typeof r=="string"?L(t).fill(e,r):L(t).fill(e):L(t)}s.alloc=function(t,e,r){return sr(t,e,r)};function Z(t){return be(t),L(t<0?0:Q(t)|0)}s.allocUnsafe=function(t){return Z(t)};s.allocUnsafeSlow=function(t){return Z(t)};function lr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=ve(t,e)|0,n=L(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Y(t){for(var e=t.length<0?0:Q(t.length)|0,r=L(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function cr(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return $(e.buffer,e.byteOffset,e.byteLength)}return Y(t)}function $(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function pr(t){if(s.isBuffer(t)){var e=Q(t.length)|0,r=L(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ee(t.length)?L(0):Y(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Y(t.data)}function Q(t){if(t>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return t|0}function ur(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),_(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,a=Math.min(n,i);o<a;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[n];if(_(a,Uint8Array))o+a.length>i.length?s.from(a).copy(i,o):Uint8Array.prototype.set.call(i,a,o);else if(s.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function ve(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Se(t).length;default:if(i)return n?-1:J(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=ve;function dr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return Tr(this,e,r);case"utf8":case"utf-8":return ke(this,e,r);case"ascii":return br(this,e,r);case"latin1":case"binary":return vr(this,e,r);case"base64":return xr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function C(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)C(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)C(this,r,r+3),C(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)C(this,r,r+7),C(this,r+1,r+6),C(this,r+2,r+5),C(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?ke(this,0,e):dr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=P.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};he&&(s.prototype[he]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,o){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,c=n-r,p=Math.min(a,c),d=this.slice(i,o),g=e.slice(r,n),u=0;u<p;++u)if(d[u]!==g[u]){a=d[u],c=g[u];break}return a<c?-1:c<a?1:0};function Te(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ee(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:ye(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):ye(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ye(t,e,r,n,i){var o=1,a=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,r/=2}function p(b,U){return o===1?b[U]:b.readUInt16BE(U*o)}var d;if(i){var g=-1;for(d=r;d<a;d++)if(p(t,d)===p(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*o}else g!==-1&&(d-=d-g),g=-1}else for(r+c>a&&(r=a-c),d=r;d>=0;d--){for(var u=!0,T=0;T<c;T++)if(p(t,d+T)!==p(e,T)){u=!1;break}if(u)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return Te(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return Te(this,e,r,n,!1)};function gr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var c=parseInt(e.substr(a*2,2),16);if(ee(c))return a;t[r+a]=c}return a}function fr(t,e,r,n){return q(J(e,t.length-r),t,r,n)}function mr(t,e,r,n){return q(Rr(e),t,r,n)}function hr(t,e,r,n){return q(Se(e),t,r,n)}function yr(t,e,r,n){return q(Sr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return gr(this,e,r,n);case"utf8":case"utf-8":return fr(this,e,r,n);case"ascii":case"latin1":case"binary":return mr(this,e,r,n);case"base64":return hr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yr(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xr(t,e,r){return e===0&&r===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(e,r))}function ke(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,c=o>239?4:o>223?3:o>191?2:1;if(i+c<=r){var p,d,g,u;switch(c){case 1:o<128&&(a=o);break;case 2:p=t[i+1],(p&192)===128&&(u=(o&31)<<6|p&63,u>127&&(a=u));break;case 3:p=t[i+1],d=t[i+2],(p&192)===128&&(d&192)===128&&(u=(o&15)<<12|(p&63)<<6|d&63,u>2047&&(u<55296||u>57343)&&(a=u));break;case 4:p=t[i+1],d=t[i+2],g=t[i+3],(p&192)===128&&(d&192)===128&&(g&192)===128&&(u=(o&15)<<18|(p&63)<<12|(d&63)<<6|g&63,u>65535&&u<1114112&&(a=u))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=c}return wr(n)}var xe=4096;function wr(t){var e=t.length;if(e<=xe)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=xe));return r}function br(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function vr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Tr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Ir[t[o]];return i}function kr(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),D.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),D.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),D.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),D.read(this,e,!1,52,8)};function w(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=1,c=0;for(this[r]=e&255;++c<n&&(a*=256);)this[r+c]=e/a&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=n-1,c=1;for(this[r+a]=e&255;--a>=0&&(c*=256);)this[r+a]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=0,c=1,p=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&p===0&&this[r+a-1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=n-1,c=1,p=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&p===0&&this[r+a+1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function _e(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ae(t,e,r,n,i){return e=+e,r=r>>>0,i||_e(t,e,r,4,34028234663852886e22,-34028234663852886e22),D.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ae(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ae(this,e,r,!1,n)};function Re(t,e,r,n,i){return e=+e,r=r>>>0,i||_e(t,e,r,8,17976931348623157e292,-17976931348623157e292),D.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Re(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Re(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),p=c.length;if(p===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%p]}return this};var _r=/[^+/0-9A-Za-z-_]/g;function Ar(t){if(t=t.split("=")[0],t=t.trim().replace(_r,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function Rr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Sr(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Se(t){return K.toByteArray(Ar(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ee(t){return t!==t}var Ir=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Ce=W((Mr,Fe)=>{l();var y=Fe.exports={},A,R;function re(){throw new Error("setTimeout has not been defined")}function te(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=re}catch(t){A=re}try{typeof clearTimeout=="function"?R=clearTimeout:R=te}catch(t){R=te}})();function Le(t){if(A===setTimeout)return setTimeout(t,0);if((A===re||!A)&&setTimeout)return A=setTimeout,setTimeout(t,0);try{return A(t,0)}catch(e){try{return A.call(null,t,0)}catch(r){return A.call(this,t,0)}}}function Lr(t){if(R===clearTimeout)return clearTimeout(t);if((R===te||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(t);try{return R(t)}catch(e){try{return R.call(null,t)}catch(r){return R.call(this,t)}}}var E=[],O=!1,B,z=-1;function Er(){!O||!B||(O=!1,B.length?E=B.concat(E):z=-1,E.length&&Ee())}function Ee(){if(!O){var t=Le(Er);O=!0;for(var e=E.length;e;){for(B=E,E=[];++z<e;)B&&B[z].run();z=-1,e=E.length}B=null,O=!1,Lr(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];E.push(new Ne(t,e)),E.length===1&&!O&&Le(Ee)};function Ne(t,e){this.fun=t,this.array=e}Ne.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function N(){}y.on=N;y.addListener=N;y.once=N;y.off=N;y.removeListener=N;y.removeAllListeners=N;y.emit=N;y.prependListener=N;y.prependOnceListener=N;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var f,m,Gr,l=$e(()=>{f=ue(Ie()),m=ue(Ce()),Gr=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Br={};Je(Br,{builtCallbackUrl:()=>Cr});module.exports=Ze(Br);l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();var ne=require("@multiversx/sdk-dapp-utils/out/constants/crossWindowProviderConstants"),M=require("@multiversx/sdk-dapp-utils/out/enums/crossWindowProviderEnums");var Be=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(Be||{}),Zr=I(I({},M.CrossWindowProviderRequestEnums),Be),Ue=(e=>(e.reloginResponse="RELOGIN_RESPONSE",e))(Ue||{}),Qr=I(I({},M.CrossWindowProviderResponseEnums),Ue);l();l();l();l();l();l();var ie={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000",roundDuration:6e3},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000",roundDuration:6e3},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:De,egldLabel:ht}=ie["devnet"],{chainId:Pe,egldLabel:yt}=ie["testnet"],{chainId:Oe,egldLabel:xt}=ie["mainnet"];var wt={["devnet"]:De,["testnet"]:Pe,["mainnet"]:Oe},bt={[De]:"devnet",[Pe]:"testnet",[Oe]:"mainnet"};l();l();var S=require("@multiversx/sdk-web-wallet-provider");l();var Me,Ge,oe=String((Ge=(Me=ne.safeWindow)==null?void 0:Me.navigator)==null?void 0:Ge.userAgent),At=/^((?!chrome|android).)*safari/i.test(oe),Rt=/firefox/i.test(oe)&&/windows/i.test(oe);var We="sdk-dapp-version";function Nr(t,e){let r=new URLSearchParams(t),n=Object.fromEntries(r);return{nextUrlParams:new URLSearchParams(I(I({},n),e)).toString(),params:n}}var Fr="2.35.0";function Cr({callbackUrl:t,urlParams:e={}}){let r=t;if(Object.entries(e).length>0)try{let{search:n,origin:i,pathname:o,hash:a}=new URL(t),c=ce(I({},e),{[We]:Fr}),{nextUrlParams:p}=Nr(n,c);r=`${i}${o}?${p}${a}`}catch(n){return console.error("Unable to construct URL from: ",t,n),r}return r}0&&(module.exports={builtCallbackUrl});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|