@multiversx/sdk-dapp 2.8.7 → 2.9.0-alpha.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/DappModal/hooks/index.js +1 -1
- package/UI/DappModal/hooks/useDappModal.js +1 -1
- package/UI/DappModal/index.js +1 -1
- package/UI/Denominate/index.js +1 -1
- package/UI/ExplorerLink/ExplorerLink.js +1 -1
- package/UI/ExplorerLink/index.js +1 -1
- package/UI/FormatAmount/FormatAmount.js +1 -1
- package/UI/FormatAmount/index.js +1 -1
- package/UI/ModalContainer/ModalContainer.js +1 -1
- package/UI/ModalContainer/index.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
- package/UI/SignTransactionsModals/components/index.js +1 -1
- package/UI/SignTransactionsModals/index.js +1 -1
- package/UI/TokenDetails/index.js +1 -1
- package/UI/TransactionData/index.js +1 -1
- package/UI/TransactionDetails/TransactionDetails.js +1 -1
- package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
- package/UI/TransactionDetails/components/index.js +1 -1
- package/UI/TransactionDetails/index.js +1 -1
- package/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/index.js +1 -1
- package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
- package/UI/TransactionInfo/components/DataField/index.js +1 -1
- package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
- package/UI/TransactionInfo/components/EventsList/index.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
- package/UI/TransactionInfo/components/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/UI/TransactionInfo/index.js +1 -1
- package/UI/TransactionsTable/TransactionsTable.js +1 -1
- package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ScAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ShardSpan.js +1 -1
- package/UI/TransactionsTable/components/TransactionHash.js +1 -1
- package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
- package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
- package/UI/TransactionsTable/components/TransactionRow.js +1 -1
- package/UI/TransactionsTable/components/TransactionSender.js +1 -1
- package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
- package/UI/TransactionsTable/components/index.js +1 -1
- package/UI/TransactionsTable/index.js +1 -1
- package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/UsdValue/UsdValue.js +1 -1
- package/UI/UsdValue/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/{chunk-2DKPFSTT.js → chunk-25LYYPSL.js} +2 -2
- package/__chunks__/{chunk-V5CRB7KN.js → chunk-2DAZJTY7.js} +2 -2
- package/__chunks__/{chunk-BMJLZLZM.js → chunk-2G7BO52P.js} +2 -2
- package/__chunks__/{chunk-VSXOMCDB.js → chunk-2JGSECMC.js} +2 -2
- package/__chunks__/{chunk-NAKSKDVH.js → chunk-2MN2JEL5.js} +2 -2
- package/__chunks__/{chunk-423Z6LGX.js → chunk-2QEIR6TS.js} +2 -2
- package/__chunks__/{chunk-5R432HI2.js → chunk-2UFNSJOJ.js} +2 -2
- package/__chunks__/{chunk-R2G53LUI.js → chunk-32HLRTV3.js} +2 -2
- package/__chunks__/{chunk-6UNAWFJ2.js → chunk-33B2EA3V.js} +2 -2
- package/__chunks__/{chunk-525WM2BT.js → chunk-343YDU2S.js} +2 -2
- package/__chunks__/{chunk-WWLOW2S3.js → chunk-346RZSEQ.js} +2 -2
- package/__chunks__/{chunk-IHIUGJRW.js → chunk-35T5H5IL.js} +2 -2
- package/__chunks__/{chunk-R3FSXFX3.js → chunk-3ADB74GU.js} +2 -2
- package/__chunks__/{chunk-GY336JML.js → chunk-3BQODYHQ.js} +2 -2
- package/__chunks__/{chunk-QVCVZLRQ.js → chunk-3CRW4ZUP.js} +2 -2
- package/__chunks__/{chunk-KO4CKUQ3.js → chunk-3D56FBAG.js} +2 -2
- package/__chunks__/{chunk-YFDYMEP5.js → chunk-3DOTBYW5.js} +2 -2
- package/__chunks__/{chunk-XIHOENSC.js → chunk-3OTU3LGP.js} +2 -2
- package/__chunks__/{chunk-7XE7OVZZ.js → chunk-3UYWEUYO.js} +2 -2
- package/__chunks__/{chunk-XKMOG6SS.js → chunk-3VNANIQN.js} +2 -2
- package/__chunks__/chunk-3ZPW6NBW.js +2 -0
- package/__chunks__/{chunk-KDNMJ7M2.js → chunk-43MUHJXP.js} +2 -2
- package/__chunks__/{chunk-FXKLPJUW.js → chunk-4AXBEAVW.js} +2 -2
- package/__chunks__/{chunk-UHDCW2GI.js → chunk-4CUEYG5L.js} +2 -2
- package/__chunks__/{chunk-74QKDRVQ.js → chunk-4DXDAPGH.js} +2 -2
- package/__chunks__/{chunk-CEPGJ4CK.js → chunk-4E4GWX4K.js} +2 -2
- package/__chunks__/chunk-4MGGEDE4.js +2 -0
- package/__chunks__/{chunk-TRBK7QQ6.js → chunk-4YGLWJYP.js} +2 -2
- package/__chunks__/{chunk-Z7HQTVYF.js → chunk-4ZPZ6AIU.js} +2 -2
- package/__chunks__/{chunk-TOZA3Q3T.js → chunk-54NEP2BY.js} +2 -2
- package/__chunks__/{chunk-W37FQYGP.js → chunk-54NTEZC5.js} +2 -2
- package/__chunks__/{chunk-OM457L3M.js → chunk-57KTNTD4.js} +2 -2
- package/__chunks__/{chunk-GFKBUR52.js → chunk-5A4BF2DQ.js} +2 -2
- package/__chunks__/{chunk-USUOFVP7.js → chunk-5AOQJY3W.js} +2 -2
- package/__chunks__/chunk-5E3Y7WDX.js +2 -0
- package/__chunks__/{chunk-4JKMMUID.js → chunk-5IU2LKSN.js} +2 -2
- package/__chunks__/{chunk-CN4TUEV7.js → chunk-5JSXSHFD.js} +2 -2
- package/__chunks__/{chunk-6UNQJUWL.js → chunk-5LIDVEDY.js} +2 -2
- package/__chunks__/{chunk-Z6PNQGOE.js → chunk-5LIPZK7I.js} +2 -2
- package/__chunks__/{chunk-TQVFVFKS.js → chunk-5SFT27AY.js} +2 -2
- package/__chunks__/chunk-5T2INUJ2.js +2 -0
- package/__chunks__/chunk-5TSTJK3D.js +2 -0
- package/__chunks__/{chunk-OCKI3V27.js → chunk-62SL73B6.js} +2 -2
- package/__chunks__/chunk-65MQPHO4.js +2 -0
- package/__chunks__/chunk-6A6EWHUH.js +2 -0
- package/__chunks__/{chunk-CJT4DITV.js → chunk-6ALJIJJR.js} +2 -2
- package/__chunks__/{chunk-NDJHFLTL.js → chunk-6CPLHN5F.js} +2 -2
- package/__chunks__/{chunk-DF24IGER.js → chunk-6NPKQKN5.js} +2 -2
- package/__chunks__/{chunk-4P3LJAUR.js → chunk-6O5L57GH.js} +2 -2
- package/__chunks__/{chunk-2DPI5E3W.js → chunk-6PSLWD7K.js} +2 -2
- package/__chunks__/{chunk-HGAKSUJP.js → chunk-6QQMWPZL.js} +2 -2
- package/__chunks__/{chunk-DHYV75O3.js → chunk-6TWOJZGW.js} +2 -2
- package/__chunks__/chunk-6W7S3EE3.js +2 -0
- package/__chunks__/{chunk-4HQ3HNGC.js → chunk-73F5VFES.js} +2 -2
- package/__chunks__/{chunk-ADE5S3WR.js → chunk-7CR6PT46.js} +2 -2
- package/__chunks__/{chunk-VXVGC3OH.js → chunk-7G3CGRHQ.js} +2 -2
- package/__chunks__/{chunk-BDA7V4NQ.js → chunk-7JYNYESQ.js} +2 -2
- package/__chunks__/{chunk-B25RPITH.js → chunk-7NYPVHED.js} +2 -2
- package/__chunks__/{chunk-MLSI3RC2.js → chunk-7RDCJEBM.js} +2 -2
- package/__chunks__/{chunk-YUIINDCV.js → chunk-7S2XISHG.js} +2 -2
- package/__chunks__/{chunk-UG55ZHGL.js → chunk-7UD2BXEK.js} +2 -2
- package/__chunks__/{chunk-KGGATDBD.js → chunk-7XH5QF3M.js} +2 -2
- package/__chunks__/chunk-A3YTVQRT.js +2 -0
- package/__chunks__/chunk-A453JAS3.js +2 -0
- package/__chunks__/{chunk-5LEO57S4.js → chunk-A6UEBWYM.js} +2 -2
- package/__chunks__/chunk-ABVMFLA3.js +2 -0
- package/__chunks__/{chunk-YMP4Z5XY.js → chunk-AJBKM66B.js} +2 -2
- package/__chunks__/{chunk-F2EJ4NBK.js → chunk-AK245ZB2.js} +2 -2
- package/__chunks__/{chunk-KHTHET32.js → chunk-ALP3UNP6.js} +2 -2
- package/__chunks__/{chunk-JXDUGSUA.js → chunk-AMFO52WL.js} +2 -2
- package/__chunks__/{chunk-XWDYQGE2.js → chunk-AOEAP24C.js} +2 -2
- package/__chunks__/{chunk-CRIOGAAJ.js → chunk-ARBTLT3C.js} +2 -2
- package/__chunks__/chunk-B3TAZ7VX.js +2 -0
- package/__chunks__/{chunk-A4SQDGPF.js → chunk-B4DRNYML.js} +2 -2
- package/__chunks__/chunk-BAT5BA5V.js +2 -0
- package/__chunks__/{chunk-U6QHRFQ6.js → chunk-BKMSVP62.js} +2 -2
- package/__chunks__/{chunk-5WX4CALV.js → chunk-BKSSTINX.js} +2 -2
- package/__chunks__/{chunk-USTDS2O5.js → chunk-BMG5SADY.js} +2 -2
- package/__chunks__/{chunk-FGT3C4FE.js → chunk-BPPVSU25.js} +1 -1
- package/__chunks__/chunk-BRPCFDIZ.js +2 -0
- package/__chunks__/{chunk-CJH2YV7X.js → chunk-BT4PUPX2.js} +2 -2
- package/__chunks__/{chunk-SMISCEQS.js → chunk-BTUNYV43.js} +2 -2
- package/__chunks__/{chunk-WKD2ES4V.js → chunk-BVRV3PPZ.js} +2 -2
- package/__chunks__/chunk-BZONU76B.js +2 -0
- package/__chunks__/{chunk-UWE6TJ47.js → chunk-C7BZLCLN.js} +2 -2
- package/__chunks__/chunk-CDW2662X.js +2 -0
- package/__chunks__/{chunk-MO7GMDSI.js → chunk-CFAUACCS.js} +2 -2
- package/__chunks__/{chunk-MDZPOO3F.js → chunk-CJEHVP77.js} +2 -2
- package/__chunks__/{chunk-ELIQXNO3.js → chunk-CNNCGA7P.js} +2 -2
- package/__chunks__/chunk-COL2EXNW.js +2 -0
- package/__chunks__/{chunk-IIAD2DSC.js → chunk-CPACYSUZ.js} +2 -2
- package/__chunks__/chunk-CSS5DPJE.js +2 -0
- package/__chunks__/{chunk-QUMYRH4H.js → chunk-CTO4KDRF.js} +2 -2
- package/__chunks__/chunk-CUPMM5UN.js +2 -0
- package/__chunks__/{chunk-M47D4COH.js → chunk-CWZS67S7.js} +2 -2
- package/__chunks__/{chunk-LF6VJNCF.js → chunk-CXXTFRHA.js} +2 -2
- package/__chunks__/{chunk-T6GIIILG.js → chunk-CZZL3SSJ.js} +2 -2
- package/__chunks__/{chunk-UX2EZNAX.js → chunk-D6AVFA2D.js} +2 -2
- package/__chunks__/{chunk-Q7U3WZCF.js → chunk-DLO34CIZ.js} +2 -2
- package/__chunks__/{chunk-77DECFQY.js → chunk-DTN6DYVS.js} +2 -2
- package/__chunks__/chunk-DXE4AAU7.js +2 -0
- package/__chunks__/{chunk-4ALRWZZQ.js → chunk-E36MIU6P.js} +2 -2
- package/__chunks__/chunk-E4X4P3T6.js +2 -0
- package/__chunks__/{chunk-5FBZWQQA.js → chunk-EFMJXVWX.js} +2 -2
- package/__chunks__/chunk-EPJMBI2O.js +2 -0
- package/__chunks__/{chunk-RJFWI3UU.js → chunk-ESLOIYNE.js} +2 -2
- package/__chunks__/{chunk-FSAAWDVV.js → chunk-EXCSAEHQ.js} +2 -2
- package/__chunks__/chunk-EZWQ7DMD.js +2 -0
- package/__chunks__/{chunk-73KODBLR.js → chunk-FIPS3NHS.js} +2 -2
- package/__chunks__/chunk-FPDWY2JO.js +2 -0
- package/__chunks__/{chunk-XZ5MLYGD.js → chunk-G3RFZTTV.js} +2 -2
- package/__chunks__/{chunk-52J7F3R2.js → chunk-GFUPPZJ2.js} +2 -2
- package/__chunks__/chunk-GIPQCOE2.js +2 -0
- package/__chunks__/{chunk-5RFLO6MR.js → chunk-GN2RX6OL.js} +2 -2
- package/__chunks__/{chunk-FGJI7F7M.js → chunk-GRYUK7ET.js} +2 -2
- package/__chunks__/{chunk-BOKSFKJF.js → chunk-H3R6VXAV.js} +2 -2
- package/__chunks__/{chunk-ILI6V46A.js → chunk-HACCGAKC.js} +2 -2
- package/__chunks__/chunk-HIX6QXZ4.js +2 -0
- package/__chunks__/{chunk-A2IXF222.js → chunk-HJ7GDMMX.js} +2 -2
- package/__chunks__/{chunk-CUFA5NAA.js → chunk-HOM67ZP7.js} +2 -2
- package/__chunks__/{chunk-TEFRLAUL.js → chunk-HPXVUIJL.js} +2 -2
- package/__chunks__/{chunk-YLOIJNV2.js → chunk-HWLMQLGK.js} +2 -2
- package/__chunks__/{chunk-CPEIGU6U.js → chunk-I4BUST3H.js} +2 -2
- package/__chunks__/{chunk-SJ6DPXLM.js → chunk-I6GRLA2C.js} +2 -2
- package/__chunks__/{chunk-PVKKZXYP.js → chunk-IMJ3U2BY.js} +2 -2
- package/__chunks__/{chunk-N7ACY27N.js → chunk-IMPGP7LI.js} +2 -2
- package/__chunks__/{chunk-5GEXET3C.js → chunk-IOQUQ7V7.js} +2 -2
- package/__chunks__/{chunk-HER7NR3P.js → chunk-IUSHI4WG.js} +2 -2
- package/__chunks__/chunk-IYGHEIZB.js +2 -0
- package/__chunks__/{chunk-YPLFH5NC.js → chunk-J3Q7UDAZ.js} +2 -2
- package/__chunks__/{chunk-IIXY6EVM.js → chunk-J6HSKOGJ.js} +2 -2
- package/__chunks__/{chunk-S7JDYKHM.js → chunk-J7NMG22C.js} +2 -2
- package/__chunks__/chunk-JCD6DJSC.js +2 -0
- package/__chunks__/{chunk-4R3QOQZE.js → chunk-JDVLHQF6.js} +2 -2
- package/__chunks__/{chunk-4JB5QVKY.js → chunk-JIXAK2AC.js} +2 -2
- package/__chunks__/{chunk-3KOYQHTR.js → chunk-JJWH3JYM.js} +2 -2
- package/__chunks__/{chunk-SLLPTUAV.js → chunk-JK6ABF64.js} +2 -2
- package/__chunks__/{chunk-ZEEWQEXA.js → chunk-JK6EDPQT.js} +2 -2
- package/__chunks__/chunk-JWP3WLIN.js +2 -0
- package/__chunks__/{chunk-7WWHCPMS.js → chunk-JWSBC5DB.js} +2 -2
- package/__chunks__/{chunk-I3DMSSAU.js → chunk-K5UIZVZV.js} +2 -2
- package/__chunks__/{chunk-KX4A4RXW.js → chunk-KDEQ2GAX.js} +2 -2
- package/__chunks__/{chunk-CRI42HNH.js → chunk-KEIOQVXN.js} +2 -2
- package/__chunks__/{chunk-U77UZINY.js → chunk-KG3U55NF.js} +2 -2
- package/__chunks__/{chunk-P6MWBKH3.js → chunk-KHHNKZRB.js} +2 -2
- package/__chunks__/{chunk-SOPJ4FVA.js → chunk-KV6GSWNL.js} +2 -2
- package/__chunks__/{chunk-VS7YJKJM.js → chunk-KYC5JNJB.js} +2 -2
- package/__chunks__/{chunk-BYS7QALE.js → chunk-KYVILTBF.js} +2 -2
- package/__chunks__/chunk-L5DW2DTN.js +2 -0
- package/__chunks__/chunk-L5UKH2NP.js +2 -0
- package/__chunks__/{chunk-M22NL7FJ.js → chunk-LES3U47Z.js} +2 -2
- package/__chunks__/{chunk-7YFFVZWN.js → chunk-LF5ZKC66.js} +2 -2
- package/__chunks__/{chunk-XTX67ABL.js → chunk-LF6FN6K3.js} +2 -2
- package/__chunks__/{chunk-K4P3Q4G6.js → chunk-LGPEIIM7.js} +2 -2
- package/__chunks__/{chunk-HJFWUTN2.js → chunk-LJ2OXL2R.js} +2 -2
- package/__chunks__/{chunk-HEMJW4UP.js → chunk-LLTQNIPQ.js} +2 -2
- package/__chunks__/{chunk-KE3UZZPK.js → chunk-LRZYNP4X.js} +2 -2
- package/__chunks__/{chunk-R5P34PUZ.js → chunk-LSJH4COT.js} +2 -2
- package/__chunks__/{chunk-UYKSTJCI.js → chunk-LU3DM6HR.js} +2 -2
- package/__chunks__/chunk-LWC25W2W.js +2 -0
- package/__chunks__/{chunk-HHGHERF3.js → chunk-M4KXOW7P.js} +2 -2
- package/__chunks__/{chunk-66KNLCQD.js → chunk-MC4SKRI3.js} +2 -2
- package/__chunks__/{chunk-VVPMSN2M.js → chunk-MCGMQBME.js} +2 -2
- package/__chunks__/{chunk-T4FS5XNS.js → chunk-MCX4AA63.js} +2 -2
- package/__chunks__/{chunk-UXBGGKWU.js → chunk-MDGIGD6R.js} +2 -2
- package/__chunks__/{chunk-HWDGDPLP.js → chunk-MIKIMQR2.js} +2 -2
- package/__chunks__/{chunk-DQLFYAJF.js → chunk-MOA4IRT5.js} +2 -2
- package/__chunks__/chunk-MYN7DB3X.js +2 -0
- package/__chunks__/{chunk-A2MJT5TB.js → chunk-N45VBFNK.js} +2 -2
- package/__chunks__/chunk-NA2AEGMU.js +2 -0
- package/__chunks__/{chunk-D3E65LJ5.js → chunk-NEHGYCY2.js} +2 -2
- package/__chunks__/{chunk-ACE3TC2R.js → chunk-NJQRX7E2.js} +2 -2
- package/__chunks__/{chunk-JFOJHUMM.js → chunk-NQ247DLE.js} +2 -2
- package/__chunks__/chunk-NTCEKYNN.js +2 -0
- package/__chunks__/{chunk-ADCSG5DO.js → chunk-NYNRNXOR.js} +2 -2
- package/__chunks__/{chunk-AFLDYYSB.js → chunk-O4ZYTYXZ.js} +2 -2
- package/__chunks__/{chunk-AJ2VY4SZ.js → chunk-OAXLOJDD.js} +2 -2
- package/__chunks__/chunk-OE5DHTVR.js +2 -0
- package/__chunks__/chunk-OGZP3W4S.js +2 -0
- package/__chunks__/{chunk-BBL4ZXHW.js → chunk-ONIRIDYD.js} +2 -2
- package/__chunks__/{chunk-BKMTF6D2.js → chunk-OPNNXGAJ.js} +2 -2
- package/__chunks__/chunk-OXJW5VJL.js +2 -0
- package/__chunks__/{chunk-RXNYA6SF.js → chunk-P6MRRO6I.js} +2 -2
- package/__chunks__/{chunk-YU5OYJX7.js → chunk-PCHRWVXC.js} +2 -2
- package/__chunks__/{chunk-C6OSBOOY.js → chunk-PGYJ74AD.js} +2 -2
- package/__chunks__/{chunk-5MMAS7IS.js → chunk-PHYN544Z.js} +2 -2
- package/__chunks__/chunk-PMKQQMDY.js +2 -0
- package/__chunks__/{chunk-DG7FFCMC.js → chunk-PMREAIGI.js} +2 -2
- package/__chunks__/{chunk-VPHC377M.js → chunk-PNSNXL7L.js} +2 -2
- package/__chunks__/{chunk-UTDBQNDV.js → chunk-PVQIICYI.js} +2 -2
- package/__chunks__/{chunk-EVUACURD.js → chunk-Q3OVBMP3.js} +2 -2
- package/__chunks__/{chunk-RHQ3FWWV.js → chunk-Q5WC7I3O.js} +2 -2
- package/__chunks__/{chunk-QL7RMPDI.js → chunk-QD5QDTC3.js} +2 -2
- package/__chunks__/{chunk-737AN7JD.js → chunk-QGGGF3OX.js} +2 -2
- package/__chunks__/{chunk-WWSWE52T.js → chunk-QNUO32JN.js} +2 -2
- package/__chunks__/{chunk-YKCZ2UKE.js → chunk-QOZBVOHT.js} +2 -2
- package/__chunks__/chunk-QRLJYAVK.js +2 -0
- package/__chunks__/{chunk-ROMNQSAY.js → chunk-QWPQS6G5.js} +2 -2
- package/__chunks__/{chunk-ODQ5XNPU.js → chunk-R4B6ID2N.js} +2 -2
- package/__chunks__/{chunk-KGYURMEO.js → chunk-R6AS2UYG.js} +2 -2
- package/__chunks__/{chunk-7BA6MF76.js → chunk-RLVLE6UU.js} +2 -2
- package/__chunks__/{chunk-YRHGZ4HS.js → chunk-S2KUPUGA.js} +2 -2
- package/__chunks__/{chunk-6R7WMG4C.js → chunk-S653XWKA.js} +2 -2
- package/__chunks__/{chunk-ENVPO3OR.js → chunk-SBN47C2G.js} +2 -2
- package/__chunks__/{chunk-SAFQFQIH.js → chunk-SDDHDY7Z.js} +2 -2
- package/__chunks__/{chunk-NANO4X2A.js → chunk-SFP5Q2SB.js} +2 -2
- package/__chunks__/chunk-SGEONHJN.js +2 -0
- package/__chunks__/{chunk-LKDW3XH3.js → chunk-SGNT3E2X.js} +2 -2
- package/__chunks__/{chunk-NQ5XJOIL.js → chunk-SLZBO3FX.js} +2 -2
- package/__chunks__/{chunk-WX5BAI2J.js → chunk-SSGU33XK.js} +2 -2
- package/__chunks__/{chunk-KCOIYEPV.js → chunk-SXJLOBGK.js} +2 -2
- package/__chunks__/{chunk-32VBXZXR.js → chunk-SYT2T7G2.js} +2 -2
- package/__chunks__/{chunk-M2X2JVAM.js → chunk-SZ3VLYKT.js} +2 -2
- package/__chunks__/{chunk-GCYQRVDH.js → chunk-T2CFMPMF.js} +2 -2
- package/__chunks__/{chunk-GBQ5D4O5.js → chunk-T2MFBGAA.js} +2 -2
- package/__chunks__/{chunk-QB3XGANM.js → chunk-T2MIRLFN.js} +2 -2
- package/__chunks__/{chunk-YKKS3O3Z.js → chunk-T34J5F2S.js} +2 -2
- package/__chunks__/{chunk-CY7H7XN3.js → chunk-T3NGVEED.js} +2 -2
- package/__chunks__/{chunk-RU373C7L.js → chunk-T4Q37HLR.js} +2 -2
- package/__chunks__/{chunk-NNVTUWMR.js → chunk-TAYARQBC.js} +2 -2
- package/__chunks__/{chunk-F4Z4BQFP.js → chunk-TGPRRERJ.js} +2 -2
- package/__chunks__/{chunk-UMD2MTE3.js → chunk-TJUHE354.js} +2 -2
- package/__chunks__/chunk-TKQGS7L2.js +2 -0
- package/__chunks__/{chunk-GXOJLFD4.js → chunk-TTBVJAYG.js} +2 -2
- package/__chunks__/{chunk-2KFSLVEO.js → chunk-TTZVNWAK.js} +2 -2
- package/__chunks__/{chunk-4NPCJKVQ.js → chunk-TWSAY73D.js} +2 -2
- package/__chunks__/{chunk-EN36KS5J.js → chunk-TZ6IR7KY.js} +2 -2
- package/__chunks__/{chunk-YWT4XNXN.js → chunk-U2ELIFGD.js} +2 -2
- package/__chunks__/{chunk-WXZKC7M3.js → chunk-U7BHVZDF.js} +2 -2
- package/__chunks__/{chunk-LVCV5JOX.js → chunk-UB7XMLMC.js} +2 -2
- package/__chunks__/{chunk-M7AJLAY3.js → chunk-UFE22DXI.js} +2 -2
- package/__chunks__/chunk-UGAJ6X3Z.js +2 -0
- package/__chunks__/chunk-UGJIORNP.js +2 -0
- package/__chunks__/{chunk-ANO63HEG.js → chunk-UIXYMFD4.js} +2 -2
- package/__chunks__/{chunk-XXUDAIKI.js → chunk-UM2Z6I3Z.js} +2 -2
- package/__chunks__/{chunk-COV3NRWK.js → chunk-UNW4PYCC.js} +2 -2
- package/__chunks__/{chunk-UIRTEEAJ.js → chunk-UPCMC3JF.js} +2 -2
- package/__chunks__/{chunk-GPNUHVOM.js → chunk-UWZL6MUF.js} +2 -2
- package/__chunks__/{chunk-YLMRTW5R.js → chunk-UZ5EL5IA.js} +2 -2
- package/__chunks__/{chunk-W2FZFACI.js → chunk-VGVAZOOL.js} +2 -2
- package/__chunks__/{chunk-MDNDUSGB.js → chunk-VHHIARAI.js} +2 -2
- package/__chunks__/{chunk-EBMIHN52.js → chunk-VOS5AZ4K.js} +2 -2
- package/__chunks__/{chunk-XT5BA43Z.js → chunk-VZZVQSTN.js} +2 -2
- package/__chunks__/{chunk-IC5Y7E5N.js → chunk-W4GD6OCO.js} +2 -2
- package/__chunks__/{chunk-XNHZJ2SC.js → chunk-W5D3A5ES.js} +2 -2
- package/__chunks__/{chunk-B3ILFYYH.js → chunk-WB2WVDZA.js} +2 -2
- package/__chunks__/{chunk-LBJUKBPW.js → chunk-WCGXNTPB.js} +2 -2
- package/__chunks__/{chunk-A6EXXYVU.js → chunk-WJHMRQCO.js} +2 -2
- package/__chunks__/{chunk-WYFQSQAM.js → chunk-WKN5JWWQ.js} +2 -2
- package/__chunks__/chunk-WR6IIZFW.js +2 -0
- package/__chunks__/{chunk-KTYRUFXV.js → chunk-WRKQTXD4.js} +2 -2
- package/__chunks__/{chunk-2C65GIQZ.js → chunk-WU2RFM5A.js} +2 -2
- package/__chunks__/{chunk-P7STLJJI.js → chunk-X7SBGOMA.js} +2 -2
- package/__chunks__/{chunk-IK27WK4F.js → chunk-XACM7U6A.js} +2 -2
- package/__chunks__/{chunk-PINKYRXT.js → chunk-XARXYP2R.js} +2 -2
- package/__chunks__/{chunk-FNO4F4XU.js → chunk-XGTZDEYC.js} +2 -2
- package/__chunks__/chunk-XHHJUHQV.js +2 -0
- package/__chunks__/{chunk-HQJKEU6C.js → chunk-XRHEAXKK.js} +2 -2
- package/__chunks__/{chunk-23EGU54D.js → chunk-XVZERATD.js} +2 -2
- package/__chunks__/{chunk-TXM7RATR.js → chunk-Y5PCCHR4.js} +2 -2
- package/__chunks__/{chunk-X2L7IGUP.js → chunk-Y7U5PXM4.js} +2 -2
- package/__chunks__/chunk-YABBPNUR.js +2 -0
- package/__chunks__/{chunk-E7MY3TPU.js → chunk-YCWMLUF4.js} +2 -2
- package/__chunks__/{chunk-3VGDFLNR.js → chunk-YGKDW2MQ.js} +2 -2
- package/__chunks__/{chunk-6PTMJTAR.js → chunk-YJXND7MN.js} +2 -2
- package/__chunks__/{chunk-X3JF7AJ7.js → chunk-YLMQQGTH.js} +2 -2
- package/__chunks__/{chunk-6YFMGTBJ.js → chunk-YRLJP2A7.js} +2 -2
- package/__chunks__/{chunk-NMZHNNDO.js → chunk-YRR6KBN2.js} +2 -2
- package/__chunks__/chunk-YW6K2R7N.js +2 -0
- package/__chunks__/chunk-YWMWYHIA.js +2 -0
- package/__chunks__/{chunk-JWQRJOLL.js → chunk-YYBTFRCM.js} +2 -2
- package/__chunks__/{chunk-WUBNBBRC.js → chunk-Z2VZSXDK.js} +2 -2
- package/__chunks__/{chunk-S3J7OTBF.js → chunk-Z3ZWK4EM.js} +2 -2
- package/__chunks__/{chunk-IOHWBSIX.js → chunk-Z4ABT7NG.js} +2 -2
- package/__chunks__/{chunk-EB7DKY7Z.js → chunk-ZCM6WCXA.js} +2 -2
- package/__chunks__/chunk-ZQIOXJ4W.js +2 -0
- package/__chunks__/{chunk-MBOASZBJ.js → chunk-ZSU24JZ5.js} +2 -2
- package/__chunks__/chunk-ZTWKQMJR.js +2 -0
- package/__chunks__/{chunk-HGTG6QDV.js → chunk-ZVZUXZJ7.js} +2 -2
- package/__chunks__/chunk-ZX7JX6JP.js +2 -0
- package/__commonjs/UI/DappModal/hooks/index.js +1 -1
- package/__commonjs/UI/DappModal/hooks/useDappModal.js +1 -1
- package/__commonjs/UI/NotificationModal/index.js +4 -4
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +22 -22
- package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +5 -5
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/index.js +7 -7
- package/__commonjs/UI/SignTransactionsModals/index.js +22 -22
- package/__commonjs/UI/TransactionInfo/components/DataDecode/DataDecode.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/DataDecode/index.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/DataField/DataField.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/DataField/index.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/OperationsList/OperationList.js +10 -10
- package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationText.js +7 -7
- package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/OperationsList/index.js +10 -10
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +6 -6
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +4 -4
- package/__commonjs/UI/TransactionsTable/TransactionsTable.js +11 -11
- package/__commonjs/UI/TransactionsTable/components/LockedTokenAddressIcon.js +2 -2
- package/__commonjs/UI/TransactionsTable/components/ScAddressIcon.js +2 -2
- package/__commonjs/UI/TransactionsTable/components/ShardSpan.js +1 -1
- package/__commonjs/UI/TransactionsTable/components/TransactionHash.js +6 -6
- package/__commonjs/UI/TransactionsTable/index.js +11 -11
- package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +8 -8
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +4 -4
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +6 -6
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +4 -4
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +8 -8
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +8 -8
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/index.js +1 -1
- package/__commonjs/UI/TransactionsToastList/index.js +8 -8
- package/__commonjs/UI/UsdValue/UsdValue.js +2 -2
- package/__commonjs/UI/UsdValue/index.js +2 -2
- package/__commonjs/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/__commonjs/UI/index.js +74 -74
- package/__commonjs/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressRow.js +2 -2
- package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +10 -10
- package/__commonjs/UI/ledger/index.js +1 -1
- package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/__commonjs/UI/pages/UnlockPage/index.js +12 -12
- package/__commonjs/UI/pages/index.js +12 -12
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +7 -7
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +5 -5
- package/__commonjs/UI/walletConnect/index.js +7 -7
- package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__commonjs/__mocks__/accountConfig.js +1 -1
- package/__commonjs/__mocks__/index.js +1 -1
- package/__commonjs/__mocks__/server.js +1 -1
- package/__commonjs/__mocks__/utils/index.js +1 -1
- package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
- package/__commonjs/apiCalls/configuration/getApiAddressForChainId.js +1 -1
- package/__commonjs/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
- package/__commonjs/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
- package/__commonjs/apiCalls/configuration/index.js +1 -1
- package/__commonjs/components/LogoutListener/LogoutListener.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/__commonjs/components/LogoutListener/index.js +1 -1
- package/__commonjs/components/ProviderInitializer.js +1 -1
- package/__commonjs/constants/network.js +1 -1
- package/__commonjs/hooks/account/index.js +1 -1
- package/__commonjs/hooks/account/useGetAccountProvider.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/login/index.js +1 -1
- package/__commonjs/hooks/login/useExtensionLogin.js +1 -1
- package/__commonjs/hooks/login/useLedgerLogin.js +1 -1
- package/__commonjs/hooks/login/useLoginService.js +1 -1
- package/__commonjs/hooks/login/useOperaLogin.js +1 -1
- package/__commonjs/hooks/login/useWalletConnectLogin.js +1 -1
- package/__commonjs/hooks/login/useWalletConnectV2Login.js +1 -1
- package/__commonjs/hooks/login/useWebViewLogin.js +1 -1
- package/__commonjs/hooks/login/useWebWalletLogin.js +1 -1
- package/__commonjs/hooks/signMessage/index.js +1 -1
- package/__commonjs/hooks/signMessage/useSignMessage.js +1 -1
- package/__commonjs/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
- package/__commonjs/hooks/transactions/useCancelWalletConnectAction.js +1 -1
- package/__commonjs/hooks/transactions/useCheckTransactionStatus/getPendingTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/__commonjs/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/__commonjs/hooks/userInterface/index.js +1 -1
- package/__commonjs/hooks/userInterface/useIsDappModalVisible.js +1 -1
- package/__commonjs/hooks/websocketListener/index.js +1 -1
- package/__commonjs/providers/accountProvider.js +1 -1
- package/__commonjs/providers/index.js +1 -1
- package/__commonjs/providers/utils.js +1 -1
- package/__commonjs/providers/webviewProvider/index.js +1 -1
- package/__commonjs/providers/webviewProvider/requestMethods.js +1 -1
- package/__commonjs/providers/webviewProvider/webviewProvider.js +1 -1
- package/__commonjs/reduxStore/DappProviderContext.js +1 -1
- package/__commonjs/reduxStore/commonActions.js +1 -1
- package/__commonjs/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
- package/__commonjs/reduxStore/persistConfig.js +1 -1
- package/__commonjs/reduxStore/selectors/accountInfoSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/dappModalsSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/helpers.js +1 -1
- package/__commonjs/reduxStore/selectors/loginInfoSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/modalsSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/networkConfigSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/toastsSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
- package/__commonjs/reduxStore/slices/accountInfoSlice.js +1 -1
- package/__commonjs/reduxStore/slices/index.js +1 -1
- package/__commonjs/reduxStore/slices/modalsSlice.js +1 -1
- package/__commonjs/reduxStore/slices/signedMessageInfoSlice.js +1 -1
- package/__commonjs/reduxStore/slices/toastsSlice.js +1 -1
- package/__commonjs/reduxStore/slices/transactionsInfoSlice.js +1 -1
- package/__commonjs/reduxStore/store.js +1 -1
- package/__commonjs/services/index.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/getLatestBlockHash.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/index.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/__commonjs/services/nativeAuth/index.js +1 -1
- package/__commonjs/services/nativeAuth/methods/getNativeAuthConfig.js +1 -1
- package/__commonjs/services/nativeAuth/methods/getToken.js +1 -1
- package/__commonjs/services/nativeAuth/methods/index.js +1 -1
- package/__commonjs/services/nativeAuth/nativeAuth.js +1 -1
- package/__commonjs/services/transactions/isCrossShardTransaction.js +1 -1
- package/__commonjs/services/transactions/signTransactions.js +1 -1
- package/__commonjs/services/transactions/utils.js +1 -1
- package/__commonjs/types/enums.types.js +1 -1
- package/__commonjs/types/index.js +1 -1
- package/__commonjs/utils/account/getAccount.js +1 -1
- package/__commonjs/utils/account/getAccountProviderType.js +1 -1
- package/__commonjs/utils/account/getAddress.js +1 -1
- package/__commonjs/utils/account/getIsProviderEqualTo.js +1 -1
- package/__commonjs/utils/account/getLatestNonce.js +1 -1
- package/__commonjs/utils/account/index.js +1 -1
- package/__commonjs/utils/account/refreshAccount.js +1 -1
- package/__commonjs/utils/account/setNonce.js +1 -1
- package/__commonjs/utils/account/signMessage.js +1 -1
- package/__commonjs/utils/index.js +2 -2
- package/__commonjs/utils/logout.js +1 -1
- package/__commonjs/utils/operations/calculateFeeLimit.js +1 -1
- package/__commonjs/utils/operations/denominate.js +1 -1
- package/__commonjs/utils/operations/formatAmount.js +1 -1
- package/__commonjs/utils/operations/index.js +1 -1
- package/__commonjs/utils/platform/detectCurrentPlatform.js +1 -1
- package/__commonjs/utils/smartContracts.js +1 -1
- package/__commonjs/utils/toasts/customToastsActions.js +1 -1
- package/__commonjs/utils/toasts/index.js +1 -1
- package/__commonjs/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
- package/__commonjs/utils/transactions/getTokenFromData.js +1 -1
- package/__commonjs/utils/transactions/parseMultiEsdtTransferData.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionStatus.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionStatusText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecode.js +5 -5
- package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
- package/__commonjs/utils/transactions/transactionStateByStatus.js +1 -1
- package/__commonjs/utils/validation/maxDecimals.js +1 -1
- package/__commonjs/web/hooks/index.js +1 -1
- package/__commonjs/web/hooks/useIdleTimer.js +1 -1
- package/__commonjs/web/index.js +1 -1
- package/__commonjs/wrappers/AppInitializer.js +1 -1
- package/__commonjs/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
- package/__commonjs/wrappers/DappProvider/CustomComponents.js +1 -1
- package/__commonjs/wrappers/DappProvider/index.js +1 -1
- package/__commonjs/wrappers/index.js +1 -1
- package/__mocks__/accountConfig.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/server.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/apiCalls/accounts/getAccountFromApi.js +1 -1
- package/apiCalls/accounts/index.js +1 -1
- package/apiCalls/configuration/getApiAddressForChainId.js +1 -1
- package/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
- package/apiCalls/configuration/getNetworkConfig.js +1 -1
- package/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
- package/apiCalls/configuration/index.js +1 -1
- package/apiCalls/getScamAddressData.js +1 -1
- package/apiCalls/index.js +1 -1
- package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
- package/apiCalls/transactions/index.js +1 -1
- package/apiCalls/transactions/sendSignedTransactions.js +1 -1
- package/apiCalls/utils/getCleanApiAddress.js +1 -1
- package/apiCalls/utils/index.js +1 -1
- package/components/LogoutListener/LogoutListener.js +1 -1
- package/components/LogoutListener/helpers/index.js +1 -1
- package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/components/LogoutListener/index.js +1 -1
- package/components/ProviderInitializer.js +1 -1
- package/components/TransactionSender/TransactionSender.js +1 -1
- package/components/TransactionSender/index.js +1 -1
- package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/constants/index.js +1 -1
- package/constants/network.js +1 -1
- package/hooks/account/index.js +1 -1
- package/hooks/account/useGetAccount.js +1 -1
- package/hooks/account/useGetAccountInfo.js +1 -1
- package/hooks/account/useGetAccountProvider.js +1 -1
- package/hooks/account/useGetIsLoggedIn.js +1 -1
- package/hooks/account/useGetLoginInfo.js +1 -1
- package/hooks/account/useGetWebsocketEvent.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useExtensionLogin.js +1 -1
- package/hooks/login/useLedgerLogin.js +1 -1
- package/hooks/login/useLoginService.js +1 -1
- package/hooks/login/useOperaLogin.js +1 -1
- package/hooks/login/useWalletConnectLogin.js +1 -1
- package/hooks/login/useWalletConnectV2Login.js +1 -1
- package/hooks/login/useWebViewLogin.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/signMessage/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/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
- package/hooks/transactions/helpers/index.js +1 -1
- package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
- package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
- package/hooks/transactions/index.js +1 -1
- package/hooks/transactions/useCancelWalletConnectAction.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/getPendingTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
- package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
- package/hooks/transactions/useGetFailedTransactions.js +1 -1
- package/hooks/transactions/useGetPendingTransactions.js +1 -1
- package/hooks/transactions/useGetSignTransactionsError.js +1 -1
- package/hooks/transactions/useGetSignedTransactions.js +1 -1
- package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
- package/hooks/transactions/useGetTokenDetails.js +1 -1
- package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
- package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/hooks/transactions/useSignMultipleTransactions.js +1 -1
- package/hooks/transactions/useSignTransactions.js +1 -1
- package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/hooks/useGetNetworkConfig.js +1 -1
- package/hooks/useGetNotification.js +1 -1
- package/hooks/userInterface/index.js +1 -1
- package/hooks/userInterface/useIsDappModalVisible.js +1 -1
- package/hooks/websocketListener/index.js +1 -1
- package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
- package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
- package/models/index.js +1 -1
- package/models/newTransaction.js +1 -1
- package/package.json +2 -2
- package/providers/accountProvider.js +1 -1
- package/providers/index.js +1 -1
- package/providers/utils.js +1 -1
- package/providers/webviewProvider/index.js +1 -1
- package/providers/webviewProvider/requestMethods.js +1 -1
- package/providers/webviewProvider/webviewProvider.js +1 -1
- package/reduxStore/DappProviderContext.js +1 -1
- package/reduxStore/commonActions.js +1 -1
- package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
- package/reduxStore/persistConfig.js +1 -1
- package/reduxStore/persistedRootReducer.d.ts +1 -1
- package/reduxStore/persistedRootReducer.js +1 -1
- package/reduxStore/reducers.js +1 -1
- package/reduxStore/rootReducer.js +1 -1
- package/reduxStore/selectors/accountInfoSelectors.js +1 -1
- package/reduxStore/selectors/dappModalsSelectors.js +1 -1
- package/reduxStore/selectors/helpers.js +1 -1
- package/reduxStore/selectors/index.js +1 -1
- package/reduxStore/selectors/loginInfoSelectors.js +1 -1
- package/reduxStore/selectors/modalsSelectors.js +1 -1
- package/reduxStore/selectors/networkConfigSelectors.js +1 -1
- package/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
- package/reduxStore/selectors/toastsSelectors.js +1 -1
- package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
- package/reduxStore/selectors/transactionsSelectors.js +1 -1
- package/reduxStore/slices/accountInfoSlice.js +1 -1
- package/reduxStore/slices/dappModalsSlice.js +1 -1
- package/reduxStore/slices/index.js +1 -1
- package/reduxStore/slices/loginInfoSlice.js +1 -1
- package/reduxStore/slices/modalsSlice.js +1 -1
- package/reduxStore/slices/signedMessageInfoSlice.js +1 -1
- package/reduxStore/slices/toastsSlice.js +1 -1
- package/reduxStore/slices/transactionsInfoSlice.js +1 -1
- package/reduxStore/slices/transactionsSlice.js +1 -1
- package/reduxStore/store.js +1 -1
- package/services/index.js +1 -1
- package/services/nativeAuth/helpers/getLatestBlockHash.d.ts +1 -1
- package/services/nativeAuth/helpers/getLatestBlockHash.js +1 -1
- package/services/nativeAuth/helpers/index.js +1 -1
- package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/services/nativeAuth/index.js +1 -1
- package/services/nativeAuth/methods/getNativeAuthConfig.js +1 -1
- package/services/nativeAuth/methods/getToken.js +1 -1
- package/services/nativeAuth/methods/index.js +1 -1
- package/services/nativeAuth/nativeAuth.js +1 -1
- package/services/transactions/clearTransactions.js +1 -1
- package/services/transactions/index.js +1 -1
- package/services/transactions/isCrossShardTransaction.js +1 -1
- package/services/transactions/sendTransactions.js +1 -1
- package/services/transactions/signTransactions.js +1 -1
- package/services/transactions/transformAndSignTransactions.js +1 -1
- package/services/transactions/utils.js +1 -1
- package/types/enums.types.d.ts +2 -1
- package/types/enums.types.js +1 -1
- package/types/index.js +1 -1
- package/types/login.types.d.ts +1 -0
- package/types/login.types.js +1 -1
- package/utils/account/getAccount.js +1 -1
- package/utils/account/getAccountBalance.js +1 -1
- package/utils/account/getAccountProviderType.js +1 -1
- package/utils/account/getAccountShard.js +1 -1
- package/utils/account/getAddress.js +1 -1
- package/utils/account/getIsProviderEqualTo.js +1 -1
- package/utils/account/getLatestNonce.js +1 -1
- package/utils/account/getShardOfAddress.js +1 -1
- package/utils/account/index.js +1 -1
- package/utils/account/loginWithExternalProvider.js +1 -1
- package/utils/account/refreshAccount.js +1 -1
- package/utils/account/setNonce.js +1 -1
- package/utils/account/signMessage.js +1 -1
- package/utils/getIsLoggedIn.js +1 -1
- package/utils/index.js +1 -1
- package/utils/logout.js +1 -1
- package/utils/network/getChainID.js +1 -1
- package/utils/network/getEgldLabel.js +1 -1
- package/utils/network/getNetworkConfig.js +1 -1
- package/utils/network/index.js +1 -1
- package/utils/operations/calculateFeeLimit.js +1 -1
- package/utils/operations/denominate.js +1 -1
- package/utils/operations/formatAmount.js +1 -1
- package/utils/operations/index.js +1 -1
- package/utils/operations/nominate.js +1 -1
- package/utils/operations/parseAmount.js +1 -1
- package/utils/platform/detectCurrentPlatform.js +1 -1
- package/utils/smartContracts.js +1 -1
- package/utils/toasts/customToastsActions.js +1 -1
- package/utils/toasts/index.js +1 -1
- package/utils/transactions/getAllTransactionsLink.js +1 -1
- package/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
- package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/index.js +1 -1
- package/utils/transactions/getTokenFromData.js +1 -1
- package/utils/transactions/getTransactionLink.js +1 -1
- package/utils/transactions/index.js +1 -1
- package/utils/transactions/parseMultiEsdtTransferData.js +1 -1
- package/utils/transactions/parseTransactionAfterSigning.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionStatus.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionStatusText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/mexUnwrapper.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/transactionActionUnwrapper.js +1 -1
- package/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
- package/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
- package/utils/transactions/transactionStateByStatus.js +1 -1
- package/utils/validation/index.js +1 -1
- package/utils/validation/maxDecimals.js +1 -1
- package/utils/validation/stringIsFloat.js +1 -1
- package/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/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/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-3EYFCRQJ.js +0 -2
- package/__chunks__/chunk-3F3J26IL.js +0 -2
- package/__chunks__/chunk-3LTTE7Z4.js +0 -2
- package/__chunks__/chunk-3XYPMC5Z.js +0 -2
- package/__chunks__/chunk-3YOLWVYN.js +0 -2
- package/__chunks__/chunk-42BPBN4G.js +0 -2
- package/__chunks__/chunk-43CTUMZY.js +0 -2
- package/__chunks__/chunk-573MD3HA.js +0 -2
- package/__chunks__/chunk-7CRYWUS6.js +0 -2
- package/__chunks__/chunk-7NADEOVW.js +0 -2
- package/__chunks__/chunk-7ZZWUK5N.js +0 -2
- package/__chunks__/chunk-A4RZQEKA.js +0 -2
- package/__chunks__/chunk-AJVN5NMC.js +0 -2
- package/__chunks__/chunk-BQOSJ42S.js +0 -2
- package/__chunks__/chunk-BQY4YEPO.js +0 -2
- package/__chunks__/chunk-CKRLCHHT.js +0 -2
- package/__chunks__/chunk-CX7JJAI7.js +0 -2
- package/__chunks__/chunk-D3DU3GYZ.js +0 -2
- package/__chunks__/chunk-FAPWAQOI.js +0 -2
- package/__chunks__/chunk-FLNAHHFO.js +0 -2
- package/__chunks__/chunk-G4FTNX3C.js +0 -2
- package/__chunks__/chunk-GNJAE3HJ.js +0 -2
- package/__chunks__/chunk-GQMTJB4L.js +0 -2
- package/__chunks__/chunk-JAEDB3IA.js +0 -2
- package/__chunks__/chunk-KCCZWHLF.js +0 -2
- package/__chunks__/chunk-KQCX4VG2.js +0 -2
- package/__chunks__/chunk-KQF4EULM.js +0 -2
- package/__chunks__/chunk-KX4VZFVE.js +0 -2
- package/__chunks__/chunk-LG6WIZHT.js +0 -2
- package/__chunks__/chunk-LM64ZHBF.js +0 -2
- package/__chunks__/chunk-MAPKARLD.js +0 -2
- package/__chunks__/chunk-N7H3FMAE.js +0 -2
- package/__chunks__/chunk-P2E3TG5U.js +0 -2
- package/__chunks__/chunk-PURPYWQM.js +0 -2
- package/__chunks__/chunk-RBHVYE2Y.js +0 -2
- package/__chunks__/chunk-RGJUSITX.js +0 -2
- package/__chunks__/chunk-RQ5KJRJY.js +0 -2
- package/__chunks__/chunk-S6DXOR2S.js +0 -2
- package/__chunks__/chunk-SCCXHHWP.js +0 -2
- package/__chunks__/chunk-SPNCRNER.js +0 -2
- package/__chunks__/chunk-T6SOZMFL.js +0 -2
- package/__chunks__/chunk-TGSNOZEZ.js +0 -2
- package/__chunks__/chunk-TTS3WFEE.js +0 -2
- package/__chunks__/chunk-UC3M6BHM.js +0 -2
- package/__chunks__/chunk-WALAONSP.js +0 -2
- package/__chunks__/chunk-XCBMXPY5.js +0 -2
- package/__chunks__/chunk-Y3CLO3PP.js +0 -2
- package/__chunks__/chunk-YA6SZOY2.js +0 -2
- package/__chunks__/chunk-YBGCB57C.js +0 -2
- package/__chunks__/chunk-Z4BLO2TH.js +0 -2
- package/__chunks__/chunk-Z6WGQSRM.js +0 -2
package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var br=Object.create;var P=Object.defineProperty;var Dr=Object.getOwnPropertyDescriptor;var Cr=Object.getOwnPropertyNames;var _r=Object.getPrototypeOf,Mr=Object.prototype.hasOwnProperty;var Pr=(t,r)=>()=>(t&&(r=t(t=0)),r);var H=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Hr=(t,r)=>{for(var e in r)P(t,e,{get:r[e],enumerable:!0})},or=(t,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Cr(r))!Mr.call(t,n)&&n!==e&&P(t,n,{get:()=>r[n],enumerable:!(i=Dr(r,n))||i.enumerable});return t};var V=(t,r,e)=>(e=t!=null?br(_r(t)):{},or(r||!t||!t.__esModule?P(e,"default",{value:t,enumerable:!0}):e,t)),Gr=t=>or(P({},"__esModule",{value:!0}),t);var fr=H(G=>{"use strict";c();G.byteLength=Yr;G.toByteArray=Vr;G.fromByteArray=Xr;var k=[],F=[],qr=typeof Uint8Array!="undefined"?Uint8Array:Array,O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(R=0,ar=O.length;R<ar;++R)k[R]=O[R],F[O.charCodeAt(R)]=R;var R,ar;F["-".charCodeAt(0)]=62;F["_".charCodeAt(0)]=63;function ur(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var i=e===r?0:4-e%4;return[e,i]}function Yr(t){var r=ur(t),e=r[0],i=r[1];return(e+i)*3/4-i}function Qr(t,r,e){return(r+e)*3/4-e}function Vr(t){var r,e=ur(t),i=e[0],n=e[1],a=new qr(Qr(t,i,n)),o=0,f=n>0?i-4:i,s;for(s=0;s<f;s+=4)r=F[t.charCodeAt(s)]<<18|F[t.charCodeAt(s+1)]<<12|F[t.charCodeAt(s+2)]<<6|F[t.charCodeAt(s+3)],a[o++]=r>>16&255,a[o++]=r>>8&255,a[o++]=r&255;return n===2&&(r=F[t.charCodeAt(s)]<<2|F[t.charCodeAt(s+1)]>>4,a[o++]=r&255),n===1&&(r=F[t.charCodeAt(s)]<<10|F[t.charCodeAt(s+1)]<<4|F[t.charCodeAt(s+2)]>>2,a[o++]=r>>8&255,a[o++]=r&255),a}function Or(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function zr(t,r,e){for(var i,n=[],a=r;a<e;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),n.push(Or(i));return n.join("")}function Xr(t){for(var r,e=t.length,i=e%3,n=[],a=16383,o=0,f=e-i;o<f;o+=a)n.push(zr(t,o,o+a>f?f:o+a));return i===1?(r=t[e-1],n.push(k[r>>2]+k[r<<4&63]+"==")):i===2&&(r=(t[e-2]<<8)+t[e-1],n.push(k[r>>10]+k[r>>4&63]+k[r<<2&63]+"=")),n.join("")}});var sr=H(z=>{c();z.read=function(t,r,e,i,n){var a,o,f=n*8-i-1,s=(1<<f)-1,p=s>>1,h=-7,l=e?n-1:0,B=e?-1:1,d=t[r+l];for(l+=B,a=d&(1<<-h)-1,d>>=-h,h+=f;h>0;a=a*256+t[r+l],l+=B,h-=8);for(o=a&(1<<-h)-1,a>>=-h,h+=i;h>0;o=o*256+t[r+l],l+=B,h-=8);if(a===0)a=1-p;else{if(a===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,i),a=a-p}return(d?-1:1)*o*Math.pow(2,a-i)};z.write=function(t,r,e,i,n,a){var o,f,s,p=a*8-n-1,h=(1<<p)-1,l=h>>1,B=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:a-1,D=i?1:-1,Nr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,o=h):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+l>=1?r+=B/s:r+=B*Math.pow(2,1-l),r*s>=2&&(o++,s/=2),o+l>=h?(f=0,o=h):o+l>=1?(f=(r*s-1)*Math.pow(2,n),o=o+l):(f=r*Math.pow(2,l-1)*Math.pow(2,n),o=0));n>=8;t[e+d]=f&255,d+=D,f/=256,n-=8);for(o=o<<n|f,p+=n;p>0;t[e+d]=o&255,d+=D,o/=256,p-=8);t[e+d-D]|=Nr*128}});var Br=H(_=>{"use strict";c();var X=fr(),C=sr(),lr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_.Buffer=u;_.SlowBuffer=jr;_.INSPECT_MAX_BYTES=50;var q=2147483647;_.kMaxLength=q;u.TYPED_ARRAY_SUPPORT=Wr();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Wr(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function E(t){if(t>q)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,u.prototype),r}function u(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return K(t)}return cr(t,r,e)}u.poolSize=8192;function cr(t,r,e){if(typeof t=="string")return Jr(t,r);if(ArrayBuffer.isView(t))return Kr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(T(t,ArrayBuffer)||t&&T(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(T(t,SharedArrayBuffer)||t&&T(t.buffer,SharedArrayBuffer)))return $(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(i!=null&&i!==t)return u.from(i,r,e);var n=Zr(t);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return u.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}u.from=function(t,r,e){return cr(t,r,e)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function xr(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 $r(t,r,e){return xr(t),t<=0?E(t):r!==void 0?typeof e=="string"?E(t).fill(r,e):E(t).fill(r):E(t)}u.alloc=function(t,r,e){return $r(t,r,e)};function K(t){return xr(t),E(t<0?0:Z(t)|0)}u.allocUnsafe=function(t){return K(t)};u.allocUnsafeSlow=function(t){return K(t)};function Jr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=gr(t,r)|0,i=E(e),n=i.write(t,r);return n!==e&&(i=i.slice(0,n)),i}function W(t){for(var r=t.length<0?0:Z(t.length)|0,e=E(r),i=0;i<r;i+=1)e[i]=t[i]&255;return e}function Kr(t){if(T(t,Uint8Array)){var r=new Uint8Array(t);return $(r.buffer,r.byteOffset,r.byteLength)}return W(t)}function $(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&e===void 0?i=new Uint8Array(t):e===void 0?i=new Uint8Array(t,r):i=new Uint8Array(t,r,e),Object.setPrototypeOf(i,u.prototype),i}function Zr(t){if(u.isBuffer(t)){var r=Z(t.length)|0,e=E(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||j(t.length)?E(0):W(t);if(t.type==="Buffer"&&Array.isArray(t.data))return W(t.data)}function Z(t){if(t>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return t|0}function jr(t){return+t!=t&&(t=0),u.alloc(+t)}u.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==u.prototype};u.compare=function(r,e){if(T(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),T(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(r)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var i=r.length,n=e.length,a=0,o=Math.min(i,n);a<o;++a)if(r[a]!==e[a]){i=r[a],n=e[a];break}return i<n?-1:n<i?1:0};u.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}};u.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);var i;if(e===void 0)for(e=0,i=0;i<r.length;++i)e+=r[i].length;var n=u.allocUnsafe(e),a=0;for(i=0;i<r.length;++i){var o=r[i];if(T(o,Uint8Array))a+o.length>n.length?u.from(o).copy(n,a):Uint8Array.prototype.set.call(n,o,a);else if(u.isBuffer(o))o.copy(n,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return n};function gr(t,r){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||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 e=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&e===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return vr(t).length;default:if(n)return i?-1:J(t).length;r=(""+r).toLowerCase(),n=!0}}u.byteLength=gr;function re(t,r,e){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return le(this,r,e);case"utf8":case"utf-8":return wr(this,r,e);case"ascii":return fe(this,r,e);case"latin1":case"binary":return se(this,r,e);case"base64":return ae(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,r,e);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}u.prototype._isBuffer=!0;function L(t,r,e){var i=t[r];t[r]=t[e],t[e]=i}u.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)L(this,e,e+1);return this};u.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)L(this,e,e+3),L(this,e+1,e+2);return this};u.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)L(this,e,e+7),L(this,e+1,e+6),L(this,e+2,e+5),L(this,e+3,e+4);return this};u.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?wr(this,0,r):re.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(r){if(!u.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0};u.prototype.inspect=function(){var r="",e=_.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};lr&&(u.prototype[lr]=u.prototype.inspect);u.prototype.compare=function(r,e,i,n,a){if(T(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),e<0||i>r.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&e>=i)return 0;if(n>=a)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,a>>>=0,this===r)return 0;for(var o=a-n,f=i-e,s=Math.min(o,f),p=this.slice(n,a),h=r.slice(e,i),l=0;l<s;++l)if(p[l]!==h[l]){o=p[l],f=h[l];break}return o<f?-1:f<o?1:0};function yr(t,r,e,i,n){if(t.length===0)return-1;if(typeof e=="string"?(i=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,j(e)&&(e=n?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(n)return-1;e=t.length-1}else if(e<0)if(n)e=0;else return-1;if(typeof r=="string"&&(r=u.from(r,i)),u.isBuffer(r))return r.length===0?-1:pr(t,r,e,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):pr(t,[r],e,i,n);throw new TypeError("val must be string, number or Buffer")}function pr(t,r,e,i,n){var a=1,o=t.length,f=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,f/=2,e/=2}function s(d,D){return a===1?d[D]:d.readUInt16BE(D*a)}var p;if(n){var h=-1;for(p=e;p<o;p++)if(s(t,p)===s(r,h===-1?0:p-h)){if(h===-1&&(h=p),p-h+1===f)return h*a}else h!==-1&&(p-=p-h),h=-1}else for(e+f>o&&(e=o-f),p=e;p>=0;p--){for(var l=!0,B=0;B<f;B++)if(s(t,p+B)!==s(r,B)){l=!1;break}if(l)return p}return-1}u.prototype.includes=function(r,e,i){return this.indexOf(r,e,i)!==-1};u.prototype.indexOf=function(r,e,i){return yr(this,r,e,i,!0)};u.prototype.lastIndexOf=function(r,e,i){return yr(this,r,e,i,!1)};function ee(t,r,e,i){e=Number(e)||0;var n=t.length-e;i?(i=Number(i),i>n&&(i=n)):i=n;var a=r.length;i>a/2&&(i=a/2);for(var o=0;o<i;++o){var f=parseInt(r.substr(o*2,2),16);if(j(f))return o;t[e+o]=f}return o}function te(t,r,e,i){return Y(J(r,t.length-e),t,e,i)}function ie(t,r,e,i){return Y(xe(r),t,e,i)}function ne(t,r,e,i){return Y(vr(r),t,e,i)}function oe(t,r,e,i){return Y(ge(r,t.length-e),t,e,i)}u.prototype.write=function(r,e,i,n){if(e===void 0)n="utf8",i=this.length,e=0;else if(i===void 0&&typeof e=="string")n=e,i=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((i===void 0||i>a)&&(i=a),r.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return ee(this,r,e,i);case"utf8":case"utf-8":return te(this,r,e,i);case"ascii":case"latin1":case"binary":return ie(this,r,e,i);case"base64":return ne(this,r,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,r,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ae(t,r,e){return r===0&&e===t.length?X.fromByteArray(t):X.fromByteArray(t.slice(r,e))}function wr(t,r,e){e=Math.min(t.length,e);for(var i=[],n=r;n<e;){var a=t[n],o=null,f=a>239?4:a>223?3:a>191?2:1;if(n+f<=e){var s,p,h,l;switch(f){case 1:a<128&&(o=a);break;case 2:s=t[n+1],(s&192)===128&&(l=(a&31)<<6|s&63,l>127&&(o=l));break;case 3:s=t[n+1],p=t[n+2],(s&192)===128&&(p&192)===128&&(l=(a&15)<<12|(s&63)<<6|p&63,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:s=t[n+1],p=t[n+2],h=t[n+3],(s&192)===128&&(p&192)===128&&(h&192)===128&&(l=(a&15)<<18|(s&63)<<12|(p&63)<<6|h&63,l>65535&&l<1114112&&(o=l))}}o===null?(o=65533,f=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|o&1023),i.push(o),n+=f}return ue(i)}var hr=4096;function ue(t){var r=t.length;if(r<=hr)return String.fromCharCode.apply(String,t);for(var e="",i=0;i<r;)e+=String.fromCharCode.apply(String,t.slice(i,i+=hr));return e}function fe(t,r,e){var i="";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]&127);return i}function se(t,r,e){var i="";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]);return i}function le(t,r,e){var i=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>i)&&(e=i);for(var n="",a=r;a<e;++a)n+=ye[t[a]];return n}function pe(t,r,e){for(var i=t.slice(r,e),n="",a=0;a<i.length-1;a+=2)n+=String.fromCharCode(i[a]+i[a+1]*256);return n}u.prototype.slice=function(r,e){var i=this.length;r=~~r,e=e===void 0?i:~~e,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e<r&&(e=r);var n=this.subarray(r,e);return Object.setPrototypeOf(n,u.prototype),n};function g(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(r,e,i){r=r>>>0,e=e>>>0,i||g(r,e,this.length);for(var n=this[r],a=1,o=0;++o<e&&(a*=256);)n+=this[r+o]*a;return n};u.prototype.readUintBE=u.prototype.readUIntBE=function(r,e,i){r=r>>>0,e=e>>>0,i||g(r,e,this.length);for(var n=this[r+--e],a=1;e>0&&(a*=256);)n+=this[r+--e]*a;return n};u.prototype.readUint8=u.prototype.readUInt8=function(r,e){return r=r>>>0,e||g(r,1,this.length),this[r]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||g(r,2,this.length),this[r]|this[r+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||g(r,2,this.length),this[r]<<8|this[r+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||g(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||g(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};u.prototype.readIntLE=function(r,e,i){r=r>>>0,e=e>>>0,i||g(r,e,this.length);for(var n=this[r],a=1,o=0;++o<e&&(a*=256);)n+=this[r+o]*a;return a*=128,n>=a&&(n-=Math.pow(2,8*e)),n};u.prototype.readIntBE=function(r,e,i){r=r>>>0,e=e>>>0,i||g(r,e,this.length);for(var n=e,a=1,o=this[r+--n];n>0&&(a*=256);)o+=this[r+--n]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};u.prototype.readInt8=function(r,e){return r=r>>>0,e||g(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};u.prototype.readInt16LE=function(r,e){r=r>>>0,e||g(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};u.prototype.readInt16BE=function(r,e){r=r>>>0,e||g(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};u.prototype.readInt32LE=function(r,e){return r=r>>>0,e||g(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};u.prototype.readInt32BE=function(r,e){return r=r>>>0,e||g(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};u.prototype.readFloatLE=function(r,e){return r=r>>>0,e||g(r,4,this.length),C.read(this,r,!0,23,4)};u.prototype.readFloatBE=function(r,e){return r=r>>>0,e||g(r,4,this.length),C.read(this,r,!1,23,4)};u.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||g(r,8,this.length),C.read(this,r,!0,52,8)};u.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||g(r,8,this.length),C.read(this,r,!1,52,8)};function w(t,r,e,i,n,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<a)throw new RangeError('"value" argument is out of bounds');if(e+i>t.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(r,e,i,n){if(r=+r,e=e>>>0,i=i>>>0,!n){var a=Math.pow(2,8*i)-1;w(this,r,e,i,a,0)}var o=1,f=0;for(this[e]=r&255;++f<i&&(o*=256);)this[e+f]=r/o&255;return e+i};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(r,e,i,n){if(r=+r,e=e>>>0,i=i>>>0,!n){var a=Math.pow(2,8*i)-1;w(this,r,e,i,a,0)}var o=i-1,f=1;for(this[e+o]=r&255;--o>=0&&(f*=256);)this[e+o]=r/f&255;return e+i};u.prototype.writeUint8=u.prototype.writeUInt8=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,1,255,0),this[e]=r&255,e+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};u.prototype.writeIntLE=function(r,e,i,n){if(r=+r,e=e>>>0,!n){var a=Math.pow(2,8*i-1);w(this,r,e,i,a-1,-a)}var o=0,f=1,s=0;for(this[e]=r&255;++o<i&&(f*=256);)r<0&&s===0&&this[e+o-1]!==0&&(s=1),this[e+o]=(r/f>>0)-s&255;return e+i};u.prototype.writeIntBE=function(r,e,i,n){if(r=+r,e=e>>>0,!n){var a=Math.pow(2,8*i-1);w(this,r,e,i,a-1,-a)}var o=i-1,f=1,s=0;for(this[e+o]=r&255;--o>=0&&(f*=256);)r<0&&s===0&&this[e+o+1]!==0&&(s=1),this[e+o]=(r/f>>0)-s&255;return e+i};u.prototype.writeInt8=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};u.prototype.writeInt16LE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};u.prototype.writeInt16BE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};u.prototype.writeInt32LE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};u.prototype.writeInt32BE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function dr(t,r,e,i,n,a){if(e+i>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function mr(t,r,e,i,n){return r=+r,e=e>>>0,n||dr(t,r,e,4,34028234663852886e22,-34028234663852886e22),C.write(t,r,e,i,23,4),e+4}u.prototype.writeFloatLE=function(r,e,i){return mr(this,r,e,!0,i)};u.prototype.writeFloatBE=function(r,e,i){return mr(this,r,e,!1,i)};function Fr(t,r,e,i,n){return r=+r,e=e>>>0,n||dr(t,r,e,8,17976931348623157e292,-17976931348623157e292),C.write(t,r,e,i,52,8),e+8}u.prototype.writeDoubleLE=function(r,e,i){return Fr(this,r,e,!0,i)};u.prototype.writeDoubleBE=function(r,e,i){return Fr(this,r,e,!1,i)};u.prototype.copy=function(r,e,i,n){if(!u.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),e>=r.length&&(e=r.length),e||(e=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-e<n-i&&(n=r.length-e+i);var a=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),e),a};u.prototype.fill=function(r,e,i,n){if(typeof r=="string"){if(typeof e=="string"?(n=e,e=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var a=r.charCodeAt(0);(n==="utf8"&&a<128||n==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;e=e>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<i;++o)this[o]=r;else{var f=u.isBuffer(r)?r:u.from(r,n),s=f.length;if(s===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<i-e;++o)this[o+e]=f[o%s]}return this};var he=/[^+/0-9A-Za-z-_]/g;function ce(t){if(t=t.split("=")[0],t=t.trim().replace(he,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(t,r){r=r||1/0;for(var e,i=t.length,n=null,a=[],o=0;o<i;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!n){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===i){(r-=3)>-1&&a.push(239,191,189);continue}n=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),n=e;continue}e=(n-55296<<10|e-56320)+65536}else n&&(r-=3)>-1&&a.push(239,191,189);if(n=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function xe(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function ge(t,r){for(var e,i,n,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),i=e>>8,n=e%256,a.push(n),a.push(i);return a}function vr(t){return X.toByteArray(ce(t))}function Y(t,r,e,i){for(var n=0;n<i&&!(n+e>=r.length||n>=t.length);++n)r[n+e]=t[n];return n}function T(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function j(t){return t!==t}var ye=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var i=e*16,n=0;n<16;++n)r[i+n]=t[e]+t[n];return r}()});var Er=H((Ae,Ur)=>{c();var x=Ur.exports={},I,U;function rr(){throw new Error("setTimeout has not been defined")}function er(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=rr}catch(t){I=rr}try{typeof clearTimeout=="function"?U=clearTimeout:U=er}catch(t){U=er}})();function kr(t){if(I===setTimeout)return setTimeout(t,0);if((I===rr||!I)&&setTimeout)return I=setTimeout,setTimeout(t,0);try{return I(t,0)}catch(r){try{return I.call(null,t,0)}catch(e){return I.call(this,t,0)}}}function we(t){if(U===clearTimeout)return clearTimeout(t);if((U===er||!U)&&clearTimeout)return U=clearTimeout,clearTimeout(t);try{return U(t)}catch(r){try{return U.call(null,t)}catch(e){return U.call(this,t)}}}var S=[],M=!1,N,Q=-1;function de(){!M||!N||(M=!1,N.length?S=N.concat(S):Q=-1,S.length&&Tr())}function Tr(){if(!M){var t=kr(de);M=!0;for(var r=S.length;r;){for(N=S,S=[];++Q<r;)N&&N[Q].run();Q=-1,r=S.length}N=null,M=!1,we(t)}}x.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];S.push(new Ir(t,r)),S.length===1&&!M&&kr(Tr)};function Ir(t,r){this.fun=t,this.array=r}Ir.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function A(){}x.on=A;x.addListener=A;x.once=A;x.off=A;x.removeListener=A;x.removeAllListeners=A;x.emit=A;x.prependListener=A;x.prependOnceListener=A;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var y,m,Re,c=Pr(()=>{y=V(Br()),m=V(Er()),Re=function(t){function r(){var i=this||self;return delete t.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var Te={};Hr(Te,{decodeByMethod:()=>b,getDisplayValueAndValidationWarnings:()=>ke,getHexValidationWarnings:()=>ir,getSmartDecodedParts:()=>nr});module.exports=Gr(Te);c();c();var Lr=require("@multiversx/sdk-core/out"),tr=V(require("bignumber.js"));c();c();var Sr=require("@multiversx/sdk-core");function me(t){try{let r=new Sr.Address(t);return Boolean(r.bech32())}catch(r){return!1}}function Ar(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&me(t)}c();function Rr(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>127)return!1;return!0}var b=(t,r,e)=>{switch(r){case"text":try{return y.Buffer.from(String(t),"hex").toString("utf8")}catch(n){}return t;case"decimal":return new tr.default(t,16).toString(10);case"smart":try{let n=Lr.Address.fromHex(t).toString();if(Ar(n))return n}catch(n){}try{let n=y.Buffer.from(String(t),"hex").toString("utf8");return Rr(n)||e&&[...e.esdts,...e.nfts].some(f=>n.includes(f))?n:new tr.default(t,16).toString(10)}catch(n){}return t;case"raw":default:return t}};c();c();var ve=t=>t.toLowerCase().match(/[0-9a-f]/g),Be=t=>t.length%2===0,ir=t=>{let r=[];return t&&!ve(t)&&r.push(`Invalid Hex characters on argument @${t}`),t&&!Be(t)&&r.push(`Odd number of Hex characters on argument @${t}`),r};c();c();var nr=({parts:t,decodedParts:r,identifier:e})=>{let i=[...r];if(t[0]==="ESDTNFTTransfer"&&t[2]&&(i[2]=b(t[2],"decimal")),e==="ESDTNFTTransfer"&&t[1]){let n=y.Buffer.from(String(t[1]),"base64");i[1]=b(n.toString("hex"),"decimal")}return i};var ke=({parts:t,decodeMethod:r,identifier:e})=>{let i=[],n=t.map((o,f)=>{if(t.length>=2&&(f===0&&o.length<64||f===1&&!t[0]))return/[^a-z0-9]/gi.test(o)?b(o,r):o;{let s=ir(o);return s.length&&(i=s),b(o,r)}});return{displayValue:(r==="smart"?nr({parts:t,decodedParts:n,identifier:e}):n).join("@"),validationWarnings:i}};0&&(module.exports={decodeByMethod,getDisplayValueAndValidationWarnings,getHexValidationWarnings,getSmartDecodedParts});
|
|
1
|
+
"use strict";var br=Object.create;var P=Object.defineProperty;var Dr=Object.getOwnPropertyDescriptor;var _r=Object.getOwnPropertyNames;var Cr=Object.getPrototypeOf,Mr=Object.prototype.hasOwnProperty;var Pr=(t,r)=>()=>(t&&(r=t(t=0)),r);var H=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Hr=(t,r)=>{for(var e in r)P(t,e,{get:r[e],enumerable:!0})},or=(t,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of _r(r))!Mr.call(t,n)&&n!==e&&P(t,n,{get:()=>r[n],enumerable:!(i=Dr(r,n))||i.enumerable});return t};var O=(t,r,e)=>(e=t!=null?br(Cr(t)):{},or(r||!t||!t.__esModule?P(e,"default",{value:t,enumerable:!0}):e,t)),Gr=t=>or(P({},"__esModule",{value:!0}),t);var fr=H(G=>{"use strict";c();G.byteLength=Yr;G.toByteArray=Or;G.fromByteArray=Xr;var k=[],F=[],qr=typeof Uint8Array!="undefined"?Uint8Array:Array,V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(R=0,ar=V.length;R<ar;++R)k[R]=V[R],F[V.charCodeAt(R)]=R;var R,ar;F["-".charCodeAt(0)]=62;F["_".charCodeAt(0)]=63;function ur(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var i=e===r?0:4-e%4;return[e,i]}function Yr(t){var r=ur(t),e=r[0],i=r[1];return(e+i)*3/4-i}function Qr(t,r,e){return(r+e)*3/4-e}function Or(t){var r,e=ur(t),i=e[0],n=e[1],a=new qr(Qr(t,i,n)),o=0,f=n>0?i-4:i,s;for(s=0;s<f;s+=4)r=F[t.charCodeAt(s)]<<18|F[t.charCodeAt(s+1)]<<12|F[t.charCodeAt(s+2)]<<6|F[t.charCodeAt(s+3)],a[o++]=r>>16&255,a[o++]=r>>8&255,a[o++]=r&255;return n===2&&(r=F[t.charCodeAt(s)]<<2|F[t.charCodeAt(s+1)]>>4,a[o++]=r&255),n===1&&(r=F[t.charCodeAt(s)]<<10|F[t.charCodeAt(s+1)]<<4|F[t.charCodeAt(s+2)]>>2,a[o++]=r>>8&255,a[o++]=r&255),a}function Vr(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function zr(t,r,e){for(var i,n=[],a=r;a<e;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),n.push(Vr(i));return n.join("")}function Xr(t){for(var r,e=t.length,i=e%3,n=[],a=16383,o=0,f=e-i;o<f;o+=a)n.push(zr(t,o,o+a>f?f:o+a));return i===1?(r=t[e-1],n.push(k[r>>2]+k[r<<4&63]+"==")):i===2&&(r=(t[e-2]<<8)+t[e-1],n.push(k[r>>10]+k[r>>4&63]+k[r<<2&63]+"=")),n.join("")}});var sr=H(z=>{c();z.read=function(t,r,e,i,n){var a,o,f=n*8-i-1,s=(1<<f)-1,p=s>>1,h=-7,l=e?n-1:0,B=e?-1:1,d=t[r+l];for(l+=B,a=d&(1<<-h)-1,d>>=-h,h+=f;h>0;a=a*256+t[r+l],l+=B,h-=8);for(o=a&(1<<-h)-1,a>>=-h,h+=i;h>0;o=o*256+t[r+l],l+=B,h-=8);if(a===0)a=1-p;else{if(a===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,i),a=a-p}return(d?-1:1)*o*Math.pow(2,a-i)};z.write=function(t,r,e,i,n,a){var o,f,s,p=a*8-n-1,h=(1<<p)-1,l=h>>1,B=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:a-1,D=i?1:-1,Nr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,o=h):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+l>=1?r+=B/s:r+=B*Math.pow(2,1-l),r*s>=2&&(o++,s/=2),o+l>=h?(f=0,o=h):o+l>=1?(f=(r*s-1)*Math.pow(2,n),o=o+l):(f=r*Math.pow(2,l-1)*Math.pow(2,n),o=0));n>=8;t[e+d]=f&255,d+=D,f/=256,n-=8);for(o=o<<n|f,p+=n;p>0;t[e+d]=o&255,d+=D,o/=256,p-=8);t[e+d-D]|=Nr*128}});var Br=H(C=>{"use strict";c();var X=fr(),_=sr(),lr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;C.Buffer=u;C.SlowBuffer=jr;C.INSPECT_MAX_BYTES=50;var q=2147483647;C.kMaxLength=q;u.TYPED_ARRAY_SUPPORT=$r();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function $r(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function E(t){if(t>q)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,u.prototype),r}function u(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return W(t)}return cr(t,r,e)}u.poolSize=8192;function cr(t,r,e){if(typeof t=="string")return Kr(t,r);if(ArrayBuffer.isView(t))return Wr(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(t,ArrayBuffer)||t&&T(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(T(t,SharedArrayBuffer)||t&&T(t.buffer,SharedArrayBuffer)))return J(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(i!=null&&i!==t)return u.from(i,r,e);var n=Zr(t);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return u.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}u.from=function(t,r,e){return cr(t,r,e)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function xr(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 Jr(t,r,e){return xr(t),t<=0?E(t):r!==void 0?typeof e=="string"?E(t).fill(r,e):E(t).fill(r):E(t)}u.alloc=function(t,r,e){return Jr(t,r,e)};function W(t){return xr(t),E(t<0?0:Z(t)|0)}u.allocUnsafe=function(t){return W(t)};u.allocUnsafeSlow=function(t){return W(t)};function Kr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=gr(t,r)|0,i=E(e),n=i.write(t,r);return n!==e&&(i=i.slice(0,n)),i}function $(t){for(var r=t.length<0?0:Z(t.length)|0,e=E(r),i=0;i<r;i+=1)e[i]=t[i]&255;return e}function Wr(t){if(T(t,Uint8Array)){var r=new Uint8Array(t);return J(r.buffer,r.byteOffset,r.byteLength)}return $(t)}function J(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&e===void 0?i=new Uint8Array(t):e===void 0?i=new Uint8Array(t,r):i=new Uint8Array(t,r,e),Object.setPrototypeOf(i,u.prototype),i}function Zr(t){if(u.isBuffer(t)){var r=Z(t.length)|0,e=E(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||j(t.length)?E(0):$(t);if(t.type==="Buffer"&&Array.isArray(t.data))return $(t.data)}function Z(t){if(t>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return t|0}function jr(t){return+t!=t&&(t=0),u.alloc(+t)}u.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==u.prototype};u.compare=function(r,e){if(T(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),T(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(r)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var i=r.length,n=e.length,a=0,o=Math.min(i,n);a<o;++a)if(r[a]!==e[a]){i=r[a],n=e[a];break}return i<n?-1:n<i?1:0};u.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}};u.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);var i;if(e===void 0)for(e=0,i=0;i<r.length;++i)e+=r[i].length;var n=u.allocUnsafe(e),a=0;for(i=0;i<r.length;++i){var o=r[i];if(T(o,Uint8Array))a+o.length>n.length?u.from(o).copy(n,a):Uint8Array.prototype.set.call(n,o,a);else if(u.isBuffer(o))o.copy(n,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return n};function gr(t,r){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||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 e=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&e===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return vr(t).length;default:if(n)return i?-1:K(t).length;r=(""+r).toLowerCase(),n=!0}}u.byteLength=gr;function re(t,r,e){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return le(this,r,e);case"utf8":case"utf-8":return wr(this,r,e);case"ascii":return fe(this,r,e);case"latin1":case"binary":return se(this,r,e);case"base64":return ae(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,r,e);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}u.prototype._isBuffer=!0;function L(t,r,e){var i=t[r];t[r]=t[e],t[e]=i}u.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)L(this,e,e+1);return this};u.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)L(this,e,e+3),L(this,e+1,e+2);return this};u.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)L(this,e,e+7),L(this,e+1,e+6),L(this,e+2,e+5),L(this,e+3,e+4);return this};u.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?wr(this,0,r):re.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(r){if(!u.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0};u.prototype.inspect=function(){var r="",e=C.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};lr&&(u.prototype[lr]=u.prototype.inspect);u.prototype.compare=function(r,e,i,n,a){if(T(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),e<0||i>r.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&e>=i)return 0;if(n>=a)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,a>>>=0,this===r)return 0;for(var o=a-n,f=i-e,s=Math.min(o,f),p=this.slice(n,a),h=r.slice(e,i),l=0;l<s;++l)if(p[l]!==h[l]){o=p[l],f=h[l];break}return o<f?-1:f<o?1:0};function yr(t,r,e,i,n){if(t.length===0)return-1;if(typeof e=="string"?(i=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,j(e)&&(e=n?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(n)return-1;e=t.length-1}else if(e<0)if(n)e=0;else return-1;if(typeof r=="string"&&(r=u.from(r,i)),u.isBuffer(r))return r.length===0?-1:pr(t,r,e,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):pr(t,[r],e,i,n);throw new TypeError("val must be string, number or Buffer")}function pr(t,r,e,i,n){var a=1,o=t.length,f=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,f/=2,e/=2}function s(d,D){return a===1?d[D]:d.readUInt16BE(D*a)}var p;if(n){var h=-1;for(p=e;p<o;p++)if(s(t,p)===s(r,h===-1?0:p-h)){if(h===-1&&(h=p),p-h+1===f)return h*a}else h!==-1&&(p-=p-h),h=-1}else for(e+f>o&&(e=o-f),p=e;p>=0;p--){for(var l=!0,B=0;B<f;B++)if(s(t,p+B)!==s(r,B)){l=!1;break}if(l)return p}return-1}u.prototype.includes=function(r,e,i){return this.indexOf(r,e,i)!==-1};u.prototype.indexOf=function(r,e,i){return yr(this,r,e,i,!0)};u.prototype.lastIndexOf=function(r,e,i){return yr(this,r,e,i,!1)};function ee(t,r,e,i){e=Number(e)||0;var n=t.length-e;i?(i=Number(i),i>n&&(i=n)):i=n;var a=r.length;i>a/2&&(i=a/2);for(var o=0;o<i;++o){var f=parseInt(r.substr(o*2,2),16);if(j(f))return o;t[e+o]=f}return o}function te(t,r,e,i){return Y(K(r,t.length-e),t,e,i)}function ie(t,r,e,i){return Y(xe(r),t,e,i)}function ne(t,r,e,i){return Y(vr(r),t,e,i)}function oe(t,r,e,i){return Y(ge(r,t.length-e),t,e,i)}u.prototype.write=function(r,e,i,n){if(e===void 0)n="utf8",i=this.length,e=0;else if(i===void 0&&typeof e=="string")n=e,i=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((i===void 0||i>a)&&(i=a),r.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return ee(this,r,e,i);case"utf8":case"utf-8":return te(this,r,e,i);case"ascii":case"latin1":case"binary":return ie(this,r,e,i);case"base64":return ne(this,r,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,r,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ae(t,r,e){return r===0&&e===t.length?X.fromByteArray(t):X.fromByteArray(t.slice(r,e))}function wr(t,r,e){e=Math.min(t.length,e);for(var i=[],n=r;n<e;){var a=t[n],o=null,f=a>239?4:a>223?3:a>191?2:1;if(n+f<=e){var s,p,h,l;switch(f){case 1:a<128&&(o=a);break;case 2:s=t[n+1],(s&192)===128&&(l=(a&31)<<6|s&63,l>127&&(o=l));break;case 3:s=t[n+1],p=t[n+2],(s&192)===128&&(p&192)===128&&(l=(a&15)<<12|(s&63)<<6|p&63,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:s=t[n+1],p=t[n+2],h=t[n+3],(s&192)===128&&(p&192)===128&&(h&192)===128&&(l=(a&15)<<18|(s&63)<<12|(p&63)<<6|h&63,l>65535&&l<1114112&&(o=l))}}o===null?(o=65533,f=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|o&1023),i.push(o),n+=f}return ue(i)}var hr=4096;function ue(t){var r=t.length;if(r<=hr)return String.fromCharCode.apply(String,t);for(var e="",i=0;i<r;)e+=String.fromCharCode.apply(String,t.slice(i,i+=hr));return e}function fe(t,r,e){var i="";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]&127);return i}function se(t,r,e){var i="";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]);return i}function le(t,r,e){var i=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>i)&&(e=i);for(var n="",a=r;a<e;++a)n+=ye[t[a]];return n}function pe(t,r,e){for(var i=t.slice(r,e),n="",a=0;a<i.length-1;a+=2)n+=String.fromCharCode(i[a]+i[a+1]*256);return n}u.prototype.slice=function(r,e){var i=this.length;r=~~r,e=e===void 0?i:~~e,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e<r&&(e=r);var n=this.subarray(r,e);return Object.setPrototypeOf(n,u.prototype),n};function g(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(r,e,i){r=r>>>0,e=e>>>0,i||g(r,e,this.length);for(var n=this[r],a=1,o=0;++o<e&&(a*=256);)n+=this[r+o]*a;return n};u.prototype.readUintBE=u.prototype.readUIntBE=function(r,e,i){r=r>>>0,e=e>>>0,i||g(r,e,this.length);for(var n=this[r+--e],a=1;e>0&&(a*=256);)n+=this[r+--e]*a;return n};u.prototype.readUint8=u.prototype.readUInt8=function(r,e){return r=r>>>0,e||g(r,1,this.length),this[r]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||g(r,2,this.length),this[r]|this[r+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||g(r,2,this.length),this[r]<<8|this[r+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||g(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||g(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};u.prototype.readIntLE=function(r,e,i){r=r>>>0,e=e>>>0,i||g(r,e,this.length);for(var n=this[r],a=1,o=0;++o<e&&(a*=256);)n+=this[r+o]*a;return a*=128,n>=a&&(n-=Math.pow(2,8*e)),n};u.prototype.readIntBE=function(r,e,i){r=r>>>0,e=e>>>0,i||g(r,e,this.length);for(var n=e,a=1,o=this[r+--n];n>0&&(a*=256);)o+=this[r+--n]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};u.prototype.readInt8=function(r,e){return r=r>>>0,e||g(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};u.prototype.readInt16LE=function(r,e){r=r>>>0,e||g(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};u.prototype.readInt16BE=function(r,e){r=r>>>0,e||g(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};u.prototype.readInt32LE=function(r,e){return r=r>>>0,e||g(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};u.prototype.readInt32BE=function(r,e){return r=r>>>0,e||g(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};u.prototype.readFloatLE=function(r,e){return r=r>>>0,e||g(r,4,this.length),_.read(this,r,!0,23,4)};u.prototype.readFloatBE=function(r,e){return r=r>>>0,e||g(r,4,this.length),_.read(this,r,!1,23,4)};u.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||g(r,8,this.length),_.read(this,r,!0,52,8)};u.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||g(r,8,this.length),_.read(this,r,!1,52,8)};function w(t,r,e,i,n,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<a)throw new RangeError('"value" argument is out of bounds');if(e+i>t.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(r,e,i,n){if(r=+r,e=e>>>0,i=i>>>0,!n){var a=Math.pow(2,8*i)-1;w(this,r,e,i,a,0)}var o=1,f=0;for(this[e]=r&255;++f<i&&(o*=256);)this[e+f]=r/o&255;return e+i};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(r,e,i,n){if(r=+r,e=e>>>0,i=i>>>0,!n){var a=Math.pow(2,8*i)-1;w(this,r,e,i,a,0)}var o=i-1,f=1;for(this[e+o]=r&255;--o>=0&&(f*=256);)this[e+o]=r/f&255;return e+i};u.prototype.writeUint8=u.prototype.writeUInt8=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,1,255,0),this[e]=r&255,e+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};u.prototype.writeIntLE=function(r,e,i,n){if(r=+r,e=e>>>0,!n){var a=Math.pow(2,8*i-1);w(this,r,e,i,a-1,-a)}var o=0,f=1,s=0;for(this[e]=r&255;++o<i&&(f*=256);)r<0&&s===0&&this[e+o-1]!==0&&(s=1),this[e+o]=(r/f>>0)-s&255;return e+i};u.prototype.writeIntBE=function(r,e,i,n){if(r=+r,e=e>>>0,!n){var a=Math.pow(2,8*i-1);w(this,r,e,i,a-1,-a)}var o=i-1,f=1,s=0;for(this[e+o]=r&255;--o>=0&&(f*=256);)r<0&&s===0&&this[e+o+1]!==0&&(s=1),this[e+o]=(r/f>>0)-s&255;return e+i};u.prototype.writeInt8=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};u.prototype.writeInt16LE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};u.prototype.writeInt16BE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};u.prototype.writeInt32LE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};u.prototype.writeInt32BE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function dr(t,r,e,i,n,a){if(e+i>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function mr(t,r,e,i,n){return r=+r,e=e>>>0,n||dr(t,r,e,4,34028234663852886e22,-34028234663852886e22),_.write(t,r,e,i,23,4),e+4}u.prototype.writeFloatLE=function(r,e,i){return mr(this,r,e,!0,i)};u.prototype.writeFloatBE=function(r,e,i){return mr(this,r,e,!1,i)};function Fr(t,r,e,i,n){return r=+r,e=e>>>0,n||dr(t,r,e,8,17976931348623157e292,-17976931348623157e292),_.write(t,r,e,i,52,8),e+8}u.prototype.writeDoubleLE=function(r,e,i){return Fr(this,r,e,!0,i)};u.prototype.writeDoubleBE=function(r,e,i){return Fr(this,r,e,!1,i)};u.prototype.copy=function(r,e,i,n){if(!u.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),e>=r.length&&(e=r.length),e||(e=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-e<n-i&&(n=r.length-e+i);var a=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),e),a};u.prototype.fill=function(r,e,i,n){if(typeof r=="string"){if(typeof e=="string"?(n=e,e=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var a=r.charCodeAt(0);(n==="utf8"&&a<128||n==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;e=e>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<i;++o)this[o]=r;else{var f=u.isBuffer(r)?r:u.from(r,n),s=f.length;if(s===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<i-e;++o)this[o+e]=f[o%s]}return this};var he=/[^+/0-9A-Za-z-_]/g;function ce(t){if(t=t.split("=")[0],t=t.trim().replace(he,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function K(t,r){r=r||1/0;for(var e,i=t.length,n=null,a=[],o=0;o<i;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!n){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===i){(r-=3)>-1&&a.push(239,191,189);continue}n=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),n=e;continue}e=(n-55296<<10|e-56320)+65536}else n&&(r-=3)>-1&&a.push(239,191,189);if(n=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function xe(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function ge(t,r){for(var e,i,n,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),i=e>>8,n=e%256,a.push(n),a.push(i);return a}function vr(t){return X.toByteArray(ce(t))}function Y(t,r,e,i){for(var n=0;n<i&&!(n+e>=r.length||n>=t.length);++n)r[n+e]=t[n];return n}function T(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function j(t){return t!==t}var ye=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var i=e*16,n=0;n<16;++n)r[i+n]=t[e]+t[n];return r}()});var Er=H((Se,Ur)=>{c();var x=Ur.exports={},I,U;function rr(){throw new Error("setTimeout has not been defined")}function er(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=rr}catch(t){I=rr}try{typeof clearTimeout=="function"?U=clearTimeout:U=er}catch(t){U=er}})();function kr(t){if(I===setTimeout)return setTimeout(t,0);if((I===rr||!I)&&setTimeout)return I=setTimeout,setTimeout(t,0);try{return I(t,0)}catch(r){try{return I.call(null,t,0)}catch(e){return I.call(this,t,0)}}}function we(t){if(U===clearTimeout)return clearTimeout(t);if((U===er||!U)&&clearTimeout)return U=clearTimeout,clearTimeout(t);try{return U(t)}catch(r){try{return U.call(null,t)}catch(e){return U.call(this,t)}}}var A=[],M=!1,N,Q=-1;function de(){!M||!N||(M=!1,N.length?A=N.concat(A):Q=-1,A.length&&Tr())}function Tr(){if(!M){var t=kr(de);M=!0;for(var r=A.length;r;){for(N=A,A=[];++Q<r;)N&&N[Q].run();Q=-1,r=A.length}N=null,M=!1,we(t)}}x.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];A.push(new Ir(t,r)),A.length===1&&!M&&kr(Tr)};function Ir(t,r){this.fun=t,this.array=r}Ir.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function S(){}x.on=S;x.addListener=S;x.once=S;x.off=S;x.removeListener=S;x.removeAllListeners=S;x.emit=S;x.prependListener=S;x.prependOnceListener=S;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var y,m,Re,c=Pr(()=>{y=O(Br()),m=O(Er()),Re=function(t){function r(){var i=this||self;return delete t.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var Te={};Hr(Te,{decodeByMethod:()=>b,getDisplayValueAndValidationWarnings:()=>ke,getHexValidationWarnings:()=>ir,getSmartDecodedParts:()=>nr});module.exports=Gr(Te);c();c();var Lr=require("@multiversx/sdk-core/out"),tr=O(require("bignumber.js"));c();c();var Ar=require("@multiversx/sdk-core");function me(t){try{let r=new Ar.Address(t);return Boolean(r.bech32())}catch(r){return!1}}function Sr(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&me(t)}c();function Rr(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>127)return!1;return!0}var b=(t,r,e)=>{switch(r){case"text":try{return y.Buffer.from(String(t),"hex").toString("utf8")}catch(n){}return t;case"decimal":return new tr.default(t,16).toString(10);case"smart":try{let n=Lr.Address.fromHex(t).toString();if(Sr(n))return n}catch(n){}try{let n=y.Buffer.from(String(t),"hex").toString("utf8");return Rr(n)||e&&[...e.esdts,...e.nfts].some(f=>n.includes(f))?n:new tr.default(t,16).toString(10)}catch(n){}return t;case"raw":default:return t}};c();c();var ve=t=>t.toLowerCase().match(/[0-9a-f]/g),Be=t=>t.length%2===0,ir=t=>{let r=[];return t&&!ve(t)&&r.push(`Invalid Hex characters on argument @${t}`),t&&!Be(t)&&r.push(`Odd number of Hex characters on argument @${t}`),r};c();c();var nr=({parts:t,decodedParts:r,identifier:e})=>{let i=[...r];if(t[0]==="ESDTNFTTransfer"&&t[2]&&(i[2]=b(t[2],"decimal")),e==="ESDTNFTTransfer"&&t[1]){let n=y.Buffer.from(String(t[1]),"base64");i[1]=b(n.toString("hex"),"decimal")}return i};var ke=({parts:t,decodeMethod:r,identifier:e})=>{let i=[],n=t.map((o,f)=>{if(t.length>=2&&(f===0&&o.length<64||f===1&&!t[0]))return/[^a-z0-9]/gi.test(o)?b(o,r):o;{let s=ir(o);return s.length&&(i=s),b(o,r)}});return{displayValue:(r==="smart"?nr({parts:t,decodedParts:n,identifier:e}):n).join("@"),validationWarnings:i}};0&&(module.exports={decodeByMethod,getDisplayValueAndValidationWarnings,getHexValidationWarnings,getSmartDecodedParts});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Cr=Object.create;var P=Object.defineProperty;var _r=Object.getOwnPropertyDescriptor;var Mr=Object.getOwnPropertyNames;var Pr=Object.getPrototypeOf,Hr=Object.prototype.hasOwnProperty;var Gr=(t,r)=>()=>(t&&(r=t(t=0)),r);var H=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),qr=(t,r)=>{for(var e in r)P(t,e,{get:r[e],enumerable:!0})},nr=(t,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Mr(r))!Hr.call(t,n)&&n!==e&&P(t,n,{get:()=>r[n],enumerable:!(i=_r(r,n))||i.enumerable});return t};var O=(t,r,e)=>(e=t!=null?Cr(Pr(t)):{},nr(r||!t||!t.__esModule?P(e,"default",{value:t,enumerable:!0}):e,t)),Vr=t=>nr(P({},"__esModule",{value:!0}),t);var ur=H(G=>{"use strict";c();G.byteLength=Qr;G.toByteArray=Wr;G.fromByteArray=$r;var k=[],v=[],Yr=typeof Uint8Array!="undefined"?Uint8Array:Array,W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(L=0,or=W.length;L<or;++L)k[L]=W[L],v[W.charCodeAt(L)]=L;var L,or;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function ar(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var i=e===r?0:4-e%4;return[e,i]}function Qr(t){var r=ar(t),e=r[0],i=r[1];return(e+i)*3/4-i}function Or(t,r,e){return(r+e)*3/4-e}function Wr(t){var r,e=ar(t),i=e[0],n=e[1],o=new Yr(Or(t,i,n)),a=0,s=n>0?i-4:i,f;for(f=0;f<s;f+=4)r=v[t.charCodeAt(f)]<<18|v[t.charCodeAt(f+1)]<<12|v[t.charCodeAt(f+2)]<<6|v[t.charCodeAt(f+3)],o[a++]=r>>16&255,o[a++]=r>>8&255,o[a++]=r&255;return n===2&&(r=v[t.charCodeAt(f)]<<2|v[t.charCodeAt(f+1)]>>4,o[a++]=r&255),n===1&&(r=v[t.charCodeAt(f)]<<10|v[t.charCodeAt(f+1)]<<4|v[t.charCodeAt(f+2)]>>2,o[a++]=r>>8&255,o[a++]=r&255),o}function zr(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function Xr(t,r,e){for(var i,n=[],o=r;o<e;o+=3)i=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),n.push(zr(i));return n.join("")}function $r(t){for(var r,e=t.length,i=e%3,n=[],o=16383,a=0,s=e-i;a<s;a+=o)n.push(Xr(t,a,a+o>s?s:a+o));return i===1?(r=t[e-1],n.push(k[r>>2]+k[r<<4&63]+"==")):i===2&&(r=(t[e-2]<<8)+t[e-1],n.push(k[r>>10]+k[r>>4&63]+k[r<<2&63]+"=")),n.join("")}});var sr=H(z=>{c();z.read=function(t,r,e,i,n){var o,a,s=n*8-i-1,f=(1<<s)-1,p=f>>1,h=-7,l=e?n-1:0,B=e?-1:1,m=t[r+l];for(l+=B,o=m&(1<<-h)-1,m>>=-h,h+=s;h>0;o=o*256+t[r+l],l+=B,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;h>0;a=a*256+t[r+l],l+=B,h-=8);if(o===0)o=1-p;else{if(o===f)return a?NaN:(m?-1:1)*(1/0);a=a+Math.pow(2,i),o=o-p}return(m?-1:1)*a*Math.pow(2,o-i)};z.write=function(t,r,e,i,n,o){var a,s,f,p=o*8-n-1,h=(1<<p)-1,l=h>>1,B=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=i?0:o-1,b=i?1:-1,br=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(s=isNaN(r)?1:0,a=h):(a=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+l>=1?r+=B/f:r+=B*Math.pow(2,1-l),r*f>=2&&(a++,f/=2),a+l>=h?(s=0,a=h):a+l>=1?(s=(r*f-1)*Math.pow(2,n),a=a+l):(s=r*Math.pow(2,l-1)*Math.pow(2,n),a=0));n>=8;t[e+m]=s&255,m+=b,s/=256,n-=8);for(a=a<<n|s,p+=n;p>0;t[e+m]=a&255,m+=b,a/=256,p-=8);t[e+m-b]|=br*128}});var vr=H(_=>{"use strict";c();var X=ur(),C=sr(),fr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_.Buffer=u;_.SlowBuffer=ee;_.INSPECT_MAX_BYTES=50;var q=2147483647;_.kMaxLength=q;u.TYPED_ARRAY_SUPPORT=Jr();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Jr(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function E(t){if(t>q)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,u.prototype),r}function u(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Z(t)}return hr(t,r,e)}u.poolSize=8192;function hr(t,r,e){if(typeof t=="string")return Zr(t,r);if(ArrayBuffer.isView(t))return jr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(T(t,ArrayBuffer)||t&&T(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(T(t,SharedArrayBuffer)||t&&T(t.buffer,SharedArrayBuffer)))return J(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(i!=null&&i!==t)return u.from(i,r,e);var n=re(t);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return u.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}u.from=function(t,r,e){return hr(t,r,e)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function cr(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 Kr(t,r,e){return cr(t),t<=0?E(t):r!==void 0?typeof e=="string"?E(t).fill(r,e):E(t).fill(r):E(t)}u.alloc=function(t,r,e){return Kr(t,r,e)};function Z(t){return cr(t),E(t<0?0:j(t)|0)}u.allocUnsafe=function(t){return Z(t)};u.allocUnsafeSlow=function(t){return Z(t)};function Zr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=gr(t,r)|0,i=E(e),n=i.write(t,r);return n!==e&&(i=i.slice(0,n)),i}function $(t){for(var r=t.length<0?0:j(t.length)|0,e=E(r),i=0;i<r;i+=1)e[i]=t[i]&255;return e}function jr(t){if(T(t,Uint8Array)){var r=new Uint8Array(t);return J(r.buffer,r.byteOffset,r.byteLength)}return $(t)}function J(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&e===void 0?i=new Uint8Array(t):e===void 0?i=new Uint8Array(t,r):i=new Uint8Array(t,r,e),Object.setPrototypeOf(i,u.prototype),i}function re(t){if(u.isBuffer(t)){var r=j(t.length)|0,e=E(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||rr(t.length)?E(0):$(t);if(t.type==="Buffer"&&Array.isArray(t.data))return $(t.data)}function j(t){if(t>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return t|0}function ee(t){return+t!=t&&(t=0),u.alloc(+t)}u.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==u.prototype};u.compare=function(r,e){if(T(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),T(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(r)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var i=r.length,n=e.length,o=0,a=Math.min(i,n);o<a;++o)if(r[o]!==e[o]){i=r[o],n=e[o];break}return i<n?-1:n<i?1:0};u.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}};u.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);var i;if(e===void 0)for(e=0,i=0;i<r.length;++i)e+=r[i].length;var n=u.allocUnsafe(e),o=0;for(i=0;i<r.length;++i){var a=r[i];if(T(a,Uint8Array))o+a.length>n.length?u.from(a).copy(n,o):Uint8Array.prototype.set.call(n,a,o);else if(u.isBuffer(a))a.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return n};function gr(t,r){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||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 e=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&e===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Fr(t).length;default:if(n)return i?-1:K(t).length;r=(""+r).toLowerCase(),n=!0}}u.byteLength=gr;function te(t,r,e){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return he(this,r,e);case"utf8":case"utf-8":return yr(this,r,e);case"ascii":return le(this,r,e);case"latin1":case"binary":return pe(this,r,e);case"base64":return se(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,r,e);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}u.prototype._isBuffer=!0;function N(t,r,e){var i=t[r];t[r]=t[e],t[e]=i}u.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)N(this,e,e+1);return this};u.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)N(this,e,e+3),N(this,e+1,e+2);return this};u.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)N(this,e,e+7),N(this,e+1,e+6),N(this,e+2,e+5),N(this,e+3,e+4);return this};u.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?yr(this,0,r):te.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(r){if(!u.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0};u.prototype.inspect=function(){var r="",e=_.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};fr&&(u.prototype[fr]=u.prototype.inspect);u.prototype.compare=function(r,e,i,n,o){if(T(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),e<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=i)return 0;if(n>=o)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var a=o-n,s=i-e,f=Math.min(a,s),p=this.slice(n,o),h=r.slice(e,i),l=0;l<f;++l)if(p[l]!==h[l]){a=p[l],s=h[l];break}return a<s?-1:s<a?1:0};function xr(t,r,e,i,n){if(t.length===0)return-1;if(typeof e=="string"?(i=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,rr(e)&&(e=n?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(n)return-1;e=t.length-1}else if(e<0)if(n)e=0;else return-1;if(typeof r=="string"&&(r=u.from(r,i)),u.isBuffer(r))return r.length===0?-1:lr(t,r,e,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):lr(t,[r],e,i,n);throw new TypeError("val must be string, number or Buffer")}function lr(t,r,e,i,n){var o=1,a=t.length,s=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||r.length<2)return-1;o=2,a/=2,s/=2,e/=2}function f(m,b){return o===1?m[b]:m.readUInt16BE(b*o)}var p;if(n){var h=-1;for(p=e;p<a;p++)if(f(t,p)===f(r,h===-1?0:p-h)){if(h===-1&&(h=p),p-h+1===s)return h*o}else h!==-1&&(p-=p-h),h=-1}else for(e+s>a&&(e=a-s),p=e;p>=0;p--){for(var l=!0,B=0;B<s;B++)if(f(t,p+B)!==f(r,B)){l=!1;break}if(l)return p}return-1}u.prototype.includes=function(r,e,i){return this.indexOf(r,e,i)!==-1};u.prototype.indexOf=function(r,e,i){return xr(this,r,e,i,!0)};u.prototype.lastIndexOf=function(r,e,i){return xr(this,r,e,i,!1)};function ie(t,r,e,i){e=Number(e)||0;var n=t.length-e;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(r.substr(a*2,2),16);if(rr(s))return a;t[e+a]=s}return a}function ne(t,r,e,i){return V(K(r,t.length-e),t,e,i)}function oe(t,r,e,i){return V(ye(r),t,e,i)}function ae(t,r,e,i){return V(Fr(r),t,e,i)}function ue(t,r,e,i){return V(de(r,t.length-e),t,e,i)}u.prototype.write=function(r,e,i,n){if(e===void 0)n="utf8",i=this.length,e=0;else if(i===void 0&&typeof e=="string")n=e,i=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-e;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return ie(this,r,e,i);case"utf8":case"utf-8":return ne(this,r,e,i);case"ascii":case"latin1":case"binary":return oe(this,r,e,i);case"base64":return ae(this,r,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,r,e,i);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function se(t,r,e){return r===0&&e===t.length?X.fromByteArray(t):X.fromByteArray(t.slice(r,e))}function yr(t,r,e){e=Math.min(t.length,e);for(var i=[],n=r;n<e;){var o=t[n],a=null,s=o>239?4:o>223?3:o>191?2:1;if(n+s<=e){var f,p,h,l;switch(s){case 1:o<128&&(a=o);break;case 2:f=t[n+1],(f&192)===128&&(l=(o&31)<<6|f&63,l>127&&(a=l));break;case 3:f=t[n+1],p=t[n+2],(f&192)===128&&(p&192)===128&&(l=(o&15)<<12|(f&63)<<6|p&63,l>2047&&(l<55296||l>57343)&&(a=l));break;case 4:f=t[n+1],p=t[n+2],h=t[n+3],(f&192)===128&&(p&192)===128&&(h&192)===128&&(l=(o&15)<<18|(f&63)<<12|(p&63)<<6|h&63,l>65535&&l<1114112&&(a=l))}}a===null?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|a&1023),i.push(a),n+=s}return fe(i)}var pr=4096;function fe(t){var r=t.length;if(r<=pr)return String.fromCharCode.apply(String,t);for(var e="",i=0;i<r;)e+=String.fromCharCode.apply(String,t.slice(i,i+=pr));return e}function le(t,r,e){var i="";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]&127);return i}function pe(t,r,e){var i="";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]);return i}function he(t,r,e){var i=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>i)&&(e=i);for(var n="",o=r;o<e;++o)n+=we[t[o]];return n}function ce(t,r,e){for(var i=t.slice(r,e),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}u.prototype.slice=function(r,e){var i=this.length;r=~~r,e=e===void 0?i:~~e,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e<r&&(e=r);var n=this.subarray(r,e);return Object.setPrototypeOf(n,u.prototype),n};function y(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(r,e,i){r=r>>>0,e=e>>>0,i||y(r,e,this.length);for(var n=this[r],o=1,a=0;++a<e&&(o*=256);)n+=this[r+a]*o;return n};u.prototype.readUintBE=u.prototype.readUIntBE=function(r,e,i){r=r>>>0,e=e>>>0,i||y(r,e,this.length);for(var n=this[r+--e],o=1;e>0&&(o*=256);)n+=this[r+--e]*o;return n};u.prototype.readUint8=u.prototype.readUInt8=function(r,e){return r=r>>>0,e||y(r,1,this.length),this[r]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||y(r,2,this.length),this[r]|this[r+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||y(r,2,this.length),this[r]<<8|this[r+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||y(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||y(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};u.prototype.readIntLE=function(r,e,i){r=r>>>0,e=e>>>0,i||y(r,e,this.length);for(var n=this[r],o=1,a=0;++a<e&&(o*=256);)n+=this[r+a]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n};u.prototype.readIntBE=function(r,e,i){r=r>>>0,e=e>>>0,i||y(r,e,this.length);for(var n=e,o=1,a=this[r+--n];n>0&&(o*=256);)a+=this[r+--n]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*e)),a};u.prototype.readInt8=function(r,e){return r=r>>>0,e||y(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};u.prototype.readInt16LE=function(r,e){r=r>>>0,e||y(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};u.prototype.readInt16BE=function(r,e){r=r>>>0,e||y(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};u.prototype.readInt32LE=function(r,e){return r=r>>>0,e||y(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};u.prototype.readInt32BE=function(r,e){return r=r>>>0,e||y(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};u.prototype.readFloatLE=function(r,e){return r=r>>>0,e||y(r,4,this.length),C.read(this,r,!0,23,4)};u.prototype.readFloatBE=function(r,e){return r=r>>>0,e||y(r,4,this.length),C.read(this,r,!1,23,4)};u.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||y(r,8,this.length),C.read(this,r,!0,52,8)};u.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||y(r,8,this.length),C.read(this,r,!1,52,8)};function w(t,r,e,i,n,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(e+i>t.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(r,e,i,n){if(r=+r,e=e>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;w(this,r,e,i,o,0)}var a=1,s=0;for(this[e]=r&255;++s<i&&(a*=256);)this[e+s]=r/a&255;return e+i};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(r,e,i,n){if(r=+r,e=e>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;w(this,r,e,i,o,0)}var a=i-1,s=1;for(this[e+a]=r&255;--a>=0&&(s*=256);)this[e+a]=r/s&255;return e+i};u.prototype.writeUint8=u.prototype.writeUInt8=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,1,255,0),this[e]=r&255,e+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};u.prototype.writeIntLE=function(r,e,i,n){if(r=+r,e=e>>>0,!n){var o=Math.pow(2,8*i-1);w(this,r,e,i,o-1,-o)}var a=0,s=1,f=0;for(this[e]=r&255;++a<i&&(s*=256);)r<0&&f===0&&this[e+a-1]!==0&&(f=1),this[e+a]=(r/s>>0)-f&255;return e+i};u.prototype.writeIntBE=function(r,e,i,n){if(r=+r,e=e>>>0,!n){var o=Math.pow(2,8*i-1);w(this,r,e,i,o-1,-o)}var a=i-1,s=1,f=0;for(this[e+a]=r&255;--a>=0&&(s*=256);)r<0&&f===0&&this[e+a+1]!==0&&(f=1),this[e+a]=(r/s>>0)-f&255;return e+i};u.prototype.writeInt8=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};u.prototype.writeInt16LE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};u.prototype.writeInt16BE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};u.prototype.writeInt32LE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};u.prototype.writeInt32BE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function dr(t,r,e,i,n,o){if(e+i>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function wr(t,r,e,i,n){return r=+r,e=e>>>0,n||dr(t,r,e,4,34028234663852886e22,-34028234663852886e22),C.write(t,r,e,i,23,4),e+4}u.prototype.writeFloatLE=function(r,e,i){return wr(this,r,e,!0,i)};u.prototype.writeFloatBE=function(r,e,i){return wr(this,r,e,!1,i)};function mr(t,r,e,i,n){return r=+r,e=e>>>0,n||dr(t,r,e,8,17976931348623157e292,-17976931348623157e292),C.write(t,r,e,i,52,8),e+8}u.prototype.writeDoubleLE=function(r,e,i){return mr(this,r,e,!0,i)};u.prototype.writeDoubleBE=function(r,e,i){return mr(this,r,e,!1,i)};u.prototype.copy=function(r,e,i,n){if(!u.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),e>=r.length&&(e=r.length),e||(e=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-e<n-i&&(n=r.length-e+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),e),o};u.prototype.fill=function(r,e,i,n){if(typeof r=="string"){if(typeof e=="string"?(n=e,e=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;e=e>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var a;if(typeof r=="number")for(a=e;a<i;++a)this[a]=r;else{var s=u.isBuffer(r)?r:u.from(r,n),f=s.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(a=0;a<i-e;++a)this[a+e]=s[a%f]}return this};var ge=/[^+/0-9A-Za-z-_]/g;function xe(t){if(t=t.split("=")[0],t=t.trim().replace(ge,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function K(t,r){r=r||1/0;for(var e,i=t.length,n=null,o=[],a=0;a<i;++a){if(e=t.charCodeAt(a),e>55295&&e<57344){if(!n){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(a+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),n=e;continue}e=(n-55296<<10|e-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function ye(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function de(t,r){for(var e,i,n,o=[],a=0;a<t.length&&!((r-=2)<0);++a)e=t.charCodeAt(a),i=e>>8,n=e%256,o.push(n),o.push(i);return o}function Fr(t){return X.toByteArray(xe(t))}function V(t,r,e,i){for(var n=0;n<i&&!(n+e>=r.length||n>=t.length);++n)r[n+e]=t[n];return n}function T(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function rr(t){return t!==t}var we=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var i=e*16,n=0;n<16;++n)r[i+n]=t[e]+t[n];return r}()});var Ur=H((Re,Ir)=>{c();var g=Ir.exports={},I,U;function er(){throw new Error("setTimeout has not been defined")}function tr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=er}catch(t){I=er}try{typeof clearTimeout=="function"?U=clearTimeout:U=tr}catch(t){U=tr}})();function Br(t){if(I===setTimeout)return setTimeout(t,0);if((I===er||!I)&&setTimeout)return I=setTimeout,setTimeout(t,0);try{return I(t,0)}catch(r){try{return I.call(null,t,0)}catch(e){return I.call(this,t,0)}}}function me(t){if(U===clearTimeout)return clearTimeout(t);if((U===tr||!U)&&clearTimeout)return U=clearTimeout,clearTimeout(t);try{return U(t)}catch(r){try{return U.call(null,t)}catch(e){return U.call(this,t)}}}var S=[],M=!1,D,Y=-1;function Fe(){!M||!D||(M=!1,D.length?S=D.concat(S):Y=-1,S.length&&kr())}function kr(){if(!M){var t=Br(Fe);M=!0;for(var r=S.length;r;){for(D=S,S=[];++Y<r;)D&&D[Y].run();Y=-1,r=S.length}D=null,M=!1,me(t)}}g.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];S.push(new Tr(t,r)),S.length===1&&!M&&Br(kr)};function Tr(t,r){this.fun=t,this.array=r}Tr.prototype.run=function(){this.fun.apply(null,this.array)};g.title="browser";g.browser=!0;g.env={};g.argv=[];g.version="";g.versions={};function A(){}g.on=A;g.addListener=A;g.once=A;g.off=A;g.removeListener=A;g.removeAllListeners=A;g.emit=A;g.prependListener=A;g.prependOnceListener=A;g.listeners=function(t){return[]};g.binding=function(t){throw new Error("process.binding is not supported")};g.cwd=function(){return"/"};g.chdir=function(t){throw new Error("process.chdir is not supported")};g.umask=function(){return 0}});var x,d,Le,c=Gr(()=>{x=O(vr()),d=O(Ur()),Le=function(t){function r(){var i=this||self;return delete t.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var Ie={};qr(Ie,{decodeForDisplay:()=>Te});module.exports=Vr(Ie);c();c();c();c();var Lr=require("@multiversx/sdk-core/out"),ir=O(require("bignumber.js"));c();var Er=require("@multiversx/sdk-core");function ve(t){try{let r=new Er.Address(t);return Boolean(r.bech32())}catch(r){return!1}}function Sr(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&ve(t)}c();function Ar(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>127)return!1;return!0}var R=(t,r,e)=>{switch(r){case"text":try{return x.Buffer.from(String(t),"hex").toString("utf8")}catch(n){}return t;case"decimal":return new ir.default(t,16).toString(10);case"smart":try{let n=Lr.Address.fromHex(t).toString();if(Sr(n))return n}catch(n){}try{let n=x.Buffer.from(String(t),"hex").toString("utf8");return Ar(n)||e&&[...e.esdts,...e.nfts].some(s=>n.includes(s))?n:new ir.default(t,16).toString(10)}catch(n){}return t;case"raw":default:return t}};c();c();var Be=t=>t.toLowerCase().match(/[0-9a-f]/g),ke=t=>t.length%2===0,Nr=t=>{let r=[];return t&&!Be(t)&&r.push(`Invalid Hex characters on argument @${t}`),t&&!ke(t)&&r.push(`Odd number of Hex characters on argument @${t}`),r};c();c();var Q=({parts:t,decodedParts:r,identifier:e})=>{let i=[...r];if(t[0]==="ESDTNFTTransfer"&&t[2]&&(i[2]=R(t[2],"decimal")),e==="ESDTNFTTransfer"&&t[1]){let n=x.Buffer.from(String(t[1]),"base64");i[1]=R(n.toString("hex"),"decimal")}return i};var Dr=({parts:t,decodeMethod:r,identifier:e})=>{let i=[],n=t.map((a,s)=>{if(t.length>=2&&(s===0&&a.length<64||s===1&&!t[0]))return/[^a-z0-9]/gi.test(a)?R(a,r):a;{let f=Nr(a);return f.length&&(i=f),R(a,r)}});return{displayValue:(r==="smart"?Q({parts:t,decodedParts:n,identifier:e}):n).join("@"),validationWarnings:i}};var Te=({input:t,decodeMethod:r,identifier:e})=>{let i={displayValue:"",validationWarnings:[]};if(!(t.includes("@")||t.includes(`
|
|
1
|
+
"use strict";var _r=Object.create;var P=Object.defineProperty;var Cr=Object.getOwnPropertyDescriptor;var Mr=Object.getOwnPropertyNames;var Pr=Object.getPrototypeOf,Hr=Object.prototype.hasOwnProperty;var Gr=(t,r)=>()=>(t&&(r=t(t=0)),r);var H=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),qr=(t,r)=>{for(var e in r)P(t,e,{get:r[e],enumerable:!0})},nr=(t,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Mr(r))!Hr.call(t,n)&&n!==e&&P(t,n,{get:()=>r[n],enumerable:!(i=Cr(r,n))||i.enumerable});return t};var O=(t,r,e)=>(e=t!=null?_r(Pr(t)):{},nr(r||!t||!t.__esModule?P(e,"default",{value:t,enumerable:!0}):e,t)),Vr=t=>nr(P({},"__esModule",{value:!0}),t);var ur=H(G=>{"use strict";c();G.byteLength=Qr;G.toByteArray=zr;G.fromByteArray=$r;var k=[],v=[],Yr=typeof Uint8Array!="undefined"?Uint8Array:Array,z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(L=0,or=z.length;L<or;++L)k[L]=z[L],v[z.charCodeAt(L)]=L;var L,or;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function ar(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var i=e===r?0:4-e%4;return[e,i]}function Qr(t){var r=ar(t),e=r[0],i=r[1];return(e+i)*3/4-i}function Or(t,r,e){return(r+e)*3/4-e}function zr(t){var r,e=ar(t),i=e[0],n=e[1],o=new Yr(Or(t,i,n)),a=0,s=n>0?i-4:i,f;for(f=0;f<s;f+=4)r=v[t.charCodeAt(f)]<<18|v[t.charCodeAt(f+1)]<<12|v[t.charCodeAt(f+2)]<<6|v[t.charCodeAt(f+3)],o[a++]=r>>16&255,o[a++]=r>>8&255,o[a++]=r&255;return n===2&&(r=v[t.charCodeAt(f)]<<2|v[t.charCodeAt(f+1)]>>4,o[a++]=r&255),n===1&&(r=v[t.charCodeAt(f)]<<10|v[t.charCodeAt(f+1)]<<4|v[t.charCodeAt(f+2)]>>2,o[a++]=r>>8&255,o[a++]=r&255),o}function Wr(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function Xr(t,r,e){for(var i,n=[],o=r;o<e;o+=3)i=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),n.push(Wr(i));return n.join("")}function $r(t){for(var r,e=t.length,i=e%3,n=[],o=16383,a=0,s=e-i;a<s;a+=o)n.push(Xr(t,a,a+o>s?s:a+o));return i===1?(r=t[e-1],n.push(k[r>>2]+k[r<<4&63]+"==")):i===2&&(r=(t[e-2]<<8)+t[e-1],n.push(k[r>>10]+k[r>>4&63]+k[r<<2&63]+"=")),n.join("")}});var sr=H(W=>{c();W.read=function(t,r,e,i,n){var o,a,s=n*8-i-1,f=(1<<s)-1,p=f>>1,h=-7,l=e?n-1:0,B=e?-1:1,m=t[r+l];for(l+=B,o=m&(1<<-h)-1,m>>=-h,h+=s;h>0;o=o*256+t[r+l],l+=B,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;h>0;a=a*256+t[r+l],l+=B,h-=8);if(o===0)o=1-p;else{if(o===f)return a?NaN:(m?-1:1)*(1/0);a=a+Math.pow(2,i),o=o-p}return(m?-1:1)*a*Math.pow(2,o-i)};W.write=function(t,r,e,i,n,o){var a,s,f,p=o*8-n-1,h=(1<<p)-1,l=h>>1,B=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=i?0:o-1,b=i?1:-1,br=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(s=isNaN(r)?1:0,a=h):(a=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+l>=1?r+=B/f:r+=B*Math.pow(2,1-l),r*f>=2&&(a++,f/=2),a+l>=h?(s=0,a=h):a+l>=1?(s=(r*f-1)*Math.pow(2,n),a=a+l):(s=r*Math.pow(2,l-1)*Math.pow(2,n),a=0));n>=8;t[e+m]=s&255,m+=b,s/=256,n-=8);for(a=a<<n|s,p+=n;p>0;t[e+m]=a&255,m+=b,a/=256,p-=8);t[e+m-b]|=br*128}});var vr=H(C=>{"use strict";c();var X=ur(),_=sr(),fr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;C.Buffer=u;C.SlowBuffer=ee;C.INSPECT_MAX_BYTES=50;var q=2147483647;C.kMaxLength=q;u.TYPED_ARRAY_SUPPORT=Jr();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Jr(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function E(t){if(t>q)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,u.prototype),r}function u(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Z(t)}return hr(t,r,e)}u.poolSize=8192;function hr(t,r,e){if(typeof t=="string")return Zr(t,r);if(ArrayBuffer.isView(t))return jr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(T(t,ArrayBuffer)||t&&T(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(T(t,SharedArrayBuffer)||t&&T(t.buffer,SharedArrayBuffer)))return J(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(i!=null&&i!==t)return u.from(i,r,e);var n=re(t);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return u.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}u.from=function(t,r,e){return hr(t,r,e)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function cr(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 Kr(t,r,e){return cr(t),t<=0?E(t):r!==void 0?typeof e=="string"?E(t).fill(r,e):E(t).fill(r):E(t)}u.alloc=function(t,r,e){return Kr(t,r,e)};function Z(t){return cr(t),E(t<0?0:j(t)|0)}u.allocUnsafe=function(t){return Z(t)};u.allocUnsafeSlow=function(t){return Z(t)};function Zr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=gr(t,r)|0,i=E(e),n=i.write(t,r);return n!==e&&(i=i.slice(0,n)),i}function $(t){for(var r=t.length<0?0:j(t.length)|0,e=E(r),i=0;i<r;i+=1)e[i]=t[i]&255;return e}function jr(t){if(T(t,Uint8Array)){var r=new Uint8Array(t);return J(r.buffer,r.byteOffset,r.byteLength)}return $(t)}function J(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&e===void 0?i=new Uint8Array(t):e===void 0?i=new Uint8Array(t,r):i=new Uint8Array(t,r,e),Object.setPrototypeOf(i,u.prototype),i}function re(t){if(u.isBuffer(t)){var r=j(t.length)|0,e=E(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||rr(t.length)?E(0):$(t);if(t.type==="Buffer"&&Array.isArray(t.data))return $(t.data)}function j(t){if(t>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return t|0}function ee(t){return+t!=t&&(t=0),u.alloc(+t)}u.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==u.prototype};u.compare=function(r,e){if(T(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),T(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(r)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var i=r.length,n=e.length,o=0,a=Math.min(i,n);o<a;++o)if(r[o]!==e[o]){i=r[o],n=e[o];break}return i<n?-1:n<i?1:0};u.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}};u.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);var i;if(e===void 0)for(e=0,i=0;i<r.length;++i)e+=r[i].length;var n=u.allocUnsafe(e),o=0;for(i=0;i<r.length;++i){var a=r[i];if(T(a,Uint8Array))o+a.length>n.length?u.from(a).copy(n,o):Uint8Array.prototype.set.call(n,a,o);else if(u.isBuffer(a))a.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return n};function gr(t,r){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||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 e=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&e===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Fr(t).length;default:if(n)return i?-1:K(t).length;r=(""+r).toLowerCase(),n=!0}}u.byteLength=gr;function te(t,r,e){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return he(this,r,e);case"utf8":case"utf-8":return yr(this,r,e);case"ascii":return le(this,r,e);case"latin1":case"binary":return pe(this,r,e);case"base64":return se(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,r,e);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}u.prototype._isBuffer=!0;function N(t,r,e){var i=t[r];t[r]=t[e],t[e]=i}u.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)N(this,e,e+1);return this};u.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)N(this,e,e+3),N(this,e+1,e+2);return this};u.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)N(this,e,e+7),N(this,e+1,e+6),N(this,e+2,e+5),N(this,e+3,e+4);return this};u.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?yr(this,0,r):te.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(r){if(!u.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0};u.prototype.inspect=function(){var r="",e=C.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};fr&&(u.prototype[fr]=u.prototype.inspect);u.prototype.compare=function(r,e,i,n,o){if(T(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),e<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=i)return 0;if(n>=o)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var a=o-n,s=i-e,f=Math.min(a,s),p=this.slice(n,o),h=r.slice(e,i),l=0;l<f;++l)if(p[l]!==h[l]){a=p[l],s=h[l];break}return a<s?-1:s<a?1:0};function xr(t,r,e,i,n){if(t.length===0)return-1;if(typeof e=="string"?(i=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,rr(e)&&(e=n?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(n)return-1;e=t.length-1}else if(e<0)if(n)e=0;else return-1;if(typeof r=="string"&&(r=u.from(r,i)),u.isBuffer(r))return r.length===0?-1:lr(t,r,e,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):lr(t,[r],e,i,n);throw new TypeError("val must be string, number or Buffer")}function lr(t,r,e,i,n){var o=1,a=t.length,s=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||r.length<2)return-1;o=2,a/=2,s/=2,e/=2}function f(m,b){return o===1?m[b]:m.readUInt16BE(b*o)}var p;if(n){var h=-1;for(p=e;p<a;p++)if(f(t,p)===f(r,h===-1?0:p-h)){if(h===-1&&(h=p),p-h+1===s)return h*o}else h!==-1&&(p-=p-h),h=-1}else for(e+s>a&&(e=a-s),p=e;p>=0;p--){for(var l=!0,B=0;B<s;B++)if(f(t,p+B)!==f(r,B)){l=!1;break}if(l)return p}return-1}u.prototype.includes=function(r,e,i){return this.indexOf(r,e,i)!==-1};u.prototype.indexOf=function(r,e,i){return xr(this,r,e,i,!0)};u.prototype.lastIndexOf=function(r,e,i){return xr(this,r,e,i,!1)};function ie(t,r,e,i){e=Number(e)||0;var n=t.length-e;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(r.substr(a*2,2),16);if(rr(s))return a;t[e+a]=s}return a}function ne(t,r,e,i){return V(K(r,t.length-e),t,e,i)}function oe(t,r,e,i){return V(ye(r),t,e,i)}function ae(t,r,e,i){return V(Fr(r),t,e,i)}function ue(t,r,e,i){return V(de(r,t.length-e),t,e,i)}u.prototype.write=function(r,e,i,n){if(e===void 0)n="utf8",i=this.length,e=0;else if(i===void 0&&typeof e=="string")n=e,i=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-e;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return ie(this,r,e,i);case"utf8":case"utf-8":return ne(this,r,e,i);case"ascii":case"latin1":case"binary":return oe(this,r,e,i);case"base64":return ae(this,r,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,r,e,i);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function se(t,r,e){return r===0&&e===t.length?X.fromByteArray(t):X.fromByteArray(t.slice(r,e))}function yr(t,r,e){e=Math.min(t.length,e);for(var i=[],n=r;n<e;){var o=t[n],a=null,s=o>239?4:o>223?3:o>191?2:1;if(n+s<=e){var f,p,h,l;switch(s){case 1:o<128&&(a=o);break;case 2:f=t[n+1],(f&192)===128&&(l=(o&31)<<6|f&63,l>127&&(a=l));break;case 3:f=t[n+1],p=t[n+2],(f&192)===128&&(p&192)===128&&(l=(o&15)<<12|(f&63)<<6|p&63,l>2047&&(l<55296||l>57343)&&(a=l));break;case 4:f=t[n+1],p=t[n+2],h=t[n+3],(f&192)===128&&(p&192)===128&&(h&192)===128&&(l=(o&15)<<18|(f&63)<<12|(p&63)<<6|h&63,l>65535&&l<1114112&&(a=l))}}a===null?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|a&1023),i.push(a),n+=s}return fe(i)}var pr=4096;function fe(t){var r=t.length;if(r<=pr)return String.fromCharCode.apply(String,t);for(var e="",i=0;i<r;)e+=String.fromCharCode.apply(String,t.slice(i,i+=pr));return e}function le(t,r,e){var i="";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]&127);return i}function pe(t,r,e){var i="";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]);return i}function he(t,r,e){var i=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>i)&&(e=i);for(var n="",o=r;o<e;++o)n+=we[t[o]];return n}function ce(t,r,e){for(var i=t.slice(r,e),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}u.prototype.slice=function(r,e){var i=this.length;r=~~r,e=e===void 0?i:~~e,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e<r&&(e=r);var n=this.subarray(r,e);return Object.setPrototypeOf(n,u.prototype),n};function y(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(r,e,i){r=r>>>0,e=e>>>0,i||y(r,e,this.length);for(var n=this[r],o=1,a=0;++a<e&&(o*=256);)n+=this[r+a]*o;return n};u.prototype.readUintBE=u.prototype.readUIntBE=function(r,e,i){r=r>>>0,e=e>>>0,i||y(r,e,this.length);for(var n=this[r+--e],o=1;e>0&&(o*=256);)n+=this[r+--e]*o;return n};u.prototype.readUint8=u.prototype.readUInt8=function(r,e){return r=r>>>0,e||y(r,1,this.length),this[r]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||y(r,2,this.length),this[r]|this[r+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||y(r,2,this.length),this[r]<<8|this[r+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||y(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||y(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};u.prototype.readIntLE=function(r,e,i){r=r>>>0,e=e>>>0,i||y(r,e,this.length);for(var n=this[r],o=1,a=0;++a<e&&(o*=256);)n+=this[r+a]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n};u.prototype.readIntBE=function(r,e,i){r=r>>>0,e=e>>>0,i||y(r,e,this.length);for(var n=e,o=1,a=this[r+--n];n>0&&(o*=256);)a+=this[r+--n]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*e)),a};u.prototype.readInt8=function(r,e){return r=r>>>0,e||y(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};u.prototype.readInt16LE=function(r,e){r=r>>>0,e||y(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};u.prototype.readInt16BE=function(r,e){r=r>>>0,e||y(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};u.prototype.readInt32LE=function(r,e){return r=r>>>0,e||y(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};u.prototype.readInt32BE=function(r,e){return r=r>>>0,e||y(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};u.prototype.readFloatLE=function(r,e){return r=r>>>0,e||y(r,4,this.length),_.read(this,r,!0,23,4)};u.prototype.readFloatBE=function(r,e){return r=r>>>0,e||y(r,4,this.length),_.read(this,r,!1,23,4)};u.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||y(r,8,this.length),_.read(this,r,!0,52,8)};u.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||y(r,8,this.length),_.read(this,r,!1,52,8)};function w(t,r,e,i,n,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(e+i>t.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(r,e,i,n){if(r=+r,e=e>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;w(this,r,e,i,o,0)}var a=1,s=0;for(this[e]=r&255;++s<i&&(a*=256);)this[e+s]=r/a&255;return e+i};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(r,e,i,n){if(r=+r,e=e>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;w(this,r,e,i,o,0)}var a=i-1,s=1;for(this[e+a]=r&255;--a>=0&&(s*=256);)this[e+a]=r/s&255;return e+i};u.prototype.writeUint8=u.prototype.writeUInt8=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,1,255,0),this[e]=r&255,e+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};u.prototype.writeIntLE=function(r,e,i,n){if(r=+r,e=e>>>0,!n){var o=Math.pow(2,8*i-1);w(this,r,e,i,o-1,-o)}var a=0,s=1,f=0;for(this[e]=r&255;++a<i&&(s*=256);)r<0&&f===0&&this[e+a-1]!==0&&(f=1),this[e+a]=(r/s>>0)-f&255;return e+i};u.prototype.writeIntBE=function(r,e,i,n){if(r=+r,e=e>>>0,!n){var o=Math.pow(2,8*i-1);w(this,r,e,i,o-1,-o)}var a=i-1,s=1,f=0;for(this[e+a]=r&255;--a>=0&&(s*=256);)r<0&&f===0&&this[e+a+1]!==0&&(f=1),this[e+a]=(r/s>>0)-f&255;return e+i};u.prototype.writeInt8=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};u.prototype.writeInt16LE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};u.prototype.writeInt16BE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};u.prototype.writeInt32LE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};u.prototype.writeInt32BE=function(r,e,i){return r=+r,e=e>>>0,i||w(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function dr(t,r,e,i,n,o){if(e+i>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function wr(t,r,e,i,n){return r=+r,e=e>>>0,n||dr(t,r,e,4,34028234663852886e22,-34028234663852886e22),_.write(t,r,e,i,23,4),e+4}u.prototype.writeFloatLE=function(r,e,i){return wr(this,r,e,!0,i)};u.prototype.writeFloatBE=function(r,e,i){return wr(this,r,e,!1,i)};function mr(t,r,e,i,n){return r=+r,e=e>>>0,n||dr(t,r,e,8,17976931348623157e292,-17976931348623157e292),_.write(t,r,e,i,52,8),e+8}u.prototype.writeDoubleLE=function(r,e,i){return mr(this,r,e,!0,i)};u.prototype.writeDoubleBE=function(r,e,i){return mr(this,r,e,!1,i)};u.prototype.copy=function(r,e,i,n){if(!u.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),e>=r.length&&(e=r.length),e||(e=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-e<n-i&&(n=r.length-e+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),e),o};u.prototype.fill=function(r,e,i,n){if(typeof r=="string"){if(typeof e=="string"?(n=e,e=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;e=e>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var a;if(typeof r=="number")for(a=e;a<i;++a)this[a]=r;else{var s=u.isBuffer(r)?r:u.from(r,n),f=s.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(a=0;a<i-e;++a)this[a+e]=s[a%f]}return this};var ge=/[^+/0-9A-Za-z-_]/g;function xe(t){if(t=t.split("=")[0],t=t.trim().replace(ge,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function K(t,r){r=r||1/0;for(var e,i=t.length,n=null,o=[],a=0;a<i;++a){if(e=t.charCodeAt(a),e>55295&&e<57344){if(!n){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(a+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),n=e;continue}e=(n-55296<<10|e-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function ye(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function de(t,r){for(var e,i,n,o=[],a=0;a<t.length&&!((r-=2)<0);++a)e=t.charCodeAt(a),i=e>>8,n=e%256,o.push(n),o.push(i);return o}function Fr(t){return X.toByteArray(xe(t))}function V(t,r,e,i){for(var n=0;n<i&&!(n+e>=r.length||n>=t.length);++n)r[n+e]=t[n];return n}function T(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function rr(t){return t!==t}var we=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var i=e*16,n=0;n<16;++n)r[i+n]=t[e]+t[n];return r}()});var Ur=H((Re,Ir)=>{c();var g=Ir.exports={},I,U;function er(){throw new Error("setTimeout has not been defined")}function tr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=er}catch(t){I=er}try{typeof clearTimeout=="function"?U=clearTimeout:U=tr}catch(t){U=tr}})();function Br(t){if(I===setTimeout)return setTimeout(t,0);if((I===er||!I)&&setTimeout)return I=setTimeout,setTimeout(t,0);try{return I(t,0)}catch(r){try{return I.call(null,t,0)}catch(e){return I.call(this,t,0)}}}function me(t){if(U===clearTimeout)return clearTimeout(t);if((U===tr||!U)&&clearTimeout)return U=clearTimeout,clearTimeout(t);try{return U(t)}catch(r){try{return U.call(null,t)}catch(e){return U.call(this,t)}}}var S=[],M=!1,D,Y=-1;function Fe(){!M||!D||(M=!1,D.length?S=D.concat(S):Y=-1,S.length&&kr())}function kr(){if(!M){var t=Br(Fe);M=!0;for(var r=S.length;r;){for(D=S,S=[];++Y<r;)D&&D[Y].run();Y=-1,r=S.length}D=null,M=!1,me(t)}}g.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];S.push(new Tr(t,r)),S.length===1&&!M&&Br(kr)};function Tr(t,r){this.fun=t,this.array=r}Tr.prototype.run=function(){this.fun.apply(null,this.array)};g.title="browser";g.browser=!0;g.env={};g.argv=[];g.version="";g.versions={};function A(){}g.on=A;g.addListener=A;g.once=A;g.off=A;g.removeListener=A;g.removeAllListeners=A;g.emit=A;g.prependListener=A;g.prependOnceListener=A;g.listeners=function(t){return[]};g.binding=function(t){throw new Error("process.binding is not supported")};g.cwd=function(){return"/"};g.chdir=function(t){throw new Error("process.chdir is not supported")};g.umask=function(){return 0}});var x,d,Le,c=Gr(()=>{x=O(vr()),d=O(Ur()),Le=function(t){function r(){var i=this||self;return delete t.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var Ie={};qr(Ie,{decodeForDisplay:()=>Te});module.exports=Vr(Ie);c();c();c();c();var Lr=require("@multiversx/sdk-core/out"),ir=O(require("bignumber.js"));c();var Er=require("@multiversx/sdk-core");function ve(t){try{let r=new Er.Address(t);return Boolean(r.bech32())}catch(r){return!1}}function Sr(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&ve(t)}c();function Ar(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>127)return!1;return!0}var R=(t,r,e)=>{switch(r){case"text":try{return x.Buffer.from(String(t),"hex").toString("utf8")}catch(n){}return t;case"decimal":return new ir.default(t,16).toString(10);case"smart":try{let n=Lr.Address.fromHex(t).toString();if(Sr(n))return n}catch(n){}try{let n=x.Buffer.from(String(t),"hex").toString("utf8");return Ar(n)||e&&[...e.esdts,...e.nfts].some(s=>n.includes(s))?n:new ir.default(t,16).toString(10)}catch(n){}return t;case"raw":default:return t}};c();c();var Be=t=>t.toLowerCase().match(/[0-9a-f]/g),ke=t=>t.length%2===0,Nr=t=>{let r=[];return t&&!Be(t)&&r.push(`Invalid Hex characters on argument @${t}`),t&&!ke(t)&&r.push(`Odd number of Hex characters on argument @${t}`),r};c();c();var Q=({parts:t,decodedParts:r,identifier:e})=>{let i=[...r];if(t[0]==="ESDTNFTTransfer"&&t[2]&&(i[2]=R(t[2],"decimal")),e==="ESDTNFTTransfer"&&t[1]){let n=x.Buffer.from(String(t[1]),"base64");i[1]=R(n.toString("hex"),"decimal")}return i};var Dr=({parts:t,decodeMethod:r,identifier:e})=>{let i=[],n=t.map((a,s)=>{if(t.length>=2&&(s===0&&a.length<64||s===1&&!t[0]))return/[^a-z0-9]/gi.test(a)?R(a,r):a;{let f=Nr(a);return f.length&&(i=f),R(a,r)}});return{displayValue:(r==="smart"?Q({parts:t,decodedParts:n,identifier:e}):n).join("@"),validationWarnings:i}};var Te=({input:t,decodeMethod:r,identifier:e})=>{let i={displayValue:"",validationWarnings:[]};if(!(t.includes("@")||t.includes(`
|
|
2
2
|
`)))return i.displayValue=R(t,r),i;if(t.includes("@")){let o=t.split("@");i=Dr({parts:o,decodeMethod:r,identifier:e})}if(t.includes(`
|
|
3
3
|
`)){let o=t.split(`
|
|
4
4
|
`),a=o.map(f=>{let p=x.Buffer.from(String(f),"base64");return r==="raw"?f:R(p.toString("hex"),r)}),s=r==="smart"?Q({parts:o,decodedParts:a,identifier:e}):a;i.displayValue=s.join(`
|
package/__commonjs/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Sr=Object.create;var M=Object.defineProperty;var Br=Object.getOwnPropertyDescriptor;var Rr=Object.getOwnPropertyNames;var Ar=Object.getPrototypeOf,_r=Object.prototype.hasOwnProperty;var Lr=(t,r)=>()=>(t&&(r=t(t=0)),r);var P=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Ur=(t,r)=>{for(var e in r)M(t,e,{get:r[e],enumerable:!0})},er=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Rr(r))!_r.call(t,i)&&i!==e&&M(t,i,{get:()=>r[i],enumerable:!(n=Br(r,i))||n.enumerable});return t};var tr=(t,r,e)=>(e=t!=null?Sr(Ar(t)):{},er(r||!t||!t.__esModule?M(e,"default",{value:t,enumerable:!0}):e,t)),Er=t=>er(M({},"__esModule",{value:!0}),t);var ar=P(O=>{"use strict";g();O.byteLength=Dr;O.toByteArray=Mr;O.fromByteArray=Gr;var k=[],v=[],Cr=typeof Uint8Array!="undefined"?Uint8Array:Array,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_=0,nr=Y.length;_<nr;++_)k[_]=Y[_],v[Y.charCodeAt(_)]=_;var _,nr;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function ir(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function Dr(t){var r=ir(t),e=r[0],n=r[1];return(e+n)*3/4-n}function Nr(t,r,e){return(r+e)*3/4-e}function Mr(t){var r,e=ir(t),n=e[0],i=e[1],a=new Cr(Nr(t,n,i)),o=0,u=i>0?n-4:n,p;for(p=0;p<u;p+=4)r=v[t.charCodeAt(p)]<<18|v[t.charCodeAt(p+1)]<<12|v[t.charCodeAt(p+2)]<<6|v[t.charCodeAt(p+3)],a[o++]=r>>16&255,a[o++]=r>>8&255,a[o++]=r&255;return i===2&&(r=v[t.charCodeAt(p)]<<2|v[t.charCodeAt(p+1)]>>4,a[o++]=r&255),i===1&&(r=v[t.charCodeAt(p)]<<10|v[t.charCodeAt(p+1)]<<4|v[t.charCodeAt(p+2)]>>2,a[o++]=r>>8&255,a[o++]=r&255),a}function Pr(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function Or(t,r,e){for(var n,i=[],a=r;a<e;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(Pr(n));return i.join("")}function Gr(t){for(var r,e=t.length,n=e%3,i=[],a=16383,o=0,u=e-n;o<u;o+=a)i.push(Or(t,o,o+a>u?u:o+a));return n===1?(r=t[e-1],i.push(k[r>>2]+k[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(k[r>>10]+k[r>>4&63]+k[r<<2&63]+"=")),i.join("")}});var or=P(z=>{g();z.read=function(t,r,e,n,i){var a,o,u=i*8-n-1,p=(1<<u)-1,l=p>>1,f=-7,c=e?i-1:0,F=e?-1:1,T=t[r+c];for(c+=F,a=T&(1<<-f)-1,T>>=-f,f+=u;f>0;a=a*256+t[r+c],c+=F,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=o*256+t[r+c],c+=F,f-=8);if(a===0)a=1-l;else{if(a===p)return o?NaN:(T?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(T?-1:1)*o*Math.pow(2,a-n)};z.write=function(t,r,e,n,i,a){var o,u,p,l=a*8-i-1,f=(1<<l)-1,c=f>>1,F=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:a-1,E=n?1:-1,br=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-o))<1&&(o--,p*=2),o+c>=1?r+=F/p:r+=F*Math.pow(2,1-c),r*p>=2&&(o++,p/=2),o+c>=f?(u=0,o=f):o+c>=1?(u=(r*p-1)*Math.pow(2,i),o=o+c):(u=r*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;t[e+T]=u&255,T+=E,u/=256,i-=8);for(o=o<<i|u,l+=i;l>0;t[e+T]=o&255,T+=E,o/=256,l-=8);t[e+T-E]|=br*128}});var wr=P(D=>{"use strict";g();var W=ar(),C=or(),sr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;D.Buffer=s;D.SlowBuffer=Qr;D.INSPECT_MAX_BYTES=50;var G=2147483647;D.kMaxLength=G;s.TYPED_ARRAY_SUPPORT=Hr();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Hr(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function B(t){if(t>G)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,s.prototype),r}function s(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return J(t)}return cr(t,r,e)}s.poolSize=8192;function cr(t,r,e){if(typeof t=="string")return Yr(t,r);if(ArrayBuffer.isView(t))return zr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return X(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,r,e);var i=Wr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,r,e){return cr(t,r,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function lr(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function qr(t,r,e){return lr(t),t<=0?B(t):r!==void 0?typeof e=="string"?B(t).fill(r,e):B(t).fill(r):B(t)}s.alloc=function(t,r,e){return qr(t,r,e)};function J(t){return lr(t),B(t<0?0:K(t)|0)}s.allocUnsafe=function(t){return J(t)};s.allocUnsafeSlow=function(t){return J(t)};function Yr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=fr(t,r)|0,n=B(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function Q(t){for(var r=t.length<0?0:K(t.length)|0,e=B(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function zr(t){if(I(t,Uint8Array)){var r=new Uint8Array(t);return X(r.buffer,r.byteOffset,r.byteLength)}return Q(t)}function X(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,s.prototype),n}function Wr(t){if(s.isBuffer(t)){var r=K(t.length)|0,e=B(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||Z(t.length)?B(0):Q(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Q(t.data)}function K(t){if(t>=G)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G.toString(16)+" bytes");return t|0}function Qr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,e){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(r)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,i=e.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==e[a]){n=r[a],i=e[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=s.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var o=r[n];if(I(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function fr(t,r){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return mr(t).length;default:if(i)return n?-1:j(t).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=fr;function Xr(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ne(this,r,e);case"utf8":case"utf-8":return hr(this,r,e);case"ascii":return ee(this,r,e);case"latin1":case"binary":return te(this,r,e);case"base64":return Vr(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function L(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}s.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)L(this,e,e+1);return this};s.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)L(this,e,e+3),L(this,e+1,e+2);return this};s.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)L(this,e,e+7),L(this,e+1,e+6),L(this,e+2,e+5),L(this,e+3,e+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?hr(this,0,r):Xr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",e=D.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};sr&&(s.prototype[sr]=s.prototype.inspect);s.prototype.compare=function(r,e,n,i,a){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,u=n-e,p=Math.min(o,u),l=this.slice(i,a),f=r.slice(e,n),c=0;c<p;++c)if(l[c]!==f[c]){o=l[c],u=f[c];break}return o<u?-1:u<o?1:0};function gr(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,Z(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=s.from(r,n)),s.isBuffer(r))return r.length===0?-1:ur(t,r,e,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):ur(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function ur(t,r,e,n,i){var a=1,o=t.length,u=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,u/=2,e/=2}function p(T,E){return a===1?T[E]:T.readUInt16BE(E*a)}var l;if(i){var f=-1;for(l=e;l<o;l++)if(p(t,l)===p(r,f===-1?0:l-f)){if(f===-1&&(f=l),l-f+1===u)return f*a}else f!==-1&&(l-=l-f),f=-1}else for(e+u>o&&(e=o-u),l=e;l>=0;l--){for(var c=!0,F=0;F<u;F++)if(p(t,l+F)!==p(r,F)){c=!1;break}if(c)return l}return-1}s.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};s.prototype.indexOf=function(r,e,n){return gr(this,r,e,n,!0)};s.prototype.lastIndexOf=function(r,e,n){return gr(this,r,e,n,!1)};function jr(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var u=parseInt(r.substr(o*2,2),16);if(Z(u))return o;t[e+o]=u}return o}function Jr(t,r,e,n){return H(j(r,t.length-e),t,e,n)}function Kr(t,r,e,n){return H(se(r),t,e,n)}function Zr(t,r,e,n){return H(mr(r),t,e,n)}function $r(t,r,e,n){return H(ue(r,t.length-e),t,e,n)}s.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return jr(this,r,e,n);case"utf8":case"utf-8":return Jr(this,r,e,n);case"ascii":case"latin1":case"binary":return Kr(this,r,e,n);case"base64":return Zr(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $r(this,r,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Vr(t,r,e){return r===0&&e===t.length?W.fromByteArray(t):W.fromByteArray(t.slice(r,e))}function hr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var a=t[i],o=null,u=a>239?4:a>223?3:a>191?2:1;if(i+u<=e){var p,l,f,c;switch(u){case 1:a<128&&(o=a);break;case 2:p=t[i+1],(p&192)===128&&(c=(a&31)<<6|p&63,c>127&&(o=c));break;case 3:p=t[i+1],l=t[i+2],(p&192)===128&&(l&192)===128&&(c=(a&15)<<12|(p&63)<<6|l&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:p=t[i+1],l=t[i+2],f=t[i+3],(p&192)===128&&(l&192)===128&&(f&192)===128&&(c=(a&15)<<18|(p&63)<<12|(l&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,u=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=u}return re(n)}var pr=4096;function re(t){var r=t.length;if(r<=pr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=pr));return e}function ee(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function te(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ne(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",a=r;a<e;++a)i+=pe[t[a]];return i}function ie(t,r,e){for(var n=t.slice(r,e),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i=this.subarray(r,e);return Object.setPrototypeOf(i,s.prototype),i};function d(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||d(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||d(r,e,this.length);for(var i=this[r+--e],a=1;e>0&&(a*=256);)i+=this[r+--e]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,e){return r=r>>>0,e||d(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||d(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||d(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||d(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||d(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||d(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||d(r,e,this.length);for(var i=e,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};s.prototype.readInt8=function(r,e){return r=r>>>0,e||d(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,e){r=r>>>0,e||d(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(r,e){r=r>>>0,e||d(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(r,e){return r=r>>>0,e||d(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,e){return r=r>>>0,e||d(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,e){return r=r>>>0,e||d(r,4,this.length),C.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,e){return r=r>>>0,e||d(r,4,this.length),C.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||d(r,8,this.length),C.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||d(r,8,this.length),C.read(this,r,!1,52,8)};function w(t,r,e,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,r,e,n,a,0)}var o=1,u=0;for(this[e]=r&255;++u<n&&(o*=256);)this[e+u]=r/o&255;return e+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,r,e,n,a,0)}var o=n-1,u=1;for(this[e+o]=r&255;--o>=0&&(u*=256);)this[e+o]=r/u&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,1,255,0),this[e]=r&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};s.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);w(this,r,e,n,a-1,-a)}var o=0,u=1,p=0;for(this[e]=r&255;++o<n&&(u*=256);)r<0&&p===0&&this[e+o-1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);w(this,r,e,n,a-1,-a)}var o=n-1,u=1,p=0;for(this[e+o]=r&255;--o>=0&&(u*=256);)r<0&&p===0&&this[e+o+1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};s.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};s.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function dr(t,r,e,n,i,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function yr(t,r,e,n,i){return r=+r,e=e>>>0,i||dr(t,r,e,4,34028234663852886e22,-34028234663852886e22),C.write(t,r,e,n,23,4),e+4}s.prototype.writeFloatLE=function(r,e,n){return yr(this,r,e,!0,n)};s.prototype.writeFloatBE=function(r,e,n){return yr(this,r,e,!1,n)};function xr(t,r,e,n,i){return r=+r,e=e>>>0,i||dr(t,r,e,8,17976931348623157e292,-17976931348623157e292),C.write(t,r,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(r,e,n){return xr(this,r,e,!0,n)};s.prototype.writeDoubleBE=function(r,e,n){return xr(this,r,e,!1,n)};s.prototype.copy=function(r,e,n,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var a=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),e),a};s.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<n;++o)this[o]=r;else{var u=s.isBuffer(r)?r:s.from(r,i),p=u.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=u[o%p]}return this};var ae=/[^+/0-9A-Za-z-_]/g;function oe(t){if(t=t.split("=")[0],t=t.trim().replace(ae,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function j(t,r){r=r||1/0;for(var e,n=t.length,i=null,a=[],o=0;o<n;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function se(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function ue(t,r){for(var e,n,i,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),n=e>>8,i=e%256,a.push(i),a.push(n);return a}function mr(t){return W.toByteArray(oe(t))}function H(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function I(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function Z(t){return t!==t}var pe=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()});var Ir=P((me,kr)=>{g();var h=kr.exports={},b,S;function $(){throw new Error("setTimeout has not been defined")}function V(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?b=setTimeout:b=$}catch(t){b=$}try{typeof clearTimeout=="function"?S=clearTimeout:S=V}catch(t){S=V}})();function Tr(t){if(b===setTimeout)return setTimeout(t,0);if((b===$||!b)&&setTimeout)return b=setTimeout,setTimeout(t,0);try{return b(t,0)}catch(r){try{return b.call(null,t,0)}catch(e){return b.call(this,t,0)}}}function ce(t){if(S===clearTimeout)return clearTimeout(t);if((S===V||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(t);try{return S(t)}catch(r){try{return S.call(null,t)}catch(e){return S.call(this,t)}}}var R=[],N=!1,U,q=-1;function le(){!N||!U||(N=!1,U.length?R=U.concat(R):q=-1,R.length&&vr())}function vr(){if(!N){var t=Tr(le);N=!0;for(var r=R.length;r;){for(U=R,R=[];++q<r;)U&&U[q].run();q=-1,r=R.length}U=null,N=!1,ce(t)}}h.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];R.push(new Fr(t,r)),R.length===1&&!N&&Tr(vr)};function Fr(t,r){this.fun=t,this.array=r}Fr.prototype.run=function(){this.fun.apply(null,this.array)};h.title="browser";h.browser=!0;h.env={};h.argv=[];h.version="";h.versions={};function A(){}h.on=A;h.addListener=A;h.once=A;h.off=A;h.removeListener=A;h.removeAllListeners=A;h.emit=A;h.prependListener=A;h.prependOnceListener=A;h.listeners=function(t){return[]};h.binding=function(t){throw new Error("process.binding is not supported")};h.cwd=function(){return"/"};h.chdir=function(t){throw new Error("process.chdir is not supported")};h.umask=function(){return 0}});var y,x,we,g=Lr(()=>{y=tr(wr()),x=tr(Ir()),we=function(t){function r(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var ge={};Ur(ge,{getInitialScResultsDecodeMethod:()=>fe});module.exports=Er(ge);g();g();g();g();g();g();g();g();g();var rr=(i=>(i.raw="raw",i.text="text",i.decimal="decimal",i.smart="smart",i))(rr||{});g();g();var fe=()=>{let{hash:t}=window.location,r=t.indexOf("/")>0?t.substring(t.indexOf("/")+1):"raw";return r&&Object.values(rr).includes(r)?r:"raw"};0&&(module.exports={getInitialScResultsDecodeMethod});
|
|
1
|
+
"use strict";var Sr=Object.create;var M=Object.defineProperty;var Br=Object.getOwnPropertyDescriptor;var Ar=Object.getOwnPropertyNames;var _r=Object.getPrototypeOf,Rr=Object.prototype.hasOwnProperty;var Lr=(t,r)=>()=>(t&&(r=t(t=0)),r);var P=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Ur=(t,r)=>{for(var e in r)M(t,e,{get:r[e],enumerable:!0})},er=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Ar(r))!Rr.call(t,i)&&i!==e&&M(t,i,{get:()=>r[i],enumerable:!(n=Br(r,i))||n.enumerable});return t};var tr=(t,r,e)=>(e=t!=null?Sr(_r(t)):{},er(r||!t||!t.__esModule?M(e,"default",{value:t,enumerable:!0}):e,t)),Er=t=>er(M({},"__esModule",{value:!0}),t);var ar=P(O=>{"use strict";g();O.byteLength=Nr;O.toByteArray=Mr;O.fromByteArray=Hr;var k=[],v=[],Cr=typeof Uint8Array!="undefined"?Uint8Array:Array,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(R=0,nr=Y.length;R<nr;++R)k[R]=Y[R],v[Y.charCodeAt(R)]=R;var R,nr;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function ir(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function Nr(t){var r=ir(t),e=r[0],n=r[1];return(e+n)*3/4-n}function Dr(t,r,e){return(r+e)*3/4-e}function Mr(t){var r,e=ir(t),n=e[0],i=e[1],a=new Cr(Dr(t,n,i)),o=0,u=i>0?n-4:n,p;for(p=0;p<u;p+=4)r=v[t.charCodeAt(p)]<<18|v[t.charCodeAt(p+1)]<<12|v[t.charCodeAt(p+2)]<<6|v[t.charCodeAt(p+3)],a[o++]=r>>16&255,a[o++]=r>>8&255,a[o++]=r&255;return i===2&&(r=v[t.charCodeAt(p)]<<2|v[t.charCodeAt(p+1)]>>4,a[o++]=r&255),i===1&&(r=v[t.charCodeAt(p)]<<10|v[t.charCodeAt(p+1)]<<4|v[t.charCodeAt(p+2)]>>2,a[o++]=r>>8&255,a[o++]=r&255),a}function Pr(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function Or(t,r,e){for(var n,i=[],a=r;a<e;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(Pr(n));return i.join("")}function Hr(t){for(var r,e=t.length,n=e%3,i=[],a=16383,o=0,u=e-n;o<u;o+=a)i.push(Or(t,o,o+a>u?u:o+a));return n===1?(r=t[e-1],i.push(k[r>>2]+k[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(k[r>>10]+k[r>>4&63]+k[r<<2&63]+"=")),i.join("")}});var or=P(z=>{g();z.read=function(t,r,e,n,i){var a,o,u=i*8-n-1,p=(1<<u)-1,l=p>>1,f=-7,c=e?i-1:0,F=e?-1:1,T=t[r+c];for(c+=F,a=T&(1<<-f)-1,T>>=-f,f+=u;f>0;a=a*256+t[r+c],c+=F,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=o*256+t[r+c],c+=F,f-=8);if(a===0)a=1-l;else{if(a===p)return o?NaN:(T?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(T?-1:1)*o*Math.pow(2,a-n)};z.write=function(t,r,e,n,i,a){var o,u,p,l=a*8-i-1,f=(1<<l)-1,c=f>>1,F=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:a-1,E=n?1:-1,br=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-o))<1&&(o--,p*=2),o+c>=1?r+=F/p:r+=F*Math.pow(2,1-c),r*p>=2&&(o++,p/=2),o+c>=f?(u=0,o=f):o+c>=1?(u=(r*p-1)*Math.pow(2,i),o=o+c):(u=r*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;t[e+T]=u&255,T+=E,u/=256,i-=8);for(o=o<<i|u,l+=i;l>0;t[e+T]=o&255,T+=E,o/=256,l-=8);t[e+T-E]|=br*128}});var wr=P(N=>{"use strict";g();var Q=ar(),C=or(),sr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;N.Buffer=s;N.SlowBuffer=Wr;N.INSPECT_MAX_BYTES=50;var H=2147483647;N.kMaxLength=H;s.TYPED_ARRAY_SUPPORT=Gr();!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 Gr(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function B(t){if(t>H)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,s.prototype),r}function s(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return J(t)}return cr(t,r,e)}s.poolSize=8192;function cr(t,r,e){if(typeof t=="string")return Yr(t,r);if(ArrayBuffer.isView(t))return zr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return X(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,r,e);var i=Qr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,r,e){return cr(t,r,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function lr(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function qr(t,r,e){return lr(t),t<=0?B(t):r!==void 0?typeof e=="string"?B(t).fill(r,e):B(t).fill(r):B(t)}s.alloc=function(t,r,e){return qr(t,r,e)};function J(t){return lr(t),B(t<0?0:K(t)|0)}s.allocUnsafe=function(t){return J(t)};s.allocUnsafeSlow=function(t){return J(t)};function Yr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=fr(t,r)|0,n=B(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function W(t){for(var r=t.length<0?0:K(t.length)|0,e=B(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function zr(t){if(I(t,Uint8Array)){var r=new Uint8Array(t);return X(r.buffer,r.byteOffset,r.byteLength)}return W(t)}function X(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,s.prototype),n}function Qr(t){if(s.isBuffer(t)){var r=K(t.length)|0,e=B(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||Z(t.length)?B(0):W(t);if(t.type==="Buffer"&&Array.isArray(t.data))return W(t.data)}function K(t){if(t>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return t|0}function Wr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,e){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(r)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,i=e.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==e[a]){n=r[a],i=e[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=s.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var o=r[n];if(I(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function fr(t,r){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return mr(t).length;default:if(i)return n?-1:j(t).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=fr;function Xr(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ne(this,r,e);case"utf8":case"utf-8":return hr(this,r,e);case"ascii":return ee(this,r,e);case"latin1":case"binary":return te(this,r,e);case"base64":return Vr(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function L(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}s.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)L(this,e,e+1);return this};s.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)L(this,e,e+3),L(this,e+1,e+2);return this};s.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)L(this,e,e+7),L(this,e+1,e+6),L(this,e+2,e+5),L(this,e+3,e+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?hr(this,0,r):Xr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",e=N.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};sr&&(s.prototype[sr]=s.prototype.inspect);s.prototype.compare=function(r,e,n,i,a){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,u=n-e,p=Math.min(o,u),l=this.slice(i,a),f=r.slice(e,n),c=0;c<p;++c)if(l[c]!==f[c]){o=l[c],u=f[c];break}return o<u?-1:u<o?1:0};function gr(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,Z(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=s.from(r,n)),s.isBuffer(r))return r.length===0?-1:ur(t,r,e,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):ur(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function ur(t,r,e,n,i){var a=1,o=t.length,u=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,u/=2,e/=2}function p(T,E){return a===1?T[E]:T.readUInt16BE(E*a)}var l;if(i){var f=-1;for(l=e;l<o;l++)if(p(t,l)===p(r,f===-1?0:l-f)){if(f===-1&&(f=l),l-f+1===u)return f*a}else f!==-1&&(l-=l-f),f=-1}else for(e+u>o&&(e=o-u),l=e;l>=0;l--){for(var c=!0,F=0;F<u;F++)if(p(t,l+F)!==p(r,F)){c=!1;break}if(c)return l}return-1}s.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};s.prototype.indexOf=function(r,e,n){return gr(this,r,e,n,!0)};s.prototype.lastIndexOf=function(r,e,n){return gr(this,r,e,n,!1)};function jr(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var u=parseInt(r.substr(o*2,2),16);if(Z(u))return o;t[e+o]=u}return o}function Jr(t,r,e,n){return G(j(r,t.length-e),t,e,n)}function Kr(t,r,e,n){return G(se(r),t,e,n)}function Zr(t,r,e,n){return G(mr(r),t,e,n)}function $r(t,r,e,n){return G(ue(r,t.length-e),t,e,n)}s.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return jr(this,r,e,n);case"utf8":case"utf-8":return Jr(this,r,e,n);case"ascii":case"latin1":case"binary":return Kr(this,r,e,n);case"base64":return Zr(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $r(this,r,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Vr(t,r,e){return r===0&&e===t.length?Q.fromByteArray(t):Q.fromByteArray(t.slice(r,e))}function hr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var a=t[i],o=null,u=a>239?4:a>223?3:a>191?2:1;if(i+u<=e){var p,l,f,c;switch(u){case 1:a<128&&(o=a);break;case 2:p=t[i+1],(p&192)===128&&(c=(a&31)<<6|p&63,c>127&&(o=c));break;case 3:p=t[i+1],l=t[i+2],(p&192)===128&&(l&192)===128&&(c=(a&15)<<12|(p&63)<<6|l&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:p=t[i+1],l=t[i+2],f=t[i+3],(p&192)===128&&(l&192)===128&&(f&192)===128&&(c=(a&15)<<18|(p&63)<<12|(l&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,u=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=u}return re(n)}var pr=4096;function re(t){var r=t.length;if(r<=pr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=pr));return e}function ee(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function te(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ne(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",a=r;a<e;++a)i+=pe[t[a]];return i}function ie(t,r,e){for(var n=t.slice(r,e),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i=this.subarray(r,e);return Object.setPrototypeOf(i,s.prototype),i};function d(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||d(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||d(r,e,this.length);for(var i=this[r+--e],a=1;e>0&&(a*=256);)i+=this[r+--e]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,e){return r=r>>>0,e||d(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||d(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||d(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||d(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||d(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||d(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||d(r,e,this.length);for(var i=e,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};s.prototype.readInt8=function(r,e){return r=r>>>0,e||d(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,e){r=r>>>0,e||d(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(r,e){r=r>>>0,e||d(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(r,e){return r=r>>>0,e||d(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,e){return r=r>>>0,e||d(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,e){return r=r>>>0,e||d(r,4,this.length),C.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,e){return r=r>>>0,e||d(r,4,this.length),C.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||d(r,8,this.length),C.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||d(r,8,this.length),C.read(this,r,!1,52,8)};function w(t,r,e,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,r,e,n,a,0)}var o=1,u=0;for(this[e]=r&255;++u<n&&(o*=256);)this[e+u]=r/o&255;return e+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,r,e,n,a,0)}var o=n-1,u=1;for(this[e+o]=r&255;--o>=0&&(u*=256);)this[e+o]=r/u&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,1,255,0),this[e]=r&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};s.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);w(this,r,e,n,a-1,-a)}var o=0,u=1,p=0;for(this[e]=r&255;++o<n&&(u*=256);)r<0&&p===0&&this[e+o-1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);w(this,r,e,n,a-1,-a)}var o=n-1,u=1,p=0;for(this[e+o]=r&255;--o>=0&&(u*=256);)r<0&&p===0&&this[e+o+1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};s.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};s.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function dr(t,r,e,n,i,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function yr(t,r,e,n,i){return r=+r,e=e>>>0,i||dr(t,r,e,4,34028234663852886e22,-34028234663852886e22),C.write(t,r,e,n,23,4),e+4}s.prototype.writeFloatLE=function(r,e,n){return yr(this,r,e,!0,n)};s.prototype.writeFloatBE=function(r,e,n){return yr(this,r,e,!1,n)};function xr(t,r,e,n,i){return r=+r,e=e>>>0,i||dr(t,r,e,8,17976931348623157e292,-17976931348623157e292),C.write(t,r,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(r,e,n){return xr(this,r,e,!0,n)};s.prototype.writeDoubleBE=function(r,e,n){return xr(this,r,e,!1,n)};s.prototype.copy=function(r,e,n,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var a=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),e),a};s.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<n;++o)this[o]=r;else{var u=s.isBuffer(r)?r:s.from(r,i),p=u.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=u[o%p]}return this};var ae=/[^+/0-9A-Za-z-_]/g;function oe(t){if(t=t.split("=")[0],t=t.trim().replace(ae,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function j(t,r){r=r||1/0;for(var e,n=t.length,i=null,a=[],o=0;o<n;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function se(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function ue(t,r){for(var e,n,i,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),n=e>>8,i=e%256,a.push(i),a.push(n);return a}function mr(t){return Q.toByteArray(oe(t))}function G(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function I(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function Z(t){return t!==t}var pe=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()});var Ir=P((me,kr)=>{g();var h=kr.exports={},b,S;function $(){throw new Error("setTimeout has not been defined")}function V(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?b=setTimeout:b=$}catch(t){b=$}try{typeof clearTimeout=="function"?S=clearTimeout:S=V}catch(t){S=V}})();function Tr(t){if(b===setTimeout)return setTimeout(t,0);if((b===$||!b)&&setTimeout)return b=setTimeout,setTimeout(t,0);try{return b(t,0)}catch(r){try{return b.call(null,t,0)}catch(e){return b.call(this,t,0)}}}function ce(t){if(S===clearTimeout)return clearTimeout(t);if((S===V||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(t);try{return S(t)}catch(r){try{return S.call(null,t)}catch(e){return S.call(this,t)}}}var A=[],D=!1,U,q=-1;function le(){!D||!U||(D=!1,U.length?A=U.concat(A):q=-1,A.length&&vr())}function vr(){if(!D){var t=Tr(le);D=!0;for(var r=A.length;r;){for(U=A,A=[];++q<r;)U&&U[q].run();q=-1,r=A.length}U=null,D=!1,ce(t)}}h.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];A.push(new Fr(t,r)),A.length===1&&!D&&Tr(vr)};function Fr(t,r){this.fun=t,this.array=r}Fr.prototype.run=function(){this.fun.apply(null,this.array)};h.title="browser";h.browser=!0;h.env={};h.argv=[];h.version="";h.versions={};function _(){}h.on=_;h.addListener=_;h.once=_;h.off=_;h.removeListener=_;h.removeAllListeners=_;h.emit=_;h.prependListener=_;h.prependOnceListener=_;h.listeners=function(t){return[]};h.binding=function(t){throw new Error("process.binding is not supported")};h.cwd=function(){return"/"};h.chdir=function(t){throw new Error("process.chdir is not supported")};h.umask=function(){return 0}});var y,x,we,g=Lr(()=>{y=tr(wr()),x=tr(Ir()),we=function(t){function r(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var ge={};Ur(ge,{getInitialScResultsDecodeMethod:()=>fe});module.exports=Er(ge);g();g();g();g();g();g();g();g();g();var rr=(i=>(i.raw="raw",i.text="text",i.decimal="decimal",i.smart="smart",i))(rr||{});g();g();var fe=()=>{let{hash:t}=window.location,r=t.indexOf("/")>0?t.substring(t.indexOf("/")+1):"raw";return r&&Object.values(rr).includes(r)?r:"raw"};0&&(module.exports={getInitialScResultsDecodeMethod});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|