@web3jskit/walletkit 0.4.6 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +494 -145
- package/README.zh.md +569 -0
- package/dist/assets/svg/browserWalletIcon.d.ts +2 -0
- package/dist/assets/svg/browserWalletIcon.d.ts.map +1 -0
- package/dist/{src/assets → assets}/svg/dataBase.d.ts +1 -1
- package/dist/assets/svg/dataBase.d.ts.map +1 -0
- package/dist/assets/svg/metaMaskWallet.d.ts +2 -0
- package/dist/assets/svg/metaMaskWallet.d.ts.map +1 -0
- package/dist/btcConnector-CDgcyxQ3.mjs +68 -0
- package/dist/btcConnector-Ca_Ne7hH.js +1 -0
- package/dist/btcConnector-D9c29Oxw.mjs +58 -0
- package/dist/btcConnector-PnjTRzcQ.js +1 -0
- package/dist/components/ConnectButton/ConnectedInfo.d.ts +2 -0
- package/dist/components/ConnectButton/ConnectedInfo.d.ts.map +1 -0
- package/dist/components/ConnectButton/index.d.ts +9 -0
- package/dist/components/ConnectButton/index.d.ts.map +1 -0
- package/dist/components/ConnectModal/index.d.ts +7 -0
- package/dist/components/ConnectModal/index.d.ts.map +1 -0
- package/dist/{src/components → components}/Dropdown/index.d.ts +2 -7
- package/dist/components/Dropdown/index.d.ts.map +1 -0
- package/dist/components/InfoModal/index.d.ts +3 -0
- package/dist/components/InfoModal/index.d.ts.map +1 -0
- package/dist/components/Modal/index.d.ts +15 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/ModalHeader/index.d.ts +8 -0
- package/dist/components/ModalHeader/index.d.ts.map +1 -0
- package/dist/{src/components → components}/SVGs/backArrowSvg.d.ts +1 -0
- package/dist/components/SVGs/backArrowSvg.d.ts.map +1 -0
- package/dist/{src/components → components}/SVGs/closeSvg.d.ts +1 -0
- package/dist/components/SVGs/closeSvg.d.ts.map +1 -0
- package/dist/{src/components → components}/SVGs/copiedSvg.d.ts +1 -0
- package/dist/components/SVGs/copiedSvg.d.ts.map +1 -0
- package/dist/{src/components → components}/SVGs/copySvg.d.ts +1 -0
- package/dist/components/SVGs/copySvg.d.ts.map +1 -0
- package/dist/{src/components → components}/SVGs/exitSvg.d.ts +1 -0
- package/dist/components/SVGs/exitSvg.d.ts.map +1 -0
- package/dist/components/SVGs/spinSvg.d.ts +5 -0
- package/dist/components/SVGs/spinSvg.d.ts.map +1 -0
- package/dist/{src/components → components}/SVGs/vectorSvg.d.ts +1 -0
- package/dist/components/SVGs/vectorSvg.d.ts.map +1 -0
- package/dist/{src/components → components}/Text/index.d.ts +3 -1
- package/dist/components/Text/index.d.ts.map +1 -0
- package/dist/components/ThemeToggle.d.ts +5 -0
- package/dist/components/ThemeToggle.d.ts.map +1 -0
- package/dist/components/WalletItem/index.d.ts +9 -0
- package/dist/components/WalletItem/index.d.ts.map +1 -0
- package/dist/components/WalletKitProvider/ChainProvider.d.ts +27 -0
- package/dist/components/WalletKitProvider/ChainProvider.d.ts.map +1 -0
- package/dist/components/WalletKitProvider/I18nProvider.d.ts +15 -0
- package/dist/components/WalletKitProvider/I18nProvider.d.ts.map +1 -0
- package/dist/components/WalletKitProvider/ThemeProvider.d.ts +25 -0
- package/dist/components/WalletKitProvider/ThemeProvider.d.ts.map +1 -0
- package/dist/components/WalletKitProvider/index.d.ts +23 -0
- package/dist/components/WalletKitProvider/index.d.ts.map +1 -0
- package/dist/config/iconDatabase.d.ts +11 -0
- package/dist/config/iconDatabase.d.ts.map +1 -0
- package/dist/config/netConfig.d.ts +16 -0
- package/dist/config/netConfig.d.ts.map +1 -0
- package/dist/config/walletConfig.d.ts +28 -0
- package/dist/config/walletConfig.d.ts.map +1 -0
- package/dist/core/connectors/Bitget_Wallet/btcConnector.d.ts +36 -0
- package/dist/core/connectors/Bitget_Wallet/btcConnector.d.ts.map +1 -0
- package/dist/core/connectors/Bitget_Wallet/deepLinkConnector.d.ts +15 -0
- package/dist/core/connectors/Bitget_Wallet/deepLinkConnector.d.ts.map +1 -0
- package/dist/core/connectors/Bitget_Wallet/solConnector.d.ts +13 -0
- package/dist/core/connectors/Bitget_Wallet/solConnector.d.ts.map +1 -0
- package/dist/core/connectors/GelWallet/evmConnector.d.ts +27 -0
- package/dist/core/connectors/GelWallet/evmConnector.d.ts.map +1 -0
- package/dist/core/connectors/GelWallet/solConnector.d.ts +15 -0
- package/dist/core/connectors/GelWallet/solConnector.d.ts.map +1 -0
- package/dist/core/connectors/GelWallet/tronConnector.d.ts +8 -0
- package/dist/core/connectors/GelWallet/tronConnector.d.ts.map +1 -0
- package/dist/core/connectors/MetaMask/deepLinkConnector.d.ts +15 -0
- package/dist/core/connectors/MetaMask/deepLinkConnector.d.ts.map +1 -0
- package/dist/core/connectors/OKX_Wallet/btcConnector.d.ts +40 -0
- package/dist/core/connectors/OKX_Wallet/btcConnector.d.ts.map +1 -0
- package/dist/core/connectors/OKX_Wallet/deepLinkConnector.d.ts +15 -0
- package/dist/core/connectors/OKX_Wallet/deepLinkConnector.d.ts.map +1 -0
- package/dist/core/connectors/OKX_Wallet/solConnector.d.ts +12 -0
- package/dist/core/connectors/OKX_Wallet/solConnector.d.ts.map +1 -0
- package/dist/core/connectors/OKX_Wallet/tronConnector.d.ts +12 -0
- package/dist/core/connectors/OKX_Wallet/tronConnector.d.ts.map +1 -0
- package/dist/core/connectors/Phantom/btcConnector.d.ts +32 -0
- package/dist/core/connectors/Phantom/btcConnector.d.ts.map +1 -0
- package/dist/core/connectors/Phantom/deepLinkConnector.d.ts +15 -0
- package/dist/core/connectors/Phantom/deepLinkConnector.d.ts.map +1 -0
- package/dist/core/connectors/Phantom/solConnector.d.ts +12 -0
- package/dist/core/connectors/Phantom/solConnector.d.ts.map +1 -0
- package/dist/core/connectors/TokenPocket/deepLinkConnector.d.ts +17 -0
- package/dist/core/connectors/TokenPocket/deepLinkConnector.d.ts.map +1 -0
- package/dist/core/connectors/TronLink/deepLinkConnector.d.ts +17 -0
- package/dist/core/connectors/TronLink/deepLinkConnector.d.ts.map +1 -0
- package/dist/core/connectors/TronLink/tronConnector.d.ts +13 -0
- package/dist/core/connectors/TronLink/tronConnector.d.ts.map +1 -0
- package/dist/core/connectors/Trust_Wallet/deepLinkConnector.d.ts +15 -0
- package/dist/core/connectors/Trust_Wallet/deepLinkConnector.d.ts.map +1 -0
- package/dist/core/connectors/_evm/createConnectors.d.ts +4 -0
- package/dist/core/connectors/_evm/createConnectors.d.ts.map +1 -0
- package/dist/core/connectors/_evm/createEmitter.d.ts +35 -0
- package/dist/core/connectors/_evm/createEmitter.d.ts.map +1 -0
- package/dist/core/connectors/_evm/evmConnector.d.ts +51 -0
- package/dist/core/connectors/_evm/evmConnector.d.ts.map +1 -0
- package/dist/core/connectors/_gelwallet/gelWalletConnector.d.ts +26 -0
- package/dist/core/connectors/_gelwallet/gelWalletConnector.d.ts.map +1 -0
- package/dist/core/connectors/_sol/resolveAddress.d.ts +2 -0
- package/dist/core/connectors/_sol/resolveAddress.d.ts.map +1 -0
- package/dist/core/connectors/_sol/solConnector.d.ts +32 -0
- package/dist/core/connectors/_sol/solConnector.d.ts.map +1 -0
- package/dist/core/connectors/_tron/tronConnector.d.ts +30 -0
- package/dist/core/connectors/_tron/tronConnector.d.ts.map +1 -0
- package/dist/core/connectors/baseConnector.d.ts +36 -0
- package/dist/core/connectors/baseConnector.d.ts.map +1 -0
- package/dist/core/connectors/createConnectors.d.ts +20 -0
- package/dist/core/connectors/createConnectors.d.ts.map +1 -0
- package/dist/core/errors/base.d.ts +24 -0
- package/dist/core/errors/base.d.ts.map +1 -0
- package/dist/core/errors/request.d.ts +80 -0
- package/dist/core/errors/request.d.ts.map +1 -0
- package/dist/core/errors/rpc.d.ts +290 -0
- package/dist/core/errors/rpc.d.ts.map +1 -0
- package/dist/core/errors/unit.d.ts +11 -0
- package/dist/core/errors/unit.d.ts.map +1 -0
- package/dist/core/errors/utils.d.ts +8 -0
- package/dist/core/errors/utils.d.ts.map +1 -0
- package/dist/core/types/chain.d.ts +49 -0
- package/dist/core/types/chain.d.ts.map +1 -0
- package/dist/core/types/config.d.ts +7 -0
- package/dist/core/types/config.d.ts.map +1 -0
- package/dist/core/types/connector.d.ts +104 -0
- package/dist/core/types/connector.d.ts.map +1 -0
- package/dist/core/types/events.d.ts +2 -0
- package/dist/core/types/events.d.ts.map +1 -0
- package/dist/core/types/unit.d.ts +2 -0
- package/dist/core/types/unit.d.ts.map +1 -0
- package/dist/core/types/utils.d.ts +61 -0
- package/dist/core/types/utils.d.ts.map +1 -0
- package/dist/core/utils/decodePhantom.d.ts +2 -0
- package/dist/core/utils/decodePhantom.d.ts.map +1 -0
- package/dist/core/utils/deepEqual.d.ts +3 -0
- package/dist/core/utils/deepEqual.d.ts.map +1 -0
- package/dist/core/utils/deserialize.d.ts +4 -0
- package/dist/core/utils/deserialize.d.ts.map +1 -0
- package/dist/core/utils/filterWallets.d.ts +4 -0
- package/dist/core/utils/filterWallets.d.ts.map +1 -0
- package/dist/core/utils/rpc.d.ts +21 -0
- package/dist/core/utils/rpc.d.ts.map +1 -0
- package/dist/core/utils/serialize.d.ts +16 -0
- package/dist/core/utils/serialize.d.ts.map +1 -0
- package/dist/core/utils/silentConnect.d.ts +5 -0
- package/dist/core/utils/silentConnect.d.ts.map +1 -0
- package/dist/core/utils/stringify.d.ts +5 -0
- package/dist/core/utils/stringify.d.ts.map +1 -0
- package/dist/core/utils/uid.d.ts +2 -0
- package/dist/core/utils/uid.d.ts.map +1 -0
- package/dist/core/utils/util.d.ts +11 -0
- package/dist/core/utils/util.d.ts.map +1 -0
- package/dist/dapp.es-BPGP9PnL.mjs +15917 -0
- package/dist/dapp.es-sLnregcu.js +103 -0
- package/dist/deepLinkConnector-2xq1YA07.js +1 -0
- package/dist/deepLinkConnector-BV1AtJUd.mjs +34 -0
- package/dist/deepLinkConnector-B_fjG32i.js +1 -0
- package/dist/deepLinkConnector-BjV3gwrJ.js +1 -0
- package/dist/deepLinkConnector-BrFUCtcT.js +1 -0
- package/dist/deepLinkConnector-COLT9UtB.js +1 -0
- package/dist/deepLinkConnector-Cl2lfNcv.mjs +33 -0
- package/dist/deepLinkConnector-ClxWpKnx.mjs +43 -0
- package/dist/deepLinkConnector-Cp3wn9oq.mjs +42 -0
- package/dist/deepLinkConnector-Cy9w-E2m.mjs +43 -0
- package/dist/deepLinkConnector-D2bdmDbP.mjs +34 -0
- package/dist/deepLinkConnector-De3WEuvS.mjs +34 -0
- package/dist/deepLinkConnector-DvpJaC8p.js +1 -0
- package/dist/deepLinkConnector-Dypz-oTG.js +1 -0
- package/dist/errors/index.d.ts +4 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/evmConnector-CDZHCMDp.mjs +163 -0
- package/dist/evmConnector-CsLHlVqx.js +1 -0
- package/dist/gelWalletConnector-D-BogX91.mjs +76 -0
- package/dist/gelWalletConnector-DmGJoazT.js +1 -0
- package/dist/hooks/useWalletKit.d.ts +115 -0
- package/dist/hooks/useWalletKit.d.ts.map +1 -0
- package/dist/index-9qmfDVzH-C-zsxX98.mjs +25638 -0
- package/dist/index-9qmfDVzH-C6VVZD9P.js +28 -0
- package/dist/index-B3LF1VeP-58KzZv6u.js +1 -0
- package/dist/index-B3LF1VeP-IR-fSZI0.mjs +120 -0
- package/dist/index-BZdLbTeL.js +138 -0
- package/dist/index-CCHY2zSF-OxZZmzOg.mjs +45 -0
- package/dist/index-CCHY2zSF-ocS_tvXl.js +1 -0
- package/dist/index-CqeMS3Gf-C4g86ca5.js +1 -0
- package/dist/index-CqeMS3Gf-DXS8RsUh.mjs +67 -0
- package/dist/index-DGMGsMkJ-BTPPfxmS.js +1 -0
- package/dist/index-DGMGsMkJ-CHecRdpD.mjs +27 -0
- package/dist/index-Dm84KVCU.mjs +9267 -0
- package/dist/index-yUF_S07V-Cm9-qVkc.js +1 -0
- package/dist/index-yUF_S07V-DHeRsyE0.mjs +48 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +27 -0
- package/dist/index.js +1 -0
- package/dist/index.umd.js +57367 -0
- package/dist/locals/i18n.d.ts +5 -0
- package/dist/locals/i18n.d.ts.map +1 -0
- package/dist/locals/languages/en.json.d.ts +43 -0
- package/dist/locals/languages/ja.json.d.ts +43 -0
- package/dist/locals/languages/ko.json.d.ts +43 -0
- package/dist/locals/languages/ms.json.d.ts +43 -0
- package/dist/locals/languages/th.json.d.ts +43 -0
- package/dist/locals/languages/vi.json.d.ts +43 -0
- package/dist/locals/languages/zh.json.d.ts +43 -0
- package/dist/locals/languages/zhTW.json.d.ts +43 -0
- package/dist/locals/resources.d.ts +347 -0
- package/dist/locals/resources.d.ts.map +1 -0
- package/dist/solConnector-2sU1qHsq.mjs +11 -0
- package/dist/solConnector-BEPYycHF.js +1 -0
- package/dist/solConnector-CVS5qwwy.js +1 -0
- package/dist/solConnector-CWIPltdg.mjs +11 -0
- package/dist/solConnector-CXejjI9x.mjs +41 -0
- package/dist/solConnector-CnQAb35I.mjs +11 -0
- package/dist/solConnector-DU5bMwKt.js +1 -0
- package/dist/solConnector-xJ3YPYMj.js +1 -0
- package/dist/stores/helperStore.d.ts +92 -0
- package/dist/stores/helperStore.d.ts.map +1 -0
- package/dist/{src/stores → stores}/index.d.ts +15 -6
- package/dist/stores/index.d.ts.map +1 -0
- package/dist/{src/stores → stores}/modalStore.d.ts +6 -4
- package/dist/stores/modalStore.d.ts.map +1 -0
- package/dist/style.css +492 -0
- package/dist/tronConnector-CUnp7Df4.js +1 -0
- package/dist/tronConnector-CaEipTWV.mjs +21 -0
- package/dist/tronConnector-CpIX5IxL.mjs +13 -0
- package/dist/tronConnector-DMLqqMae.mjs +35 -0
- package/dist/tronConnector-DesDymhW.js +1 -0
- package/dist/tronConnector-tU0iwxHV.js +1 -0
- package/dist/types/chain.d.ts +12 -0
- package/dist/types/chain.d.ts.map +1 -0
- package/dist/types/configType.d.ts +3 -0
- package/dist/types/configType.d.ts.map +1 -0
- package/dist/{src/types → types}/error.d.ts +1 -0
- package/dist/types/error.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/{src/types → types}/store.d.ts +1 -0
- package/dist/types/store.d.ts.map +1 -0
- package/dist/{src/utils → utils}/formatter.d.ts +1 -0
- package/dist/utils/formatter.d.ts.map +1 -0
- package/dist/{src/utils → utils}/generateAvatar.d.ts +1 -0
- package/dist/utils/generateAvatar.d.ts.map +1 -0
- package/dist/utils/proxy.d.ts +5 -0
- package/dist/utils/proxy.d.ts.map +1 -0
- package/package.json +96 -45
- package/dist/package.json +0 -47
- package/dist/src/assets/svg/dataBase.js +0 -5
- package/dist/src/assets/svg/dataBase.js.map +0 -1
- package/dist/src/assets/svg/metaMaskWallet.d.ts +0 -1
- package/dist/src/assets/svg/metaMaskWallet.js +0 -35
- package/dist/src/assets/svg/metaMaskWallet.js.map +0 -1
- package/dist/src/components/ConnectButton/ConnectedInfo.d.ts +0 -1
- package/dist/src/components/ConnectButton/ConnectedInfo.js +0 -21
- package/dist/src/components/ConnectButton/ConnectedInfo.js.map +0 -1
- package/dist/src/components/ConnectButton/index.d.ts +0 -8
- package/dist/src/components/ConnectButton/index.js +0 -16
- package/dist/src/components/ConnectButton/index.js.map +0 -1
- package/dist/src/components/ConnectButton/style.d.ts +0 -2
- package/dist/src/components/ConnectButton/style.js +0 -13
- package/dist/src/components/ConnectButton/style.js.map +0 -1
- package/dist/src/components/Connecting/index.d.ts +0 -6
- package/dist/src/components/Connecting/index.js +0 -11
- package/dist/src/components/Connecting/index.js.map +0 -1
- package/dist/src/components/Connecting/style.d.ts +0 -2
- package/dist/src/components/Connecting/style.js +0 -52
- package/dist/src/components/Connecting/style.js.map +0 -1
- package/dist/src/components/Dropdown/index.js +0 -24
- package/dist/src/components/Dropdown/index.js.map +0 -1
- package/dist/src/components/Dropdown/style.d.ts +0 -15
- package/dist/src/components/Dropdown/style.js +0 -66
- package/dist/src/components/Dropdown/style.js.map +0 -1
- package/dist/src/components/GetWallet/index.d.ts +0 -7
- package/dist/src/components/GetWallet/index.js +0 -21
- package/dist/src/components/GetWallet/index.js.map +0 -1
- package/dist/src/components/GetWallet/style.d.ts +0 -2
- package/dist/src/components/GetWallet/style.js +0 -117
- package/dist/src/components/GetWallet/style.js.map +0 -1
- package/dist/src/components/Header/ModalHeader.d.ts +0 -8
- package/dist/src/components/Header/ModalHeader.js +0 -9
- package/dist/src/components/Header/ModalHeader.js.map +0 -1
- package/dist/src/components/Header/style.d.ts +0 -2
- package/dist/src/components/Header/style.js +0 -74
- package/dist/src/components/Header/style.js.map +0 -1
- package/dist/src/components/Icon/index.d.ts +0 -23
- package/dist/src/components/Icon/index.js +0 -48
- package/dist/src/components/Icon/index.js.map +0 -1
- package/dist/src/components/Introduce/index.d.ts +0 -6
- package/dist/src/components/Introduce/index.js +0 -11
- package/dist/src/components/Introduce/index.js.map +0 -1
- package/dist/src/components/Introduce/style.d.ts +0 -2
- package/dist/src/components/Introduce/style.js +0 -97
- package/dist/src/components/Introduce/style.js.map +0 -1
- package/dist/src/components/Modal/ConnectModal.d.ts +0 -7
- package/dist/src/components/Modal/ConnectModal.js +0 -123
- package/dist/src/components/Modal/ConnectModal.js.map +0 -1
- package/dist/src/components/Modal/WalletInfoModal.d.ts +0 -1
- package/dist/src/components/Modal/WalletInfoModal.js +0 -46
- package/dist/src/components/Modal/WalletInfoModal.js.map +0 -1
- package/dist/src/components/Modal/index.d.ts +0 -13
- package/dist/src/components/Modal/index.js +0 -55
- package/dist/src/components/Modal/index.js.map +0 -1
- package/dist/src/components/Modal/style.d.ts +0 -5
- package/dist/src/components/Modal/style.js +0 -187
- package/dist/src/components/Modal/style.js.map +0 -1
- package/dist/src/components/SVGs/backArrowSvg.js +0 -4
- package/dist/src/components/SVGs/backArrowSvg.js.map +0 -1
- package/dist/src/components/SVGs/closeSvg.js +0 -4
- package/dist/src/components/SVGs/closeSvg.js.map +0 -1
- package/dist/src/components/SVGs/copiedSvg.js +0 -4
- package/dist/src/components/SVGs/copiedSvg.js.map +0 -1
- package/dist/src/components/SVGs/copySvg.js +0 -4
- package/dist/src/components/SVGs/copySvg.js.map +0 -1
- package/dist/src/components/SVGs/exitSvg.js +0 -4
- package/dist/src/components/SVGs/exitSvg.js.map +0 -1
- package/dist/src/components/SVGs/spinSvg.d.ts +0 -4
- package/dist/src/components/SVGs/spinSvg.js +0 -4
- package/dist/src/components/SVGs/spinSvg.js.map +0 -1
- package/dist/src/components/SVGs/vectorSvg.js +0 -4
- package/dist/src/components/SVGs/vectorSvg.js.map +0 -1
- package/dist/src/components/Text/index.js +0 -32
- package/dist/src/components/Text/index.js.map +0 -1
- package/dist/src/components/WalletKitProvider/ChainProvider.d.ts +0 -23
- package/dist/src/components/WalletKitProvider/ChainProvider.js +0 -66
- package/dist/src/components/WalletKitProvider/ChainProvider.js.map +0 -1
- package/dist/src/components/WalletKitProvider/I18nProvider.d.ts +0 -13
- package/dist/src/components/WalletKitProvider/I18nProvider.js +0 -42
- package/dist/src/components/WalletKitProvider/I18nProvider.js.map +0 -1
- package/dist/src/components/WalletKitProvider/ThemeProvider.d.ts +0 -8
- package/dist/src/components/WalletKitProvider/ThemeProvider.js +0 -14
- package/dist/src/components/WalletKitProvider/ThemeProvider.js.map +0 -1
- package/dist/src/components/WalletKitProvider/index.d.ts +0 -18
- package/dist/src/components/WalletKitProvider/index.js +0 -14
- package/dist/src/components/WalletKitProvider/index.js.map +0 -1
- package/dist/src/components/WalletList/index.d.ts +0 -8
- package/dist/src/components/WalletList/index.js +0 -18
- package/dist/src/components/WalletList/index.js.map +0 -1
- package/dist/src/components/WalletList/style.d.ts +0 -2
- package/dist/src/components/WalletList/style.js +0 -102
- package/dist/src/components/WalletList/style.js.map +0 -1
- package/dist/src/components/WalletTriggerButton/index.d.ts +0 -13
- package/dist/src/components/WalletTriggerButton/index.js +0 -37
- package/dist/src/components/WalletTriggerButton/index.js.map +0 -1
- package/dist/src/components/WalletTriggerButton/style.d.ts +0 -2
- package/dist/src/components/WalletTriggerButton/style.js +0 -63
- package/dist/src/components/WalletTriggerButton/style.js.map +0 -1
- package/dist/src/errors/index.d.ts +0 -2
- package/dist/src/errors/index.js +0 -6
- package/dist/src/errors/index.js.map +0 -1
- package/dist/src/hooks/useWalletKit.d.ts +0 -80
- package/dist/src/hooks/useWalletKit.js +0 -38
- package/dist/src/hooks/useWalletKit.js.map +0 -1
- package/dist/src/index.d.ts +0 -9
- package/dist/src/index.js +0 -10
- package/dist/src/index.js.map +0 -1
- package/dist/src/locals/i18n.d.ts +0 -2
- package/dist/src/locals/i18n.js +0 -17
- package/dist/src/locals/i18n.js.map +0 -1
- package/dist/src/locals/languages/en.json +0 -30
- package/dist/src/locals/languages/zh.json +0 -30
- package/dist/src/locals/resources.d.ts +0 -66
- package/dist/src/locals/resources.js +0 -11
- package/dist/src/locals/resources.js.map +0 -1
- package/dist/src/modals/connectModal/index.d.ts +0 -0
- package/dist/src/modals/connectModal/index.js +0 -2
- package/dist/src/modals/connectModal/index.js.map +0 -1
- package/dist/src/stores/SlotsWalletStore.d.ts +0 -18
- package/dist/src/stores/SlotsWalletStore.js +0 -33
- package/dist/src/stores/SlotsWalletStore.js.map +0 -1
- package/dist/src/stores/index.js +0 -25
- package/dist/src/stores/index.js.map +0 -1
- package/dist/src/stores/modalStore.js +0 -41
- package/dist/src/stores/modalStore.js.map +0 -1
- package/dist/src/styled/index.d.ts +0 -17
- package/dist/src/styled/index.js +0 -76
- package/dist/src/styled/index.js.map +0 -1
- package/dist/src/test/getwalletprovider.test.d.ts +0 -1
- package/dist/src/test/getwalletprovider.test.js +0 -10
- package/dist/src/test/getwalletprovider.test.js.map +0 -1
- package/dist/src/test/setup.d.ts +0 -1
- package/dist/src/test/setup.js +0 -7
- package/dist/src/test/setup.js.map +0 -1
- package/dist/src/theme/index.d.ts +0 -61
- package/dist/src/theme/index.js +0 -99
- package/dist/src/theme/index.js.map +0 -1
- package/dist/src/types/configType.d.ts +0 -2
- package/dist/src/types/configType.js +0 -2
- package/dist/src/types/configType.js.map +0 -1
- package/dist/src/types/error.js +0 -5
- package/dist/src/types/error.js.map +0 -1
- package/dist/src/types/slotsType.d.ts +0 -23
- package/dist/src/types/slotsType.js +0 -2
- package/dist/src/types/slotsType.js.map +0 -1
- package/dist/src/types/store.js +0 -2
- package/dist/src/types/store.js.map +0 -1
- package/dist/src/utils/formatter.js +0 -6
- package/dist/src/utils/formatter.js.map +0 -1
- package/dist/src/utils/generateAvatar.js +0 -32
- package/dist/src/utils/generateAvatar.js.map +0 -1
- package/dist/src/wallets/GelWallet/index.d.ts +0 -0
- package/dist/src/wallets/GelWallet/index.js +0 -2
- package/dist/src/wallets/GelWallet/index.js.map +0 -1
- package/dist/src/wallets/SlotsWallets/index.d.ts +0 -3
- package/dist/src/wallets/SlotsWallets/index.js +0 -26
- package/dist/src/wallets/SlotsWallets/index.js.map +0 -1
- package/dist/tsconfig.build.tsbuildinfo +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _r=require("./dapp.es-sLnregcu.js");var Jm=Object.defineProperty,qm=(ae,Oe,Me)=>Oe in ae?Jm(ae,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Me}):ae[Oe]=Me,Kn=(ae,Oe,Me)=>qm(ae,typeof Oe!="symbol"?Oe+"":Oe,Me),Tg={exports:{}};(function(ae,Oe){(function(Me,Ke){ae.exports=Ke()})(self,()=>(()=>{var Me,Ke,at={9082:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.createCurve=v.getHash=void 0;const i=k(1128),W=k(1717),B=k(6551);function y(t){return{hash:t,hmac:(o,...s)=>(0,i.hmac)(t,o,(0,W.concatBytes)(...s)),randomBytes:W.randomBytes}}v.getHash=y,v.createCurve=function(t,o){const s=G=>(0,B.weierstrass)({...t,...y(G)});return Object.freeze({...s(o),create:s})}},1525:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.validateBasic=v.wNAF=void 0;const i=k(4632),W=k(219),B=BigInt(0),y=BigInt(1);v.wNAF=function(t,o){const s=(_,ee)=>{const Q=ee.negate();return _?Q:ee},G=_=>({windows:Math.ceil(o/_)+1,windowSize:2**(_-1)});return{constTimeNegate:s,unsafeLadder(_,ee){let Q=t.ZERO,Ce=_;for(;ee>B;)ee&y&&(Q=Q.add(Ce)),Ce=Ce.double(),ee>>=y;return Q},precomputeWindow(_,ee){const{windows:Q,windowSize:Ce}=G(ee),le=[];let E=_,S=E;for(let L=0;L<Q;L++){S=E,le.push(S);for(let K=1;K<Ce;K++)S=S.add(E),le.push(S);E=S.double()}return le},wNAF(_,ee,Q){const{windows:Ce,windowSize:le}=G(_);let E=t.ZERO,S=t.BASE;const L=BigInt(2**_-1),K=2**_,Y=BigInt(_);for(let ce=0;ce<Ce;ce++){const te=ce*le;let ie=Number(Q&L);Q>>=Y,ie>le&&(ie-=K,Q+=y);const he=te,Xe=te+Math.abs(ie)-1,et=ce%2!=0,Ge=ie<0;ie===0?S=S.add(s(et,ee[he])):E=E.add(s(Ge,ee[Xe]))}return{p:E,f:S}},wNAFCached(_,ee,Q,Ce){const le=_._WINDOW_SIZE||1;let E=ee.get(_);return E||(E=this.precomputeWindow(_,le),le!==1&&ee.set(_,Ce(E))),this.wNAF(le,E,Q)}}},v.validateBasic=function(t){return(0,i.validateField)(t.Fp),(0,W.validateObject)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,i.nLength)(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}},5134:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.createHasher=v.isogenyMap=v.hash_to_field=v.expand_message_xof=v.expand_message_xmd=void 0;const i=k(4632),W=k(219),B=W.bytesToNumberBE;function y(Q,Ce){if(Q<0||Q>=1<<8*Ce)throw new Error(`bad I2OSP call: value=${Q} length=${Ce}`);const le=Array.from({length:Ce}).fill(0);for(let E=Ce-1;E>=0;E--)le[E]=255&Q,Q>>>=8;return new Uint8Array(le)}function t(Q,Ce){const le=new Uint8Array(Q.length);for(let E=0;E<Q.length;E++)le[E]=Q[E]^Ce[E];return le}function o(Q){if(!(Q instanceof Uint8Array))throw new Error("Uint8Array expected")}function s(Q){if(!Number.isSafeInteger(Q))throw new Error("number expected")}function G(Q,Ce,le,E){o(Q),o(Ce),s(le),Ce.length>255&&(Ce=E((0,W.concatBytes)((0,W.utf8ToBytes)("H2C-OVERSIZE-DST-"),Ce)));const{outputLen:S,blockLen:L}=E,K=Math.ceil(le/S);if(K>255)throw new Error("Invalid xmd length");const Y=(0,W.concatBytes)(Ce,y(Ce.length,1)),ce=y(0,L),te=y(le,2),ie=new Array(K),he=E((0,W.concatBytes)(ce,Q,te,y(0,1),Y));ie[0]=E((0,W.concatBytes)(he,y(1,1),Y));for(let Xe=1;Xe<=K;Xe++){const et=[t(he,ie[Xe-1]),y(Xe+1,1),Y];ie[Xe]=E((0,W.concatBytes)(...et))}return(0,W.concatBytes)(...ie).slice(0,le)}function _(Q,Ce,le,E,S){if(o(Q),o(Ce),s(le),Ce.length>255){const L=Math.ceil(2*E/8);Ce=S.create({dkLen:L}).update((0,W.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(Ce).digest()}if(le>65535||Ce.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return S.create({dkLen:le}).update(Q).update(y(le,2)).update(Ce).update(y(Ce.length,1)).digest()}function ee(Q,Ce,le){(0,W.validateObject)(le,{DST:"string",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:E,k:S,m:L,hash:K,expand:Y,DST:ce}=le;o(Q),s(Ce);const te=(function(Ze){if(Ze instanceof Uint8Array)return Ze;if(typeof Ze=="string")return(0,W.utf8ToBytes)(Ze);throw new Error("DST must be Uint8Array or string")})(ce),ie=E.toString(2).length,he=Math.ceil((ie+S)/8),Xe=Ce*L*he;let et;if(Y==="xmd")et=G(Q,te,Xe,K);else if(Y==="xof")et=_(Q,te,Xe,S,K);else{if(Y!=="_internal_pass")throw new Error('expand must be "xmd" or "xof"');et=Q}const Ge=new Array(Ce);for(let Ze=0;Ze<Ce;Ze++){const A=new Array(L);for(let N=0;N<L;N++){const D=he*(N+Ze*L),F=et.subarray(D,D+he);A[N]=(0,i.mod)(B(F),E)}Ge[Ze]=A}return Ge}v.expand_message_xmd=G,v.expand_message_xof=_,v.hash_to_field=ee,v.isogenyMap=function(Q,Ce){const le=Ce.map(E=>Array.from(E).reverse());return(E,S)=>{const[L,K,Y,ce]=le.map(te=>te.reduce((ie,he)=>Q.add(Q.mul(ie,E),he)));return E=Q.div(L,K),S=Q.mul(S,Q.div(Y,ce)),{x:E,y:S}}},v.createHasher=function(Q,Ce,le){if(typeof Ce!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(E,S){const L=ee(E,2,{...le,DST:le.DST,...S}),K=Q.fromAffine(Ce(L[0])),Y=Q.fromAffine(Ce(L[1])),ce=K.add(Y).clearCofactor();return ce.assertValidity(),ce},encodeToCurve(E,S){const L=ee(E,1,{...le,DST:le.encodeDST,...S}),K=Q.fromAffine(Ce(L[0])).clearCofactor();return K.assertValidity(),K}}}},4632:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.hashToPrivateScalar=v.FpSqrtEven=v.FpSqrtOdd=v.Field=v.nLength=v.FpIsSquare=v.FpDiv=v.FpInvertBatch=v.FpPow=v.validateField=v.isNegativeLE=v.FpSqrt=v.tonelliShanks=v.invert=v.pow2=v.pow=v.mod=void 0;const i=k(219),W=BigInt(0),B=BigInt(1),y=BigInt(2),t=BigInt(3),o=BigInt(4),s=BigInt(5),G=BigInt(8);function _(Y,ce){const te=Y%ce;return te>=W?te:ce+te}function ee(Y,ce,te){if(te<=W||ce<W)throw new Error("Expected power/modulo > 0");if(te===B)return W;let ie=B;for(;ce>W;)ce&B&&(ie=ie*Y%te),Y=Y*Y%te,ce>>=B;return ie}function Q(Y,ce){if(Y===W||ce<=W)throw new Error(`invert: expected positive integers, got n=${Y} mod=${ce}`);let te=_(Y,ce),ie=ce,he=W,Xe=B;for(;te!==W;){const et=ie/te,Ge=ie%te,Ze=he-Xe*et;ie=te,te=Ge,he=Xe,Xe=Ze}if(ie!==B)throw new Error("invert: does not exist");return _(he,ce)}function Ce(Y){const ce=(Y-B)/y;let te,ie,he;for(te=Y-B,ie=0;te%y===W;te/=y,ie++);for(he=y;he<Y&&ee(he,ce,Y)!==Y-B;he++);if(ie===1){const et=(Y+B)/o;return function(Ge,Ze){const A=Ge.pow(Ze,et);if(!Ge.eql(Ge.sqr(A),Ze))throw new Error("Cannot find square root");return A}}const Xe=(te+B)/y;return function(et,Ge){if(et.pow(Ge,ce)===et.neg(et.ONE))throw new Error("Cannot find square root");let Ze=ie,A=et.pow(et.mul(et.ONE,he),te),N=et.pow(Ge,Xe),D=et.pow(Ge,te);for(;!et.eql(D,et.ONE);){if(et.eql(D,et.ZERO))return et.ZERO;let F=1;for(let R=et.sqr(D);F<Ze&&!et.eql(R,et.ONE);F++)R=et.sqr(R);const P=et.pow(A,B<<BigInt(Ze-F-1));A=et.sqr(P),N=et.mul(N,P),D=et.mul(D,A),Ze=F}return N}}function le(Y){if(Y%o===t){const ce=(Y+B)/o;return function(te,ie){const he=te.pow(ie,ce);if(!te.eql(te.sqr(he),ie))throw new Error("Cannot find square root");return he}}if(Y%G===s){const ce=(Y-s)/G;return function(te,ie){const he=te.mul(ie,y),Xe=te.pow(he,ce),et=te.mul(ie,Xe),Ge=te.mul(te.mul(et,y),Xe),Ze=te.mul(et,te.sub(Ge,te.ONE));if(!te.eql(te.sqr(Ze),ie))throw new Error("Cannot find square root");return Ze}}return Ce(Y)}BigInt(9),BigInt(16),v.mod=_,v.pow=ee,v.pow2=function(Y,ce,te){let ie=Y;for(;ce-- >W;)ie*=ie,ie%=te;return ie},v.invert=Q,v.tonelliShanks=Ce,v.FpSqrt=le,v.isNegativeLE=(Y,ce)=>(_(Y,ce)&B)===B;const E=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function S(Y,ce,te){if(te<W)throw new Error("Expected power > 0");if(te===W)return Y.ONE;if(te===B)return ce;let ie=Y.ONE,he=ce;for(;te>W;)te&B&&(ie=Y.mul(ie,he)),he=Y.sqr(he),te>>=B;return ie}function L(Y,ce){const te=new Array(ce.length),ie=ce.reduce((Xe,et,Ge)=>Y.is0(et)?Xe:(te[Ge]=Xe,Y.mul(Xe,et)),Y.ONE),he=Y.inv(ie);return ce.reduceRight((Xe,et,Ge)=>Y.is0(et)?Xe:(te[Ge]=Y.mul(Xe,te[Ge]),Y.mul(Xe,et)),he),te}function K(Y,ce){const te=ce!==void 0?ce:Y.toString(2).length;return{nBitLength:te,nByteLength:Math.ceil(te/8)}}v.validateField=function(Y){const ce=E.reduce((te,ie)=>(te[ie]="function",te),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,i.validateObject)(Y,ce)},v.FpPow=S,v.FpInvertBatch=L,v.FpDiv=function(Y,ce,te){return Y.mul(ce,typeof te=="bigint"?Q(te,Y.ORDER):Y.inv(te))},v.FpIsSquare=function(Y){const ce=(Y.ORDER-B)/y;return te=>{const ie=Y.pow(te,ce);return Y.eql(ie,Y.ZERO)||Y.eql(ie,Y.ONE)}},v.nLength=K,v.Field=function(Y,ce,te=!1,ie={}){if(Y<=W)throw new Error(`Expected Fp ORDER > 0, got ${Y}`);const{nBitLength:he,nByteLength:Xe}=K(Y,ce);if(Xe>2048)throw new Error("Field lengths over 2048 bytes are not supported");const et=le(Y),Ge=Object.freeze({ORDER:Y,BITS:he,BYTES:Xe,MASK:(0,i.bitMask)(he),ZERO:W,ONE:B,create:Ze=>_(Ze,Y),isValid:Ze=>{if(typeof Ze!="bigint")throw new Error("Invalid field element: expected bigint, got "+typeof Ze);return W<=Ze&&Ze<Y},is0:Ze=>Ze===W,isOdd:Ze=>(Ze&B)===B,neg:Ze=>_(-Ze,Y),eql:(Ze,A)=>Ze===A,sqr:Ze=>_(Ze*Ze,Y),add:(Ze,A)=>_(Ze+A,Y),sub:(Ze,A)=>_(Ze-A,Y),mul:(Ze,A)=>_(Ze*A,Y),pow:(Ze,A)=>S(Ge,Ze,A),div:(Ze,A)=>_(Ze*Q(A,Y),Y),sqrN:Ze=>Ze*Ze,addN:(Ze,A)=>Ze+A,subN:(Ze,A)=>Ze-A,mulN:(Ze,A)=>Ze*A,inv:Ze=>Q(Ze,Y),sqrt:ie.sqrt||(Ze=>et(Ge,Ze)),invertBatch:Ze=>L(Ge,Ze),cmov:(Ze,A,N)=>N?A:Ze,toBytes:Ze=>te?(0,i.numberToBytesLE)(Ze,Xe):(0,i.numberToBytesBE)(Ze,Xe),fromBytes:Ze=>{if(Ze.length!==Xe)throw new Error(`Fp.fromBytes: expected ${Xe}, got ${Ze.length}`);return te?(0,i.bytesToNumberLE)(Ze):(0,i.bytesToNumberBE)(Ze)}});return Object.freeze(Ge)},v.FpSqrtOdd=function(Y,ce){if(!Y.isOdd)throw new Error("Field doesn't have isOdd");const te=Y.sqrt(ce);return Y.isOdd(te)?te:Y.neg(te)},v.FpSqrtEven=function(Y,ce){if(!Y.isOdd)throw new Error("Field doesn't have isOdd");const te=Y.sqrt(ce);return Y.isOdd(te)?Y.neg(te):te},v.hashToPrivateScalar=function(Y,ce,te=!1){const ie=(Y=(0,i.ensureBytes)("privateHash",Y)).length,he=K(ce).nByteLength+8;if(he<24||ie<he||ie>1024)throw new Error(`hashToPrivateScalar: expected ${he}-1024 bytes of input, got ${ie}`);return _(te?(0,i.bytesToNumberLE)(Y):(0,i.bytesToNumberBE)(Y),ce-B)+B}},219:(V,v)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.validateObject=v.createHmacDrbg=v.bitMask=v.bitSet=v.bitGet=v.bitLen=v.utf8ToBytes=v.equalBytes=v.concatBytes=v.ensureBytes=v.numberToVarBytesBE=v.numberToBytesLE=v.numberToBytesBE=v.bytesToNumberLE=v.bytesToNumberBE=v.hexToBytes=v.hexToNumber=v.numberToHexUnpadded=v.bytesToHex=void 0;const k=BigInt(0),i=BigInt(1),W=BigInt(2),B=le=>le instanceof Uint8Array,y=Array.from({length:256},(le,E)=>E.toString(16).padStart(2,"0"));function t(le){if(!B(le))throw new Error("Uint8Array expected");let E="";for(let S=0;S<le.length;S++)E+=y[le[S]];return E}function o(le){const E=le.toString(16);return 1&E.length?`0${E}`:E}function s(le){if(typeof le!="string")throw new Error("hex string expected, got "+typeof le);return BigInt(le===""?"0":`0x${le}`)}function G(le){if(typeof le!="string")throw new Error("hex string expected, got "+typeof le);if(le.length%2)throw new Error("hex string is invalid: unpadded "+le.length);const E=new Uint8Array(le.length/2);for(let S=0;S<E.length;S++){const L=2*S,K=le.slice(L,L+2),Y=Number.parseInt(K,16);if(Number.isNaN(Y)||Y<0)throw new Error("invalid byte sequence");E[S]=Y}return E}function _(...le){const E=new Uint8Array(le.reduce((L,K)=>L+K.length,0));let S=0;return le.forEach(L=>{if(!B(L))throw new Error("Uint8Array expected");E.set(L,S),S+=L.length}),E}v.bytesToHex=t,v.numberToHexUnpadded=o,v.hexToNumber=s,v.hexToBytes=G,v.bytesToNumberBE=function(le){return s(t(le))},v.bytesToNumberLE=function(le){if(!B(le))throw new Error("Uint8Array expected");return s(t(Uint8Array.from(le).reverse()))},v.numberToBytesBE=(le,E)=>G(le.toString(16).padStart(2*E,"0")),v.numberToBytesLE=(le,E)=>(0,v.numberToBytesBE)(le,E).reverse(),v.numberToVarBytesBE=le=>G(o(le)),v.ensureBytes=function(le,E,S){let L;if(typeof E=="string")try{L=G(E)}catch(Y){throw new Error(`${le} must be valid hex string, got "${E}". Cause: ${Y}`)}else{if(!B(E))throw new Error(`${le} must be hex string or Uint8Array`);L=Uint8Array.from(E)}const K=L.length;if(typeof S=="number"&&K!==S)throw new Error(`${le} expected ${S} bytes, got ${K}`);return L},v.concatBytes=_,v.equalBytes=function(le,E){if(le.length!==E.length)return!1;for(let S=0;S<le.length;S++)if(le[S]!==E[S])return!1;return!0},v.utf8ToBytes=function(le){if(typeof le!="string")throw new Error("utf8ToBytes expected string, got "+typeof le);return new TextEncoder().encode(le)},v.bitLen=function(le){let E;for(E=0;le>k;le>>=i,E+=1);return E},v.bitGet=(le,E)=>le>>BigInt(E)&i,v.bitSet=(le,E,S)=>le|(S?i:k)<<BigInt(E),v.bitMask=le=>(W<<BigInt(le-1))-i;const ee=le=>new Uint8Array(le),Q=le=>Uint8Array.from(le);v.createHmacDrbg=function(le,E,S){if(typeof le!="number"||le<2)throw new Error("hashLen must be a number");if(typeof E!="number"||E<2)throw new Error("qByteLen must be a number");if(typeof S!="function")throw new Error("hmacFn must be a function");let L=ee(le),K=ee(le),Y=0;const ce=()=>{L.fill(1),K.fill(0),Y=0},te=(...Xe)=>S(K,L,...Xe),ie=(Xe=ee())=>{K=te(Q([0]),Xe),L=te(),Xe.length!==0&&(K=te(Q([1]),Xe),L=te())},he=()=>{if(Y++>=1e3)throw new Error("drbg: tried 1000 values");let Xe=0;const et=[];for(;Xe<E;){L=te();const Ge=L.slice();et.push(Ge),Xe+=L.length}return _(...et)};return(Xe,et)=>{let Ge;for(ce(),ie(Xe);!(Ge=et(he()));)ie();return ce(),Ge}};const Ce={bigint:le=>typeof le=="bigint",function:le=>typeof le=="function",boolean:le=>typeof le=="boolean",string:le=>typeof le=="string",isSafeInteger:le=>Number.isSafeInteger(le),array:le=>Array.isArray(le),field:(le,E)=>E.Fp.isValid(le),hash:le=>typeof le=="function"&&Number.isSafeInteger(le.outputLen)};v.validateObject=function(le,E,S={}){const L=(K,Y,ce)=>{const te=Ce[Y];if(typeof te!="function")throw new Error(`Invalid validator "${Y}", expected function`);const ie=le[K];if(!(ce&&ie===void 0||te(ie,le)))throw new Error(`Invalid param ${String(K)}=${ie} (${typeof ie}), expected ${Y}`)};for(const[K,Y]of Object.entries(E))L(K,Y,!1);for(const[K,Y]of Object.entries(S))L(K,Y,!0);return le}},6551:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.mapToCurveSimpleSWU=v.SWUFpSqrtRatio=v.weierstrass=v.weierstrassPoints=v.DER=void 0;const i=k(4632),W=k(219),B=k(219),y=k(1525),{bytesToNumberBE:t,hexToBytes:o}=W;v.DER={Err:class extends Error{constructor(E=""){super(E)}},_parseInt(E){const{Err:S}=v.DER;if(E.length<2||E[0]!==2)throw new S("Invalid signature integer tag");const L=E[1],K=E.subarray(2,L+2);if(!L||K.length!==L)throw new S("Invalid signature integer: wrong length");if(128&K[0])throw new S("Invalid signature integer: negative");if(K[0]===0&&!(128&K[1]))throw new S("Invalid signature integer: unnecessary leading zero");return{d:t(K),l:E.subarray(L+2)}},toSig(E){const{Err:S}=v.DER,L=typeof E=="string"?o(E):E;if(!(L instanceof Uint8Array))throw new Error("ui8a expected");let K=L.length;if(K<2||L[0]!=48)throw new S("Invalid signature tag");if(L[1]!==K-2)throw new S("Invalid signature: incorrect length");const{d:Y,l:ce}=v.DER._parseInt(L.subarray(2)),{d:te,l:ie}=v.DER._parseInt(ce);if(ie.length)throw new S("Invalid signature: left bytes after parsing");return{r:Y,s:te}},hexFromSig(E){const S=Xe=>8&Number.parseInt(Xe[0],16)?"00"+Xe:Xe,L=Xe=>{const et=Xe.toString(16);return 1&et.length?`0${et}`:et},K=S(L(E.s)),Y=S(L(E.r)),ce=K.length/2,te=Y.length/2,ie=L(ce),he=L(te);return`30${L(te+ce+4)}02${he}${Y}02${ie}${K}`}};const s=BigInt(0),G=BigInt(1),_=BigInt(2),ee=BigInt(3),Q=BigInt(4);function Ce(E){const S=(function(N){const D=(0,y.validateBasic)(N);W.validateObject(D,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:F,Fp:P,a:R}=D;if(F){if(!P.eql(R,P.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof F!="object"||typeof F.beta!="bigint"||typeof F.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...D})})(E),{Fp:L}=S,K=S.toBytes||((N,D,F)=>{const P=D.toAffine();return W.concatBytes(Uint8Array.from([4]),L.toBytes(P.x),L.toBytes(P.y))}),Y=S.fromBytes||(N=>{const D=N.subarray(1);return{x:L.fromBytes(D.subarray(0,L.BYTES)),y:L.fromBytes(D.subarray(L.BYTES,2*L.BYTES))}});function ce(N){const{a:D,b:F}=S,P=L.sqr(N),R=L.mul(P,N);return L.add(L.add(R,L.mul(N,D)),F)}if(!L.eql(L.sqr(S.Gy),ce(S.Gx)))throw new Error("bad generator point: equation left != right");function te(N){return typeof N=="bigint"&&s<N&&N<S.n}function ie(N){if(!te(N))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function he(N){const{allowedPrivateKeyLengths:D,nByteLength:F,wrapPrivateKey:P,n:R}=S;if(D&&typeof N!="bigint"){if(N instanceof Uint8Array&&(N=W.bytesToHex(N)),typeof N!="string"||!D.includes(N.length))throw new Error("Invalid key");N=N.padStart(2*F,"0")}let oe;try{oe=typeof N=="bigint"?N:W.bytesToNumberBE((0,B.ensureBytes)("private key",N,F))}catch{throw new Error(`private key must be ${F} bytes, hex or bigint, not ${typeof N}`)}return P&&(oe=i.mod(oe,R)),ie(oe),oe}const Xe=new Map;function et(N){if(!(N instanceof Ge))throw new Error("ProjectivePoint expected")}class Ge{constructor(D,F,P){if(this.px=D,this.py=F,this.pz=P,D==null||!L.isValid(D))throw new Error("x required");if(F==null||!L.isValid(F))throw new Error("y required");if(P==null||!L.isValid(P))throw new Error("z required")}static fromAffine(D){const{x:F,y:P}=D||{};if(!D||!L.isValid(F)||!L.isValid(P))throw new Error("invalid affine point");if(D instanceof Ge)throw new Error("projective point not allowed");const R=oe=>L.eql(oe,L.ZERO);return R(F)&&R(P)?Ge.ZERO:new Ge(F,P,L.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(D){const F=L.invertBatch(D.map(P=>P.pz));return D.map((P,R)=>P.toAffine(F[R])).map(Ge.fromAffine)}static fromHex(D){const F=Ge.fromAffine(Y((0,B.ensureBytes)("pointHex",D)));return F.assertValidity(),F}static fromPrivateKey(D){return Ge.BASE.multiply(he(D))}_setWindowSize(D){this._WINDOW_SIZE=D,Xe.delete(this)}assertValidity(){if(this.is0()){if(S.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:D,y:F}=this.toAffine();if(!L.isValid(D)||!L.isValid(F))throw new Error("bad point: x or y not FE");const P=L.sqr(F),R=ce(D);if(!L.eql(P,R))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:D}=this.toAffine();if(L.isOdd)return!L.isOdd(D);throw new Error("Field doesn't support isOdd")}equals(D){et(D);const{px:F,py:P,pz:R}=this,{px:oe,py:Te,pz:C}=D,ue=L.eql(L.mul(F,C),L.mul(oe,R)),We=L.eql(L.mul(P,C),L.mul(Te,R));return ue&&We}negate(){return new Ge(this.px,L.neg(this.py),this.pz)}double(){const{a:D,b:F}=S,P=L.mul(F,ee),{px:R,py:oe,pz:Te}=this;let C=L.ZERO,ue=L.ZERO,We=L.ZERO,ge=L.mul(R,R),Ie=L.mul(oe,oe),ze=L.mul(Te,Te),$e=L.mul(R,oe);return $e=L.add($e,$e),We=L.mul(R,Te),We=L.add(We,We),C=L.mul(D,We),ue=L.mul(P,ze),ue=L.add(C,ue),C=L.sub(Ie,ue),ue=L.add(Ie,ue),ue=L.mul(C,ue),C=L.mul($e,C),We=L.mul(P,We),ze=L.mul(D,ze),$e=L.sub(ge,ze),$e=L.mul(D,$e),$e=L.add($e,We),We=L.add(ge,ge),ge=L.add(We,ge),ge=L.add(ge,ze),ge=L.mul(ge,$e),ue=L.add(ue,ge),ze=L.mul(oe,Te),ze=L.add(ze,ze),ge=L.mul(ze,$e),C=L.sub(C,ge),We=L.mul(ze,Ie),We=L.add(We,We),We=L.add(We,We),new Ge(C,ue,We)}add(D){et(D);const{px:F,py:P,pz:R}=this,{px:oe,py:Te,pz:C}=D;let ue=L.ZERO,We=L.ZERO,ge=L.ZERO;const Ie=S.a,ze=L.mul(S.b,ee);let $e=L.mul(F,oe),nt=L.mul(P,Te),ut=L.mul(R,C),ft=L.add(F,P),pt=L.add(oe,Te);ft=L.mul(ft,pt),pt=L.add($e,nt),ft=L.sub(ft,pt),pt=L.add(F,R);let Lt=L.add(oe,C);return pt=L.mul(pt,Lt),Lt=L.add($e,ut),pt=L.sub(pt,Lt),Lt=L.add(P,R),ue=L.add(Te,C),Lt=L.mul(Lt,ue),ue=L.add(nt,ut),Lt=L.sub(Lt,ue),ge=L.mul(Ie,pt),ue=L.mul(ze,ut),ge=L.add(ue,ge),ue=L.sub(nt,ge),ge=L.add(nt,ge),We=L.mul(ue,ge),nt=L.add($e,$e),nt=L.add(nt,$e),ut=L.mul(Ie,ut),pt=L.mul(ze,pt),nt=L.add(nt,ut),ut=L.sub($e,ut),ut=L.mul(Ie,ut),pt=L.add(pt,ut),$e=L.mul(nt,pt),We=L.add(We,$e),$e=L.mul(Lt,pt),ue=L.mul(ft,ue),ue=L.sub(ue,$e),$e=L.mul(ft,nt),ge=L.mul(Lt,ge),ge=L.add(ge,$e),new Ge(ue,We,ge)}subtract(D){return this.add(D.negate())}is0(){return this.equals(Ge.ZERO)}wNAF(D){return A.wNAFCached(this,Xe,D,F=>{const P=L.invertBatch(F.map(R=>R.pz));return F.map((R,oe)=>R.toAffine(P[oe])).map(Ge.fromAffine)})}multiplyUnsafe(D){const F=Ge.ZERO;if(D===s)return F;if(ie(D),D===G)return this;const{endo:P}=S;if(!P)return A.unsafeLadder(this,D);let{k1neg:R,k1:oe,k2neg:Te,k2:C}=P.splitScalar(D),ue=F,We=F,ge=this;for(;oe>s||C>s;)oe&G&&(ue=ue.add(ge)),C&G&&(We=We.add(ge)),ge=ge.double(),oe>>=G,C>>=G;return R&&(ue=ue.negate()),Te&&(We=We.negate()),We=new Ge(L.mul(We.px,P.beta),We.py,We.pz),ue.add(We)}multiply(D){ie(D);let F,P,R=D;const{endo:oe}=S;if(oe){const{k1neg:Te,k1:C,k2neg:ue,k2:We}=oe.splitScalar(R);let{p:ge,f:Ie}=this.wNAF(C),{p:ze,f:$e}=this.wNAF(We);ge=A.constTimeNegate(Te,ge),ze=A.constTimeNegate(ue,ze),ze=new Ge(L.mul(ze.px,oe.beta),ze.py,ze.pz),F=ge.add(ze),P=Ie.add($e)}else{const{p:Te,f:C}=this.wNAF(R);F=Te,P=C}return Ge.normalizeZ([F,P])[0]}multiplyAndAddUnsafe(D,F,P){const R=Ge.BASE,oe=(C,ue)=>ue!==s&&ue!==G&&C.equals(R)?C.multiply(ue):C.multiplyUnsafe(ue),Te=oe(this,F).add(oe(D,P));return Te.is0()?void 0:Te}toAffine(D){const{px:F,py:P,pz:R}=this,oe=this.is0();D==null&&(D=oe?L.ONE:L.inv(R));const Te=L.mul(F,D),C=L.mul(P,D),ue=L.mul(R,D);if(oe)return{x:L.ZERO,y:L.ZERO};if(!L.eql(ue,L.ONE))throw new Error("invZ was invalid");return{x:Te,y:C}}isTorsionFree(){const{h:D,isTorsionFree:F}=S;if(D===G)return!0;if(F)return F(Ge,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:D,clearCofactor:F}=S;return D===G?this:F?F(Ge,this):this.multiplyUnsafe(S.h)}toRawBytes(D=!0){return this.assertValidity(),K(Ge,this,D)}toHex(D=!0){return W.bytesToHex(this.toRawBytes(D))}}Ge.BASE=new Ge(S.Gx,S.Gy,L.ONE),Ge.ZERO=new Ge(L.ZERO,L.ONE,L.ZERO);const Ze=S.nBitLength,A=(0,y.wNAF)(Ge,S.endo?Math.ceil(Ze/2):Ze);return{CURVE:S,ProjectivePoint:Ge,normPrivateKeyToScalar:he,weierstrassEquation:ce,isWithinCurveOrder:te}}function le(E,S){const L=E.ORDER;let K=s;for(let Ze=L-G;Ze%_===s;Ze/=_)K+=G;const Y=K,ce=(L-G)/_**Y,te=(ce-G)/_,ie=_**Y-G,he=_**(Y-G),Xe=E.pow(S,ce),et=E.pow(S,(ce+G)/_);let Ge=(Ze,A)=>{let N=Xe,D=E.pow(A,ie),F=E.sqr(D);F=E.mul(F,A);let P=E.mul(Ze,F);P=E.pow(P,te),P=E.mul(P,D),D=E.mul(P,A),F=E.mul(P,Ze);let R=E.mul(F,D);P=E.pow(R,he);let oe=E.eql(P,E.ONE);D=E.mul(F,et),P=E.mul(R,N),F=E.cmov(D,F,oe),R=E.cmov(P,R,oe);for(let Te=Y;Te>G;Te--){let C=_**(Te-_),ue=E.pow(R,C);const We=E.eql(ue,E.ONE);D=E.mul(F,N),N=E.mul(N,N),ue=E.mul(R,N),F=E.cmov(D,F,We),R=E.cmov(ue,R,We)}return{isValid:oe,value:F}};if(E.ORDER%Q===ee){const Ze=(E.ORDER-ee)/Q,A=E.sqrt(E.neg(S));Ge=(N,D)=>{let F=E.sqr(D);const P=E.mul(N,D);F=E.mul(F,P);let R=E.pow(F,Ze);R=E.mul(R,P);const oe=E.mul(R,A),Te=E.mul(E.sqr(R),D),C=E.eql(Te,N);return{isValid:C,value:E.cmov(oe,R,C)}}}return Ge}v.weierstrassPoints=Ce,v.weierstrass=function(E){const S=(function(ge){const Ie=(0,y.validateBasic)(ge);return W.validateObject(Ie,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...Ie})})(E),{Fp:L,n:K}=S,Y=L.BYTES+1,ce=2*L.BYTES+1;function te(ge){return i.mod(ge,K)}function ie(ge){return i.invert(ge,K)}const{ProjectivePoint:he,normPrivateKeyToScalar:Xe,weierstrassEquation:et,isWithinCurveOrder:Ge}=Ce({...S,toBytes(ge,Ie,ze){const $e=Ie.toAffine(),nt=L.toBytes($e.x),ut=W.concatBytes;return ze?ut(Uint8Array.from([Ie.hasEvenY()?2:3]),nt):ut(Uint8Array.from([4]),nt,L.toBytes($e.y))},fromBytes(ge){const Ie=ge.length,ze=ge[0],$e=ge.subarray(1);if(Ie!==Y||ze!==2&&ze!==3){if(Ie===ce&&ze===4)return{x:L.fromBytes($e.subarray(0,L.BYTES)),y:L.fromBytes($e.subarray(L.BYTES,2*L.BYTES))};throw new Error(`Point of length ${Ie} was invalid. Expected ${Y} compressed bytes or ${ce} uncompressed bytes`)}{const ut=W.bytesToNumberBE($e);if(!(s<(nt=ut)&&nt<L.ORDER))throw new Error("Point is not on curve");const ft=et(ut);let pt=L.sqrt(ft);return(1&ze)==1!=((pt&G)===G)&&(pt=L.neg(pt)),{x:ut,y:pt}}var nt}}),Ze=ge=>W.bytesToHex(W.numberToBytesBE(ge,S.nByteLength));function A(ge){return ge>K>>G}const N=(ge,Ie,ze)=>W.bytesToNumberBE(ge.slice(Ie,ze));class D{constructor(Ie,ze,$e){this.r=Ie,this.s=ze,this.recovery=$e,this.assertValidity()}static fromCompact(Ie){const ze=S.nByteLength;return Ie=(0,B.ensureBytes)("compactSignature",Ie,2*ze),new D(N(Ie,0,ze),N(Ie,ze,2*ze))}static fromDER(Ie){const{r:ze,s:$e}=v.DER.toSig((0,B.ensureBytes)("DER",Ie));return new D(ze,$e)}assertValidity(){if(!Ge(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!Ge(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(Ie){return new D(this.r,this.s,Ie)}recoverPublicKey(Ie){const{r:ze,s:$e,recovery:nt}=this,ut=oe((0,B.ensureBytes)("msgHash",Ie));if(nt==null||![0,1,2,3].includes(nt))throw new Error("recovery id invalid");const ft=nt===2||nt===3?ze+S.n:ze;if(ft>=L.ORDER)throw new Error("recovery id 2 or 3 invalid");const pt=1&nt?"03":"02",Lt=he.fromHex(pt+Ze(ft)),$t=ie(ft),It=te(-ut*$t),br=te($e*$t),ct=he.BASE.multiplyAndAddUnsafe(Lt,It,br);if(!ct)throw new Error("point at infinify");return ct.assertValidity(),ct}hasHighS(){return A(this.s)}normalizeS(){return this.hasHighS()?new D(this.r,te(-this.s),this.recovery):this}toDERRawBytes(){return W.hexToBytes(this.toDERHex())}toDERHex(){return v.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return W.hexToBytes(this.toCompactHex())}toCompactHex(){return Ze(this.r)+Ze(this.s)}}const F={isValidPrivateKey(ge){try{return Xe(ge),!0}catch{return!1}},normPrivateKeyToScalar:Xe,randomPrivateKey:()=>{const ge=S.randomBytes(L.BYTES+8),Ie=i.hashToPrivateScalar(ge,K);return W.numberToBytesBE(Ie,S.nByteLength)},precompute:(ge=8,Ie=he.BASE)=>(Ie._setWindowSize(ge),Ie.multiply(BigInt(3)),Ie)};function P(ge){const Ie=ge instanceof Uint8Array,ze=typeof ge=="string",$e=(Ie||ze)&&ge.length;return Ie?$e===Y||$e===ce:ze?$e===2*Y||$e===2*ce:ge instanceof he}const R=S.bits2int||function(ge){const Ie=W.bytesToNumberBE(ge),ze=8*ge.length-S.nBitLength;return ze>0?Ie>>BigInt(ze):Ie},oe=S.bits2int_modN||function(ge){return te(R(ge))},Te=W.bitMask(S.nBitLength);function C(ge){if(typeof ge!="bigint")throw new Error("bigint expected");if(!(s<=ge&&ge<Te))throw new Error(`bigint expected < 2^${S.nBitLength}`);return W.numberToBytesBE(ge,S.nByteLength)}const ue={lowS:S.lowS,prehash:!1},We={lowS:S.lowS,prehash:!1};return he.BASE._setWindowSize(8),{CURVE:S,getPublicKey:function(ge,Ie=!0){return he.fromPrivateKey(ge).toRawBytes(Ie)},getSharedSecret:function(ge,Ie,ze=!0){if(P(ge))throw new Error("first arg must be private key");if(!P(Ie))throw new Error("second arg must be public key");return he.fromHex(Ie).multiply(Xe(ge)).toRawBytes(ze)},sign:function(ge,Ie,ze=ue){const{seed:$e,k2sig:nt}=(function(ut,ft,pt=ue){if(["recovered","canonical"].some(qt=>qt in pt))throw new Error("sign() legacy options not supported");const{hash:Lt,randomBytes:$t}=S;let{lowS:It,prehash:br,extraEntropy:ct}=pt;It==null&&(It=!0),ut=(0,B.ensureBytes)("msgHash",ut),br&&(ut=(0,B.ensureBytes)("prehashed msgHash",Lt(ut)));const Ht=oe(ut),kr=Xe(ft),Ft=[C(kr),C(Ht)];if(ct!=null){const qt=ct===!0?$t(L.BYTES):ct;Ft.push((0,B.ensureBytes)("extraEntropy",qt,L.BYTES))}const Kt=W.concatBytes(...Ft),Pr=Ht;return{seed:Kt,k2sig:function(qt){const He=R(qt);if(!Ge(He))return;const De=ie(He),Yt=he.BASE.multiply(He).toAffine(),Zt=te(Yt.x);if(Zt===s)return;const se=te(De*te(Pr+Zt*kr));if(se===s)return;let zt=(Yt.x===Zt?0:2)|Number(Yt.y&G),Ct=se;return It&&A(se)&&(Ct=(function(xt){return A(xt)?te(-xt):xt})(se),zt^=1),new D(Zt,Ct,zt)}}})(ge,Ie,ze);return W.createHmacDrbg(S.hash.outputLen,S.nByteLength,S.hmac)($e,nt)},verify:function(ge,Ie,ze,$e=We){var nt;const ut=ge;if(Ie=(0,B.ensureBytes)("msgHash",Ie),ze=(0,B.ensureBytes)("publicKey",ze),"strict"in $e)throw new Error("options.strict was renamed to lowS");const{lowS:ft,prehash:pt}=$e;let Lt,$t;try{if(typeof ut=="string"||ut instanceof Uint8Array)try{Lt=D.fromDER(ut)}catch(Pr){if(!(Pr instanceof v.DER.Err))throw Pr;Lt=D.fromCompact(ut)}else{if(typeof ut!="object"||typeof ut.r!="bigint"||typeof ut.s!="bigint")throw new Error("PARSE");{const{r:Pr,s:qt}=ut;Lt=new D(Pr,qt)}}$t=he.fromHex(ze)}catch(Pr){if(Pr.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(ft&&Lt.hasHighS())return!1;pt&&(Ie=S.hash(Ie));const{r:It,s:br}=Lt,ct=oe(Ie),Ht=ie(br),kr=te(ct*Ht),Ft=te(It*Ht),Kt=(nt=he.BASE.multiplyAndAddUnsafe($t,kr,Ft))==null?void 0:nt.toAffine();return!!Kt&&te(Kt.x)===It},ProjectivePoint:he,Signature:D,utils:F}},v.SWUFpSqrtRatio=le,v.mapToCurveSimpleSWU=function(E,S){if(i.validateField(E),!E.isValid(S.A)||!E.isValid(S.B)||!E.isValid(S.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const L=le(E,S.Z);if(!E.isOdd)throw new Error("Fp.isOdd is not implemented!");return K=>{let Y,ce,te,ie,he,Xe,et,Ge;Y=E.sqr(K),Y=E.mul(Y,S.Z),ce=E.sqr(Y),ce=E.add(ce,Y),te=E.add(ce,E.ONE),te=E.mul(te,S.B),ie=E.cmov(S.Z,E.neg(ce),!E.eql(ce,E.ZERO)),ie=E.mul(ie,S.A),ce=E.sqr(te),Xe=E.sqr(ie),he=E.mul(Xe,S.A),ce=E.add(ce,he),ce=E.mul(ce,te),Xe=E.mul(Xe,ie),he=E.mul(Xe,S.B),ce=E.add(ce,he),et=E.mul(Y,te);const{isValid:Ze,value:A}=L(ce,Xe);Ge=E.mul(Y,K),Ge=E.mul(Ge,A),et=E.cmov(et,te,Ze),Ge=E.cmov(Ge,A,Ze);const N=E.isOdd(K)===E.isOdd(Ge);return Ge=E.cmov(E.neg(Ge),Ge,N),et=E.div(et,ie),{x:et,y:Ge}}}},3150:(V,v)=>{function k(s){if(!Number.isSafeInteger(s)||s<0)throw new Error(`Wrong positive integer: ${s}`)}function i(s){if(typeof s!="boolean")throw new Error(`Expected boolean, not ${s}`)}function W(s,...G){if(!(s instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(G.length>0&&!G.includes(s.length))throw new TypeError(`Expected Uint8Array of length ${G}, not of length=${s.length}`)}function B(s){if(typeof s!="function"||typeof s.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");k(s.outputLen),k(s.blockLen)}function y(s,G=!0){if(s.destroyed)throw new Error("Hash instance has been destroyed");if(G&&s.finished)throw new Error("Hash#digest() has already been called")}function t(s,G){W(s);const _=G.outputLen;if(s.length<_)throw new Error(`digestInto() expects output buffer of length at least ${_}`)}Object.defineProperty(v,"__esModule",{value:!0}),v.output=v.exists=v.hash=v.bytes=v.bool=v.number=void 0,v.number=k,v.bool=i,v.bytes=W,v.hash=B,v.exists=y,v.output=t;const o={number:k,bool:i,bytes:W,hash:B,exists:y,output:t};v.default=o},8783:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.SHA2=void 0;const i=k(3150),W=k(1717);class B extends W.Hash{constructor(t,o,s,G){super(),this.blockLen=t,this.outputLen=o,this.padOffset=s,this.isLE=G,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,W.createView)(this.buffer)}update(t){i.default.exists(this);const{view:o,buffer:s,blockLen:G}=this,_=(t=(0,W.toBytes)(t)).length;for(let ee=0;ee<_;){const Q=Math.min(G-this.pos,_-ee);if(Q!==G)s.set(t.subarray(ee,ee+Q),this.pos),this.pos+=Q,ee+=Q,this.pos===G&&(this.process(o,0),this.pos=0);else{const Ce=(0,W.createView)(t);for(;G<=_-ee;ee+=G)this.process(Ce,ee)}}return this.length+=t.length,this.roundClean(),this}digestInto(t){i.default.exists(this),i.default.output(t,this),this.finished=!0;const{buffer:o,view:s,blockLen:G,isLE:_}=this;let{pos:ee}=this;o[ee++]=128,this.buffer.subarray(ee).fill(0),this.padOffset>G-ee&&(this.process(s,0),ee=0);for(let S=ee;S<G;S++)o[S]=0;(function(S,L,K,Y){if(typeof S.setBigUint64=="function")return S.setBigUint64(L,K,Y);const ce=BigInt(32),te=BigInt(4294967295),ie=Number(K>>ce&te),he=Number(K&te),Xe=Y?4:0,et=Y?0:4;S.setUint32(L+Xe,ie,Y),S.setUint32(L+et,he,Y)})(s,G-8,BigInt(8*this.length),_),this.process(s,0);const Q=(0,W.createView)(t),Ce=this.outputLen;if(Ce%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const le=Ce/4,E=this.get();if(le>E.length)throw new Error("_sha2: outputLen bigger than state");for(let S=0;S<le;S++)Q.setUint32(4*S,E[S],_)}digest(){const{buffer:t,outputLen:o}=this;this.digestInto(t);const s=t.slice(0,o);return this.destroy(),s}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:o,buffer:s,length:G,finished:_,destroyed:ee,pos:Q}=this;return t.length=G,t.pos=Q,t.finished=_,t.destroyed=ee,G%o&&t.buffer.set(s),t}}v.SHA2=B},7564:(V,v)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.crypto=void 0,v.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0},1128:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.hmac=void 0;const i=k(3150),W=k(1717);class B extends W.Hash{constructor(t,o){super(),this.finished=!1,this.destroyed=!1,i.default.hash(t);const s=(0,W.toBytes)(o);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const G=this.blockLen,_=new Uint8Array(G);_.set(s.length>G?t.create().update(s).digest():s);for(let ee=0;ee<_.length;ee++)_[ee]^=54;this.iHash.update(_),this.oHash=t.create();for(let ee=0;ee<_.length;ee++)_[ee]^=106;this.oHash.update(_),_.fill(0)}update(t){return i.default.exists(this),this.iHash.update(t),this}digestInto(t){i.default.exists(this),i.default.bytes(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:o,iHash:s,finished:G,destroyed:_,blockLen:ee,outputLen:Q}=this;return t.finished=G,t.destroyed=_,t.blockLen=ee,t.outputLen=Q,t.oHash=o._cloneInto(t.oHash),t.iHash=s._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}v.hmac=(y,t,o)=>new B(y,t).update(o).digest(),v.hmac.create=(y,t)=>new B(y,t)},7968:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.sha224=v.sha256=void 0;const i=k(8783),W=k(1717),B=(_,ee,Q)=>_&ee^_&Q^ee&Q,y=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),o=new Uint32Array(64);class s extends i.SHA2{constructor(){super(64,32,8,!1),this.A=0|t[0],this.B=0|t[1],this.C=0|t[2],this.D=0|t[3],this.E=0|t[4],this.F=0|t[5],this.G=0|t[6],this.H=0|t[7]}get(){const{A:ee,B:Q,C:Ce,D:le,E,F:S,G:L,H:K}=this;return[ee,Q,Ce,le,E,S,L,K]}set(ee,Q,Ce,le,E,S,L,K){this.A=0|ee,this.B=0|Q,this.C=0|Ce,this.D=0|le,this.E=0|E,this.F=0|S,this.G=0|L,this.H=0|K}process(ee,Q){for(let ie=0;ie<16;ie++,Q+=4)o[ie]=ee.getUint32(Q,!1);for(let ie=16;ie<64;ie++){const he=o[ie-15],Xe=o[ie-2],et=(0,W.rotr)(he,7)^(0,W.rotr)(he,18)^he>>>3,Ge=(0,W.rotr)(Xe,17)^(0,W.rotr)(Xe,19)^Xe>>>10;o[ie]=Ge+o[ie-7]+et+o[ie-16]|0}let{A:Ce,B:le,C:E,D:S,E:L,F:K,G:Y,H:ce}=this;for(let ie=0;ie<64;ie++){const he=ce+((0,W.rotr)(L,6)^(0,W.rotr)(L,11)^(0,W.rotr)(L,25))+((te=L)&K^~te&Y)+y[ie]+o[ie]|0,Xe=((0,W.rotr)(Ce,2)^(0,W.rotr)(Ce,13)^(0,W.rotr)(Ce,22))+B(Ce,le,E)|0;ce=Y,Y=K,K=L,L=S+he|0,S=E,E=le,le=Ce,Ce=he+Xe|0}var te;Ce=Ce+this.A|0,le=le+this.B|0,E=E+this.C|0,S=S+this.D|0,L=L+this.E|0,K=K+this.F|0,Y=Y+this.G|0,ce=ce+this.H|0,this.set(Ce,le,E,S,L,K,Y,ce)}roundClean(){o.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class G extends s{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}v.sha256=(0,W.wrapConstructor)(()=>new s),v.sha224=(0,W.wrapConstructor)(()=>new G)},1717:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.randomBytes=v.wrapConstructorWithOpts=v.wrapConstructor=v.checkOpts=v.Hash=v.concatBytes=v.toBytes=v.utf8ToBytes=v.asyncLoop=v.nextTick=v.hexToBytes=v.bytesToHex=v.isLE=v.rotr=v.createView=v.u32=v.u8=void 0;const i=k(7564);if(v.u8=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength),v.u32=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),v.createView=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),v.rotr=(t,o)=>t<<32-o|t>>>o,v.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!v.isLE)throw new Error("Non little-endian hardware is not supported");const W=Array.from({length:256},(t,o)=>o.toString(16).padStart(2,"0"));function B(t){if(typeof t!="string")throw new TypeError("utf8ToBytes expected string, got "+typeof t);return new TextEncoder().encode(t)}function y(t){if(typeof t=="string"&&(t=B(t)),!(t instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof t})`);return t}v.bytesToHex=function(t){if(!(t instanceof Uint8Array))throw new Error("Uint8Array expected");let o="";for(let s=0;s<t.length;s++)o+=W[t[s]];return o},v.hexToBytes=function(t){if(typeof t!="string")throw new TypeError("hexToBytes: expected string, got "+typeof t);if(t.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const o=new Uint8Array(t.length/2);for(let s=0;s<o.length;s++){const G=2*s,_=t.slice(G,G+2),ee=Number.parseInt(_,16);if(Number.isNaN(ee)||ee<0)throw new Error("Invalid byte sequence");o[s]=ee}return o},v.nextTick=async()=>{},v.asyncLoop=async function(t,o,s){let G=Date.now();for(let _=0;_<t;_++){s(_);const ee=Date.now()-G;ee>=0&&ee<o||(await(0,v.nextTick)(),G+=ee)}},v.utf8ToBytes=B,v.toBytes=y,v.concatBytes=function(...t){if(!t.every(G=>G instanceof Uint8Array))throw new Error("Uint8Array list expected");if(t.length===1)return t[0];const o=t.reduce((G,_)=>G+_.length,0),s=new Uint8Array(o);for(let G=0,_=0;G<t.length;G++){const ee=t[G];s.set(ee,_),_+=ee.length}return s},v.Hash=class{clone(){return this._cloneInto()}},v.checkOpts=function(t,o){if(o!==void 0&&(typeof o!="object"||(s=o,Object.prototype.toString.call(s)!=="[object Object]"||s.constructor!==Object)))throw new TypeError("Options should be object or undefined");var s;return Object.assign(t,o)},v.wrapConstructor=function(t){const o=G=>t().update(y(G)).digest(),s=t();return o.outputLen=s.outputLen,o.blockLen=s.blockLen,o.create=()=>t(),o},v.wrapConstructorWithOpts=function(t){const o=(G,_)=>t(_).update(y(G)).digest(),s=t({});return o.outputLen=s.outputLen,o.blockLen=s.blockLen,o.create=G=>t(G),o},v.randomBytes=function(t=32){if(i.crypto&&typeof i.crypto.getRandomValues=="function")return i.crypto.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}},3497:(V,v,k)=>{var i;Object.defineProperty(v,"__esModule",{value:!0}),v.encodeToCurve=v.hashToCurve=v.schnorr=v.secp256k1=void 0;const W=k(7968),B=k(1717),y=k(4632),t=k(6551),o=k(219),s=k(5134),G=k(9082),_=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),ee=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Q=BigInt(1),Ce=BigInt(2),le=(oe,Te)=>(oe+Te/Ce)/Te;function E(oe){const Te=_,C=BigInt(3),ue=BigInt(6),We=BigInt(11),ge=BigInt(22),Ie=BigInt(23),ze=BigInt(44),$e=BigInt(88),nt=oe*oe*oe%Te,ut=nt*nt*oe%Te,ft=(0,y.pow2)(ut,C,Te)*ut%Te,pt=(0,y.pow2)(ft,C,Te)*ut%Te,Lt=(0,y.pow2)(pt,Ce,Te)*nt%Te,$t=(0,y.pow2)(Lt,We,Te)*Lt%Te,It=(0,y.pow2)($t,ge,Te)*$t%Te,br=(0,y.pow2)(It,ze,Te)*It%Te,ct=(0,y.pow2)(br,$e,Te)*br%Te,Ht=(0,y.pow2)(ct,ze,Te)*It%Te,kr=(0,y.pow2)(Ht,C,Te)*ut%Te,Ft=(0,y.pow2)(kr,Ie,Te)*$t%Te,Kt=(0,y.pow2)(Ft,ue,Te)*nt%Te,Pr=(0,y.pow2)(Kt,Ce,Te);if(!S.eql(S.sqr(Pr),oe))throw new Error("Cannot find square root");return Pr}const S=(0,y.Field)(_,void 0,void 0,{sqrt:E});v.secp256k1=(0,G.createCurve)({a:BigInt(0),b:BigInt(7),Fp:S,n:ee,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:oe=>{const Te=ee,C=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),ue=-Q*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),We=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ge=C,Ie=BigInt("0x100000000000000000000000000000000"),ze=le(ge*oe,Te),$e=le(-ue*oe,Te);let nt=(0,y.mod)(oe-ze*C-$e*We,Te),ut=(0,y.mod)(-ze*ue-$e*ge,Te);const ft=nt>Ie,pt=ut>Ie;if(ft&&(nt=Te-nt),pt&&(ut=Te-ut),nt>Ie||ut>Ie)throw new Error("splitScalar: Endomorphism failed, k="+oe);return{k1neg:ft,k1:nt,k2neg:pt,k2:ut}}}},W.sha256);const L=BigInt(0),K=oe=>typeof oe=="bigint"&&L<oe&&oe<_,Y=oe=>typeof oe=="bigint"&&L<oe&&oe<ee,ce={};function te(oe,...Te){let C=ce[oe];if(C===void 0){const ue=(0,W.sha256)(Uint8Array.from(oe,We=>We.charCodeAt(0)));C=(0,o.concatBytes)(ue,ue),ce[oe]=C}return(0,W.sha256)((0,o.concatBytes)(C,...Te))}const ie=oe=>oe.toRawBytes(!0).slice(1),he=oe=>(0,o.numberToBytesBE)(oe,32),Xe=oe=>(0,y.mod)(oe,_),et=oe=>(0,y.mod)(oe,ee),Ge=v.secp256k1.ProjectivePoint,Ze=(oe,Te,C)=>Ge.BASE.multiplyAndAddUnsafe(oe,Te,C);function A(oe){let Te=v.secp256k1.utils.normPrivateKeyToScalar(oe),C=Ge.fromPrivateKey(Te);return{scalar:C.hasEvenY()?Te:et(-Te),bytes:ie(C)}}function N(oe){if(!K(oe))throw new Error("bad x: need 0 < x < p");const Te=Xe(oe*oe);let C=E(Xe(Te*oe+BigInt(7)));C%Ce!==L&&(C=Xe(-C));const ue=new Ge(oe,C,Q);return ue.assertValidity(),ue}function D(...oe){return et((0,o.bytesToNumberBE)(te("BIP0340/challenge",...oe)))}function F(oe,Te,C){const ue=(0,o.ensureBytes)("signature",oe,64),We=(0,o.ensureBytes)("message",Te),ge=(0,o.ensureBytes)("publicKey",C,32);try{const Ie=N((0,o.bytesToNumberBE)(ge)),ze=(0,o.bytesToNumberBE)(ue.subarray(0,32));if(!K(ze))return!1;const $e=(0,o.bytesToNumberBE)(ue.subarray(32,64));if(!Y($e))return!1;const nt=D(he(ze),ie(Ie),We),ut=Ze(Ie,$e,et(-nt));return!(!ut||!ut.hasEvenY()||ut.toAffine().x!==ze)}catch{return!1}}v.schnorr={getPublicKey:function(oe){return A(oe).bytes},sign:function(oe,Te,C=(0,B.randomBytes)(32)){const ue=(0,o.ensureBytes)("message",oe),{bytes:We,scalar:ge}=A(Te),Ie=(0,o.ensureBytes)("auxRand",C,32),ze=he(ge^(0,o.bytesToNumberBE)(te("BIP0340/aux",Ie))),$e=te("BIP0340/nonce",ze,We,ue),nt=et((0,o.bytesToNumberBE)($e));if(nt===L)throw new Error("sign failed: k is zero");const{bytes:ut,scalar:ft}=A(nt),pt=D(ut,We,ue),Lt=new Uint8Array(64);if(Lt.set(ut,0),Lt.set(he(et(ft+pt*ge)),32),!F(Lt,ue,We))throw new Error("sign: Invalid signature produced");return Lt},verify:F,utils:{randomPrivateKey:v.secp256k1.utils.randomPrivateKey,lift_x:N,pointToBytes:ie,numberToBytesBE:o.numberToBytesBE,bytesToNumberBE:o.bytesToNumberBE,taggedHash:te,mod:y.mod}};const P=s.isogenyMap(S,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(oe=>oe.map(Te=>BigInt(Te)))),R=(0,t.mapToCurveSimpleSWU)(S,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:S.create(BigInt("-11"))});i=s.createHasher(v.secp256k1.ProjectivePoint,oe=>{const{x:Te,y:C}=R(S.create(oe[0]));return P(Te,C)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:S.ORDER,m:1,k:128,expand:"xmd",hash:W.sha256}),v.hashToCurve=i.hashToCurve,v.encodeToCurve=i.encodeToCurve},5595:function(V,v,k){var i=typeof Object.defineProperties=="function"?Object.defineProperty:function(f,m,T){f!=Array.prototype&&f!=Object.prototype&&(f[m]=T.value)},W=typeof window<"u"&&window===this?this:k.g!==void 0&&k.g!=null?k.g:this;function B(){B=function(){},W.Symbol||(W.Symbol=o)}function y(f,m){this.a=f,i(this,"description",{configurable:!0,writable:!0,value:m})}y.prototype.toString=function(){return this.a};var t,o=(t=0,function f(m){if(this instanceof f)throw new TypeError("Symbol is not a constructor");return new y("jscomp_symbol_"+(m||"")+"_"+t++,m)});function s(){B();var f=W.Symbol.iterator;f||(f=W.Symbol.iterator=W.Symbol("Symbol.iterator")),typeof Array.prototype[f]!="function"&&i(Array.prototype,f,{configurable:!0,writable:!0,value:function(){return(function(m){return s(),(m={next:m})[W.Symbol.iterator]=function(){return this},m})((function(m){var T=0;return function(){return T<m.length?{done:!1,value:m[T++]}:{done:!0}}})(this))}}),s=function(){}}(function(f,m){if(m){var T=W;f=f.split(".");for(var H=0;H<f.length-1;H++){var me=f[H];me in T||(T[me]={}),T=T[me]}(m=m(H=T[f=f[f.length-1]]))!=H&&m!=null&&i(T,f,{configurable:!0,writable:!0,value:m})}})("Array.prototype.entries",function(f){return f||function(){return(function(m,T){s(),m instanceof String&&(m+="");var H=0,me={next:function(){if(H<m.length){var Se=H++;return{value:T(Se,m[Se]),done:!1}}return me.next=function(){return{done:!0,value:void 0}},me.next()}};return me[Symbol.iterator]=function(){return me},me})(this,function(m,T){return[m,T]})}});var G=this||self;function _(f,m,T){f=f.split("."),T=T||G,f[0]in T||T.execScript===void 0||T.execScript("var "+f[0]);for(var H;f.length&&(H=f.shift());)f.length||m===void 0?T=T[H]&&T[H]!==Object.prototype[H]?T[H]:T[H]={}:T[H]=m}function ee(f){var m=typeof f;if(m=="object"){if(!f)return"null";if(f instanceof Array)return"array";if(f instanceof Object)return m;var T=Object.prototype.toString.call(f);if(T=="[object Window]")return"object";if(T=="[object Array]"||typeof f.length=="number"&&f.splice!==void 0&&f.propertyIsEnumerable!==void 0&&!f.propertyIsEnumerable("splice"))return"array";if(T=="[object Function]"||f.call!==void 0&&f.propertyIsEnumerable!==void 0&&!f.propertyIsEnumerable("call"))return"function"}else if(m=="function"&&f.call===void 0)return"object";return m}function Q(f){var m=typeof f;return m=="object"&&f!=null||m=="function"}var Ce="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),le=Array.prototype.forEach?function(f,m){Array.prototype.forEach.call(f,m,void 0)}:function(f,m){for(var T=f.length,H=typeof f=="string"?f.split(""):f,me=0;me<T;me++)me in H&&m.call(void 0,H[me],me,f)},E=Array.prototype.map?function(f,m){return Array.prototype.map.call(f,m,void 0)}:function(f,m){for(var T=f.length,H=Array(T),me=typeof f=="string"?f.split(""):f,Se=0;Se<T;Se++)Se in me&&(H[Se]=m.call(void 0,me[Se],Se,f));return H};function S(f,m,T){return 2>=arguments.length?Array.prototype.slice.call(f,m):Array.prototype.slice.call(f,m,T)}function L(f,m,T,H){var me="Assertion failed";if(T){me+=": "+T;var Se=H}else f&&(me+=": "+f,Se=m);throw Error(me,Se||[])}function K(f,m,T){for(var H=[],me=2;me<arguments.length;++me)H[me-2]=arguments[me];return f||L("",null,m,H),f}function Y(f,m){for(var T=[],H=1;H<arguments.length;++H)T[H-1]=arguments[H];throw Error("Failure"+(f?": "+f:""),T)}function ce(f,m,T,H){for(var me=[],Se=3;Se<arguments.length;++Se)me[Se-3]=arguments[Se];f instanceof m||L("Expected instanceof %s but got %s.",[te(m),te(f)],T,me)}function te(f){return f instanceof Function?f.displayName||f.name||"unknown type name":f instanceof Object?f.constructor.displayName||f.constructor.name||Object.prototype.toString.call(f):f===null?"null":typeof f}function ie(f,m){if(this.c=f,this.b=m,this.a={},this.arrClean=!0,0<this.c.length){for(f=0;f<this.c.length;f++){var T=(m=this.c[f])[0];this.a[T.toString()]=new Ge(T,m[1])}this.arrClean=!0}}function he(f){this.a=0,this.b=f}function Xe(f,m){return f.b?(m.a||(m.a=new f.b(m.value)),m.a):m.value}function et(f){f=f.a;var m,T=[];for(m in f)Object.prototype.hasOwnProperty.call(f,m)&&T.push(m);return T}function Ge(f,m){this.key=f,this.value=m,this.a=void 0}function Ze(f){if(8192>=f.length)return String.fromCharCode.apply(null,f);for(var m="",T=0;T<f.length;T+=8192)m+=String.fromCharCode.apply(null,S(f,T,T+8192));return m}_("jspb.Map",ie,void 0),ie.prototype.g=function(){if(this.arrClean){if(this.b){var f,m=this.a;for(f in m)if(Object.prototype.hasOwnProperty.call(m,f)){var T=m[f].a;T&&T.g()}}}else{for(this.c.length=0,(m=et(this)).sort(),f=0;f<m.length;f++){var H=this.a[m[f]];(T=H.a)&&T.g(),this.c.push([H.key,H.value])}this.arrClean=!0}return this.c},ie.prototype.toArray=ie.prototype.g,ie.prototype.Mc=function(f,m){for(var T=this.g(),H=[],me=0;me<T.length;me++){var Se=this.a[T[me][0].toString()];Xe(this,Se);var st=Se.a;st?(K(m),H.push([Se.key,m(f,st)])):H.push([Se.key,Se.value])}return H},ie.prototype.toObject=ie.prototype.Mc,ie.fromObject=function(f,m,T){m=new ie([],m);for(var H=0;H<f.length;H++){var me=f[H][0],Se=T(f[H][1]);m.set(me,Se)}return m},he.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},typeof Symbol<"u"&&(he.prototype[Symbol.iterator]=function(){return this}),ie.prototype.Jb=function(){return et(this).length},ie.prototype.getLength=ie.prototype.Jb,ie.prototype.clear=function(){this.a={},this.arrClean=!1},ie.prototype.clear=ie.prototype.clear,ie.prototype.Cb=function(f){f=f.toString();var m=this.a.hasOwnProperty(f);return delete this.a[f],this.arrClean=!1,m},ie.prototype.del=ie.prototype.Cb,ie.prototype.Eb=function(){var f=[],m=et(this);m.sort();for(var T=0;T<m.length;T++){var H=this.a[m[T]];f.push([H.key,H.value])}return f},ie.prototype.getEntryList=ie.prototype.Eb,ie.prototype.entries=function(){var f=[],m=et(this);m.sort();for(var T=0;T<m.length;T++){var H=this.a[m[T]];f.push([H.key,Xe(this,H)])}return new he(f)},ie.prototype.entries=ie.prototype.entries,ie.prototype.keys=function(){var f=[],m=et(this);m.sort();for(var T=0;T<m.length;T++)f.push(this.a[m[T]].key);return new he(f)},ie.prototype.keys=ie.prototype.keys,ie.prototype.values=function(){var f=[],m=et(this);m.sort();for(var T=0;T<m.length;T++)f.push(Xe(this,this.a[m[T]]));return new he(f)},ie.prototype.values=ie.prototype.values,ie.prototype.forEach=function(f,m){var T=et(this);T.sort();for(var H=0;H<T.length;H++){var me=this.a[T[H]];f.call(m,Xe(this,me),me.key,this)}},ie.prototype.forEach=ie.prototype.forEach,ie.prototype.set=function(f,m){var T=new Ge(f);return this.b?(T.a=m,T.value=m.g()):T.value=m,this.a[f.toString()]=T,this.arrClean=!1,this},ie.prototype.set=ie.prototype.set,ie.prototype.get=function(f){if(f=this.a[f.toString()])return Xe(this,f)},ie.prototype.get=ie.prototype.get,ie.prototype.has=function(f){return f.toString()in this.a},ie.prototype.has=ie.prototype.has,ie.prototype.Jc=function(f,m,T,H,me){var Se=et(this);Se.sort();for(var st=0;st<Se.length;st++){var Et=this.a[Se[st]];m.Va(f),T.call(m,1,Et.key),this.b?H.call(m,2,Xe(this,Et),me):H.call(m,2,Et.value),m.Ya()}},ie.prototype.serializeBinary=ie.prototype.Jc,ie.deserializeBinary=function(f,m,T,H,me,Se,st){for(;m.oa()&&!m.bb();){var Et=m.c;Et==1?Se=T.call(m):Et==2&&(f.b?(K(me),st||(st=new f.b),H.call(m,st,me)):st=H.call(m))}K(Se!=null),K(st!=null),f.set(Se,st)};var A={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},N={"'":"\\'"},D={},F=null;function P(f,m){m===void 0&&(m=0),oe(),m=D[m];for(var T=[],H=0;H<f.length;H+=3){var me=f[H],Se=H+1<f.length,st=Se?f[H+1]:0,Et=H+2<f.length,Nr=Et?f[H+2]:0,Dr=me>>2;me=(3&me)<<4|st>>4,st=(15&st)<<2|Nr>>6,Nr&=63,Et||(Nr=64,Se||(st=64)),T.push(m[Dr],m[me],m[st]||"",m[Nr]||"")}return T.join("")}function R(f){var m=f.length,T=3*m/4;T%3?T=Math.floor(T):"=.".indexOf(f[m-1])!=-1&&(T="=.".indexOf(f[m-2])!=-1?T-2:T-1);var H=new Uint8Array(T),me=0;return(function(Se,st){function Et(Pa){for(;Nr<Se.length;){var kn=Se.charAt(Nr++),$i=F[kn];if($i!=null)return $i;if(!/^[\s\xa0]*$/.test(kn))throw Error("Unknown base64 encoding at char: "+kn)}return Pa}oe();for(var Nr=0;;){var Dr=Et(-1),sn=Et(0),yn=Et(64),xn=Et(64);if(xn===64&&Dr===-1)break;st(Dr<<2|sn>>4),yn!=64&&(st(sn<<4&240|yn>>2),xn!=64&&st(yn<<6&192|xn))}})(f,function(Se){H[me++]=Se}),H.subarray(0,me)}function oe(){if(!F){F={};for(var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),m=["+/=","+/","-_=","-_.","-_"],T=0;5>T;T++){var H=f.concat(m[T].split(""));D[T]=H;for(var me=0;me<H.length;me++){var Se=H[me];F[Se]===void 0&&(F[Se]=me)}}}}_("jspb.ConstBinaryMessage",function(){},void 0),_("jspb.BinaryMessage",function(){},void 0),_("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),_("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),_("jspb.BinaryConstants.FieldTypeToWireType",function(f){switch(f){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}},void 0),_("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),_("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),_("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),_("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),_("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),_("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),_("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),_("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),_("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),_("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),_("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),_("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),_("jspb.BinaryConstants.TWO_TO_63",9223372036854776e3,void 0),_("jspb.BinaryConstants.TWO_TO_64",18446744073709552e3,void 0),_("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var Te=0,C=0;function ue(f){var m=f>>>0;f=Math.floor((f-m)/4294967296)>>>0,Te=m,C=f}function We(f){var m=0>f,T=(f=Math.abs(f))>>>0;f=Math.floor((f-T)/4294967296),f>>>=0,m&&(f=~f>>>0,4294967295<(T=1+(~T>>>0))&&(T=0,4294967295<++f&&(f=0))),Te=T,C=f}function ge(f){var m=0>f;ue(f=2*Math.abs(f)),f=Te;var T=C;m&&(f==0?T==0?T=f=4294967295:(T--,f=4294967295):f--),Te=f,C=T}function Ie(f){var m=0>f?1:0;if((f=m?-f:f)===0)0<1/f?Te=C=0:(C=0,Te=2147483648);else if(isNaN(f))C=0,Te=2147483647;else if(34028234663852886e22<f)C=0,Te=(m<<31|2139095040)>>>0;else if(11754943508222875e-54>f)f=Math.round(f/Math.pow(2,-149)),C=0,Te=(m<<31|f)>>>0;else{var T=Math.floor(Math.log(f)/Math.LN2);f*=Math.pow(2,-T),16777216<=(f=Math.round(8388608*f))&&++T,C=0,Te=(m<<31|T+127<<23|8388607&f)>>>0}}function ze(f){var m=0>f?1:0;if((f=m?-f:f)===0)C=0<1/f?0:2147483648,Te=0;else if(isNaN(f))C=2147483647,Te=4294967295;else if(17976931348623157e292<f)C=(m<<31|2146435072)>>>0,Te=0;else if(22250738585072014e-324>f)f/=Math.pow(2,-1074),C=(m<<31|f/4294967296)>>>0,Te=f>>>0;else{var T=f,H=0;if(2<=T)for(;2<=T&&1023>H;)H++,T/=2;else for(;1>T&&-1022<H;)T*=2,H--;f*=Math.pow(2,-H),C=(m<<31|H+1023<<20|1048576*f&1048575)>>>0,Te=4503599627370496*f>>>0}}function $e(f){var m=f.charCodeAt(4),T=f.charCodeAt(5),H=f.charCodeAt(6),me=f.charCodeAt(7);Te=f.charCodeAt(0)+(f.charCodeAt(1)<<8)+(f.charCodeAt(2)<<16)+(f.charCodeAt(3)<<24)>>>0,C=m+(T<<8)+(H<<16)+(me<<24)>>>0}function nt(f,m){return 4294967296*m+(f>>>0)}function ut(f,m){var T=2147483648&m;return T&&(m=~m>>>0,(f=1+~f>>>0)==0&&(m=m+1>>>0)),f=nt(f,m),T?-f:f}function ft(f,m,T){var H=m>>31;return T(f<<1^H,(m<<1|f>>>31)^H)}function pt(f,m){return Lt(f,m,ut)}function Lt(f,m,T){var H=-(1&f);return T((f>>>1|m<<31)^H,m>>>1^H)}function $t(f){var m=2*(f>>31)+1,T=f>>>23&255;return f&=8388607,T==255?f?NaN:1/0*m:T==0?m*Math.pow(2,-149)*f:m*Math.pow(2,T-150)*(f+Math.pow(2,23))}function It(f,m){var T=2*(m>>31)+1,H=m>>>20&2047;return f=4294967296*(1048575&m)+f,H==2047?f?NaN:1/0*T:H==0?T*Math.pow(2,-1074)*f:T*Math.pow(2,H-1075)*(f+4503599627370496)}function br(f,m){return String.fromCharCode(f>>>0&255,f>>>8&255,f>>>16&255,f>>>24&255,m>>>0&255,m>>>8&255,m>>>16&255,m>>>24&255)}function ct(f,m){function T(me,Se){return me=me?String(me):"",Se?"0000000".slice(me.length)+me:me}if(2097151>=m)return""+nt(f,m);var H=(f>>>24|m<<8)>>>0&16777215;return f=(16777215&f)+6777216*H+6710656*(m=m>>16&65535),H+=8147497*m,m*=2,1e7<=f&&(H+=Math.floor(f/1e7),f%=1e7),1e7<=H&&(m+=Math.floor(H/1e7),H%=1e7),T(m,0)+T(H,m)+T(f,1)}function Ht(f,m){var T=2147483648&m;return T&&(m=~m+((f=1+~f>>>0)==0?1:0)>>>0),f=ct(f,m),T?"-"+f:f}function kr(f,m){$e(f),f=Te;var T=C;return m?Ht(f,T):ct(f,T)}function Ft(f){function m(Se,st){for(var Et=0;8>Et&&(Se!==1||0<st);Et++)st=Se*H[Et]+st,H[Et]=255&st,st>>>=8}K(0<f.length);var T=!1;f[0]==="-"&&(T=!0,f=f.slice(1));for(var H=[0,0,0,0,0,0,0,0],me=0;me<f.length;me++)m(10,f.charCodeAt(me)-48);return T&&((function(){for(var Se=0;8>Se;Se++)H[Se]=255&~H[Se]})(),m(1,1)),Ze(H)}function Kt(f){return String.fromCharCode(10>f?48+f:87+f)}function Pr(f){return 97<=f?f-97+10:f-48}function qt(f,m,T,H,me){var Se=0;if(128>H)for(;m<T&&f[m++]==H;)Se++,m+=me;else for(;m<T;){for(var st=H;128<st;){if(f[m++]!=(127&st|128))return Se;st>>=7}if(f[m++]!=st)break;Se++,m+=me}return Se}function He(f){return f.constructor===Uint8Array?f:f.constructor===ArrayBuffer||f.constructor===Array?new Uint8Array(f):f.constructor===String?R(f):f instanceof Uint8Array?new Uint8Array(f.buffer,f.byteOffset,f.byteLength):(Y("Type not convertible to Uint8Array."),new Uint8Array(0))}function De(f,m,T){this.b=null,this.a=this.c=this.h=0,this.v=!1,f&&this.H(f,m,T)}_("jspb.utils.getSplit64Low",function(){return Te},void 0),_("jspb.utils.getSplit64High",function(){return C},void 0),_("jspb.utils.splitUint64",ue,void 0),_("jspb.utils.splitInt64",We,void 0),_("jspb.utils.splitZigzag64",ge,void 0),_("jspb.utils.splitFloat32",Ie,void 0),_("jspb.utils.splitFloat64",ze,void 0),_("jspb.utils.splitHash64",$e,void 0),_("jspb.utils.joinUint64",nt,void 0),_("jspb.utils.joinInt64",ut,void 0),_("jspb.utils.toZigzag64",ft,void 0),_("jspb.utils.joinZigzag64",pt,void 0),_("jspb.utils.fromZigzag64",Lt,void 0),_("jspb.utils.joinFloat32",$t,void 0),_("jspb.utils.joinFloat64",It,void 0),_("jspb.utils.joinHash64",br,void 0),_("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0),_("jspb.utils.joinUnsignedDecimalString",ct,void 0),_("jspb.utils.joinSignedDecimalString",Ht,void 0),_("jspb.utils.hash64ToDecimalString",kr,void 0),_("jspb.utils.hash64ArrayToDecimalStrings",function(f,m){for(var T=Array(f.length),H=0;H<f.length;H++)T[H]=kr(f[H],m);return T},void 0),_("jspb.utils.decimalStringToHash64",Ft,void 0),_("jspb.utils.splitDecimalString",function(f){$e(Ft(f))},void 0),_("jspb.utils.hash64ToHexString",function(f){var m=Array(18);m[0]="0",m[1]="x";for(var T=0;8>T;T++){var H=f.charCodeAt(7-T);m[2*T+2]=Kt(H>>4),m[2*T+3]=Kt(15&H)}return m.join("")},void 0),_("jspb.utils.hexStringToHash64",function(f){K((f=f.toLowerCase()).length==18),K(f[0]=="0"),K(f[1]=="x");for(var m="",T=0;8>T;T++)m=String.fromCharCode(16*Pr(f.charCodeAt(2*T+2))+Pr(f.charCodeAt(2*T+3)))+m;return m},void 0),_("jspb.utils.hash64ToNumber",function(f,m){$e(f),f=Te;var T=C;return m?ut(f,T):nt(f,T)},void 0),_("jspb.utils.numberToHash64",function(f){return We(f),br(Te,C)},void 0),_("jspb.utils.countVarints",function(f,m,T){for(var H=0,me=m;me<T;me++)H+=f[me]>>7;return T-m-H},void 0),_("jspb.utils.countVarintFields",function(f,m,T,H){var me=0;if(128>(H*=8))for(;m<T&&f[m++]==H;)for(me++;;){var Se=f[m++];if(!(128&Se))break}else for(;m<T;){for(Se=H;128<Se;){if(f[m]!=(127&Se|128))return me;m++,Se>>=7}if(f[m++]!=Se)break;for(me++;128&(Se=f[m++]););}return me},void 0),_("jspb.utils.countFixed32Fields",function(f,m,T,H){return qt(f,m,T,8*H+5,4)},void 0),_("jspb.utils.countFixed64Fields",function(f,m,T,H){return qt(f,m,T,8*H+1,8)},void 0),_("jspb.utils.countDelimitedFields",function(f,m,T,H){var me=0;for(H=8*H+2;m<T;){for(var Se=H;128<Se;){if(f[m++]!=(127&Se|128))return me;Se>>=7}if(f[m++]!=Se)break;me++;for(var st=0,Et=1;st+=(127&(Se=f[m++]))*Et,Et*=128,(128&Se)!=0;);m+=st}return me},void 0),_("jspb.utils.debugBytesToTextFormat",function(f){var m='"';if(f){f=He(f);for(var T=0;T<f.length;T++)m+="\\x",16>f[T]&&(m+="0"),m+=f[T].toString(16)}return m+'"'},void 0),_("jspb.utils.debugScalarToTextFormat",function(f){if(typeof f=="string"){f=String(f);for(var m=['"'],T=0;T<f.length;T++){var H,me=f.charAt(T),Se=me.charCodeAt(0),st=T+1;(H=A[me])||(31<Se&&127>Se||((Se=me)in N?me=N[Se]:Se in A?me=N[Se]=A[Se]:(31<(H=Se.charCodeAt(0))&&127>H?me=Se:(256>H?(me="\\x",(16>H||256<H)&&(me+="0")):(me="\\u",4096>H&&(me+="0")),me+=H.toString(16).toUpperCase()),me=N[Se]=me)),H=me),m[st]=H}m.push('"'),f=m.join("")}else f=f.toString();return f},void 0),_("jspb.utils.stringToByteArray",function(f){for(var m=new Uint8Array(f.length),T=0;T<f.length;T++){var H=f.charCodeAt(T);if(255<H)throw Error("Conversion error: string contains codepoint outside of byte range");m[T]=H}return m},void 0),_("jspb.utils.byteSourceToUint8Array",He,void 0),_("jspb.BinaryDecoder",De,void 0);var Yt=[];function Zt(f,m,T){if(Yt.length){var H=Yt.pop();return f&&H.H(f,m,T),H}return new De(f,m,T)}function se(f,m,T){this.a=Zt(f,m,T),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}De.getInstanceCacheLength=function(){return Yt.length},De.alloc=Zt,De.prototype.Ca=function(){this.clear(),100>Yt.length&&Yt.push(this)},De.prototype.free=De.prototype.Ca,De.prototype.clone=function(){return Zt(this.b,this.h,this.c-this.h)},De.prototype.clone=De.prototype.clone,De.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},De.prototype.clear=De.prototype.clear,De.prototype.Y=function(){return this.b},De.prototype.getBuffer=De.prototype.Y,De.prototype.H=function(f,m,T){this.b=He(f),this.h=m!==void 0?m:0,this.c=T!==void 0?this.h+T:this.b.length,this.a=this.h},De.prototype.setBlock=De.prototype.H,De.prototype.Db=function(){return this.c},De.prototype.getEnd=De.prototype.Db,De.prototype.setEnd=function(f){this.c=f},De.prototype.setEnd=De.prototype.setEnd,De.prototype.reset=function(){this.a=this.h},De.prototype.reset=De.prototype.reset,De.prototype.B=function(){return this.a},De.prototype.getCursor=De.prototype.B,De.prototype.Ma=function(f){this.a=f},De.prototype.setCursor=De.prototype.Ma,De.prototype.advance=function(f){this.a+=f,K(this.a<=this.c)},De.prototype.advance=De.prototype.advance,De.prototype.ya=function(){return this.a==this.c},De.prototype.atEnd=De.prototype.ya,De.prototype.Qb=function(){return this.a>this.c},De.prototype.pastEnd=De.prototype.Qb,De.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},De.prototype.getError=De.prototype.getError,De.prototype.w=function(f){for(var m=128,T=0,H=0,me=0;4>me&&128<=m;me++)T|=(127&(m=this.b[this.a++]))<<7*me;if(128<=m&&(T|=(127&(m=this.b[this.a++]))<<28,H|=(127&m)>>4),128<=m)for(me=0;5>me&&128<=m;me++)H|=(127&(m=this.b[this.a++]))<<7*me+3;if(128>m)return f(T>>>0,H>>>0);Y("Failed to read varint, encoding is invalid."),this.v=!0},De.prototype.readSplitVarint64=De.prototype.w,De.prototype.ea=function(f){return this.w(function(m,T){return Lt(m,T,f)})},De.prototype.readSplitZigzagVarint64=De.prototype.ea,De.prototype.ta=function(f){var m=this.b,T=this.a;this.a+=8;for(var H=0,me=0,Se=T+7;Se>=T;Se--)H=H<<8|m[Se],me=me<<8|m[Se+4];return f(H,me)},De.prototype.readSplitFixed64=De.prototype.ta,De.prototype.kb=function(){for(;128&this.b[this.a];)this.a++;this.a++},De.prototype.skipVarint=De.prototype.kb,De.prototype.mb=function(f){for(;128<f;)this.a--,f>>>=7;this.a--},De.prototype.unskipVarint=De.prototype.mb,De.prototype.o=function(){var f=this.b,m=f[this.a],T=127&m;return 128>m?(this.a+=1,K(this.a<=this.c),T):(T|=(127&(m=f[this.a+1]))<<7,128>m?(this.a+=2,K(this.a<=this.c),T):(T|=(127&(m=f[this.a+2]))<<14,128>m?(this.a+=3,K(this.a<=this.c),T):(T|=(127&(m=f[this.a+3]))<<21,128>m?(this.a+=4,K(this.a<=this.c),T):(T|=(15&(m=f[this.a+4]))<<28,128>m?(this.a+=5,K(this.a<=this.c),T>>>0):(this.a+=5,128<=f[this.a++]&&128<=f[this.a++]&&128<=f[this.a++]&&128<=f[this.a++]&&128<=f[this.a++]&&K(!1),K(this.a<=this.c),T)))))},De.prototype.readUnsignedVarint32=De.prototype.o,De.prototype.da=function(){return~~this.o()},De.prototype.readSignedVarint32=De.prototype.da,De.prototype.O=function(){return this.o().toString()},De.prototype.Ea=function(){return this.da().toString()},De.prototype.readSignedVarint32String=De.prototype.Ea,De.prototype.Ia=function(){var f=this.o();return f>>>1^-(1&f)},De.prototype.readZigzagVarint32=De.prototype.Ia,De.prototype.Ga=function(){return this.w(nt)},De.prototype.readUnsignedVarint64=De.prototype.Ga,De.prototype.Ha=function(){return this.w(ct)},De.prototype.readUnsignedVarint64String=De.prototype.Ha,De.prototype.sa=function(){return this.w(ut)},De.prototype.readSignedVarint64=De.prototype.sa,De.prototype.Fa=function(){return this.w(Ht)},De.prototype.readSignedVarint64String=De.prototype.Fa,De.prototype.Ja=function(){return this.w(pt)},De.prototype.readZigzagVarint64=De.prototype.Ja,De.prototype.fb=function(){return this.ea(br)},De.prototype.readZigzagVarintHash64=De.prototype.fb,De.prototype.Ka=function(){return this.ea(Ht)},De.prototype.readZigzagVarint64String=De.prototype.Ka,De.prototype.Gc=function(){var f=this.b[this.a];return this.a+=1,K(this.a<=this.c),f},De.prototype.readUint8=De.prototype.Gc,De.prototype.Ec=function(){var f=this.b[this.a],m=this.b[this.a+1];return this.a+=2,K(this.a<=this.c),f<<0|m<<8},De.prototype.readUint16=De.prototype.Ec,De.prototype.m=function(){var f=this.b[this.a],m=this.b[this.a+1],T=this.b[this.a+2],H=this.b[this.a+3];return this.a+=4,K(this.a<=this.c),(f<<0|m<<8|T<<16|H<<24)>>>0},De.prototype.readUint32=De.prototype.m,De.prototype.ga=function(){return nt(this.m(),this.m())},De.prototype.readUint64=De.prototype.ga,De.prototype.ha=function(){return ct(this.m(),this.m())},De.prototype.readUint64String=De.prototype.ha,De.prototype.Xb=function(){var f=this.b[this.a];return this.a+=1,K(this.a<=this.c),f<<24>>24},De.prototype.readInt8=De.prototype.Xb,De.prototype.Vb=function(){var f=this.b[this.a],m=this.b[this.a+1];return this.a+=2,K(this.a<=this.c),(f<<0|m<<8)<<16>>16},De.prototype.readInt16=De.prototype.Vb,De.prototype.P=function(){var f=this.b[this.a],m=this.b[this.a+1],T=this.b[this.a+2],H=this.b[this.a+3];return this.a+=4,K(this.a<=this.c),f<<0|m<<8|T<<16|H<<24},De.prototype.readInt32=De.prototype.P,De.prototype.ba=function(){return ut(this.m(),this.m())},De.prototype.readInt64=De.prototype.ba,De.prototype.ca=function(){return Ht(this.m(),this.m())},De.prototype.readInt64String=De.prototype.ca,De.prototype.aa=function(){return $t(this.m())},De.prototype.readFloat=De.prototype.aa,De.prototype.Z=function(){return It(this.m(),this.m())},De.prototype.readDouble=De.prototype.Z,De.prototype.pa=function(){return!!this.b[this.a++]},De.prototype.readBool=De.prototype.pa,De.prototype.ra=function(){return this.da()},De.prototype.readEnum=De.prototype.ra,De.prototype.fa=function(f){var m=this.b,T=this.a;f=T+f;for(var H=[],me="";T<f;){var Se=m[T++];if(128>Se)H.push(Se);else{if(192>Se)continue;if(224>Se){var st=m[T++];H.push((31&Se)<<6|63&st)}else if(240>Se){st=m[T++];var Et=m[T++];H.push((15&Se)<<12|(63&st)<<6|63&Et)}else 248>Se&&(Se=(7&Se)<<18|(63&(st=m[T++]))<<12|(63&(Et=m[T++]))<<6|63&m[T++],Se-=65536,H.push(55296+(Se>>10&1023),56320+(1023&Se)))}8192<=H.length&&(me+=String.fromCharCode.apply(null,H),H.length=0)}return me+=Ze(H),this.a=T,me},De.prototype.readString=De.prototype.fa,De.prototype.Dc=function(){var f=this.o();return this.fa(f)},De.prototype.readStringWithLength=De.prototype.Dc,De.prototype.qa=function(f){if(0>f||this.a+f>this.b.length)return this.v=!0,Y("Invalid byte length!"),new Uint8Array(0);var m=this.b.subarray(this.a,this.a+f);return this.a+=f,K(this.a<=this.c),m},De.prototype.readBytes=De.prototype.qa,De.prototype.ia=function(){return this.w(br)},De.prototype.readVarintHash64=De.prototype.ia,De.prototype.$=function(){var f=this.b,m=this.a,T=f[m],H=f[m+1],me=f[m+2],Se=f[m+3],st=f[m+4],Et=f[m+5],Nr=f[m+6];return f=f[m+7],this.a+=8,String.fromCharCode(T,H,me,Se,st,Et,Nr,f)},De.prototype.readFixedHash64=De.prototype.$,_("jspb.BinaryReader",se,void 0);var zt=[];function Ct(f,m,T){if(zt.length){var H=zt.pop();return f&&H.a.H(f,m,T),H}return new se(f,m,T)}function xt(f,m){K(f.b==2);var T=f.a.o();T=f.a.B()+T;for(var H=[];f.a.B()<T;)H.push(m.call(f.a));return H}function or(f,m,T,H,me){this.ma=f,this.Ba=m,this.la=T,this.Na=H,this.na=me}function tr(f,m,T,H,me,Se){this.Za=f,this.za=m,this.Aa=T,this.Wa=H,this.Ab=me,this.Nb=Se}function it(){}se.clearInstanceCache=function(){zt=[]},se.getInstanceCacheLength=function(){return zt.length},se.alloc=Ct,se.prototype.zb=Ct,se.prototype.alloc=se.prototype.zb,se.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>zt.length&&zt.push(this)},se.prototype.free=se.prototype.Ca,se.prototype.Fb=function(){return this.O},se.prototype.getFieldCursor=se.prototype.Fb,se.prototype.B=function(){return this.a.B()},se.prototype.getCursor=se.prototype.B,se.prototype.Y=function(){return this.a.Y()},se.prototype.getBuffer=se.prototype.Y,se.prototype.Hb=function(){return this.c},se.prototype.getFieldNumber=se.prototype.Hb,se.prototype.Lb=function(){return this.b},se.prototype.getWireType=se.prototype.Lb,se.prototype.Mb=function(){return this.b==2},se.prototype.isDelimited=se.prototype.Mb,se.prototype.bb=function(){return this.b==4},se.prototype.isEndGroup=se.prototype.bb,se.prototype.getError=function(){return this.h||this.a.getError()},se.prototype.getError=se.prototype.getError,se.prototype.H=function(f,m,T){this.a.H(f,m,T),this.b=this.c=-1},se.prototype.setBlock=se.prototype.H,se.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},se.prototype.reset=se.prototype.reset,se.prototype.advance=function(f){this.a.advance(f)},se.prototype.advance=se.prototype.advance,se.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return Y("Decoder hit an error"),!1;this.O=this.a.B();var f=this.a.o(),m=f>>>3;return(f&=7)!=0&&f!=5&&f!=1&&f!=2&&f!=3&&f!=4?(Y("Invalid wire type: %s (at position %s)",f,this.O),this.h=!0,!1):(this.c=m,this.b=f,!0)},se.prototype.nextField=se.prototype.oa,se.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},se.prototype.unskipHeader=se.prototype.Oa,se.prototype.Lc=function(){var f=this.c;for(this.Oa();this.oa()&&this.c==f;)this.C();this.a.ya()||this.Oa()},se.prototype.skipMatchingFields=se.prototype.Lc,se.prototype.lb=function(){this.b!=0?(Y("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},se.prototype.skipVarintField=se.prototype.lb,se.prototype.gb=function(){if(this.b!=2)Y("Invalid wire type for skipDelimitedField"),this.C();else{var f=this.a.o();this.a.advance(f)}},se.prototype.skipDelimitedField=se.prototype.gb,se.prototype.hb=function(){this.b!=5?(Y("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},se.prototype.skipFixed32Field=se.prototype.hb,se.prototype.ib=function(){this.b!=1?(Y("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},se.prototype.skipFixed64Field=se.prototype.ib,se.prototype.jb=function(){for(var f=this.c;;){if(!this.oa()){Y("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(this.b==4){this.c!=f&&(Y("Unmatched end-group tag"),this.h=!0);break}this.C()}},se.prototype.skipGroup=se.prototype.jb,se.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:Y("Invalid wire encoding for field.")}},se.prototype.skipField=se.prototype.C,se.prototype.Hc=function(f,m){this.v===null&&(this.v={}),K(!this.v[f]),this.v[f]=m},se.prototype.registerReadCallback=se.prototype.Hc,se.prototype.Ic=function(f){return K(this.v!==null),K(f=this.v[f]),f(this)},se.prototype.runReadCallback=se.prototype.Ic,se.prototype.Yb=function(f,m){K(this.b==2);var T=this.a.c,H=this.a.o();H=this.a.B()+H,this.a.setEnd(H),m(f,this),this.a.Ma(H),this.a.setEnd(T)},se.prototype.readMessage=se.prototype.Yb,se.prototype.Ub=function(f,m,T){K(this.b==3),K(this.c==f),T(m,this),this.h||this.b==4||(Y("Group submessage did not end with an END_GROUP tag"),this.h=!0)},se.prototype.readGroup=se.prototype.Ub,se.prototype.Gb=function(){K(this.b==2);var f=this.a.o(),m=this.a.B(),T=m+f;return f=Zt(this.a.Y(),m,f),this.a.Ma(T),f},se.prototype.getFieldDecoder=se.prototype.Gb,se.prototype.P=function(){return K(this.b==0),this.a.da()},se.prototype.readInt32=se.prototype.P,se.prototype.Wb=function(){return K(this.b==0),this.a.Ea()},se.prototype.readInt32String=se.prototype.Wb,se.prototype.ba=function(){return K(this.b==0),this.a.sa()},se.prototype.readInt64=se.prototype.ba,se.prototype.ca=function(){return K(this.b==0),this.a.Fa()},se.prototype.readInt64String=se.prototype.ca,se.prototype.m=function(){return K(this.b==0),this.a.o()},se.prototype.readUint32=se.prototype.m,se.prototype.Fc=function(){return K(this.b==0),this.a.O()},se.prototype.readUint32String=se.prototype.Fc,se.prototype.ga=function(){return K(this.b==0),this.a.Ga()},se.prototype.readUint64=se.prototype.ga,se.prototype.ha=function(){return K(this.b==0),this.a.Ha()},se.prototype.readUint64String=se.prototype.ha,se.prototype.zc=function(){return K(this.b==0),this.a.Ia()},se.prototype.readSint32=se.prototype.zc,se.prototype.Ac=function(){return K(this.b==0),this.a.Ja()},se.prototype.readSint64=se.prototype.Ac,se.prototype.Bc=function(){return K(this.b==0),this.a.Ka()},se.prototype.readSint64String=se.prototype.Bc,se.prototype.Rb=function(){return K(this.b==5),this.a.m()},se.prototype.readFixed32=se.prototype.Rb,se.prototype.Sb=function(){return K(this.b==1),this.a.ga()},se.prototype.readFixed64=se.prototype.Sb,se.prototype.Tb=function(){return K(this.b==1),this.a.ha()},se.prototype.readFixed64String=se.prototype.Tb,se.prototype.vc=function(){return K(this.b==5),this.a.P()},se.prototype.readSfixed32=se.prototype.vc,se.prototype.wc=function(){return K(this.b==5),this.a.P().toString()},se.prototype.readSfixed32String=se.prototype.wc,se.prototype.xc=function(){return K(this.b==1),this.a.ba()},se.prototype.readSfixed64=se.prototype.xc,se.prototype.yc=function(){return K(this.b==1),this.a.ca()},se.prototype.readSfixed64String=se.prototype.yc,se.prototype.aa=function(){return K(this.b==5),this.a.aa()},se.prototype.readFloat=se.prototype.aa,se.prototype.Z=function(){return K(this.b==1),this.a.Z()},se.prototype.readDouble=se.prototype.Z,se.prototype.pa=function(){return K(this.b==0),!!this.a.o()},se.prototype.readBool=se.prototype.pa,se.prototype.ra=function(){return K(this.b==0),this.a.sa()},se.prototype.readEnum=se.prototype.ra,se.prototype.fa=function(){K(this.b==2);var f=this.a.o();return this.a.fa(f)},se.prototype.readString=se.prototype.fa,se.prototype.qa=function(){K(this.b==2);var f=this.a.o();return this.a.qa(f)},se.prototype.readBytes=se.prototype.qa,se.prototype.ia=function(){return K(this.b==0),this.a.ia()},se.prototype.readVarintHash64=se.prototype.ia,se.prototype.Cc=function(){return K(this.b==0),this.a.fb()},se.prototype.readSintHash64=se.prototype.Cc,se.prototype.w=function(f){return K(this.b==0),this.a.w(f)},se.prototype.readSplitVarint64=se.prototype.w,se.prototype.ea=function(f){return K(this.b==0),this.a.w(function(m,T){return Lt(m,T,f)})},se.prototype.readSplitZigzagVarint64=se.prototype.ea,se.prototype.$=function(){return K(this.b==1),this.a.$()},se.prototype.readFixedHash64=se.prototype.$,se.prototype.ta=function(f){return K(this.b==1),this.a.ta(f)},se.prototype.readSplitFixed64=se.prototype.ta,se.prototype.gc=function(){return xt(this,this.a.da)},se.prototype.readPackedInt32=se.prototype.gc,se.prototype.hc=function(){return xt(this,this.a.Ea)},se.prototype.readPackedInt32String=se.prototype.hc,se.prototype.ic=function(){return xt(this,this.a.sa)},se.prototype.readPackedInt64=se.prototype.ic,se.prototype.jc=function(){return xt(this,this.a.Fa)},se.prototype.readPackedInt64String=se.prototype.jc,se.prototype.qc=function(){return xt(this,this.a.o)},se.prototype.readPackedUint32=se.prototype.qc,se.prototype.rc=function(){return xt(this,this.a.O)},se.prototype.readPackedUint32String=se.prototype.rc,se.prototype.sc=function(){return xt(this,this.a.Ga)},se.prototype.readPackedUint64=se.prototype.sc,se.prototype.tc=function(){return xt(this,this.a.Ha)},se.prototype.readPackedUint64String=se.prototype.tc,se.prototype.nc=function(){return xt(this,this.a.Ia)},se.prototype.readPackedSint32=se.prototype.nc,se.prototype.oc=function(){return xt(this,this.a.Ja)},se.prototype.readPackedSint64=se.prototype.oc,se.prototype.pc=function(){return xt(this,this.a.Ka)},se.prototype.readPackedSint64String=se.prototype.pc,se.prototype.bc=function(){return xt(this,this.a.m)},se.prototype.readPackedFixed32=se.prototype.bc,se.prototype.cc=function(){return xt(this,this.a.ga)},se.prototype.readPackedFixed64=se.prototype.cc,se.prototype.dc=function(){return xt(this,this.a.ha)},se.prototype.readPackedFixed64String=se.prototype.dc,se.prototype.kc=function(){return xt(this,this.a.P)},se.prototype.readPackedSfixed32=se.prototype.kc,se.prototype.lc=function(){return xt(this,this.a.ba)},se.prototype.readPackedSfixed64=se.prototype.lc,se.prototype.mc=function(){return xt(this,this.a.ca)},se.prototype.readPackedSfixed64String=se.prototype.mc,se.prototype.fc=function(){return xt(this,this.a.aa)},se.prototype.readPackedFloat=se.prototype.fc,se.prototype.$b=function(){return xt(this,this.a.Z)},se.prototype.readPackedDouble=se.prototype.$b,se.prototype.Zb=function(){return xt(this,this.a.pa)},se.prototype.readPackedBool=se.prototype.Zb,se.prototype.ac=function(){return xt(this,this.a.ra)},se.prototype.readPackedEnum=se.prototype.ac,se.prototype.uc=function(){return xt(this,this.a.ia)},se.prototype.readPackedVarintHash64=se.prototype.uc,se.prototype.ec=function(){return xt(this,this.a.$)},se.prototype.readPackedFixedHash64=se.prototype.ec,_("jspb.ExtensionFieldInfo",or,void 0),_("jspb.ExtensionFieldBinaryInfo",tr,void 0),or.prototype.F=function(){return!!this.la},or.prototype.isMessageType=or.prototype.F,_("jspb.Message",it,void 0),it.GENERATE_TO_OBJECT=!0,it.GENERATE_FROM_OBJECT=!0;var er=typeof Uint8Array=="function";it.prototype.Ib=function(){return this.b},it.prototype.getJsPbMessageId=it.prototype.Ib,it.initialize=function(f,m,T,H,me,Se){if(f.f=null,m||(m=T?[T]:[]),f.b=T?String(T):void 0,f.D=T===0?-1:0,f.u=m,m=-1,!(T=f.u.length)||(m=T-1,(T=f.u[m])===null||typeof T!="object"||Array.isArray(T)||er&&T instanceof Uint8Array)?-1<H?(f.G=Math.max(H,m+1-f.D),f.i=null):f.G=Number.MAX_VALUE:(f.G=m-f.D,f.i=T),f.a={},me)for(H=0;H<me.length;H++)(m=me[H])<f.G?(m+=f.D,f.u[m]=f.u[m]||pe):(ke(f),f.i[m]=f.i[m]||pe);if(Se&&Se.length)for(H=0;H<Se.length;H++)Br(f,Se[H])};var pe=Object.freeze?Object.freeze([]):[];function ke(f){var m=f.G+f.D;f.u[m]||(f.i=f.u[m]={})}function Ue(f,m,T){for(var H=[],me=0;me<f.length;me++)H[me]=m.call(f[me],T,f[me]);return H}function ot(f,m){if(m<f.G){m+=f.D;var T=f.u[m];return T===pe?f.u[m]=[]:T}if(f.i)return(T=f.i[m])===pe?f.i[m]=[]:T}function Dt(f,m){return(f=ot(f,m))==null?f:+f}function Wt(f,m){return(f=ot(f,m))==null?f:!!f}function vt(f){return f==null||typeof f=="string"?f:er&&f instanceof Uint8Array?P(f):(Y("Cannot coerce to b64 string: "+ee(f)),null)}function Or(f){return f==null||f instanceof Uint8Array?f:typeof f=="string"?R(f):(Y("Cannot coerce to Uint8Array: "+ee(f)),null)}function Rt(f){if(f&&1<f.length){var m=ee(f[0]);le(f,function(T){ee(T)!=m&&Y("Inconsistent type in JSPB repeated field array. Got "+ee(T)+" expected "+m)})}}function Ut(f,m,T){return(f=ot(f,m))==null?T:f}function Wr(f,m,T){return ce(f,it),m<f.G?f.u[m+f.D]=T:(ke(f),f.i[m]=T),f}function bt(f,m,T,H){return ce(f,it),T!==H?Wr(f,m,T):m<f.G?f.u[m+f.D]=null:(ke(f),delete f.i[m]),f}function _t(f,m,T,H){return ce(f,it),(T=Br(f,T))&&T!==m&&H!==void 0&&(f.f&&T in f.f&&(f.f[T]=void 0),Wr(f,T,void 0)),Wr(f,m,H)}function Br(f,m){for(var T,H,me=0;me<m.length;me++){var Se=m[me],st=ot(f,Se);st!=null&&(T=Se,H=st,Wr(f,Se,void 0))}return T?(Wr(f,T,H),T):0}function Vt(f,m,T){if(f.f||(f.f={}),!f.f[T]){for(var H=ot(f,T),me=[],Se=0;Se<H.length;Se++)me[Se]=new m(H[Se]);f.f[T]=me}}function lt(f){if(f.f)for(var m in f.f){var T=f.f[m];if(Array.isArray(T))for(var H=0;H<T.length;H++)T[H]&&T[H].g();else T&&T.g()}}function St(f,m){f=f||{},m=m||{};var T,H={};for(T in f)H[T]=0;for(T in m)H[T]=0;for(T in H)if(!Tt(f[T],m[T]))return!1;return!0}function Tt(f,m){if(f==m)return!0;if(!Q(f)||!Q(m))return!!(typeof f=="number"&&isNaN(f)||typeof m=="number"&&isNaN(m))&&String(f)==String(m);if(f.constructor!=m.constructor)return!1;if(er&&f.constructor===Uint8Array){if(f.length!=m.length)return!1;for(var T=0;T<f.length;T++)if(f[T]!=m[T])return!1;return!0}if(f.constructor===Array){var H=void 0,me=void 0,Se=Math.max(f.length,m.length);for(T=0;T<Se;T++){var st=f[T],Et=m[T];if(st&&st.constructor==Object&&(K(H===void 0),K(T===f.length-1),H=st,st=void 0),Et&&Et.constructor==Object&&(K(me===void 0),K(T===m.length-1),me=Et,Et=void 0),!Tt(st,Et))return!1}return!H&&!me||St(H=H||{},me=me||{})}if(f.constructor===Object)return St(f,m);throw Error("Invalid type in JSPB array")}function kt(f){return new f.constructor(fr(f.g()))}function fr(f){if(Array.isArray(f)){for(var m=Array(f.length),T=0;T<f.length;T++){var H=f[T];H!=null&&(m[T]=typeof H=="object"?fr(K(H)):H)}return m}if(er&&f instanceof Uint8Array)return new Uint8Array(f);for(T in m={},f)(H=f[T])!=null&&(m[T]=typeof H=="object"?fr(K(H)):H);return m}it.toObjectList=Ue,it.toObjectExtension=function(f,m,T,H,me){for(var Se in T){var st=T[Se],Et=H.call(f,st);if(Et!=null){for(var Nr in st.Ba)if(st.Ba.hasOwnProperty(Nr))break;m[Nr]=st.Na?st.na?Ue(Et,st.Na,me):st.Na(me,Et):Et}}},it.serializeBinaryExtensions=function(f,m,T,H){for(var me in T){var Se=T[me],st=Se.Za;if(!Se.Aa)throw Error("Message extension present that was generated without binary serialization support");var Et=H.call(f,st);if(Et!=null)if(st.F()){if(!Se.Wa)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");Se.Aa.call(m,st.ma,Et,Se.Wa)}else Se.Aa.call(m,st.ma,Et)}},it.readBinaryExtension=function(f,m,T,H,me){var Se=T[m.c];if(Se){if(T=Se.Za,!Se.za)throw Error("Deserializing extension whose generated code does not support binary format");if(T.F()){var st=new T.la;Se.za.call(m,st,Se.Ab)}else st=Se.za.call(m);T.na&&!Se.Nb?(m=H.call(f,T))?m.push(st):me.call(f,T,[st]):me.call(f,T,st)}else m.C()},it.getField=ot,it.getRepeatedField=function(f,m){return ot(f,m)},it.getOptionalFloatingPointField=Dt,it.getBooleanField=Wt,it.getRepeatedFloatingPointField=function(f,m){var T=ot(f,m);if(f.a||(f.a={}),!f.a[m]){for(var H=0;H<T.length;H++)T[H]=+T[H];f.a[m]=!0}return T},it.getRepeatedBooleanField=function(f,m){var T=ot(f,m);if(f.a||(f.a={}),!f.a[m]){for(var H=0;H<T.length;H++)T[H]=!!T[H];f.a[m]=!0}return T},it.bytesAsB64=vt,it.bytesAsU8=Or,it.bytesListAsB64=function(f){return Rt(f),f.length&&typeof f[0]!="string"?E(f,vt):f},it.bytesListAsU8=function(f){return Rt(f),!f.length||f[0]instanceof Uint8Array?f:E(f,Or)},it.getFieldWithDefault=Ut,it.getBooleanFieldWithDefault=function(f,m,T){return(f=Wt(f,m))==null?T:f},it.getFloatingPointFieldWithDefault=function(f,m,T){return(f=Dt(f,m))==null?T:f},it.getFieldProto3=Ut,it.getMapField=function(f,m,T,H){if(f.f||(f.f={}),m in f.f)return f.f[m];var me=ot(f,m);if(!me){if(T)return;Wr(f,m,me=[])}return f.f[m]=new ie(me,H)},it.setField=Wr,it.setProto3IntField=function(f,m,T){return bt(f,m,T,0)},it.setProto3FloatField=function(f,m,T){return bt(f,m,T,0)},it.setProto3BooleanField=function(f,m,T){return bt(f,m,T,!1)},it.setProto3StringField=function(f,m,T){return bt(f,m,T,"")},it.setProto3BytesField=function(f,m,T){return bt(f,m,T,"")},it.setProto3EnumField=function(f,m,T){return bt(f,m,T,0)},it.setProto3StringIntField=function(f,m,T){return bt(f,m,T,"0")},it.addToRepeatedField=function(f,m,T,H){return ce(f,it),m=ot(f,m),H!=null?m.splice(H,0,T):m.push(T),f},it.setOneofField=_t,it.computeOneofCase=Br,it.getWrapperField=function(f,m,T,H){if(f.f||(f.f={}),!f.f[T]){var me=ot(f,T);(H||me)&&(f.f[T]=new m(me))}return f.f[T]},it.getRepeatedWrapperField=function(f,m,T){return Vt(f,m,T),(m=f.f[T])==pe&&(m=f.f[T]=[]),m},it.setWrapperField=function(f,m,T){ce(f,it),f.f||(f.f={});var H=T&&T.g();return f.f[m]=T,Wr(f,m,H)},it.setOneofWrapperField=function(f,m,T,H){ce(f,it),f.f||(f.f={});var me=H&&H.g();return f.f[m]=H,_t(f,m,T,me)},it.setRepeatedWrapperField=function(f,m,T){ce(f,it),f.f||(f.f={}),T=T||[];for(var H=[],me=0;me<T.length;me++)H[me]=T[me].g();return f.f[m]=T,Wr(f,m,H)},it.addToRepeatedWrapperField=function(f,m,T,H,me){Vt(f,H,m);var Se=f.f[m];return Se||(Se=f.f[m]=[]),T=T||new H,f=ot(f,m),me!=null?(Se.splice(me,0,T),f.splice(me,0,T.g())):(Se.push(T),f.push(T.g())),T},it.toMap=function(f,m,T,H){for(var me={},Se=0;Se<f.length;Se++)me[m.call(f[Se])]=T?T.call(f[Se],H,f[Se]):f[Se];return me},it.prototype.g=function(){return lt(this),this.u},it.prototype.toArray=it.prototype.g,it.prototype.toString=function(){return lt(this),this.u.toString()},it.prototype.getExtension=function(f){if(this.i){this.f||(this.f={});var m=f.ma;if(f.na){if(f.F())return this.f[m]||(this.f[m]=E(this.i[m]||[],function(T){return new f.la(T)})),this.f[m]}else if(f.F())return!this.f[m]&&this.i[m]&&(this.f[m]=new f.la(this.i[m])),this.f[m];return this.i[m]}},it.prototype.getExtension=it.prototype.getExtension,it.prototype.Kc=function(f,m){this.f||(this.f={}),ke(this);var T=f.ma;return f.na?(m=m||[],f.F()?(this.f[T]=m,this.i[T]=E(m,function(H){return H.g()})):this.i[T]=m):f.F()?(this.f[T]=m,this.i[T]=m&&m.g()):this.i[T]=m,this},it.prototype.setExtension=it.prototype.Kc,it.difference=function(f,m){if(!(f instanceof m.constructor))throw Error("Messages have different types.");var T=f.g();m=m.g();var H=[],me=0,Se=T.length>m.length?T.length:m.length;for(f.b&&(H[0]=f.b,me=1);me<Se;me++)Tt(T[me],m[me])||(H[me]=m[me]);return new f.constructor(H)},it.equals=function(f,m){return f==m||!(!f||!m)&&f instanceof m.constructor&&Tt(f.g(),m.g())},it.compareExtensions=St,it.compareFields=Tt,it.prototype.Bb=function(){return kt(this)},it.prototype.cloneMessage=it.prototype.Bb,it.prototype.clone=function(){return kt(this)},it.prototype.clone=it.prototype.clone,it.clone=function(f){return kt(f)},it.copyInto=function(f,m){ce(f,it),ce(m,it),K(f.constructor==m.constructor,"Copy source and target message should have the same type."),f=kt(f);for(var T=m.g(),H=f.g(),me=T.length=0;me<H.length;me++)T[me]=H[me];m.f=f.f,m.i=f.i},it.registerMessageType=function(f,m){m.we=f};var Gt={dump:function(f){return ce(f,it,"jspb.Message instance expected"),K(f.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),Gt.X(f)}};function tt(){this.a=[]}function yt(f,m){this.lo=f,this.hi=m}function gr(f,m){var T=65535&f,H=65535&m,me=m>>>16;for(m=T*H+65536*(T*me&65535)+65536*((f>>>=16)*H&65535),T=f*me+(T*me>>>16)+(f*H>>>16);4294967296<=m;)m-=4294967296,T+=1;return new yt(m>>>0,T>>>0)}function ar(f){for(var m=new yt(0,0),T=new yt(0,0),H=0;H<f.length;H++){if("0">f[H]||"9"<f[H])return null;T.lo=parseInt(f[H],10),m=m.eb(10).add(T)}return m}function Tr(f,m){this.lo=f,this.hi=m}function yr(f){var m=0<f.length&&f[0]=="-";return m&&(f=f.substring(1)),(f=ar(f))===null?null:(m&&(f=new yt(0,0).sub(f)),new Tr(f.lo,f.hi))}function ne(){this.c=[],this.b=0,this.a=new tt,this.h=[]}function an(f,m){var T=f.a.end();f.c.push(T),f.c.push(m),f.b+=T.length+m.length}function ir(f,m){return Je(f,m,2),m=f.a.end(),f.c.push(m),f.b+=m.length,m.push(f.b),m}function sr(f,m){var T=m.pop();for(K(0<=(T=f.b+f.a.length()-T));127<T;)m.push(127&T|128),T>>>=7,f.b++;m.push(T),f.b++}function Je(f,m,T){K(1<=m&&m==Math.floor(m)),f.a.j(8*m+T)}function In(f,m,T){T!=null&&(Je(f,m,0),f.a.j(T))}function dr(f,m,T){T!=null&&(Je(f,m,0),f.a.M(T))}_("jspb.debug.dump",Gt.dump,void 0),Gt.X=function(f){var m=ee(f);if(m=="number"||m=="string"||m=="boolean"||m=="null"||m=="undefined"||typeof Uint8Array<"u"&&f instanceof Uint8Array)return f;if(m=="array")return(function(sn,yn,xn){for(var Pa=[],kn=2;kn<arguments.length;++kn)Pa[kn-2]=arguments[kn];Array.isArray(sn)||L("Expected array but got %s: %s.",[ee(sn),sn],yn,Pa)})(f),E(f,Gt.X);if(f instanceof ie){for(var T={},H=(f=f.entries()).next();!H.done;H=f.next())T[H.value[0]]=Gt.X(H.value[1]);return T}ce(f,it,"Only messages expected: "+f);var me={$name:(m=f.constructor).name||m.displayName};for(Et in m.prototype){var Se=/^get([A-Z]\w*)/.exec(Et);if(Se&&Et!="getExtension"&&Et!="getJsPbMessageId"){var st="has"+Se[1];f[st]&&!f[st]()||(st=f[Et](),me[Gt.$a(Se[1])]=Gt.X(st))}}if(f.extensionObject_)return me.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",me;for(H in m.extensions)if(/^\d+$/.test(H)){st=m.extensions[H];var Et=f.getExtension(st);Se=void 0,st=st.Ba;var Nr=[],Dr=0;for(Se in st)Nr[Dr++]=Se;Se=Nr[0],Et!=null&&(T||(T=me.$extensions={}),T[Gt.$a(Se)]=Gt.X(Et))}return me},Gt.$a=function(f){return f.replace(/^[A-Z]/,function(m){return m.toLowerCase()})},_("jspb.BinaryEncoder",tt,void 0),tt.prototype.length=function(){return this.a.length},tt.prototype.length=tt.prototype.length,tt.prototype.end=function(){var f=this.a;return this.a=[],f},tt.prototype.end=tt.prototype.end,tt.prototype.l=function(f,m){for(K(f==Math.floor(f)),K(m==Math.floor(m)),K(0<=f&&4294967296>f),K(0<=m&&4294967296>m);0<m||127<f;)this.a.push(127&f|128),f=(f>>>7|m<<25)>>>0,m>>>=7;this.a.push(f)},tt.prototype.writeSplitVarint64=tt.prototype.l,tt.prototype.A=function(f,m){K(f==Math.floor(f)),K(m==Math.floor(m)),K(0<=f&&4294967296>f),K(0<=m&&4294967296>m),this.s(f),this.s(m)},tt.prototype.writeSplitFixed64=tt.prototype.A,tt.prototype.j=function(f){for(K(f==Math.floor(f)),K(0<=f&&4294967296>f);127<f;)this.a.push(127&f|128),f>>>=7;this.a.push(f)},tt.prototype.writeUnsignedVarint32=tt.prototype.j,tt.prototype.M=function(f){if(K(f==Math.floor(f)),K(-2147483648<=f&&2147483648>f),0<=f)this.j(f);else{for(var m=0;9>m;m++)this.a.push(127&f|128),f>>=7;this.a.push(1)}},tt.prototype.writeSignedVarint32=tt.prototype.M,tt.prototype.va=function(f){K(f==Math.floor(f)),K(0<=f&&18446744073709552e3>f),We(f),this.l(Te,C)},tt.prototype.writeUnsignedVarint64=tt.prototype.va,tt.prototype.ua=function(f){K(f==Math.floor(f)),K(-9223372036854776e3<=f&&9223372036854776e3>f),We(f),this.l(Te,C)},tt.prototype.writeSignedVarint64=tt.prototype.ua,tt.prototype.wa=function(f){K(f==Math.floor(f)),K(-2147483648<=f&&2147483648>f),this.j((f<<1^f>>31)>>>0)},tt.prototype.writeZigzagVarint32=tt.prototype.wa,tt.prototype.xa=function(f){K(f==Math.floor(f)),K(-9223372036854776e3<=f&&9223372036854776e3>f),ge(f),this.l(Te,C)},tt.prototype.writeZigzagVarint64=tt.prototype.xa,tt.prototype.Ta=function(f){this.W(Ft(f))},tt.prototype.writeZigzagVarint64String=tt.prototype.Ta,tt.prototype.W=function(f){var m=this;$e(f),ft(Te,C,function(T,H){m.l(T>>>0,H>>>0)})},tt.prototype.writeZigzagVarintHash64=tt.prototype.W,tt.prototype.be=function(f){K(f==Math.floor(f)),K(0<=f&&256>f),this.a.push(f>>>0&255)},tt.prototype.writeUint8=tt.prototype.be,tt.prototype.ae=function(f){K(f==Math.floor(f)),K(0<=f&&65536>f),this.a.push(f>>>0&255),this.a.push(f>>>8&255)},tt.prototype.writeUint16=tt.prototype.ae,tt.prototype.s=function(f){K(f==Math.floor(f)),K(0<=f&&4294967296>f),this.a.push(f>>>0&255),this.a.push(f>>>8&255),this.a.push(f>>>16&255),this.a.push(f>>>24&255)},tt.prototype.writeUint32=tt.prototype.s,tt.prototype.V=function(f){K(f==Math.floor(f)),K(0<=f&&18446744073709552e3>f),ue(f),this.s(Te),this.s(C)},tt.prototype.writeUint64=tt.prototype.V,tt.prototype.Qc=function(f){K(f==Math.floor(f)),K(-128<=f&&128>f),this.a.push(f>>>0&255)},tt.prototype.writeInt8=tt.prototype.Qc,tt.prototype.Pc=function(f){K(f==Math.floor(f)),K(-32768<=f&&32768>f),this.a.push(f>>>0&255),this.a.push(f>>>8&255)},tt.prototype.writeInt16=tt.prototype.Pc,tt.prototype.S=function(f){K(f==Math.floor(f)),K(-2147483648<=f&&2147483648>f),this.a.push(f>>>0&255),this.a.push(f>>>8&255),this.a.push(f>>>16&255),this.a.push(f>>>24&255)},tt.prototype.writeInt32=tt.prototype.S,tt.prototype.T=function(f){K(f==Math.floor(f)),K(-9223372036854776e3<=f&&9223372036854776e3>f),We(f),this.A(Te,C)},tt.prototype.writeInt64=tt.prototype.T,tt.prototype.ka=function(f){K(f==Math.floor(f)),K(-9223372036854776e3<=+f&&9223372036854776e3>+f),$e(Ft(f)),this.A(Te,C)},tt.prototype.writeInt64String=tt.prototype.ka,tt.prototype.L=function(f){K(f===1/0||f===-1/0||isNaN(f)||-34028234663852886e22<=f&&34028234663852886e22>=f),Ie(f),this.s(Te)},tt.prototype.writeFloat=tt.prototype.L,tt.prototype.J=function(f){K(f===1/0||f===-1/0||isNaN(f)||-17976931348623157e292<=f&&17976931348623157e292>=f),ze(f),this.s(Te),this.s(C)},tt.prototype.writeDouble=tt.prototype.J,tt.prototype.I=function(f){K(typeof f=="boolean"||typeof f=="number"),this.a.push(f?1:0)},tt.prototype.writeBool=tt.prototype.I,tt.prototype.R=function(f){K(f==Math.floor(f)),K(-2147483648<=f&&2147483648>f),this.M(f)},tt.prototype.writeEnum=tt.prototype.R,tt.prototype.ja=function(f){this.a.push.apply(this.a,f)},tt.prototype.writeBytes=tt.prototype.ja,tt.prototype.N=function(f){$e(f),this.l(Te,C)},tt.prototype.writeVarintHash64=tt.prototype.N,tt.prototype.K=function(f){$e(f),this.s(Te),this.s(C)},tt.prototype.writeFixedHash64=tt.prototype.K,tt.prototype.U=function(f){var m=this.a.length;(function(Se,st,Et){for(var Nr=[],Dr=2;Dr<arguments.length;++Dr)Nr[Dr-2]=arguments[Dr];typeof Se!="string"&&L("Expected string but got %s: %s.",[ee(Se),Se],st,Nr)})(f);for(var T=0;T<f.length;T++){var H=f.charCodeAt(T);if(128>H)this.a.push(H);else if(2048>H)this.a.push(H>>6|192),this.a.push(63&H|128);else if(65536>H)if(55296<=H&&56319>=H&&T+1<f.length){var me=f.charCodeAt(T+1);56320<=me&&57343>=me&&(H=1024*(H-55296)+me-56320+65536,this.a.push(H>>18|240),this.a.push(H>>12&63|128),this.a.push(H>>6&63|128),this.a.push(63&H|128),T++)}else this.a.push(H>>12|224),this.a.push(H>>6&63|128),this.a.push(63&H|128)}return this.a.length-m},tt.prototype.writeString=tt.prototype.U,_("jspb.arith.UInt64",yt,void 0),yt.prototype.cmp=function(f){return this.hi<f.hi||this.hi==f.hi&&this.lo<f.lo?-1:this.hi==f.hi&&this.lo==f.lo?0:1},yt.prototype.cmp=yt.prototype.cmp,yt.prototype.La=function(){return new yt((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},yt.prototype.rightShift=yt.prototype.La,yt.prototype.Da=function(){return new yt(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},yt.prototype.leftShift=yt.prototype.Da,yt.prototype.cb=function(){return!!(2147483648&this.hi)},yt.prototype.msb=yt.prototype.cb,yt.prototype.Ob=function(){return!!(1&this.lo)},yt.prototype.lsb=yt.prototype.Ob,yt.prototype.Ua=function(){return this.lo==0&&this.hi==0},yt.prototype.zero=yt.prototype.Ua,yt.prototype.add=function(f){return new yt((this.lo+f.lo&4294967295)>>>0>>>0,((this.hi+f.hi&4294967295)>>>0)+(4294967296<=this.lo+f.lo?1:0)>>>0)},yt.prototype.add=yt.prototype.add,yt.prototype.sub=function(f){return new yt((this.lo-f.lo&4294967295)>>>0>>>0,((this.hi-f.hi&4294967295)>>>0)-(0>this.lo-f.lo?1:0)>>>0)},yt.prototype.sub=yt.prototype.sub,yt.mul32x32=gr,yt.prototype.eb=function(f){var m=gr(this.lo,f);return(f=gr(this.hi,f)).hi=f.lo,f.lo=0,m.add(f)},yt.prototype.mul=yt.prototype.eb,yt.prototype.Xa=function(f){if(f==0)return[];var m=new yt(0,0),T=new yt(this.lo,this.hi);f=new yt(f,0);for(var H=new yt(1,0);!f.cb();)f=f.Da(),H=H.Da();for(;!H.Ua();)0>=f.cmp(T)&&(m=m.add(H),T=T.sub(f)),f=f.La(),H=H.La();return[m,T]},yt.prototype.div=yt.prototype.Xa,yt.prototype.toString=function(){for(var f="",m=this;!m.Ua();){var T=(m=m.Xa(10))[0];f=m[1].lo+f,m=T}return f==""&&(f="0"),f},yt.prototype.toString=yt.prototype.toString,yt.fromString=ar,yt.prototype.clone=function(){return new yt(this.lo,this.hi)},yt.prototype.clone=yt.prototype.clone,_("jspb.arith.Int64",Tr,void 0),Tr.prototype.add=function(f){return new Tr((this.lo+f.lo&4294967295)>>>0>>>0,((this.hi+f.hi&4294967295)>>>0)+(4294967296<=this.lo+f.lo?1:0)>>>0)},Tr.prototype.add=Tr.prototype.add,Tr.prototype.sub=function(f){return new Tr((this.lo-f.lo&4294967295)>>>0>>>0,((this.hi-f.hi&4294967295)>>>0)-(0>this.lo-f.lo?1:0)>>>0)},Tr.prototype.sub=Tr.prototype.sub,Tr.prototype.clone=function(){return new Tr(this.lo,this.hi)},Tr.prototype.clone=Tr.prototype.clone,Tr.prototype.toString=function(){var f=(2147483648&this.hi)!=0,m=new yt(this.lo,this.hi);return f&&(m=new yt(0,0).sub(m)),(f?"-":"")+m.toString()},Tr.prototype.toString=Tr.prototype.toString,Tr.fromString=yr,_("jspb.BinaryWriter",ne,void 0),ne.prototype.pb=function(f,m,T){an(this,f.subarray(m,T))},ne.prototype.writeSerializedMessage=ne.prototype.pb,ne.prototype.Pb=function(f,m,T){f!=null&&m!=null&&T!=null&&this.pb(f,m,T)},ne.prototype.maybeWriteSerializedMessage=ne.prototype.Pb,ne.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},ne.prototype.reset=ne.prototype.reset,ne.prototype.ab=function(){K(this.h.length==0);for(var f=new Uint8Array(this.b+this.a.length()),m=this.c,T=m.length,H=0,me=0;me<T;me++){var Se=m[me];f.set(Se,H),H+=Se.length}return m=this.a.end(),f.set(m,H),K((H+=m.length)==f.length),this.c=[f],f},ne.prototype.getResultBuffer=ne.prototype.ab,ne.prototype.Kb=function(f){return P(this.ab(),f)},ne.prototype.getResultBase64String=ne.prototype.Kb,ne.prototype.Va=function(f){this.h.push(ir(this,f))},ne.prototype.beginSubMessage=ne.prototype.Va,ne.prototype.Ya=function(){K(0<=this.h.length),sr(this,this.h.pop())},ne.prototype.endSubMessage=ne.prototype.Ya,ne.prototype.Nc=function(f,m,T){switch(f){case 1:this.J(m,T);break;case 2:this.L(m,T);break;case 3:this.T(m,T);break;case 4:this.V(m,T);break;case 5:this.S(m,T);break;case 6:this.Qa(m,T);break;case 7:this.Pa(m,T);break;case 8:this.I(m,T);break;case 9:this.U(m,T);break;case 10:Y("Group field type not supported in writeAny()");break;case 11:Y("Message field type not supported in writeAny()");break;case 12:this.ja(m,T);break;case 13:this.s(m,T);break;case 14:this.R(m,T);break;case 15:this.Ra(m,T);break;case 16:this.Sa(m,T);break;case 17:this.rb(m,T);break;case 18:this.sb(m,T);break;case 30:this.K(m,T);break;case 31:this.N(m,T);break;default:Y("Invalid field type in writeAny()")}},ne.prototype.writeAny=ne.prototype.Nc,ne.prototype.S=function(f,m){m!=null&&(K(-2147483648<=m&&2147483648>m),dr(this,f,m))},ne.prototype.writeInt32=ne.prototype.S,ne.prototype.ob=function(f,m){m!=null&&(K(-2147483648<=(m=parseInt(m,10))&&2147483648>m),dr(this,f,m))},ne.prototype.writeInt32String=ne.prototype.ob,ne.prototype.T=function(f,m){m!=null&&(K(-9223372036854776e3<=m&&9223372036854776e3>m),m!=null&&(Je(this,f,0),this.a.ua(m)))},ne.prototype.writeInt64=ne.prototype.T,ne.prototype.ka=function(f,m){m!=null&&(m=yr(m),Je(this,f,0),this.a.l(m.lo,m.hi))},ne.prototype.writeInt64String=ne.prototype.ka,ne.prototype.s=function(f,m){m!=null&&(K(0<=m&&4294967296>m),In(this,f,m))},ne.prototype.writeUint32=ne.prototype.s,ne.prototype.ub=function(f,m){m!=null&&(K(0<=(m=parseInt(m,10))&&4294967296>m),In(this,f,m))},ne.prototype.writeUint32String=ne.prototype.ub,ne.prototype.V=function(f,m){m!=null&&(K(0<=m&&18446744073709552e3>m),m!=null&&(Je(this,f,0),this.a.va(m)))},ne.prototype.writeUint64=ne.prototype.V,ne.prototype.vb=function(f,m){m!=null&&(m=ar(m),Je(this,f,0),this.a.l(m.lo,m.hi))},ne.prototype.writeUint64String=ne.prototype.vb,ne.prototype.rb=function(f,m){m!=null&&(K(-2147483648<=m&&2147483648>m),m!=null&&(Je(this,f,0),this.a.wa(m)))},ne.prototype.writeSint32=ne.prototype.rb,ne.prototype.sb=function(f,m){m!=null&&(K(-9223372036854776e3<=m&&9223372036854776e3>m),m!=null&&(Je(this,f,0),this.a.xa(m)))},ne.prototype.writeSint64=ne.prototype.sb,ne.prototype.$d=function(f,m){m!=null&&m!=null&&(Je(this,f,0),this.a.W(m))},ne.prototype.writeSintHash64=ne.prototype.$d,ne.prototype.Zd=function(f,m){m!=null&&m!=null&&(Je(this,f,0),this.a.Ta(m))},ne.prototype.writeSint64String=ne.prototype.Zd,ne.prototype.Pa=function(f,m){m!=null&&(K(0<=m&&4294967296>m),Je(this,f,5),this.a.s(m))},ne.prototype.writeFixed32=ne.prototype.Pa,ne.prototype.Qa=function(f,m){m!=null&&(K(0<=m&&18446744073709552e3>m),Je(this,f,1),this.a.V(m))},ne.prototype.writeFixed64=ne.prototype.Qa,ne.prototype.nb=function(f,m){m!=null&&(m=ar(m),Je(this,f,1),this.a.A(m.lo,m.hi))},ne.prototype.writeFixed64String=ne.prototype.nb,ne.prototype.Ra=function(f,m){m!=null&&(K(-2147483648<=m&&2147483648>m),Je(this,f,5),this.a.S(m))},ne.prototype.writeSfixed32=ne.prototype.Ra,ne.prototype.Sa=function(f,m){m!=null&&(K(-9223372036854776e3<=m&&9223372036854776e3>m),Je(this,f,1),this.a.T(m))},ne.prototype.writeSfixed64=ne.prototype.Sa,ne.prototype.qb=function(f,m){m!=null&&(m=yr(m),Je(this,f,1),this.a.A(m.lo,m.hi))},ne.prototype.writeSfixed64String=ne.prototype.qb,ne.prototype.L=function(f,m){m!=null&&(Je(this,f,5),this.a.L(m))},ne.prototype.writeFloat=ne.prototype.L,ne.prototype.J=function(f,m){m!=null&&(Je(this,f,1),this.a.J(m))},ne.prototype.writeDouble=ne.prototype.J,ne.prototype.I=function(f,m){m!=null&&(K(typeof m=="boolean"||typeof m=="number"),Je(this,f,0),this.a.I(m))},ne.prototype.writeBool=ne.prototype.I,ne.prototype.R=function(f,m){m!=null&&(K(-2147483648<=m&&2147483648>m),Je(this,f,0),this.a.M(m))},ne.prototype.writeEnum=ne.prototype.R,ne.prototype.U=function(f,m){m!=null&&(f=ir(this,f),this.a.U(m),sr(this,f))},ne.prototype.writeString=ne.prototype.U,ne.prototype.ja=function(f,m){m!=null&&(m=He(m),Je(this,f,2),this.a.j(m.length),an(this,m))},ne.prototype.writeBytes=ne.prototype.ja,ne.prototype.Rc=function(f,m,T){m!=null&&(f=ir(this,f),T(m,this),sr(this,f))},ne.prototype.writeMessage=ne.prototype.Rc,ne.prototype.Sc=function(f,m,T){m!=null&&(Je(this,1,3),Je(this,2,0),this.a.M(f),f=ir(this,3),T(m,this),sr(this,f),Je(this,1,4))},ne.prototype.writeMessageSet=ne.prototype.Sc,ne.prototype.Oc=function(f,m,T){m!=null&&(Je(this,f,3),T(m,this),Je(this,f,4))},ne.prototype.writeGroup=ne.prototype.Oc,ne.prototype.K=function(f,m){m!=null&&(K(m.length==8),Je(this,f,1),this.a.K(m))},ne.prototype.writeFixedHash64=ne.prototype.K,ne.prototype.N=function(f,m){m!=null&&(K(m.length==8),Je(this,f,0),this.a.N(m))},ne.prototype.writeVarintHash64=ne.prototype.N,ne.prototype.A=function(f,m,T){Je(this,f,1),this.a.A(m,T)},ne.prototype.writeSplitFixed64=ne.prototype.A,ne.prototype.l=function(f,m,T){Je(this,f,0),this.a.l(m,T)},ne.prototype.writeSplitVarint64=ne.prototype.l,ne.prototype.tb=function(f,m,T){Je(this,f,0);var H=this.a;ft(m,T,function(me,Se){H.l(me>>>0,Se>>>0)})},ne.prototype.writeSplitZigzagVarint64=ne.prototype.tb,ne.prototype.Ed=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)dr(this,f,m[T])},ne.prototype.writeRepeatedInt32=ne.prototype.Ed,ne.prototype.Fd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.ob(f,m[T])},ne.prototype.writeRepeatedInt32String=ne.prototype.Fd,ne.prototype.Gd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++){var H=m[T];H!=null&&(Je(this,f,0),this.a.ua(H))}},ne.prototype.writeRepeatedInt64=ne.prototype.Gd,ne.prototype.Qd=function(f,m,T,H){if(m!=null)for(var me=0;me<m.length;me++)this.A(f,T(m[me]),H(m[me]))},ne.prototype.writeRepeatedSplitFixed64=ne.prototype.Qd,ne.prototype.Rd=function(f,m,T,H){if(m!=null)for(var me=0;me<m.length;me++)this.l(f,T(m[me]),H(m[me]))},ne.prototype.writeRepeatedSplitVarint64=ne.prototype.Rd,ne.prototype.Sd=function(f,m,T,H){if(m!=null)for(var me=0;me<m.length;me++)this.tb(f,T(m[me]),H(m[me]))},ne.prototype.writeRepeatedSplitZigzagVarint64=ne.prototype.Sd,ne.prototype.Hd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.ka(f,m[T])},ne.prototype.writeRepeatedInt64String=ne.prototype.Hd,ne.prototype.Ud=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)In(this,f,m[T])},ne.prototype.writeRepeatedUint32=ne.prototype.Ud,ne.prototype.Vd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.ub(f,m[T])},ne.prototype.writeRepeatedUint32String=ne.prototype.Vd,ne.prototype.Wd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++){var H=m[T];H!=null&&(Je(this,f,0),this.a.va(H))}},ne.prototype.writeRepeatedUint64=ne.prototype.Wd,ne.prototype.Xd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.vb(f,m[T])},ne.prototype.writeRepeatedUint64String=ne.prototype.Xd,ne.prototype.Md=function(f,m){if(m!=null)for(var T=0;T<m.length;T++){var H=m[T];H!=null&&(Je(this,f,0),this.a.wa(H))}},ne.prototype.writeRepeatedSint32=ne.prototype.Md,ne.prototype.Nd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++){var H=m[T];H!=null&&(Je(this,f,0),this.a.xa(H))}},ne.prototype.writeRepeatedSint64=ne.prototype.Nd,ne.prototype.Od=function(f,m){if(m!=null)for(var T=0;T<m.length;T++){var H=m[T];H!=null&&(Je(this,f,0),this.a.Ta(H))}},ne.prototype.writeRepeatedSint64String=ne.prototype.Od,ne.prototype.Pd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++){var H=m[T];H!=null&&(Je(this,f,0),this.a.W(H))}},ne.prototype.writeRepeatedSintHash64=ne.prototype.Pd,ne.prototype.yd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.Pa(f,m[T])},ne.prototype.writeRepeatedFixed32=ne.prototype.yd,ne.prototype.zd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.Qa(f,m[T])},ne.prototype.writeRepeatedFixed64=ne.prototype.zd,ne.prototype.Ad=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.nb(f,m[T])},ne.prototype.writeRepeatedFixed64String=ne.prototype.Ad,ne.prototype.Jd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.Ra(f,m[T])},ne.prototype.writeRepeatedSfixed32=ne.prototype.Jd,ne.prototype.Kd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.Sa(f,m[T])},ne.prototype.writeRepeatedSfixed64=ne.prototype.Kd,ne.prototype.Ld=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.qb(f,m[T])},ne.prototype.writeRepeatedSfixed64String=ne.prototype.Ld,ne.prototype.Cd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.L(f,m[T])},ne.prototype.writeRepeatedFloat=ne.prototype.Cd,ne.prototype.wd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.J(f,m[T])},ne.prototype.writeRepeatedDouble=ne.prototype.wd,ne.prototype.ud=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.I(f,m[T])},ne.prototype.writeRepeatedBool=ne.prototype.ud,ne.prototype.xd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.R(f,m[T])},ne.prototype.writeRepeatedEnum=ne.prototype.xd,ne.prototype.Td=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.U(f,m[T])},ne.prototype.writeRepeatedString=ne.prototype.Td,ne.prototype.vd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.ja(f,m[T])},ne.prototype.writeRepeatedBytes=ne.prototype.vd,ne.prototype.Id=function(f,m,T){if(m!=null)for(var H=0;H<m.length;H++){var me=ir(this,f);T(m[H],this),sr(this,me)}},ne.prototype.writeRepeatedMessage=ne.prototype.Id,ne.prototype.Dd=function(f,m,T){if(m!=null)for(var H=0;H<m.length;H++)Je(this,f,3),T(m[H],this),Je(this,f,4)},ne.prototype.writeRepeatedGroup=ne.prototype.Dd,ne.prototype.Bd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.K(f,m[T])},ne.prototype.writeRepeatedFixedHash64=ne.prototype.Bd,ne.prototype.Yd=function(f,m){if(m!=null)for(var T=0;T<m.length;T++)this.N(f,m[T])},ne.prototype.writeRepeatedVarintHash64=ne.prototype.Yd,ne.prototype.ad=function(f,m){if(m!=null&&m.length){f=ir(this,f);for(var T=0;T<m.length;T++)this.a.M(m[T]);sr(this,f)}},ne.prototype.writePackedInt32=ne.prototype.ad,ne.prototype.bd=function(f,m){if(m!=null&&m.length){f=ir(this,f);for(var T=0;T<m.length;T++)this.a.M(parseInt(m[T],10));sr(this,f)}},ne.prototype.writePackedInt32String=ne.prototype.bd,ne.prototype.cd=function(f,m){if(m!=null&&m.length){f=ir(this,f);for(var T=0;T<m.length;T++)this.a.ua(m[T]);sr(this,f)}},ne.prototype.writePackedInt64=ne.prototype.cd,ne.prototype.md=function(f,m,T,H){if(m!=null){f=ir(this,f);for(var me=0;me<m.length;me++)this.a.A(T(m[me]),H(m[me]));sr(this,f)}},ne.prototype.writePackedSplitFixed64=ne.prototype.md,ne.prototype.nd=function(f,m,T,H){if(m!=null){f=ir(this,f);for(var me=0;me<m.length;me++)this.a.l(T(m[me]),H(m[me]));sr(this,f)}},ne.prototype.writePackedSplitVarint64=ne.prototype.nd,ne.prototype.od=function(f,m,T,H){if(m!=null){f=ir(this,f);for(var me=this.a,Se=0;Se<m.length;Se++)ft(T(m[Se]),H(m[Se]),function(st,Et){me.l(st>>>0,Et>>>0)});sr(this,f)}},ne.prototype.writePackedSplitZigzagVarint64=ne.prototype.od,ne.prototype.dd=function(f,m){if(m!=null&&m.length){f=ir(this,f);for(var T=0;T<m.length;T++){var H=yr(m[T]);this.a.l(H.lo,H.hi)}sr(this,f)}},ne.prototype.writePackedInt64String=ne.prototype.dd,ne.prototype.pd=function(f,m){if(m!=null&&m.length){f=ir(this,f);for(var T=0;T<m.length;T++)this.a.j(m[T]);sr(this,f)}},ne.prototype.writePackedUint32=ne.prototype.pd,ne.prototype.qd=function(f,m){if(m!=null&&m.length){f=ir(this,f);for(var T=0;T<m.length;T++)this.a.j(parseInt(m[T],10));sr(this,f)}},ne.prototype.writePackedUint32String=ne.prototype.qd,ne.prototype.rd=function(f,m){if(m!=null&&m.length){f=ir(this,f);for(var T=0;T<m.length;T++)this.a.va(m[T]);sr(this,f)}},ne.prototype.writePackedUint64=ne.prototype.rd,ne.prototype.sd=function(f,m){if(m!=null&&m.length){f=ir(this,f);for(var T=0;T<m.length;T++){var H=ar(m[T]);this.a.l(H.lo,H.hi)}sr(this,f)}},ne.prototype.writePackedUint64String=ne.prototype.sd,ne.prototype.hd=function(f,m){if(m!=null&&m.length){f=ir(this,f);for(var T=0;T<m.length;T++)this.a.wa(m[T]);sr(this,f)}},ne.prototype.writePackedSint32=ne.prototype.hd,ne.prototype.jd=function(f,m){if(m!=null&&m.length){f=ir(this,f);for(var T=0;T<m.length;T++)this.a.xa(m[T]);sr(this,f)}},ne.prototype.writePackedSint64=ne.prototype.jd,ne.prototype.kd=function(f,m){if(m!=null&&m.length){f=ir(this,f);for(var T=0;T<m.length;T++)this.a.W(Ft(m[T]));sr(this,f)}},ne.prototype.writePackedSint64String=ne.prototype.kd,ne.prototype.ld=function(f,m){if(m!=null&&m.length){f=ir(this,f);for(var T=0;T<m.length;T++)this.a.W(m[T]);sr(this,f)}},ne.prototype.writePackedSintHash64=ne.prototype.ld,ne.prototype.Wc=function(f,m){if(m!=null&&m.length)for(Je(this,f,2),this.a.j(4*m.length),f=0;f<m.length;f++)this.a.s(m[f])},ne.prototype.writePackedFixed32=ne.prototype.Wc,ne.prototype.Xc=function(f,m){if(m!=null&&m.length)for(Je(this,f,2),this.a.j(8*m.length),f=0;f<m.length;f++)this.a.V(m[f])},ne.prototype.writePackedFixed64=ne.prototype.Xc,ne.prototype.Yc=function(f,m){if(m!=null&&m.length)for(Je(this,f,2),this.a.j(8*m.length),f=0;f<m.length;f++){var T=ar(m[f]);this.a.A(T.lo,T.hi)}},ne.prototype.writePackedFixed64String=ne.prototype.Yc,ne.prototype.ed=function(f,m){if(m!=null&&m.length)for(Je(this,f,2),this.a.j(4*m.length),f=0;f<m.length;f++)this.a.S(m[f])},ne.prototype.writePackedSfixed32=ne.prototype.ed,ne.prototype.fd=function(f,m){if(m!=null&&m.length)for(Je(this,f,2),this.a.j(8*m.length),f=0;f<m.length;f++)this.a.T(m[f])},ne.prototype.writePackedSfixed64=ne.prototype.fd,ne.prototype.gd=function(f,m){if(m!=null&&m.length)for(Je(this,f,2),this.a.j(8*m.length),f=0;f<m.length;f++)this.a.ka(m[f])},ne.prototype.writePackedSfixed64String=ne.prototype.gd,ne.prototype.$c=function(f,m){if(m!=null&&m.length)for(Je(this,f,2),this.a.j(4*m.length),f=0;f<m.length;f++)this.a.L(m[f])},ne.prototype.writePackedFloat=ne.prototype.$c,ne.prototype.Uc=function(f,m){if(m!=null&&m.length)for(Je(this,f,2),this.a.j(8*m.length),f=0;f<m.length;f++)this.a.J(m[f])},ne.prototype.writePackedDouble=ne.prototype.Uc,ne.prototype.Tc=function(f,m){if(m!=null&&m.length)for(Je(this,f,2),this.a.j(m.length),f=0;f<m.length;f++)this.a.I(m[f])},ne.prototype.writePackedBool=ne.prototype.Tc,ne.prototype.Vc=function(f,m){if(m!=null&&m.length){f=ir(this,f);for(var T=0;T<m.length;T++)this.a.R(m[T]);sr(this,f)}},ne.prototype.writePackedEnum=ne.prototype.Vc,ne.prototype.Zc=function(f,m){if(m!=null&&m.length)for(Je(this,f,2),this.a.j(8*m.length),f=0;f<m.length;f++)this.a.K(m[f])},ne.prototype.writePackedFixedHash64=ne.prototype.Zc,ne.prototype.td=function(f,m){if(m!=null&&m.length){f=ir(this,f);for(var T=0;T<m.length;T++)this.a.N(m[T]);sr(this,f)}},ne.prototype.writePackedVarintHash64=ne.prototype.td,v.debug=Gt,v.Map=ie,v.Message=it,v.BinaryReader=se,v.BinaryWriter=ne,v.ExtensionFieldInfo=or,v.ExtensionFieldBinaryInfo=tr,v.exportSymbol=function(f,m,T){_(f,m,T)},v.inherits=function(f,m){function T(){}T.prototype=m.prototype,f.prototype=new T,f.prototype.constructor=f},v.object={extend:function(f,m){for(var T,H,me=1;me<arguments.length;me++){for(T in H=arguments[me])f[T]=H[T];for(var Se=0;Se<Ce.length;Se++)T=Ce[Se],Object.prototype.hasOwnProperty.call(H,T)&&(f[T]=H[T])}}},v.typeOf=ee},6177:(V,v,k)=>{var i=k(5595),W=i,B=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||B!==void 0&&B||typeof self<"u"&&self||(function(){return this}).call(null)||Function("return this")();W.exportSymbol("proto.google.protobuf.Any",null,B),proto.google.protobuf.Any=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(proto.google.protobuf.Any,i.Message),W.DEBUG&&!COMPILED&&(proto.google.protobuf.Any.displayName="proto.google.protobuf.Any"),i.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Any.prototype.toObject=function(y){return proto.google.protobuf.Any.toObject(y,this)},proto.google.protobuf.Any.toObject=function(y,t){var o={typeUrl:i.Message.getFieldWithDefault(t,1,""),value:t.getValue_asB64()};return y&&(o.$jspbMessageInstance=t),o}),proto.google.protobuf.Any.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new proto.google.protobuf.Any;return proto.google.protobuf.Any.deserializeBinaryFromReader(o,t)},proto.google.protobuf.Any.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readString();y.setTypeUrl(o);break;case 2:o=t.readBytes(),y.setValue(o);break;default:t.skipField()}return y},proto.google.protobuf.Any.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return proto.google.protobuf.Any.serializeBinaryToWriter(this,y),y.getResultBuffer()},proto.google.protobuf.Any.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getTypeUrl()).length>0&&t.writeString(1,o),(o=y.getValue_asU8()).length>0&&t.writeBytes(2,o)},proto.google.protobuf.Any.prototype.getTypeUrl=function(){return i.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.Any.prototype.setTypeUrl=function(y){return i.Message.setProto3StringField(this,1,y)},proto.google.protobuf.Any.prototype.getValue=function(){return i.Message.getFieldWithDefault(this,2,"")},proto.google.protobuf.Any.prototype.getValue_asB64=function(){return i.Message.bytesAsB64(this.getValue())},proto.google.protobuf.Any.prototype.getValue_asU8=function(){return i.Message.bytesAsU8(this.getValue())},proto.google.protobuf.Any.prototype.setValue=function(y){return i.Message.setProto3BytesField(this,2,y)},W.object.extend(v,proto.google.protobuf),proto.google.protobuf.Any.prototype.getTypeName=function(){return this.getTypeUrl().split("/").pop()},proto.google.protobuf.Any.prototype.pack=function(y,t,o){o||(o="type.googleapis.com/"),o.substr(-1)!="/"?this.setTypeUrl(o+"/"+t):this.setTypeUrl(o+t),this.setValue(y)},proto.google.protobuf.Any.prototype.unpack=function(y,t){return this.getTypeName()==t?y(this.getValue_asU8()):null}},8020:(V,v,k)=>{var i=k(5595),W=i,B=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||B!==void 0&&B||typeof self<"u"&&self||(function(){return this}).call(null)||Function("return this")(),y=k(6177);W.object.extend(proto,y),W.exportSymbol("TronWebProto.Account",null,B),W.exportSymbol("TronWebProto.Account.AccountResource",null,B),W.exportSymbol("TronWebProto.Account.Frozen",null,B),W.exportSymbol("TronWebProto.AccountId",null,B),W.exportSymbol("TronWebProto.AccountType",null,B),W.exportSymbol("TronWebProto.DelegatedResource",null,B),W.exportSymbol("TronWebProto.Exchange",null,B),W.exportSymbol("TronWebProto.Key",null,B),W.exportSymbol("TronWebProto.MarketOrderDetail",null,B),W.exportSymbol("TronWebProto.Permission",null,B),W.exportSymbol("TronWebProto.Permission.PermissionType",null,B),W.exportSymbol("TronWebProto.Proposal",null,B),W.exportSymbol("TronWebProto.Proposal.State",null,B),W.exportSymbol("TronWebProto.Transaction",null,B),W.exportSymbol("TronWebProto.Transaction.Contract",null,B),W.exportSymbol("TronWebProto.Transaction.Contract.ContractType",null,B),W.exportSymbol("TronWebProto.Transaction.Result",null,B),W.exportSymbol("TronWebProto.Transaction.Result.code",null,B),W.exportSymbol("TronWebProto.Transaction.Result.contractResult",null,B),W.exportSymbol("TronWebProto.Transaction.raw",null,B),W.exportSymbol("TronWebProto.Vote",null,B),W.exportSymbol("TronWebProto.Votes",null,B),W.exportSymbol("TronWebProto.Witness",null,B),W.exportSymbol("TronWebProto.authority",null,B),TronWebProto.AccountId=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.AccountId,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.AccountId.displayName="TronWebProto.AccountId"),TronWebProto.Vote=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.Vote,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.Vote.displayName="TronWebProto.Vote"),TronWebProto.Proposal=function(t){i.Message.initialize(this,t,0,-1,TronWebProto.Proposal.repeatedFields_,null)},W.inherits(TronWebProto.Proposal,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.Proposal.displayName="TronWebProto.Proposal"),TronWebProto.Exchange=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.Exchange,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.Exchange.displayName="TronWebProto.Exchange"),TronWebProto.Account=function(t){i.Message.initialize(this,t,0,-1,TronWebProto.Account.repeatedFields_,null)},W.inherits(TronWebProto.Account,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.Account.displayName="TronWebProto.Account"),TronWebProto.Account.Frozen=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.Account.Frozen,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.Account.Frozen.displayName="TronWebProto.Account.Frozen"),TronWebProto.Account.AccountResource=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.Account.AccountResource,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.Account.AccountResource.displayName="TronWebProto.Account.AccountResource"),TronWebProto.Key=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.Key,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.Key.displayName="TronWebProto.Key"),TronWebProto.DelegatedResource=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.DelegatedResource,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.DelegatedResource.displayName="TronWebProto.DelegatedResource"),TronWebProto.authority=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.authority,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.authority.displayName="TronWebProto.authority"),TronWebProto.Permission=function(t){i.Message.initialize(this,t,0,-1,TronWebProto.Permission.repeatedFields_,null)},W.inherits(TronWebProto.Permission,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.Permission.displayName="TronWebProto.Permission"),TronWebProto.Witness=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.Witness,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.Witness.displayName="TronWebProto.Witness"),TronWebProto.Votes=function(t){i.Message.initialize(this,t,0,-1,TronWebProto.Votes.repeatedFields_,null)},W.inherits(TronWebProto.Votes,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.Votes.displayName="TronWebProto.Votes"),TronWebProto.MarketOrderDetail=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.MarketOrderDetail,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.MarketOrderDetail.displayName="TronWebProto.MarketOrderDetail"),TronWebProto.Transaction=function(t){i.Message.initialize(this,t,0,-1,TronWebProto.Transaction.repeatedFields_,null)},W.inherits(TronWebProto.Transaction,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.Transaction.displayName="TronWebProto.Transaction"),TronWebProto.Transaction.Contract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.Transaction.Contract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.Transaction.Contract.displayName="TronWebProto.Transaction.Contract"),TronWebProto.Transaction.Result=function(t){i.Message.initialize(this,t,0,-1,TronWebProto.Transaction.Result.repeatedFields_,null)},W.inherits(TronWebProto.Transaction.Result,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.Transaction.Result.displayName="TronWebProto.Transaction.Result"),TronWebProto.Transaction.raw=function(t){i.Message.initialize(this,t,0,-1,TronWebProto.Transaction.raw.repeatedFields_,null)},W.inherits(TronWebProto.Transaction.raw,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.Transaction.raw.displayName="TronWebProto.Transaction.raw"),i.Message.GENERATE_TO_OBJECT&&(TronWebProto.AccountId.prototype.toObject=function(t){return TronWebProto.AccountId.toObject(t,this)},TronWebProto.AccountId.toObject=function(t,o){var s={name:o.getName_asB64(),address:o.getAddress_asB64()};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.AccountId.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.AccountId;return TronWebProto.AccountId.deserializeBinaryFromReader(s,o)},TronWebProto.AccountId.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setName(s);break;case 2:s=o.readBytes(),t.setAddress(s);break;default:o.skipField()}return t},TronWebProto.AccountId.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.AccountId.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.AccountId.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getName_asU8()).length>0&&o.writeBytes(1,s),(s=t.getAddress_asU8()).length>0&&o.writeBytes(2,s)},TronWebProto.AccountId.prototype.getName=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.AccountId.prototype.getName_asB64=function(){return i.Message.bytesAsB64(this.getName())},TronWebProto.AccountId.prototype.getName_asU8=function(){return i.Message.bytesAsU8(this.getName())},TronWebProto.AccountId.prototype.setName=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.AccountId.prototype.getAddress=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.AccountId.prototype.getAddress_asB64=function(){return i.Message.bytesAsB64(this.getAddress())},TronWebProto.AccountId.prototype.getAddress_asU8=function(){return i.Message.bytesAsU8(this.getAddress())},TronWebProto.AccountId.prototype.setAddress=function(t){return i.Message.setProto3BytesField(this,2,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.Vote.prototype.toObject=function(t){return TronWebProto.Vote.toObject(t,this)},TronWebProto.Vote.toObject=function(t,o){var s={voteAddress:o.getVoteAddress_asB64(),voteCount:i.Message.getFieldWithDefault(o,2,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.Vote.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.Vote;return TronWebProto.Vote.deserializeBinaryFromReader(s,o)},TronWebProto.Vote.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setVoteAddress(s);break;case 2:s=o.readInt64(),t.setVoteCount(s);break;default:o.skipField()}return t},TronWebProto.Vote.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.Vote.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.Vote.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getVoteAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getVoteCount())!==0&&o.writeInt64(2,s)},TronWebProto.Vote.prototype.getVoteAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.Vote.prototype.getVoteAddress_asB64=function(){return i.Message.bytesAsB64(this.getVoteAddress())},TronWebProto.Vote.prototype.getVoteAddress_asU8=function(){return i.Message.bytesAsU8(this.getVoteAddress())},TronWebProto.Vote.prototype.setVoteAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.Vote.prototype.getVoteCount=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.Vote.prototype.setVoteCount=function(t){return i.Message.setProto3IntField(this,2,t)},TronWebProto.Proposal.repeatedFields_=[6],i.Message.GENERATE_TO_OBJECT&&(TronWebProto.Proposal.prototype.toObject=function(t){return TronWebProto.Proposal.toObject(t,this)},TronWebProto.Proposal.toObject=function(t,o){var s,G={proposalId:i.Message.getFieldWithDefault(o,1,0),proposerAddress:o.getProposerAddress_asB64(),parametersMap:(s=o.getParametersMap())?s.toObject(t,void 0):[],expirationTime:i.Message.getFieldWithDefault(o,4,0),createTime:i.Message.getFieldWithDefault(o,5,0),approvalsList:o.getApprovalsList_asB64(),state:i.Message.getFieldWithDefault(o,7,0)};return t&&(G.$jspbMessageInstance=o),G}),TronWebProto.Proposal.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.Proposal;return TronWebProto.Proposal.deserializeBinaryFromReader(s,o)},TronWebProto.Proposal.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readInt64();t.setProposalId(s);break;case 2:s=o.readBytes(),t.setProposerAddress(s);break;case 3:s=t.getParametersMap(),o.readMessage(s,function(G,_){i.Map.deserializeBinary(G,_,i.BinaryReader.prototype.readInt64,i.BinaryReader.prototype.readInt64,null,0,0)});break;case 4:s=o.readInt64(),t.setExpirationTime(s);break;case 5:s=o.readInt64(),t.setCreateTime(s);break;case 6:s=o.readBytes(),t.addApprovals(s);break;case 7:s=o.readEnum(),t.setState(s);break;default:o.skipField()}return t},TronWebProto.Proposal.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.Proposal.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.Proposal.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getProposalId())!==0&&o.writeInt64(1,s),(s=t.getProposerAddress_asU8()).length>0&&o.writeBytes(2,s),(s=t.getParametersMap(!0))&&s.getLength()>0&&s.serializeBinary(3,o,i.BinaryWriter.prototype.writeInt64,i.BinaryWriter.prototype.writeInt64),(s=t.getExpirationTime())!==0&&o.writeInt64(4,s),(s=t.getCreateTime())!==0&&o.writeInt64(5,s),(s=t.getApprovalsList_asU8()).length>0&&o.writeRepeatedBytes(6,s),(s=t.getState())!==0&&o.writeEnum(7,s)},TronWebProto.Proposal.State={PENDING:0,DISAPPROVED:1,APPROVED:2,CANCELED:3},TronWebProto.Proposal.prototype.getProposalId=function(){return i.Message.getFieldWithDefault(this,1,0)},TronWebProto.Proposal.prototype.setProposalId=function(t){return i.Message.setProto3IntField(this,1,t)},TronWebProto.Proposal.prototype.getProposerAddress=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.Proposal.prototype.getProposerAddress_asB64=function(){return i.Message.bytesAsB64(this.getProposerAddress())},TronWebProto.Proposal.prototype.getProposerAddress_asU8=function(){return i.Message.bytesAsU8(this.getProposerAddress())},TronWebProto.Proposal.prototype.setProposerAddress=function(t){return i.Message.setProto3BytesField(this,2,t)},TronWebProto.Proposal.prototype.getParametersMap=function(t){return i.Message.getMapField(this,3,t,null)},TronWebProto.Proposal.prototype.clearParametersMap=function(){return this.getParametersMap().clear(),this},TronWebProto.Proposal.prototype.getExpirationTime=function(){return i.Message.getFieldWithDefault(this,4,0)},TronWebProto.Proposal.prototype.setExpirationTime=function(t){return i.Message.setProto3IntField(this,4,t)},TronWebProto.Proposal.prototype.getCreateTime=function(){return i.Message.getFieldWithDefault(this,5,0)},TronWebProto.Proposal.prototype.setCreateTime=function(t){return i.Message.setProto3IntField(this,5,t)},TronWebProto.Proposal.prototype.getApprovalsList=function(){return i.Message.getRepeatedField(this,6)},TronWebProto.Proposal.prototype.getApprovalsList_asB64=function(){return i.Message.bytesListAsB64(this.getApprovalsList())},TronWebProto.Proposal.prototype.getApprovalsList_asU8=function(){return i.Message.bytesListAsU8(this.getApprovalsList())},TronWebProto.Proposal.prototype.setApprovalsList=function(t){return i.Message.setField(this,6,t||[])},TronWebProto.Proposal.prototype.addApprovals=function(t,o){return i.Message.addToRepeatedField(this,6,t,o)},TronWebProto.Proposal.prototype.clearApprovalsList=function(){return this.setApprovalsList([])},TronWebProto.Proposal.prototype.getState=function(){return i.Message.getFieldWithDefault(this,7,0)},TronWebProto.Proposal.prototype.setState=function(t){return i.Message.setProto3EnumField(this,7,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.Exchange.prototype.toObject=function(t){return TronWebProto.Exchange.toObject(t,this)},TronWebProto.Exchange.toObject=function(t,o){var s={exchangeId:i.Message.getFieldWithDefault(o,1,0),creatorAddress:o.getCreatorAddress_asB64(),createTime:i.Message.getFieldWithDefault(o,3,0),firstTokenId:o.getFirstTokenId_asB64(),firstTokenBalance:i.Message.getFieldWithDefault(o,7,0),secondTokenId:o.getSecondTokenId_asB64(),secondTokenBalance:i.Message.getFieldWithDefault(o,9,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.Exchange.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.Exchange;return TronWebProto.Exchange.deserializeBinaryFromReader(s,o)},TronWebProto.Exchange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readInt64();t.setExchangeId(s);break;case 2:s=o.readBytes(),t.setCreatorAddress(s);break;case 3:s=o.readInt64(),t.setCreateTime(s);break;case 6:s=o.readBytes(),t.setFirstTokenId(s);break;case 7:s=o.readInt64(),t.setFirstTokenBalance(s);break;case 8:s=o.readBytes(),t.setSecondTokenId(s);break;case 9:s=o.readInt64(),t.setSecondTokenBalance(s);break;default:o.skipField()}return t},TronWebProto.Exchange.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.Exchange.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.Exchange.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getExchangeId())!==0&&o.writeInt64(1,s),(s=t.getCreatorAddress_asU8()).length>0&&o.writeBytes(2,s),(s=t.getCreateTime())!==0&&o.writeInt64(3,s),(s=t.getFirstTokenId_asU8()).length>0&&o.writeBytes(6,s),(s=t.getFirstTokenBalance())!==0&&o.writeInt64(7,s),(s=t.getSecondTokenId_asU8()).length>0&&o.writeBytes(8,s),(s=t.getSecondTokenBalance())!==0&&o.writeInt64(9,s)},TronWebProto.Exchange.prototype.getExchangeId=function(){return i.Message.getFieldWithDefault(this,1,0)},TronWebProto.Exchange.prototype.setExchangeId=function(t){return i.Message.setProto3IntField(this,1,t)},TronWebProto.Exchange.prototype.getCreatorAddress=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.Exchange.prototype.getCreatorAddress_asB64=function(){return i.Message.bytesAsB64(this.getCreatorAddress())},TronWebProto.Exchange.prototype.getCreatorAddress_asU8=function(){return i.Message.bytesAsU8(this.getCreatorAddress())},TronWebProto.Exchange.prototype.setCreatorAddress=function(t){return i.Message.setProto3BytesField(this,2,t)},TronWebProto.Exchange.prototype.getCreateTime=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.Exchange.prototype.setCreateTime=function(t){return i.Message.setProto3IntField(this,3,t)},TronWebProto.Exchange.prototype.getFirstTokenId=function(){return i.Message.getFieldWithDefault(this,6,"")},TronWebProto.Exchange.prototype.getFirstTokenId_asB64=function(){return i.Message.bytesAsB64(this.getFirstTokenId())},TronWebProto.Exchange.prototype.getFirstTokenId_asU8=function(){return i.Message.bytesAsU8(this.getFirstTokenId())},TronWebProto.Exchange.prototype.setFirstTokenId=function(t){return i.Message.setProto3BytesField(this,6,t)},TronWebProto.Exchange.prototype.getFirstTokenBalance=function(){return i.Message.getFieldWithDefault(this,7,0)},TronWebProto.Exchange.prototype.setFirstTokenBalance=function(t){return i.Message.setProto3IntField(this,7,t)},TronWebProto.Exchange.prototype.getSecondTokenId=function(){return i.Message.getFieldWithDefault(this,8,"")},TronWebProto.Exchange.prototype.getSecondTokenId_asB64=function(){return i.Message.bytesAsB64(this.getSecondTokenId())},TronWebProto.Exchange.prototype.getSecondTokenId_asU8=function(){return i.Message.bytesAsU8(this.getSecondTokenId())},TronWebProto.Exchange.prototype.setSecondTokenId=function(t){return i.Message.setProto3BytesField(this,8,t)},TronWebProto.Exchange.prototype.getSecondTokenBalance=function(){return i.Message.getFieldWithDefault(this,9,0)},TronWebProto.Exchange.prototype.setSecondTokenBalance=function(t){return i.Message.setProto3IntField(this,9,t)},TronWebProto.Account.repeatedFields_=[5,7,16,33],i.Message.GENERATE_TO_OBJECT&&(TronWebProto.Account.prototype.toObject=function(t){return TronWebProto.Account.toObject(t,this)},TronWebProto.Account.toObject=function(t,o){var s,G={accountName:o.getAccountName_asB64(),type:i.Message.getFieldWithDefault(o,2,0),address:o.getAddress_asB64(),balance:i.Message.getFieldWithDefault(o,4,0),votesList:i.Message.toObjectList(o.getVotesList(),TronWebProto.Vote.toObject,t),assetMap:(s=o.getAssetMap())?s.toObject(t,void 0):[],assetv2Map:(s=o.getAssetv2Map())?s.toObject(t,void 0):[],frozenList:i.Message.toObjectList(o.getFrozenList(),TronWebProto.Account.Frozen.toObject,t),netUsage:i.Message.getFieldWithDefault(o,8,0),acquiredDelegatedFrozenBalanceForBandwidth:i.Message.getFieldWithDefault(o,41,0),delegatedFrozenBalanceForBandwidth:i.Message.getFieldWithDefault(o,42,0),oldTronPower:i.Message.getFieldWithDefault(o,46,0),tronPower:(s=o.getTronPower())&&TronWebProto.Account.Frozen.toObject(t,s),assetOptimized:i.Message.getBooleanFieldWithDefault(o,60,!1),createTime:i.Message.getFieldWithDefault(o,9,0),latestOprationTime:i.Message.getFieldWithDefault(o,10,0),allowance:i.Message.getFieldWithDefault(o,11,0),latestWithdrawTime:i.Message.getFieldWithDefault(o,12,0),code:o.getCode_asB64(),isWitness:i.Message.getBooleanFieldWithDefault(o,14,!1),isCommittee:i.Message.getBooleanFieldWithDefault(o,15,!1),frozenSupplyList:i.Message.toObjectList(o.getFrozenSupplyList(),TronWebProto.Account.Frozen.toObject,t),assetIssuedName:o.getAssetIssuedName_asB64(),assetIssuedId:o.getAssetIssuedId_asB64(),latestAssetOperationTimeMap:(s=o.getLatestAssetOperationTimeMap())?s.toObject(t,void 0):[],latestAssetOperationTimev2Map:(s=o.getLatestAssetOperationTimev2Map())?s.toObject(t,void 0):[],freeNetUsage:i.Message.getFieldWithDefault(o,19,0),freeAssetNetUsageMap:(s=o.getFreeAssetNetUsageMap())?s.toObject(t,void 0):[],freeAssetNetUsagev2Map:(s=o.getFreeAssetNetUsagev2Map())?s.toObject(t,void 0):[],latestConsumeTime:i.Message.getFieldWithDefault(o,21,0),latestConsumeFreeTime:i.Message.getFieldWithDefault(o,22,0),accountId:o.getAccountId_asB64(),accountResource:(s=o.getAccountResource())&&TronWebProto.Account.AccountResource.toObject(t,s),codehash:o.getCodehash_asB64(),ownerPermission:(s=o.getOwnerPermission())&&TronWebProto.Permission.toObject(t,s),witnessPermission:(s=o.getWitnessPermission())&&TronWebProto.Permission.toObject(t,s),activePermissionList:i.Message.toObjectList(o.getActivePermissionList(),TronWebProto.Permission.toObject,t)};return t&&(G.$jspbMessageInstance=o),G}),TronWebProto.Account.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.Account;return TronWebProto.Account.deserializeBinaryFromReader(s,o)},TronWebProto.Account.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setAccountName(s);break;case 2:s=o.readEnum(),t.setType(s);break;case 3:s=o.readBytes(),t.setAddress(s);break;case 4:s=o.readInt64(),t.setBalance(s);break;case 5:s=new TronWebProto.Vote,o.readMessage(s,TronWebProto.Vote.deserializeBinaryFromReader),t.addVotes(s);break;case 6:s=t.getAssetMap(),o.readMessage(s,function(G,_){i.Map.deserializeBinary(G,_,i.BinaryReader.prototype.readString,i.BinaryReader.prototype.readInt64,null,"",0)});break;case 56:s=t.getAssetv2Map(),o.readMessage(s,function(G,_){i.Map.deserializeBinary(G,_,i.BinaryReader.prototype.readString,i.BinaryReader.prototype.readInt64,null,"",0)});break;case 7:s=new TronWebProto.Account.Frozen,o.readMessage(s,TronWebProto.Account.Frozen.deserializeBinaryFromReader),t.addFrozen(s);break;case 8:s=o.readInt64(),t.setNetUsage(s);break;case 41:s=o.readInt64(),t.setAcquiredDelegatedFrozenBalanceForBandwidth(s);break;case 42:s=o.readInt64(),t.setDelegatedFrozenBalanceForBandwidth(s);break;case 46:s=o.readInt64(),t.setOldTronPower(s);break;case 47:s=new TronWebProto.Account.Frozen,o.readMessage(s,TronWebProto.Account.Frozen.deserializeBinaryFromReader),t.setTronPower(s);break;case 60:s=o.readBool(),t.setAssetOptimized(s);break;case 9:s=o.readInt64(),t.setCreateTime(s);break;case 10:s=o.readInt64(),t.setLatestOprationTime(s);break;case 11:s=o.readInt64(),t.setAllowance(s);break;case 12:s=o.readInt64(),t.setLatestWithdrawTime(s);break;case 13:s=o.readBytes(),t.setCode(s);break;case 14:s=o.readBool(),t.setIsWitness(s);break;case 15:s=o.readBool(),t.setIsCommittee(s);break;case 16:s=new TronWebProto.Account.Frozen,o.readMessage(s,TronWebProto.Account.Frozen.deserializeBinaryFromReader),t.addFrozenSupply(s);break;case 17:s=o.readBytes(),t.setAssetIssuedName(s);break;case 57:s=o.readBytes(),t.setAssetIssuedId(s);break;case 18:s=t.getLatestAssetOperationTimeMap(),o.readMessage(s,function(G,_){i.Map.deserializeBinary(G,_,i.BinaryReader.prototype.readString,i.BinaryReader.prototype.readInt64,null,"",0)});break;case 58:s=t.getLatestAssetOperationTimev2Map(),o.readMessage(s,function(G,_){i.Map.deserializeBinary(G,_,i.BinaryReader.prototype.readString,i.BinaryReader.prototype.readInt64,null,"",0)});break;case 19:s=o.readInt64(),t.setFreeNetUsage(s);break;case 20:s=t.getFreeAssetNetUsageMap(),o.readMessage(s,function(G,_){i.Map.deserializeBinary(G,_,i.BinaryReader.prototype.readString,i.BinaryReader.prototype.readInt64,null,"",0)});break;case 59:s=t.getFreeAssetNetUsagev2Map(),o.readMessage(s,function(G,_){i.Map.deserializeBinary(G,_,i.BinaryReader.prototype.readString,i.BinaryReader.prototype.readInt64,null,"",0)});break;case 21:s=o.readInt64(),t.setLatestConsumeTime(s);break;case 22:s=o.readInt64(),t.setLatestConsumeFreeTime(s);break;case 23:s=o.readBytes(),t.setAccountId(s);break;case 26:s=new TronWebProto.Account.AccountResource,o.readMessage(s,TronWebProto.Account.AccountResource.deserializeBinaryFromReader),t.setAccountResource(s);break;case 30:s=o.readBytes(),t.setCodehash(s);break;case 31:s=new TronWebProto.Permission,o.readMessage(s,TronWebProto.Permission.deserializeBinaryFromReader),t.setOwnerPermission(s);break;case 32:s=new TronWebProto.Permission,o.readMessage(s,TronWebProto.Permission.deserializeBinaryFromReader),t.setWitnessPermission(s);break;case 33:s=new TronWebProto.Permission,o.readMessage(s,TronWebProto.Permission.deserializeBinaryFromReader),t.addActivePermission(s);break;default:o.skipField()}return t},TronWebProto.Account.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.Account.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.Account.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getAccountName_asU8()).length>0&&o.writeBytes(1,s),(s=t.getType())!==0&&o.writeEnum(2,s),(s=t.getAddress_asU8()).length>0&&o.writeBytes(3,s),(s=t.getBalance())!==0&&o.writeInt64(4,s),(s=t.getVotesList()).length>0&&o.writeRepeatedMessage(5,s,TronWebProto.Vote.serializeBinaryToWriter),(s=t.getAssetMap(!0))&&s.getLength()>0&&s.serializeBinary(6,o,i.BinaryWriter.prototype.writeString,i.BinaryWriter.prototype.writeInt64),(s=t.getAssetv2Map(!0))&&s.getLength()>0&&s.serializeBinary(56,o,i.BinaryWriter.prototype.writeString,i.BinaryWriter.prototype.writeInt64),(s=t.getFrozenList()).length>0&&o.writeRepeatedMessage(7,s,TronWebProto.Account.Frozen.serializeBinaryToWriter),(s=t.getNetUsage())!==0&&o.writeInt64(8,s),(s=t.getAcquiredDelegatedFrozenBalanceForBandwidth())!==0&&o.writeInt64(41,s),(s=t.getDelegatedFrozenBalanceForBandwidth())!==0&&o.writeInt64(42,s),(s=t.getOldTronPower())!==0&&o.writeInt64(46,s),(s=t.getTronPower())!=null&&o.writeMessage(47,s,TronWebProto.Account.Frozen.serializeBinaryToWriter),(s=t.getAssetOptimized())&&o.writeBool(60,s),(s=t.getCreateTime())!==0&&o.writeInt64(9,s),(s=t.getLatestOprationTime())!==0&&o.writeInt64(10,s),(s=t.getAllowance())!==0&&o.writeInt64(11,s),(s=t.getLatestWithdrawTime())!==0&&o.writeInt64(12,s),(s=t.getCode_asU8()).length>0&&o.writeBytes(13,s),(s=t.getIsWitness())&&o.writeBool(14,s),(s=t.getIsCommittee())&&o.writeBool(15,s),(s=t.getFrozenSupplyList()).length>0&&o.writeRepeatedMessage(16,s,TronWebProto.Account.Frozen.serializeBinaryToWriter),(s=t.getAssetIssuedName_asU8()).length>0&&o.writeBytes(17,s),(s=t.getAssetIssuedId_asU8()).length>0&&o.writeBytes(57,s),(s=t.getLatestAssetOperationTimeMap(!0))&&s.getLength()>0&&s.serializeBinary(18,o,i.BinaryWriter.prototype.writeString,i.BinaryWriter.prototype.writeInt64),(s=t.getLatestAssetOperationTimev2Map(!0))&&s.getLength()>0&&s.serializeBinary(58,o,i.BinaryWriter.prototype.writeString,i.BinaryWriter.prototype.writeInt64),(s=t.getFreeNetUsage())!==0&&o.writeInt64(19,s),(s=t.getFreeAssetNetUsageMap(!0))&&s.getLength()>0&&s.serializeBinary(20,o,i.BinaryWriter.prototype.writeString,i.BinaryWriter.prototype.writeInt64),(s=t.getFreeAssetNetUsagev2Map(!0))&&s.getLength()>0&&s.serializeBinary(59,o,i.BinaryWriter.prototype.writeString,i.BinaryWriter.prototype.writeInt64),(s=t.getLatestConsumeTime())!==0&&o.writeInt64(21,s),(s=t.getLatestConsumeFreeTime())!==0&&o.writeInt64(22,s),(s=t.getAccountId_asU8()).length>0&&o.writeBytes(23,s),(s=t.getAccountResource())!=null&&o.writeMessage(26,s,TronWebProto.Account.AccountResource.serializeBinaryToWriter),(s=t.getCodehash_asU8()).length>0&&o.writeBytes(30,s),(s=t.getOwnerPermission())!=null&&o.writeMessage(31,s,TronWebProto.Permission.serializeBinaryToWriter),(s=t.getWitnessPermission())!=null&&o.writeMessage(32,s,TronWebProto.Permission.serializeBinaryToWriter),(s=t.getActivePermissionList()).length>0&&o.writeRepeatedMessage(33,s,TronWebProto.Permission.serializeBinaryToWriter)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.Account.Frozen.prototype.toObject=function(t){return TronWebProto.Account.Frozen.toObject(t,this)},TronWebProto.Account.Frozen.toObject=function(t,o){var s={frozenBalance:i.Message.getFieldWithDefault(o,1,0),expireTime:i.Message.getFieldWithDefault(o,2,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.Account.Frozen.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.Account.Frozen;return TronWebProto.Account.Frozen.deserializeBinaryFromReader(s,o)},TronWebProto.Account.Frozen.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readInt64();t.setFrozenBalance(s);break;case 2:s=o.readInt64(),t.setExpireTime(s);break;default:o.skipField()}return t},TronWebProto.Account.Frozen.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.Account.Frozen.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.Account.Frozen.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getFrozenBalance())!==0&&o.writeInt64(1,s),(s=t.getExpireTime())!==0&&o.writeInt64(2,s)},TronWebProto.Account.Frozen.prototype.getFrozenBalance=function(){return i.Message.getFieldWithDefault(this,1,0)},TronWebProto.Account.Frozen.prototype.setFrozenBalance=function(t){return i.Message.setProto3IntField(this,1,t)},TronWebProto.Account.Frozen.prototype.getExpireTime=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.Account.Frozen.prototype.setExpireTime=function(t){return i.Message.setProto3IntField(this,2,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.Account.AccountResource.prototype.toObject=function(t){return TronWebProto.Account.AccountResource.toObject(t,this)},TronWebProto.Account.AccountResource.toObject=function(t,o){var s,G={energyUsage:i.Message.getFieldWithDefault(o,1,0),frozenBalanceForEnergy:(s=o.getFrozenBalanceForEnergy())&&TronWebProto.Account.Frozen.toObject(t,s),latestConsumeTimeForEnergy:i.Message.getFieldWithDefault(o,3,0),acquiredDelegatedFrozenBalanceForEnergy:i.Message.getFieldWithDefault(o,4,0),delegatedFrozenBalanceForEnergy:i.Message.getFieldWithDefault(o,5,0),storageLimit:i.Message.getFieldWithDefault(o,6,0),storageUsage:i.Message.getFieldWithDefault(o,7,0),latestExchangeStorageTime:i.Message.getFieldWithDefault(o,8,0)};return t&&(G.$jspbMessageInstance=o),G}),TronWebProto.Account.AccountResource.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.Account.AccountResource;return TronWebProto.Account.AccountResource.deserializeBinaryFromReader(s,o)},TronWebProto.Account.AccountResource.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readInt64();t.setEnergyUsage(s);break;case 2:s=new TronWebProto.Account.Frozen,o.readMessage(s,TronWebProto.Account.Frozen.deserializeBinaryFromReader),t.setFrozenBalanceForEnergy(s);break;case 3:s=o.readInt64(),t.setLatestConsumeTimeForEnergy(s);break;case 4:s=o.readInt64(),t.setAcquiredDelegatedFrozenBalanceForEnergy(s);break;case 5:s=o.readInt64(),t.setDelegatedFrozenBalanceForEnergy(s);break;case 6:s=o.readInt64(),t.setStorageLimit(s);break;case 7:s=o.readInt64(),t.setStorageUsage(s);break;case 8:s=o.readInt64(),t.setLatestExchangeStorageTime(s);break;default:o.skipField()}return t},TronWebProto.Account.AccountResource.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.Account.AccountResource.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.Account.AccountResource.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getEnergyUsage())!==0&&o.writeInt64(1,s),(s=t.getFrozenBalanceForEnergy())!=null&&o.writeMessage(2,s,TronWebProto.Account.Frozen.serializeBinaryToWriter),(s=t.getLatestConsumeTimeForEnergy())!==0&&o.writeInt64(3,s),(s=t.getAcquiredDelegatedFrozenBalanceForEnergy())!==0&&o.writeInt64(4,s),(s=t.getDelegatedFrozenBalanceForEnergy())!==0&&o.writeInt64(5,s),(s=t.getStorageLimit())!==0&&o.writeInt64(6,s),(s=t.getStorageUsage())!==0&&o.writeInt64(7,s),(s=t.getLatestExchangeStorageTime())!==0&&o.writeInt64(8,s)},TronWebProto.Account.AccountResource.prototype.getEnergyUsage=function(){return i.Message.getFieldWithDefault(this,1,0)},TronWebProto.Account.AccountResource.prototype.setEnergyUsage=function(t){return i.Message.setProto3IntField(this,1,t)},TronWebProto.Account.AccountResource.prototype.getFrozenBalanceForEnergy=function(){return i.Message.getWrapperField(this,TronWebProto.Account.Frozen,2)},TronWebProto.Account.AccountResource.prototype.setFrozenBalanceForEnergy=function(t){return i.Message.setWrapperField(this,2,t)},TronWebProto.Account.AccountResource.prototype.clearFrozenBalanceForEnergy=function(){return this.setFrozenBalanceForEnergy(void 0)},TronWebProto.Account.AccountResource.prototype.hasFrozenBalanceForEnergy=function(){return i.Message.getField(this,2)!=null},TronWebProto.Account.AccountResource.prototype.getLatestConsumeTimeForEnergy=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.Account.AccountResource.prototype.setLatestConsumeTimeForEnergy=function(t){return i.Message.setProto3IntField(this,3,t)},TronWebProto.Account.AccountResource.prototype.getAcquiredDelegatedFrozenBalanceForEnergy=function(){return i.Message.getFieldWithDefault(this,4,0)},TronWebProto.Account.AccountResource.prototype.setAcquiredDelegatedFrozenBalanceForEnergy=function(t){return i.Message.setProto3IntField(this,4,t)},TronWebProto.Account.AccountResource.prototype.getDelegatedFrozenBalanceForEnergy=function(){return i.Message.getFieldWithDefault(this,5,0)},TronWebProto.Account.AccountResource.prototype.setDelegatedFrozenBalanceForEnergy=function(t){return i.Message.setProto3IntField(this,5,t)},TronWebProto.Account.AccountResource.prototype.getStorageLimit=function(){return i.Message.getFieldWithDefault(this,6,0)},TronWebProto.Account.AccountResource.prototype.setStorageLimit=function(t){return i.Message.setProto3IntField(this,6,t)},TronWebProto.Account.AccountResource.prototype.getStorageUsage=function(){return i.Message.getFieldWithDefault(this,7,0)},TronWebProto.Account.AccountResource.prototype.setStorageUsage=function(t){return i.Message.setProto3IntField(this,7,t)},TronWebProto.Account.AccountResource.prototype.getLatestExchangeStorageTime=function(){return i.Message.getFieldWithDefault(this,8,0)},TronWebProto.Account.AccountResource.prototype.setLatestExchangeStorageTime=function(t){return i.Message.setProto3IntField(this,8,t)},TronWebProto.Account.prototype.getAccountName=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.Account.prototype.getAccountName_asB64=function(){return i.Message.bytesAsB64(this.getAccountName())},TronWebProto.Account.prototype.getAccountName_asU8=function(){return i.Message.bytesAsU8(this.getAccountName())},TronWebProto.Account.prototype.setAccountName=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.Account.prototype.getType=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.Account.prototype.setType=function(t){return i.Message.setProto3EnumField(this,2,t)},TronWebProto.Account.prototype.getAddress=function(){return i.Message.getFieldWithDefault(this,3,"")},TronWebProto.Account.prototype.getAddress_asB64=function(){return i.Message.bytesAsB64(this.getAddress())},TronWebProto.Account.prototype.getAddress_asU8=function(){return i.Message.bytesAsU8(this.getAddress())},TronWebProto.Account.prototype.setAddress=function(t){return i.Message.setProto3BytesField(this,3,t)},TronWebProto.Account.prototype.getBalance=function(){return i.Message.getFieldWithDefault(this,4,0)},TronWebProto.Account.prototype.setBalance=function(t){return i.Message.setProto3IntField(this,4,t)},TronWebProto.Account.prototype.getVotesList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.Vote,5)},TronWebProto.Account.prototype.setVotesList=function(t){return i.Message.setRepeatedWrapperField(this,5,t)},TronWebProto.Account.prototype.addVotes=function(t,o){return i.Message.addToRepeatedWrapperField(this,5,t,TronWebProto.Vote,o)},TronWebProto.Account.prototype.clearVotesList=function(){return this.setVotesList([])},TronWebProto.Account.prototype.getAssetMap=function(t){return i.Message.getMapField(this,6,t,null)},TronWebProto.Account.prototype.clearAssetMap=function(){return this.getAssetMap().clear(),this},TronWebProto.Account.prototype.getAssetv2Map=function(t){return i.Message.getMapField(this,56,t,null)},TronWebProto.Account.prototype.clearAssetv2Map=function(){return this.getAssetv2Map().clear(),this},TronWebProto.Account.prototype.getFrozenList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.Account.Frozen,7)},TronWebProto.Account.prototype.setFrozenList=function(t){return i.Message.setRepeatedWrapperField(this,7,t)},TronWebProto.Account.prototype.addFrozen=function(t,o){return i.Message.addToRepeatedWrapperField(this,7,t,TronWebProto.Account.Frozen,o)},TronWebProto.Account.prototype.clearFrozenList=function(){return this.setFrozenList([])},TronWebProto.Account.prototype.getNetUsage=function(){return i.Message.getFieldWithDefault(this,8,0)},TronWebProto.Account.prototype.setNetUsage=function(t){return i.Message.setProto3IntField(this,8,t)},TronWebProto.Account.prototype.getAcquiredDelegatedFrozenBalanceForBandwidth=function(){return i.Message.getFieldWithDefault(this,41,0)},TronWebProto.Account.prototype.setAcquiredDelegatedFrozenBalanceForBandwidth=function(t){return i.Message.setProto3IntField(this,41,t)},TronWebProto.Account.prototype.getDelegatedFrozenBalanceForBandwidth=function(){return i.Message.getFieldWithDefault(this,42,0)},TronWebProto.Account.prototype.setDelegatedFrozenBalanceForBandwidth=function(t){return i.Message.setProto3IntField(this,42,t)},TronWebProto.Account.prototype.getOldTronPower=function(){return i.Message.getFieldWithDefault(this,46,0)},TronWebProto.Account.prototype.setOldTronPower=function(t){return i.Message.setProto3IntField(this,46,t)},TronWebProto.Account.prototype.getTronPower=function(){return i.Message.getWrapperField(this,TronWebProto.Account.Frozen,47)},TronWebProto.Account.prototype.setTronPower=function(t){return i.Message.setWrapperField(this,47,t)},TronWebProto.Account.prototype.clearTronPower=function(){return this.setTronPower(void 0)},TronWebProto.Account.prototype.hasTronPower=function(){return i.Message.getField(this,47)!=null},TronWebProto.Account.prototype.getAssetOptimized=function(){return i.Message.getBooleanFieldWithDefault(this,60,!1)},TronWebProto.Account.prototype.setAssetOptimized=function(t){return i.Message.setProto3BooleanField(this,60,t)},TronWebProto.Account.prototype.getCreateTime=function(){return i.Message.getFieldWithDefault(this,9,0)},TronWebProto.Account.prototype.setCreateTime=function(t){return i.Message.setProto3IntField(this,9,t)},TronWebProto.Account.prototype.getLatestOprationTime=function(){return i.Message.getFieldWithDefault(this,10,0)},TronWebProto.Account.prototype.setLatestOprationTime=function(t){return i.Message.setProto3IntField(this,10,t)},TronWebProto.Account.prototype.getAllowance=function(){return i.Message.getFieldWithDefault(this,11,0)},TronWebProto.Account.prototype.setAllowance=function(t){return i.Message.setProto3IntField(this,11,t)},TronWebProto.Account.prototype.getLatestWithdrawTime=function(){return i.Message.getFieldWithDefault(this,12,0)},TronWebProto.Account.prototype.setLatestWithdrawTime=function(t){return i.Message.setProto3IntField(this,12,t)},TronWebProto.Account.prototype.getCode=function(){return i.Message.getFieldWithDefault(this,13,"")},TronWebProto.Account.prototype.getCode_asB64=function(){return i.Message.bytesAsB64(this.getCode())},TronWebProto.Account.prototype.getCode_asU8=function(){return i.Message.bytesAsU8(this.getCode())},TronWebProto.Account.prototype.setCode=function(t){return i.Message.setProto3BytesField(this,13,t)},TronWebProto.Account.prototype.getIsWitness=function(){return i.Message.getBooleanFieldWithDefault(this,14,!1)},TronWebProto.Account.prototype.setIsWitness=function(t){return i.Message.setProto3BooleanField(this,14,t)},TronWebProto.Account.prototype.getIsCommittee=function(){return i.Message.getBooleanFieldWithDefault(this,15,!1)},TronWebProto.Account.prototype.setIsCommittee=function(t){return i.Message.setProto3BooleanField(this,15,t)},TronWebProto.Account.prototype.getFrozenSupplyList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.Account.Frozen,16)},TronWebProto.Account.prototype.setFrozenSupplyList=function(t){return i.Message.setRepeatedWrapperField(this,16,t)},TronWebProto.Account.prototype.addFrozenSupply=function(t,o){return i.Message.addToRepeatedWrapperField(this,16,t,TronWebProto.Account.Frozen,o)},TronWebProto.Account.prototype.clearFrozenSupplyList=function(){return this.setFrozenSupplyList([])},TronWebProto.Account.prototype.getAssetIssuedName=function(){return i.Message.getFieldWithDefault(this,17,"")},TronWebProto.Account.prototype.getAssetIssuedName_asB64=function(){return i.Message.bytesAsB64(this.getAssetIssuedName())},TronWebProto.Account.prototype.getAssetIssuedName_asU8=function(){return i.Message.bytesAsU8(this.getAssetIssuedName())},TronWebProto.Account.prototype.setAssetIssuedName=function(t){return i.Message.setProto3BytesField(this,17,t)},TronWebProto.Account.prototype.getAssetIssuedId=function(){return i.Message.getFieldWithDefault(this,57,"")},TronWebProto.Account.prototype.getAssetIssuedId_asB64=function(){return i.Message.bytesAsB64(this.getAssetIssuedId())},TronWebProto.Account.prototype.getAssetIssuedId_asU8=function(){return i.Message.bytesAsU8(this.getAssetIssuedId())},TronWebProto.Account.prototype.setAssetIssuedId=function(t){return i.Message.setProto3BytesField(this,57,t)},TronWebProto.Account.prototype.getLatestAssetOperationTimeMap=function(t){return i.Message.getMapField(this,18,t,null)},TronWebProto.Account.prototype.clearLatestAssetOperationTimeMap=function(){return this.getLatestAssetOperationTimeMap().clear(),this},TronWebProto.Account.prototype.getLatestAssetOperationTimev2Map=function(t){return i.Message.getMapField(this,58,t,null)},TronWebProto.Account.prototype.clearLatestAssetOperationTimev2Map=function(){return this.getLatestAssetOperationTimev2Map().clear(),this},TronWebProto.Account.prototype.getFreeNetUsage=function(){return i.Message.getFieldWithDefault(this,19,0)},TronWebProto.Account.prototype.setFreeNetUsage=function(t){return i.Message.setProto3IntField(this,19,t)},TronWebProto.Account.prototype.getFreeAssetNetUsageMap=function(t){return i.Message.getMapField(this,20,t,null)},TronWebProto.Account.prototype.clearFreeAssetNetUsageMap=function(){return this.getFreeAssetNetUsageMap().clear(),this},TronWebProto.Account.prototype.getFreeAssetNetUsagev2Map=function(t){return i.Message.getMapField(this,59,t,null)},TronWebProto.Account.prototype.clearFreeAssetNetUsagev2Map=function(){return this.getFreeAssetNetUsagev2Map().clear(),this},TronWebProto.Account.prototype.getLatestConsumeTime=function(){return i.Message.getFieldWithDefault(this,21,0)},TronWebProto.Account.prototype.setLatestConsumeTime=function(t){return i.Message.setProto3IntField(this,21,t)},TronWebProto.Account.prototype.getLatestConsumeFreeTime=function(){return i.Message.getFieldWithDefault(this,22,0)},TronWebProto.Account.prototype.setLatestConsumeFreeTime=function(t){return i.Message.setProto3IntField(this,22,t)},TronWebProto.Account.prototype.getAccountId=function(){return i.Message.getFieldWithDefault(this,23,"")},TronWebProto.Account.prototype.getAccountId_asB64=function(){return i.Message.bytesAsB64(this.getAccountId())},TronWebProto.Account.prototype.getAccountId_asU8=function(){return i.Message.bytesAsU8(this.getAccountId())},TronWebProto.Account.prototype.setAccountId=function(t){return i.Message.setProto3BytesField(this,23,t)},TronWebProto.Account.prototype.getAccountResource=function(){return i.Message.getWrapperField(this,TronWebProto.Account.AccountResource,26)},TronWebProto.Account.prototype.setAccountResource=function(t){return i.Message.setWrapperField(this,26,t)},TronWebProto.Account.prototype.clearAccountResource=function(){return this.setAccountResource(void 0)},TronWebProto.Account.prototype.hasAccountResource=function(){return i.Message.getField(this,26)!=null},TronWebProto.Account.prototype.getCodehash=function(){return i.Message.getFieldWithDefault(this,30,"")},TronWebProto.Account.prototype.getCodehash_asB64=function(){return i.Message.bytesAsB64(this.getCodehash())},TronWebProto.Account.prototype.getCodehash_asU8=function(){return i.Message.bytesAsU8(this.getCodehash())},TronWebProto.Account.prototype.setCodehash=function(t){return i.Message.setProto3BytesField(this,30,t)},TronWebProto.Account.prototype.getOwnerPermission=function(){return i.Message.getWrapperField(this,TronWebProto.Permission,31)},TronWebProto.Account.prototype.setOwnerPermission=function(t){return i.Message.setWrapperField(this,31,t)},TronWebProto.Account.prototype.clearOwnerPermission=function(){return this.setOwnerPermission(void 0)},TronWebProto.Account.prototype.hasOwnerPermission=function(){return i.Message.getField(this,31)!=null},TronWebProto.Account.prototype.getWitnessPermission=function(){return i.Message.getWrapperField(this,TronWebProto.Permission,32)},TronWebProto.Account.prototype.setWitnessPermission=function(t){return i.Message.setWrapperField(this,32,t)},TronWebProto.Account.prototype.clearWitnessPermission=function(){return this.setWitnessPermission(void 0)},TronWebProto.Account.prototype.hasWitnessPermission=function(){return i.Message.getField(this,32)!=null},TronWebProto.Account.prototype.getActivePermissionList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.Permission,33)},TronWebProto.Account.prototype.setActivePermissionList=function(t){return i.Message.setRepeatedWrapperField(this,33,t)},TronWebProto.Account.prototype.addActivePermission=function(t,o){return i.Message.addToRepeatedWrapperField(this,33,t,TronWebProto.Permission,o)},TronWebProto.Account.prototype.clearActivePermissionList=function(){return this.setActivePermissionList([])},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.Key.prototype.toObject=function(t){return TronWebProto.Key.toObject(t,this)},TronWebProto.Key.toObject=function(t,o){var s={address:o.getAddress_asB64(),weight:i.Message.getFieldWithDefault(o,2,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.Key.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.Key;return TronWebProto.Key.deserializeBinaryFromReader(s,o)},TronWebProto.Key.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setAddress(s);break;case 2:s=o.readInt64(),t.setWeight(s);break;default:o.skipField()}return t},TronWebProto.Key.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.Key.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.Key.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getWeight())!==0&&o.writeInt64(2,s)},TronWebProto.Key.prototype.getAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.Key.prototype.getAddress_asB64=function(){return i.Message.bytesAsB64(this.getAddress())},TronWebProto.Key.prototype.getAddress_asU8=function(){return i.Message.bytesAsU8(this.getAddress())},TronWebProto.Key.prototype.setAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.Key.prototype.getWeight=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.Key.prototype.setWeight=function(t){return i.Message.setProto3IntField(this,2,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.DelegatedResource.prototype.toObject=function(t){return TronWebProto.DelegatedResource.toObject(t,this)},TronWebProto.DelegatedResource.toObject=function(t,o){var s={from:o.getFrom_asB64(),to:o.getTo_asB64(),frozenBalanceForBandwidth:i.Message.getFieldWithDefault(o,3,0),frozenBalanceForEnergy:i.Message.getFieldWithDefault(o,4,0),expireTimeForBandwidth:i.Message.getFieldWithDefault(o,5,0),expireTimeForEnergy:i.Message.getFieldWithDefault(o,6,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.DelegatedResource.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.DelegatedResource;return TronWebProto.DelegatedResource.deserializeBinaryFromReader(s,o)},TronWebProto.DelegatedResource.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setFrom(s);break;case 2:s=o.readBytes(),t.setTo(s);break;case 3:s=o.readInt64(),t.setFrozenBalanceForBandwidth(s);break;case 4:s=o.readInt64(),t.setFrozenBalanceForEnergy(s);break;case 5:s=o.readInt64(),t.setExpireTimeForBandwidth(s);break;case 6:s=o.readInt64(),t.setExpireTimeForEnergy(s);break;default:o.skipField()}return t},TronWebProto.DelegatedResource.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.DelegatedResource.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.DelegatedResource.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getFrom_asU8()).length>0&&o.writeBytes(1,s),(s=t.getTo_asU8()).length>0&&o.writeBytes(2,s),(s=t.getFrozenBalanceForBandwidth())!==0&&o.writeInt64(3,s),(s=t.getFrozenBalanceForEnergy())!==0&&o.writeInt64(4,s),(s=t.getExpireTimeForBandwidth())!==0&&o.writeInt64(5,s),(s=t.getExpireTimeForEnergy())!==0&&o.writeInt64(6,s)},TronWebProto.DelegatedResource.prototype.getFrom=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.DelegatedResource.prototype.getFrom_asB64=function(){return i.Message.bytesAsB64(this.getFrom())},TronWebProto.DelegatedResource.prototype.getFrom_asU8=function(){return i.Message.bytesAsU8(this.getFrom())},TronWebProto.DelegatedResource.prototype.setFrom=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.DelegatedResource.prototype.getTo=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.DelegatedResource.prototype.getTo_asB64=function(){return i.Message.bytesAsB64(this.getTo())},TronWebProto.DelegatedResource.prototype.getTo_asU8=function(){return i.Message.bytesAsU8(this.getTo())},TronWebProto.DelegatedResource.prototype.setTo=function(t){return i.Message.setProto3BytesField(this,2,t)},TronWebProto.DelegatedResource.prototype.getFrozenBalanceForBandwidth=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.DelegatedResource.prototype.setFrozenBalanceForBandwidth=function(t){return i.Message.setProto3IntField(this,3,t)},TronWebProto.DelegatedResource.prototype.getFrozenBalanceForEnergy=function(){return i.Message.getFieldWithDefault(this,4,0)},TronWebProto.DelegatedResource.prototype.setFrozenBalanceForEnergy=function(t){return i.Message.setProto3IntField(this,4,t)},TronWebProto.DelegatedResource.prototype.getExpireTimeForBandwidth=function(){return i.Message.getFieldWithDefault(this,5,0)},TronWebProto.DelegatedResource.prototype.setExpireTimeForBandwidth=function(t){return i.Message.setProto3IntField(this,5,t)},TronWebProto.DelegatedResource.prototype.getExpireTimeForEnergy=function(){return i.Message.getFieldWithDefault(this,6,0)},TronWebProto.DelegatedResource.prototype.setExpireTimeForEnergy=function(t){return i.Message.setProto3IntField(this,6,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.authority.prototype.toObject=function(t){return TronWebProto.authority.toObject(t,this)},TronWebProto.authority.toObject=function(t,o){var s,G={account:(s=o.getAccount())&&TronWebProto.AccountId.toObject(t,s),permissionName:o.getPermissionName_asB64()};return t&&(G.$jspbMessageInstance=o),G}),TronWebProto.authority.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.authority;return TronWebProto.authority.deserializeBinaryFromReader(s,o)},TronWebProto.authority.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=new TronWebProto.AccountId;o.readMessage(s,TronWebProto.AccountId.deserializeBinaryFromReader),t.setAccount(s);break;case 2:s=o.readBytes(),t.setPermissionName(s);break;default:o.skipField()}return t},TronWebProto.authority.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.authority.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.authority.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getAccount())!=null&&o.writeMessage(1,s,TronWebProto.AccountId.serializeBinaryToWriter),(s=t.getPermissionName_asU8()).length>0&&o.writeBytes(2,s)},TronWebProto.authority.prototype.getAccount=function(){return i.Message.getWrapperField(this,TronWebProto.AccountId,1)},TronWebProto.authority.prototype.setAccount=function(t){return i.Message.setWrapperField(this,1,t)},TronWebProto.authority.prototype.clearAccount=function(){return this.setAccount(void 0)},TronWebProto.authority.prototype.hasAccount=function(){return i.Message.getField(this,1)!=null},TronWebProto.authority.prototype.getPermissionName=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.authority.prototype.getPermissionName_asB64=function(){return i.Message.bytesAsB64(this.getPermissionName())},TronWebProto.authority.prototype.getPermissionName_asU8=function(){return i.Message.bytesAsU8(this.getPermissionName())},TronWebProto.authority.prototype.setPermissionName=function(t){return i.Message.setProto3BytesField(this,2,t)},TronWebProto.Permission.repeatedFields_=[7],i.Message.GENERATE_TO_OBJECT&&(TronWebProto.Permission.prototype.toObject=function(t){return TronWebProto.Permission.toObject(t,this)},TronWebProto.Permission.toObject=function(t,o){var s={type:i.Message.getFieldWithDefault(o,1,0),id:i.Message.getFieldWithDefault(o,2,0),permissionName:i.Message.getFieldWithDefault(o,3,""),threshold:i.Message.getFieldWithDefault(o,4,0),parentId:i.Message.getFieldWithDefault(o,5,0),operations:o.getOperations_asB64(),keysList:i.Message.toObjectList(o.getKeysList(),TronWebProto.Key.toObject,t)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.Permission.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.Permission;return TronWebProto.Permission.deserializeBinaryFromReader(s,o)},TronWebProto.Permission.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readEnum();t.setType(s);break;case 2:s=o.readInt32(),t.setId(s);break;case 3:s=o.readString(),t.setPermissionName(s);break;case 4:s=o.readInt64(),t.setThreshold(s);break;case 5:s=o.readInt32(),t.setParentId(s);break;case 6:s=o.readBytes(),t.setOperations(s);break;case 7:s=new TronWebProto.Key,o.readMessage(s,TronWebProto.Key.deserializeBinaryFromReader),t.addKeys(s);break;default:o.skipField()}return t},TronWebProto.Permission.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.Permission.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.Permission.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getType())!==0&&o.writeEnum(1,s),(s=t.getId())!==0&&o.writeInt32(2,s),(s=t.getPermissionName()).length>0&&o.writeString(3,s),(s=t.getThreshold())!==0&&o.writeInt64(4,s),(s=t.getParentId())!==0&&o.writeInt32(5,s),(s=t.getOperations_asU8()).length>0&&o.writeBytes(6,s),(s=t.getKeysList()).length>0&&o.writeRepeatedMessage(7,s,TronWebProto.Key.serializeBinaryToWriter)},TronWebProto.Permission.PermissionType={OWNER:0,WITNESS:1,ACTIVE:2},TronWebProto.Permission.prototype.getType=function(){return i.Message.getFieldWithDefault(this,1,0)},TronWebProto.Permission.prototype.setType=function(t){return i.Message.setProto3EnumField(this,1,t)},TronWebProto.Permission.prototype.getId=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.Permission.prototype.setId=function(t){return i.Message.setProto3IntField(this,2,t)},TronWebProto.Permission.prototype.getPermissionName=function(){return i.Message.getFieldWithDefault(this,3,"")},TronWebProto.Permission.prototype.setPermissionName=function(t){return i.Message.setProto3StringField(this,3,t)},TronWebProto.Permission.prototype.getThreshold=function(){return i.Message.getFieldWithDefault(this,4,0)},TronWebProto.Permission.prototype.setThreshold=function(t){return i.Message.setProto3IntField(this,4,t)},TronWebProto.Permission.prototype.getParentId=function(){return i.Message.getFieldWithDefault(this,5,0)},TronWebProto.Permission.prototype.setParentId=function(t){return i.Message.setProto3IntField(this,5,t)},TronWebProto.Permission.prototype.getOperations=function(){return i.Message.getFieldWithDefault(this,6,"")},TronWebProto.Permission.prototype.getOperations_asB64=function(){return i.Message.bytesAsB64(this.getOperations())},TronWebProto.Permission.prototype.getOperations_asU8=function(){return i.Message.bytesAsU8(this.getOperations())},TronWebProto.Permission.prototype.setOperations=function(t){return i.Message.setProto3BytesField(this,6,t)},TronWebProto.Permission.prototype.getKeysList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.Key,7)},TronWebProto.Permission.prototype.setKeysList=function(t){return i.Message.setRepeatedWrapperField(this,7,t)},TronWebProto.Permission.prototype.addKeys=function(t,o){return i.Message.addToRepeatedWrapperField(this,7,t,TronWebProto.Key,o)},TronWebProto.Permission.prototype.clearKeysList=function(){return this.setKeysList([])},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.Witness.prototype.toObject=function(t){return TronWebProto.Witness.toObject(t,this)},TronWebProto.Witness.toObject=function(t,o){var s={address:o.getAddress_asB64(),votecount:i.Message.getFieldWithDefault(o,2,0),pubkey:o.getPubkey_asB64(),url:i.Message.getFieldWithDefault(o,4,""),totalproduced:i.Message.getFieldWithDefault(o,5,0),totalmissed:i.Message.getFieldWithDefault(o,6,0),latestblocknum:i.Message.getFieldWithDefault(o,7,0),latestslotnum:i.Message.getFieldWithDefault(o,8,0),isjobs:i.Message.getBooleanFieldWithDefault(o,9,!1)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.Witness.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.Witness;return TronWebProto.Witness.deserializeBinaryFromReader(s,o)},TronWebProto.Witness.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setAddress(s);break;case 2:s=o.readInt64(),t.setVotecount(s);break;case 3:s=o.readBytes(),t.setPubkey(s);break;case 4:s=o.readString(),t.setUrl(s);break;case 5:s=o.readInt64(),t.setTotalproduced(s);break;case 6:s=o.readInt64(),t.setTotalmissed(s);break;case 7:s=o.readInt64(),t.setLatestblocknum(s);break;case 8:s=o.readInt64(),t.setLatestslotnum(s);break;case 9:s=o.readBool(),t.setIsjobs(s);break;default:o.skipField()}return t},TronWebProto.Witness.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.Witness.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.Witness.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getVotecount())!==0&&o.writeInt64(2,s),(s=t.getPubkey_asU8()).length>0&&o.writeBytes(3,s),(s=t.getUrl()).length>0&&o.writeString(4,s),(s=t.getTotalproduced())!==0&&o.writeInt64(5,s),(s=t.getTotalmissed())!==0&&o.writeInt64(6,s),(s=t.getLatestblocknum())!==0&&o.writeInt64(7,s),(s=t.getLatestslotnum())!==0&&o.writeInt64(8,s),(s=t.getIsjobs())&&o.writeBool(9,s)},TronWebProto.Witness.prototype.getAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.Witness.prototype.getAddress_asB64=function(){return i.Message.bytesAsB64(this.getAddress())},TronWebProto.Witness.prototype.getAddress_asU8=function(){return i.Message.bytesAsU8(this.getAddress())},TronWebProto.Witness.prototype.setAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.Witness.prototype.getVotecount=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.Witness.prototype.setVotecount=function(t){return i.Message.setProto3IntField(this,2,t)},TronWebProto.Witness.prototype.getPubkey=function(){return i.Message.getFieldWithDefault(this,3,"")},TronWebProto.Witness.prototype.getPubkey_asB64=function(){return i.Message.bytesAsB64(this.getPubkey())},TronWebProto.Witness.prototype.getPubkey_asU8=function(){return i.Message.bytesAsU8(this.getPubkey())},TronWebProto.Witness.prototype.setPubkey=function(t){return i.Message.setProto3BytesField(this,3,t)},TronWebProto.Witness.prototype.getUrl=function(){return i.Message.getFieldWithDefault(this,4,"")},TronWebProto.Witness.prototype.setUrl=function(t){return i.Message.setProto3StringField(this,4,t)},TronWebProto.Witness.prototype.getTotalproduced=function(){return i.Message.getFieldWithDefault(this,5,0)},TronWebProto.Witness.prototype.setTotalproduced=function(t){return i.Message.setProto3IntField(this,5,t)},TronWebProto.Witness.prototype.getTotalmissed=function(){return i.Message.getFieldWithDefault(this,6,0)},TronWebProto.Witness.prototype.setTotalmissed=function(t){return i.Message.setProto3IntField(this,6,t)},TronWebProto.Witness.prototype.getLatestblocknum=function(){return i.Message.getFieldWithDefault(this,7,0)},TronWebProto.Witness.prototype.setLatestblocknum=function(t){return i.Message.setProto3IntField(this,7,t)},TronWebProto.Witness.prototype.getLatestslotnum=function(){return i.Message.getFieldWithDefault(this,8,0)},TronWebProto.Witness.prototype.setLatestslotnum=function(t){return i.Message.setProto3IntField(this,8,t)},TronWebProto.Witness.prototype.getIsjobs=function(){return i.Message.getBooleanFieldWithDefault(this,9,!1)},TronWebProto.Witness.prototype.setIsjobs=function(t){return i.Message.setProto3BooleanField(this,9,t)},TronWebProto.Votes.repeatedFields_=[2,3],i.Message.GENERATE_TO_OBJECT&&(TronWebProto.Votes.prototype.toObject=function(t){return TronWebProto.Votes.toObject(t,this)},TronWebProto.Votes.toObject=function(t,o){var s={address:o.getAddress_asB64(),oldVotesList:i.Message.toObjectList(o.getOldVotesList(),TronWebProto.Vote.toObject,t),newVotesList:i.Message.toObjectList(o.getNewVotesList(),TronWebProto.Vote.toObject,t)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.Votes.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.Votes;return TronWebProto.Votes.deserializeBinaryFromReader(s,o)},TronWebProto.Votes.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setAddress(s);break;case 2:s=new TronWebProto.Vote,o.readMessage(s,TronWebProto.Vote.deserializeBinaryFromReader),t.addOldVotes(s);break;case 3:s=new TronWebProto.Vote,o.readMessage(s,TronWebProto.Vote.deserializeBinaryFromReader),t.addNewVotes(s);break;default:o.skipField()}return t},TronWebProto.Votes.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.Votes.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.Votes.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getOldVotesList()).length>0&&o.writeRepeatedMessage(2,s,TronWebProto.Vote.serializeBinaryToWriter),(s=t.getNewVotesList()).length>0&&o.writeRepeatedMessage(3,s,TronWebProto.Vote.serializeBinaryToWriter)},TronWebProto.Votes.prototype.getAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.Votes.prototype.getAddress_asB64=function(){return i.Message.bytesAsB64(this.getAddress())},TronWebProto.Votes.prototype.getAddress_asU8=function(){return i.Message.bytesAsU8(this.getAddress())},TronWebProto.Votes.prototype.setAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.Votes.prototype.getOldVotesList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.Vote,2)},TronWebProto.Votes.prototype.setOldVotesList=function(t){return i.Message.setRepeatedWrapperField(this,2,t)},TronWebProto.Votes.prototype.addOldVotes=function(t,o){return i.Message.addToRepeatedWrapperField(this,2,t,TronWebProto.Vote,o)},TronWebProto.Votes.prototype.clearOldVotesList=function(){return this.setOldVotesList([])},TronWebProto.Votes.prototype.getNewVotesList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.Vote,3)},TronWebProto.Votes.prototype.setNewVotesList=function(t){return i.Message.setRepeatedWrapperField(this,3,t)},TronWebProto.Votes.prototype.addNewVotes=function(t,o){return i.Message.addToRepeatedWrapperField(this,3,t,TronWebProto.Vote,o)},TronWebProto.Votes.prototype.clearNewVotesList=function(){return this.setNewVotesList([])},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.MarketOrderDetail.prototype.toObject=function(t){return TronWebProto.MarketOrderDetail.toObject(t,this)},TronWebProto.MarketOrderDetail.toObject=function(t,o){var s={makerorderid:o.getMakerorderid_asB64(),takerorderid:o.getTakerorderid_asB64(),fillsellquantity:i.Message.getFieldWithDefault(o,3,0),fillbuyquantity:i.Message.getFieldWithDefault(o,4,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.MarketOrderDetail.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.MarketOrderDetail;return TronWebProto.MarketOrderDetail.deserializeBinaryFromReader(s,o)},TronWebProto.MarketOrderDetail.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setMakerorderid(s);break;case 2:s=o.readBytes(),t.setTakerorderid(s);break;case 3:s=o.readInt64(),t.setFillsellquantity(s);break;case 4:s=o.readInt64(),t.setFillbuyquantity(s);break;default:o.skipField()}return t},TronWebProto.MarketOrderDetail.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.MarketOrderDetail.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.MarketOrderDetail.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getMakerorderid_asU8()).length>0&&o.writeBytes(1,s),(s=t.getTakerorderid_asU8()).length>0&&o.writeBytes(2,s),(s=t.getFillsellquantity())!==0&&o.writeInt64(3,s),(s=t.getFillbuyquantity())!==0&&o.writeInt64(4,s)},TronWebProto.MarketOrderDetail.prototype.getMakerorderid=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.MarketOrderDetail.prototype.getMakerorderid_asB64=function(){return i.Message.bytesAsB64(this.getMakerorderid())},TronWebProto.MarketOrderDetail.prototype.getMakerorderid_asU8=function(){return i.Message.bytesAsU8(this.getMakerorderid())},TronWebProto.MarketOrderDetail.prototype.setMakerorderid=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.MarketOrderDetail.prototype.getTakerorderid=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.MarketOrderDetail.prototype.getTakerorderid_asB64=function(){return i.Message.bytesAsB64(this.getTakerorderid())},TronWebProto.MarketOrderDetail.prototype.getTakerorderid_asU8=function(){return i.Message.bytesAsU8(this.getTakerorderid())},TronWebProto.MarketOrderDetail.prototype.setTakerorderid=function(t){return i.Message.setProto3BytesField(this,2,t)},TronWebProto.MarketOrderDetail.prototype.getFillsellquantity=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.MarketOrderDetail.prototype.setFillsellquantity=function(t){return i.Message.setProto3IntField(this,3,t)},TronWebProto.MarketOrderDetail.prototype.getFillbuyquantity=function(){return i.Message.getFieldWithDefault(this,4,0)},TronWebProto.MarketOrderDetail.prototype.setFillbuyquantity=function(t){return i.Message.setProto3IntField(this,4,t)},TronWebProto.Transaction.repeatedFields_=[2,5],i.Message.GENERATE_TO_OBJECT&&(TronWebProto.Transaction.prototype.toObject=function(t){return TronWebProto.Transaction.toObject(t,this)},TronWebProto.Transaction.toObject=function(t,o){var s,G={rawData:(s=o.getRawData())&&TronWebProto.Transaction.raw.toObject(t,s),signatureList:o.getSignatureList_asB64(),retList:i.Message.toObjectList(o.getRetList(),TronWebProto.Transaction.Result.toObject,t)};return t&&(G.$jspbMessageInstance=o),G}),TronWebProto.Transaction.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.Transaction;return TronWebProto.Transaction.deserializeBinaryFromReader(s,o)},TronWebProto.Transaction.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=new TronWebProto.Transaction.raw;o.readMessage(s,TronWebProto.Transaction.raw.deserializeBinaryFromReader),t.setRawData(s);break;case 2:s=o.readBytes(),t.addSignature(s);break;case 5:s=new TronWebProto.Transaction.Result,o.readMessage(s,TronWebProto.Transaction.Result.deserializeBinaryFromReader),t.addRet(s);break;default:o.skipField()}return t},TronWebProto.Transaction.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.Transaction.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.Transaction.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getRawData())!=null&&o.writeMessage(1,s,TronWebProto.Transaction.raw.serializeBinaryToWriter),(s=t.getSignatureList_asU8()).length>0&&o.writeRepeatedBytes(2,s),(s=t.getRetList()).length>0&&o.writeRepeatedMessage(5,s,TronWebProto.Transaction.Result.serializeBinaryToWriter)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.Transaction.Contract.prototype.toObject=function(t){return TronWebProto.Transaction.Contract.toObject(t,this)},TronWebProto.Transaction.Contract.toObject=function(t,o){var s,G={type:i.Message.getFieldWithDefault(o,1,0),parameter:(s=o.getParameter())&&y.Any.toObject(t,s),provider:o.getProvider_asB64(),contractname:o.getContractname_asB64(),permissionId:i.Message.getFieldWithDefault(o,5,0)};return t&&(G.$jspbMessageInstance=o),G}),TronWebProto.Transaction.Contract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.Transaction.Contract;return TronWebProto.Transaction.Contract.deserializeBinaryFromReader(s,o)},TronWebProto.Transaction.Contract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readEnum();t.setType(s);break;case 2:s=new y.Any,o.readMessage(s,y.Any.deserializeBinaryFromReader),t.setParameter(s);break;case 3:s=o.readBytes(),t.setProvider(s);break;case 4:s=o.readBytes(),t.setContractname(s);break;case 5:s=o.readInt32(),t.setPermissionId(s);break;default:o.skipField()}return t},TronWebProto.Transaction.Contract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.Transaction.Contract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.Transaction.Contract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getType())!==0&&o.writeEnum(1,s),(s=t.getParameter())!=null&&o.writeMessage(2,s,y.Any.serializeBinaryToWriter),(s=t.getProvider_asU8()).length>0&&o.writeBytes(3,s),(s=t.getContractname_asU8()).length>0&&o.writeBytes(4,s),(s=t.getPermissionId())!==0&&o.writeInt32(5,s)},TronWebProto.Transaction.Contract.ContractType={ACCOUNTCREATECONTRACT:0,TRANSFERCONTRACT:1,TRANSFERASSETCONTRACT:2,VOTEASSETCONTRACT:3,VOTEWITNESSCONTRACT:4,WITNESSCREATECONTRACT:5,ASSETISSUECONTRACT:6,WITNESSUPDATECONTRACT:8,PARTICIPATEASSETISSUECONTRACT:9,ACCOUNTUPDATECONTRACT:10,FREEZEBALANCECONTRACT:11,UNFREEZEBALANCECONTRACT:12,WITHDRAWBALANCECONTRACT:13,UNFREEZEASSETCONTRACT:14,UPDATEASSETCONTRACT:15,PROPOSALCREATECONTRACT:16,PROPOSALAPPROVECONTRACT:17,PROPOSALDELETECONTRACT:18,SETACCOUNTIDCONTRACT:19,CUSTOMCONTRACT:20,CREATESMARTCONTRACT:30,TRIGGERSMARTCONTRACT:31,GETCONTRACT:32,UPDATESETTINGCONTRACT:33,EXCHANGECREATECONTRACT:41,EXCHANGEINJECTCONTRACT:42,EXCHANGEWITHDRAWCONTRACT:43,EXCHANGETRANSACTIONCONTRACT:44,UPDATEENERGYLIMITCONTRACT:45,ACCOUNTPERMISSIONUPDATECONTRACT:46,CLEARABICONTRACT:48,UPDATEBROKERAGECONTRACT:49,SHIELDEDTRANSFERCONTRACT:51,MARKETSELLASSETCONTRACT:52,MARKETCANCELORDERCONTRACT:53,FREEZEBALANCEV2CONTRACT:54,UNFREEZEBALANCEV2CONTRACT:55,WITHDRAWEXPIREUNFREEZECONTRACT:56,DELEGATERESOURCECONTRACT:57,UNDELEGATERESOURCECONTRACT:58,CANCELALLUNFREEZEV2CONTRACT:59},TronWebProto.Transaction.Contract.prototype.getType=function(){return i.Message.getFieldWithDefault(this,1,0)},TronWebProto.Transaction.Contract.prototype.setType=function(t){return i.Message.setProto3EnumField(this,1,t)},TronWebProto.Transaction.Contract.prototype.getParameter=function(){return i.Message.getWrapperField(this,y.Any,2)},TronWebProto.Transaction.Contract.prototype.setParameter=function(t){return i.Message.setWrapperField(this,2,t)},TronWebProto.Transaction.Contract.prototype.clearParameter=function(){return this.setParameter(void 0)},TronWebProto.Transaction.Contract.prototype.hasParameter=function(){return i.Message.getField(this,2)!=null},TronWebProto.Transaction.Contract.prototype.getProvider=function(){return i.Message.getFieldWithDefault(this,3,"")},TronWebProto.Transaction.Contract.prototype.getProvider_asB64=function(){return i.Message.bytesAsB64(this.getProvider())},TronWebProto.Transaction.Contract.prototype.getProvider_asU8=function(){return i.Message.bytesAsU8(this.getProvider())},TronWebProto.Transaction.Contract.prototype.setProvider=function(t){return i.Message.setProto3BytesField(this,3,t)},TronWebProto.Transaction.Contract.prototype.getContractname=function(){return i.Message.getFieldWithDefault(this,4,"")},TronWebProto.Transaction.Contract.prototype.getContractname_asB64=function(){return i.Message.bytesAsB64(this.getContractname())},TronWebProto.Transaction.Contract.prototype.getContractname_asU8=function(){return i.Message.bytesAsU8(this.getContractname())},TronWebProto.Transaction.Contract.prototype.setContractname=function(t){return i.Message.setProto3BytesField(this,4,t)},TronWebProto.Transaction.Contract.prototype.getPermissionId=function(){return i.Message.getFieldWithDefault(this,5,0)},TronWebProto.Transaction.Contract.prototype.setPermissionId=function(t){return i.Message.setProto3IntField(this,5,t)},TronWebProto.Transaction.Result.repeatedFields_=[26],i.Message.GENERATE_TO_OBJECT&&(TronWebProto.Transaction.Result.prototype.toObject=function(t){return TronWebProto.Transaction.Result.toObject(t,this)},TronWebProto.Transaction.Result.toObject=function(t,o){var s={fee:i.Message.getFieldWithDefault(o,1,0),ret:i.Message.getFieldWithDefault(o,2,0),contractret:i.Message.getFieldWithDefault(o,3,0),assetissueid:i.Message.getFieldWithDefault(o,14,""),withdrawAmount:i.Message.getFieldWithDefault(o,15,0),unfreezeAmount:i.Message.getFieldWithDefault(o,16,0),exchangeReceivedAmount:i.Message.getFieldWithDefault(o,18,0),exchangeInjectAnotherAmount:i.Message.getFieldWithDefault(o,19,0),exchangeWithdrawAnotherAmount:i.Message.getFieldWithDefault(o,20,0),exchangeId:i.Message.getFieldWithDefault(o,21,0),shieldedTransactionFee:i.Message.getFieldWithDefault(o,22,0),orderid:o.getOrderid_asB64(),orderdetailsList:i.Message.toObjectList(o.getOrderdetailsList(),TronWebProto.MarketOrderDetail.toObject,t)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.Transaction.Result.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.Transaction.Result;return TronWebProto.Transaction.Result.deserializeBinaryFromReader(s,o)},TronWebProto.Transaction.Result.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readInt64();t.setFee(s);break;case 2:s=o.readEnum(),t.setRet(s);break;case 3:s=o.readEnum(),t.setContractret(s);break;case 14:s=o.readString(),t.setAssetissueid(s);break;case 15:s=o.readInt64(),t.setWithdrawAmount(s);break;case 16:s=o.readInt64(),t.setUnfreezeAmount(s);break;case 18:s=o.readInt64(),t.setExchangeReceivedAmount(s);break;case 19:s=o.readInt64(),t.setExchangeInjectAnotherAmount(s);break;case 20:s=o.readInt64(),t.setExchangeWithdrawAnotherAmount(s);break;case 21:s=o.readInt64(),t.setExchangeId(s);break;case 22:s=o.readInt64(),t.setShieldedTransactionFee(s);break;case 25:s=o.readBytes(),t.setOrderid(s);break;case 26:s=new TronWebProto.MarketOrderDetail,o.readMessage(s,TronWebProto.MarketOrderDetail.deserializeBinaryFromReader),t.addOrderdetails(s);break;default:o.skipField()}return t},TronWebProto.Transaction.Result.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.Transaction.Result.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.Transaction.Result.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getFee())!==0&&o.writeInt64(1,s),(s=t.getRet())!==0&&o.writeEnum(2,s),(s=t.getContractret())!==0&&o.writeEnum(3,s),(s=t.getAssetissueid()).length>0&&o.writeString(14,s),(s=t.getWithdrawAmount())!==0&&o.writeInt64(15,s),(s=t.getUnfreezeAmount())!==0&&o.writeInt64(16,s),(s=t.getExchangeReceivedAmount())!==0&&o.writeInt64(18,s),(s=t.getExchangeInjectAnotherAmount())!==0&&o.writeInt64(19,s),(s=t.getExchangeWithdrawAnotherAmount())!==0&&o.writeInt64(20,s),(s=t.getExchangeId())!==0&&o.writeInt64(21,s),(s=t.getShieldedTransactionFee())!==0&&o.writeInt64(22,s),(s=t.getOrderid_asU8()).length>0&&o.writeBytes(25,s),(s=t.getOrderdetailsList()).length>0&&o.writeRepeatedMessage(26,s,TronWebProto.MarketOrderDetail.serializeBinaryToWriter)},TronWebProto.Transaction.Result.code={SUCESS:0,FAILED:1},TronWebProto.Transaction.Result.contractResult={DEFAULT:0,SUCCESS:1,REVERT:2,BAD_JUMP_DESTINATION:3,OUT_OF_MEMORY:4,PRECOMPILED_CONTRACT:5,STACK_TOO_SMALL:6,STACK_TOO_LARGE:7,ILLEGAL_OPERATION:8,STACK_OVERFLOW:9,OUT_OF_ENERGY:10,OUT_OF_TIME:11,JVM_STACK_OVER_FLOW:12,UNKNOWN:13,TRANSFER_FAILED:14,INVALID_CODE:15},TronWebProto.Transaction.Result.prototype.getFee=function(){return i.Message.getFieldWithDefault(this,1,0)},TronWebProto.Transaction.Result.prototype.setFee=function(t){return i.Message.setProto3IntField(this,1,t)},TronWebProto.Transaction.Result.prototype.getRet=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.Transaction.Result.prototype.setRet=function(t){return i.Message.setProto3EnumField(this,2,t)},TronWebProto.Transaction.Result.prototype.getContractret=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.Transaction.Result.prototype.setContractret=function(t){return i.Message.setProto3EnumField(this,3,t)},TronWebProto.Transaction.Result.prototype.getAssetissueid=function(){return i.Message.getFieldWithDefault(this,14,"")},TronWebProto.Transaction.Result.prototype.setAssetissueid=function(t){return i.Message.setProto3StringField(this,14,t)},TronWebProto.Transaction.Result.prototype.getWithdrawAmount=function(){return i.Message.getFieldWithDefault(this,15,0)},TronWebProto.Transaction.Result.prototype.setWithdrawAmount=function(t){return i.Message.setProto3IntField(this,15,t)},TronWebProto.Transaction.Result.prototype.getUnfreezeAmount=function(){return i.Message.getFieldWithDefault(this,16,0)},TronWebProto.Transaction.Result.prototype.setUnfreezeAmount=function(t){return i.Message.setProto3IntField(this,16,t)},TronWebProto.Transaction.Result.prototype.getExchangeReceivedAmount=function(){return i.Message.getFieldWithDefault(this,18,0)},TronWebProto.Transaction.Result.prototype.setExchangeReceivedAmount=function(t){return i.Message.setProto3IntField(this,18,t)},TronWebProto.Transaction.Result.prototype.getExchangeInjectAnotherAmount=function(){return i.Message.getFieldWithDefault(this,19,0)},TronWebProto.Transaction.Result.prototype.setExchangeInjectAnotherAmount=function(t){return i.Message.setProto3IntField(this,19,t)},TronWebProto.Transaction.Result.prototype.getExchangeWithdrawAnotherAmount=function(){return i.Message.getFieldWithDefault(this,20,0)},TronWebProto.Transaction.Result.prototype.setExchangeWithdrawAnotherAmount=function(t){return i.Message.setProto3IntField(this,20,t)},TronWebProto.Transaction.Result.prototype.getExchangeId=function(){return i.Message.getFieldWithDefault(this,21,0)},TronWebProto.Transaction.Result.prototype.setExchangeId=function(t){return i.Message.setProto3IntField(this,21,t)},TronWebProto.Transaction.Result.prototype.getShieldedTransactionFee=function(){return i.Message.getFieldWithDefault(this,22,0)},TronWebProto.Transaction.Result.prototype.setShieldedTransactionFee=function(t){return i.Message.setProto3IntField(this,22,t)},TronWebProto.Transaction.Result.prototype.getOrderid=function(){return i.Message.getFieldWithDefault(this,25,"")},TronWebProto.Transaction.Result.prototype.getOrderid_asB64=function(){return i.Message.bytesAsB64(this.getOrderid())},TronWebProto.Transaction.Result.prototype.getOrderid_asU8=function(){return i.Message.bytesAsU8(this.getOrderid())},TronWebProto.Transaction.Result.prototype.setOrderid=function(t){return i.Message.setProto3BytesField(this,25,t)},TronWebProto.Transaction.Result.prototype.getOrderdetailsList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.MarketOrderDetail,26)},TronWebProto.Transaction.Result.prototype.setOrderdetailsList=function(t){return i.Message.setRepeatedWrapperField(this,26,t)},TronWebProto.Transaction.Result.prototype.addOrderdetails=function(t,o){return i.Message.addToRepeatedWrapperField(this,26,t,TronWebProto.MarketOrderDetail,o)},TronWebProto.Transaction.Result.prototype.clearOrderdetailsList=function(){return this.setOrderdetailsList([])},TronWebProto.Transaction.raw.repeatedFields_=[9,11],i.Message.GENERATE_TO_OBJECT&&(TronWebProto.Transaction.raw.prototype.toObject=function(t){return TronWebProto.Transaction.raw.toObject(t,this)},TronWebProto.Transaction.raw.toObject=function(t,o){var s={refBlockBytes:o.getRefBlockBytes_asB64(),refBlockNum:i.Message.getFieldWithDefault(o,3,0),refBlockHash:o.getRefBlockHash_asB64(),expiration:i.Message.getFieldWithDefault(o,8,0),authsList:i.Message.toObjectList(o.getAuthsList(),TronWebProto.authority.toObject,t),data:o.getData_asB64(),contractList:i.Message.toObjectList(o.getContractList(),TronWebProto.Transaction.Contract.toObject,t),scripts:o.getScripts_asB64(),timestamp:i.Message.getFieldWithDefault(o,14,0),feeLimit:i.Message.getFieldWithDefault(o,18,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.Transaction.raw.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.Transaction.raw;return TronWebProto.Transaction.raw.deserializeBinaryFromReader(s,o)},TronWebProto.Transaction.raw.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setRefBlockBytes(s);break;case 3:s=o.readInt64(),t.setRefBlockNum(s);break;case 4:s=o.readBytes(),t.setRefBlockHash(s);break;case 8:s=o.readInt64(),t.setExpiration(s);break;case 9:s=new TronWebProto.authority,o.readMessage(s,TronWebProto.authority.deserializeBinaryFromReader),t.addAuths(s);break;case 10:s=o.readBytes(),t.setData(s);break;case 11:s=new TronWebProto.Transaction.Contract,o.readMessage(s,TronWebProto.Transaction.Contract.deserializeBinaryFromReader),t.addContract(s);break;case 12:s=o.readBytes(),t.setScripts(s);break;case 14:s=o.readInt64(),t.setTimestamp(s);break;case 18:s=o.readInt64(),t.setFeeLimit(s);break;default:o.skipField()}return t},TronWebProto.Transaction.raw.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.Transaction.raw.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.Transaction.raw.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getRefBlockBytes_asU8()).length>0&&o.writeBytes(1,s),(s=t.getRefBlockNum())!==0&&o.writeInt64(3,s),(s=t.getRefBlockHash_asU8()).length>0&&o.writeBytes(4,s),(s=t.getExpiration())!==0&&o.writeInt64(8,s),(s=t.getAuthsList()).length>0&&o.writeRepeatedMessage(9,s,TronWebProto.authority.serializeBinaryToWriter),(s=t.getData_asU8()).length>0&&o.writeBytes(10,s),(s=t.getContractList()).length>0&&o.writeRepeatedMessage(11,s,TronWebProto.Transaction.Contract.serializeBinaryToWriter),(s=t.getScripts_asU8()).length>0&&o.writeBytes(12,s),(s=t.getTimestamp())!==0&&o.writeInt64(14,s),(s=t.getFeeLimit())!==0&&o.writeInt64(18,s)},TronWebProto.Transaction.raw.prototype.getRefBlockBytes=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.Transaction.raw.prototype.getRefBlockBytes_asB64=function(){return i.Message.bytesAsB64(this.getRefBlockBytes())},TronWebProto.Transaction.raw.prototype.getRefBlockBytes_asU8=function(){return i.Message.bytesAsU8(this.getRefBlockBytes())},TronWebProto.Transaction.raw.prototype.setRefBlockBytes=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.Transaction.raw.prototype.getRefBlockNum=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.Transaction.raw.prototype.setRefBlockNum=function(t){return i.Message.setProto3IntField(this,3,t)},TronWebProto.Transaction.raw.prototype.getRefBlockHash=function(){return i.Message.getFieldWithDefault(this,4,"")},TronWebProto.Transaction.raw.prototype.getRefBlockHash_asB64=function(){return i.Message.bytesAsB64(this.getRefBlockHash())},TronWebProto.Transaction.raw.prototype.getRefBlockHash_asU8=function(){return i.Message.bytesAsU8(this.getRefBlockHash())},TronWebProto.Transaction.raw.prototype.setRefBlockHash=function(t){return i.Message.setProto3BytesField(this,4,t)},TronWebProto.Transaction.raw.prototype.getExpiration=function(){return i.Message.getFieldWithDefault(this,8,0)},TronWebProto.Transaction.raw.prototype.setExpiration=function(t){return i.Message.setProto3IntField(this,8,t)},TronWebProto.Transaction.raw.prototype.getAuthsList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.authority,9)},TronWebProto.Transaction.raw.prototype.setAuthsList=function(t){return i.Message.setRepeatedWrapperField(this,9,t)},TronWebProto.Transaction.raw.prototype.addAuths=function(t,o){return i.Message.addToRepeatedWrapperField(this,9,t,TronWebProto.authority,o)},TronWebProto.Transaction.raw.prototype.clearAuthsList=function(){return this.setAuthsList([])},TronWebProto.Transaction.raw.prototype.getData=function(){return i.Message.getFieldWithDefault(this,10,"")},TronWebProto.Transaction.raw.prototype.getData_asB64=function(){return i.Message.bytesAsB64(this.getData())},TronWebProto.Transaction.raw.prototype.getData_asU8=function(){return i.Message.bytesAsU8(this.getData())},TronWebProto.Transaction.raw.prototype.setData=function(t){return i.Message.setProto3BytesField(this,10,t)},TronWebProto.Transaction.raw.prototype.getContractList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.Transaction.Contract,11)},TronWebProto.Transaction.raw.prototype.setContractList=function(t){return i.Message.setRepeatedWrapperField(this,11,t)},TronWebProto.Transaction.raw.prototype.addContract=function(t,o){return i.Message.addToRepeatedWrapperField(this,11,t,TronWebProto.Transaction.Contract,o)},TronWebProto.Transaction.raw.prototype.clearContractList=function(){return this.setContractList([])},TronWebProto.Transaction.raw.prototype.getScripts=function(){return i.Message.getFieldWithDefault(this,12,"")},TronWebProto.Transaction.raw.prototype.getScripts_asB64=function(){return i.Message.bytesAsB64(this.getScripts())},TronWebProto.Transaction.raw.prototype.getScripts_asU8=function(){return i.Message.bytesAsU8(this.getScripts())},TronWebProto.Transaction.raw.prototype.setScripts=function(t){return i.Message.setProto3BytesField(this,12,t)},TronWebProto.Transaction.raw.prototype.getTimestamp=function(){return i.Message.getFieldWithDefault(this,14,0)},TronWebProto.Transaction.raw.prototype.setTimestamp=function(t){return i.Message.setProto3IntField(this,14,t)},TronWebProto.Transaction.raw.prototype.getFeeLimit=function(){return i.Message.getFieldWithDefault(this,18,0)},TronWebProto.Transaction.raw.prototype.setFeeLimit=function(t){return i.Message.setProto3IntField(this,18,t)},TronWebProto.Transaction.prototype.getRawData=function(){return i.Message.getWrapperField(this,TronWebProto.Transaction.raw,1)},TronWebProto.Transaction.prototype.setRawData=function(t){return i.Message.setWrapperField(this,1,t)},TronWebProto.Transaction.prototype.clearRawData=function(){return this.setRawData(void 0)},TronWebProto.Transaction.prototype.hasRawData=function(){return i.Message.getField(this,1)!=null},TronWebProto.Transaction.prototype.getSignatureList=function(){return i.Message.getRepeatedField(this,2)},TronWebProto.Transaction.prototype.getSignatureList_asB64=function(){return i.Message.bytesListAsB64(this.getSignatureList())},TronWebProto.Transaction.prototype.getSignatureList_asU8=function(){return i.Message.bytesListAsU8(this.getSignatureList())},TronWebProto.Transaction.prototype.setSignatureList=function(t){return i.Message.setField(this,2,t||[])},TronWebProto.Transaction.prototype.addSignature=function(t,o){return i.Message.addToRepeatedField(this,2,t,o)},TronWebProto.Transaction.prototype.clearSignatureList=function(){return this.setSignatureList([])},TronWebProto.Transaction.prototype.getRetList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.Transaction.Result,5)},TronWebProto.Transaction.prototype.setRetList=function(t){return i.Message.setRepeatedWrapperField(this,5,t)},TronWebProto.Transaction.prototype.addRet=function(t,o){return i.Message.addToRepeatedWrapperField(this,5,t,TronWebProto.Transaction.Result,o)},TronWebProto.Transaction.prototype.clearRetList=function(){return this.setRetList([])},TronWebProto.AccountType={NORMAL:0,ASSETISSUE:1,CONTRACT:2},W.object.extend(v,TronWebProto)},956:(V,v,k)=>{var i=k(5595),W=i,B=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||B!==void 0&&B||typeof self<"u"&&self||(function(){return this}).call(null)||Function("return this")(),y=k(8020);W.object.extend(proto,y),W.exportSymbol("TronWebProto.AccountCreateContract",null,B),W.exportSymbol("TronWebProto.AccountPermissionUpdateContract",null,B),W.exportSymbol("TronWebProto.AccountUpdateContract",null,B),W.exportSymbol("TronWebProto.SetAccountIdContract",null,B),TronWebProto.AccountCreateContract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.AccountCreateContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.AccountCreateContract.displayName="TronWebProto.AccountCreateContract"),TronWebProto.AccountUpdateContract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.AccountUpdateContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.AccountUpdateContract.displayName="TronWebProto.AccountUpdateContract"),TronWebProto.SetAccountIdContract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.SetAccountIdContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.SetAccountIdContract.displayName="TronWebProto.SetAccountIdContract"),TronWebProto.AccountPermissionUpdateContract=function(t){i.Message.initialize(this,t,0,-1,TronWebProto.AccountPermissionUpdateContract.repeatedFields_,null)},W.inherits(TronWebProto.AccountPermissionUpdateContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.AccountPermissionUpdateContract.displayName="TronWebProto.AccountPermissionUpdateContract"),i.Message.GENERATE_TO_OBJECT&&(TronWebProto.AccountCreateContract.prototype.toObject=function(t){return TronWebProto.AccountCreateContract.toObject(t,this)},TronWebProto.AccountCreateContract.toObject=function(t,o){var s={ownerAddress:o.getOwnerAddress_asB64(),accountAddress:o.getAccountAddress_asB64(),type:i.Message.getFieldWithDefault(o,3,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.AccountCreateContract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.AccountCreateContract;return TronWebProto.AccountCreateContract.deserializeBinaryFromReader(s,o)},TronWebProto.AccountCreateContract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setOwnerAddress(s);break;case 2:s=o.readBytes(),t.setAccountAddress(s);break;case 3:s=o.readEnum(),t.setType(s);break;default:o.skipField()}return t},TronWebProto.AccountCreateContract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.AccountCreateContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.AccountCreateContract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getAccountAddress_asU8()).length>0&&o.writeBytes(2,s),(s=t.getType())!==0&&o.writeEnum(3,s)},TronWebProto.AccountCreateContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.AccountCreateContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.AccountCreateContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.AccountCreateContract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.AccountCreateContract.prototype.getAccountAddress=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.AccountCreateContract.prototype.getAccountAddress_asB64=function(){return i.Message.bytesAsB64(this.getAccountAddress())},TronWebProto.AccountCreateContract.prototype.getAccountAddress_asU8=function(){return i.Message.bytesAsU8(this.getAccountAddress())},TronWebProto.AccountCreateContract.prototype.setAccountAddress=function(t){return i.Message.setProto3BytesField(this,2,t)},TronWebProto.AccountCreateContract.prototype.getType=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.AccountCreateContract.prototype.setType=function(t){return i.Message.setProto3EnumField(this,3,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.AccountUpdateContract.prototype.toObject=function(t){return TronWebProto.AccountUpdateContract.toObject(t,this)},TronWebProto.AccountUpdateContract.toObject=function(t,o){var s={accountName:o.getAccountName_asB64(),ownerAddress:o.getOwnerAddress_asB64()};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.AccountUpdateContract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.AccountUpdateContract;return TronWebProto.AccountUpdateContract.deserializeBinaryFromReader(s,o)},TronWebProto.AccountUpdateContract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setAccountName(s);break;case 2:s=o.readBytes(),t.setOwnerAddress(s);break;default:o.skipField()}return t},TronWebProto.AccountUpdateContract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.AccountUpdateContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.AccountUpdateContract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getAccountName_asU8()).length>0&&o.writeBytes(1,s),(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(2,s)},TronWebProto.AccountUpdateContract.prototype.getAccountName=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.AccountUpdateContract.prototype.getAccountName_asB64=function(){return i.Message.bytesAsB64(this.getAccountName())},TronWebProto.AccountUpdateContract.prototype.getAccountName_asU8=function(){return i.Message.bytesAsU8(this.getAccountName())},TronWebProto.AccountUpdateContract.prototype.setAccountName=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.AccountUpdateContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.AccountUpdateContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.AccountUpdateContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.AccountUpdateContract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,2,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.SetAccountIdContract.prototype.toObject=function(t){return TronWebProto.SetAccountIdContract.toObject(t,this)},TronWebProto.SetAccountIdContract.toObject=function(t,o){var s={accountId:o.getAccountId_asB64(),ownerAddress:o.getOwnerAddress_asB64()};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.SetAccountIdContract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.SetAccountIdContract;return TronWebProto.SetAccountIdContract.deserializeBinaryFromReader(s,o)},TronWebProto.SetAccountIdContract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setAccountId(s);break;case 2:s=o.readBytes(),t.setOwnerAddress(s);break;default:o.skipField()}return t},TronWebProto.SetAccountIdContract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.SetAccountIdContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.SetAccountIdContract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getAccountId_asU8()).length>0&&o.writeBytes(1,s),(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(2,s)},TronWebProto.SetAccountIdContract.prototype.getAccountId=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.SetAccountIdContract.prototype.getAccountId_asB64=function(){return i.Message.bytesAsB64(this.getAccountId())},TronWebProto.SetAccountIdContract.prototype.getAccountId_asU8=function(){return i.Message.bytesAsU8(this.getAccountId())},TronWebProto.SetAccountIdContract.prototype.setAccountId=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.SetAccountIdContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.SetAccountIdContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.SetAccountIdContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.SetAccountIdContract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,2,t)},TronWebProto.AccountPermissionUpdateContract.repeatedFields_=[4],i.Message.GENERATE_TO_OBJECT&&(TronWebProto.AccountPermissionUpdateContract.prototype.toObject=function(t){return TronWebProto.AccountPermissionUpdateContract.toObject(t,this)},TronWebProto.AccountPermissionUpdateContract.toObject=function(t,o){var s,G={ownerAddress:o.getOwnerAddress_asB64(),owner:(s=o.getOwner())&&y.Permission.toObject(t,s),witness:(s=o.getWitness())&&y.Permission.toObject(t,s),activesList:i.Message.toObjectList(o.getActivesList(),y.Permission.toObject,t)};return t&&(G.$jspbMessageInstance=o),G}),TronWebProto.AccountPermissionUpdateContract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.AccountPermissionUpdateContract;return TronWebProto.AccountPermissionUpdateContract.deserializeBinaryFromReader(s,o)},TronWebProto.AccountPermissionUpdateContract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setOwnerAddress(s);break;case 2:s=new y.Permission,o.readMessage(s,y.Permission.deserializeBinaryFromReader),t.setOwner(s);break;case 3:s=new y.Permission,o.readMessage(s,y.Permission.deserializeBinaryFromReader),t.setWitness(s);break;case 4:s=new y.Permission,o.readMessage(s,y.Permission.deserializeBinaryFromReader),t.addActives(s);break;default:o.skipField()}return t},TronWebProto.AccountPermissionUpdateContract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.AccountPermissionUpdateContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.AccountPermissionUpdateContract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getOwner())!=null&&o.writeMessage(2,s,y.Permission.serializeBinaryToWriter),(s=t.getWitness())!=null&&o.writeMessage(3,s,y.Permission.serializeBinaryToWriter),(s=t.getActivesList()).length>0&&o.writeRepeatedMessage(4,s,y.Permission.serializeBinaryToWriter)},TronWebProto.AccountPermissionUpdateContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.AccountPermissionUpdateContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.AccountPermissionUpdateContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.AccountPermissionUpdateContract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.AccountPermissionUpdateContract.prototype.getOwner=function(){return i.Message.getWrapperField(this,y.Permission,2)},TronWebProto.AccountPermissionUpdateContract.prototype.setOwner=function(t){return i.Message.setWrapperField(this,2,t)},TronWebProto.AccountPermissionUpdateContract.prototype.clearOwner=function(){return this.setOwner(void 0)},TronWebProto.AccountPermissionUpdateContract.prototype.hasOwner=function(){return i.Message.getField(this,2)!=null},TronWebProto.AccountPermissionUpdateContract.prototype.getWitness=function(){return i.Message.getWrapperField(this,y.Permission,3)},TronWebProto.AccountPermissionUpdateContract.prototype.setWitness=function(t){return i.Message.setWrapperField(this,3,t)},TronWebProto.AccountPermissionUpdateContract.prototype.clearWitness=function(){return this.setWitness(void 0)},TronWebProto.AccountPermissionUpdateContract.prototype.hasWitness=function(){return i.Message.getField(this,3)!=null},TronWebProto.AccountPermissionUpdateContract.prototype.getActivesList=function(){return i.Message.getRepeatedWrapperField(this,y.Permission,4)},TronWebProto.AccountPermissionUpdateContract.prototype.setActivesList=function(t){return i.Message.setRepeatedWrapperField(this,4,t)},TronWebProto.AccountPermissionUpdateContract.prototype.addActives=function(t,o){return i.Message.addToRepeatedWrapperField(this,4,t,TronWebProto.Permission,o)},TronWebProto.AccountPermissionUpdateContract.prototype.clearActivesList=function(){return this.setActivesList([])},W.object.extend(v,TronWebProto)},6439:(V,v,k)=>{var i=k(5595),W=i,B=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||B!==void 0&&B||typeof self<"u"&&self||(function(){return this}).call(null)||Function("return this")();W.exportSymbol("TronWebProto.AssetIssueContract",null,B),W.exportSymbol("TronWebProto.AssetIssueContract.FrozenSupply",null,B),W.exportSymbol("TronWebProto.ParticipateAssetIssueContract",null,B),W.exportSymbol("TronWebProto.TransferAssetContract",null,B),W.exportSymbol("TronWebProto.UnfreezeAssetContract",null,B),W.exportSymbol("TronWebProto.UpdateAssetContract",null,B),TronWebProto.AssetIssueContract=function(y){i.Message.initialize(this,y,0,-1,TronWebProto.AssetIssueContract.repeatedFields_,null)},W.inherits(TronWebProto.AssetIssueContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.AssetIssueContract.displayName="TronWebProto.AssetIssueContract"),TronWebProto.AssetIssueContract.FrozenSupply=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.AssetIssueContract.FrozenSupply,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.AssetIssueContract.FrozenSupply.displayName="TronWebProto.AssetIssueContract.FrozenSupply"),TronWebProto.TransferAssetContract=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.TransferAssetContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.TransferAssetContract.displayName="TronWebProto.TransferAssetContract"),TronWebProto.UnfreezeAssetContract=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.UnfreezeAssetContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.UnfreezeAssetContract.displayName="TronWebProto.UnfreezeAssetContract"),TronWebProto.UpdateAssetContract=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.UpdateAssetContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.UpdateAssetContract.displayName="TronWebProto.UpdateAssetContract"),TronWebProto.ParticipateAssetIssueContract=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.ParticipateAssetIssueContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.ParticipateAssetIssueContract.displayName="TronWebProto.ParticipateAssetIssueContract"),TronWebProto.AssetIssueContract.repeatedFields_=[5],i.Message.GENERATE_TO_OBJECT&&(TronWebProto.AssetIssueContract.prototype.toObject=function(y){return TronWebProto.AssetIssueContract.toObject(y,this)},TronWebProto.AssetIssueContract.toObject=function(y,t){var o={id:i.Message.getFieldWithDefault(t,41,""),ownerAddress:t.getOwnerAddress_asB64(),name:t.getName_asB64(),abbr:t.getAbbr_asB64(),totalSupply:i.Message.getFieldWithDefault(t,4,0),frozenSupplyList:i.Message.toObjectList(t.getFrozenSupplyList(),TronWebProto.AssetIssueContract.FrozenSupply.toObject,y),trxNum:i.Message.getFieldWithDefault(t,6,0),precision:i.Message.getFieldWithDefault(t,7,0),num:i.Message.getFieldWithDefault(t,8,0),startTime:i.Message.getFieldWithDefault(t,9,0),endTime:i.Message.getFieldWithDefault(t,10,0),order:i.Message.getFieldWithDefault(t,11,0),voteScore:i.Message.getFieldWithDefault(t,16,0),description:t.getDescription_asB64(),url:t.getUrl_asB64(),freeAssetNetLimit:i.Message.getFieldWithDefault(t,22,0),publicFreeAssetNetLimit:i.Message.getFieldWithDefault(t,23,0),publicFreeAssetNetUsage:i.Message.getFieldWithDefault(t,24,0),publicLatestFreeNetTime:i.Message.getFieldWithDefault(t,25,0)};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.AssetIssueContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.AssetIssueContract;return TronWebProto.AssetIssueContract.deserializeBinaryFromReader(o,t)},TronWebProto.AssetIssueContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 41:var o=t.readString();y.setId(o);break;case 1:o=t.readBytes(),y.setOwnerAddress(o);break;case 2:o=t.readBytes(),y.setName(o);break;case 3:o=t.readBytes(),y.setAbbr(o);break;case 4:o=t.readInt64(),y.setTotalSupply(o);break;case 5:o=new TronWebProto.AssetIssueContract.FrozenSupply,t.readMessage(o,TronWebProto.AssetIssueContract.FrozenSupply.deserializeBinaryFromReader),y.addFrozenSupply(o);break;case 6:o=t.readInt32(),y.setTrxNum(o);break;case 7:o=t.readInt32(),y.setPrecision(o);break;case 8:o=t.readInt32(),y.setNum(o);break;case 9:o=t.readInt64(),y.setStartTime(o);break;case 10:o=t.readInt64(),y.setEndTime(o);break;case 11:o=t.readInt64(),y.setOrder(o);break;case 16:o=t.readInt32(),y.setVoteScore(o);break;case 20:o=t.readBytes(),y.setDescription(o);break;case 21:o=t.readBytes(),y.setUrl(o);break;case 22:o=t.readInt64(),y.setFreeAssetNetLimit(o);break;case 23:o=t.readInt64(),y.setPublicFreeAssetNetLimit(o);break;case 24:o=t.readInt64(),y.setPublicFreeAssetNetUsage(o);break;case 25:o=t.readInt64(),y.setPublicLatestFreeNetTime(o);break;default:t.skipField()}return y},TronWebProto.AssetIssueContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.AssetIssueContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.AssetIssueContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getId()).length>0&&t.writeString(41,o),(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getName_asU8()).length>0&&t.writeBytes(2,o),(o=y.getAbbr_asU8()).length>0&&t.writeBytes(3,o),(o=y.getTotalSupply())!==0&&t.writeInt64(4,o),(o=y.getFrozenSupplyList()).length>0&&t.writeRepeatedMessage(5,o,TronWebProto.AssetIssueContract.FrozenSupply.serializeBinaryToWriter),(o=y.getTrxNum())!==0&&t.writeInt32(6,o),(o=y.getPrecision())!==0&&t.writeInt32(7,o),(o=y.getNum())!==0&&t.writeInt32(8,o),(o=y.getStartTime())!==0&&t.writeInt64(9,o),(o=y.getEndTime())!==0&&t.writeInt64(10,o),(o=y.getOrder())!==0&&t.writeInt64(11,o),(o=y.getVoteScore())!==0&&t.writeInt32(16,o),(o=y.getDescription_asU8()).length>0&&t.writeBytes(20,o),(o=y.getUrl_asU8()).length>0&&t.writeBytes(21,o),(o=y.getFreeAssetNetLimit())!==0&&t.writeInt64(22,o),(o=y.getPublicFreeAssetNetLimit())!==0&&t.writeInt64(23,o),(o=y.getPublicFreeAssetNetUsage())!==0&&t.writeInt64(24,o),(o=y.getPublicLatestFreeNetTime())!==0&&t.writeInt64(25,o)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.AssetIssueContract.FrozenSupply.prototype.toObject=function(y){return TronWebProto.AssetIssueContract.FrozenSupply.toObject(y,this)},TronWebProto.AssetIssueContract.FrozenSupply.toObject=function(y,t){var o={frozenAmount:i.Message.getFieldWithDefault(t,1,0),frozenDays:i.Message.getFieldWithDefault(t,2,0)};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.AssetIssueContract.FrozenSupply.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.AssetIssueContract.FrozenSupply;return TronWebProto.AssetIssueContract.FrozenSupply.deserializeBinaryFromReader(o,t)},TronWebProto.AssetIssueContract.FrozenSupply.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readInt64();y.setFrozenAmount(o);break;case 2:o=t.readInt64(),y.setFrozenDays(o);break;default:t.skipField()}return y},TronWebProto.AssetIssueContract.FrozenSupply.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.AssetIssueContract.FrozenSupply.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.AssetIssueContract.FrozenSupply.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getFrozenAmount())!==0&&t.writeInt64(1,o),(o=y.getFrozenDays())!==0&&t.writeInt64(2,o)},TronWebProto.AssetIssueContract.FrozenSupply.prototype.getFrozenAmount=function(){return i.Message.getFieldWithDefault(this,1,0)},TronWebProto.AssetIssueContract.FrozenSupply.prototype.setFrozenAmount=function(y){return i.Message.setProto3IntField(this,1,y)},TronWebProto.AssetIssueContract.FrozenSupply.prototype.getFrozenDays=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.AssetIssueContract.FrozenSupply.prototype.setFrozenDays=function(y){return i.Message.setProto3IntField(this,2,y)},TronWebProto.AssetIssueContract.prototype.getId=function(){return i.Message.getFieldWithDefault(this,41,"")},TronWebProto.AssetIssueContract.prototype.setId=function(y){return i.Message.setProto3StringField(this,41,y)},TronWebProto.AssetIssueContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.AssetIssueContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.AssetIssueContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.AssetIssueContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.AssetIssueContract.prototype.getName=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.AssetIssueContract.prototype.getName_asB64=function(){return i.Message.bytesAsB64(this.getName())},TronWebProto.AssetIssueContract.prototype.getName_asU8=function(){return i.Message.bytesAsU8(this.getName())},TronWebProto.AssetIssueContract.prototype.setName=function(y){return i.Message.setProto3BytesField(this,2,y)},TronWebProto.AssetIssueContract.prototype.getAbbr=function(){return i.Message.getFieldWithDefault(this,3,"")},TronWebProto.AssetIssueContract.prototype.getAbbr_asB64=function(){return i.Message.bytesAsB64(this.getAbbr())},TronWebProto.AssetIssueContract.prototype.getAbbr_asU8=function(){return i.Message.bytesAsU8(this.getAbbr())},TronWebProto.AssetIssueContract.prototype.setAbbr=function(y){return i.Message.setProto3BytesField(this,3,y)},TronWebProto.AssetIssueContract.prototype.getTotalSupply=function(){return i.Message.getFieldWithDefault(this,4,0)},TronWebProto.AssetIssueContract.prototype.setTotalSupply=function(y){return i.Message.setProto3IntField(this,4,y)},TronWebProto.AssetIssueContract.prototype.getFrozenSupplyList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.AssetIssueContract.FrozenSupply,5)},TronWebProto.AssetIssueContract.prototype.setFrozenSupplyList=function(y){return i.Message.setRepeatedWrapperField(this,5,y)},TronWebProto.AssetIssueContract.prototype.addFrozenSupply=function(y,t){return i.Message.addToRepeatedWrapperField(this,5,y,TronWebProto.AssetIssueContract.FrozenSupply,t)},TronWebProto.AssetIssueContract.prototype.clearFrozenSupplyList=function(){return this.setFrozenSupplyList([])},TronWebProto.AssetIssueContract.prototype.getTrxNum=function(){return i.Message.getFieldWithDefault(this,6,0)},TronWebProto.AssetIssueContract.prototype.setTrxNum=function(y){return i.Message.setProto3IntField(this,6,y)},TronWebProto.AssetIssueContract.prototype.getPrecision=function(){return i.Message.getFieldWithDefault(this,7,0)},TronWebProto.AssetIssueContract.prototype.setPrecision=function(y){return i.Message.setProto3IntField(this,7,y)},TronWebProto.AssetIssueContract.prototype.getNum=function(){return i.Message.getFieldWithDefault(this,8,0)},TronWebProto.AssetIssueContract.prototype.setNum=function(y){return i.Message.setProto3IntField(this,8,y)},TronWebProto.AssetIssueContract.prototype.getStartTime=function(){return i.Message.getFieldWithDefault(this,9,0)},TronWebProto.AssetIssueContract.prototype.setStartTime=function(y){return i.Message.setProto3IntField(this,9,y)},TronWebProto.AssetIssueContract.prototype.getEndTime=function(){return i.Message.getFieldWithDefault(this,10,0)},TronWebProto.AssetIssueContract.prototype.setEndTime=function(y){return i.Message.setProto3IntField(this,10,y)},TronWebProto.AssetIssueContract.prototype.getOrder=function(){return i.Message.getFieldWithDefault(this,11,0)},TronWebProto.AssetIssueContract.prototype.setOrder=function(y){return i.Message.setProto3IntField(this,11,y)},TronWebProto.AssetIssueContract.prototype.getVoteScore=function(){return i.Message.getFieldWithDefault(this,16,0)},TronWebProto.AssetIssueContract.prototype.setVoteScore=function(y){return i.Message.setProto3IntField(this,16,y)},TronWebProto.AssetIssueContract.prototype.getDescription=function(){return i.Message.getFieldWithDefault(this,20,"")},TronWebProto.AssetIssueContract.prototype.getDescription_asB64=function(){return i.Message.bytesAsB64(this.getDescription())},TronWebProto.AssetIssueContract.prototype.getDescription_asU8=function(){return i.Message.bytesAsU8(this.getDescription())},TronWebProto.AssetIssueContract.prototype.setDescription=function(y){return i.Message.setProto3BytesField(this,20,y)},TronWebProto.AssetIssueContract.prototype.getUrl=function(){return i.Message.getFieldWithDefault(this,21,"")},TronWebProto.AssetIssueContract.prototype.getUrl_asB64=function(){return i.Message.bytesAsB64(this.getUrl())},TronWebProto.AssetIssueContract.prototype.getUrl_asU8=function(){return i.Message.bytesAsU8(this.getUrl())},TronWebProto.AssetIssueContract.prototype.setUrl=function(y){return i.Message.setProto3BytesField(this,21,y)},TronWebProto.AssetIssueContract.prototype.getFreeAssetNetLimit=function(){return i.Message.getFieldWithDefault(this,22,0)},TronWebProto.AssetIssueContract.prototype.setFreeAssetNetLimit=function(y){return i.Message.setProto3IntField(this,22,y)},TronWebProto.AssetIssueContract.prototype.getPublicFreeAssetNetLimit=function(){return i.Message.getFieldWithDefault(this,23,0)},TronWebProto.AssetIssueContract.prototype.setPublicFreeAssetNetLimit=function(y){return i.Message.setProto3IntField(this,23,y)},TronWebProto.AssetIssueContract.prototype.getPublicFreeAssetNetUsage=function(){return i.Message.getFieldWithDefault(this,24,0)},TronWebProto.AssetIssueContract.prototype.setPublicFreeAssetNetUsage=function(y){return i.Message.setProto3IntField(this,24,y)},TronWebProto.AssetIssueContract.prototype.getPublicLatestFreeNetTime=function(){return i.Message.getFieldWithDefault(this,25,0)},TronWebProto.AssetIssueContract.prototype.setPublicLatestFreeNetTime=function(y){return i.Message.setProto3IntField(this,25,y)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.TransferAssetContract.prototype.toObject=function(y){return TronWebProto.TransferAssetContract.toObject(y,this)},TronWebProto.TransferAssetContract.toObject=function(y,t){var o={assetName:t.getAssetName_asB64(),ownerAddress:t.getOwnerAddress_asB64(),toAddress:t.getToAddress_asB64(),amount:i.Message.getFieldWithDefault(t,4,0)};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.TransferAssetContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.TransferAssetContract;return TronWebProto.TransferAssetContract.deserializeBinaryFromReader(o,t)},TronWebProto.TransferAssetContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setAssetName(o);break;case 2:o=t.readBytes(),y.setOwnerAddress(o);break;case 3:o=t.readBytes(),y.setToAddress(o);break;case 4:o=t.readInt64(),y.setAmount(o);break;default:t.skipField()}return y},TronWebProto.TransferAssetContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.TransferAssetContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.TransferAssetContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getAssetName_asU8()).length>0&&t.writeBytes(1,o),(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(2,o),(o=y.getToAddress_asU8()).length>0&&t.writeBytes(3,o),(o=y.getAmount())!==0&&t.writeInt64(4,o)},TronWebProto.TransferAssetContract.prototype.getAssetName=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.TransferAssetContract.prototype.getAssetName_asB64=function(){return i.Message.bytesAsB64(this.getAssetName())},TronWebProto.TransferAssetContract.prototype.getAssetName_asU8=function(){return i.Message.bytesAsU8(this.getAssetName())},TronWebProto.TransferAssetContract.prototype.setAssetName=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.TransferAssetContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.TransferAssetContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.TransferAssetContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.TransferAssetContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,2,y)},TronWebProto.TransferAssetContract.prototype.getToAddress=function(){return i.Message.getFieldWithDefault(this,3,"")},TronWebProto.TransferAssetContract.prototype.getToAddress_asB64=function(){return i.Message.bytesAsB64(this.getToAddress())},TronWebProto.TransferAssetContract.prototype.getToAddress_asU8=function(){return i.Message.bytesAsU8(this.getToAddress())},TronWebProto.TransferAssetContract.prototype.setToAddress=function(y){return i.Message.setProto3BytesField(this,3,y)},TronWebProto.TransferAssetContract.prototype.getAmount=function(){return i.Message.getFieldWithDefault(this,4,0)},TronWebProto.TransferAssetContract.prototype.setAmount=function(y){return i.Message.setProto3IntField(this,4,y)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.UnfreezeAssetContract.prototype.toObject=function(y){return TronWebProto.UnfreezeAssetContract.toObject(y,this)},TronWebProto.UnfreezeAssetContract.toObject=function(y,t){var o={ownerAddress:t.getOwnerAddress_asB64()};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.UnfreezeAssetContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.UnfreezeAssetContract;return TronWebProto.UnfreezeAssetContract.deserializeBinaryFromReader(o,t)},TronWebProto.UnfreezeAssetContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)if(t.getFieldNumber()===1){var o=t.readBytes();y.setOwnerAddress(o)}else t.skipField();return y},TronWebProto.UnfreezeAssetContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.UnfreezeAssetContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.UnfreezeAssetContract.serializeBinaryToWriter=function(y,t){var o;(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o)},TronWebProto.UnfreezeAssetContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.UnfreezeAssetContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.UnfreezeAssetContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.UnfreezeAssetContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.UpdateAssetContract.prototype.toObject=function(y){return TronWebProto.UpdateAssetContract.toObject(y,this)},TronWebProto.UpdateAssetContract.toObject=function(y,t){var o={ownerAddress:t.getOwnerAddress_asB64(),description:t.getDescription_asB64(),url:t.getUrl_asB64(),newLimit:i.Message.getFieldWithDefault(t,4,0),newPublicLimit:i.Message.getFieldWithDefault(t,5,0)};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.UpdateAssetContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.UpdateAssetContract;return TronWebProto.UpdateAssetContract.deserializeBinaryFromReader(o,t)},TronWebProto.UpdateAssetContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setOwnerAddress(o);break;case 2:o=t.readBytes(),y.setDescription(o);break;case 3:o=t.readBytes(),y.setUrl(o);break;case 4:o=t.readInt64(),y.setNewLimit(o);break;case 5:o=t.readInt64(),y.setNewPublicLimit(o);break;default:t.skipField()}return y},TronWebProto.UpdateAssetContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.UpdateAssetContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.UpdateAssetContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getDescription_asU8()).length>0&&t.writeBytes(2,o),(o=y.getUrl_asU8()).length>0&&t.writeBytes(3,o),(o=y.getNewLimit())!==0&&t.writeInt64(4,o),(o=y.getNewPublicLimit())!==0&&t.writeInt64(5,o)},TronWebProto.UpdateAssetContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.UpdateAssetContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.UpdateAssetContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.UpdateAssetContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.UpdateAssetContract.prototype.getDescription=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.UpdateAssetContract.prototype.getDescription_asB64=function(){return i.Message.bytesAsB64(this.getDescription())},TronWebProto.UpdateAssetContract.prototype.getDescription_asU8=function(){return i.Message.bytesAsU8(this.getDescription())},TronWebProto.UpdateAssetContract.prototype.setDescription=function(y){return i.Message.setProto3BytesField(this,2,y)},TronWebProto.UpdateAssetContract.prototype.getUrl=function(){return i.Message.getFieldWithDefault(this,3,"")},TronWebProto.UpdateAssetContract.prototype.getUrl_asB64=function(){return i.Message.bytesAsB64(this.getUrl())},TronWebProto.UpdateAssetContract.prototype.getUrl_asU8=function(){return i.Message.bytesAsU8(this.getUrl())},TronWebProto.UpdateAssetContract.prototype.setUrl=function(y){return i.Message.setProto3BytesField(this,3,y)},TronWebProto.UpdateAssetContract.prototype.getNewLimit=function(){return i.Message.getFieldWithDefault(this,4,0)},TronWebProto.UpdateAssetContract.prototype.setNewLimit=function(y){return i.Message.setProto3IntField(this,4,y)},TronWebProto.UpdateAssetContract.prototype.getNewPublicLimit=function(){return i.Message.getFieldWithDefault(this,5,0)},TronWebProto.UpdateAssetContract.prototype.setNewPublicLimit=function(y){return i.Message.setProto3IntField(this,5,y)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.ParticipateAssetIssueContract.prototype.toObject=function(y){return TronWebProto.ParticipateAssetIssueContract.toObject(y,this)},TronWebProto.ParticipateAssetIssueContract.toObject=function(y,t){var o={ownerAddress:t.getOwnerAddress_asB64(),toAddress:t.getToAddress_asB64(),assetName:t.getAssetName_asB64(),amount:i.Message.getFieldWithDefault(t,4,0)};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.ParticipateAssetIssueContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.ParticipateAssetIssueContract;return TronWebProto.ParticipateAssetIssueContract.deserializeBinaryFromReader(o,t)},TronWebProto.ParticipateAssetIssueContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setOwnerAddress(o);break;case 2:o=t.readBytes(),y.setToAddress(o);break;case 3:o=t.readBytes(),y.setAssetName(o);break;case 4:o=t.readInt64(),y.setAmount(o);break;default:t.skipField()}return y},TronWebProto.ParticipateAssetIssueContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.ParticipateAssetIssueContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.ParticipateAssetIssueContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getToAddress_asU8()).length>0&&t.writeBytes(2,o),(o=y.getAssetName_asU8()).length>0&&t.writeBytes(3,o),(o=y.getAmount())!==0&&t.writeInt64(4,o)},TronWebProto.ParticipateAssetIssueContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.ParticipateAssetIssueContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.ParticipateAssetIssueContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.ParticipateAssetIssueContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.ParticipateAssetIssueContract.prototype.getToAddress=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.ParticipateAssetIssueContract.prototype.getToAddress_asB64=function(){return i.Message.bytesAsB64(this.getToAddress())},TronWebProto.ParticipateAssetIssueContract.prototype.getToAddress_asU8=function(){return i.Message.bytesAsU8(this.getToAddress())},TronWebProto.ParticipateAssetIssueContract.prototype.setToAddress=function(y){return i.Message.setProto3BytesField(this,2,y)},TronWebProto.ParticipateAssetIssueContract.prototype.getAssetName=function(){return i.Message.getFieldWithDefault(this,3,"")},TronWebProto.ParticipateAssetIssueContract.prototype.getAssetName_asB64=function(){return i.Message.bytesAsB64(this.getAssetName())},TronWebProto.ParticipateAssetIssueContract.prototype.getAssetName_asU8=function(){return i.Message.bytesAsU8(this.getAssetName())},TronWebProto.ParticipateAssetIssueContract.prototype.setAssetName=function(y){return i.Message.setProto3BytesField(this,3,y)},TronWebProto.ParticipateAssetIssueContract.prototype.getAmount=function(){return i.Message.getFieldWithDefault(this,4,0)},TronWebProto.ParticipateAssetIssueContract.prototype.setAmount=function(y){return i.Message.setProto3IntField(this,4,y)},W.object.extend(v,TronWebProto)},1791:(V,v,k)=>{var i=k(5595),W=i,B=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||B!==void 0&&B||typeof self<"u"&&self||(function(){return this}).call(null)||Function("return this")(),y=k(7764);W.object.extend(proto,y),W.exportSymbol("TronWebProto.AccountBalanceRequest",null,B),W.exportSymbol("TronWebProto.AccountBalanceResponse",null,B),W.exportSymbol("TronWebProto.AccountIdentifier",null,B),W.exportSymbol("TronWebProto.AccountTrace",null,B),W.exportSymbol("TronWebProto.BlockBalanceTrace",null,B),W.exportSymbol("TronWebProto.BlockBalanceTrace.BlockIdentifier",null,B),W.exportSymbol("TronWebProto.CancelAllUnfreezeV2Contract",null,B),W.exportSymbol("TronWebProto.DelegateResourceContract",null,B),W.exportSymbol("TronWebProto.FreezeBalanceContract",null,B),W.exportSymbol("TronWebProto.FreezeBalanceV2Contract",null,B),W.exportSymbol("TronWebProto.TransactionBalanceTrace",null,B),W.exportSymbol("TronWebProto.TransactionBalanceTrace.Operation",null,B),W.exportSymbol("TronWebProto.TransferContract",null,B),W.exportSymbol("TronWebProto.UnDelegateResourceContract",null,B),W.exportSymbol("TronWebProto.UnfreezeBalanceContract",null,B),W.exportSymbol("TronWebProto.UnfreezeBalanceV2Contract",null,B),W.exportSymbol("TronWebProto.WithdrawBalanceContract",null,B),W.exportSymbol("TronWebProto.WithdrawExpireUnfreezeContract",null,B),TronWebProto.FreezeBalanceContract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.FreezeBalanceContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.FreezeBalanceContract.displayName="TronWebProto.FreezeBalanceContract"),TronWebProto.UnfreezeBalanceContract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.UnfreezeBalanceContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.UnfreezeBalanceContract.displayName="TronWebProto.UnfreezeBalanceContract"),TronWebProto.WithdrawBalanceContract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.WithdrawBalanceContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.WithdrawBalanceContract.displayName="TronWebProto.WithdrawBalanceContract"),TronWebProto.TransferContract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.TransferContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.TransferContract.displayName="TronWebProto.TransferContract"),TronWebProto.TransactionBalanceTrace=function(t){i.Message.initialize(this,t,0,-1,TronWebProto.TransactionBalanceTrace.repeatedFields_,null)},W.inherits(TronWebProto.TransactionBalanceTrace,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.TransactionBalanceTrace.displayName="TronWebProto.TransactionBalanceTrace"),TronWebProto.TransactionBalanceTrace.Operation=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.TransactionBalanceTrace.Operation,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.TransactionBalanceTrace.Operation.displayName="TronWebProto.TransactionBalanceTrace.Operation"),TronWebProto.BlockBalanceTrace=function(t){i.Message.initialize(this,t,0,-1,TronWebProto.BlockBalanceTrace.repeatedFields_,null)},W.inherits(TronWebProto.BlockBalanceTrace,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.BlockBalanceTrace.displayName="TronWebProto.BlockBalanceTrace"),TronWebProto.BlockBalanceTrace.BlockIdentifier=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.BlockBalanceTrace.BlockIdentifier,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.BlockBalanceTrace.BlockIdentifier.displayName="TronWebProto.BlockBalanceTrace.BlockIdentifier"),TronWebProto.AccountTrace=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.AccountTrace,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.AccountTrace.displayName="TronWebProto.AccountTrace"),TronWebProto.AccountIdentifier=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.AccountIdentifier,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.AccountIdentifier.displayName="TronWebProto.AccountIdentifier"),TronWebProto.AccountBalanceRequest=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.AccountBalanceRequest,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.AccountBalanceRequest.displayName="TronWebProto.AccountBalanceRequest"),TronWebProto.AccountBalanceResponse=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.AccountBalanceResponse,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.AccountBalanceResponse.displayName="TronWebProto.AccountBalanceResponse"),TronWebProto.FreezeBalanceV2Contract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.FreezeBalanceV2Contract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.FreezeBalanceV2Contract.displayName="TronWebProto.FreezeBalanceV2Contract"),TronWebProto.UnfreezeBalanceV2Contract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.UnfreezeBalanceV2Contract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.UnfreezeBalanceV2Contract.displayName="TronWebProto.UnfreezeBalanceV2Contract"),TronWebProto.WithdrawExpireUnfreezeContract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.WithdrawExpireUnfreezeContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.WithdrawExpireUnfreezeContract.displayName="TronWebProto.WithdrawExpireUnfreezeContract"),TronWebProto.DelegateResourceContract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.DelegateResourceContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.DelegateResourceContract.displayName="TronWebProto.DelegateResourceContract"),TronWebProto.UnDelegateResourceContract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.UnDelegateResourceContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.UnDelegateResourceContract.displayName="TronWebProto.UnDelegateResourceContract"),TronWebProto.CancelAllUnfreezeV2Contract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.CancelAllUnfreezeV2Contract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.CancelAllUnfreezeV2Contract.displayName="TronWebProto.CancelAllUnfreezeV2Contract"),i.Message.GENERATE_TO_OBJECT&&(TronWebProto.FreezeBalanceContract.prototype.toObject=function(t){return TronWebProto.FreezeBalanceContract.toObject(t,this)},TronWebProto.FreezeBalanceContract.toObject=function(t,o){var s={ownerAddress:o.getOwnerAddress_asB64(),frozenBalance:i.Message.getFieldWithDefault(o,2,0),frozenDuration:i.Message.getFieldWithDefault(o,3,0),resource:i.Message.getFieldWithDefault(o,10,0),receiverAddress:o.getReceiverAddress_asB64()};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.FreezeBalanceContract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.FreezeBalanceContract;return TronWebProto.FreezeBalanceContract.deserializeBinaryFromReader(s,o)},TronWebProto.FreezeBalanceContract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setOwnerAddress(s);break;case 2:s=o.readInt64(),t.setFrozenBalance(s);break;case 3:s=o.readInt64(),t.setFrozenDuration(s);break;case 10:s=o.readEnum(),t.setResource(s);break;case 15:s=o.readBytes(),t.setReceiverAddress(s);break;default:o.skipField()}return t},TronWebProto.FreezeBalanceContract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.FreezeBalanceContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.FreezeBalanceContract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getFrozenBalance())!==0&&o.writeInt64(2,s),(s=t.getFrozenDuration())!==0&&o.writeInt64(3,s),(s=t.getResource())!==0&&o.writeEnum(10,s),(s=t.getReceiverAddress_asU8()).length>0&&o.writeBytes(15,s)},TronWebProto.FreezeBalanceContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.FreezeBalanceContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.FreezeBalanceContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.FreezeBalanceContract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.FreezeBalanceContract.prototype.getFrozenBalance=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.FreezeBalanceContract.prototype.setFrozenBalance=function(t){return i.Message.setProto3IntField(this,2,t)},TronWebProto.FreezeBalanceContract.prototype.getFrozenDuration=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.FreezeBalanceContract.prototype.setFrozenDuration=function(t){return i.Message.setProto3IntField(this,3,t)},TronWebProto.FreezeBalanceContract.prototype.getResource=function(){return i.Message.getFieldWithDefault(this,10,0)},TronWebProto.FreezeBalanceContract.prototype.setResource=function(t){return i.Message.setProto3EnumField(this,10,t)},TronWebProto.FreezeBalanceContract.prototype.getReceiverAddress=function(){return i.Message.getFieldWithDefault(this,15,"")},TronWebProto.FreezeBalanceContract.prototype.getReceiverAddress_asB64=function(){return i.Message.bytesAsB64(this.getReceiverAddress())},TronWebProto.FreezeBalanceContract.prototype.getReceiverAddress_asU8=function(){return i.Message.bytesAsU8(this.getReceiverAddress())},TronWebProto.FreezeBalanceContract.prototype.setReceiverAddress=function(t){return i.Message.setProto3BytesField(this,15,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.UnfreezeBalanceContract.prototype.toObject=function(t){return TronWebProto.UnfreezeBalanceContract.toObject(t,this)},TronWebProto.UnfreezeBalanceContract.toObject=function(t,o){var s={ownerAddress:o.getOwnerAddress_asB64(),resource:i.Message.getFieldWithDefault(o,10,0),receiverAddress:o.getReceiverAddress_asB64()};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.UnfreezeBalanceContract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.UnfreezeBalanceContract;return TronWebProto.UnfreezeBalanceContract.deserializeBinaryFromReader(s,o)},TronWebProto.UnfreezeBalanceContract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setOwnerAddress(s);break;case 10:s=o.readEnum(),t.setResource(s);break;case 15:s=o.readBytes(),t.setReceiverAddress(s);break;default:o.skipField()}return t},TronWebProto.UnfreezeBalanceContract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.UnfreezeBalanceContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.UnfreezeBalanceContract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getResource())!==0&&o.writeEnum(10,s),(s=t.getReceiverAddress_asU8()).length>0&&o.writeBytes(15,s)},TronWebProto.UnfreezeBalanceContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.UnfreezeBalanceContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.UnfreezeBalanceContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.UnfreezeBalanceContract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.UnfreezeBalanceContract.prototype.getResource=function(){return i.Message.getFieldWithDefault(this,10,0)},TronWebProto.UnfreezeBalanceContract.prototype.setResource=function(t){return i.Message.setProto3EnumField(this,10,t)},TronWebProto.UnfreezeBalanceContract.prototype.getReceiverAddress=function(){return i.Message.getFieldWithDefault(this,15,"")},TronWebProto.UnfreezeBalanceContract.prototype.getReceiverAddress_asB64=function(){return i.Message.bytesAsB64(this.getReceiverAddress())},TronWebProto.UnfreezeBalanceContract.prototype.getReceiverAddress_asU8=function(){return i.Message.bytesAsU8(this.getReceiverAddress())},TronWebProto.UnfreezeBalanceContract.prototype.setReceiverAddress=function(t){return i.Message.setProto3BytesField(this,15,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.WithdrawBalanceContract.prototype.toObject=function(t){return TronWebProto.WithdrawBalanceContract.toObject(t,this)},TronWebProto.WithdrawBalanceContract.toObject=function(t,o){var s={ownerAddress:o.getOwnerAddress_asB64()};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.WithdrawBalanceContract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.WithdrawBalanceContract;return TronWebProto.WithdrawBalanceContract.deserializeBinaryFromReader(s,o)},TronWebProto.WithdrawBalanceContract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)if(o.getFieldNumber()===1){var s=o.readBytes();t.setOwnerAddress(s)}else o.skipField();return t},TronWebProto.WithdrawBalanceContract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.WithdrawBalanceContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.WithdrawBalanceContract.serializeBinaryToWriter=function(t,o){var s;(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(1,s)},TronWebProto.WithdrawBalanceContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.WithdrawBalanceContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.WithdrawBalanceContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.WithdrawBalanceContract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.TransferContract.prototype.toObject=function(t){return TronWebProto.TransferContract.toObject(t,this)},TronWebProto.TransferContract.toObject=function(t,o){var s={ownerAddress:o.getOwnerAddress_asB64(),toAddress:o.getToAddress_asB64(),amount:i.Message.getFieldWithDefault(o,3,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.TransferContract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.TransferContract;return TronWebProto.TransferContract.deserializeBinaryFromReader(s,o)},TronWebProto.TransferContract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setOwnerAddress(s);break;case 2:s=o.readBytes(),t.setToAddress(s);break;case 3:s=o.readInt64(),t.setAmount(s);break;default:o.skipField()}return t},TronWebProto.TransferContract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.TransferContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.TransferContract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getToAddress_asU8()).length>0&&o.writeBytes(2,s),(s=t.getAmount())!==0&&o.writeInt64(3,s)},TronWebProto.TransferContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.TransferContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.TransferContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.TransferContract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.TransferContract.prototype.getToAddress=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.TransferContract.prototype.getToAddress_asB64=function(){return i.Message.bytesAsB64(this.getToAddress())},TronWebProto.TransferContract.prototype.getToAddress_asU8=function(){return i.Message.bytesAsU8(this.getToAddress())},TronWebProto.TransferContract.prototype.setToAddress=function(t){return i.Message.setProto3BytesField(this,2,t)},TronWebProto.TransferContract.prototype.getAmount=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.TransferContract.prototype.setAmount=function(t){return i.Message.setProto3IntField(this,3,t)},TronWebProto.TransactionBalanceTrace.repeatedFields_=[2],i.Message.GENERATE_TO_OBJECT&&(TronWebProto.TransactionBalanceTrace.prototype.toObject=function(t){return TronWebProto.TransactionBalanceTrace.toObject(t,this)},TronWebProto.TransactionBalanceTrace.toObject=function(t,o){var s={transactionIdentifier:o.getTransactionIdentifier_asB64(),operationList:i.Message.toObjectList(o.getOperationList(),TronWebProto.TransactionBalanceTrace.Operation.toObject,t),type:i.Message.getFieldWithDefault(o,3,""),status:i.Message.getFieldWithDefault(o,4,"")};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.TransactionBalanceTrace.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.TransactionBalanceTrace;return TronWebProto.TransactionBalanceTrace.deserializeBinaryFromReader(s,o)},TronWebProto.TransactionBalanceTrace.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setTransactionIdentifier(s);break;case 2:s=new TronWebProto.TransactionBalanceTrace.Operation,o.readMessage(s,TronWebProto.TransactionBalanceTrace.Operation.deserializeBinaryFromReader),t.addOperation(s);break;case 3:s=o.readString(),t.setType(s);break;case 4:s=o.readString(),t.setStatus(s);break;default:o.skipField()}return t},TronWebProto.TransactionBalanceTrace.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.TransactionBalanceTrace.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.TransactionBalanceTrace.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getTransactionIdentifier_asU8()).length>0&&o.writeBytes(1,s),(s=t.getOperationList()).length>0&&o.writeRepeatedMessage(2,s,TronWebProto.TransactionBalanceTrace.Operation.serializeBinaryToWriter),(s=t.getType()).length>0&&o.writeString(3,s),(s=t.getStatus()).length>0&&o.writeString(4,s)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.TransactionBalanceTrace.Operation.prototype.toObject=function(t){return TronWebProto.TransactionBalanceTrace.Operation.toObject(t,this)},TronWebProto.TransactionBalanceTrace.Operation.toObject=function(t,o){var s={operationIdentifier:i.Message.getFieldWithDefault(o,1,0),address:o.getAddress_asB64(),amount:i.Message.getFieldWithDefault(o,3,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.TransactionBalanceTrace.Operation.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.TransactionBalanceTrace.Operation;return TronWebProto.TransactionBalanceTrace.Operation.deserializeBinaryFromReader(s,o)},TronWebProto.TransactionBalanceTrace.Operation.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readInt64();t.setOperationIdentifier(s);break;case 2:s=o.readBytes(),t.setAddress(s);break;case 3:s=o.readInt64(),t.setAmount(s);break;default:o.skipField()}return t},TronWebProto.TransactionBalanceTrace.Operation.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.TransactionBalanceTrace.Operation.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.TransactionBalanceTrace.Operation.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getOperationIdentifier())!==0&&o.writeInt64(1,s),(s=t.getAddress_asU8()).length>0&&o.writeBytes(2,s),(s=t.getAmount())!==0&&o.writeInt64(3,s)},TronWebProto.TransactionBalanceTrace.Operation.prototype.getOperationIdentifier=function(){return i.Message.getFieldWithDefault(this,1,0)},TronWebProto.TransactionBalanceTrace.Operation.prototype.setOperationIdentifier=function(t){return i.Message.setProto3IntField(this,1,t)},TronWebProto.TransactionBalanceTrace.Operation.prototype.getAddress=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.TransactionBalanceTrace.Operation.prototype.getAddress_asB64=function(){return i.Message.bytesAsB64(this.getAddress())},TronWebProto.TransactionBalanceTrace.Operation.prototype.getAddress_asU8=function(){return i.Message.bytesAsU8(this.getAddress())},TronWebProto.TransactionBalanceTrace.Operation.prototype.setAddress=function(t){return i.Message.setProto3BytesField(this,2,t)},TronWebProto.TransactionBalanceTrace.Operation.prototype.getAmount=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.TransactionBalanceTrace.Operation.prototype.setAmount=function(t){return i.Message.setProto3IntField(this,3,t)},TronWebProto.TransactionBalanceTrace.prototype.getTransactionIdentifier=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.TransactionBalanceTrace.prototype.getTransactionIdentifier_asB64=function(){return i.Message.bytesAsB64(this.getTransactionIdentifier())},TronWebProto.TransactionBalanceTrace.prototype.getTransactionIdentifier_asU8=function(){return i.Message.bytesAsU8(this.getTransactionIdentifier())},TronWebProto.TransactionBalanceTrace.prototype.setTransactionIdentifier=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.TransactionBalanceTrace.prototype.getOperationList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.TransactionBalanceTrace.Operation,2)},TronWebProto.TransactionBalanceTrace.prototype.setOperationList=function(t){return i.Message.setRepeatedWrapperField(this,2,t)},TronWebProto.TransactionBalanceTrace.prototype.addOperation=function(t,o){return i.Message.addToRepeatedWrapperField(this,2,t,TronWebProto.TransactionBalanceTrace.Operation,o)},TronWebProto.TransactionBalanceTrace.prototype.clearOperationList=function(){return this.setOperationList([])},TronWebProto.TransactionBalanceTrace.prototype.getType=function(){return i.Message.getFieldWithDefault(this,3,"")},TronWebProto.TransactionBalanceTrace.prototype.setType=function(t){return i.Message.setProto3StringField(this,3,t)},TronWebProto.TransactionBalanceTrace.prototype.getStatus=function(){return i.Message.getFieldWithDefault(this,4,"")},TronWebProto.TransactionBalanceTrace.prototype.setStatus=function(t){return i.Message.setProto3StringField(this,4,t)},TronWebProto.BlockBalanceTrace.repeatedFields_=[3],i.Message.GENERATE_TO_OBJECT&&(TronWebProto.BlockBalanceTrace.prototype.toObject=function(t){return TronWebProto.BlockBalanceTrace.toObject(t,this)},TronWebProto.BlockBalanceTrace.toObject=function(t,o){var s,G={blockIdentifier:(s=o.getBlockIdentifier())&&TronWebProto.BlockBalanceTrace.BlockIdentifier.toObject(t,s),timestamp:i.Message.getFieldWithDefault(o,2,0),transactionBalanceTraceList:i.Message.toObjectList(o.getTransactionBalanceTraceList(),TronWebProto.TransactionBalanceTrace.toObject,t)};return t&&(G.$jspbMessageInstance=o),G}),TronWebProto.BlockBalanceTrace.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.BlockBalanceTrace;return TronWebProto.BlockBalanceTrace.deserializeBinaryFromReader(s,o)},TronWebProto.BlockBalanceTrace.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=new TronWebProto.BlockBalanceTrace.BlockIdentifier;o.readMessage(s,TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader),t.setBlockIdentifier(s);break;case 2:s=o.readInt64(),t.setTimestamp(s);break;case 3:s=new TronWebProto.TransactionBalanceTrace,o.readMessage(s,TronWebProto.TransactionBalanceTrace.deserializeBinaryFromReader),t.addTransactionBalanceTrace(s);break;default:o.skipField()}return t},TronWebProto.BlockBalanceTrace.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.BlockBalanceTrace.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.BlockBalanceTrace.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getBlockIdentifier())!=null&&o.writeMessage(1,s,TronWebProto.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter),(s=t.getTimestamp())!==0&&o.writeInt64(2,s),(s=t.getTransactionBalanceTraceList()).length>0&&o.writeRepeatedMessage(3,s,TronWebProto.TransactionBalanceTrace.serializeBinaryToWriter)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.toObject=function(t){return TronWebProto.BlockBalanceTrace.BlockIdentifier.toObject(t,this)},TronWebProto.BlockBalanceTrace.BlockIdentifier.toObject=function(t,o){var s={hash:o.getHash_asB64(),number:i.Message.getFieldWithDefault(o,2,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.BlockBalanceTrace.BlockIdentifier;return TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader(s,o)},TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setHash(s);break;case 2:s=o.readInt64(),t.setNumber(s);break;default:o.skipField()}return t},TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getHash_asU8()).length>0&&o.writeBytes(1,s),(s=t.getNumber())!==0&&o.writeInt64(2,s)},TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.getHash=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.getHash_asB64=function(){return i.Message.bytesAsB64(this.getHash())},TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.getHash_asU8=function(){return i.Message.bytesAsU8(this.getHash())},TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.setHash=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.getNumber=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.setNumber=function(t){return i.Message.setProto3IntField(this,2,t)},TronWebProto.BlockBalanceTrace.prototype.getBlockIdentifier=function(){return i.Message.getWrapperField(this,TronWebProto.BlockBalanceTrace.BlockIdentifier,1)},TronWebProto.BlockBalanceTrace.prototype.setBlockIdentifier=function(t){return i.Message.setWrapperField(this,1,t)},TronWebProto.BlockBalanceTrace.prototype.clearBlockIdentifier=function(){return this.setBlockIdentifier(void 0)},TronWebProto.BlockBalanceTrace.prototype.hasBlockIdentifier=function(){return i.Message.getField(this,1)!=null},TronWebProto.BlockBalanceTrace.prototype.getTimestamp=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.BlockBalanceTrace.prototype.setTimestamp=function(t){return i.Message.setProto3IntField(this,2,t)},TronWebProto.BlockBalanceTrace.prototype.getTransactionBalanceTraceList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.TransactionBalanceTrace,3)},TronWebProto.BlockBalanceTrace.prototype.setTransactionBalanceTraceList=function(t){return i.Message.setRepeatedWrapperField(this,3,t)},TronWebProto.BlockBalanceTrace.prototype.addTransactionBalanceTrace=function(t,o){return i.Message.addToRepeatedWrapperField(this,3,t,TronWebProto.TransactionBalanceTrace,o)},TronWebProto.BlockBalanceTrace.prototype.clearTransactionBalanceTraceList=function(){return this.setTransactionBalanceTraceList([])},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.AccountTrace.prototype.toObject=function(t){return TronWebProto.AccountTrace.toObject(t,this)},TronWebProto.AccountTrace.toObject=function(t,o){var s={balance:i.Message.getFieldWithDefault(o,1,0),placeholder:i.Message.getFieldWithDefault(o,99,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.AccountTrace.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.AccountTrace;return TronWebProto.AccountTrace.deserializeBinaryFromReader(s,o)},TronWebProto.AccountTrace.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readInt64();t.setBalance(s);break;case 99:s=o.readInt64(),t.setPlaceholder(s);break;default:o.skipField()}return t},TronWebProto.AccountTrace.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.AccountTrace.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.AccountTrace.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getBalance())!==0&&o.writeInt64(1,s),(s=t.getPlaceholder())!==0&&o.writeInt64(99,s)},TronWebProto.AccountTrace.prototype.getBalance=function(){return i.Message.getFieldWithDefault(this,1,0)},TronWebProto.AccountTrace.prototype.setBalance=function(t){return i.Message.setProto3IntField(this,1,t)},TronWebProto.AccountTrace.prototype.getPlaceholder=function(){return i.Message.getFieldWithDefault(this,99,0)},TronWebProto.AccountTrace.prototype.setPlaceholder=function(t){return i.Message.setProto3IntField(this,99,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.AccountIdentifier.prototype.toObject=function(t){return TronWebProto.AccountIdentifier.toObject(t,this)},TronWebProto.AccountIdentifier.toObject=function(t,o){var s={address:o.getAddress_asB64()};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.AccountIdentifier.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.AccountIdentifier;return TronWebProto.AccountIdentifier.deserializeBinaryFromReader(s,o)},TronWebProto.AccountIdentifier.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)if(o.getFieldNumber()===1){var s=o.readBytes();t.setAddress(s)}else o.skipField();return t},TronWebProto.AccountIdentifier.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.AccountIdentifier.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.AccountIdentifier.serializeBinaryToWriter=function(t,o){var s;(s=t.getAddress_asU8()).length>0&&o.writeBytes(1,s)},TronWebProto.AccountIdentifier.prototype.getAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.AccountIdentifier.prototype.getAddress_asB64=function(){return i.Message.bytesAsB64(this.getAddress())},TronWebProto.AccountIdentifier.prototype.getAddress_asU8=function(){return i.Message.bytesAsU8(this.getAddress())},TronWebProto.AccountIdentifier.prototype.setAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.AccountBalanceRequest.prototype.toObject=function(t){return TronWebProto.AccountBalanceRequest.toObject(t,this)},TronWebProto.AccountBalanceRequest.toObject=function(t,o){var s,G={accountIdentifier:(s=o.getAccountIdentifier())&&TronWebProto.AccountIdentifier.toObject(t,s),blockIdentifier:(s=o.getBlockIdentifier())&&TronWebProto.BlockBalanceTrace.BlockIdentifier.toObject(t,s)};return t&&(G.$jspbMessageInstance=o),G}),TronWebProto.AccountBalanceRequest.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.AccountBalanceRequest;return TronWebProto.AccountBalanceRequest.deserializeBinaryFromReader(s,o)},TronWebProto.AccountBalanceRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=new TronWebProto.AccountIdentifier;o.readMessage(s,TronWebProto.AccountIdentifier.deserializeBinaryFromReader),t.setAccountIdentifier(s);break;case 2:s=new TronWebProto.BlockBalanceTrace.BlockIdentifier,o.readMessage(s,TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader),t.setBlockIdentifier(s);break;default:o.skipField()}return t},TronWebProto.AccountBalanceRequest.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.AccountBalanceRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.AccountBalanceRequest.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getAccountIdentifier())!=null&&o.writeMessage(1,s,TronWebProto.AccountIdentifier.serializeBinaryToWriter),(s=t.getBlockIdentifier())!=null&&o.writeMessage(2,s,TronWebProto.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter)},TronWebProto.AccountBalanceRequest.prototype.getAccountIdentifier=function(){return i.Message.getWrapperField(this,TronWebProto.AccountIdentifier,1)},TronWebProto.AccountBalanceRequest.prototype.setAccountIdentifier=function(t){return i.Message.setWrapperField(this,1,t)},TronWebProto.AccountBalanceRequest.prototype.clearAccountIdentifier=function(){return this.setAccountIdentifier(void 0)},TronWebProto.AccountBalanceRequest.prototype.hasAccountIdentifier=function(){return i.Message.getField(this,1)!=null},TronWebProto.AccountBalanceRequest.prototype.getBlockIdentifier=function(){return i.Message.getWrapperField(this,TronWebProto.BlockBalanceTrace.BlockIdentifier,2)},TronWebProto.AccountBalanceRequest.prototype.setBlockIdentifier=function(t){return i.Message.setWrapperField(this,2,t)},TronWebProto.AccountBalanceRequest.prototype.clearBlockIdentifier=function(){return this.setBlockIdentifier(void 0)},TronWebProto.AccountBalanceRequest.prototype.hasBlockIdentifier=function(){return i.Message.getField(this,2)!=null},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.AccountBalanceResponse.prototype.toObject=function(t){return TronWebProto.AccountBalanceResponse.toObject(t,this)},TronWebProto.AccountBalanceResponse.toObject=function(t,o){var s,G={balance:i.Message.getFieldWithDefault(o,1,0),blockIdentifier:(s=o.getBlockIdentifier())&&TronWebProto.BlockBalanceTrace.BlockIdentifier.toObject(t,s)};return t&&(G.$jspbMessageInstance=o),G}),TronWebProto.AccountBalanceResponse.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.AccountBalanceResponse;return TronWebProto.AccountBalanceResponse.deserializeBinaryFromReader(s,o)},TronWebProto.AccountBalanceResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readInt64();t.setBalance(s);break;case 2:s=new TronWebProto.BlockBalanceTrace.BlockIdentifier,o.readMessage(s,TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader),t.setBlockIdentifier(s);break;default:o.skipField()}return t},TronWebProto.AccountBalanceResponse.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.AccountBalanceResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.AccountBalanceResponse.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getBalance())!==0&&o.writeInt64(1,s),(s=t.getBlockIdentifier())!=null&&o.writeMessage(2,s,TronWebProto.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter)},TronWebProto.AccountBalanceResponse.prototype.getBalance=function(){return i.Message.getFieldWithDefault(this,1,0)},TronWebProto.AccountBalanceResponse.prototype.setBalance=function(t){return i.Message.setProto3IntField(this,1,t)},TronWebProto.AccountBalanceResponse.prototype.getBlockIdentifier=function(){return i.Message.getWrapperField(this,TronWebProto.BlockBalanceTrace.BlockIdentifier,2)},TronWebProto.AccountBalanceResponse.prototype.setBlockIdentifier=function(t){return i.Message.setWrapperField(this,2,t)},TronWebProto.AccountBalanceResponse.prototype.clearBlockIdentifier=function(){return this.setBlockIdentifier(void 0)},TronWebProto.AccountBalanceResponse.prototype.hasBlockIdentifier=function(){return i.Message.getField(this,2)!=null},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.FreezeBalanceV2Contract.prototype.toObject=function(t){return TronWebProto.FreezeBalanceV2Contract.toObject(t,this)},TronWebProto.FreezeBalanceV2Contract.toObject=function(t,o){var s={ownerAddress:o.getOwnerAddress_asB64(),frozenBalance:i.Message.getFieldWithDefault(o,2,0),resource:i.Message.getFieldWithDefault(o,3,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.FreezeBalanceV2Contract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.FreezeBalanceV2Contract;return TronWebProto.FreezeBalanceV2Contract.deserializeBinaryFromReader(s,o)},TronWebProto.FreezeBalanceV2Contract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setOwnerAddress(s);break;case 2:s=o.readInt64(),t.setFrozenBalance(s);break;case 3:s=o.readEnum(),t.setResource(s);break;default:o.skipField()}return t},TronWebProto.FreezeBalanceV2Contract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.FreezeBalanceV2Contract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.FreezeBalanceV2Contract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getFrozenBalance())!==0&&o.writeInt64(2,s),(s=t.getResource())!==0&&o.writeEnum(3,s)},TronWebProto.FreezeBalanceV2Contract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.FreezeBalanceV2Contract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.FreezeBalanceV2Contract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.FreezeBalanceV2Contract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.FreezeBalanceV2Contract.prototype.getFrozenBalance=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.FreezeBalanceV2Contract.prototype.setFrozenBalance=function(t){return i.Message.setProto3IntField(this,2,t)},TronWebProto.FreezeBalanceV2Contract.prototype.getResource=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.FreezeBalanceV2Contract.prototype.setResource=function(t){return i.Message.setProto3EnumField(this,3,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.UnfreezeBalanceV2Contract.prototype.toObject=function(t){return TronWebProto.UnfreezeBalanceV2Contract.toObject(t,this)},TronWebProto.UnfreezeBalanceV2Contract.toObject=function(t,o){var s={ownerAddress:o.getOwnerAddress_asB64(),unfreezeBalance:i.Message.getFieldWithDefault(o,2,0),resource:i.Message.getFieldWithDefault(o,3,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.UnfreezeBalanceV2Contract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.UnfreezeBalanceV2Contract;return TronWebProto.UnfreezeBalanceV2Contract.deserializeBinaryFromReader(s,o)},TronWebProto.UnfreezeBalanceV2Contract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setOwnerAddress(s);break;case 2:s=o.readInt64(),t.setUnfreezeBalance(s);break;case 3:s=o.readEnum(),t.setResource(s);break;default:o.skipField()}return t},TronWebProto.UnfreezeBalanceV2Contract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.UnfreezeBalanceV2Contract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.UnfreezeBalanceV2Contract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getUnfreezeBalance())!==0&&o.writeInt64(2,s),(s=t.getResource())!==0&&o.writeEnum(3,s)},TronWebProto.UnfreezeBalanceV2Contract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.UnfreezeBalanceV2Contract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.UnfreezeBalanceV2Contract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.UnfreezeBalanceV2Contract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.UnfreezeBalanceV2Contract.prototype.getUnfreezeBalance=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.UnfreezeBalanceV2Contract.prototype.setUnfreezeBalance=function(t){return i.Message.setProto3IntField(this,2,t)},TronWebProto.UnfreezeBalanceV2Contract.prototype.getResource=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.UnfreezeBalanceV2Contract.prototype.setResource=function(t){return i.Message.setProto3EnumField(this,3,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.WithdrawExpireUnfreezeContract.prototype.toObject=function(t){return TronWebProto.WithdrawExpireUnfreezeContract.toObject(t,this)},TronWebProto.WithdrawExpireUnfreezeContract.toObject=function(t,o){var s={ownerAddress:o.getOwnerAddress_asB64()};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.WithdrawExpireUnfreezeContract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.WithdrawExpireUnfreezeContract;return TronWebProto.WithdrawExpireUnfreezeContract.deserializeBinaryFromReader(s,o)},TronWebProto.WithdrawExpireUnfreezeContract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)if(o.getFieldNumber()===1){var s=o.readBytes();t.setOwnerAddress(s)}else o.skipField();return t},TronWebProto.WithdrawExpireUnfreezeContract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.WithdrawExpireUnfreezeContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.WithdrawExpireUnfreezeContract.serializeBinaryToWriter=function(t,o){var s;(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(1,s)},TronWebProto.WithdrawExpireUnfreezeContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.WithdrawExpireUnfreezeContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.WithdrawExpireUnfreezeContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.WithdrawExpireUnfreezeContract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.DelegateResourceContract.prototype.toObject=function(t){return TronWebProto.DelegateResourceContract.toObject(t,this)},TronWebProto.DelegateResourceContract.toObject=function(t,o){var s={ownerAddress:o.getOwnerAddress_asB64(),resource:i.Message.getFieldWithDefault(o,2,0),balance:i.Message.getFieldWithDefault(o,3,0),receiverAddress:o.getReceiverAddress_asB64(),lock:i.Message.getBooleanFieldWithDefault(o,5,!1),lockPeriod:i.Message.getFieldWithDefault(o,6,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.DelegateResourceContract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.DelegateResourceContract;return TronWebProto.DelegateResourceContract.deserializeBinaryFromReader(s,o)},TronWebProto.DelegateResourceContract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setOwnerAddress(s);break;case 2:s=o.readEnum(),t.setResource(s);break;case 3:s=o.readInt64(),t.setBalance(s);break;case 4:s=o.readBytes(),t.setReceiverAddress(s);break;case 5:s=o.readBool(),t.setLock(s);break;case 6:s=o.readInt64(),t.setLockPeriod(s);break;default:o.skipField()}return t},TronWebProto.DelegateResourceContract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.DelegateResourceContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.DelegateResourceContract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getResource())!==0&&o.writeEnum(2,s),(s=t.getBalance())!==0&&o.writeInt64(3,s),(s=t.getReceiverAddress_asU8()).length>0&&o.writeBytes(4,s),(s=t.getLock())&&o.writeBool(5,s),(s=t.getLockPeriod())!==0&&o.writeInt64(6,s)},TronWebProto.DelegateResourceContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.DelegateResourceContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.DelegateResourceContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.DelegateResourceContract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.DelegateResourceContract.prototype.getResource=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.DelegateResourceContract.prototype.setResource=function(t){return i.Message.setProto3EnumField(this,2,t)},TronWebProto.DelegateResourceContract.prototype.getBalance=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.DelegateResourceContract.prototype.setBalance=function(t){return i.Message.setProto3IntField(this,3,t)},TronWebProto.DelegateResourceContract.prototype.getReceiverAddress=function(){return i.Message.getFieldWithDefault(this,4,"")},TronWebProto.DelegateResourceContract.prototype.getReceiverAddress_asB64=function(){return i.Message.bytesAsB64(this.getReceiverAddress())},TronWebProto.DelegateResourceContract.prototype.getReceiverAddress_asU8=function(){return i.Message.bytesAsU8(this.getReceiverAddress())},TronWebProto.DelegateResourceContract.prototype.setReceiverAddress=function(t){return i.Message.setProto3BytesField(this,4,t)},TronWebProto.DelegateResourceContract.prototype.getLock=function(){return i.Message.getBooleanFieldWithDefault(this,5,!1)},TronWebProto.DelegateResourceContract.prototype.setLock=function(t){return i.Message.setProto3BooleanField(this,5,t)},TronWebProto.DelegateResourceContract.prototype.getLockPeriod=function(){return i.Message.getFieldWithDefault(this,6,0)},TronWebProto.DelegateResourceContract.prototype.setLockPeriod=function(t){return i.Message.setProto3IntField(this,6,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.UnDelegateResourceContract.prototype.toObject=function(t){return TronWebProto.UnDelegateResourceContract.toObject(t,this)},TronWebProto.UnDelegateResourceContract.toObject=function(t,o){var s={ownerAddress:o.getOwnerAddress_asB64(),resource:i.Message.getFieldWithDefault(o,2,0),balance:i.Message.getFieldWithDefault(o,3,0),receiverAddress:o.getReceiverAddress_asB64()};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.UnDelegateResourceContract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.UnDelegateResourceContract;return TronWebProto.UnDelegateResourceContract.deserializeBinaryFromReader(s,o)},TronWebProto.UnDelegateResourceContract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setOwnerAddress(s);break;case 2:s=o.readEnum(),t.setResource(s);break;case 3:s=o.readInt64(),t.setBalance(s);break;case 4:s=o.readBytes(),t.setReceiverAddress(s);break;default:o.skipField()}return t},TronWebProto.UnDelegateResourceContract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.UnDelegateResourceContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.UnDelegateResourceContract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getResource())!==0&&o.writeEnum(2,s),(s=t.getBalance())!==0&&o.writeInt64(3,s),(s=t.getReceiverAddress_asU8()).length>0&&o.writeBytes(4,s)},TronWebProto.UnDelegateResourceContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.UnDelegateResourceContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.UnDelegateResourceContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.UnDelegateResourceContract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.UnDelegateResourceContract.prototype.getResource=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.UnDelegateResourceContract.prototype.setResource=function(t){return i.Message.setProto3EnumField(this,2,t)},TronWebProto.UnDelegateResourceContract.prototype.getBalance=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.UnDelegateResourceContract.prototype.setBalance=function(t){return i.Message.setProto3IntField(this,3,t)},TronWebProto.UnDelegateResourceContract.prototype.getReceiverAddress=function(){return i.Message.getFieldWithDefault(this,4,"")},TronWebProto.UnDelegateResourceContract.prototype.getReceiverAddress_asB64=function(){return i.Message.bytesAsB64(this.getReceiverAddress())},TronWebProto.UnDelegateResourceContract.prototype.getReceiverAddress_asU8=function(){return i.Message.bytesAsU8(this.getReceiverAddress())},TronWebProto.UnDelegateResourceContract.prototype.setReceiverAddress=function(t){return i.Message.setProto3BytesField(this,4,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.CancelAllUnfreezeV2Contract.prototype.toObject=function(t){return TronWebProto.CancelAllUnfreezeV2Contract.toObject(t,this)},TronWebProto.CancelAllUnfreezeV2Contract.toObject=function(t,o){var s={ownerAddress:o.getOwnerAddress_asB64()};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.CancelAllUnfreezeV2Contract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.CancelAllUnfreezeV2Contract;return TronWebProto.CancelAllUnfreezeV2Contract.deserializeBinaryFromReader(s,o)},TronWebProto.CancelAllUnfreezeV2Contract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)if(o.getFieldNumber()===1){var s=o.readBytes();t.setOwnerAddress(s)}else o.skipField();return t},TronWebProto.CancelAllUnfreezeV2Contract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.CancelAllUnfreezeV2Contract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.CancelAllUnfreezeV2Contract.serializeBinaryToWriter=function(t,o){var s;(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(1,s)},TronWebProto.CancelAllUnfreezeV2Contract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.CancelAllUnfreezeV2Contract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.CancelAllUnfreezeV2Contract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.CancelAllUnfreezeV2Contract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},W.object.extend(v,TronWebProto)},7764:(V,v,k)=>{var i=k(5595),W=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||W!==void 0&&W||typeof self<"u"&&self||(function(){return this}).call(null)||Function("return this")();i.exportSymbol("TronWebProto.ResourceCode",null,W),TronWebProto.ResourceCode={BANDWIDTH:0,ENERGY:1,TRON_POWER:2},i.object.extend(v,TronWebProto)},9520:(V,v,k)=>{var i=k(5595),W=i,B=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||B!==void 0&&B||typeof self<"u"&&self||(function(){return this}).call(null)||Function("return this")();W.exportSymbol("TronWebProto.ExchangeCreateContract",null,B),W.exportSymbol("TronWebProto.ExchangeInjectContract",null,B),W.exportSymbol("TronWebProto.ExchangeTransactionContract",null,B),W.exportSymbol("TronWebProto.ExchangeWithdrawContract",null,B),TronWebProto.ExchangeCreateContract=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.ExchangeCreateContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.ExchangeCreateContract.displayName="TronWebProto.ExchangeCreateContract"),TronWebProto.ExchangeInjectContract=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.ExchangeInjectContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.ExchangeInjectContract.displayName="TronWebProto.ExchangeInjectContract"),TronWebProto.ExchangeWithdrawContract=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.ExchangeWithdrawContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.ExchangeWithdrawContract.displayName="TronWebProto.ExchangeWithdrawContract"),TronWebProto.ExchangeTransactionContract=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.ExchangeTransactionContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.ExchangeTransactionContract.displayName="TronWebProto.ExchangeTransactionContract"),i.Message.GENERATE_TO_OBJECT&&(TronWebProto.ExchangeCreateContract.prototype.toObject=function(y){return TronWebProto.ExchangeCreateContract.toObject(y,this)},TronWebProto.ExchangeCreateContract.toObject=function(y,t){var o={ownerAddress:t.getOwnerAddress_asB64(),firstTokenId:t.getFirstTokenId_asB64(),firstTokenBalance:i.Message.getFieldWithDefault(t,3,0),secondTokenId:t.getSecondTokenId_asB64(),secondTokenBalance:i.Message.getFieldWithDefault(t,5,0)};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.ExchangeCreateContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.ExchangeCreateContract;return TronWebProto.ExchangeCreateContract.deserializeBinaryFromReader(o,t)},TronWebProto.ExchangeCreateContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setOwnerAddress(o);break;case 2:o=t.readBytes(),y.setFirstTokenId(o);break;case 3:o=t.readInt64(),y.setFirstTokenBalance(o);break;case 4:o=t.readBytes(),y.setSecondTokenId(o);break;case 5:o=t.readInt64(),y.setSecondTokenBalance(o);break;default:t.skipField()}return y},TronWebProto.ExchangeCreateContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.ExchangeCreateContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.ExchangeCreateContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getFirstTokenId_asU8()).length>0&&t.writeBytes(2,o),(o=y.getFirstTokenBalance())!==0&&t.writeInt64(3,o),(o=y.getSecondTokenId_asU8()).length>0&&t.writeBytes(4,o),(o=y.getSecondTokenBalance())!==0&&t.writeInt64(5,o)},TronWebProto.ExchangeCreateContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.ExchangeCreateContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.ExchangeCreateContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.ExchangeCreateContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.ExchangeCreateContract.prototype.getFirstTokenId=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.ExchangeCreateContract.prototype.getFirstTokenId_asB64=function(){return i.Message.bytesAsB64(this.getFirstTokenId())},TronWebProto.ExchangeCreateContract.prototype.getFirstTokenId_asU8=function(){return i.Message.bytesAsU8(this.getFirstTokenId())},TronWebProto.ExchangeCreateContract.prototype.setFirstTokenId=function(y){return i.Message.setProto3BytesField(this,2,y)},TronWebProto.ExchangeCreateContract.prototype.getFirstTokenBalance=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.ExchangeCreateContract.prototype.setFirstTokenBalance=function(y){return i.Message.setProto3IntField(this,3,y)},TronWebProto.ExchangeCreateContract.prototype.getSecondTokenId=function(){return i.Message.getFieldWithDefault(this,4,"")},TronWebProto.ExchangeCreateContract.prototype.getSecondTokenId_asB64=function(){return i.Message.bytesAsB64(this.getSecondTokenId())},TronWebProto.ExchangeCreateContract.prototype.getSecondTokenId_asU8=function(){return i.Message.bytesAsU8(this.getSecondTokenId())},TronWebProto.ExchangeCreateContract.prototype.setSecondTokenId=function(y){return i.Message.setProto3BytesField(this,4,y)},TronWebProto.ExchangeCreateContract.prototype.getSecondTokenBalance=function(){return i.Message.getFieldWithDefault(this,5,0)},TronWebProto.ExchangeCreateContract.prototype.setSecondTokenBalance=function(y){return i.Message.setProto3IntField(this,5,y)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.ExchangeInjectContract.prototype.toObject=function(y){return TronWebProto.ExchangeInjectContract.toObject(y,this)},TronWebProto.ExchangeInjectContract.toObject=function(y,t){var o={ownerAddress:t.getOwnerAddress_asB64(),exchangeId:i.Message.getFieldWithDefault(t,2,0),tokenId:t.getTokenId_asB64(),quant:i.Message.getFieldWithDefault(t,4,0)};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.ExchangeInjectContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.ExchangeInjectContract;return TronWebProto.ExchangeInjectContract.deserializeBinaryFromReader(o,t)},TronWebProto.ExchangeInjectContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setOwnerAddress(o);break;case 2:o=t.readInt64(),y.setExchangeId(o);break;case 3:o=t.readBytes(),y.setTokenId(o);break;case 4:o=t.readInt64(),y.setQuant(o);break;default:t.skipField()}return y},TronWebProto.ExchangeInjectContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.ExchangeInjectContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.ExchangeInjectContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getExchangeId())!==0&&t.writeInt64(2,o),(o=y.getTokenId_asU8()).length>0&&t.writeBytes(3,o),(o=y.getQuant())!==0&&t.writeInt64(4,o)},TronWebProto.ExchangeInjectContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.ExchangeInjectContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.ExchangeInjectContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.ExchangeInjectContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.ExchangeInjectContract.prototype.getExchangeId=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.ExchangeInjectContract.prototype.setExchangeId=function(y){return i.Message.setProto3IntField(this,2,y)},TronWebProto.ExchangeInjectContract.prototype.getTokenId=function(){return i.Message.getFieldWithDefault(this,3,"")},TronWebProto.ExchangeInjectContract.prototype.getTokenId_asB64=function(){return i.Message.bytesAsB64(this.getTokenId())},TronWebProto.ExchangeInjectContract.prototype.getTokenId_asU8=function(){return i.Message.bytesAsU8(this.getTokenId())},TronWebProto.ExchangeInjectContract.prototype.setTokenId=function(y){return i.Message.setProto3BytesField(this,3,y)},TronWebProto.ExchangeInjectContract.prototype.getQuant=function(){return i.Message.getFieldWithDefault(this,4,0)},TronWebProto.ExchangeInjectContract.prototype.setQuant=function(y){return i.Message.setProto3IntField(this,4,y)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.ExchangeWithdrawContract.prototype.toObject=function(y){return TronWebProto.ExchangeWithdrawContract.toObject(y,this)},TronWebProto.ExchangeWithdrawContract.toObject=function(y,t){var o={ownerAddress:t.getOwnerAddress_asB64(),exchangeId:i.Message.getFieldWithDefault(t,2,0),tokenId:t.getTokenId_asB64(),quant:i.Message.getFieldWithDefault(t,4,0)};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.ExchangeWithdrawContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.ExchangeWithdrawContract;return TronWebProto.ExchangeWithdrawContract.deserializeBinaryFromReader(o,t)},TronWebProto.ExchangeWithdrawContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setOwnerAddress(o);break;case 2:o=t.readInt64(),y.setExchangeId(o);break;case 3:o=t.readBytes(),y.setTokenId(o);break;case 4:o=t.readInt64(),y.setQuant(o);break;default:t.skipField()}return y},TronWebProto.ExchangeWithdrawContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.ExchangeWithdrawContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.ExchangeWithdrawContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getExchangeId())!==0&&t.writeInt64(2,o),(o=y.getTokenId_asU8()).length>0&&t.writeBytes(3,o),(o=y.getQuant())!==0&&t.writeInt64(4,o)},TronWebProto.ExchangeWithdrawContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.ExchangeWithdrawContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.ExchangeWithdrawContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.ExchangeWithdrawContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.ExchangeWithdrawContract.prototype.getExchangeId=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.ExchangeWithdrawContract.prototype.setExchangeId=function(y){return i.Message.setProto3IntField(this,2,y)},TronWebProto.ExchangeWithdrawContract.prototype.getTokenId=function(){return i.Message.getFieldWithDefault(this,3,"")},TronWebProto.ExchangeWithdrawContract.prototype.getTokenId_asB64=function(){return i.Message.bytesAsB64(this.getTokenId())},TronWebProto.ExchangeWithdrawContract.prototype.getTokenId_asU8=function(){return i.Message.bytesAsU8(this.getTokenId())},TronWebProto.ExchangeWithdrawContract.prototype.setTokenId=function(y){return i.Message.setProto3BytesField(this,3,y)},TronWebProto.ExchangeWithdrawContract.prototype.getQuant=function(){return i.Message.getFieldWithDefault(this,4,0)},TronWebProto.ExchangeWithdrawContract.prototype.setQuant=function(y){return i.Message.setProto3IntField(this,4,y)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.ExchangeTransactionContract.prototype.toObject=function(y){return TronWebProto.ExchangeTransactionContract.toObject(y,this)},TronWebProto.ExchangeTransactionContract.toObject=function(y,t){var o={ownerAddress:t.getOwnerAddress_asB64(),exchangeId:i.Message.getFieldWithDefault(t,2,0),tokenId:t.getTokenId_asB64(),quant:i.Message.getFieldWithDefault(t,4,0),expected:i.Message.getFieldWithDefault(t,5,0)};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.ExchangeTransactionContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.ExchangeTransactionContract;return TronWebProto.ExchangeTransactionContract.deserializeBinaryFromReader(o,t)},TronWebProto.ExchangeTransactionContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setOwnerAddress(o);break;case 2:o=t.readInt64(),y.setExchangeId(o);break;case 3:o=t.readBytes(),y.setTokenId(o);break;case 4:o=t.readInt64(),y.setQuant(o);break;case 5:o=t.readInt64(),y.setExpected(o);break;default:t.skipField()}return y},TronWebProto.ExchangeTransactionContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.ExchangeTransactionContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.ExchangeTransactionContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getExchangeId())!==0&&t.writeInt64(2,o),(o=y.getTokenId_asU8()).length>0&&t.writeBytes(3,o),(o=y.getQuant())!==0&&t.writeInt64(4,o),(o=y.getExpected())!==0&&t.writeInt64(5,o)},TronWebProto.ExchangeTransactionContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.ExchangeTransactionContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.ExchangeTransactionContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.ExchangeTransactionContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.ExchangeTransactionContract.prototype.getExchangeId=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.ExchangeTransactionContract.prototype.setExchangeId=function(y){return i.Message.setProto3IntField(this,2,y)},TronWebProto.ExchangeTransactionContract.prototype.getTokenId=function(){return i.Message.getFieldWithDefault(this,3,"")},TronWebProto.ExchangeTransactionContract.prototype.getTokenId_asB64=function(){return i.Message.bytesAsB64(this.getTokenId())},TronWebProto.ExchangeTransactionContract.prototype.getTokenId_asU8=function(){return i.Message.bytesAsU8(this.getTokenId())},TronWebProto.ExchangeTransactionContract.prototype.setTokenId=function(y){return i.Message.setProto3BytesField(this,3,y)},TronWebProto.ExchangeTransactionContract.prototype.getQuant=function(){return i.Message.getFieldWithDefault(this,4,0)},TronWebProto.ExchangeTransactionContract.prototype.setQuant=function(y){return i.Message.setProto3IntField(this,4,y)},TronWebProto.ExchangeTransactionContract.prototype.getExpected=function(){return i.Message.getFieldWithDefault(this,5,0)},TronWebProto.ExchangeTransactionContract.prototype.setExpected=function(y){return i.Message.setProto3IntField(this,5,y)},W.object.extend(v,TronWebProto)},3544:(V,v,k)=>{var i=k(5595),W=i,B=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||B!==void 0&&B||typeof self<"u"&&self||(function(){return this}).call(null)||Function("return this")();W.exportSymbol("TronWebProto.ProposalApproveContract",null,B),W.exportSymbol("TronWebProto.ProposalCreateContract",null,B),W.exportSymbol("TronWebProto.ProposalDeleteContract",null,B),TronWebProto.ProposalApproveContract=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.ProposalApproveContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.ProposalApproveContract.displayName="TronWebProto.ProposalApproveContract"),TronWebProto.ProposalCreateContract=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.ProposalCreateContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.ProposalCreateContract.displayName="TronWebProto.ProposalCreateContract"),TronWebProto.ProposalDeleteContract=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.ProposalDeleteContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.ProposalDeleteContract.displayName="TronWebProto.ProposalDeleteContract"),i.Message.GENERATE_TO_OBJECT&&(TronWebProto.ProposalApproveContract.prototype.toObject=function(y){return TronWebProto.ProposalApproveContract.toObject(y,this)},TronWebProto.ProposalApproveContract.toObject=function(y,t){var o={ownerAddress:t.getOwnerAddress_asB64(),proposalId:i.Message.getFieldWithDefault(t,2,0),isAddApproval:i.Message.getBooleanFieldWithDefault(t,3,!1)};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.ProposalApproveContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.ProposalApproveContract;return TronWebProto.ProposalApproveContract.deserializeBinaryFromReader(o,t)},TronWebProto.ProposalApproveContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setOwnerAddress(o);break;case 2:o=t.readInt64(),y.setProposalId(o);break;case 3:o=t.readBool(),y.setIsAddApproval(o);break;default:t.skipField()}return y},TronWebProto.ProposalApproveContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.ProposalApproveContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.ProposalApproveContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getProposalId())!==0&&t.writeInt64(2,o),(o=y.getIsAddApproval())&&t.writeBool(3,o)},TronWebProto.ProposalApproveContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.ProposalApproveContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.ProposalApproveContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.ProposalApproveContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.ProposalApproveContract.prototype.getProposalId=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.ProposalApproveContract.prototype.setProposalId=function(y){return i.Message.setProto3IntField(this,2,y)},TronWebProto.ProposalApproveContract.prototype.getIsAddApproval=function(){return i.Message.getBooleanFieldWithDefault(this,3,!1)},TronWebProto.ProposalApproveContract.prototype.setIsAddApproval=function(y){return i.Message.setProto3BooleanField(this,3,y)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.ProposalCreateContract.prototype.toObject=function(y){return TronWebProto.ProposalCreateContract.toObject(y,this)},TronWebProto.ProposalCreateContract.toObject=function(y,t){var o,s={ownerAddress:t.getOwnerAddress_asB64(),parametersMap:(o=t.getParametersMap())?o.toObject(y,void 0):[]};return y&&(s.$jspbMessageInstance=t),s}),TronWebProto.ProposalCreateContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.ProposalCreateContract;return TronWebProto.ProposalCreateContract.deserializeBinaryFromReader(o,t)},TronWebProto.ProposalCreateContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setOwnerAddress(o);break;case 2:o=y.getParametersMap(),t.readMessage(o,function(s,G){i.Map.deserializeBinary(s,G,i.BinaryReader.prototype.readInt64,i.BinaryReader.prototype.readInt64,null,0,0)});break;default:t.skipField()}return y},TronWebProto.ProposalCreateContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.ProposalCreateContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.ProposalCreateContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getParametersMap(!0))&&o.getLength()>0&&o.serializeBinary(2,t,i.BinaryWriter.prototype.writeInt64,i.BinaryWriter.prototype.writeInt64)},TronWebProto.ProposalCreateContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.ProposalCreateContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.ProposalCreateContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.ProposalCreateContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.ProposalCreateContract.prototype.getParametersMap=function(y){return i.Message.getMapField(this,2,y,null)},TronWebProto.ProposalCreateContract.prototype.clearParametersMap=function(){return this.getParametersMap().clear(),this},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.ProposalDeleteContract.prototype.toObject=function(y){return TronWebProto.ProposalDeleteContract.toObject(y,this)},TronWebProto.ProposalDeleteContract.toObject=function(y,t){var o={ownerAddress:t.getOwnerAddress_asB64(),proposalId:i.Message.getFieldWithDefault(t,2,0)};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.ProposalDeleteContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.ProposalDeleteContract;return TronWebProto.ProposalDeleteContract.deserializeBinaryFromReader(o,t)},TronWebProto.ProposalDeleteContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setOwnerAddress(o);break;case 2:o=t.readInt64(),y.setProposalId(o);break;default:t.skipField()}return y},TronWebProto.ProposalDeleteContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.ProposalDeleteContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.ProposalDeleteContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getProposalId())!==0&&t.writeInt64(2,o)},TronWebProto.ProposalDeleteContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.ProposalDeleteContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.ProposalDeleteContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.ProposalDeleteContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.ProposalDeleteContract.prototype.getProposalId=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.ProposalDeleteContract.prototype.setProposalId=function(y){return i.Message.setProto3IntField(this,2,y)},W.object.extend(v,TronWebProto)},5171:(V,v,k)=>{var i=k(5595),W=i,B=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||B!==void 0&&B||typeof self<"u"&&self||(function(){return this}).call(null)||Function("return this")(),y=k(8020);W.object.extend(proto,y),W.exportSymbol("TronWebProto.ClearABIContract",null,B),W.exportSymbol("TronWebProto.ContractState",null,B),W.exportSymbol("TronWebProto.CreateSmartContract",null,B),W.exportSymbol("TronWebProto.SmartContract",null,B),W.exportSymbol("TronWebProto.SmartContract.ABI",null,B),W.exportSymbol("TronWebProto.SmartContract.ABI.Entry",null,B),W.exportSymbol("TronWebProto.SmartContract.ABI.Entry.EntryType",null,B),W.exportSymbol("TronWebProto.SmartContract.ABI.Entry.Param",null,B),W.exportSymbol("TronWebProto.SmartContract.ABI.Entry.StateMutabilityType",null,B),W.exportSymbol("TronWebProto.SmartContractDataWrapper",null,B),W.exportSymbol("TronWebProto.TriggerSmartContract",null,B),W.exportSymbol("TronWebProto.UpdateEnergyLimitContract",null,B),W.exportSymbol("TronWebProto.UpdateSettingContract",null,B),TronWebProto.SmartContract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.SmartContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.SmartContract.displayName="TronWebProto.SmartContract"),TronWebProto.SmartContract.ABI=function(t){i.Message.initialize(this,t,0,-1,TronWebProto.SmartContract.ABI.repeatedFields_,null)},W.inherits(TronWebProto.SmartContract.ABI,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.SmartContract.ABI.displayName="TronWebProto.SmartContract.ABI"),TronWebProto.SmartContract.ABI.Entry=function(t){i.Message.initialize(this,t,0,-1,TronWebProto.SmartContract.ABI.Entry.repeatedFields_,null)},W.inherits(TronWebProto.SmartContract.ABI.Entry,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.SmartContract.ABI.Entry.displayName="TronWebProto.SmartContract.ABI.Entry"),TronWebProto.SmartContract.ABI.Entry.Param=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.SmartContract.ABI.Entry.Param,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.SmartContract.ABI.Entry.Param.displayName="TronWebProto.SmartContract.ABI.Entry.Param"),TronWebProto.ContractState=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.ContractState,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.ContractState.displayName="TronWebProto.ContractState"),TronWebProto.CreateSmartContract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.CreateSmartContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.CreateSmartContract.displayName="TronWebProto.CreateSmartContract"),TronWebProto.TriggerSmartContract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.TriggerSmartContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.TriggerSmartContract.displayName="TronWebProto.TriggerSmartContract"),TronWebProto.ClearABIContract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.ClearABIContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.ClearABIContract.displayName="TronWebProto.ClearABIContract"),TronWebProto.UpdateSettingContract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.UpdateSettingContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.UpdateSettingContract.displayName="TronWebProto.UpdateSettingContract"),TronWebProto.UpdateEnergyLimitContract=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.UpdateEnergyLimitContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.UpdateEnergyLimitContract.displayName="TronWebProto.UpdateEnergyLimitContract"),TronWebProto.SmartContractDataWrapper=function(t){i.Message.initialize(this,t,0,-1,null,null)},W.inherits(TronWebProto.SmartContractDataWrapper,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.SmartContractDataWrapper.displayName="TronWebProto.SmartContractDataWrapper"),i.Message.GENERATE_TO_OBJECT&&(TronWebProto.SmartContract.prototype.toObject=function(t){return TronWebProto.SmartContract.toObject(t,this)},TronWebProto.SmartContract.toObject=function(t,o){var s,G={originAddress:o.getOriginAddress_asB64(),contractAddress:o.getContractAddress_asB64(),abi:(s=o.getAbi())&&TronWebProto.SmartContract.ABI.toObject(t,s),bytecode:o.getBytecode_asB64(),callValue:i.Message.getFieldWithDefault(o,5,0),consumeUserResourcePercent:i.Message.getFieldWithDefault(o,6,0),name:i.Message.getFieldWithDefault(o,7,""),originEnergyLimit:i.Message.getFieldWithDefault(o,8,0),codeHash:o.getCodeHash_asB64(),trxHash:o.getTrxHash_asB64(),version:i.Message.getFieldWithDefault(o,11,0)};return t&&(G.$jspbMessageInstance=o),G}),TronWebProto.SmartContract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.SmartContract;return TronWebProto.SmartContract.deserializeBinaryFromReader(s,o)},TronWebProto.SmartContract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setOriginAddress(s);break;case 2:s=o.readBytes(),t.setContractAddress(s);break;case 3:s=new TronWebProto.SmartContract.ABI,o.readMessage(s,TronWebProto.SmartContract.ABI.deserializeBinaryFromReader),t.setAbi(s);break;case 4:s=o.readBytes(),t.setBytecode(s);break;case 5:s=o.readInt64(),t.setCallValue(s);break;case 6:s=o.readInt64(),t.setConsumeUserResourcePercent(s);break;case 7:s=o.readString(),t.setName(s);break;case 8:s=o.readInt64(),t.setOriginEnergyLimit(s);break;case 9:s=o.readBytes(),t.setCodeHash(s);break;case 10:s=o.readBytes(),t.setTrxHash(s);break;case 11:s=o.readInt32(),t.setVersion(s);break;default:o.skipField()}return t},TronWebProto.SmartContract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.SmartContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.SmartContract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getOriginAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getContractAddress_asU8()).length>0&&o.writeBytes(2,s),(s=t.getAbi())!=null&&o.writeMessage(3,s,TronWebProto.SmartContract.ABI.serializeBinaryToWriter),(s=t.getBytecode_asU8()).length>0&&o.writeBytes(4,s),(s=t.getCallValue())!==0&&o.writeInt64(5,s),(s=t.getConsumeUserResourcePercent())!==0&&o.writeInt64(6,s),(s=t.getName()).length>0&&o.writeString(7,s),(s=t.getOriginEnergyLimit())!==0&&o.writeInt64(8,s),(s=t.getCodeHash_asU8()).length>0&&o.writeBytes(9,s),(s=t.getTrxHash_asU8()).length>0&&o.writeBytes(10,s),(s=t.getVersion())!==0&&o.writeInt32(11,s)},TronWebProto.SmartContract.ABI.repeatedFields_=[1],i.Message.GENERATE_TO_OBJECT&&(TronWebProto.SmartContract.ABI.prototype.toObject=function(t){return TronWebProto.SmartContract.ABI.toObject(t,this)},TronWebProto.SmartContract.ABI.toObject=function(t,o){var s={entrysList:i.Message.toObjectList(o.getEntrysList(),TronWebProto.SmartContract.ABI.Entry.toObject,t)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.SmartContract.ABI.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.SmartContract.ABI;return TronWebProto.SmartContract.ABI.deserializeBinaryFromReader(s,o)},TronWebProto.SmartContract.ABI.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)if(o.getFieldNumber()===1){var s=new TronWebProto.SmartContract.ABI.Entry;o.readMessage(s,TronWebProto.SmartContract.ABI.Entry.deserializeBinaryFromReader),t.addEntrys(s)}else o.skipField();return t},TronWebProto.SmartContract.ABI.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.SmartContract.ABI.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.SmartContract.ABI.serializeBinaryToWriter=function(t,o){var s;(s=t.getEntrysList()).length>0&&o.writeRepeatedMessage(1,s,TronWebProto.SmartContract.ABI.Entry.serializeBinaryToWriter)},TronWebProto.SmartContract.ABI.Entry.repeatedFields_=[4,5],i.Message.GENERATE_TO_OBJECT&&(TronWebProto.SmartContract.ABI.Entry.prototype.toObject=function(t){return TronWebProto.SmartContract.ABI.Entry.toObject(t,this)},TronWebProto.SmartContract.ABI.Entry.toObject=function(t,o){var s={anonymous:i.Message.getBooleanFieldWithDefault(o,1,!1),constant:i.Message.getBooleanFieldWithDefault(o,2,!1),name:i.Message.getFieldWithDefault(o,3,""),inputsList:i.Message.toObjectList(o.getInputsList(),TronWebProto.SmartContract.ABI.Entry.Param.toObject,t),outputsList:i.Message.toObjectList(o.getOutputsList(),TronWebProto.SmartContract.ABI.Entry.Param.toObject,t),type:i.Message.getFieldWithDefault(o,6,0),payable:i.Message.getBooleanFieldWithDefault(o,7,!1),statemutability:i.Message.getFieldWithDefault(o,8,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.SmartContract.ABI.Entry.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.SmartContract.ABI.Entry;return TronWebProto.SmartContract.ABI.Entry.deserializeBinaryFromReader(s,o)},TronWebProto.SmartContract.ABI.Entry.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBool();t.setAnonymous(s);break;case 2:s=o.readBool(),t.setConstant(s);break;case 3:s=o.readString(),t.setName(s);break;case 4:s=new TronWebProto.SmartContract.ABI.Entry.Param,o.readMessage(s,TronWebProto.SmartContract.ABI.Entry.Param.deserializeBinaryFromReader),t.addInputs(s);break;case 5:s=new TronWebProto.SmartContract.ABI.Entry.Param,o.readMessage(s,TronWebProto.SmartContract.ABI.Entry.Param.deserializeBinaryFromReader),t.addOutputs(s);break;case 6:s=o.readEnum(),t.setType(s);break;case 7:s=o.readBool(),t.setPayable(s);break;case 8:s=o.readEnum(),t.setStatemutability(s);break;default:o.skipField()}return t},TronWebProto.SmartContract.ABI.Entry.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.SmartContract.ABI.Entry.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.SmartContract.ABI.Entry.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getAnonymous())&&o.writeBool(1,s),(s=t.getConstant())&&o.writeBool(2,s),(s=t.getName()).length>0&&o.writeString(3,s),(s=t.getInputsList()).length>0&&o.writeRepeatedMessage(4,s,TronWebProto.SmartContract.ABI.Entry.Param.serializeBinaryToWriter),(s=t.getOutputsList()).length>0&&o.writeRepeatedMessage(5,s,TronWebProto.SmartContract.ABI.Entry.Param.serializeBinaryToWriter),(s=t.getType())!==0&&o.writeEnum(6,s),(s=t.getPayable())&&o.writeBool(7,s),(s=t.getStatemutability())!==0&&o.writeEnum(8,s)},TronWebProto.SmartContract.ABI.Entry.EntryType={UNKNOWNENTRYTYPE:0,CONSTRUCTOR:1,FUNCTION:2,EVENT:3,FALLBACK:4,RECEIVE:5,ERROR:6},TronWebProto.SmartContract.ABI.Entry.StateMutabilityType={UNKNOWNMUTABILITYTYPE:0,PURE:1,VIEW:2,NONPAYABLE:3,PAYABLE:4},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.SmartContract.ABI.Entry.Param.prototype.toObject=function(t){return TronWebProto.SmartContract.ABI.Entry.Param.toObject(t,this)},TronWebProto.SmartContract.ABI.Entry.Param.toObject=function(t,o){var s={indexed:i.Message.getBooleanFieldWithDefault(o,1,!1),name:i.Message.getFieldWithDefault(o,2,""),type:i.Message.getFieldWithDefault(o,3,"")};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.SmartContract.ABI.Entry.Param.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.SmartContract.ABI.Entry.Param;return TronWebProto.SmartContract.ABI.Entry.Param.deserializeBinaryFromReader(s,o)},TronWebProto.SmartContract.ABI.Entry.Param.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBool();t.setIndexed(s);break;case 2:s=o.readString(),t.setName(s);break;case 3:s=o.readString(),t.setType(s);break;default:o.skipField()}return t},TronWebProto.SmartContract.ABI.Entry.Param.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.SmartContract.ABI.Entry.Param.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.SmartContract.ABI.Entry.Param.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getIndexed())&&o.writeBool(1,s),(s=t.getName()).length>0&&o.writeString(2,s),(s=t.getType()).length>0&&o.writeString(3,s)},TronWebProto.SmartContract.ABI.Entry.Param.prototype.getIndexed=function(){return i.Message.getBooleanFieldWithDefault(this,1,!1)},TronWebProto.SmartContract.ABI.Entry.Param.prototype.setIndexed=function(t){return i.Message.setProto3BooleanField(this,1,t)},TronWebProto.SmartContract.ABI.Entry.Param.prototype.getName=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.SmartContract.ABI.Entry.Param.prototype.setName=function(t){return i.Message.setProto3StringField(this,2,t)},TronWebProto.SmartContract.ABI.Entry.Param.prototype.getType=function(){return i.Message.getFieldWithDefault(this,3,"")},TronWebProto.SmartContract.ABI.Entry.Param.prototype.setType=function(t){return i.Message.setProto3StringField(this,3,t)},TronWebProto.SmartContract.ABI.Entry.prototype.getAnonymous=function(){return i.Message.getBooleanFieldWithDefault(this,1,!1)},TronWebProto.SmartContract.ABI.Entry.prototype.setAnonymous=function(t){return i.Message.setProto3BooleanField(this,1,t)},TronWebProto.SmartContract.ABI.Entry.prototype.getConstant=function(){return i.Message.getBooleanFieldWithDefault(this,2,!1)},TronWebProto.SmartContract.ABI.Entry.prototype.setConstant=function(t){return i.Message.setProto3BooleanField(this,2,t)},TronWebProto.SmartContract.ABI.Entry.prototype.getName=function(){return i.Message.getFieldWithDefault(this,3,"")},TronWebProto.SmartContract.ABI.Entry.prototype.setName=function(t){return i.Message.setProto3StringField(this,3,t)},TronWebProto.SmartContract.ABI.Entry.prototype.getInputsList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.SmartContract.ABI.Entry.Param,4)},TronWebProto.SmartContract.ABI.Entry.prototype.setInputsList=function(t){return i.Message.setRepeatedWrapperField(this,4,t)},TronWebProto.SmartContract.ABI.Entry.prototype.addInputs=function(t,o){return i.Message.addToRepeatedWrapperField(this,4,t,TronWebProto.SmartContract.ABI.Entry.Param,o)},TronWebProto.SmartContract.ABI.Entry.prototype.clearInputsList=function(){return this.setInputsList([])},TronWebProto.SmartContract.ABI.Entry.prototype.getOutputsList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.SmartContract.ABI.Entry.Param,5)},TronWebProto.SmartContract.ABI.Entry.prototype.setOutputsList=function(t){return i.Message.setRepeatedWrapperField(this,5,t)},TronWebProto.SmartContract.ABI.Entry.prototype.addOutputs=function(t,o){return i.Message.addToRepeatedWrapperField(this,5,t,TronWebProto.SmartContract.ABI.Entry.Param,o)},TronWebProto.SmartContract.ABI.Entry.prototype.clearOutputsList=function(){return this.setOutputsList([])},TronWebProto.SmartContract.ABI.Entry.prototype.getType=function(){return i.Message.getFieldWithDefault(this,6,0)},TronWebProto.SmartContract.ABI.Entry.prototype.setType=function(t){return i.Message.setProto3EnumField(this,6,t)},TronWebProto.SmartContract.ABI.Entry.prototype.getPayable=function(){return i.Message.getBooleanFieldWithDefault(this,7,!1)},TronWebProto.SmartContract.ABI.Entry.prototype.setPayable=function(t){return i.Message.setProto3BooleanField(this,7,t)},TronWebProto.SmartContract.ABI.Entry.prototype.getStatemutability=function(){return i.Message.getFieldWithDefault(this,8,0)},TronWebProto.SmartContract.ABI.Entry.prototype.setStatemutability=function(t){return i.Message.setProto3EnumField(this,8,t)},TronWebProto.SmartContract.ABI.prototype.getEntrysList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.SmartContract.ABI.Entry,1)},TronWebProto.SmartContract.ABI.prototype.setEntrysList=function(t){return i.Message.setRepeatedWrapperField(this,1,t)},TronWebProto.SmartContract.ABI.prototype.addEntrys=function(t,o){return i.Message.addToRepeatedWrapperField(this,1,t,TronWebProto.SmartContract.ABI.Entry,o)},TronWebProto.SmartContract.ABI.prototype.clearEntrysList=function(){return this.setEntrysList([])},TronWebProto.SmartContract.prototype.getOriginAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.SmartContract.prototype.getOriginAddress_asB64=function(){return i.Message.bytesAsB64(this.getOriginAddress())},TronWebProto.SmartContract.prototype.getOriginAddress_asU8=function(){return i.Message.bytesAsU8(this.getOriginAddress())},TronWebProto.SmartContract.prototype.setOriginAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.SmartContract.prototype.getContractAddress=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.SmartContract.prototype.getContractAddress_asB64=function(){return i.Message.bytesAsB64(this.getContractAddress())},TronWebProto.SmartContract.prototype.getContractAddress_asU8=function(){return i.Message.bytesAsU8(this.getContractAddress())},TronWebProto.SmartContract.prototype.setContractAddress=function(t){return i.Message.setProto3BytesField(this,2,t)},TronWebProto.SmartContract.prototype.getAbi=function(){return i.Message.getWrapperField(this,TronWebProto.SmartContract.ABI,3)},TronWebProto.SmartContract.prototype.setAbi=function(t){return i.Message.setWrapperField(this,3,t)},TronWebProto.SmartContract.prototype.clearAbi=function(){return this.setAbi(void 0)},TronWebProto.SmartContract.prototype.hasAbi=function(){return i.Message.getField(this,3)!=null},TronWebProto.SmartContract.prototype.getBytecode=function(){return i.Message.getFieldWithDefault(this,4,"")},TronWebProto.SmartContract.prototype.getBytecode_asB64=function(){return i.Message.bytesAsB64(this.getBytecode())},TronWebProto.SmartContract.prototype.getBytecode_asU8=function(){return i.Message.bytesAsU8(this.getBytecode())},TronWebProto.SmartContract.prototype.setBytecode=function(t){return i.Message.setProto3BytesField(this,4,t)},TronWebProto.SmartContract.prototype.getCallValue=function(){return i.Message.getFieldWithDefault(this,5,0)},TronWebProto.SmartContract.prototype.setCallValue=function(t){return i.Message.setProto3IntField(this,5,t)},TronWebProto.SmartContract.prototype.getConsumeUserResourcePercent=function(){return i.Message.getFieldWithDefault(this,6,0)},TronWebProto.SmartContract.prototype.setConsumeUserResourcePercent=function(t){return i.Message.setProto3IntField(this,6,t)},TronWebProto.SmartContract.prototype.getName=function(){return i.Message.getFieldWithDefault(this,7,"")},TronWebProto.SmartContract.prototype.setName=function(t){return i.Message.setProto3StringField(this,7,t)},TronWebProto.SmartContract.prototype.getOriginEnergyLimit=function(){return i.Message.getFieldWithDefault(this,8,0)},TronWebProto.SmartContract.prototype.setOriginEnergyLimit=function(t){return i.Message.setProto3IntField(this,8,t)},TronWebProto.SmartContract.prototype.getCodeHash=function(){return i.Message.getFieldWithDefault(this,9,"")},TronWebProto.SmartContract.prototype.getCodeHash_asB64=function(){return i.Message.bytesAsB64(this.getCodeHash())},TronWebProto.SmartContract.prototype.getCodeHash_asU8=function(){return i.Message.bytesAsU8(this.getCodeHash())},TronWebProto.SmartContract.prototype.setCodeHash=function(t){return i.Message.setProto3BytesField(this,9,t)},TronWebProto.SmartContract.prototype.getTrxHash=function(){return i.Message.getFieldWithDefault(this,10,"")},TronWebProto.SmartContract.prototype.getTrxHash_asB64=function(){return i.Message.bytesAsB64(this.getTrxHash())},TronWebProto.SmartContract.prototype.getTrxHash_asU8=function(){return i.Message.bytesAsU8(this.getTrxHash())},TronWebProto.SmartContract.prototype.setTrxHash=function(t){return i.Message.setProto3BytesField(this,10,t)},TronWebProto.SmartContract.prototype.getVersion=function(){return i.Message.getFieldWithDefault(this,11,0)},TronWebProto.SmartContract.prototype.setVersion=function(t){return i.Message.setProto3IntField(this,11,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.ContractState.prototype.toObject=function(t){return TronWebProto.ContractState.toObject(t,this)},TronWebProto.ContractState.toObject=function(t,o){var s={energyUsage:i.Message.getFieldWithDefault(o,1,0),energyFactor:i.Message.getFieldWithDefault(o,2,0),updateCycle:i.Message.getFieldWithDefault(o,3,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.ContractState.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.ContractState;return TronWebProto.ContractState.deserializeBinaryFromReader(s,o)},TronWebProto.ContractState.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readInt64();t.setEnergyUsage(s);break;case 2:s=o.readInt64(),t.setEnergyFactor(s);break;case 3:s=o.readInt64(),t.setUpdateCycle(s);break;default:o.skipField()}return t},TronWebProto.ContractState.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.ContractState.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.ContractState.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getEnergyUsage())!==0&&o.writeInt64(1,s),(s=t.getEnergyFactor())!==0&&o.writeInt64(2,s),(s=t.getUpdateCycle())!==0&&o.writeInt64(3,s)},TronWebProto.ContractState.prototype.getEnergyUsage=function(){return i.Message.getFieldWithDefault(this,1,0)},TronWebProto.ContractState.prototype.setEnergyUsage=function(t){return i.Message.setProto3IntField(this,1,t)},TronWebProto.ContractState.prototype.getEnergyFactor=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.ContractState.prototype.setEnergyFactor=function(t){return i.Message.setProto3IntField(this,2,t)},TronWebProto.ContractState.prototype.getUpdateCycle=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.ContractState.prototype.setUpdateCycle=function(t){return i.Message.setProto3IntField(this,3,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.CreateSmartContract.prototype.toObject=function(t){return TronWebProto.CreateSmartContract.toObject(t,this)},TronWebProto.CreateSmartContract.toObject=function(t,o){var s,G={ownerAddress:o.getOwnerAddress_asB64(),newContract:(s=o.getNewContract())&&TronWebProto.SmartContract.toObject(t,s),callTokenValue:i.Message.getFieldWithDefault(o,3,0),tokenId:i.Message.getFieldWithDefault(o,4,0)};return t&&(G.$jspbMessageInstance=o),G}),TronWebProto.CreateSmartContract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.CreateSmartContract;return TronWebProto.CreateSmartContract.deserializeBinaryFromReader(s,o)},TronWebProto.CreateSmartContract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setOwnerAddress(s);break;case 2:s=new TronWebProto.SmartContract,o.readMessage(s,TronWebProto.SmartContract.deserializeBinaryFromReader),t.setNewContract(s);break;case 3:s=o.readInt64(),t.setCallTokenValue(s);break;case 4:s=o.readInt64(),t.setTokenId(s);break;default:o.skipField()}return t},TronWebProto.CreateSmartContract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.CreateSmartContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.CreateSmartContract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getNewContract())!=null&&o.writeMessage(2,s,TronWebProto.SmartContract.serializeBinaryToWriter),(s=t.getCallTokenValue())!==0&&o.writeInt64(3,s),(s=t.getTokenId())!==0&&o.writeInt64(4,s)},TronWebProto.CreateSmartContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.CreateSmartContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.CreateSmartContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.CreateSmartContract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.CreateSmartContract.prototype.getNewContract=function(){return i.Message.getWrapperField(this,TronWebProto.SmartContract,2)},TronWebProto.CreateSmartContract.prototype.setNewContract=function(t){return i.Message.setWrapperField(this,2,t)},TronWebProto.CreateSmartContract.prototype.clearNewContract=function(){return this.setNewContract(void 0)},TronWebProto.CreateSmartContract.prototype.hasNewContract=function(){return i.Message.getField(this,2)!=null},TronWebProto.CreateSmartContract.prototype.getCallTokenValue=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.CreateSmartContract.prototype.setCallTokenValue=function(t){return i.Message.setProto3IntField(this,3,t)},TronWebProto.CreateSmartContract.prototype.getTokenId=function(){return i.Message.getFieldWithDefault(this,4,0)},TronWebProto.CreateSmartContract.prototype.setTokenId=function(t){return i.Message.setProto3IntField(this,4,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.TriggerSmartContract.prototype.toObject=function(t){return TronWebProto.TriggerSmartContract.toObject(t,this)},TronWebProto.TriggerSmartContract.toObject=function(t,o){var s={ownerAddress:o.getOwnerAddress_asB64(),contractAddress:o.getContractAddress_asB64(),callValue:i.Message.getFieldWithDefault(o,3,0),data:o.getData_asB64(),callTokenValue:i.Message.getFieldWithDefault(o,5,0),tokenId:i.Message.getFieldWithDefault(o,6,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.TriggerSmartContract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.TriggerSmartContract;return TronWebProto.TriggerSmartContract.deserializeBinaryFromReader(s,o)},TronWebProto.TriggerSmartContract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setOwnerAddress(s);break;case 2:s=o.readBytes(),t.setContractAddress(s);break;case 3:s=o.readInt64(),t.setCallValue(s);break;case 4:s=o.readBytes(),t.setData(s);break;case 5:s=o.readInt64(),t.setCallTokenValue(s);break;case 6:s=o.readInt64(),t.setTokenId(s);break;default:o.skipField()}return t},TronWebProto.TriggerSmartContract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.TriggerSmartContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.TriggerSmartContract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getContractAddress_asU8()).length>0&&o.writeBytes(2,s),(s=t.getCallValue())!==0&&o.writeInt64(3,s),(s=t.getData_asU8()).length>0&&o.writeBytes(4,s),(s=t.getCallTokenValue())!==0&&o.writeInt64(5,s),(s=t.getTokenId())!==0&&o.writeInt64(6,s)},TronWebProto.TriggerSmartContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.TriggerSmartContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.TriggerSmartContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.TriggerSmartContract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.TriggerSmartContract.prototype.getContractAddress=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.TriggerSmartContract.prototype.getContractAddress_asB64=function(){return i.Message.bytesAsB64(this.getContractAddress())},TronWebProto.TriggerSmartContract.prototype.getContractAddress_asU8=function(){return i.Message.bytesAsU8(this.getContractAddress())},TronWebProto.TriggerSmartContract.prototype.setContractAddress=function(t){return i.Message.setProto3BytesField(this,2,t)},TronWebProto.TriggerSmartContract.prototype.getCallValue=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.TriggerSmartContract.prototype.setCallValue=function(t){return i.Message.setProto3IntField(this,3,t)},TronWebProto.TriggerSmartContract.prototype.getData=function(){return i.Message.getFieldWithDefault(this,4,"")},TronWebProto.TriggerSmartContract.prototype.getData_asB64=function(){return i.Message.bytesAsB64(this.getData())},TronWebProto.TriggerSmartContract.prototype.getData_asU8=function(){return i.Message.bytesAsU8(this.getData())},TronWebProto.TriggerSmartContract.prototype.setData=function(t){return i.Message.setProto3BytesField(this,4,t)},TronWebProto.TriggerSmartContract.prototype.getCallTokenValue=function(){return i.Message.getFieldWithDefault(this,5,0)},TronWebProto.TriggerSmartContract.prototype.setCallTokenValue=function(t){return i.Message.setProto3IntField(this,5,t)},TronWebProto.TriggerSmartContract.prototype.getTokenId=function(){return i.Message.getFieldWithDefault(this,6,0)},TronWebProto.TriggerSmartContract.prototype.setTokenId=function(t){return i.Message.setProto3IntField(this,6,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.ClearABIContract.prototype.toObject=function(t){return TronWebProto.ClearABIContract.toObject(t,this)},TronWebProto.ClearABIContract.toObject=function(t,o){var s={ownerAddress:o.getOwnerAddress_asB64(),contractAddress:o.getContractAddress_asB64()};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.ClearABIContract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.ClearABIContract;return TronWebProto.ClearABIContract.deserializeBinaryFromReader(s,o)},TronWebProto.ClearABIContract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setOwnerAddress(s);break;case 2:s=o.readBytes(),t.setContractAddress(s);break;default:o.skipField()}return t},TronWebProto.ClearABIContract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.ClearABIContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.ClearABIContract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getContractAddress_asU8()).length>0&&o.writeBytes(2,s)},TronWebProto.ClearABIContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.ClearABIContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.ClearABIContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.ClearABIContract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.ClearABIContract.prototype.getContractAddress=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.ClearABIContract.prototype.getContractAddress_asB64=function(){return i.Message.bytesAsB64(this.getContractAddress())},TronWebProto.ClearABIContract.prototype.getContractAddress_asU8=function(){return i.Message.bytesAsU8(this.getContractAddress())},TronWebProto.ClearABIContract.prototype.setContractAddress=function(t){return i.Message.setProto3BytesField(this,2,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.UpdateSettingContract.prototype.toObject=function(t){return TronWebProto.UpdateSettingContract.toObject(t,this)},TronWebProto.UpdateSettingContract.toObject=function(t,o){var s={ownerAddress:o.getOwnerAddress_asB64(),contractAddress:o.getContractAddress_asB64(),consumeUserResourcePercent:i.Message.getFieldWithDefault(o,3,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.UpdateSettingContract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.UpdateSettingContract;return TronWebProto.UpdateSettingContract.deserializeBinaryFromReader(s,o)},TronWebProto.UpdateSettingContract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setOwnerAddress(s);break;case 2:s=o.readBytes(),t.setContractAddress(s);break;case 3:s=o.readInt64(),t.setConsumeUserResourcePercent(s);break;default:o.skipField()}return t},TronWebProto.UpdateSettingContract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.UpdateSettingContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.UpdateSettingContract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getContractAddress_asU8()).length>0&&o.writeBytes(2,s),(s=t.getConsumeUserResourcePercent())!==0&&o.writeInt64(3,s)},TronWebProto.UpdateSettingContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.UpdateSettingContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.UpdateSettingContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.UpdateSettingContract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.UpdateSettingContract.prototype.getContractAddress=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.UpdateSettingContract.prototype.getContractAddress_asB64=function(){return i.Message.bytesAsB64(this.getContractAddress())},TronWebProto.UpdateSettingContract.prototype.getContractAddress_asU8=function(){return i.Message.bytesAsU8(this.getContractAddress())},TronWebProto.UpdateSettingContract.prototype.setContractAddress=function(t){return i.Message.setProto3BytesField(this,2,t)},TronWebProto.UpdateSettingContract.prototype.getConsumeUserResourcePercent=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.UpdateSettingContract.prototype.setConsumeUserResourcePercent=function(t){return i.Message.setProto3IntField(this,3,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.UpdateEnergyLimitContract.prototype.toObject=function(t){return TronWebProto.UpdateEnergyLimitContract.toObject(t,this)},TronWebProto.UpdateEnergyLimitContract.toObject=function(t,o){var s={ownerAddress:o.getOwnerAddress_asB64(),contractAddress:o.getContractAddress_asB64(),originEnergyLimit:i.Message.getFieldWithDefault(o,3,0)};return t&&(s.$jspbMessageInstance=o),s}),TronWebProto.UpdateEnergyLimitContract.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.UpdateEnergyLimitContract;return TronWebProto.UpdateEnergyLimitContract.deserializeBinaryFromReader(s,o)},TronWebProto.UpdateEnergyLimitContract.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=o.readBytes();t.setOwnerAddress(s);break;case 2:s=o.readBytes(),t.setContractAddress(s);break;case 3:s=o.readInt64(),t.setOriginEnergyLimit(s);break;default:o.skipField()}return t},TronWebProto.UpdateEnergyLimitContract.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.UpdateEnergyLimitContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.UpdateEnergyLimitContract.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getOwnerAddress_asU8()).length>0&&o.writeBytes(1,s),(s=t.getContractAddress_asU8()).length>0&&o.writeBytes(2,s),(s=t.getOriginEnergyLimit())!==0&&o.writeInt64(3,s)},TronWebProto.UpdateEnergyLimitContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.UpdateEnergyLimitContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.UpdateEnergyLimitContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.UpdateEnergyLimitContract.prototype.setOwnerAddress=function(t){return i.Message.setProto3BytesField(this,1,t)},TronWebProto.UpdateEnergyLimitContract.prototype.getContractAddress=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.UpdateEnergyLimitContract.prototype.getContractAddress_asB64=function(){return i.Message.bytesAsB64(this.getContractAddress())},TronWebProto.UpdateEnergyLimitContract.prototype.getContractAddress_asU8=function(){return i.Message.bytesAsU8(this.getContractAddress())},TronWebProto.UpdateEnergyLimitContract.prototype.setContractAddress=function(t){return i.Message.setProto3BytesField(this,2,t)},TronWebProto.UpdateEnergyLimitContract.prototype.getOriginEnergyLimit=function(){return i.Message.getFieldWithDefault(this,3,0)},TronWebProto.UpdateEnergyLimitContract.prototype.setOriginEnergyLimit=function(t){return i.Message.setProto3IntField(this,3,t)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.SmartContractDataWrapper.prototype.toObject=function(t){return TronWebProto.SmartContractDataWrapper.toObject(t,this)},TronWebProto.SmartContractDataWrapper.toObject=function(t,o){var s,G={smartContract:(s=o.getSmartContract())&&TronWebProto.SmartContract.toObject(t,s),runtimecode:o.getRuntimecode_asB64(),contractState:(s=o.getContractState())&&TronWebProto.ContractState.toObject(t,s)};return t&&(G.$jspbMessageInstance=o),G}),TronWebProto.SmartContractDataWrapper.deserializeBinary=function(t){var o=new i.BinaryReader(t),s=new TronWebProto.SmartContractDataWrapper;return TronWebProto.SmartContractDataWrapper.deserializeBinaryFromReader(s,o)},TronWebProto.SmartContractDataWrapper.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var s=new TronWebProto.SmartContract;o.readMessage(s,TronWebProto.SmartContract.deserializeBinaryFromReader),t.setSmartContract(s);break;case 2:s=o.readBytes(),t.setRuntimecode(s);break;case 3:s=new TronWebProto.ContractState,o.readMessage(s,TronWebProto.ContractState.deserializeBinaryFromReader),t.setContractState(s);break;default:o.skipField()}return t},TronWebProto.SmartContractDataWrapper.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return TronWebProto.SmartContractDataWrapper.serializeBinaryToWriter(this,t),t.getResultBuffer()},TronWebProto.SmartContractDataWrapper.serializeBinaryToWriter=function(t,o){var s=void 0;(s=t.getSmartContract())!=null&&o.writeMessage(1,s,TronWebProto.SmartContract.serializeBinaryToWriter),(s=t.getRuntimecode_asU8()).length>0&&o.writeBytes(2,s),(s=t.getContractState())!=null&&o.writeMessage(3,s,TronWebProto.ContractState.serializeBinaryToWriter)},TronWebProto.SmartContractDataWrapper.prototype.getSmartContract=function(){return i.Message.getWrapperField(this,TronWebProto.SmartContract,1)},TronWebProto.SmartContractDataWrapper.prototype.setSmartContract=function(t){return i.Message.setWrapperField(this,1,t)},TronWebProto.SmartContractDataWrapper.prototype.clearSmartContract=function(){return this.setSmartContract(void 0)},TronWebProto.SmartContractDataWrapper.prototype.hasSmartContract=function(){return i.Message.getField(this,1)!=null},TronWebProto.SmartContractDataWrapper.prototype.getRuntimecode=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.SmartContractDataWrapper.prototype.getRuntimecode_asB64=function(){return i.Message.bytesAsB64(this.getRuntimecode())},TronWebProto.SmartContractDataWrapper.prototype.getRuntimecode_asU8=function(){return i.Message.bytesAsU8(this.getRuntimecode())},TronWebProto.SmartContractDataWrapper.prototype.setRuntimecode=function(t){return i.Message.setProto3BytesField(this,2,t)},TronWebProto.SmartContractDataWrapper.prototype.getContractState=function(){return i.Message.getWrapperField(this,TronWebProto.ContractState,3)},TronWebProto.SmartContractDataWrapper.prototype.setContractState=function(t){return i.Message.setWrapperField(this,3,t)},TronWebProto.SmartContractDataWrapper.prototype.clearContractState=function(){return this.setContractState(void 0)},TronWebProto.SmartContractDataWrapper.prototype.hasContractState=function(){return i.Message.getField(this,3)!=null},W.object.extend(v,TronWebProto)},672:(V,v,k)=>{var i=k(5595),W=i,B=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||B!==void 0&&B||typeof self<"u"&&self||(function(){return this}).call(null)||Function("return this")();W.exportSymbol("TronWebProto.BuyStorageBytesContract",null,B),W.exportSymbol("TronWebProto.BuyStorageContract",null,B),W.exportSymbol("TronWebProto.SellStorageContract",null,B),W.exportSymbol("TronWebProto.UpdateBrokerageContract",null,B),TronWebProto.BuyStorageBytesContract=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.BuyStorageBytesContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.BuyStorageBytesContract.displayName="TronWebProto.BuyStorageBytesContract"),TronWebProto.BuyStorageContract=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.BuyStorageContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.BuyStorageContract.displayName="TronWebProto.BuyStorageContract"),TronWebProto.SellStorageContract=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.SellStorageContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.SellStorageContract.displayName="TronWebProto.SellStorageContract"),TronWebProto.UpdateBrokerageContract=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.UpdateBrokerageContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.UpdateBrokerageContract.displayName="TronWebProto.UpdateBrokerageContract"),i.Message.GENERATE_TO_OBJECT&&(TronWebProto.BuyStorageBytesContract.prototype.toObject=function(y){return TronWebProto.BuyStorageBytesContract.toObject(y,this)},TronWebProto.BuyStorageBytesContract.toObject=function(y,t){var o={ownerAddress:t.getOwnerAddress_asB64(),bytes:i.Message.getFieldWithDefault(t,2,0)};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.BuyStorageBytesContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.BuyStorageBytesContract;return TronWebProto.BuyStorageBytesContract.deserializeBinaryFromReader(o,t)},TronWebProto.BuyStorageBytesContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setOwnerAddress(o);break;case 2:o=t.readInt64(),y.setBytes(o);break;default:t.skipField()}return y},TronWebProto.BuyStorageBytesContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.BuyStorageBytesContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.BuyStorageBytesContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getBytes())!==0&&t.writeInt64(2,o)},TronWebProto.BuyStorageBytesContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.BuyStorageBytesContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.BuyStorageBytesContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.BuyStorageBytesContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.BuyStorageBytesContract.prototype.getBytes=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.BuyStorageBytesContract.prototype.setBytes=function(y){return i.Message.setProto3IntField(this,2,y)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.BuyStorageContract.prototype.toObject=function(y){return TronWebProto.BuyStorageContract.toObject(y,this)},TronWebProto.BuyStorageContract.toObject=function(y,t){var o={ownerAddress:t.getOwnerAddress_asB64(),quant:i.Message.getFieldWithDefault(t,2,0)};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.BuyStorageContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.BuyStorageContract;return TronWebProto.BuyStorageContract.deserializeBinaryFromReader(o,t)},TronWebProto.BuyStorageContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setOwnerAddress(o);break;case 2:o=t.readInt64(),y.setQuant(o);break;default:t.skipField()}return y},TronWebProto.BuyStorageContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.BuyStorageContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.BuyStorageContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getQuant())!==0&&t.writeInt64(2,o)},TronWebProto.BuyStorageContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.BuyStorageContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.BuyStorageContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.BuyStorageContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.BuyStorageContract.prototype.getQuant=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.BuyStorageContract.prototype.setQuant=function(y){return i.Message.setProto3IntField(this,2,y)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.SellStorageContract.prototype.toObject=function(y){return TronWebProto.SellStorageContract.toObject(y,this)},TronWebProto.SellStorageContract.toObject=function(y,t){var o={ownerAddress:t.getOwnerAddress_asB64(),storageBytes:i.Message.getFieldWithDefault(t,2,0)};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.SellStorageContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.SellStorageContract;return TronWebProto.SellStorageContract.deserializeBinaryFromReader(o,t)},TronWebProto.SellStorageContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setOwnerAddress(o);break;case 2:o=t.readInt64(),y.setStorageBytes(o);break;default:t.skipField()}return y},TronWebProto.SellStorageContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.SellStorageContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.SellStorageContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getStorageBytes())!==0&&t.writeInt64(2,o)},TronWebProto.SellStorageContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.SellStorageContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.SellStorageContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.SellStorageContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.SellStorageContract.prototype.getStorageBytes=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.SellStorageContract.prototype.setStorageBytes=function(y){return i.Message.setProto3IntField(this,2,y)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.UpdateBrokerageContract.prototype.toObject=function(y){return TronWebProto.UpdateBrokerageContract.toObject(y,this)},TronWebProto.UpdateBrokerageContract.toObject=function(y,t){var o={ownerAddress:t.getOwnerAddress_asB64(),brokerage:i.Message.getFieldWithDefault(t,2,0)};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.UpdateBrokerageContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.UpdateBrokerageContract;return TronWebProto.UpdateBrokerageContract.deserializeBinaryFromReader(o,t)},TronWebProto.UpdateBrokerageContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setOwnerAddress(o);break;case 2:o=t.readInt32(),y.setBrokerage(o);break;default:t.skipField()}return y},TronWebProto.UpdateBrokerageContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.UpdateBrokerageContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.UpdateBrokerageContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getBrokerage())!==0&&t.writeInt32(2,o)},TronWebProto.UpdateBrokerageContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.UpdateBrokerageContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.UpdateBrokerageContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.UpdateBrokerageContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.UpdateBrokerageContract.prototype.getBrokerage=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.UpdateBrokerageContract.prototype.setBrokerage=function(y){return i.Message.setProto3IntField(this,2,y)},W.object.extend(v,TronWebProto)},7084:(V,v,k)=>{var i=k(5595),W=i,B=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||B!==void 0&&B||typeof self<"u"&&self||(function(){return this}).call(null)||Function("return this")();W.exportSymbol("TronWebProto.VoteWitnessContract",null,B),W.exportSymbol("TronWebProto.VoteWitnessContract.Vote",null,B),W.exportSymbol("TronWebProto.WitnessCreateContract",null,B),W.exportSymbol("TronWebProto.WitnessUpdateContract",null,B),TronWebProto.WitnessCreateContract=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.WitnessCreateContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.WitnessCreateContract.displayName="TronWebProto.WitnessCreateContract"),TronWebProto.WitnessUpdateContract=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.WitnessUpdateContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.WitnessUpdateContract.displayName="TronWebProto.WitnessUpdateContract"),TronWebProto.VoteWitnessContract=function(y){i.Message.initialize(this,y,0,-1,TronWebProto.VoteWitnessContract.repeatedFields_,null)},W.inherits(TronWebProto.VoteWitnessContract,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.VoteWitnessContract.displayName="TronWebProto.VoteWitnessContract"),TronWebProto.VoteWitnessContract.Vote=function(y){i.Message.initialize(this,y,0,-1,null,null)},W.inherits(TronWebProto.VoteWitnessContract.Vote,i.Message),W.DEBUG&&!COMPILED&&(TronWebProto.VoteWitnessContract.Vote.displayName="TronWebProto.VoteWitnessContract.Vote"),i.Message.GENERATE_TO_OBJECT&&(TronWebProto.WitnessCreateContract.prototype.toObject=function(y){return TronWebProto.WitnessCreateContract.toObject(y,this)},TronWebProto.WitnessCreateContract.toObject=function(y,t){var o={ownerAddress:t.getOwnerAddress_asB64(),url:t.getUrl_asB64()};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.WitnessCreateContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.WitnessCreateContract;return TronWebProto.WitnessCreateContract.deserializeBinaryFromReader(o,t)},TronWebProto.WitnessCreateContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setOwnerAddress(o);break;case 2:o=t.readBytes(),y.setUrl(o);break;default:t.skipField()}return y},TronWebProto.WitnessCreateContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.WitnessCreateContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.WitnessCreateContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getUrl_asU8()).length>0&&t.writeBytes(2,o)},TronWebProto.WitnessCreateContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.WitnessCreateContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.WitnessCreateContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.WitnessCreateContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.WitnessCreateContract.prototype.getUrl=function(){return i.Message.getFieldWithDefault(this,2,"")},TronWebProto.WitnessCreateContract.prototype.getUrl_asB64=function(){return i.Message.bytesAsB64(this.getUrl())},TronWebProto.WitnessCreateContract.prototype.getUrl_asU8=function(){return i.Message.bytesAsU8(this.getUrl())},TronWebProto.WitnessCreateContract.prototype.setUrl=function(y){return i.Message.setProto3BytesField(this,2,y)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.WitnessUpdateContract.prototype.toObject=function(y){return TronWebProto.WitnessUpdateContract.toObject(y,this)},TronWebProto.WitnessUpdateContract.toObject=function(y,t){var o={ownerAddress:t.getOwnerAddress_asB64(),updateUrl:t.getUpdateUrl_asB64()};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.WitnessUpdateContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.WitnessUpdateContract;return TronWebProto.WitnessUpdateContract.deserializeBinaryFromReader(o,t)},TronWebProto.WitnessUpdateContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setOwnerAddress(o);break;case 12:o=t.readBytes(),y.setUpdateUrl(o);break;default:t.skipField()}return y},TronWebProto.WitnessUpdateContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.WitnessUpdateContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.WitnessUpdateContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getUpdateUrl_asU8()).length>0&&t.writeBytes(12,o)},TronWebProto.WitnessUpdateContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.WitnessUpdateContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.WitnessUpdateContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.WitnessUpdateContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.WitnessUpdateContract.prototype.getUpdateUrl=function(){return i.Message.getFieldWithDefault(this,12,"")},TronWebProto.WitnessUpdateContract.prototype.getUpdateUrl_asB64=function(){return i.Message.bytesAsB64(this.getUpdateUrl())},TronWebProto.WitnessUpdateContract.prototype.getUpdateUrl_asU8=function(){return i.Message.bytesAsU8(this.getUpdateUrl())},TronWebProto.WitnessUpdateContract.prototype.setUpdateUrl=function(y){return i.Message.setProto3BytesField(this,12,y)},TronWebProto.VoteWitnessContract.repeatedFields_=[2],i.Message.GENERATE_TO_OBJECT&&(TronWebProto.VoteWitnessContract.prototype.toObject=function(y){return TronWebProto.VoteWitnessContract.toObject(y,this)},TronWebProto.VoteWitnessContract.toObject=function(y,t){var o={ownerAddress:t.getOwnerAddress_asB64(),votesList:i.Message.toObjectList(t.getVotesList(),TronWebProto.VoteWitnessContract.Vote.toObject,y),support:i.Message.getBooleanFieldWithDefault(t,3,!1)};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.VoteWitnessContract.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.VoteWitnessContract;return TronWebProto.VoteWitnessContract.deserializeBinaryFromReader(o,t)},TronWebProto.VoteWitnessContract.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setOwnerAddress(o);break;case 2:o=new TronWebProto.VoteWitnessContract.Vote,t.readMessage(o,TronWebProto.VoteWitnessContract.Vote.deserializeBinaryFromReader),y.addVotes(o);break;case 3:o=t.readBool(),y.setSupport(o);break;default:t.skipField()}return y},TronWebProto.VoteWitnessContract.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.VoteWitnessContract.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.VoteWitnessContract.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getOwnerAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getVotesList()).length>0&&t.writeRepeatedMessage(2,o,TronWebProto.VoteWitnessContract.Vote.serializeBinaryToWriter),(o=y.getSupport())&&t.writeBool(3,o)},i.Message.GENERATE_TO_OBJECT&&(TronWebProto.VoteWitnessContract.Vote.prototype.toObject=function(y){return TronWebProto.VoteWitnessContract.Vote.toObject(y,this)},TronWebProto.VoteWitnessContract.Vote.toObject=function(y,t){var o={voteAddress:t.getVoteAddress_asB64(),voteCount:i.Message.getFieldWithDefault(t,2,0)};return y&&(o.$jspbMessageInstance=t),o}),TronWebProto.VoteWitnessContract.Vote.deserializeBinary=function(y){var t=new i.BinaryReader(y),o=new TronWebProto.VoteWitnessContract.Vote;return TronWebProto.VoteWitnessContract.Vote.deserializeBinaryFromReader(o,t)},TronWebProto.VoteWitnessContract.Vote.deserializeBinaryFromReader=function(y,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var o=t.readBytes();y.setVoteAddress(o);break;case 2:o=t.readInt64(),y.setVoteCount(o);break;default:t.skipField()}return y},TronWebProto.VoteWitnessContract.Vote.prototype.serializeBinary=function(){var y=new i.BinaryWriter;return TronWebProto.VoteWitnessContract.Vote.serializeBinaryToWriter(this,y),y.getResultBuffer()},TronWebProto.VoteWitnessContract.Vote.serializeBinaryToWriter=function(y,t){var o=void 0;(o=y.getVoteAddress_asU8()).length>0&&t.writeBytes(1,o),(o=y.getVoteCount())!==0&&t.writeInt64(2,o)},TronWebProto.VoteWitnessContract.Vote.prototype.getVoteAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.VoteWitnessContract.Vote.prototype.getVoteAddress_asB64=function(){return i.Message.bytesAsB64(this.getVoteAddress())},TronWebProto.VoteWitnessContract.Vote.prototype.getVoteAddress_asU8=function(){return i.Message.bytesAsU8(this.getVoteAddress())},TronWebProto.VoteWitnessContract.Vote.prototype.setVoteAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.VoteWitnessContract.Vote.prototype.getVoteCount=function(){return i.Message.getFieldWithDefault(this,2,0)},TronWebProto.VoteWitnessContract.Vote.prototype.setVoteCount=function(y){return i.Message.setProto3IntField(this,2,y)},TronWebProto.VoteWitnessContract.prototype.getOwnerAddress=function(){return i.Message.getFieldWithDefault(this,1,"")},TronWebProto.VoteWitnessContract.prototype.getOwnerAddress_asB64=function(){return i.Message.bytesAsB64(this.getOwnerAddress())},TronWebProto.VoteWitnessContract.prototype.getOwnerAddress_asU8=function(){return i.Message.bytesAsU8(this.getOwnerAddress())},TronWebProto.VoteWitnessContract.prototype.setOwnerAddress=function(y){return i.Message.setProto3BytesField(this,1,y)},TronWebProto.VoteWitnessContract.prototype.getVotesList=function(){return i.Message.getRepeatedWrapperField(this,TronWebProto.VoteWitnessContract.Vote,2)},TronWebProto.VoteWitnessContract.prototype.setVotesList=function(y){return i.Message.setRepeatedWrapperField(this,2,y)},TronWebProto.VoteWitnessContract.prototype.addVotes=function(y,t){return i.Message.addToRepeatedWrapperField(this,2,y,TronWebProto.VoteWitnessContract.Vote,t)},TronWebProto.VoteWitnessContract.prototype.clearVotesList=function(){return this.setVotesList([])},TronWebProto.VoteWitnessContract.prototype.getSupport=function(){return i.Message.getBooleanFieldWithDefault(this,3,!1)},TronWebProto.VoteWitnessContract.prototype.setSupport=function(y){return i.Message.setProto3BooleanField(this,3,y)},W.object.extend(v,TronWebProto)},3550:function(V,v,k){(function(i,W){function B(A,N){if(!A)throw new Error(N||"Assertion failed")}function y(A,N){A.super_=N;var D=function(){};D.prototype=N.prototype,A.prototype=new D,A.prototype.constructor=A}function t(A,N,D){if(t.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&(N!=="le"&&N!=="be"||(D=N,N=10),this._init(A||0,N||10,D||"be"))}var o;typeof i=="object"?i.exports=t:W.BN=t,t.BN=t,t.wordSize=26;try{o=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:k(6601).Buffer}catch{}function s(A,N){var D=A.charCodeAt(N);return D>=48&&D<=57?D-48:D>=65&&D<=70?D-55:D>=97&&D<=102?D-87:void B(!1,"Invalid character in "+A)}function G(A,N,D){var F=s(A,D);return D-1>=N&&(F|=s(A,D-1)<<4),F}function _(A,N,D,F){for(var P=0,R=0,oe=Math.min(A.length,D),Te=N;Te<oe;Te++){var C=A.charCodeAt(Te)-48;P*=F,R=C>=49?C-49+10:C>=17?C-17+10:C,B(C>=0&&R<F,"Invalid character"),P+=R}return P}function ee(A,N){A.words=N.words,A.length=N.length,A.negative=N.negative,A.red=N.red}if(t.isBN=function(A){return A instanceof t||A!==null&&typeof A=="object"&&A.constructor.wordSize===t.wordSize&&Array.isArray(A.words)},t.max=function(A,N){return A.cmp(N)>0?A:N},t.min=function(A,N){return A.cmp(N)<0?A:N},t.prototype._init=function(A,N,D){if(typeof A=="number")return this._initNumber(A,N,D);if(typeof A=="object")return this._initArray(A,N,D);N==="hex"&&(N=16),B(N===(0|N)&&N>=2&&N<=36);var F=0;(A=A.toString().replace(/\s+/g,""))[0]==="-"&&(F++,this.negative=1),F<A.length&&(N===16?this._parseHex(A,F,D):(this._parseBase(A,N,F),D==="le"&&this._initArray(this.toArray(),N,D)))},t.prototype._initNumber=function(A,N,D){A<0&&(this.negative=1,A=-A),A<67108864?(this.words=[67108863&A],this.length=1):A<4503599627370496?(this.words=[67108863&A,A/67108864&67108863],this.length=2):(B(A<9007199254740992),this.words=[67108863&A,A/67108864&67108863,1],this.length=3),D==="le"&&this._initArray(this.toArray(),N,D)},t.prototype._initArray=function(A,N,D){if(B(typeof A.length=="number"),A.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(A.length/3),this.words=new Array(this.length);for(var F=0;F<this.length;F++)this.words[F]=0;var P,R,oe=0;if(D==="be")for(F=A.length-1,P=0;F>=0;F-=3)R=A[F]|A[F-1]<<8|A[F-2]<<16,this.words[P]|=R<<oe&67108863,this.words[P+1]=R>>>26-oe&67108863,(oe+=24)>=26&&(oe-=26,P++);else if(D==="le")for(F=0,P=0;F<A.length;F+=3)R=A[F]|A[F+1]<<8|A[F+2]<<16,this.words[P]|=R<<oe&67108863,this.words[P+1]=R>>>26-oe&67108863,(oe+=24)>=26&&(oe-=26,P++);return this._strip()},t.prototype._parseHex=function(A,N,D){this.length=Math.ceil((A.length-N)/6),this.words=new Array(this.length);for(var F=0;F<this.length;F++)this.words[F]=0;var P,R=0,oe=0;if(D==="be")for(F=A.length-1;F>=N;F-=2)P=G(A,N,F)<<R,this.words[oe]|=67108863&P,R>=18?(R-=18,oe+=1,this.words[oe]|=P>>>26):R+=8;else for(F=(A.length-N)%2==0?N+1:N;F<A.length;F+=2)P=G(A,N,F)<<R,this.words[oe]|=67108863&P,R>=18?(R-=18,oe+=1,this.words[oe]|=P>>>26):R+=8;this._strip()},t.prototype._parseBase=function(A,N,D){this.words=[0],this.length=1;for(var F=0,P=1;P<=67108863;P*=N)F++;F--,P=P/N|0;for(var R=A.length-D,oe=R%F,Te=Math.min(R,R-oe)+D,C=0,ue=D;ue<Te;ue+=F)C=_(A,ue,ue+F,N),this.imuln(P),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(oe!==0){var We=1;for(C=_(A,ue,A.length,N),ue=0;ue<oe;ue++)We*=N;this.imuln(We),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this._strip()},t.prototype.copy=function(A){A.words=new Array(this.length);for(var N=0;N<this.length;N++)A.words[N]=this.words[N];A.length=this.length,A.negative=this.negative,A.red=this.red},t.prototype._move=function(A){ee(A,this)},t.prototype.clone=function(){var A=new t(null);return this.copy(A),A},t.prototype._expand=function(A){for(;this.length<A;)this.words[this.length++]=0;return this},t.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},t.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{t.prototype[Symbol.for("nodejs.util.inspect.custom")]=Q}catch{t.prototype.inspect=Q}else t.prototype.inspect=Q;function Q(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var Ce=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],le=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],E=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function S(A,N,D){D.negative=N.negative^A.negative;var F=A.length+N.length|0;D.length=F,F=F-1|0;var P=0|A.words[0],R=0|N.words[0],oe=P*R,Te=67108863&oe,C=oe/67108864|0;D.words[0]=Te;for(var ue=1;ue<F;ue++){for(var We=C>>>26,ge=67108863&C,Ie=Math.min(ue,N.length-1),ze=Math.max(0,ue-A.length+1);ze<=Ie;ze++){var $e=ue-ze|0;We+=(oe=(P=0|A.words[$e])*(R=0|N.words[ze])+ge)/67108864|0,ge=67108863&oe}D.words[ue]=0|ge,C=0|We}return C!==0?D.words[ue]=0|C:D.length--,D._strip()}t.prototype.toString=function(A,N){var D;if(N=0|N||1,(A=A||10)===16||A==="hex"){D="";for(var F=0,P=0,R=0;R<this.length;R++){var oe=this.words[R],Te=(16777215&(oe<<F|P)).toString(16);P=oe>>>24-F&16777215,(F+=2)>=26&&(F-=26,R--),D=P!==0||R!==this.length-1?Ce[6-Te.length]+Te+D:Te+D}for(P!==0&&(D=P.toString(16)+D);D.length%N!=0;)D="0"+D;return this.negative!==0&&(D="-"+D),D}if(A===(0|A)&&A>=2&&A<=36){var C=le[A],ue=E[A];D="";var We=this.clone();for(We.negative=0;!We.isZero();){var ge=We.modrn(ue).toString(A);D=(We=We.idivn(ue)).isZero()?ge+D:Ce[C-ge.length]+ge+D}for(this.isZero()&&(D="0"+D);D.length%N!=0;)D="0"+D;return this.negative!==0&&(D="-"+D),D}B(!1,"Base should be between 2 and 36")},t.prototype.toNumber=function(){var A=this.words[0];return this.length===2?A+=67108864*this.words[1]:this.length===3&&this.words[2]===1?A+=4503599627370496+67108864*this.words[1]:this.length>2&&B(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-A:A},t.prototype.toJSON=function(){return this.toString(16,2)},o&&(t.prototype.toBuffer=function(A,N){return this.toArrayLike(o,A,N)}),t.prototype.toArray=function(A,N){return this.toArrayLike(Array,A,N)},t.prototype.toArrayLike=function(A,N,D){this._strip();var F=this.byteLength(),P=D||Math.max(1,F);B(F<=P,"byte array longer than desired length"),B(P>0,"Requested array length <= 0");var R=(function(oe,Te){return oe.allocUnsafe?oe.allocUnsafe(Te):new oe(Te)})(A,P);return this["_toArrayLike"+(N==="le"?"LE":"BE")](R,F),R},t.prototype._toArrayLikeLE=function(A,N){for(var D=0,F=0,P=0,R=0;P<this.length;P++){var oe=this.words[P]<<R|F;A[D++]=255&oe,D<A.length&&(A[D++]=oe>>8&255),D<A.length&&(A[D++]=oe>>16&255),R===6?(D<A.length&&(A[D++]=oe>>24&255),F=0,R=0):(F=oe>>>24,R+=2)}if(D<A.length)for(A[D++]=F;D<A.length;)A[D++]=0},t.prototype._toArrayLikeBE=function(A,N){for(var D=A.length-1,F=0,P=0,R=0;P<this.length;P++){var oe=this.words[P]<<R|F;A[D--]=255&oe,D>=0&&(A[D--]=oe>>8&255),D>=0&&(A[D--]=oe>>16&255),R===6?(D>=0&&(A[D--]=oe>>24&255),F=0,R=0):(F=oe>>>24,R+=2)}if(D>=0)for(A[D--]=F;D>=0;)A[D--]=0},Math.clz32?t.prototype._countBits=function(A){return 32-Math.clz32(A)}:t.prototype._countBits=function(A){var N=A,D=0;return N>=4096&&(D+=13,N>>>=13),N>=64&&(D+=7,N>>>=7),N>=8&&(D+=4,N>>>=4),N>=2&&(D+=2,N>>>=2),D+N},t.prototype._zeroBits=function(A){if(A===0)return 26;var N=A,D=0;return!(8191&N)&&(D+=13,N>>>=13),!(127&N)&&(D+=7,N>>>=7),!(15&N)&&(D+=4,N>>>=4),!(3&N)&&(D+=2,N>>>=2),!(1&N)&&D++,D},t.prototype.bitLength=function(){var A=this.words[this.length-1],N=this._countBits(A);return 26*(this.length-1)+N},t.prototype.zeroBits=function(){if(this.isZero())return 0;for(var A=0,N=0;N<this.length;N++){var D=this._zeroBits(this.words[N]);if(A+=D,D!==26)break}return A},t.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},t.prototype.toTwos=function(A){return this.negative!==0?this.abs().inotn(A).iaddn(1):this.clone()},t.prototype.fromTwos=function(A){return this.testn(A-1)?this.notn(A).iaddn(1).ineg():this.clone()},t.prototype.isNeg=function(){return this.negative!==0},t.prototype.neg=function(){return this.clone().ineg()},t.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},t.prototype.iuor=function(A){for(;this.length<A.length;)this.words[this.length++]=0;for(var N=0;N<A.length;N++)this.words[N]=this.words[N]|A.words[N];return this._strip()},t.prototype.ior=function(A){return B((this.negative|A.negative)==0),this.iuor(A)},t.prototype.or=function(A){return this.length>A.length?this.clone().ior(A):A.clone().ior(this)},t.prototype.uor=function(A){return this.length>A.length?this.clone().iuor(A):A.clone().iuor(this)},t.prototype.iuand=function(A){var N;N=this.length>A.length?A:this;for(var D=0;D<N.length;D++)this.words[D]=this.words[D]&A.words[D];return this.length=N.length,this._strip()},t.prototype.iand=function(A){return B((this.negative|A.negative)==0),this.iuand(A)},t.prototype.and=function(A){return this.length>A.length?this.clone().iand(A):A.clone().iand(this)},t.prototype.uand=function(A){return this.length>A.length?this.clone().iuand(A):A.clone().iuand(this)},t.prototype.iuxor=function(A){var N,D;this.length>A.length?(N=this,D=A):(N=A,D=this);for(var F=0;F<D.length;F++)this.words[F]=N.words[F]^D.words[F];if(this!==N)for(;F<N.length;F++)this.words[F]=N.words[F];return this.length=N.length,this._strip()},t.prototype.ixor=function(A){return B((this.negative|A.negative)==0),this.iuxor(A)},t.prototype.xor=function(A){return this.length>A.length?this.clone().ixor(A):A.clone().ixor(this)},t.prototype.uxor=function(A){return this.length>A.length?this.clone().iuxor(A):A.clone().iuxor(this)},t.prototype.inotn=function(A){B(typeof A=="number"&&A>=0);var N=0|Math.ceil(A/26),D=A%26;this._expand(N),D>0&&N--;for(var F=0;F<N;F++)this.words[F]=67108863&~this.words[F];return D>0&&(this.words[F]=~this.words[F]&67108863>>26-D),this._strip()},t.prototype.notn=function(A){return this.clone().inotn(A)},t.prototype.setn=function(A,N){B(typeof A=="number"&&A>=0);var D=A/26|0,F=A%26;return this._expand(D+1),this.words[D]=N?this.words[D]|1<<F:this.words[D]&~(1<<F),this._strip()},t.prototype.iadd=function(A){var N,D,F;if(this.negative!==0&&A.negative===0)return this.negative=0,N=this.isub(A),this.negative^=1,this._normSign();if(this.negative===0&&A.negative!==0)return A.negative=0,N=this.isub(A),A.negative=1,N._normSign();this.length>A.length?(D=this,F=A):(D=A,F=this);for(var P=0,R=0;R<F.length;R++)N=(0|D.words[R])+(0|F.words[R])+P,this.words[R]=67108863&N,P=N>>>26;for(;P!==0&&R<D.length;R++)N=(0|D.words[R])+P,this.words[R]=67108863&N,P=N>>>26;if(this.length=D.length,P!==0)this.words[this.length]=P,this.length++;else if(D!==this)for(;R<D.length;R++)this.words[R]=D.words[R];return this},t.prototype.add=function(A){var N;return A.negative!==0&&this.negative===0?(A.negative=0,N=this.sub(A),A.negative^=1,N):A.negative===0&&this.negative!==0?(this.negative=0,N=A.sub(this),this.negative=1,N):this.length>A.length?this.clone().iadd(A):A.clone().iadd(this)},t.prototype.isub=function(A){if(A.negative!==0){A.negative=0;var N=this.iadd(A);return A.negative=1,N._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(A),this.negative=1,this._normSign();var D,F,P=this.cmp(A);if(P===0)return this.negative=0,this.length=1,this.words[0]=0,this;P>0?(D=this,F=A):(D=A,F=this);for(var R=0,oe=0;oe<F.length;oe++)R=(N=(0|D.words[oe])-(0|F.words[oe])+R)>>26,this.words[oe]=67108863&N;for(;R!==0&&oe<D.length;oe++)R=(N=(0|D.words[oe])+R)>>26,this.words[oe]=67108863&N;if(R===0&&oe<D.length&&D!==this)for(;oe<D.length;oe++)this.words[oe]=D.words[oe];return this.length=Math.max(this.length,oe),D!==this&&(this.negative=1),this._strip()},t.prototype.sub=function(A){return this.clone().isub(A)};var L=function(A,N,D){var F,P,R,oe=A.words,Te=N.words,C=D.words,ue=0,We=0|oe[0],ge=8191&We,Ie=We>>>13,ze=0|oe[1],$e=8191&ze,nt=ze>>>13,ut=0|oe[2],ft=8191&ut,pt=ut>>>13,Lt=0|oe[3],$t=8191&Lt,It=Lt>>>13,br=0|oe[4],ct=8191&br,Ht=br>>>13,kr=0|oe[5],Ft=8191&kr,Kt=kr>>>13,Pr=0|oe[6],qt=8191&Pr,He=Pr>>>13,De=0|oe[7],Yt=8191&De,Zt=De>>>13,se=0|oe[8],zt=8191&se,Ct=se>>>13,xt=0|oe[9],or=8191&xt,tr=xt>>>13,it=0|Te[0],er=8191&it,pe=it>>>13,ke=0|Te[1],Ue=8191&ke,ot=ke>>>13,Dt=0|Te[2],Wt=8191&Dt,vt=Dt>>>13,Or=0|Te[3],Rt=8191&Or,Ut=Or>>>13,Wr=0|Te[4],bt=8191&Wr,_t=Wr>>>13,Br=0|Te[5],Vt=8191&Br,lt=Br>>>13,St=0|Te[6],Tt=8191&St,kt=St>>>13,fr=0|Te[7],Gt=8191&fr,tt=fr>>>13,yt=0|Te[8],gr=8191&yt,ar=yt>>>13,Tr=0|Te[9],yr=8191&Tr,ne=Tr>>>13;D.negative=A.negative^N.negative,D.length=19;var an=(ue+(F=Math.imul(ge,er))|0)+((8191&(P=(P=Math.imul(ge,pe))+Math.imul(Ie,er)|0))<<13)|0;ue=((R=Math.imul(Ie,pe))+(P>>>13)|0)+(an>>>26)|0,an&=67108863,F=Math.imul($e,er),P=(P=Math.imul($e,pe))+Math.imul(nt,er)|0,R=Math.imul(nt,pe);var ir=(ue+(F=F+Math.imul(ge,Ue)|0)|0)+((8191&(P=(P=P+Math.imul(ge,ot)|0)+Math.imul(Ie,Ue)|0))<<13)|0;ue=((R=R+Math.imul(Ie,ot)|0)+(P>>>13)|0)+(ir>>>26)|0,ir&=67108863,F=Math.imul(ft,er),P=(P=Math.imul(ft,pe))+Math.imul(pt,er)|0,R=Math.imul(pt,pe),F=F+Math.imul($e,Ue)|0,P=(P=P+Math.imul($e,ot)|0)+Math.imul(nt,Ue)|0,R=R+Math.imul(nt,ot)|0;var sr=(ue+(F=F+Math.imul(ge,Wt)|0)|0)+((8191&(P=(P=P+Math.imul(ge,vt)|0)+Math.imul(Ie,Wt)|0))<<13)|0;ue=((R=R+Math.imul(Ie,vt)|0)+(P>>>13)|0)+(sr>>>26)|0,sr&=67108863,F=Math.imul($t,er),P=(P=Math.imul($t,pe))+Math.imul(It,er)|0,R=Math.imul(It,pe),F=F+Math.imul(ft,Ue)|0,P=(P=P+Math.imul(ft,ot)|0)+Math.imul(pt,Ue)|0,R=R+Math.imul(pt,ot)|0,F=F+Math.imul($e,Wt)|0,P=(P=P+Math.imul($e,vt)|0)+Math.imul(nt,Wt)|0,R=R+Math.imul(nt,vt)|0;var Je=(ue+(F=F+Math.imul(ge,Rt)|0)|0)+((8191&(P=(P=P+Math.imul(ge,Ut)|0)+Math.imul(Ie,Rt)|0))<<13)|0;ue=((R=R+Math.imul(Ie,Ut)|0)+(P>>>13)|0)+(Je>>>26)|0,Je&=67108863,F=Math.imul(ct,er),P=(P=Math.imul(ct,pe))+Math.imul(Ht,er)|0,R=Math.imul(Ht,pe),F=F+Math.imul($t,Ue)|0,P=(P=P+Math.imul($t,ot)|0)+Math.imul(It,Ue)|0,R=R+Math.imul(It,ot)|0,F=F+Math.imul(ft,Wt)|0,P=(P=P+Math.imul(ft,vt)|0)+Math.imul(pt,Wt)|0,R=R+Math.imul(pt,vt)|0,F=F+Math.imul($e,Rt)|0,P=(P=P+Math.imul($e,Ut)|0)+Math.imul(nt,Rt)|0,R=R+Math.imul(nt,Ut)|0;var In=(ue+(F=F+Math.imul(ge,bt)|0)|0)+((8191&(P=(P=P+Math.imul(ge,_t)|0)+Math.imul(Ie,bt)|0))<<13)|0;ue=((R=R+Math.imul(Ie,_t)|0)+(P>>>13)|0)+(In>>>26)|0,In&=67108863,F=Math.imul(Ft,er),P=(P=Math.imul(Ft,pe))+Math.imul(Kt,er)|0,R=Math.imul(Kt,pe),F=F+Math.imul(ct,Ue)|0,P=(P=P+Math.imul(ct,ot)|0)+Math.imul(Ht,Ue)|0,R=R+Math.imul(Ht,ot)|0,F=F+Math.imul($t,Wt)|0,P=(P=P+Math.imul($t,vt)|0)+Math.imul(It,Wt)|0,R=R+Math.imul(It,vt)|0,F=F+Math.imul(ft,Rt)|0,P=(P=P+Math.imul(ft,Ut)|0)+Math.imul(pt,Rt)|0,R=R+Math.imul(pt,Ut)|0,F=F+Math.imul($e,bt)|0,P=(P=P+Math.imul($e,_t)|0)+Math.imul(nt,bt)|0,R=R+Math.imul(nt,_t)|0;var dr=(ue+(F=F+Math.imul(ge,Vt)|0)|0)+((8191&(P=(P=P+Math.imul(ge,lt)|0)+Math.imul(Ie,Vt)|0))<<13)|0;ue=((R=R+Math.imul(Ie,lt)|0)+(P>>>13)|0)+(dr>>>26)|0,dr&=67108863,F=Math.imul(qt,er),P=(P=Math.imul(qt,pe))+Math.imul(He,er)|0,R=Math.imul(He,pe),F=F+Math.imul(Ft,Ue)|0,P=(P=P+Math.imul(Ft,ot)|0)+Math.imul(Kt,Ue)|0,R=R+Math.imul(Kt,ot)|0,F=F+Math.imul(ct,Wt)|0,P=(P=P+Math.imul(ct,vt)|0)+Math.imul(Ht,Wt)|0,R=R+Math.imul(Ht,vt)|0,F=F+Math.imul($t,Rt)|0,P=(P=P+Math.imul($t,Ut)|0)+Math.imul(It,Rt)|0,R=R+Math.imul(It,Ut)|0,F=F+Math.imul(ft,bt)|0,P=(P=P+Math.imul(ft,_t)|0)+Math.imul(pt,bt)|0,R=R+Math.imul(pt,_t)|0,F=F+Math.imul($e,Vt)|0,P=(P=P+Math.imul($e,lt)|0)+Math.imul(nt,Vt)|0,R=R+Math.imul(nt,lt)|0;var f=(ue+(F=F+Math.imul(ge,Tt)|0)|0)+((8191&(P=(P=P+Math.imul(ge,kt)|0)+Math.imul(Ie,Tt)|0))<<13)|0;ue=((R=R+Math.imul(Ie,kt)|0)+(P>>>13)|0)+(f>>>26)|0,f&=67108863,F=Math.imul(Yt,er),P=(P=Math.imul(Yt,pe))+Math.imul(Zt,er)|0,R=Math.imul(Zt,pe),F=F+Math.imul(qt,Ue)|0,P=(P=P+Math.imul(qt,ot)|0)+Math.imul(He,Ue)|0,R=R+Math.imul(He,ot)|0,F=F+Math.imul(Ft,Wt)|0,P=(P=P+Math.imul(Ft,vt)|0)+Math.imul(Kt,Wt)|0,R=R+Math.imul(Kt,vt)|0,F=F+Math.imul(ct,Rt)|0,P=(P=P+Math.imul(ct,Ut)|0)+Math.imul(Ht,Rt)|0,R=R+Math.imul(Ht,Ut)|0,F=F+Math.imul($t,bt)|0,P=(P=P+Math.imul($t,_t)|0)+Math.imul(It,bt)|0,R=R+Math.imul(It,_t)|0,F=F+Math.imul(ft,Vt)|0,P=(P=P+Math.imul(ft,lt)|0)+Math.imul(pt,Vt)|0,R=R+Math.imul(pt,lt)|0,F=F+Math.imul($e,Tt)|0,P=(P=P+Math.imul($e,kt)|0)+Math.imul(nt,Tt)|0,R=R+Math.imul(nt,kt)|0;var m=(ue+(F=F+Math.imul(ge,Gt)|0)|0)+((8191&(P=(P=P+Math.imul(ge,tt)|0)+Math.imul(Ie,Gt)|0))<<13)|0;ue=((R=R+Math.imul(Ie,tt)|0)+(P>>>13)|0)+(m>>>26)|0,m&=67108863,F=Math.imul(zt,er),P=(P=Math.imul(zt,pe))+Math.imul(Ct,er)|0,R=Math.imul(Ct,pe),F=F+Math.imul(Yt,Ue)|0,P=(P=P+Math.imul(Yt,ot)|0)+Math.imul(Zt,Ue)|0,R=R+Math.imul(Zt,ot)|0,F=F+Math.imul(qt,Wt)|0,P=(P=P+Math.imul(qt,vt)|0)+Math.imul(He,Wt)|0,R=R+Math.imul(He,vt)|0,F=F+Math.imul(Ft,Rt)|0,P=(P=P+Math.imul(Ft,Ut)|0)+Math.imul(Kt,Rt)|0,R=R+Math.imul(Kt,Ut)|0,F=F+Math.imul(ct,bt)|0,P=(P=P+Math.imul(ct,_t)|0)+Math.imul(Ht,bt)|0,R=R+Math.imul(Ht,_t)|0,F=F+Math.imul($t,Vt)|0,P=(P=P+Math.imul($t,lt)|0)+Math.imul(It,Vt)|0,R=R+Math.imul(It,lt)|0,F=F+Math.imul(ft,Tt)|0,P=(P=P+Math.imul(ft,kt)|0)+Math.imul(pt,Tt)|0,R=R+Math.imul(pt,kt)|0,F=F+Math.imul($e,Gt)|0,P=(P=P+Math.imul($e,tt)|0)+Math.imul(nt,Gt)|0,R=R+Math.imul(nt,tt)|0;var T=(ue+(F=F+Math.imul(ge,gr)|0)|0)+((8191&(P=(P=P+Math.imul(ge,ar)|0)+Math.imul(Ie,gr)|0))<<13)|0;ue=((R=R+Math.imul(Ie,ar)|0)+(P>>>13)|0)+(T>>>26)|0,T&=67108863,F=Math.imul(or,er),P=(P=Math.imul(or,pe))+Math.imul(tr,er)|0,R=Math.imul(tr,pe),F=F+Math.imul(zt,Ue)|0,P=(P=P+Math.imul(zt,ot)|0)+Math.imul(Ct,Ue)|0,R=R+Math.imul(Ct,ot)|0,F=F+Math.imul(Yt,Wt)|0,P=(P=P+Math.imul(Yt,vt)|0)+Math.imul(Zt,Wt)|0,R=R+Math.imul(Zt,vt)|0,F=F+Math.imul(qt,Rt)|0,P=(P=P+Math.imul(qt,Ut)|0)+Math.imul(He,Rt)|0,R=R+Math.imul(He,Ut)|0,F=F+Math.imul(Ft,bt)|0,P=(P=P+Math.imul(Ft,_t)|0)+Math.imul(Kt,bt)|0,R=R+Math.imul(Kt,_t)|0,F=F+Math.imul(ct,Vt)|0,P=(P=P+Math.imul(ct,lt)|0)+Math.imul(Ht,Vt)|0,R=R+Math.imul(Ht,lt)|0,F=F+Math.imul($t,Tt)|0,P=(P=P+Math.imul($t,kt)|0)+Math.imul(It,Tt)|0,R=R+Math.imul(It,kt)|0,F=F+Math.imul(ft,Gt)|0,P=(P=P+Math.imul(ft,tt)|0)+Math.imul(pt,Gt)|0,R=R+Math.imul(pt,tt)|0,F=F+Math.imul($e,gr)|0,P=(P=P+Math.imul($e,ar)|0)+Math.imul(nt,gr)|0,R=R+Math.imul(nt,ar)|0;var H=(ue+(F=F+Math.imul(ge,yr)|0)|0)+((8191&(P=(P=P+Math.imul(ge,ne)|0)+Math.imul(Ie,yr)|0))<<13)|0;ue=((R=R+Math.imul(Ie,ne)|0)+(P>>>13)|0)+(H>>>26)|0,H&=67108863,F=Math.imul(or,Ue),P=(P=Math.imul(or,ot))+Math.imul(tr,Ue)|0,R=Math.imul(tr,ot),F=F+Math.imul(zt,Wt)|0,P=(P=P+Math.imul(zt,vt)|0)+Math.imul(Ct,Wt)|0,R=R+Math.imul(Ct,vt)|0,F=F+Math.imul(Yt,Rt)|0,P=(P=P+Math.imul(Yt,Ut)|0)+Math.imul(Zt,Rt)|0,R=R+Math.imul(Zt,Ut)|0,F=F+Math.imul(qt,bt)|0,P=(P=P+Math.imul(qt,_t)|0)+Math.imul(He,bt)|0,R=R+Math.imul(He,_t)|0,F=F+Math.imul(Ft,Vt)|0,P=(P=P+Math.imul(Ft,lt)|0)+Math.imul(Kt,Vt)|0,R=R+Math.imul(Kt,lt)|0,F=F+Math.imul(ct,Tt)|0,P=(P=P+Math.imul(ct,kt)|0)+Math.imul(Ht,Tt)|0,R=R+Math.imul(Ht,kt)|0,F=F+Math.imul($t,Gt)|0,P=(P=P+Math.imul($t,tt)|0)+Math.imul(It,Gt)|0,R=R+Math.imul(It,tt)|0,F=F+Math.imul(ft,gr)|0,P=(P=P+Math.imul(ft,ar)|0)+Math.imul(pt,gr)|0,R=R+Math.imul(pt,ar)|0;var me=(ue+(F=F+Math.imul($e,yr)|0)|0)+((8191&(P=(P=P+Math.imul($e,ne)|0)+Math.imul(nt,yr)|0))<<13)|0;ue=((R=R+Math.imul(nt,ne)|0)+(P>>>13)|0)+(me>>>26)|0,me&=67108863,F=Math.imul(or,Wt),P=(P=Math.imul(or,vt))+Math.imul(tr,Wt)|0,R=Math.imul(tr,vt),F=F+Math.imul(zt,Rt)|0,P=(P=P+Math.imul(zt,Ut)|0)+Math.imul(Ct,Rt)|0,R=R+Math.imul(Ct,Ut)|0,F=F+Math.imul(Yt,bt)|0,P=(P=P+Math.imul(Yt,_t)|0)+Math.imul(Zt,bt)|0,R=R+Math.imul(Zt,_t)|0,F=F+Math.imul(qt,Vt)|0,P=(P=P+Math.imul(qt,lt)|0)+Math.imul(He,Vt)|0,R=R+Math.imul(He,lt)|0,F=F+Math.imul(Ft,Tt)|0,P=(P=P+Math.imul(Ft,kt)|0)+Math.imul(Kt,Tt)|0,R=R+Math.imul(Kt,kt)|0,F=F+Math.imul(ct,Gt)|0,P=(P=P+Math.imul(ct,tt)|0)+Math.imul(Ht,Gt)|0,R=R+Math.imul(Ht,tt)|0,F=F+Math.imul($t,gr)|0,P=(P=P+Math.imul($t,ar)|0)+Math.imul(It,gr)|0,R=R+Math.imul(It,ar)|0;var Se=(ue+(F=F+Math.imul(ft,yr)|0)|0)+((8191&(P=(P=P+Math.imul(ft,ne)|0)+Math.imul(pt,yr)|0))<<13)|0;ue=((R=R+Math.imul(pt,ne)|0)+(P>>>13)|0)+(Se>>>26)|0,Se&=67108863,F=Math.imul(or,Rt),P=(P=Math.imul(or,Ut))+Math.imul(tr,Rt)|0,R=Math.imul(tr,Ut),F=F+Math.imul(zt,bt)|0,P=(P=P+Math.imul(zt,_t)|0)+Math.imul(Ct,bt)|0,R=R+Math.imul(Ct,_t)|0,F=F+Math.imul(Yt,Vt)|0,P=(P=P+Math.imul(Yt,lt)|0)+Math.imul(Zt,Vt)|0,R=R+Math.imul(Zt,lt)|0,F=F+Math.imul(qt,Tt)|0,P=(P=P+Math.imul(qt,kt)|0)+Math.imul(He,Tt)|0,R=R+Math.imul(He,kt)|0,F=F+Math.imul(Ft,Gt)|0,P=(P=P+Math.imul(Ft,tt)|0)+Math.imul(Kt,Gt)|0,R=R+Math.imul(Kt,tt)|0,F=F+Math.imul(ct,gr)|0,P=(P=P+Math.imul(ct,ar)|0)+Math.imul(Ht,gr)|0,R=R+Math.imul(Ht,ar)|0;var st=(ue+(F=F+Math.imul($t,yr)|0)|0)+((8191&(P=(P=P+Math.imul($t,ne)|0)+Math.imul(It,yr)|0))<<13)|0;ue=((R=R+Math.imul(It,ne)|0)+(P>>>13)|0)+(st>>>26)|0,st&=67108863,F=Math.imul(or,bt),P=(P=Math.imul(or,_t))+Math.imul(tr,bt)|0,R=Math.imul(tr,_t),F=F+Math.imul(zt,Vt)|0,P=(P=P+Math.imul(zt,lt)|0)+Math.imul(Ct,Vt)|0,R=R+Math.imul(Ct,lt)|0,F=F+Math.imul(Yt,Tt)|0,P=(P=P+Math.imul(Yt,kt)|0)+Math.imul(Zt,Tt)|0,R=R+Math.imul(Zt,kt)|0,F=F+Math.imul(qt,Gt)|0,P=(P=P+Math.imul(qt,tt)|0)+Math.imul(He,Gt)|0,R=R+Math.imul(He,tt)|0,F=F+Math.imul(Ft,gr)|0,P=(P=P+Math.imul(Ft,ar)|0)+Math.imul(Kt,gr)|0,R=R+Math.imul(Kt,ar)|0;var Et=(ue+(F=F+Math.imul(ct,yr)|0)|0)+((8191&(P=(P=P+Math.imul(ct,ne)|0)+Math.imul(Ht,yr)|0))<<13)|0;ue=((R=R+Math.imul(Ht,ne)|0)+(P>>>13)|0)+(Et>>>26)|0,Et&=67108863,F=Math.imul(or,Vt),P=(P=Math.imul(or,lt))+Math.imul(tr,Vt)|0,R=Math.imul(tr,lt),F=F+Math.imul(zt,Tt)|0,P=(P=P+Math.imul(zt,kt)|0)+Math.imul(Ct,Tt)|0,R=R+Math.imul(Ct,kt)|0,F=F+Math.imul(Yt,Gt)|0,P=(P=P+Math.imul(Yt,tt)|0)+Math.imul(Zt,Gt)|0,R=R+Math.imul(Zt,tt)|0,F=F+Math.imul(qt,gr)|0,P=(P=P+Math.imul(qt,ar)|0)+Math.imul(He,gr)|0,R=R+Math.imul(He,ar)|0;var Nr=(ue+(F=F+Math.imul(Ft,yr)|0)|0)+((8191&(P=(P=P+Math.imul(Ft,ne)|0)+Math.imul(Kt,yr)|0))<<13)|0;ue=((R=R+Math.imul(Kt,ne)|0)+(P>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,F=Math.imul(or,Tt),P=(P=Math.imul(or,kt))+Math.imul(tr,Tt)|0,R=Math.imul(tr,kt),F=F+Math.imul(zt,Gt)|0,P=(P=P+Math.imul(zt,tt)|0)+Math.imul(Ct,Gt)|0,R=R+Math.imul(Ct,tt)|0,F=F+Math.imul(Yt,gr)|0,P=(P=P+Math.imul(Yt,ar)|0)+Math.imul(Zt,gr)|0,R=R+Math.imul(Zt,ar)|0;var Dr=(ue+(F=F+Math.imul(qt,yr)|0)|0)+((8191&(P=(P=P+Math.imul(qt,ne)|0)+Math.imul(He,yr)|0))<<13)|0;ue=((R=R+Math.imul(He,ne)|0)+(P>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,F=Math.imul(or,Gt),P=(P=Math.imul(or,tt))+Math.imul(tr,Gt)|0,R=Math.imul(tr,tt),F=F+Math.imul(zt,gr)|0,P=(P=P+Math.imul(zt,ar)|0)+Math.imul(Ct,gr)|0,R=R+Math.imul(Ct,ar)|0;var sn=(ue+(F=F+Math.imul(Yt,yr)|0)|0)+((8191&(P=(P=P+Math.imul(Yt,ne)|0)+Math.imul(Zt,yr)|0))<<13)|0;ue=((R=R+Math.imul(Zt,ne)|0)+(P>>>13)|0)+(sn>>>26)|0,sn&=67108863,F=Math.imul(or,gr),P=(P=Math.imul(or,ar))+Math.imul(tr,gr)|0,R=Math.imul(tr,ar);var yn=(ue+(F=F+Math.imul(zt,yr)|0)|0)+((8191&(P=(P=P+Math.imul(zt,ne)|0)+Math.imul(Ct,yr)|0))<<13)|0;ue=((R=R+Math.imul(Ct,ne)|0)+(P>>>13)|0)+(yn>>>26)|0,yn&=67108863;var xn=(ue+(F=Math.imul(or,yr))|0)+((8191&(P=(P=Math.imul(or,ne))+Math.imul(tr,yr)|0))<<13)|0;return ue=((R=Math.imul(tr,ne))+(P>>>13)|0)+(xn>>>26)|0,xn&=67108863,C[0]=an,C[1]=ir,C[2]=sr,C[3]=Je,C[4]=In,C[5]=dr,C[6]=f,C[7]=m,C[8]=T,C[9]=H,C[10]=me,C[11]=Se,C[12]=st,C[13]=Et,C[14]=Nr,C[15]=Dr,C[16]=sn,C[17]=yn,C[18]=xn,ue!==0&&(C[19]=ue,D.length++),D};function K(A,N,D){D.negative=N.negative^A.negative,D.length=A.length+N.length;for(var F=0,P=0,R=0;R<D.length-1;R++){var oe=P;P=0;for(var Te=67108863&F,C=Math.min(R,N.length-1),ue=Math.max(0,R-A.length+1);ue<=C;ue++){var We=R-ue,ge=(0|A.words[We])*(0|N.words[ue]),Ie=67108863≥Te=67108863&(Ie=Ie+Te|0),P+=(oe=(oe=oe+(ge/67108864|0)|0)+(Ie>>>26)|0)>>>26,oe&=67108863}D.words[R]=Te,F=oe,oe=P}return F!==0?D.words[R]=F:D.length--,D._strip()}function Y(A,N,D){return K(A,N,D)}Math.imul||(L=S),t.prototype.mulTo=function(A,N){var D=this.length+A.length;return this.length===10&&A.length===10?L(this,A,N):D<63?S(this,A,N):D<1024?K(this,A,N):Y(this,A,N)},t.prototype.mul=function(A){var N=new t(null);return N.words=new Array(this.length+A.length),this.mulTo(A,N)},t.prototype.mulf=function(A){var N=new t(null);return N.words=new Array(this.length+A.length),Y(this,A,N)},t.prototype.imul=function(A){return this.clone().mulTo(A,this)},t.prototype.imuln=function(A){var N=A<0;N&&(A=-A),B(typeof A=="number"),B(A<67108864);for(var D=0,F=0;F<this.length;F++){var P=(0|this.words[F])*A,R=(67108863&P)+(67108863&D);D>>=26,D+=P/67108864|0,D+=R>>>26,this.words[F]=67108863&R}return D!==0&&(this.words[F]=D,this.length++),N?this.ineg():this},t.prototype.muln=function(A){return this.clone().imuln(A)},t.prototype.sqr=function(){return this.mul(this)},t.prototype.isqr=function(){return this.imul(this.clone())},t.prototype.pow=function(A){var N=(function(R){for(var oe=new Array(R.bitLength()),Te=0;Te<oe.length;Te++){var C=Te/26|0,ue=Te%26;oe[Te]=R.words[C]>>>ue&1}return oe})(A);if(N.length===0)return new t(1);for(var D=this,F=0;F<N.length&&N[F]===0;F++,D=D.sqr());if(++F<N.length)for(var P=D.sqr();F<N.length;F++,P=P.sqr())N[F]!==0&&(D=D.mul(P));return D},t.prototype.iushln=function(A){B(typeof A=="number"&&A>=0);var N,D=A%26,F=(A-D)/26,P=67108863>>>26-D<<26-D;if(D!==0){var R=0;for(N=0;N<this.length;N++){var oe=this.words[N]&P,Te=(0|this.words[N])-oe<<D;this.words[N]=Te|R,R=oe>>>26-D}R&&(this.words[N]=R,this.length++)}if(F!==0){for(N=this.length-1;N>=0;N--)this.words[N+F]=this.words[N];for(N=0;N<F;N++)this.words[N]=0;this.length+=F}return this._strip()},t.prototype.ishln=function(A){return B(this.negative===0),this.iushln(A)},t.prototype.iushrn=function(A,N,D){var F;B(typeof A=="number"&&A>=0),F=N?(N-N%26)/26:0;var P=A%26,R=Math.min((A-P)/26,this.length),oe=67108863^67108863>>>P<<P,Te=D;if(F-=R,F=Math.max(0,F),Te){for(var C=0;C<R;C++)Te.words[C]=this.words[C];Te.length=R}if(R!==0)if(this.length>R)for(this.length-=R,C=0;C<this.length;C++)this.words[C]=this.words[C+R];else this.words[0]=0,this.length=1;var ue=0;for(C=this.length-1;C>=0&&(ue!==0||C>=F);C--){var We=0|this.words[C];this.words[C]=ue<<26-P|We>>>P,ue=We&oe}return Te&&ue!==0&&(Te.words[Te.length++]=ue),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},t.prototype.ishrn=function(A,N,D){return B(this.negative===0),this.iushrn(A,N,D)},t.prototype.shln=function(A){return this.clone().ishln(A)},t.prototype.ushln=function(A){return this.clone().iushln(A)},t.prototype.shrn=function(A){return this.clone().ishrn(A)},t.prototype.ushrn=function(A){return this.clone().iushrn(A)},t.prototype.testn=function(A){B(typeof A=="number"&&A>=0);var N=A%26,D=(A-N)/26,F=1<<N;return!(this.length<=D||!(this.words[D]&F))},t.prototype.imaskn=function(A){B(typeof A=="number"&&A>=0);var N=A%26,D=(A-N)/26;if(B(this.negative===0,"imaskn works only with positive numbers"),this.length<=D)return this;if(N!==0&&D++,this.length=Math.min(D,this.length),N!==0){var F=67108863^67108863>>>N<<N;this.words[this.length-1]&=F}return this._strip()},t.prototype.maskn=function(A){return this.clone().imaskn(A)},t.prototype.iaddn=function(A){return B(typeof A=="number"),B(A<67108864),A<0?this.isubn(-A):this.negative!==0?this.length===1&&(0|this.words[0])<=A?(this.words[0]=A-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(A),this.negative=1,this):this._iaddn(A)},t.prototype._iaddn=function(A){this.words[0]+=A;for(var N=0;N<this.length&&this.words[N]>=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},t.prototype.isubn=function(A){if(B(typeof A=="number"),B(A<67108864),A<0)return this.iaddn(-A);if(this.negative!==0)return this.negative=0,this.iaddn(A),this.negative=1,this;if(this.words[0]-=A,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N<this.length&&this.words[N]<0;N++)this.words[N]+=67108864,this.words[N+1]-=1;return this._strip()},t.prototype.addn=function(A){return this.clone().iaddn(A)},t.prototype.subn=function(A){return this.clone().isubn(A)},t.prototype.iabs=function(){return this.negative=0,this},t.prototype.abs=function(){return this.clone().iabs()},t.prototype._ishlnsubmul=function(A,N,D){var F,P,R=A.length+D;this._expand(R);var oe=0;for(F=0;F<A.length;F++){P=(0|this.words[F+D])+oe;var Te=(0|A.words[F])*N;oe=((P-=67108863&Te)>>26)-(Te/67108864|0),this.words[F+D]=67108863&P}for(;F<this.length-D;F++)oe=(P=(0|this.words[F+D])+oe)>>26,this.words[F+D]=67108863&P;if(oe===0)return this._strip();for(B(oe===-1),oe=0,F=0;F<this.length;F++)oe=(P=-(0|this.words[F])+oe)>>26,this.words[F]=67108863&P;return this.negative=1,this._strip()},t.prototype._wordDiv=function(A,N){var D=(this.length,A.length),F=this.clone(),P=A,R=0|P.words[P.length-1];(D=26-this._countBits(R))!=0&&(P=P.ushln(D),F.iushln(D),R=0|P.words[P.length-1]);var oe,Te=F.length-P.length;if(N!=="mod"){(oe=new t(null)).length=Te+1,oe.words=new Array(oe.length);for(var C=0;C<oe.length;C++)oe.words[C]=0}var ue=F.clone()._ishlnsubmul(P,1,Te);ue.negative===0&&(F=ue,oe&&(oe.words[Te]=1));for(var We=Te-1;We>=0;We--){var ge=67108864*(0|F.words[P.length+We])+(0|F.words[P.length+We-1]);for(ge=Math.min(ge/R|0,67108863),F._ishlnsubmul(P,ge,We);F.negative!==0;)ge--,F.negative=0,F._ishlnsubmul(P,1,We),F.isZero()||(F.negative^=1);oe&&(oe.words[We]=ge)}return oe&&oe._strip(),F._strip(),N!=="div"&&D!==0&&F.iushrn(D),{div:oe||null,mod:F}},t.prototype.divmod=function(A,N,D){return B(!A.isZero()),this.isZero()?{div:new t(0),mod:new t(0)}:this.negative!==0&&A.negative===0?(R=this.neg().divmod(A,N),N!=="mod"&&(F=R.div.neg()),N!=="div"&&(P=R.mod.neg(),D&&P.negative!==0&&P.iadd(A)),{div:F,mod:P}):this.negative===0&&A.negative!==0?(R=this.divmod(A.neg(),N),N!=="mod"&&(F=R.div.neg()),{div:F,mod:R.mod}):this.negative&A.negative?(R=this.neg().divmod(A.neg(),N),N!=="div"&&(P=R.mod.neg(),D&&P.negative!==0&&P.isub(A)),{div:R.div,mod:P}):A.length>this.length||this.cmp(A)<0?{div:new t(0),mod:this}:A.length===1?N==="div"?{div:this.divn(A.words[0]),mod:null}:N==="mod"?{div:null,mod:new t(this.modrn(A.words[0]))}:{div:this.divn(A.words[0]),mod:new t(this.modrn(A.words[0]))}:this._wordDiv(A,N);var F,P,R},t.prototype.div=function(A){return this.divmod(A,"div",!1).div},t.prototype.mod=function(A){return this.divmod(A,"mod",!1).mod},t.prototype.umod=function(A){return this.divmod(A,"mod",!0).mod},t.prototype.divRound=function(A){var N=this.divmod(A);if(N.mod.isZero())return N.div;var D=N.div.negative!==0?N.mod.isub(A):N.mod,F=A.ushrn(1),P=A.andln(1),R=D.cmp(F);return R<0||P===1&&R===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},t.prototype.modrn=function(A){var N=A<0;N&&(A=-A),B(A<=67108863);for(var D=67108864%A,F=0,P=this.length-1;P>=0;P--)F=(D*F+(0|this.words[P]))%A;return N?-F:F},t.prototype.modn=function(A){return this.modrn(A)},t.prototype.idivn=function(A){var N=A<0;N&&(A=-A),B(A<=67108863);for(var D=0,F=this.length-1;F>=0;F--){var P=(0|this.words[F])+67108864*D;this.words[F]=P/A|0,D=P%A}return this._strip(),N?this.ineg():this},t.prototype.divn=function(A){return this.clone().idivn(A)},t.prototype.egcd=function(A){B(A.negative===0),B(!A.isZero());var N=this,D=A.clone();N=N.negative!==0?N.umod(A):N.clone();for(var F=new t(1),P=new t(0),R=new t(0),oe=new t(1),Te=0;N.isEven()&&D.isEven();)N.iushrn(1),D.iushrn(1),++Te;for(var C=D.clone(),ue=N.clone();!N.isZero();){for(var We=0,ge=1;!(N.words[0]&ge)&&We<26;++We,ge<<=1);if(We>0)for(N.iushrn(We);We-- >0;)(F.isOdd()||P.isOdd())&&(F.iadd(C),P.isub(ue)),F.iushrn(1),P.iushrn(1);for(var Ie=0,ze=1;!(D.words[0]&ze)&&Ie<26;++Ie,ze<<=1);if(Ie>0)for(D.iushrn(Ie);Ie-- >0;)(R.isOdd()||oe.isOdd())&&(R.iadd(C),oe.isub(ue)),R.iushrn(1),oe.iushrn(1);N.cmp(D)>=0?(N.isub(D),F.isub(R),P.isub(oe)):(D.isub(N),R.isub(F),oe.isub(P))}return{a:R,b:oe,gcd:D.iushln(Te)}},t.prototype._invmp=function(A){B(A.negative===0),B(!A.isZero());var N=this,D=A.clone();N=N.negative!==0?N.umod(A):N.clone();for(var F,P=new t(1),R=new t(0),oe=D.clone();N.cmpn(1)>0&&D.cmpn(1)>0;){for(var Te=0,C=1;!(N.words[0]&C)&&Te<26;++Te,C<<=1);if(Te>0)for(N.iushrn(Te);Te-- >0;)P.isOdd()&&P.iadd(oe),P.iushrn(1);for(var ue=0,We=1;!(D.words[0]&We)&&ue<26;++ue,We<<=1);if(ue>0)for(D.iushrn(ue);ue-- >0;)R.isOdd()&&R.iadd(oe),R.iushrn(1);N.cmp(D)>=0?(N.isub(D),P.isub(R)):(D.isub(N),R.isub(P))}return(F=N.cmpn(1)===0?P:R).cmpn(0)<0&&F.iadd(A),F},t.prototype.gcd=function(A){if(this.isZero())return A.abs();if(A.isZero())return this.abs();var N=this.clone(),D=A.clone();N.negative=0,D.negative=0;for(var F=0;N.isEven()&&D.isEven();F++)N.iushrn(1),D.iushrn(1);for(;;){for(;N.isEven();)N.iushrn(1);for(;D.isEven();)D.iushrn(1);var P=N.cmp(D);if(P<0){var R=N;N=D,D=R}else if(P===0||D.cmpn(1)===0)break;N.isub(D)}return D.iushln(F)},t.prototype.invm=function(A){return this.egcd(A).a.umod(A)},t.prototype.isEven=function(){return(1&this.words[0])==0},t.prototype.isOdd=function(){return(1&this.words[0])==1},t.prototype.andln=function(A){return this.words[0]&A},t.prototype.bincn=function(A){B(typeof A=="number");var N=A%26,D=(A-N)/26,F=1<<N;if(this.length<=D)return this._expand(D+1),this.words[D]|=F,this;for(var P=F,R=D;P!==0&&R<this.length;R++){var oe=0|this.words[R];P=(oe+=P)>>>26,oe&=67108863,this.words[R]=oe}return P!==0&&(this.words[R]=P,this.length++),this},t.prototype.isZero=function(){return this.length===1&&this.words[0]===0},t.prototype.cmpn=function(A){var N,D=A<0;if(this.negative!==0&&!D)return-1;if(this.negative===0&&D)return 1;if(this._strip(),this.length>1)N=1;else{D&&(A=-A),B(A<=67108863,"Number is too big");var F=0|this.words[0];N=F===A?0:F<A?-1:1}return this.negative!==0?0|-N:N},t.prototype.cmp=function(A){if(this.negative!==0&&A.negative===0)return-1;if(this.negative===0&&A.negative!==0)return 1;var N=this.ucmp(A);return this.negative!==0?0|-N:N},t.prototype.ucmp=function(A){if(this.length>A.length)return 1;if(this.length<A.length)return-1;for(var N=0,D=this.length-1;D>=0;D--){var F=0|this.words[D],P=0|A.words[D];if(F!==P){F<P?N=-1:F>P&&(N=1);break}}return N},t.prototype.gtn=function(A){return this.cmpn(A)===1},t.prototype.gt=function(A){return this.cmp(A)===1},t.prototype.gten=function(A){return this.cmpn(A)>=0},t.prototype.gte=function(A){return this.cmp(A)>=0},t.prototype.ltn=function(A){return this.cmpn(A)===-1},t.prototype.lt=function(A){return this.cmp(A)===-1},t.prototype.lten=function(A){return this.cmpn(A)<=0},t.prototype.lte=function(A){return this.cmp(A)<=0},t.prototype.eqn=function(A){return this.cmpn(A)===0},t.prototype.eq=function(A){return this.cmp(A)===0},t.red=function(A){return new Ge(A)},t.prototype.toRed=function(A){return B(!this.red,"Already a number in reduction context"),B(this.negative===0,"red works only with positives"),A.convertTo(this)._forceRed(A)},t.prototype.fromRed=function(){return B(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},t.prototype._forceRed=function(A){return this.red=A,this},t.prototype.forceRed=function(A){return B(!this.red,"Already a number in reduction context"),this._forceRed(A)},t.prototype.redAdd=function(A){return B(this.red,"redAdd works only with red numbers"),this.red.add(this,A)},t.prototype.redIAdd=function(A){return B(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,A)},t.prototype.redSub=function(A){return B(this.red,"redSub works only with red numbers"),this.red.sub(this,A)},t.prototype.redISub=function(A){return B(this.red,"redISub works only with red numbers"),this.red.isub(this,A)},t.prototype.redShl=function(A){return B(this.red,"redShl works only with red numbers"),this.red.shl(this,A)},t.prototype.redMul=function(A){return B(this.red,"redMul works only with red numbers"),this.red._verify2(this,A),this.red.mul(this,A)},t.prototype.redIMul=function(A){return B(this.red,"redMul works only with red numbers"),this.red._verify2(this,A),this.red.imul(this,A)},t.prototype.redSqr=function(){return B(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},t.prototype.redISqr=function(){return B(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},t.prototype.redSqrt=function(){return B(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},t.prototype.redInvm=function(){return B(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},t.prototype.redNeg=function(){return B(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},t.prototype.redPow=function(A){return B(this.red&&!A.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,A)};var ce={k256:null,p224:null,p192:null,p25519:null};function te(A,N){this.name=A,this.p=new t(N,16),this.n=this.p.bitLength(),this.k=new t(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){te.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function he(){te.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Xe(){te.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function et(){te.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Ge(A){if(typeof A=="string"){var N=t._prime(A);this.m=N.p,this.prime=N}else B(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}function Ze(A){Ge.call(this,A),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new t(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}te.prototype._tmp=function(){var A=new t(null);return A.words=new Array(Math.ceil(this.n/13)),A},te.prototype.ireduce=function(A){var N,D=A;do this.split(D,this.tmp),N=(D=(D=this.imulK(D)).iadd(this.tmp)).bitLength();while(N>this.n);var F=N<this.n?-1:D.ucmp(this.p);return F===0?(D.words[0]=0,D.length=1):F>0?D.isub(this.p):D.strip!==void 0?D.strip():D._strip(),D},te.prototype.split=function(A,N){A.iushrn(this.n,0,N)},te.prototype.imulK=function(A){return A.imul(this.k)},y(ie,te),ie.prototype.split=function(A,N){for(var D=4194303,F=Math.min(A.length,9),P=0;P<F;P++)N.words[P]=A.words[P];if(N.length=F,A.length<=9)return A.words[0]=0,void(A.length=1);var R=A.words[9];for(N.words[N.length++]=R&D,P=10;P<A.length;P++){var oe=0|A.words[P];A.words[P-10]=(oe&D)<<4|R>>>22,R=oe}R>>>=22,A.words[P-10]=R,R===0&&A.length>10?A.length-=10:A.length-=9},ie.prototype.imulK=function(A){A.words[A.length]=0,A.words[A.length+1]=0,A.length+=2;for(var N=0,D=0;D<A.length;D++){var F=0|A.words[D];N+=977*F,A.words[D]=67108863&N,N=64*F+(N/67108864|0)}return A.words[A.length-1]===0&&(A.length--,A.words[A.length-1]===0&&A.length--),A},y(he,te),y(Xe,te),y(et,te),et.prototype.imulK=function(A){for(var N=0,D=0;D<A.length;D++){var F=19*(0|A.words[D])+N,P=67108863&F;F>>>=26,A.words[D]=P,N=F}return N!==0&&(A.words[A.length++]=N),A},t._prime=function(A){if(ce[A])return ce[A];var N;if(A==="k256")N=new ie;else if(A==="p224")N=new he;else if(A==="p192")N=new Xe;else{if(A!=="p25519")throw new Error("Unknown prime "+A);N=new et}return ce[A]=N,N},Ge.prototype._verify1=function(A){B(A.negative===0,"red works only with positives"),B(A.red,"red works only with red numbers")},Ge.prototype._verify2=function(A,N){B((A.negative|N.negative)==0,"red works only with positives"),B(A.red&&A.red===N.red,"red works only with red numbers")},Ge.prototype.imod=function(A){return this.prime?this.prime.ireduce(A)._forceRed(this):(ee(A,A.umod(this.m)._forceRed(this)),A)},Ge.prototype.neg=function(A){return A.isZero()?A.clone():this.m.sub(A)._forceRed(this)},Ge.prototype.add=function(A,N){this._verify2(A,N);var D=A.add(N);return D.cmp(this.m)>=0&&D.isub(this.m),D._forceRed(this)},Ge.prototype.iadd=function(A,N){this._verify2(A,N);var D=A.iadd(N);return D.cmp(this.m)>=0&&D.isub(this.m),D},Ge.prototype.sub=function(A,N){this._verify2(A,N);var D=A.sub(N);return D.cmpn(0)<0&&D.iadd(this.m),D._forceRed(this)},Ge.prototype.isub=function(A,N){this._verify2(A,N);var D=A.isub(N);return D.cmpn(0)<0&&D.iadd(this.m),D},Ge.prototype.shl=function(A,N){return this._verify1(A),this.imod(A.ushln(N))},Ge.prototype.imul=function(A,N){return this._verify2(A,N),this.imod(A.imul(N))},Ge.prototype.mul=function(A,N){return this._verify2(A,N),this.imod(A.mul(N))},Ge.prototype.isqr=function(A){return this.imul(A,A.clone())},Ge.prototype.sqr=function(A){return this.mul(A,A)},Ge.prototype.sqrt=function(A){if(A.isZero())return A.clone();var N=this.m.andln(3);if(B(N%2==1),N===3){var D=this.m.add(new t(1)).iushrn(2);return this.pow(A,D)}for(var F=this.m.subn(1),P=0;!F.isZero()&&F.andln(1)===0;)P++,F.iushrn(1);B(!F.isZero());var R=new t(1).toRed(this),oe=R.redNeg(),Te=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new t(2*C*C).toRed(this);this.pow(C,Te).cmp(oe)!==0;)C.redIAdd(oe);for(var ue=this.pow(C,F),We=this.pow(A,F.addn(1).iushrn(1)),ge=this.pow(A,F),Ie=P;ge.cmp(R)!==0;){for(var ze=ge,$e=0;ze.cmp(R)!==0;$e++)ze=ze.redSqr();B($e<Ie);var nt=this.pow(ue,new t(1).iushln(Ie-$e-1));We=We.redMul(nt),ue=nt.redSqr(),ge=ge.redMul(ue),Ie=$e}return We},Ge.prototype.invm=function(A){var N=A._invmp(this.m);return N.negative!==0?(N.negative=0,this.imod(N).redNeg()):this.imod(N)},Ge.prototype.pow=function(A,N){if(N.isZero())return new t(1).toRed(this);if(N.cmpn(1)===0)return A.clone();var D=new Array(16);D[0]=new t(1).toRed(this),D[1]=A;for(var F=2;F<D.length;F++)D[F]=this.mul(D[F-1],A);var P=D[0],R=0,oe=0,Te=N.bitLength()%26;for(Te===0&&(Te=26),F=N.length-1;F>=0;F--){for(var C=N.words[F],ue=Te-1;ue>=0;ue--){var We=C>>ue&1;P!==D[0]&&(P=this.sqr(P)),We!==0||R!==0?(R<<=1,R|=We,(++oe==4||F===0&&ue===0)&&(P=this.mul(P,D[R]),oe=0,R=0)):oe=0}Te=26}return P},Ge.prototype.convertTo=function(A){var N=A.umod(this.m);return N===A?N.clone():N},Ge.prototype.convertFrom=function(A){var N=A.clone();return N.red=null,N},t.mont=function(A){return new Ze(A)},y(Ze,Ge),Ze.prototype.convertTo=function(A){return this.imod(A.ushln(this.shift))},Ze.prototype.convertFrom=function(A){var N=this.imod(A.mul(this.rinv));return N.red=null,N},Ze.prototype.imul=function(A,N){if(A.isZero()||N.isZero())return A.words[0]=0,A.length=1,A;var D=A.imul(N),F=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=D.isub(F).iushrn(this.shift),R=P;return P.cmp(this.m)>=0?R=P.isub(this.m):P.cmpn(0)<0&&(R=P.iadd(this.m)),R._forceRed(this)},Ze.prototype.mul=function(A,N){if(A.isZero()||N.isZero())return new t(0)._forceRed(this);var D=A.mul(N),F=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=D.isub(F).iushrn(this.shift),R=P;return P.cmp(this.m)>=0?R=P.isub(this.m):P.cmpn(0)<0&&(R=P.iadd(this.m)),R._forceRed(this)},Ze.prototype.invm=function(A){return this.imod(A._invmp(this.m).mul(this.r2))._forceRed(this)}})(V=k.nmd(V),this)},5053:(V,v,k)=>{v.k=void 0;var i=k(3497);Object.defineProperty(v,"k",{enumerable:!0,get:function(){return i.secp256k1}})},6729:V=>{var v=Object.prototype.hasOwnProperty,k="~";function i(){}function W(o,s,G){this.fn=o,this.context=s,this.once=G||!1}function B(o,s,G,_,ee){if(typeof G!="function")throw new TypeError("The listener must be a function");var Q=new W(G,_||o,ee),Ce=k?k+s:s;return o._events[Ce]?o._events[Ce].fn?o._events[Ce]=[o._events[Ce],Q]:o._events[Ce].push(Q):(o._events[Ce]=Q,o._eventsCount++),o}function y(o,s){--o._eventsCount==0?o._events=new i:delete o._events[s]}function t(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(k=!1)),t.prototype.eventNames=function(){var o,s,G=[];if(this._eventsCount===0)return G;for(s in o=this._events)v.call(o,s)&&G.push(k?s.slice(1):s);return Object.getOwnPropertySymbols?G.concat(Object.getOwnPropertySymbols(o)):G},t.prototype.listeners=function(o){var s=k?k+o:o,G=this._events[s];if(!G)return[];if(G.fn)return[G.fn];for(var _=0,ee=G.length,Q=new Array(ee);_<ee;_++)Q[_]=G[_].fn;return Q},t.prototype.listenerCount=function(o){var s=k?k+o:o,G=this._events[s];return G?G.fn?1:G.length:0},t.prototype.emit=function(o,s,G,_,ee,Q){var Ce=k?k+o:o;if(!this._events[Ce])return!1;var le,E,S=this._events[Ce],L=arguments.length;if(S.fn){switch(S.once&&this.removeListener(o,S.fn,void 0,!0),L){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,s),!0;case 3:return S.fn.call(S.context,s,G),!0;case 4:return S.fn.call(S.context,s,G,_),!0;case 5:return S.fn.call(S.context,s,G,_,ee),!0;case 6:return S.fn.call(S.context,s,G,_,ee,Q),!0}for(E=1,le=new Array(L-1);E<L;E++)le[E-1]=arguments[E];S.fn.apply(S.context,le)}else{var K,Y=S.length;for(E=0;E<Y;E++)switch(S[E].once&&this.removeListener(o,S[E].fn,void 0,!0),L){case 1:S[E].fn.call(S[E].context);break;case 2:S[E].fn.call(S[E].context,s);break;case 3:S[E].fn.call(S[E].context,s,G);break;case 4:S[E].fn.call(S[E].context,s,G,_);break;default:if(!le)for(K=1,le=new Array(L-1);K<L;K++)le[K-1]=arguments[K];S[E].fn.apply(S[E].context,le)}}return!0},t.prototype.on=function(o,s,G){return B(this,o,s,G,!1)},t.prototype.once=function(o,s,G){return B(this,o,s,G,!0)},t.prototype.removeListener=function(o,s,G,_){var ee=k?k+o:o;if(!this._events[ee])return this;if(!s)return y(this,ee),this;var Q=this._events[ee];if(Q.fn)Q.fn!==s||_&&!Q.once||G&&Q.context!==G||y(this,ee);else{for(var Ce=0,le=[],E=Q.length;Ce<E;Ce++)(Q[Ce].fn!==s||_&&!Q[Ce].once||G&&Q[Ce].context!==G)&&le.push(Q[Ce]);le.length?this._events[ee]=le.length===1?le[0]:le:y(this,ee)}return this},t.prototype.removeAllListeners=function(o){var s;return o?(s=k?k+o:o,this._events[s]&&y(this,s)):(this._events=new i,this._eventsCount=0),this},t.prototype.off=t.prototype.removeListener,t.prototype.addListener=t.prototype.on,t.prefixed=k,t.EventEmitter=t,V.exports=t},7832:V=>{V.exports=function(v){return(k,...i)=>(function(W,...B){return new Promise((y,t)=>{W(...B,(o,s)=>{o?t(o):y(s)})})})(k.bind(v),...i)}},1094:(V,v,k)=>{var i;(function(){var W="input is invalid type",B=typeof window=="object",y=B?window:{};y.JS_SHA3_NO_WINDOW&&(B=!1);var t=!B&&typeof self=="object";!y.JS_SHA3_NO_NODE_JS&&typeof _r.dist.process=="object"&&_r.dist.process.versions&&_r.dist.process.versions.node?y=k.g:t&&(y=self);var o=!y.JS_SHA3_NO_COMMON_JS&&V.exports,s=k.amdO,G=!y.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",_="0123456789abcdef".split(""),ee=[4,1024,262144,67108864],Q=[0,8,16,24],Ce=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],le=[224,256,384,512],E=[128,256],S=["hex","buffer","arrayBuffer","array","digest"],L={128:168,256:136};!y.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(C){return Object.prototype.toString.call(C)==="[object Array]"}),!G||!y.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(C){return typeof C=="object"&&C.buffer&&C.buffer.constructor===ArrayBuffer});for(var K=function(C,ue,We){return function(ge){return new R(C,ue,C).update(ge)[We]()}},Y=function(C,ue,We){return function(ge,Ie){return new R(C,ue,Ie).update(ge)[We]()}},ce=function(C,ue,We){return function(ge,Ie,ze,$e){return et["cshake"+C].update(ge,Ie,ze,$e)[We]()}},te=function(C,ue,We){return function(ge,Ie,ze,$e){return et["kmac"+C].update(ge,Ie,ze,$e)[We]()}},ie=function(C,ue,We,ge){for(var Ie=0;Ie<S.length;++Ie){var ze=S[Ie];C[ze]=ue(We,ge,ze)}return C},he=function(C,ue){var We=K(C,ue,"hex");return We.create=function(){return new R(C,ue,C)},We.update=function(ge){return We.create().update(ge)},ie(We,K,C,ue)},Xe=[{name:"keccak",padding:[1,256,65536,16777216],bits:le,createMethod:he},{name:"sha3",padding:[6,1536,393216,100663296],bits:le,createMethod:he},{name:"shake",padding:[31,7936,2031616,520093696],bits:E,createMethod:function(C,ue){var We=Y(C,ue,"hex");return We.create=function(ge){return new R(C,ue,ge)},We.update=function(ge,Ie){return We.create(Ie).update(ge)},ie(We,Y,C,ue)}},{name:"cshake",padding:ee,bits:E,createMethod:function(C,ue){var We=L[C],ge=ce(C,0,"hex");return ge.create=function(Ie,ze,$e){return ze||$e?new R(C,ue,Ie).bytepad([ze,$e],We):et["shake"+C].create(Ie)},ge.update=function(Ie,ze,$e,nt){return ge.create(ze,$e,nt).update(Ie)},ie(ge,ce,C,ue)}},{name:"kmac",padding:ee,bits:E,createMethod:function(C,ue){var We=L[C],ge=te(C,0,"hex");return ge.create=function(Ie,ze,$e){return new oe(C,ue,ze).bytepad(["KMAC",$e],We).bytepad([Ie],We)},ge.update=function(Ie,ze,$e,nt){return ge.create(Ie,$e,nt).update(ze)},ie(ge,te,C,ue)}}],et={},Ge=[],Ze=0;Ze<Xe.length;++Ze)for(var A=Xe[Ze],N=A.bits,D=0;D<N.length;++D){var F=A.name+"_"+N[D];if(Ge.push(F),et[F]=A.createMethod(N[D],A.padding),A.name!=="sha3"){var P=A.name+N[D];Ge.push(P),et[P]=et[F]}}function R(C,ue,We){this.blocks=[],this.s=[],this.padding=ue,this.outputBits=We,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(C<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=We>>5,this.extraBytes=(31&We)>>3;for(var ge=0;ge<50;++ge)this.s[ge]=0}function oe(C,ue,We){R.call(this,C,ue,We)}R.prototype.update=function(C){if(this.finalized)throw new Error("finalize already called");var ue,We=typeof C;if(We!=="string"){if(We!=="object")throw new Error(W);if(C===null)throw new Error(W);if(G&&C.constructor===ArrayBuffer)C=new Uint8Array(C);else if(!(Array.isArray(C)||G&&ArrayBuffer.isView(C)))throw new Error(W);ue=!0}for(var ge,Ie,ze=this.blocks,$e=this.byteCount,nt=C.length,ut=this.blockCount,ft=0,pt=this.s;ft<nt;){if(this.reset)for(this.reset=!1,ze[0]=this.block,ge=1;ge<ut+1;++ge)ze[ge]=0;if(ue)for(ge=this.start;ft<nt&&ge<$e;++ft)ze[ge>>2]|=C[ft]<<Q[3&ge++];else for(ge=this.start;ft<nt&&ge<$e;++ft)(Ie=C.charCodeAt(ft))<128?ze[ge>>2]|=Ie<<Q[3&ge++]:Ie<2048?(ze[ge>>2]|=(192|Ie>>6)<<Q[3&ge++],ze[ge>>2]|=(128|63&Ie)<<Q[3&ge++]):Ie<55296||Ie>=57344?(ze[ge>>2]|=(224|Ie>>12)<<Q[3&ge++],ze[ge>>2]|=(128|Ie>>6&63)<<Q[3&ge++],ze[ge>>2]|=(128|63&Ie)<<Q[3&ge++]):(Ie=65536+((1023&Ie)<<10|1023&C.charCodeAt(++ft)),ze[ge>>2]|=(240|Ie>>18)<<Q[3&ge++],ze[ge>>2]|=(128|Ie>>12&63)<<Q[3&ge++],ze[ge>>2]|=(128|Ie>>6&63)<<Q[3&ge++],ze[ge>>2]|=(128|63&Ie)<<Q[3&ge++]);if(this.lastByteIndex=ge,ge>=$e){for(this.start=ge-$e,this.block=ze[ut],ge=0;ge<ut;++ge)pt[ge]^=ze[ge];Te(pt),this.reset=!0}else this.start=ge}return this},R.prototype.encode=function(C,ue){var We=255&C,ge=1,Ie=[We];for(We=255&(C>>=8);We>0;)Ie.unshift(We),We=255&(C>>=8),++ge;return ue?Ie.push(ge):Ie.unshift(ge),this.update(Ie),Ie.length},R.prototype.encodeString=function(C){var ue,We=typeof C;if(We!=="string"){if(We!=="object")throw new Error(W);if(C===null)throw new Error(W);if(G&&C.constructor===ArrayBuffer)C=new Uint8Array(C);else if(!(Array.isArray(C)||G&&ArrayBuffer.isView(C)))throw new Error(W);ue=!0}var ge=0,Ie=C.length;if(ue)ge=Ie;else for(var ze=0;ze<C.length;++ze){var $e=C.charCodeAt(ze);$e<128?ge+=1:$e<2048?ge+=2:$e<55296||$e>=57344?ge+=3:($e=65536+((1023&$e)<<10|1023&C.charCodeAt(++ze)),ge+=4)}return ge+=this.encode(8*ge),this.update(C),ge},R.prototype.bytepad=function(C,ue){for(var We=this.encode(ue),ge=0;ge<C.length;++ge)We+=this.encodeString(C[ge]);var Ie=ue-We%ue,ze=[];return ze.length=Ie,this.update(ze),this},R.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var C=this.blocks,ue=this.lastByteIndex,We=this.blockCount,ge=this.s;if(C[ue>>2]|=this.padding[3&ue],this.lastByteIndex===this.byteCount)for(C[0]=C[We],ue=1;ue<We+1;++ue)C[ue]=0;for(C[We-1]|=2147483648,ue=0;ue<We;++ue)ge[ue]^=C[ue];Te(ge)}},R.prototype.toString=R.prototype.hex=function(){this.finalize();for(var C,ue=this.blockCount,We=this.s,ge=this.outputBlocks,Ie=this.extraBytes,ze=0,$e=0,nt="";$e<ge;){for(ze=0;ze<ue&&$e<ge;++ze,++$e)C=We[ze],nt+=_[C>>4&15]+_[15&C]+_[C>>12&15]+_[C>>8&15]+_[C>>20&15]+_[C>>16&15]+_[C>>28&15]+_[C>>24&15];$e%ue==0&&(Te(We),ze=0)}return Ie&&(C=We[ze],nt+=_[C>>4&15]+_[15&C],Ie>1&&(nt+=_[C>>12&15]+_[C>>8&15]),Ie>2&&(nt+=_[C>>20&15]+_[C>>16&15])),nt},R.prototype.arrayBuffer=function(){this.finalize();var C,ue=this.blockCount,We=this.s,ge=this.outputBlocks,Ie=this.extraBytes,ze=0,$e=0,nt=this.outputBits>>3;C=Ie?new ArrayBuffer(ge+1<<2):new ArrayBuffer(nt);for(var ut=new Uint32Array(C);$e<ge;){for(ze=0;ze<ue&&$e<ge;++ze,++$e)ut[$e]=We[ze];$e%ue==0&&Te(We)}return Ie&&(ut[ze]=We[ze],C=C.slice(0,nt)),C},R.prototype.buffer=R.prototype.arrayBuffer,R.prototype.digest=R.prototype.array=function(){this.finalize();for(var C,ue,We=this.blockCount,ge=this.s,Ie=this.outputBlocks,ze=this.extraBytes,$e=0,nt=0,ut=[];nt<Ie;){for($e=0;$e<We&&nt<Ie;++$e,++nt)C=nt<<2,ue=ge[$e],ut[C]=255&ue,ut[C+1]=ue>>8&255,ut[C+2]=ue>>16&255,ut[C+3]=ue>>24&255;nt%We==0&&Te(ge)}return ze&&(C=nt<<2,ue=ge[$e],ut[C]=255&ue,ze>1&&(ut[C+1]=ue>>8&255),ze>2&&(ut[C+2]=ue>>16&255)),ut},oe.prototype=new R,oe.prototype.finalize=function(){return this.encode(this.outputBits,!0),R.prototype.finalize.call(this)};var Te=function(C){var ue,We,ge,Ie,ze,$e,nt,ut,ft,pt,Lt,$t,It,br,ct,Ht,kr,Ft,Kt,Pr,qt,He,De,Yt,Zt,se,zt,Ct,xt,or,tr,it,er,pe,ke,Ue,ot,Dt,Wt,vt,Or,Rt,Ut,Wr,bt,_t,Br,Vt,lt,St,Tt,kt,fr,Gt,tt,yt,gr,ar,Tr,yr,ne,an,ir;for(ge=0;ge<48;ge+=2)Ie=C[0]^C[10]^C[20]^C[30]^C[40],ze=C[1]^C[11]^C[21]^C[31]^C[41],$e=C[2]^C[12]^C[22]^C[32]^C[42],nt=C[3]^C[13]^C[23]^C[33]^C[43],ut=C[4]^C[14]^C[24]^C[34]^C[44],ft=C[5]^C[15]^C[25]^C[35]^C[45],pt=C[6]^C[16]^C[26]^C[36]^C[46],Lt=C[7]^C[17]^C[27]^C[37]^C[47],ue=($t=C[8]^C[18]^C[28]^C[38]^C[48])^($e<<1|nt>>>31),We=(It=C[9]^C[19]^C[29]^C[39]^C[49])^(nt<<1|$e>>>31),C[0]^=ue,C[1]^=We,C[10]^=ue,C[11]^=We,C[20]^=ue,C[21]^=We,C[30]^=ue,C[31]^=We,C[40]^=ue,C[41]^=We,ue=Ie^(ut<<1|ft>>>31),We=ze^(ft<<1|ut>>>31),C[2]^=ue,C[3]^=We,C[12]^=ue,C[13]^=We,C[22]^=ue,C[23]^=We,C[32]^=ue,C[33]^=We,C[42]^=ue,C[43]^=We,ue=$e^(pt<<1|Lt>>>31),We=nt^(Lt<<1|pt>>>31),C[4]^=ue,C[5]^=We,C[14]^=ue,C[15]^=We,C[24]^=ue,C[25]^=We,C[34]^=ue,C[35]^=We,C[44]^=ue,C[45]^=We,ue=ut^($t<<1|It>>>31),We=ft^(It<<1|$t>>>31),C[6]^=ue,C[7]^=We,C[16]^=ue,C[17]^=We,C[26]^=ue,C[27]^=We,C[36]^=ue,C[37]^=We,C[46]^=ue,C[47]^=We,ue=pt^(Ie<<1|ze>>>31),We=Lt^(ze<<1|Ie>>>31),C[8]^=ue,C[9]^=We,C[18]^=ue,C[19]^=We,C[28]^=ue,C[29]^=We,C[38]^=ue,C[39]^=We,C[48]^=ue,C[49]^=We,br=C[0],ct=C[1],_t=C[11]<<4|C[10]>>>28,Br=C[10]<<4|C[11]>>>28,Ct=C[20]<<3|C[21]>>>29,xt=C[21]<<3|C[20]>>>29,yr=C[31]<<9|C[30]>>>23,ne=C[30]<<9|C[31]>>>23,Rt=C[40]<<18|C[41]>>>14,Ut=C[41]<<18|C[40]>>>14,pe=C[2]<<1|C[3]>>>31,ke=C[3]<<1|C[2]>>>31,Ht=C[13]<<12|C[12]>>>20,kr=C[12]<<12|C[13]>>>20,Vt=C[22]<<10|C[23]>>>22,lt=C[23]<<10|C[22]>>>22,or=C[33]<<13|C[32]>>>19,tr=C[32]<<13|C[33]>>>19,an=C[42]<<2|C[43]>>>30,ir=C[43]<<2|C[42]>>>30,Gt=C[5]<<30|C[4]>>>2,tt=C[4]<<30|C[5]>>>2,Ue=C[14]<<6|C[15]>>>26,ot=C[15]<<6|C[14]>>>26,Ft=C[25]<<11|C[24]>>>21,Kt=C[24]<<11|C[25]>>>21,St=C[34]<<15|C[35]>>>17,Tt=C[35]<<15|C[34]>>>17,it=C[45]<<29|C[44]>>>3,er=C[44]<<29|C[45]>>>3,Yt=C[6]<<28|C[7]>>>4,Zt=C[7]<<28|C[6]>>>4,yt=C[17]<<23|C[16]>>>9,gr=C[16]<<23|C[17]>>>9,Dt=C[26]<<25|C[27]>>>7,Wt=C[27]<<25|C[26]>>>7,Pr=C[36]<<21|C[37]>>>11,qt=C[37]<<21|C[36]>>>11,kt=C[47]<<24|C[46]>>>8,fr=C[46]<<24|C[47]>>>8,Wr=C[8]<<27|C[9]>>>5,bt=C[9]<<27|C[8]>>>5,se=C[18]<<20|C[19]>>>12,zt=C[19]<<20|C[18]>>>12,ar=C[29]<<7|C[28]>>>25,Tr=C[28]<<7|C[29]>>>25,vt=C[38]<<8|C[39]>>>24,Or=C[39]<<8|C[38]>>>24,He=C[48]<<14|C[49]>>>18,De=C[49]<<14|C[48]>>>18,C[0]=br^~Ht&Ft,C[1]=ct^~kr&Kt,C[10]=Yt^~se&Ct,C[11]=Zt^~zt&xt,C[20]=pe^~Ue&Dt,C[21]=ke^~ot&Wt,C[30]=Wr^~_t&Vt,C[31]=bt^~Br<,C[40]=Gt^~yt&ar,C[41]=tt^~gr&Tr,C[2]=Ht^~Ft&Pr,C[3]=kr^~Kt&qt,C[12]=se^~Ct&or,C[13]=zt^~xt&tr,C[22]=Ue^~Dt&vt,C[23]=ot^~Wt&Or,C[32]=_t^~Vt&St,C[33]=Br^~lt&Tt,C[42]=yt^~ar&yr,C[43]=gr^~Tr&ne,C[4]=Ft^~Pr&He,C[5]=Kt^~qt&De,C[14]=Ct^~or&it,C[15]=xt^~tr&er,C[24]=Dt^~vt&Rt,C[25]=Wt^~Or&Ut,C[34]=Vt^~St&kt,C[35]=lt^~Tt&fr,C[44]=ar^~yr&an,C[45]=Tr^~ne&ir,C[6]=Pr^~He&br,C[7]=qt^~De&ct,C[16]=or^~it&Yt,C[17]=tr^~er&Zt,C[26]=vt^~Rt&pe,C[27]=Or^~Ut&ke,C[36]=St^~kt&Wr,C[37]=Tt^~fr&bt,C[46]=yr^~an&Gt,C[47]=ne^~ir&tt,C[8]=He^~br&Ht,C[9]=De^~ct&kr,C[18]=it^~Yt&se,C[19]=er^~Zt&zt,C[28]=Rt^~pe&Ue,C[29]=Ut^~ke&ot,C[38]=kt^~Wr&_t,C[39]=fr^~bt&Br,C[48]=an^~Gt&yt,C[49]=ir^~tt&gr,C[0]^=Ce[ge],C[1]^=Ce[ge+1]};if(o)V.exports=et;else{for(Ze=0;Ze<Ge.length;++Ze)y[Ge[Ze]]=et[Ge[Ze]];s&&((i=(function(){return et}).call(v,k,v,V))===void 0||(V.exports=i))}})()},9335:V=>{function v(i,W){return Object.prototype.hasOwnProperty.call(i,W)}V.exports=function(i,W,B,y){W=W||"&",B=B||"=";var t={};if(typeof i!="string"||i.length===0)return t;var o=/\+/g;i=i.split(W);var s=1e3;y&&typeof y.maxKeys=="number"&&(s=y.maxKeys);var G=i.length;s>0&&G>s&&(G=s);for(var _=0;_<G;++_){var ee,Q,Ce,le,E=i[_].replace(o,"%20"),S=E.indexOf(B);S>=0?(ee=E.substr(0,S),Q=E.substr(S+1)):(ee=E,Q=""),Ce=decodeURIComponent(ee),le=decodeURIComponent(Q),v(t,Ce)?k(t[Ce])?t[Ce].push(le):t[Ce]=[t[Ce],le]:t[Ce]=le}return t};var k=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"}},8795:V=>{var v=function(B){switch(typeof B){case"string":return B;case"boolean":return B?"true":"false";case"number":return isFinite(B)?B:"";default:return""}};V.exports=function(B,y,t,o){return y=y||"&",t=t||"=",B===null&&(B=void 0),typeof B=="object"?i(W(B),function(s){var G=encodeURIComponent(v(s))+t;return k(B[s])?i(B[s],function(_){return G+encodeURIComponent(v(_))}).join(y):G+encodeURIComponent(v(B[s]))}).join(y):o?encodeURIComponent(v(o))+t+encodeURIComponent(v(B)):""};var k=Array.isArray||function(B){return Object.prototype.toString.call(B)==="[object Array]"};function i(B,y){if(B.map)return B.map(y);for(var t=[],o=0;o<B.length;o++)t.push(y(B[o],o));return t}var W=Object.keys||function(B){var y=[];for(var t in B)Object.prototype.hasOwnProperty.call(B,t)&&y.push(t);return y}},7735:(V,v,k)=>{v.decode=v.parse=k(9335),v.encode=v.stringify=k(8795)},6625:(V,v)=>{var k;v=V.exports=ct,k=typeof _r.dist.process=="object"&&_r.dist.process.env&&_r.dist.process.env.NODE_DEBUG&&/\bsemver\b/i.test(_r.dist.process.env.NODE_DEBUG)?function(){var pe=Array.prototype.slice.call(arguments,0);pe.unshift("SEMVER"),console.log.apply(console,pe)}:function(){},v.SEMVER_SPEC_VERSION="2.0.0";var i=256,W=Number.MAX_SAFE_INTEGER||9007199254740991,B=i-6,y=v.re=[],t=v.safeRe=[],o=v.src=[],s=0,G="[a-zA-Z0-9-]",_=[["\\s",1],["\\d",i],[G,B]];function ee(pe){for(var ke=0;ke<_.length;ke++){var Ue=_[ke][0],ot=_[ke][1];pe=pe.split(Ue+"*").join(Ue+"{0,"+ot+"}").split(Ue+"+").join(Ue+"{1,"+ot+"}")}return pe}var Q=s++;o[Q]="0|[1-9]\\d*";var Ce=s++;o[Ce]="\\d+";var le=s++;o[le]="\\d*[a-zA-Z-]"+G+"*";var E=s++;o[E]="("+o[Q]+")\\.("+o[Q]+")\\.("+o[Q]+")";var S=s++;o[S]="("+o[Ce]+")\\.("+o[Ce]+")\\.("+o[Ce]+")";var L=s++;o[L]="(?:"+o[Q]+"|"+o[le]+")";var K=s++;o[K]="(?:"+o[Ce]+"|"+o[le]+")";var Y=s++;o[Y]="(?:-("+o[L]+"(?:\\."+o[L]+")*))";var ce=s++;o[ce]="(?:-?("+o[K]+"(?:\\."+o[K]+")*))";var te=s++;o[te]=G+"+";var ie=s++;o[ie]="(?:\\+("+o[te]+"(?:\\."+o[te]+")*))";var he=s++,Xe="v?"+o[E]+o[Y]+"?"+o[ie]+"?";o[he]="^"+Xe+"$";var et="[v=\\s]*"+o[S]+o[ce]+"?"+o[ie]+"?",Ge=s++;o[Ge]="^"+et+"$";var Ze=s++;o[Ze]="((?:<|>)?=?)";var A=s++;o[A]=o[Ce]+"|x|X|\\*";var N=s++;o[N]=o[Q]+"|x|X|\\*";var D=s++;o[D]="[v=\\s]*("+o[N]+")(?:\\.("+o[N]+")(?:\\.("+o[N]+")(?:"+o[Y]+")?"+o[ie]+"?)?)?";var F=s++;o[F]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[ce]+")?"+o[ie]+"?)?)?";var P=s++;o[P]="^"+o[Ze]+"\\s*"+o[D]+"$";var R=s++;o[R]="^"+o[Ze]+"\\s*"+o[F]+"$";var oe=s++;o[oe]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var Te=s++;o[Te]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[Te]+"\\s+",y[C]=new RegExp(o[C],"g"),t[C]=new RegExp(ee(o[C]),"g");var ue=s++;o[ue]="^"+o[Te]+o[D]+"$";var We=s++;o[We]="^"+o[Te]+o[F]+"$";var ge=s++;o[ge]="(?:\\^)";var Ie=s++;o[Ie]="(\\s*)"+o[ge]+"\\s+",y[Ie]=new RegExp(o[Ie],"g"),t[Ie]=new RegExp(ee(o[Ie]),"g");var ze=s++;o[ze]="^"+o[ge]+o[D]+"$";var $e=s++;o[$e]="^"+o[ge]+o[F]+"$";var nt=s++;o[nt]="^"+o[Ze]+"\\s*("+et+")$|^$";var ut=s++;o[ut]="^"+o[Ze]+"\\s*("+Xe+")$|^$";var ft=s++;o[ft]="(\\s*)"+o[Ze]+"\\s*("+et+"|"+o[D]+")",y[ft]=new RegExp(o[ft],"g"),t[ft]=new RegExp(ee(o[ft]),"g");var pt=s++;o[pt]="^\\s*("+o[D]+")\\s+-\\s+("+o[D]+")\\s*$";var Lt=s++;o[Lt]="^\\s*("+o[F]+")\\s+-\\s+("+o[F]+")\\s*$";var $t=s++;o[$t]="(<|>)?=?\\s*\\*";for(var It=0;It<35;It++)k(It,o[It]),y[It]||(y[It]=new RegExp(o[It]),t[It]=new RegExp(ee(o[It])));function br(pe,ke){if(ke&&typeof ke=="object"||(ke={loose:!!ke,includePrerelease:!1}),pe instanceof ct)return pe;if(typeof pe!="string"||pe.length>i||!(ke.loose?t[Ge]:t[he]).test(pe))return null;try{return new ct(pe,ke)}catch{return null}}function ct(pe,ke){if(ke&&typeof ke=="object"||(ke={loose:!!ke,includePrerelease:!1}),pe instanceof ct){if(pe.loose===ke.loose)return pe;pe=pe.version}else if(typeof pe!="string")throw new TypeError("Invalid Version: "+pe);if(pe.length>i)throw new TypeError("version is longer than "+i+" characters");if(!(this instanceof ct))return new ct(pe,ke);k("SemVer",pe,ke),this.options=ke,this.loose=!!ke.loose;var Ue=pe.trim().match(ke.loose?t[Ge]:t[he]);if(!Ue)throw new TypeError("Invalid Version: "+pe);if(this.raw=pe,this.major=+Ue[1],this.minor=+Ue[2],this.patch=+Ue[3],this.major>W||this.major<0)throw new TypeError("Invalid major version");if(this.minor>W||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>W||this.patch<0)throw new TypeError("Invalid patch version");Ue[4]?this.prerelease=Ue[4].split(".").map(function(ot){if(/^[0-9]+$/.test(ot)){var Dt=+ot;if(Dt>=0&&Dt<W)return Dt}return ot}):this.prerelease=[],this.build=Ue[5]?Ue[5].split("."):[],this.format()}v.parse=br,v.valid=function(pe,ke){var Ue=br(pe,ke);return Ue?Ue.version:null},v.clean=function(pe,ke){var Ue=br(pe.trim().replace(/^[=v]+/,""),ke);return Ue?Ue.version:null},v.SemVer=ct,ct.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},ct.prototype.toString=function(){return this.version},ct.prototype.compare=function(pe){return k("SemVer.compare",this.version,this.options,pe),pe instanceof ct||(pe=new ct(pe,this.options)),this.compareMain(pe)||this.comparePre(pe)},ct.prototype.compareMain=function(pe){return pe instanceof ct||(pe=new ct(pe,this.options)),kr(this.major,pe.major)||kr(this.minor,pe.minor)||kr(this.patch,pe.patch)},ct.prototype.comparePre=function(pe){if(pe instanceof ct||(pe=new ct(pe,this.options)),this.prerelease.length&&!pe.prerelease.length)return-1;if(!this.prerelease.length&&pe.prerelease.length)return 1;if(!this.prerelease.length&&!pe.prerelease.length)return 0;var ke=0;do{var Ue=this.prerelease[ke],ot=pe.prerelease[ke];if(k("prerelease compare",ke,Ue,ot),Ue===void 0&&ot===void 0)return 0;if(ot===void 0)return 1;if(Ue===void 0)return-1;if(Ue!==ot)return kr(Ue,ot)}while(++ke)},ct.prototype.inc=function(pe,ke){switch(pe){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",ke);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",ke);break;case"prepatch":this.prerelease.length=0,this.inc("patch",ke),this.inc("pre",ke);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",ke),this.inc("pre",ke);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var Ue=this.prerelease.length;--Ue>=0;)typeof this.prerelease[Ue]=="number"&&(this.prerelease[Ue]++,Ue=-2);Ue===-1&&this.prerelease.push(0)}ke&&(this.prerelease[0]===ke?isNaN(this.prerelease[1])&&(this.prerelease=[ke,0]):this.prerelease=[ke,0]);break;default:throw new Error("invalid increment argument: "+pe)}return this.format(),this.raw=this.version,this},v.inc=function(pe,ke,Ue,ot){typeof Ue=="string"&&(ot=Ue,Ue=void 0);try{return new ct(pe,Ue).inc(ke,ot).version}catch{return null}},v.diff=function(pe,ke){if(qt(pe,ke))return null;var Ue=br(pe),ot=br(ke),Dt="";if(Ue.prerelease.length||ot.prerelease.length){Dt="pre";var Wt="prerelease"}for(var vt in Ue)if((vt==="major"||vt==="minor"||vt==="patch")&&Ue[vt]!==ot[vt])return Dt+vt;return Wt},v.compareIdentifiers=kr;var Ht=/^[0-9]+$/;function kr(pe,ke){var Ue=Ht.test(pe),ot=Ht.test(ke);return Ue&&ot&&(pe=+pe,ke=+ke),pe===ke?0:Ue&&!ot?-1:ot&&!Ue?1:pe<ke?-1:1}function Ft(pe,ke,Ue){return new ct(pe,Ue).compare(new ct(ke,Ue))}function Kt(pe,ke,Ue){return Ft(pe,ke,Ue)>0}function Pr(pe,ke,Ue){return Ft(pe,ke,Ue)<0}function qt(pe,ke,Ue){return Ft(pe,ke,Ue)===0}function He(pe,ke,Ue){return Ft(pe,ke,Ue)!==0}function De(pe,ke,Ue){return Ft(pe,ke,Ue)>=0}function Yt(pe,ke,Ue){return Ft(pe,ke,Ue)<=0}function Zt(pe,ke,Ue,ot){switch(ke){case"===":return typeof pe=="object"&&(pe=pe.version),typeof Ue=="object"&&(Ue=Ue.version),pe===Ue;case"!==":return typeof pe=="object"&&(pe=pe.version),typeof Ue=="object"&&(Ue=Ue.version),pe!==Ue;case"":case"=":case"==":return qt(pe,Ue,ot);case"!=":return He(pe,Ue,ot);case">":return Kt(pe,Ue,ot);case">=":return De(pe,Ue,ot);case"<":return Pr(pe,Ue,ot);case"<=":return Yt(pe,Ue,ot);default:throw new TypeError("Invalid operator: "+ke)}}function se(pe,ke){if(ke&&typeof ke=="object"||(ke={loose:!!ke,includePrerelease:!1}),pe instanceof se){if(pe.loose===!!ke.loose)return pe;pe=pe.value}if(!(this instanceof se))return new se(pe,ke);pe=pe.trim().split(/\s+/).join(" "),k("comparator",pe,ke),this.options=ke,this.loose=!!ke.loose,this.parse(pe),this.semver===zt?this.value="":this.value=this.operator+this.semver.version,k("comp",this)}v.rcompareIdentifiers=function(pe,ke){return kr(ke,pe)},v.major=function(pe,ke){return new ct(pe,ke).major},v.minor=function(pe,ke){return new ct(pe,ke).minor},v.patch=function(pe,ke){return new ct(pe,ke).patch},v.compare=Ft,v.compareLoose=function(pe,ke){return Ft(pe,ke,!0)},v.rcompare=function(pe,ke,Ue){return Ft(ke,pe,Ue)},v.sort=function(pe,ke){return pe.sort(function(Ue,ot){return v.compare(Ue,ot,ke)})},v.rsort=function(pe,ke){return pe.sort(function(Ue,ot){return v.rcompare(Ue,ot,ke)})},v.gt=Kt,v.lt=Pr,v.eq=qt,v.neq=He,v.gte=De,v.lte=Yt,v.cmp=Zt,v.Comparator=se;var zt={};function Ct(pe,ke){if(ke&&typeof ke=="object"||(ke={loose:!!ke,includePrerelease:!1}),pe instanceof Ct)return pe.loose===!!ke.loose&&pe.includePrerelease===!!ke.includePrerelease?pe:new Ct(pe.raw,ke);if(pe instanceof se)return new Ct(pe.value,ke);if(!(this instanceof Ct))return new Ct(pe,ke);if(this.options=ke,this.loose=!!ke.loose,this.includePrerelease=!!ke.includePrerelease,this.raw=pe.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(Ue){return this.parseRange(Ue.trim())},this).filter(function(Ue){return Ue.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function xt(pe){return!pe||pe.toLowerCase()==="x"||pe==="*"}function or(pe,ke,Ue,ot,Dt,Wt,vt,Or,Rt,Ut,Wr,bt,_t){return((ke=xt(Ue)?"":xt(ot)?">="+Ue+".0.0":xt(Dt)?">="+Ue+"."+ot+".0":">="+ke)+" "+(Or=xt(Rt)?"":xt(Ut)?"<"+(+Rt+1)+".0.0":xt(Wr)?"<"+Rt+"."+(+Ut+1)+".0":bt?"<="+Rt+"."+Ut+"."+Wr+"-"+bt:"<="+Or)).trim()}function tr(pe,ke,Ue){for(var ot=0;ot<pe.length;ot++)if(!pe[ot].test(ke))return!1;if(ke.prerelease.length&&!Ue.includePrerelease){for(ot=0;ot<pe.length;ot++)if(k(pe[ot].semver),pe[ot].semver!==zt&&pe[ot].semver.prerelease.length>0){var Dt=pe[ot].semver;if(Dt.major===ke.major&&Dt.minor===ke.minor&&Dt.patch===ke.patch)return!0}return!1}return!0}function it(pe,ke,Ue){try{ke=new Ct(ke,Ue)}catch{return!1}return ke.test(pe)}function er(pe,ke,Ue,ot){var Dt,Wt,vt,Or,Rt;switch(pe=new ct(pe,ot),ke=new Ct(ke,ot),Ue){case">":Dt=Kt,Wt=Yt,vt=Pr,Or=">",Rt=">=";break;case"<":Dt=Pr,Wt=De,vt=Kt,Or="<",Rt="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(it(pe,ke,ot))return!1;for(var Ut=0;Ut<ke.set.length;++Ut){var Wr=ke.set[Ut],bt=null,_t=null;if(Wr.forEach(function(Br){Br.semver===zt&&(Br=new se(">=0.0.0")),bt=bt||Br,_t=_t||Br,Dt(Br.semver,bt.semver,ot)?bt=Br:vt(Br.semver,_t.semver,ot)&&(_t=Br)}),bt.operator===Or||bt.operator===Rt||(!_t.operator||_t.operator===Or)&&Wt(pe,_t.semver)||_t.operator===Rt&&vt(pe,_t.semver))return!1}return!0}se.prototype.parse=function(pe){var ke=this.options.loose?t[nt]:t[ut],Ue=pe.match(ke);if(!Ue)throw new TypeError("Invalid comparator: "+pe);this.operator=Ue[1],this.operator==="="&&(this.operator=""),Ue[2]?this.semver=new ct(Ue[2],this.options.loose):this.semver=zt},se.prototype.toString=function(){return this.value},se.prototype.test=function(pe){return k("Comparator.test",pe,this.options.loose),this.semver===zt||(typeof pe=="string"&&(pe=new ct(pe,this.options)),Zt(pe,this.operator,this.semver,this.options))},se.prototype.intersects=function(pe,ke){if(!(pe instanceof se))throw new TypeError("a Comparator is required");var Ue;if(ke&&typeof ke=="object"||(ke={loose:!!ke,includePrerelease:!1}),this.operator==="")return Ue=new Ct(pe.value,ke),it(this.value,Ue,ke);if(pe.operator==="")return Ue=new Ct(this.value,ke),it(pe.semver,Ue,ke);var ot=!(this.operator!==">="&&this.operator!==">"||pe.operator!==">="&&pe.operator!==">"),Dt=!(this.operator!=="<="&&this.operator!=="<"||pe.operator!=="<="&&pe.operator!=="<"),Wt=this.semver.version===pe.semver.version,vt=!(this.operator!==">="&&this.operator!=="<="||pe.operator!==">="&&pe.operator!=="<="),Or=Zt(this.semver,"<",pe.semver,ke)&&(this.operator===">="||this.operator===">")&&(pe.operator==="<="||pe.operator==="<"),Rt=Zt(this.semver,">",pe.semver,ke)&&(this.operator==="<="||this.operator==="<")&&(pe.operator===">="||pe.operator===">");return ot||Dt||Wt&&vt||Or||Rt},v.Range=Ct,Ct.prototype.format=function(){return this.range=this.set.map(function(pe){return pe.join(" ").trim()}).join("||").trim(),this.range},Ct.prototype.toString=function(){return this.range},Ct.prototype.parseRange=function(pe){var ke=this.options.loose,Ue=ke?t[Lt]:t[pt];pe=pe.replace(Ue,or),k("hyphen replace",pe),pe=pe.replace(t[ft],"$1$2$3"),k("comparator trim",pe,t[ft]),pe=(pe=pe.replace(t[C],"$1~")).replace(t[Ie],"$1^");var ot=ke?t[nt]:t[ut],Dt=pe.split(" ").map(function(Wt){return(function(vt,Or){return k("comp",vt,Or),vt=(function(Rt,Ut){return Rt.trim().split(/\s+/).map(function(Wr){return(function(bt,_t){k("caret",bt,_t);var Br=_t.loose?t[$e]:t[ze];return bt.replace(Br,function(Vt,lt,St,Tt,kt){var fr;return k("caret",bt,Vt,lt,St,Tt,kt),xt(lt)?fr="":xt(St)?fr=">="+lt+".0.0 <"+(+lt+1)+".0.0":xt(Tt)?fr=lt==="0"?">="+lt+"."+St+".0 <"+lt+"."+(+St+1)+".0":">="+lt+"."+St+".0 <"+(+lt+1)+".0.0":kt?(k("replaceCaret pr",kt),fr=lt==="0"?St==="0"?">="+lt+"."+St+"."+Tt+"-"+kt+" <"+lt+"."+St+"."+(+Tt+1):">="+lt+"."+St+"."+Tt+"-"+kt+" <"+lt+"."+(+St+1)+".0":">="+lt+"."+St+"."+Tt+"-"+kt+" <"+(+lt+1)+".0.0"):(k("no pr"),fr=lt==="0"?St==="0"?">="+lt+"."+St+"."+Tt+" <"+lt+"."+St+"."+(+Tt+1):">="+lt+"."+St+"."+Tt+" <"+lt+"."+(+St+1)+".0":">="+lt+"."+St+"."+Tt+" <"+(+lt+1)+".0.0"),k("caret return",fr),fr})})(Wr,Ut)}).join(" ")})(vt,Or),k("caret",vt),vt=(function(Rt,Ut){return Rt.trim().split(/\s+/).map(function(Wr){return(function(bt,_t){var Br=_t.loose?t[We]:t[ue];return bt.replace(Br,function(Vt,lt,St,Tt,kt){var fr;return k("tilde",bt,Vt,lt,St,Tt,kt),xt(lt)?fr="":xt(St)?fr=">="+lt+".0.0 <"+(+lt+1)+".0.0":xt(Tt)?fr=">="+lt+"."+St+".0 <"+lt+"."+(+St+1)+".0":kt?(k("replaceTilde pr",kt),fr=">="+lt+"."+St+"."+Tt+"-"+kt+" <"+lt+"."+(+St+1)+".0"):fr=">="+lt+"."+St+"."+Tt+" <"+lt+"."+(+St+1)+".0",k("tilde return",fr),fr})})(Wr,Ut)}).join(" ")})(vt,Or),k("tildes",vt),vt=(function(Rt,Ut){return k("replaceXRanges",Rt,Ut),Rt.split(/\s+/).map(function(Wr){return(function(bt,_t){bt=bt.trim();var Br=_t.loose?t[R]:t[P];return bt.replace(Br,function(Vt,lt,St,Tt,kt,fr){k("xRange",bt,Vt,lt,St,Tt,kt,fr);var Gt=xt(St),tt=Gt||xt(Tt),yt=tt||xt(kt);return lt==="="&&yt&&(lt=""),Gt?Vt=lt===">"||lt==="<"?"<0.0.0":"*":lt&&yt?(tt&&(Tt=0),kt=0,lt===">"?(lt=">=",tt?(St=+St+1,Tt=0,kt=0):(Tt=+Tt+1,kt=0)):lt==="<="&&(lt="<",tt?St=+St+1:Tt=+Tt+1),Vt=lt+St+"."+Tt+"."+kt):tt?Vt=">="+St+".0.0 <"+(+St+1)+".0.0":yt&&(Vt=">="+St+"."+Tt+".0 <"+St+"."+(+Tt+1)+".0"),k("xRange return",Vt),Vt})})(Wr,Ut)}).join(" ")})(vt,Or),k("xrange",vt),vt=(function(Rt,Ut){return k("replaceStars",Rt,Ut),Rt.trim().replace(t[$t],"")})(vt,Or),k("stars",vt),vt})(Wt,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(Dt=Dt.filter(function(Wt){return!!Wt.match(ot)})),Dt.map(function(Wt){return new se(Wt,this.options)},this)},Ct.prototype.intersects=function(pe,ke){if(!(pe instanceof Ct))throw new TypeError("a Range is required");return this.set.some(function(Ue){return Ue.every(function(ot){return pe.set.some(function(Dt){return Dt.every(function(Wt){return ot.intersects(Wt,ke)})})})})},v.toComparators=function(pe,ke){return new Ct(pe,ke).set.map(function(Ue){return Ue.map(function(ot){return ot.value}).join(" ").trim().split(" ")})},Ct.prototype.test=function(pe){if(!pe)return!1;typeof pe=="string"&&(pe=new ct(pe,this.options));for(var ke=0;ke<this.set.length;ke++)if(tr(this.set[ke],pe,this.options))return!0;return!1},v.satisfies=it,v.maxSatisfying=function(pe,ke,Ue){var ot=null,Dt=null;try{var Wt=new Ct(ke,Ue)}catch{return null}return pe.forEach(function(vt){Wt.test(vt)&&(ot&&Dt.compare(vt)!==-1||(Dt=new ct(ot=vt,Ue)))}),ot},v.minSatisfying=function(pe,ke,Ue){var ot=null,Dt=null;try{var Wt=new Ct(ke,Ue)}catch{return null}return pe.forEach(function(vt){Wt.test(vt)&&(ot&&Dt.compare(vt)!==1||(Dt=new ct(ot=vt,Ue)))}),ot},v.minVersion=function(pe,ke){pe=new Ct(pe,ke);var Ue=new ct("0.0.0");if(pe.test(Ue)||(Ue=new ct("0.0.0-0"),pe.test(Ue)))return Ue;Ue=null;for(var ot=0;ot<pe.set.length;++ot)pe.set[ot].forEach(function(Dt){var Wt=new ct(Dt.semver.version);switch(Dt.operator){case">":Wt.prerelease.length===0?Wt.patch++:Wt.prerelease.push(0),Wt.raw=Wt.format();case"":case">=":Ue&&!Kt(Ue,Wt)||(Ue=Wt);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+Dt.operator)}});return Ue&&pe.test(Ue)?Ue:null},v.validRange=function(pe,ke){try{return new Ct(pe,ke).range||"*"}catch{return null}},v.ltr=function(pe,ke,Ue){return er(pe,ke,"<",Ue)},v.gtr=function(pe,ke,Ue){return er(pe,ke,">",Ue)},v.outside=er,v.prerelease=function(pe,ke){var Ue=br(pe,ke);return Ue&&Ue.prerelease.length?Ue.prerelease:null},v.intersects=function(pe,ke,Ue){return pe=new Ct(pe,Ue),ke=new Ct(ke,Ue),pe.intersects(ke)},v.coerce=function(pe){if(pe instanceof ct)return pe;if(typeof pe!="string")return null;var ke=pe.match(t[oe]);return ke==null?null:br(ke[1]+"."+(ke[2]||"0")+"."+(ke[3]||"0"))}},8966:(V,v,k)=>{function i(dr){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i(dr)}Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var W=Je(k(8469)),B=Je(k(7536)),y=Je(k(1359)),t=Je(k(557)),o=Je(k(2315)),s=Je(k(9466)),G=Je(k(661)),_=Je(k(3868)),ee=Je(k(2492)),Q=Je(k(8999)),Ce=Je(k(1028)),le=Je(k(7795)),E=Je(k(221)),S=Je(k(2549)),L=Je(k(3494)),K=Je(k(9493)),Y=Je(k(7380)),ce=sr(k(9234)),te=sr(k(4583)),ie=Je(k(4986)),he=Je(k(1513)),Xe=Je(k(4595)),et=Je(k(3928)),Ge=Je(k(7245)),Ze=Je(k(5566)),A=Je(k(4094)),N=Je(k(7146)),D=Je(k(2941)),F=Je(k(9019)),P=Je(k(3590)),R=Je(k(6826)),oe=Je(k(2828)),Te=Je(k(937)),C=sr(k(9146)),ue=Je(k(5218)),We=Je(k(7117)),ge=Je(k(6090)),Ie=Je(k(8335)),ze=Je(k(6298)),$e=Je(k(6454)),nt=Je(k(6648)),ut=Je(k(4339)),ft=sr(k(8177)),pt=Je(k(2438)),Lt=Je(k(368)),$t=Je(k(8874)),It=Je(k(4979)),br=Je(k(1008)),ct=Je(k(4069)),Ht=Je(k(4958)),kr=Je(k(3235)),Ft=Je(k(7278)),Kt=Je(k(9131)),Pr=Je(k(3315)),qt=Je(k(1464)),He=Je(k(7228)),De=Je(k(1592)),Yt=Je(k(682)),Zt=Je(k(9396)),se=Je(k(5807)),zt=Je(k(7148)),Ct=Je(k(7612)),xt=Je(k(9887)),or=Je(k(3058)),tr=sr(k(8355)),it=Je(k(2129)),er=Je(k(94)),pe=Je(k(8021)),ke=Je(k(9211)),Ue=Je(k(5061)),ot=Je(k(4611)),Dt=Je(k(1727)),Wt=Je(k(6776)),vt=Je(k(9963)),Or=Je(k(2782)),Rt=Je(k(5008)),Ut=Je(k(2689)),Wr=Je(k(8983)),bt=Je(k(2776)),_t=Je(k(4554)),Br=Je(k(478)),Vt=sr(k(8140)),lt=Je(k(4959)),St=Je(k(9778)),Tt=Je(k(4790)),kt=Je(k(5152)),fr=Je(k(4816)),Gt=Je(k(8035)),tt=Je(k(4714)),yt=Je(k(4928)),gr=Je(k(8346)),ar=Je(k(2900)),Tr=Je(k(8220)),yr=Je(k(2786)),ne=Je(k(7633)),an=Je(k(5977));function ir(){if(typeof WeakMap!="function")return null;var dr=new WeakMap;return ir=function(){return dr},dr}function sr(dr){if(dr&&dr.__esModule)return dr;if(dr===null||i(dr)!=="object"&&typeof dr!="function")return{default:dr};var f=ir();if(f&&f.has(dr))return f.get(dr);var m={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in dr)if(Object.prototype.hasOwnProperty.call(dr,H)){var me=T?Object.getOwnPropertyDescriptor(dr,H):null;me&&(me.get||me.set)?Object.defineProperty(m,H,me):m[H]=dr[H]}return m.default=dr,f&&f.set(dr,m),m}function Je(dr){return dr&&dr.__esModule?dr:{default:dr}}var In={version:"13.9.0",toDate:W.default,toFloat:B.default,toInt:y.default,toBoolean:t.default,equals:o.default,contains:s.default,matches:G.default,isEmail:_.default,isURL:ee.default,isMACAddress:Q.default,isIP:Ce.default,isIPRange:le.default,isFQDN:E.default,isBoolean:K.default,isIBAN:ft.default,isBIC:pt.default,isAlpha:ce.default,isAlphaLocales:ce.locales,isAlphanumeric:te.default,isAlphanumericLocales:te.locales,isNumeric:ie.default,isPassportNumber:he.default,isPort:Xe.default,isLowercase:et.default,isUppercase:Ge.default,isAscii:A.default,isFullWidth:N.default,isHalfWidth:D.default,isVariableWidth:F.default,isMultibyte:P.default,isSemVer:R.default,isSurrogatePair:oe.default,isInt:Te.default,isIMEI:Ze.default,isFloat:C.default,isFloatLocales:C.locales,isDecimal:ue.default,isHexadecimal:We.default,isOctal:ge.default,isDivisibleBy:Ie.default,isHexColor:ze.default,isRgbColor:$e.default,isHSL:nt.default,isISRC:ut.default,isMD5:Lt.default,isHash:$t.default,isJWT:It.default,isJSON:br.default,isEmpty:ct.default,isLength:Ht.default,isLocale:Y.default,isByteLength:kr.default,isUUID:Ft.default,isMongoId:Kt.default,isAfter:Pr.default,isBefore:qt.default,isIn:He.default,isLuhnNumber:De.default,isCreditCard:Yt.default,isIdentityCard:Zt.default,isEAN:se.default,isISIN:zt.default,isISBN:Ct.default,isISSN:xt.default,isMobilePhone:tr.default,isMobilePhoneLocales:tr.locales,isPostalCode:Vt.default,isPostalCodeLocales:Vt.locales,isEthereumAddress:it.default,isCurrency:er.default,isBtcAddress:pe.default,isISO6391:ke.default,isISO8601:Ue.default,isRFC3339:ot.default,isISO31661Alpha2:Dt.default,isISO31661Alpha3:Wt.default,isISO4217:vt.default,isBase32:Or.default,isBase58:Rt.default,isBase64:Ut.default,isDataURI:Wr.default,isMagnetURI:bt.default,isMimeType:_t.default,isLatLong:Br.default,ltrim:lt.default,rtrim:St.default,trim:Tt.default,escape:kt.default,unescape:fr.default,stripLow:Gt.default,whitelist:tt.default,blacklist:yt.default,isWhitelisted:gr.default,normalizeEmail:ar.default,toString,isSlug:Tr.default,isStrongPassword:ne.default,isTaxID:or.default,isDate:S.default,isTime:L.default,isLicensePlate:yr.default,isVAT:an.default,ibanLocales:ft.locales};v.default=In,V.exports=v.default,V.exports.default=v.default},79:(V,v)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.commaDecimal=v.dotDecimal=v.bengaliLocales=v.farsiLocales=v.arabicLocales=v.englishLocales=v.decimal=v.alphanumeric=v.alpha=void 0;var k={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ko-KR":/^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/};v.alpha=k;var i={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ko-KR":/^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/};v.alphanumeric=i;var W={"en-US":".",ar:"٫"};v.decimal=W;var B=["AU","GB","HK","IN","NZ","ZA","ZM"];v.englishLocales=B;for(var y,t=0;t<B.length;t++)k[y="en-".concat(B[t])]=k["en-US"],i[y]=i["en-US"],W[y]=W["en-US"];var o=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"];v.arabicLocales=o;for(var s,G=0;G<o.length;G++)k[s="ar-".concat(o[G])]=k.ar,i[s]=i.ar,W[s]=W.ar;var _=["IR","AF"];v.farsiLocales=_;for(var ee,Q=0;Q<_.length;Q++)i[ee="fa-".concat(_[Q])]=i.fa,W[ee]=W.ar;var Ce=["BD","IN"];v.bengaliLocales=Ce;for(var le,E=0;E<Ce.length;E++)k[le="bn-".concat(Ce[E])]=k.bn,i[le]=i.bn,W[le]=W["en-US"];var S=["ar-EG","ar-LB","ar-LY"];v.dotDecimal=S;var L=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-ZM","es-ES","fr-CA","fr-FR","id-ID","it-IT","ku-IQ","hi-IN","hu-HU","nb-NO","nn-NO","nl-NL","pl-PL","pt-PT","ru-RU","si-LK","sl-SI","sr-RS@latin","sr-RS","sv-SE","tr-TR","uk-UA","vi-VN"];v.commaDecimal=L;for(var K=0;K<S.length;K++)W[S[K]]=W["en-US"];for(var Y=0;Y<L.length;Y++)W[L[Y]]=",";k["fr-CA"]=k["fr-FR"],i["fr-CA"]=i["fr-FR"],k["pt-BR"]=k["pt-PT"],i["pt-BR"]=i["pt-PT"],W["pt-BR"]=W["pt-PT"],k["pl-Pl"]=k["pl-PL"],i["pl-Pl"]=i["pl-PL"],W["pl-Pl"]=W["pl-PL"],k["fa-AF"]=k.fa},4928:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B,y){return(0,W.default)(B),B.replace(new RegExp("[".concat(y,"]+"),"g"),"")};var i,W=(i=k(5571))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},9466:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(o,s,G){return(0,i.default)(o),(G=(0,B.default)(G,t)).ignoreCase?o.toLowerCase().split((0,W.default)(s).toLowerCase()).length>G.minOccurrences:o.split((0,W.default)(s)).length>G.minOccurrences};var i=y(k(5571)),W=y(k(1913)),B=y(k(4808));function y(o){return o&&o.__esModule?o:{default:o}}var t={ignoreCase:!1,minOccurrences:1};V.exports=v.default,V.exports.default=v.default},2315:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B,y){return(0,W.default)(B),B===y};var i,W=(i=k(5571))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},5152:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B){return(0,W.default)(B),B.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var i,W=(i=k(5571))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},3315:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B,y){var t=(y==null?void 0:y.comparisonDate)||y||Date().toString(),o=(0,W.default)(t),s=(0,W.default)(B);return!!(s&&o&&s>o)};var i,W=(i=k(8469))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},9234:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};(0,W.default)(t);var G=t,_=s.ignore;if(_)if(_ instanceof RegExp)G=G.replace(_,"");else{if(typeof _!="string")throw new Error("ignore should be instance of a String or RegExp");G=G.replace(new RegExp("[".concat(_.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(o in B.alpha)return B.alpha[o].test(G);throw new Error("Invalid locale '".concat(o,"'"))},v.locales=void 0;var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=k(79),y=Object.keys(B.alpha);v.locales=y},4583:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};(0,W.default)(t);var G=t,_=s.ignore;if(_)if(_ instanceof RegExp)G=G.replace(_,"");else{if(typeof _!="string")throw new Error("ignore should be instance of a String or RegExp");G=G.replace(new RegExp("[".concat(_.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(o in B.alphanumeric)return B.alphanumeric[o].test(G);throw new Error("Invalid locale '".concat(o,"'"))},v.locales=void 0;var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=k(79),y=Object.keys(B.alphanumeric);v.locales=y},4094:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,W.default)(y),B.test(y)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^[\x00-\x7F]+$/;V.exports=v.default,V.exports.default=v.default},2438:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t){(0,W.default)(t);var o=t.slice(4,6).toUpperCase();return!(!B.CountryCodes.has(o)&&o!=="XK")&&y.test(t)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=k(1727),y=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;V.exports=v.default,V.exports.default=v.default},2782:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(s,G){return(0,i.default)(s),(G=(0,W.default)(G,o)).crockford?t.test(s):!(s.length%8!=0||!y.test(s))};var i=B(k(5571)),W=B(k(4808));function B(s){return s&&s.__esModule?s:{default:s}}var y=/^[A-Z2-7]+=*$/,t=/^[A-HJKMNP-TV-Z0-9]+$/,o={crockford:!1};V.exports=v.default,V.exports.default=v.default},5008:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,W.default)(y),!!B.test(y)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^[A-HJ-NP-Za-km-z1-9]*$/;V.exports=v.default,V.exports.default=v.default},2689:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(s,G){(0,i.default)(s),G=(0,W.default)(G,o);var _=s.length;if(G.urlSafe)return t.test(s);if(_%4!=0||y.test(s))return!1;var ee=s.indexOf("=");return ee===-1||ee===_-1||ee===_-2&&s[_-1]==="="};var i=B(k(5571)),W=B(k(4808));function B(s){return s&&s.__esModule?s:{default:s}}var y=/[^A-Z0-9+\/=]/i,t=/^[A-Z0-9_\-]*$/i,o={urlSafe:!1};V.exports=v.default,V.exports.default=v.default},1464:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:String(new Date);(0,i.default)(y);var o=(0,W.default)(t),s=(0,W.default)(y);return!!(s&&o&&s<o)};var i=B(k(5571)),W=B(k(8469));function B(y){return y&&y.__esModule?y:{default:y}}V.exports=v.default,V.exports.default=v.default},9493:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B;return(0,W.default)(o),s.loose?t.includes(o.toLowerCase()):y.includes(o)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B={loose:!1},y=["true","false","1","0"],t=[].concat(y,["yes","no"]);V.exports=v.default,V.exports.default=v.default},8021:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t){return(0,W.default)(t),B.test(t)||y.test(t)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^(bc1)[a-z0-9]{25,39}$/,y=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;V.exports=v.default,V.exports.default=v.default},3235:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y,t){var o,s;(0,W.default)(y),B(t)==="object"?(o=t.min||0,s=t.max):(o=arguments[1],s=arguments[2]);var G=encodeURI(y).split(/%..|./).length-1;return G>=o&&(s===void 0||G<=s)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i};function B(y){return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B(y)}V.exports=v.default,V.exports.default=v.default},682:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,i.default)(o);var G=s.provider,_=o.replace(/[- ]+/g,"");if(G&&G.toLowerCase()in y){if(!y[G.toLowerCase()].test(_))return!1}else{if(G&&!(G.toLowerCase()in y))throw new Error("".concat(G," is not a valid credit card provider."));if(!t.test(_))return!1}return(0,W.default)(o)};var i=B(k(5571)),W=B(k(1592));function B(o){return o&&o.__esModule?o:{default:o}}var y={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},t=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;V.exports=v.default,V.exports.default=v.default},94:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t,o){return(0,W.default)(t),(function(s){var G="\\d{".concat(s.digits_after_decimal[0],"}");s.digits_after_decimal.forEach(function(S,L){L!==0&&(G="".concat(G,"|\\d{").concat(S,"}"))});var _="(".concat(s.symbol.replace(/\W/,function(S){return"\\".concat(S)}),")").concat(s.require_symbol?"":"?"),ee="-?",Q="[1-9]\\d{0,2}(\\".concat(s.thousands_separator,"\\d{3})*"),Ce="(".concat(["0","[1-9]\\d*",Q].join("|"),")?"),le="(\\".concat(s.decimal_separator,"(").concat(G,"))").concat(s.require_decimal?"":"?"),E=Ce+(s.allow_decimal||s.require_decimal?le:"");return s.allow_negatives&&!s.parens_for_negatives&&(s.negative_sign_after_digits?E+=ee:s.negative_sign_before_digits&&(E=ee+E)),s.allow_negative_sign_placeholder?E="( (?!\\-))?".concat(E):s.allow_space_after_symbol?E=" ?".concat(E):s.allow_space_after_digits&&(E+="( (?!$))?"),s.symbol_after_digits?E+=_:E=_+E,s.allow_negatives&&(s.parens_for_negatives?E="(\\(".concat(E,"\\)|").concat(E,")"):s.negative_sign_before_digits||s.negative_sign_after_digits||(E=ee+E)),new RegExp("^(?!-? )(?=.*\\d)".concat(E,"$"))})(o=(0,i.default)(o,y)).test(t)};var i=B(k(4808)),W=B(k(5571));function B(t){return t&&t.__esModule?t:{default:t}}var y={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};V.exports=v.default,V.exports.default=v.default},8983:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(o){(0,W.default)(o);var s=o.split(",");if(s.length<2)return!1;var G=s.shift().trim().split(";"),_=G.shift();if(_.slice(0,5)!=="data:")return!1;var ee=_.slice(5);if(ee!==""&&!B.test(ee))return!1;for(var Q=0;Q<G.length;Q++)if((Q!==G.length-1||G[Q].toLowerCase()!=="base64")&&!y.test(G[Q]))return!1;for(var Ce=0;Ce<s.length;Ce++)if(!t.test(s[Ce]))return!1;return!0};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^[a-z]+\/[a-z0-9\-\+\._]+$/i,y=/^[a-z\-]+=[a-z0-9\-]+$/i,t=/^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;V.exports=v.default,V.exports.default=v.default},2549:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(o,s){if(s=typeof s=="string"?(0,W.default)({format:s},t):(0,W.default)(s,t),typeof o=="string"&&(Y=s.format,/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(Y))){var G,_=s.delimiters.find(function(ce){return s.format.indexOf(ce)!==-1}),ee=s.strictMode?_:s.delimiters.find(function(ce){return o.indexOf(ce)!==-1}),Q=(function(ce,te){for(var ie=[],he=Math.min(ce.length,te.length),Xe=0;Xe<he;Xe++)ie.push([ce[Xe],te[Xe]]);return ie})(o.split(ee),s.format.toLowerCase().split(_)),Ce={},le=(function(ce,te){var ie;if(typeof Symbol>"u"||ce[Symbol.iterator]==null){if(Array.isArray(ce)||(ie=B(ce))){ie&&(ce=ie);var he=0,Xe=function(){};return{s:Xe,n:function(){return he>=ce.length?{done:!0}:{done:!1,value:ce[he++]}},e:function(A){throw A},f:Xe}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var et,Ge=!0,Ze=!1;return{s:function(){ie=ce[Symbol.iterator]()},n:function(){var A=ie.next();return Ge=A.done,A},e:function(A){Ze=!0,et=A},f:function(){try{Ge||ie.return==null||ie.return()}finally{if(Ze)throw et}}}})(Q);try{for(le.s();!(G=le.n()).done;){var E=(K=G.value,(function(ce){if(Array.isArray(ce))return ce})(K)||(function(ce,te){if(typeof Symbol<"u"&&Symbol.iterator in Object(ce)){var ie=[],he=!0,Xe=!1,et=void 0;try{for(var Ge,Ze=ce[Symbol.iterator]();!(he=(Ge=Ze.next()).done)&&(ie.push(Ge.value),ie.length!==2);he=!0);}catch(A){Xe=!0,et=A}finally{try{he||Ze.return==null||Ze.return()}finally{if(Xe)throw et}}return ie}})(K)||B(K,2)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()),S=E[0],L=E[1];if(S.length!==L.length)return!1;Ce[L.charAt(0)]=S}}catch(ce){le.e(ce)}finally{le.f()}return new Date("".concat(Ce.m,"/").concat(Ce.d,"/").concat(Ce.y)).getDate()===+Ce.d}var K,Y;return!s.strictMode&&Object.prototype.toString.call(o)==="[object Date]"&&isFinite(o)};var i,W=(i=k(4808))&&i.__esModule?i:{default:i};function B(o,s){if(o){if(typeof o=="string")return y(o,s);var G=Object.prototype.toString.call(o).slice(8,-1);return G==="Object"&&o.constructor&&(G=o.constructor.name),G==="Map"||G==="Set"?Array.from(o):G==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G)?y(o,s):void 0}}function y(o,s){(s==null||s>o.length)&&(s=o.length);for(var G=0,_=new Array(s);G<s;G++)_[G]=o[G];return _}var t={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};V.exports=v.default,V.exports.default=v.default},5218:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(G,_){if((0,W.default)(G),(_=(0,i.default)(_,o)).locale in y.decimal)return!(0,B.default)(s,G.replace(/ /g,""))&&(function(ee){return new RegExp("^[-+]?([0-9]+)?(\\".concat(y.decimal[ee.locale],"[0-9]{").concat(ee.decimal_digits,"})").concat(ee.force_decimal?"":"?","$"))})(_).test(G);throw new Error("Invalid locale '".concat(_.locale,"'"))};var i=t(k(4808)),W=t(k(5571)),B=t(k(8343)),y=k(79);function t(G){return G&&G.__esModule?G:{default:G}}var o={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},s=["","-","+"];V.exports=v.default,V.exports.default=v.default},8335:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y,t){return(0,i.default)(y),(0,W.default)(y)%parseInt(t,10)==0};var i=B(k(5571)),W=B(k(7536));function B(y){return y&&y.__esModule?y:{default:y}}V.exports=v.default,V.exports.default=v.default},5807:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(o){(0,W.default)(o);var s,G,_=Number(o.slice(-1));return t.test(o)&&_===((G=10-(s=o).slice(0,-1).split("").map(function(ee,Q){return Number(ee)*(function(Ce,le){return Ce===B||Ce===y?le%2==0?3:1:le%2==0?1:3})(s.length,Q)}).reduce(function(ee,Q){return ee+Q},0)%10)<10?G:0)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=8,y=14,t=/^(\d{8}|\d{13}|\d{14})$/;V.exports=v.default,V.exports.default=v.default},3868:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(S,L){if((0,i.default)(S),(L=(0,W.default)(L,s)).require_display_name||L.allow_display_name){var K=S.match(G);if(K){var Y=K[1];if(S=S.replace(Y,"").replace(/(^<|>$)/g,""),Y.endsWith(" ")&&(Y=Y.slice(0,-1)),!(function(F){var P=F.replace(/^"(.+)"$/,"$1");return!(!P.trim()||/[\.";<>]/.test(P)&&(P===F||P.split('"').length!==P.split('\\"').length))})(Y))return!1}else if(L.require_display_name)return!1}if(!L.ignore_max_length&&S.length>E)return!1;var ce=S.split("@"),te=ce.pop(),ie=te.toLowerCase();if(L.host_blacklist.includes(ie)||L.host_whitelist.length>0&&!L.host_whitelist.includes(ie))return!1;var he=ce.join("@");if(L.domain_specific_validation&&(ie==="gmail.com"||ie==="googlemail.com")){var Xe=(he=he.toLowerCase()).split("+")[0];if(!(0,B.default)(Xe.replace(/\./g,""),{min:6,max:30}))return!1;for(var et=Xe.split("."),Ge=0;Ge<et.length;Ge++)if(!ee.test(et[Ge]))return!1}if(!(L.ignore_max_length!==!1||(0,B.default)(he,{max:64})&&(0,B.default)(te,{max:254})))return!1;if(!(0,y.default)(te,{require_tld:L.require_tld,ignore_max_length:L.ignore_max_length})){if(!L.allow_ip_domain)return!1;if(!(0,t.default)(te)){if(!te.startsWith("[")||!te.endsWith("]"))return!1;var Ze=te.slice(1,-1);if(Ze.length===0||!(0,t.default)(Ze))return!1}}if(he[0]==='"')return he=he.slice(1,he.length-1),L.allow_utf8_local_part?le.test(he):Q.test(he);for(var A=L.allow_utf8_local_part?Ce:_,N=he.split("."),D=0;D<N.length;D++)if(!A.test(N[D]))return!1;return!L.blacklisted_chars||he.search(new RegExp("[".concat(L.blacklisted_chars,"]+"),"g"))===-1};var i=o(k(5571)),W=o(k(4808)),B=o(k(3235)),y=o(k(221)),t=o(k(1028));function o(S){return S&&S.__esModule?S:{default:S}}var s={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},G=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,_=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,ee=/^[a-z\d]+$/,Q=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,Ce=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,le=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,E=254;V.exports=v.default,V.exports.default=v.default},4069:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t,o){return(0,i.default)(t),((o=(0,W.default)(o,y)).ignore_whitespace?t.trim().length:t.length)===0};var i=B(k(5571)),W=B(k(4808));function B(t){return t&&t.__esModule?t:{default:t}}var y={ignore_whitespace:!1};V.exports=v.default,V.exports.default=v.default},2129:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,W.default)(y),B.test(y)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^(0x)[0-9a-f]{40}$/i;V.exports=v.default,V.exports.default=v.default},221:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t,o){(0,i.default)(t),(o=(0,W.default)(o,y)).allow_trailing_dot&&t[t.length-1]==="."&&(t=t.substring(0,t.length-1)),o.allow_wildcard===!0&&t.indexOf("*.")===0&&(t=t.substring(2));var s=t.split("."),G=s[s.length-1];return o.require_tld&&(s.length<2||!o.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(G)||/\s/.test(G))?!1:!(!o.allow_numeric_tld&&/^\d+$/.test(G))&&s.every(function(_){return!(_.length>63&&!o.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(_)||/[\uff01-\uff5e]/.test(_)||/^-|-$/.test(_)||!o.allow_underscores&&/_/.test(_))})};var i=B(k(5571)),W=B(k(4808));function B(t){return t&&t.__esModule?t:{default:t}}var y={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};V.exports=v.default,V.exports.default=v.default},9146:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t,o){(0,W.default)(t),o=o||{};var s=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(o.locale?B.decimal[o.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(t===""||t==="."||t===","||t==="-"||t==="+")return!1;var G=parseFloat(t.replace(",","."));return s.test(t)&&(!o.hasOwnProperty("min")||G>=o.min)&&(!o.hasOwnProperty("max")||G<=o.max)&&(!o.hasOwnProperty("lt")||G<o.lt)&&(!o.hasOwnProperty("gt")||G>o.gt)},v.locales=void 0;var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=k(79),y=Object.keys(B.decimal);v.locales=y},7146:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,W.default)(y),B.test(y)},v.fullWidth=void 0;var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;v.fullWidth=B},6648:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t){(0,W.default)(t);var o=t.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");return o.indexOf(",")!==-1?B.test(o):y.test(o)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,y=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;V.exports=v.default,V.exports.default=v.default},2941:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,W.default)(y),B.test(y)},v.halfWidth=void 0;var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;v.halfWidth=B},8874:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y,t){return(0,W.default)(y),new RegExp("^[a-fA-F0-9]{".concat(B[t],"}$")).test(y)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};V.exports=v.default,V.exports.default=v.default},6298:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,W.default)(y),B.test(y)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;V.exports=v.default,V.exports.default=v.default},7117:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,W.default)(y),B.test(y)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^(0x|0h)?[0-9A-F]+$/i;V.exports=v.default,V.exports.default=v.default},8177:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t){return(0,W.default)(t),(function(o){var s=o.replace(/[\s\-]+/gi,"").toUpperCase(),G=s.slice(0,2).toUpperCase();return G in B&&B[G].test(s)})(t)&&(function(o){var s=o.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return(s.slice(4)+s.slice(0,4)).replace(/[A-Z]/g,function(G){return G.charCodeAt(0)-55}).match(/\d{1,7}/g).reduce(function(G,_){return Number(G+_)%97},"")===1})(t)},v.locales=void 0;var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/},y=Object.keys(B);v.locales=y},5566:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t,o){(0,W.default)(t);var s=B;if((o=o||{}).allow_hyphens&&(s=y),!s.test(t))return!1;t=t.replace(/-/g,"");for(var G=0,_=2,ee=0;ee<14;ee++){var Q=t.substring(14-ee-1,14-ee),Ce=parseInt(Q,10)*_;G+=Ce>=10?Ce%10+1:Ce,_===1?_+=1:_-=1}return(10-G%10)%10===parseInt(t.substring(14,15),10)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^[0-9]{15}$/,y=/^\d{2}-\d{6}-\d{6}-\d{1}$/;V.exports=v.default,V.exports.default=v.default},1028:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function G(_){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,W.default)(_),(ee=String(ee))?ee==="4"?t.test(_):ee==="6"&&s.test(_):G(_,4)||G(_,6)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",y="(".concat(B,"[.]){3}").concat(B),t=new RegExp("^".concat(y,"$")),o="(?:[0-9a-fA-F]{1,4})",s=new RegExp("^("+"(?:".concat(o,":){7}(?:").concat(o,"|:)|")+"(?:".concat(o,":){6}(?:").concat(y,"|:").concat(o,"|:)|")+"(?:".concat(o,":){5}(?::").concat(y,"|(:").concat(o,"){1,2}|:)|")+"(?:".concat(o,":){4}(?:(:").concat(o,"){0,1}:").concat(y,"|(:").concat(o,"){1,3}|:)|")+"(?:".concat(o,":){3}(?:(:").concat(o,"){0,2}:").concat(y,"|(:").concat(o,"){1,4}|:)|")+"(?:".concat(o,":){2}(?:(:").concat(o,"){0,3}:").concat(y,"|(:").concat(o,"){1,5}|:)|")+"(?:".concat(o,":){1}(?:(:").concat(o,"){0,4}:").concat(y,"|(:").concat(o,"){1,6}|:)|")+"(?::((?::".concat(o,"){0,5}:").concat(y,"|(?::").concat(o,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");V.exports=v.default,V.exports.default=v.default},7795:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(s){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(0,i.default)(s);var _=s.split("/");if(_.length!==2||!y.test(_[1])||_[1].length>1&&_[1].startsWith("0")||!(0,W.default)(_[0],G))return!1;var ee=null;switch(String(G)){case"4":ee=t;break;case"6":ee=o;break;default:ee=(0,W.default)(_[0],"6")?o:t}return _[1]<=ee&&_[1]>=0};var i=B(k(5571)),W=B(k(1028));function B(s){return s&&s.__esModule?s:{default:s}}var y=/^\d{1,3}$/,t=32,o=128;V.exports=v.default,V.exports.default=v.default},7612:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function o(s,G){(0,W.default)(s);var _=String((G==null?void 0:G.version)||G);if(!(G!=null&&G.version||G))return o(s,{version:10})||o(s,{version:13});var ee=s.replace(/[\s-]+/g,""),Q=0;if(_==="10"){if(!B.test(ee))return!1;for(var Ce=0;Ce<_-1;Ce++)Q+=(Ce+1)*ee.charAt(Ce);if(ee.charAt(9)==="X"?Q+=100:Q+=10*ee.charAt(9),Q%11==0)return!0}else if(_==="13"){if(!y.test(ee))return!1;for(var le=0;le<12;le++)Q+=t[le%2]*ee.charAt(le);if(ee.charAt(12)-(10-Q%10)%10==0)return!0}return!1};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^(?:[0-9]{9}X|[0-9]{10})$/,y=/^(?:[0-9]{13})$/,t=[1,3];V.exports=v.default,V.exports.default=v.default},7148:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){if((0,W.default)(y),!B.test(y))return!1;for(var t=!0,o=0,s=y.length-2;s>=0;s--)if(y[s]>="A"&&y[s]<="Z")for(var G=y[s].charCodeAt(0)-55,_=0,ee=[G%10,Math.trunc(G/10)];_<ee.length;_++){var Q=ee[_];o+=t?Q>=5?1+2*(Q-5):2*Q:Q,t=!t}else{var Ce=y[s].charCodeAt(0)-48;o+=t?Ce>=5?1+2*(Ce-5):2*Ce:Ce,t=!t}var le=10*Math.trunc((o+9)/10)-o;return+y[y.length-1]===le};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;V.exports=v.default,V.exports.default=v.default},1727:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t){return(0,W.default)(t),B.has(t.toUpperCase())},v.CountryCodes=void 0;var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]),y=B;v.CountryCodes=y},6776:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,W.default)(y),B.has(y.toUpperCase())};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);V.exports=v.default,V.exports.default=v.default},9963:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t){return(0,W.default)(t),B.has(t.toUpperCase())},v.CurrencyCodes=void 0;var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]),y=B;v.CurrencyCodes=y},9211:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,W.default)(y),B.has(y)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);V.exports=v.default,V.exports.default=v.default},5061:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,W.default)(o);var G=s.strictSeparator?y.test(o):B.test(o);return G&&s.strict?t(o):G};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,y=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,t=function(o){var s=o.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(s){var G=Number(s[1]),_=Number(s[2]);return G%4==0&&G%100!=0||G%400==0?_<=366:_<=365}var ee=o.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),Q=ee[1],Ce=ee[2],le=ee[3],E=Ce&&"0".concat(Ce).slice(-2),S=le&&"0".concat(le).slice(-2),L=new Date("".concat(Q,"-").concat(E||"01","-").concat(S||"01"));return!Ce||!le||L.getUTCFullYear()===Q&&L.getUTCMonth()+1===Ce&&L.getUTCDate()===le};V.exports=v.default,V.exports.default=v.default},4339:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,W.default)(y),B.test(y)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;V.exports=v.default,V.exports.default=v.default},9887:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,W.default)(y);var o=B;if(o=t.require_hyphen?o.replace("?",""):o,!(o=t.case_sensitive?new RegExp(o):new RegExp(o,"i")).test(y))return!1;for(var s=y.replace("-","").toUpperCase(),G=0,_=0;_<s.length;_++){var ee=s[_];G+=(ee==="X"?10:+ee)*(8-_)}return G%11==0};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B="^\\d{4}-?\\d{3}[\\dX]$";V.exports=v.default,V.exports.default=v.default},9396:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t,o){if((0,i.default)(t),o in y)return y[o](t);if(o==="any"){for(var s in y)if(y.hasOwnProperty(s)&&(0,y[s])(t))return!0;return!1}throw new Error("Invalid locale '".concat(o,"'"))};var i=B(k(5571)),W=B(k(937));function B(t){return t&&t.__esModule?t:{default:t}}var y={PL:function(t){(0,i.default)(t);var o={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(t!=null&&t.length===11&&(0,W.default)(t,{allow_leading_zeroes:!0})){var s=t.split("").slice(0,-1).reduce(function(_,ee,Q){return _+Number(ee)*o[Q+1]},0)%10,G=Number(t.charAt(t.length-1));if(s===0&&G===0||G===10-s)return!0}return!1},ES:function(t){(0,i.default)(t);var o={X:0,Y:1,Z:2},s=t.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(s))return!1;var G=s.slice(0,-1).replace(/[X,Y,Z]/g,function(_){return o[_]});return s.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][G%23])},FI:function(t){return(0,i.default)(t),t.length===11&&!!t.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/)&&"0123456789ABCDEFHJKLMNPRSTUVWXY"[(1e3*parseInt(t.slice(0,6),10)+parseInt(t.slice(7,10),10))%31]===t.slice(10,11)},IN:function(t){var o=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],s=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],G=t.trim();if(!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(G))return!1;var _=0;return G.replace(/\s/g,"").split("").map(Number).reverse().forEach(function(ee,Q){_=o[_][s[Q%8][ee]]}),_===0},IR:function(t){if(!t.match(/^\d{10}$/)||(t="0000".concat(t).slice(t.length-6),parseInt(t.slice(3,9),10)===0))return!1;for(var o=parseInt(t.slice(9,10),10),s=0,G=0;G<9;G++)s+=parseInt(t.slice(G,G+1),10)*(10-G);return(s%=11)<2&&o===s||s>=2&&o===11-s},IT:function(t){return t.length===9&&t!=="CA00000AA"&&t.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1},NO:function(t){var o=t.trim();if(isNaN(Number(o))||o.length!==11||o==="00000000000")return!1;var s=o.split("").map(Number),G=(11-(3*s[0]+7*s[1]+6*s[2]+1*s[3]+8*s[4]+9*s[5]+4*s[6]+5*s[7]+2*s[8])%11)%11,_=(11-(5*s[0]+4*s[1]+3*s[2]+2*s[3]+7*s[4]+6*s[5]+5*s[6]+4*s[7]+3*s[8]+2*G)%11)%11;return G===s[9]&&_===s[10]},TH:function(t){if(!t.match(/^[1-8]\d{12}$/))return!1;for(var o=0,s=0;s<12;s++)o+=parseInt(t[s],10)*(13-s);return t[12]===((11-o%11)%10).toString()},LK:function(t){return!(t.length!==10||!/^[1-9]\d{8}[vx]$/i.test(t))||!(t.length!==12||!/^[1-9]\d{11}$/i.test(t))},"he-IL":function(t){var o=t.trim();if(!/^\d{9}$/.test(o))return!1;for(var s,G=o,_=0,ee=0;ee<G.length;ee++)_+=(s=Number(G[ee])*(ee%2+1))>9?s-9:s;return _%10==0},"ar-LY":function(t){var o=t.trim();return!!/^(1|2)\d{11}$/.test(o)},"ar-TN":function(t){var o=t.trim();return!!/^\d{8}$/.test(o)},"zh-CN":function(t){var o,s=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],G=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],_=["1","0","X","9","8","7","6","5","4","3","2"],ee=function(Ce){return s.includes(Ce)},Q=function(Ce){var le=parseInt(Ce.substring(0,4),10),E=parseInt(Ce.substring(4,6),10),S=parseInt(Ce.substring(6),10),L=new Date(le,E-1,S);return!(L>new Date)&&L.getFullYear()===le&&L.getMonth()===E-1&&L.getDate()===S};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(o=t)&&(o.length===15?(function(Ce){var le=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(Ce);if(!le)return!1;var E=Ce.substring(0,2);if(!(le=ee(E)))return!1;var S="19".concat(Ce.substring(6,12));return!!(le=Q(S))})(o):(function(Ce){var le=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(Ce);if(!le)return!1;var E=Ce.substring(0,2);if(!(le=ee(E)))return!1;var S=Ce.substring(6,14);return!!(le=Q(S))&&(function(L){return(function(K){for(var Y=K.substring(0,17),ce=0,te=0;te<17;te++)ce+=parseInt(Y.charAt(te),10)*parseInt(G[te],10);return _[ce%11]})(L)===L.charAt(17).toUpperCase()})(Ce)})(o))},"zh-HK":function(t){var o=/^[0-9]$/;if(t=(t=t.trim()).toUpperCase(),!/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/.test(t))return!1;(t=t.replace(/\[|\]|\(|\)/g,"")).length===8&&(t="3".concat(t));for(var s=0,G=0;G<=7;G++)s+=(o.test(t[G])?t[G]:(t[G].charCodeAt(0)-55)%11)*(9-G);return((s%=11)==0?"0":s===1?"A":String(11-s))===t[t.length-1]},"zh-TW":function(t){var o={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},s=t.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(s)&&Array.from(s).reduce(function(G,_,ee){if(ee===0){var Q=o[_];return Q%10*9+Math.floor(Q/10)}return ee===9?(10-G%10-Number(_))%10==0:G+Number(_)*(9-ee)},0)}};V.exports=v.default,V.exports.default=v.default},7228:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t,o){var s;if((0,i.default)(t),Object.prototype.toString.call(o)==="[object Array]"){var G=[];for(s in o)({}).hasOwnProperty.call(o,s)&&(G[s]=(0,W.default)(o[s]));return G.indexOf(t)>=0}return y(o)==="object"?o.hasOwnProperty(t):!(!o||typeof o.indexOf!="function")&&o.indexOf(t)>=0};var i=B(k(5571)),W=B(k(1913));function B(t){return t&&t.__esModule?t:{default:t}}function y(t){return y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},y(t)}V.exports=v.default,V.exports.default=v.default},937:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t,o){(0,W.default)(t);var s=(o=o||{}).hasOwnProperty("allow_leading_zeroes")&&!o.allow_leading_zeroes?B:y,G=!o.hasOwnProperty("min")||t>=o.min,_=!o.hasOwnProperty("max")||t<=o.max,ee=!o.hasOwnProperty("lt")||t<o.lt,Q=!o.hasOwnProperty("gt")||t>o.gt;return s.test(t)&&G&&_&&ee&&Q};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,y=/^[-+]?[0-9]+$/;V.exports=v.default,V.exports.default=v.default},1008:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(o,s){(0,i.default)(o);try{s=(0,W.default)(s,t);var G=[];s.allow_primitives&&(G=[null,!1,!0]);var _=JSON.parse(o);return G.includes(_)||!!_&&y(_)==="object"}catch{}return!1};var i=B(k(5571)),W=B(k(4808));function B(o){return o&&o.__esModule?o:{default:o}}function y(o){return y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},y(o)}var t={allow_primitives:!1};V.exports=v.default,V.exports.default=v.default},4979:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){(0,i.default)(y);var t=y.split("."),o=t.length;return!(o>3||o<2)&&t.reduce(function(s,G){return s&&(0,W.default)(G,{urlSafe:!0})},!0)};var i=B(k(5571)),W=B(k(2689));function B(y){return y&&y.__esModule?y:{default:y}}V.exports=v.default,V.exports.default=v.default},478:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(_,ee){if((0,i.default)(_),ee=(0,W.default)(ee,G),!_.includes(","))return!1;var Q=_.split(",");return!(Q[0].startsWith("(")&&!Q[1].endsWith(")")||Q[1].endsWith(")")&&!Q[0].startsWith("("))&&(ee.checkDMS?o.test(Q[0])&&s.test(Q[1]):y.test(Q[0])&&t.test(Q[1]))};var i=B(k(5571)),W=B(k(4808));function B(_){return _&&_.__esModule?_:{default:_}}var y=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,t=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,o=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,s=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,G={checkDMS:!1};V.exports=v.default,V.exports.default=v.default},4958:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y,t){var o,s;(0,W.default)(y),B(t)==="object"?(o=t.min||0,s=t.max):(o=arguments[1]||0,s=arguments[2]);var G=y.match(/(\uFE0F|\uFE0E)/g)||[],_=y.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],ee=y.length-G.length-_.length;return ee>=o&&(s===void 0||ee<=s)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i};function B(y){return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B(y)}V.exports=v.default,V.exports.default=v.default},2786:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y,t){if((0,W.default)(y),t in B)return B[t](y);if(t==="any"){for(var o in B)if((0,B[o])(y))return!0;return!1}throw new Error("Invalid locale '".concat(t,"'"))};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B={"cs-CZ":function(y){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(y)},"de-DE":function(y){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(y)},"de-LI":function(y){return/^FL[- ]?\d{1,5}[UZ]?$/.test(y)},"en-IN":function(y){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(y)},"es-AR":function(y){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(y)},"fi-FI":function(y){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(y)},"hu-HU":function(y){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(y)},"pt-BR":function(y){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(y)},"pt-PT":function(y){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(y)},"sq-AL":function(y){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(y)},"sv-SE":function(y){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(y.trim())}};V.exports=v.default,V.exports.default=v.default},7380:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,W.default)(y),y==="en_US_POSIX"||y==="ca_ES_VALENCIA"||B.test(y)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/;V.exports=v.default,V.exports.default=v.default},3928:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B){return(0,W.default)(B),B===B.toLowerCase()};var i,W=(i=k(5571))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},1592:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B){(0,W.default)(B);for(var y,t,o,s=B.replace(/[- ]+/g,""),G=0,_=s.length-1;_>=0;_--)y=s.substring(_,_+1),t=parseInt(y,10),G+=o&&(t*=2)>=10?t%10+1:t,o=!o;return!(G%10!=0||!s)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},8999:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function _(ee,Q){return(0,W.default)(ee),Q!=null&&Q.eui&&(Q.eui=String(Q.eui)),Q!=null&&Q.no_colons||Q!=null&&Q.no_separators?Q.eui==="48"?y.test(ee):Q.eui==="64"?s.test(ee):y.test(ee)||s.test(ee):(Q==null?void 0:Q.eui)==="48"?B.test(ee)||t.test(ee):(Q==null?void 0:Q.eui)==="64"?o.test(ee)||G.test(ee):_(ee,{eui:"48"})||_(ee,{eui:"64"})};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,y=/^([0-9a-fA-F]){12}$/,t=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,o=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/,s=/^([0-9a-fA-F]){16}$/,G=/^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;V.exports=v.default,V.exports.default=v.default},368:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,W.default)(y),B.test(y)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^[a-f0-9]{32}$/;V.exports=v.default,V.exports.default=v.default},2776:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,W.default)(y),y.indexOf("magnet:?")===0&&B.test(y)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;V.exports=v.default,V.exports.default=v.default},4554:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(o){return(0,W.default)(o),B.test(o)||y.test(o)||t.test(o)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,y=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,t=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;V.exports=v.default,V.exports.default=v.default},8355:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t,o,s){if((0,W.default)(t),s&&s.strictMode&&!t.startsWith("+"))return!1;if(Array.isArray(o))return o.some(function(_){return!(!B.hasOwnProperty(_)||!B[_].test(t))});if(o in B)return B[o].test(t);if(!o||o==="any"){for(var G in B)if(B.hasOwnProperty(G)&&B[G].test(t))return!0;return!1}throw new Error("Invalid locale '".concat(o,"'"))},v.locales=void 0;var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};B["en-CA"]=B["en-US"],B["fr-CA"]=B["en-CA"],B["fr-BE"]=B["nl-BE"],B["zh-HK"]=B["en-HK"],B["zh-MO"]=B["en-MO"],B["ga-IE"]=B["en-IE"],B["fr-CH"]=B["de-CH"],B["it-CH"]=B["fr-CH"];var y=Object.keys(B);v.locales=y},9131:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,i.default)(y),(0,W.default)(y)&&y.length===24};var i=B(k(5571)),W=B(k(7117));function B(y){return y&&y.__esModule?y:{default:y}}V.exports=v.default,V.exports.default=v.default},3590:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,W.default)(y),B.test(y)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/[^\x00-\x7F]/;V.exports=v.default,V.exports.default=v.default},4986:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t,o){return(0,W.default)(t),o&&o.no_symbols?y.test(t):new RegExp("^[+-]?([0-9]*[".concat((o||{}).locale?B.decimal[o.locale]:".","])?[0-9]+$")).test(t)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=k(79),y=/^[0-9]+$/;V.exports=v.default,V.exports.default=v.default},6090:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,W.default)(y),B.test(y)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^(0o)?[0-7]+$/i;V.exports=v.default,V.exports.default=v.default},1513:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y,t){(0,W.default)(y);var o=y.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in B&&B[t].test(o)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{2,3}\d{7,8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};V.exports=v.default,V.exports.default=v.default},4595:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B){return(0,W.default)(B,{min:0,max:65535})};var i,W=(i=k(937))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},8140:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(_,ee){if((0,W.default)(_),ee in s)return s[ee].test(_);if(ee==="any"){for(var Q in s)if(s.hasOwnProperty(Q)&&s[Q].test(_))return!0;return!1}throw new Error("Invalid locale '".concat(ee,"'"))},v.locales=void 0;var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^\d{3}$/,y=/^\d{4}$/,t=/^\d{5}$/,o=/^\d{6}$/,s={AD:/^AD\d{3}$/,AT:y,AU:y,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:y,BG:y,BR:/^\d{5}-\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:y,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:t,DK:y,DO:t,DZ:t,EE:t,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:t,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:y,ID:t,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:B,IT:t,JP:/^\d{3}\-\d{4}$/,KE:t,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:y,LV:/^LV\-\d{4}$/,LK:t,MG:B,MX:t,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:t,NL:/^\d{4}\s?[a-z]{2}$/i,NO:y,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:y,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:o,RU:o,SA:t,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:o,SI:y,SK:/^\d{3}\s?\d{2}$/,TH:t,TN:y,TW:/^\d{3}(\d{2})?$/,UA:t,US:/^\d{5}(-\d{4})?$/,ZA:y,ZM:t},G=Object.keys(s);v.locales=G},4611:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(Q){return(0,W.default)(Q),ee.test(Q)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/([01][0-9]|2[0-3])/,y=/[0-5][0-9]/,t=new RegExp("[-+]".concat(B.source,":").concat(y.source)),o=new RegExp("([zZ]|".concat(t.source,")")),s=new RegExp("".concat(B.source,":").concat(y.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),G=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),_=new RegExp("".concat(s.source).concat(o.source)),ee=new RegExp("^".concat(G.source,"[ tT]").concat(_.source,"$"));V.exports=v.default,V.exports.default=v.default},6454:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(s){var G=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return(0,W.default)(s),G?B.test(s)||y.test(s)||t.test(s)||o.test(s):B.test(s)||y.test(s)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,y=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,t=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,o=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;V.exports=v.default,V.exports.default=v.default},6826:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,i.default)(y),B.test(y)};var i=W(k(5571));function W(y){return y&&y.__esModule?y:{default:y}}var B=(0,W(k(4731)).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");V.exports=v.default,V.exports.default=v.default},8220:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,W.default)(y),B.test(y)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;V.exports=v.default,V.exports.default=v.default},7633:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(_){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;(0,W.default)(_);var Q=(function(Ce){var le=(function(S){var L={};return Array.from(S).forEach(function(K){L[K]?L[K]+=1:L[K]=1}),L})(Ce),E={length:Ce.length,uniqueChars:Object.keys(le).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(le).forEach(function(S){y.test(S)?E.uppercaseCount+=le[S]:t.test(S)?E.lowercaseCount+=le[S]:o.test(S)?E.numberCount+=le[S]:s.test(S)&&(E.symbolCount+=le[S])}),E})(_);return(ee=(0,i.default)(ee||{},G)).returnScore?(function(Ce,le){var E=0;return E+=Ce.uniqueChars*le.pointsPerUnique,E+=(Ce.length-Ce.uniqueChars)*le.pointsPerRepeat,Ce.lowercaseCount>0&&(E+=le.pointsForContainingLower),Ce.uppercaseCount>0&&(E+=le.pointsForContainingUpper),Ce.numberCount>0&&(E+=le.pointsForContainingNumber),Ce.symbolCount>0&&(E+=le.pointsForContainingSymbol),E})(Q,ee):Q.length>=ee.minLength&&Q.lowercaseCount>=ee.minLowercase&&Q.uppercaseCount>=ee.minUppercase&&Q.numberCount>=ee.minNumbers&&Q.symbolCount>=ee.minSymbols};var i=B(k(4808)),W=B(k(5571));function B(_){return _&&_.__esModule?_:{default:_}}var y=/^[A-Z]$/,t=/^[a-z]$/,o=/^[0-9]$/,s=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,G={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};V.exports=v.default,V.exports.default=v.default},2828:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y){return(0,W.default)(y),B.test(y)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;V.exports=v.default,V.exports.default=v.default},3058:(V,v,k)=>{function i(E){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},i(E)}Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US";(0,W.default)(E);var L=E.slice(0);if(S in ee)return S in le&&(L=L.replace(le[S],"")),!!ee[S].test(L)&&(!(S in Q)||Q[S](L));throw new Error("Invalid locale '".concat(S,"'"))};var W=o(k(5571)),B=(function(E){if(E&&E.__esModule)return E;if(E===null||i(E)!=="object"&&typeof E!="function")return{default:E};var S=t();if(S&&S.has(E))return S.get(E);var L={},K=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in E)if(Object.prototype.hasOwnProperty.call(E,Y)){var ce=K?Object.getOwnPropertyDescriptor(E,Y):null;ce&&(ce.get||ce.set)?Object.defineProperty(L,Y,ce):L[Y]=E[Y]}return L.default=E,S&&S.set(E,L),L})(k(3672)),y=o(k(2549));function t(){if(typeof WeakMap!="function")return null;var E=new WeakMap;return t=function(){return E},E}function o(E){return E&&E.__esModule?E:{default:E}}function s(E,S){(S==null||S>E.length)&&(S=E.length);for(var L=0,K=new Array(S);L<S;L++)K[L]=E[L];return K}var G={andover:["10","12"],atlanta:["60","67"],austin:["50","53"],brookhaven:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],cincinnati:["30","32","35","36","37","38","61"],fresno:["15","24"],internet:["20","26","27","45","46","47"],kansas:["40","44"],memphis:["94","95"],ogden:["80","90"],philadelphia:["33","39","41","42","43","46","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],sba:["31"]};function _(E){for(var S=!1,L=!1,K=0;K<3;K++)if(!S&&/[AEIOU]/.test(E[K]))S=!0;else if(!L&&S&&E[K]==="X")L=!0;else if(K>0&&(S&&!L&&!/[AEIOU]/.test(E[K])||L&&!/X/.test(E[K])))return!1;return!0}var ee={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/};ee["lb-LU"]=ee["fr-LU"],ee["lt-LT"]=ee["et-EE"],ee["nl-BE"]=ee["fr-BE"],ee["fr-CA"]=ee["en-CA"];var Q={"bg-BG":function(E){var S=E.slice(0,2),L=parseInt(E.slice(2,4),10);L>40?(L-=40,S="20".concat(S)):L>20?(L-=20,S="18".concat(S)):S="19".concat(S),L<10&&(L="0".concat(L));var K="".concat(S,"/").concat(L,"/").concat(E.slice(4,6));if(!(0,y.default)(K,"YYYY/MM/DD"))return!1;for(var Y=E.split("").map(function(he){return parseInt(he,10)}),ce=[2,4,8,5,10,9,7,3,6],te=0,ie=0;ie<ce.length;ie++)te+=Y[ie]*ce[ie];return(te=te%11==10?0:te%11)===Y[9]},"cs-CZ":function(E){E=E.replace(/\W/,"");var S=parseInt(E.slice(0,2),10);if(E.length===10)S=S<54?"20".concat(S):"19".concat(S);else{if(E.slice(6)==="000"||!(S<54))return!1;S="19".concat(S)}S.length===3&&(S=[S.slice(0,2),"0",S.slice(2)].join(""));var L=parseInt(E.slice(2,4),10);if(L>50&&(L-=50),L>20){if(parseInt(S,10)<2004)return!1;L-=20}L<10&&(L="0".concat(L));var K="".concat(S,"/").concat(L,"/").concat(E.slice(4,6));if(!(0,y.default)(K,"YYYY/MM/DD"))return!1;if(E.length===10&&parseInt(E,10)%11!=0){var Y=parseInt(E.slice(0,9),10)%11;if(!(parseInt(S,10)<1986&&Y===10)||parseInt(E.slice(9),10)!==0)return!1}return!0},"de-AT":function(E){return B.luhnCheck(E)},"de-DE":function(E){for(var S=E.split("").map(function(he){return parseInt(he,10)}),L=[],K=0;K<S.length-1;K++){L.push("");for(var Y=0;Y<S.length-1;Y++)S[K]===S[Y]&&(L[K]+=Y)}if((L=L.filter(function(he){return he.length>1})).length!==2&&L.length!==3)return!1;if(L[0].length===3){for(var ce=L[0].split("").map(function(he){return parseInt(he,10)}),te=0,ie=0;ie<ce.length-1;ie++)ce[ie]+1===ce[ie+1]&&(te+=1);if(te===2)return!1}return B.iso7064Check(E)},"dk-DK":function(E){E=E.replace(/\W/,"");var S=parseInt(E.slice(4,6),10);switch(E.slice(6,7)){case"0":case"1":case"2":case"3":S="19".concat(S);break;case"4":case"9":S=S<37?"20".concat(S):"19".concat(S);break;default:if(S<37)S="20".concat(S);else{if(!(S>58))return!1;S="18".concat(S)}}S.length===3&&(S=[S.slice(0,2),"0",S.slice(2)].join(""));var L="".concat(S,"/").concat(E.slice(2,4),"/").concat(E.slice(0,2));if(!(0,y.default)(L,"YYYY/MM/DD"))return!1;for(var K=E.split("").map(function(ie){return parseInt(ie,10)}),Y=0,ce=4,te=0;te<9;te++)Y+=K[te]*ce,(ce-=1)==1&&(ce=7);return(Y%=11)!=1&&(Y===0?K[9]===0:K[9]===11-Y)},"el-CY":function(E){for(var S=E.slice(0,8).split("").map(function(ce){return parseInt(ce,10)}),L=0,K=1;K<S.length;K+=2)L+=S[K];for(var Y=0;Y<S.length;Y+=2)S[Y]<2?L+=1-S[Y]:(L+=2*(S[Y]-2)+5,S[Y]>4&&(L+=2));return String.fromCharCode(L%26+65)===E.charAt(8)},"el-GR":function(E){for(var S=E.split("").map(function(Y){return parseInt(Y,10)}),L=0,K=0;K<8;K++)L+=S[K]*Math.pow(2,8-K);return L%11%10===S[8]},"en-CA":function(E){var S=E.split(""),L=S.filter(function(K,Y){return Y%2}).map(function(K){return 2*Number(K)}).join("").split("");return S.filter(function(K,Y){return!(Y%2)}).concat(L).map(function(K){return Number(K)}).reduce(function(K,Y){return K+Y})%10==0},"en-IE":function(E){var S=B.reverseMultiplyAndSum(E.split("").slice(0,7).map(function(L){return parseInt(L,10)}),8);return E.length===9&&E[8]!=="W"&&(S+=9*(E[8].charCodeAt(0)-64)),(S%=23)==0?E[7].toUpperCase()==="W":E[7].toUpperCase()===String.fromCharCode(64+S)},"en-US":function(E){return(function(){var S,L=[];for(var K in G)G.hasOwnProperty(K)&&L.push.apply(L,(function(Y){if(Array.isArray(Y))return s(Y)})(S=G[K])||(function(Y){if(typeof Symbol<"u"&&Symbol.iterator in Object(Y))return Array.from(Y)})(S)||(function(Y,ce){if(Y){if(typeof Y=="string")return s(Y,ce);var te=Object.prototype.toString.call(Y).slice(8,-1);return te==="Object"&&Y.constructor&&(te=Y.constructor.name),te==="Map"||te==="Set"?Array.from(Y):te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te)?s(Y,ce):void 0}})(S)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})());return L})().indexOf(E.slice(0,2))!==-1},"es-ES":function(E){var S=E.toUpperCase().split("");if(isNaN(parseInt(S[0],10))&&S.length>1){var L=0;switch(S[0]){case"Y":L=1;break;case"Z":L=2}S.splice(0,1,L)}else for(;S.length<9;)S.unshift(0);S=S.join("");var K=parseInt(S.slice(0,8),10)%23;return S[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][K]},"et-EE":function(E){var S=E.slice(1,3);switch(E.slice(0,1)){case"1":case"2":S="18".concat(S);break;case"3":case"4":S="19".concat(S);break;default:S="20".concat(S)}var L="".concat(S,"/").concat(E.slice(3,5),"/").concat(E.slice(5,7));if(!(0,y.default)(L,"YYYY/MM/DD"))return!1;for(var K=E.split("").map(function(he){return parseInt(he,10)}),Y=0,ce=1,te=0;te<10;te++)Y+=K[te]*ce,(ce+=1)===10&&(ce=1);if(Y%11==10){Y=0,ce=3;for(var ie=0;ie<10;ie++)Y+=K[ie]*ce,(ce+=1)===10&&(ce=1);if(Y%11==10)return K[10]===0}return Y%11===K[10]},"fi-FI":function(E){var S=E.slice(4,6);switch(E.slice(6,7)){case"+":S="18".concat(S);break;case"-":S="19".concat(S);break;default:S="20".concat(S)}var L="".concat(S,"/").concat(E.slice(2,4),"/").concat(E.slice(0,2));if(!(0,y.default)(L,"YYYY/MM/DD"))return!1;var K=parseInt(E.slice(0,6)+E.slice(7,10),10)%31;return K<10?K===parseInt(E.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][K-=10]===E.slice(10)},"fr-BE":function(E){if(E.slice(2,4)!=="00"||E.slice(4,6)!=="00"){var S="".concat(E.slice(0,2),"/").concat(E.slice(2,4),"/").concat(E.slice(4,6));if(!(0,y.default)(S,"YY/MM/DD"))return!1}var L=97-parseInt(E.slice(0,9),10)%97,K=parseInt(E.slice(9,11),10);return L===K||(L=97-parseInt("2".concat(E.slice(0,9)),10)%97)===K},"fr-FR":function(E){return E=E.replace(/\s/g,""),parseInt(E.slice(0,10),10)%511===parseInt(E.slice(10,13),10)},"fr-LU":function(E){var S="".concat(E.slice(0,4),"/").concat(E.slice(4,6),"/").concat(E.slice(6,8));return!!(0,y.default)(S,"YYYY/MM/DD")&&!!B.luhnCheck(E.slice(0,12))&&B.verhoeffCheck("".concat(E.slice(0,11)).concat(E[12]))},"hr-HR":function(E){return B.iso7064Check(E)},"hu-HU":function(E){for(var S=E.split("").map(function(Y){return parseInt(Y,10)}),L=8,K=1;K<9;K++)L+=S[K]*(K+1);return L%11===S[9]},"it-IT":function(E){var S=E.toUpperCase().split("");if(!_(S.slice(0,3))||!_(S.slice(3,6)))return!1;for(var L={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},K=0,Y=[6,7,9,10,12,13,14];K<Y.length;K++){var ce=Y[K];S[ce]in L&&S.splice(ce,1,L[S[ce]])}var te={A:"01",B:"02",C:"03",D:"04",E:"05",H:"06",L:"07",M:"08",P:"09",R:"10",S:"11",T:"12"}[S[8]],ie=parseInt(S[9]+S[10],10);ie>40&&(ie-=40),ie<10&&(ie="0".concat(ie));var he="".concat(S[6]).concat(S[7],"/").concat(te,"/").concat(ie);if(!(0,y.default)(he,"YY/MM/DD"))return!1;for(var Xe=0,et=1;et<S.length-1;et+=2){var Ge=parseInt(S[et],10);isNaN(Ge)&&(Ge=S[et].charCodeAt(0)-65),Xe+=Ge}for(var Ze={A:1,B:0,C:5,D:7,E:9,F:13,G:15,H:17,I:19,J:21,K:2,L:4,M:18,N:20,O:11,P:3,Q:6,R:8,S:12,T:14,U:16,V:10,W:22,X:25,Y:24,Z:23,0:1,1:0},A=0;A<S.length-1;A+=2){var N=0;if(S[A]in Ze)N=Ze[S[A]];else{var D=parseInt(S[A],10);N=2*D+1,D>4&&(N+=2)}Xe+=N}return String.fromCharCode(65+Xe%26)===S[15]},"lv-LV":function(E){var S=(E=E.replace(/\W/,"")).slice(0,2);if(S!=="32"){if(E.slice(2,4)!=="00"){var L=E.slice(4,6);switch(E[6]){case"0":L="18".concat(L);break;case"1":L="19".concat(L);break;default:L="20".concat(L)}var K="".concat(L,"/").concat(E.slice(2,4),"/").concat(S);if(!(0,y.default)(K,"YYYY/MM/DD"))return!1}for(var Y=1101,ce=[1,6,3,7,9,10,5,8,4,2],te=0;te<E.length-1;te++)Y-=parseInt(E[te],10)*ce[te];return parseInt(E[10],10)===Y%11}return!0},"mt-MT":function(E){if(E.length!==9){for(var S=E.toUpperCase().split("");S.length<8;)S.unshift(0);switch(E[7]){case"A":case"P":if(parseInt(S[6],10)===0)return!1;break;default:var L=parseInt(S.join("").slice(0,5),10);if(L>32e3||L===parseInt(S.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(E){return B.reverseMultiplyAndSum(E.split("").slice(0,8).map(function(S){return parseInt(S,10)}),9)%11===parseInt(E[8],10)},"pl-PL":function(E){if(E.length===10){for(var S=[6,5,7,2,3,4,5,6,7],L=0,K=0;K<S.length;K++)L+=parseInt(E[K],10)*S[K];return(L%=11)!=10&&L===parseInt(E[9],10)}var Y=E.slice(0,2),ce=parseInt(E.slice(2,4),10);ce>80?(Y="18".concat(Y),ce-=80):ce>60?(Y="22".concat(Y),ce-=60):ce>40?(Y="21".concat(Y),ce-=40):ce>20?(Y="20".concat(Y),ce-=20):Y="19".concat(Y),ce<10&&(ce="0".concat(ce));var te="".concat(Y,"/").concat(ce,"/").concat(E.slice(4,6));if(!(0,y.default)(te,"YYYY/MM/DD"))return!1;for(var ie=0,he=1,Xe=0;Xe<E.length-1;Xe++)ie+=parseInt(E[Xe],10)*he%10,(he+=2)>10?he=1:he===5&&(he+=2);return(ie=10-ie%10)===parseInt(E[10],10)},"pt-BR":function(E){if(E.length===11){var S,L;if(S=0,E==="11111111111"||E==="22222222222"||E==="33333333333"||E==="44444444444"||E==="55555555555"||E==="66666666666"||E==="77777777777"||E==="88888888888"||E==="99999999999"||E==="00000000000")return!1;for(var K=1;K<=9;K++)S+=parseInt(E.substring(K-1,K),10)*(11-K);if((L=10*S%11)==10&&(L=0),L!==parseInt(E.substring(9,10),10))return!1;S=0;for(var Y=1;Y<=10;Y++)S+=parseInt(E.substring(Y-1,Y),10)*(12-Y);return(L=10*S%11)==10&&(L=0),L===parseInt(E.substring(10,11),10)}if(E==="00000000000000"||E==="11111111111111"||E==="22222222222222"||E==="33333333333333"||E==="44444444444444"||E==="55555555555555"||E==="66666666666666"||E==="77777777777777"||E==="88888888888888"||E==="99999999999999")return!1;for(var ce=E.length-2,te=E.substring(0,ce),ie=E.substring(ce),he=0,Xe=ce-7,et=ce;et>=1;et--)he+=te.charAt(ce-et)*Xe,(Xe-=1)<2&&(Xe=9);var Ge=he%11<2?0:11-he%11;if(Ge!==parseInt(ie.charAt(0),10))return!1;ce+=1,te=E.substring(0,ce),he=0,Xe=ce-7;for(var Ze=ce;Ze>=1;Ze--)he+=te.charAt(ce-Ze)*Xe,(Xe-=1)<2&&(Xe=9);return(Ge=he%11<2?0:11-he%11)===parseInt(ie.charAt(1),10)},"pt-PT":function(E){var S=11-B.reverseMultiplyAndSum(E.split("").slice(0,8).map(function(L){return parseInt(L,10)}),9)%11;return S>9?parseInt(E[8],10)===0:S===parseInt(E[8],10)},"ro-RO":function(E){if(E.slice(0,4)!=="9000"){var S=E.slice(1,3);switch(E[0]){case"1":case"2":S="19".concat(S);break;case"3":case"4":S="18".concat(S);break;case"5":case"6":S="20".concat(S)}var L="".concat(S,"/").concat(E.slice(3,5),"/").concat(E.slice(5,7));if(L.length===8){if(!(0,y.default)(L,"YY/MM/DD"))return!1}else if(!(0,y.default)(L,"YYYY/MM/DD"))return!1;for(var K=E.split("").map(function(ie){return parseInt(ie,10)}),Y=[2,7,9,1,4,6,3,5,8,2,7,9],ce=0,te=0;te<Y.length;te++)ce+=K[te]*Y[te];return ce%11==10?K[12]===1:K[12]===ce%11}return!0},"sk-SK":function(E){if(E.length===9){if((E=E.replace(/\W/,"")).slice(6)==="000")return!1;var S=parseInt(E.slice(0,2),10);if(S>53)return!1;S=S<10?"190".concat(S):"19".concat(S);var L=parseInt(E.slice(2,4),10);L>50&&(L-=50),L<10&&(L="0".concat(L));var K="".concat(S,"/").concat(L,"/").concat(E.slice(4,6));if(!(0,y.default)(K,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(E){var S=11-B.reverseMultiplyAndSum(E.split("").slice(0,7).map(function(L){return parseInt(L,10)}),8)%11;return S===10?parseInt(E[7],10)===0:S===parseInt(E[7],10)},"sv-SE":function(E){var S=E.slice(0);E.length>11&&(S=S.slice(2));var L="",K=S.slice(2,4),Y=parseInt(S.slice(4,6),10);if(E.length>11)L=E.slice(0,4);else if(L=E.slice(0,2),E.length===11&&Y<60){var ce=new Date().getFullYear().toString(),te=parseInt(ce.slice(0,2),10);if(ce=parseInt(ce,10),E[6]==="-")L=parseInt("".concat(te).concat(L),10)>ce?"".concat(te-1).concat(L):"".concat(te).concat(L);else if(L="".concat(te-1).concat(L),ce-parseInt(L,10)<100)return!1}Y>60&&(Y-=60),Y<10&&(Y="0".concat(Y));var ie="".concat(L,"/").concat(K,"/").concat(Y);if(ie.length===8){if(!(0,y.default)(ie,"YY/MM/DD"))return!1}else if(!(0,y.default)(ie,"YYYY/MM/DD"))return!1;return B.luhnCheck(E.replace(/\W/,""))}};Q["lb-LU"]=Q["fr-LU"],Q["lt-LT"]=Q["et-EE"],Q["nl-BE"]=Q["fr-BE"],Q["fr-CA"]=Q["en-CA"];var Ce=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,le={"de-AT":Ce,"de-DE":/[\/\\]/g,"fr-BE":Ce};le["nl-BE"]=le["fr-BE"],V.exports=v.default,V.exports.default=v.default},3494:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t,o){return o=(0,W.default)(o,B),typeof t=="string"&&y[o.hourFormat][o.mode].test(t)};var i,W=(i=k(4808))&&i.__esModule?i:{default:i},B={hourFormat:"hour24",mode:"default"},y={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/}};V.exports=v.default,V.exports.default=v.default},2492:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(ee,Q){if((0,i.default)(ee),!ee||/[\s<>]/.test(ee)||ee.indexOf("mailto:")===0||(Q=(0,y.default)(Q,s)).validate_length&&ee.length>=2083||!Q.allow_fragments&&ee.includes("#")||!Q.allow_query_components&&(ee.includes("?")||ee.includes("&")))return!1;var Ce,le,E,S,L,K,Y,ce,te;if(Y=ee.split("#"),ee=Y.shift(),Y=ee.split("?"),ee=Y.shift(),(Y=ee.split("://")).length>1){if(Ce=Y.shift().toLowerCase(),Q.require_valid_protocol&&Q.protocols.indexOf(Ce)===-1)return!1}else{if(Q.require_protocol)return!1;if(ee.slice(0,2)==="//"){if(!Q.allow_protocol_relative_urls)return!1;Y[0]=ee.slice(2)}}if((ee=Y.join("://"))==="")return!1;if(Y=ee.split("/"),(ee=Y.shift())===""&&!Q.require_host)return!0;if((Y=ee.split("@")).length>1){if(Q.disallow_auth||Y[0]===""||(le=Y.shift()).indexOf(":")>=0&&le.split(":").length>2)return!1;var ie=(function(Ge){if(Array.isArray(Ge))return Ge})(te=le.split(":"))||(function(Ge,Ze){if(typeof Symbol<"u"&&Symbol.iterator in Object(Ge)){var A=[],N=!0,D=!1,F=void 0;try{for(var P,R=Ge[Symbol.iterator]();!(N=(P=R.next()).done)&&(A.push(P.value),A.length!==2);N=!0);}catch(oe){D=!0,F=oe}finally{try{N||R.return==null||R.return()}finally{if(D)throw F}}return A}})(te)||(function(Ge,Ze){if(Ge){if(typeof Ge=="string")return o(Ge,2);var A=Object.prototype.toString.call(Ge).slice(8,-1);return A==="Object"&&Ge.constructor&&(A=Ge.constructor.name),A==="Map"||A==="Set"?Array.from(Ge):A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?o(Ge,2):void 0}})(te)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})(),he=ie[0],Xe=ie[1];if(he===""&&Xe==="")return!1}K=null,ce=null;var et=(S=Y.join("@")).match(G);if(et?(E="",ce=et[1],K=et[2]||null):(E=(Y=S.split(":")).shift(),Y.length&&(K=Y.join(":"))),K!==null&&K.length>0){if(L=parseInt(K,10),!/^[0-9]+$/.test(K)||L<=0||L>65535)return!1}else if(Q.require_port)return!1;return Q.host_whitelist?_(E,Q.host_whitelist):E===""&&!Q.require_host||!!((0,B.default)(E)||(0,W.default)(E,Q)||ce&&(0,B.default)(ce,6))&&(E=E||ce,!Q.host_blacklist||!_(E,Q.host_blacklist))};var i=t(k(5571)),W=t(k(221)),B=t(k(1028)),y=t(k(4808));function t(ee){return ee&&ee.__esModule?ee:{default:ee}}function o(ee,Q){(Q==null||Q>ee.length)&&(Q=ee.length);for(var Ce=0,le=new Array(Q);Ce<Q;Ce++)le[Ce]=ee[Ce];return le}var s={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},G=/^\[([^\]]+)\](?::([0-9]+))?$/;function _(ee,Q){for(var Ce=0;Ce<Q.length;Ce++){var le=Q[Ce];if(ee===le||(E=le,Object.prototype.toString.call(E)==="[object RegExp]"&&le.test(ee)))return!0}var E;return!1}V.exports=v.default,V.exports.default=v.default},7278:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y,t){(0,W.default)(y);var o=B[[void 0,null].includes(t)?"all":t];return!!o&&o.test(y)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};V.exports=v.default,V.exports.default=v.default},7245:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B){return(0,W.default)(B),B===B.toUpperCase()};var i,W=(i=k(5571))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},5977:(V,v,k)=>{function i(s){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},i(s)}Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(s,G){if((0,B.default)(s),(0,B.default)(G),G in o)return o[G](s);throw new Error("Invalid country code: '".concat(G,"'"))},v.vatMatchers=void 0;var W,B=(W=k(5571))&&W.__esModule?W:{default:W},y=(function(s){if(s&&s.__esModule)return s;if(s===null||i(s)!=="object"&&typeof s!="function")return{default:s};var G=t();if(G&&G.has(s))return G.get(s);var _={},ee=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Q in s)if(Object.prototype.hasOwnProperty.call(s,Q)){var Ce=ee?Object.getOwnPropertyDescriptor(s,Q):null;Ce&&(Ce.get||Ce.set)?Object.defineProperty(_,Q,Ce):_[Q]=s[Q]}return _.default=s,G&&G.set(s,_),_})(k(3672));function t(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return t=function(){return s},s}var o={AT:function(s){return/^(AT)?U\d{8}$/.test(s)},BE:function(s){return/^(BE)?\d{10}$/.test(s)},BG:function(s){return/^(BG)?\d{9,10}$/.test(s)},HR:function(s){return/^(HR)?\d{11}$/.test(s)},CY:function(s){return/^(CY)?\w{9}$/.test(s)},CZ:function(s){return/^(CZ)?\d{8,10}$/.test(s)},DK:function(s){return/^(DK)?\d{8}$/.test(s)},EE:function(s){return/^(EE)?\d{9}$/.test(s)},FI:function(s){return/^(FI)?\d{8}$/.test(s)},FR:function(s){return/^(FR)?\w{2}\d{9}$/.test(s)},DE:function(s){return/^(DE)?\d{9}$/.test(s)},EL:function(s){return/^(EL)?\d{9}$/.test(s)},HU:function(s){return/^(HU)?\d{8}$/.test(s)},IE:function(s){return/^(IE)?\d{7}\w{1}(W)?$/.test(s)},IT:function(s){return/^(IT)?\d{11}$/.test(s)},LV:function(s){return/^(LV)?\d{11}$/.test(s)},LT:function(s){return/^(LT)?\d{9,12}$/.test(s)},LU:function(s){return/^(LU)?\d{8}$/.test(s)},MT:function(s){return/^(MT)?\d{8}$/.test(s)},NL:function(s){return/^(NL)?\d{9}B\d{2}$/.test(s)},PL:function(s){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(s)},PT:function(s){var G=s.match(/^(PT)?(\d{9})$/);if(!G)return!1;var _=G[2],ee=11-y.reverseMultiplyAndSum(_.split("").slice(0,8).map(function(Q){return parseInt(Q,10)}),9)%11;return ee>9?parseInt(_[8],10)===0:ee===parseInt(_[8],10)},RO:function(s){return/^(RO)?\d{2,10}$/.test(s)},SK:function(s){return/^(SK)?\d{10}$/.test(s)},SI:function(s){return/^(SI)?\d{8}$/.test(s)},ES:function(s){return/^(ES)?\w\d{7}[A-Z]$/.test(s)},SE:function(s){return/^(SE)?\d{12}$/.test(s)},AL:function(s){return/^(AL)?\w{9}[A-Z]$/.test(s)},MK:function(s){return/^(MK)?\d{13}$/.test(s)},AU:function(s){return/^(AU)?\d{11}$/.test(s)},BY:function(s){return/^(УНП )?\d{9}$/.test(s)},CA:function(s){return/^(CA)?\d{9}$/.test(s)},IS:function(s){return/^(IS)?\d{5,6}$/.test(s)},IN:function(s){return/^(IN)?\d{15}$/.test(s)},ID:function(s){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(s)},IL:function(s){return/^(IL)?\d{9}$/.test(s)},KZ:function(s){return/^(KZ)?\d{9}$/.test(s)},NZ:function(s){return/^(NZ)?\d{9}$/.test(s)},NG:function(s){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(s)},NO:function(s){return/^(NO)?\d{9}MVA$/.test(s)},PH:function(s){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(s)},RU:function(s){return/^(RU)?(\d{10}|\d{12})$/.test(s)},SM:function(s){return/^(SM)?\d{5}$/.test(s)},SA:function(s){return/^(SA)?\d{15}$/.test(s)},RS:function(s){return/^(RS)?\d{9}$/.test(s)},CH:function(s){return/^(CH)?(\d{6}|\d{9}|(\d{3}.\d{3})|(\d{3}.\d{3}.\d{3}))(TVA|MWST|IVA)$/.test(s)},TR:function(s){return/^(TR)?\d{10}$/.test(s)},UA:function(s){return/^(UA)?\d{12}$/.test(s)},GB:function(s){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(s)},UZ:function(s){return/^(UZ)?\d{9}$/.test(s)},AR:function(s){return/^(AR)?\d{11}$/.test(s)},BO:function(s){return/^(BO)?\d{7}$/.test(s)},BR:function(s){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(s)},CL:function(s){return/^(CL)?\d{8}-\d{1}$/.test(s)},CO:function(s){return/^(CO)?\d{10}$/.test(s)},CR:function(s){return/^(CR)?\d{9,12}$/.test(s)},EC:function(s){return/^(EC)?\d{13}$/.test(s)},SV:function(s){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(s)},GT:function(s){return/^(GT)?\d{7}-\d{1}$/.test(s)},HN:function(s){return/^(HN)?$/.test(s)},MX:function(s){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(s)},NI:function(s){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(s)},PA:function(s){return/^(PA)?$/.test(s)},PY:function(s){return/^(PY)?\d{6,8}-\d{1}$/.test(s)},PE:function(s){return/^(PE)?\d{11}$/.test(s)},DO:function(s){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(s)},UY:function(s){return/^(UY)?\d{12}$/.test(s)},VE:function(s){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(s)}};v.vatMatchers=o},9019:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(t){return(0,W.default)(t),B.fullWidth.test(t)&&y.halfWidth.test(t)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i},B=k(7146),y=k(2941);V.exports=v.default,V.exports.default=v.default},8346:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B,y){(0,W.default)(B);for(var t=B.length-1;t>=0;t--)if(y.indexOf(B[t])===-1)return!1;return!0};var i,W=(i=k(5571))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},4959:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B,y){(0,W.default)(B);var t=y?new RegExp("^[".concat(y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return B.replace(t,"")};var i,W=(i=k(5571))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},661:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B,y,t){return(0,W.default)(B),Object.prototype.toString.call(y)!=="[object RegExp]"&&(y=new RegExp(y,t)),!!B.match(y)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},2900:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(_,ee){ee=(0,W.default)(ee,B);var Q=_.split("@"),Ce=Q.pop(),le=[Q.join("@"),Ce];if(le[1]=le[1].toLowerCase(),le[1]==="gmail.com"||le[1]==="googlemail.com"){if(ee.gmail_remove_subaddress&&(le[0]=le[0].split("+")[0]),ee.gmail_remove_dots&&(le[0]=le[0].replace(/\.+/g,G)),!le[0].length)return!1;(ee.all_lowercase||ee.gmail_lowercase)&&(le[0]=le[0].toLowerCase()),le[1]=ee.gmail_convert_googlemaildotcom?"gmail.com":le[1]}else if(y.indexOf(le[1])>=0){if(ee.icloud_remove_subaddress&&(le[0]=le[0].split("+")[0]),!le[0].length)return!1;(ee.all_lowercase||ee.icloud_lowercase)&&(le[0]=le[0].toLowerCase())}else if(t.indexOf(le[1])>=0){if(ee.outlookdotcom_remove_subaddress&&(le[0]=le[0].split("+")[0]),!le[0].length)return!1;(ee.all_lowercase||ee.outlookdotcom_lowercase)&&(le[0]=le[0].toLowerCase())}else if(o.indexOf(le[1])>=0){if(ee.yahoo_remove_subaddress){var E=le[0].split("-");le[0]=E.length>1?E.slice(0,-1).join("-"):E[0]}if(!le[0].length)return!1;(ee.all_lowercase||ee.yahoo_lowercase)&&(le[0]=le[0].toLowerCase())}else s.indexOf(le[1])>=0?((ee.all_lowercase||ee.yandex_lowercase)&&(le[0]=le[0].toLowerCase()),le[1]="yandex.ru"):ee.all_lowercase&&(le[0]=le[0].toLowerCase());return le.join("@")};var i,W=(i=k(4808))&&i.__esModule?i:{default:i},B={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},y=["icloud.com","me.com"],t=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],o=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],s=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function G(_){return _.length>1?_:""}V.exports=v.default,V.exports.default=v.default},9778:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B,y){if((0,W.default)(B),y){var t=new RegExp("[".concat(y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return B.replace(t,"")}for(var o=B.length-1;/\s/.test(B.charAt(o));)o-=1;return B.slice(0,o+1)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},8035:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y,t){(0,i.default)(y);var o=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,W.default)(y,o)};var i=B(k(5571)),W=B(k(4928));function B(y){return y&&y.__esModule?y:{default:y}}V.exports=v.default,V.exports.default=v.default},557:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B,y){return(0,W.default)(B),y?B==="1"||/^true$/i.test(B):B!=="0"&&!/^false$/i.test(B)&&B!==""};var i,W=(i=k(5571))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},8469:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B){return(0,W.default)(B),B=Date.parse(B),isNaN(B)?null:new Date(B)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},7536:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B){return(0,W.default)(B)?parseFloat(B):NaN};var i,W=(i=k(9146))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},1359:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B,y){return(0,W.default)(B),parseInt(B,y||10)};var i,W=(i=k(5571))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},4790:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(y,t){return(0,i.default)((0,W.default)(y,t),t)};var i=B(k(9778)),W=B(k(4959));function B(y){return y&&y.__esModule?y:{default:y}}V.exports=v.default,V.exports.default=v.default},4816:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B){return(0,W.default)(B),B.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var i,W=(i=k(5571))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},3672:(V,v)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.iso7064Check=function(k){for(var i=10,W=0;W<k.length-1;W++)i=(parseInt(k[W],10)+i)%10==0?9:(parseInt(k[W],10)+i)%10*2%11;return(i=i===1?0:11-i)===parseInt(k[10],10)},v.luhnCheck=function(k){for(var i=0,W=!1,B=k.length-1;B>=0;B--){if(W){var y=2*parseInt(k[B],10);i+=y>9?y.toString().split("").map(function(t){return parseInt(t,10)}).reduce(function(t,o){return t+o},0):y}else i+=parseInt(k[B],10);W=!W}return i%10==0},v.reverseMultiplyAndSum=function(k,i){for(var W=0,B=0;B<k.length;B++)W+=k[B]*(i-B);return W},v.verhoeffCheck=function(k){for(var i=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],W=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],B=k.split("").reverse().join(""),y=0,t=0;t<B.length;t++)y=i[y][W[t%8][parseInt(B[t],10)]];return y===0}},5571:(V,v)=>{function k(i){return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},k(i)}Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(i){if(!(typeof i=="string"||i instanceof String)){var W=k(i);throw i===null?W="null":W==="object"&&(W=i.constructor.name),new TypeError("Expected a string but received a ".concat(W))}},V.exports=v.default,V.exports.default=v.default},8343:(V,v)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0,v.default=function(k,i){return k.some(function(W){return i===W})},V.exports=v.default,V.exports.default=v.default},4808:(V,v)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;for(var W in i)k[W]===void 0&&(k[W]=i[W]);return k},V.exports=v.default,V.exports.default=v.default},4731:(V,v)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(k,i){var W=k.join("");return new RegExp(W,i)},V.exports=v.default,V.exports.default=v.default},1913:(V,v)=>{function k(i){return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},k(i)}Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(i){return k(i)==="object"&&i!==null?i=typeof i.toString=="function"?i.toString():"[object Object]":(i==null||isNaN(i)&&!i.length)&&(i=""),String(i)},V.exports=v.default,V.exports.default=v.default},4714:(V,v,k)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(B,y){return(0,W.default)(B),B.replace(new RegExp("[^".concat(y,"]+"),"g"),"")};var i,W=(i=k(5571))&&i.__esModule?i:{default:i};V.exports=v.default,V.exports.default=v.default},5856:()=>{},6601:()=>{},7061:(V,v,k)=>{var i=k(8698).default;function W(){V.exports=W=function(){return B},V.exports.__esModule=!0,V.exports.default=V.exports;var B={},y=Object.prototype,t=y.hasOwnProperty,o=Object.defineProperty||function(P,R,oe){P[R]=oe.value},s=typeof Symbol=="function"?Symbol:{},G=s.iterator||"@@iterator",_=s.asyncIterator||"@@asyncIterator",ee=s.toStringTag||"@@toStringTag";function Q(P,R,oe){return Object.defineProperty(P,R,{value:oe,enumerable:!0,configurable:!0,writable:!0}),P[R]}try{Q({},"")}catch{Q=function(P,R,oe){return P[R]=oe}}function Ce(P,R,oe,Te){var C=R&&R.prototype instanceof S?R:S,ue=Object.create(C.prototype),We=new N(Te||[]);return o(ue,"_invoke",{value:et(P,oe,We)}),ue}function le(P,R,oe){try{return{type:"normal",arg:P.call(R,oe)}}catch(Te){return{type:"throw",arg:Te}}}B.wrap=Ce;var E={};function S(){}function L(){}function K(){}var Y={};Q(Y,G,function(){return this});var ce=Object.getPrototypeOf,te=ce&&ce(ce(D([])));te&&te!==y&&t.call(te,G)&&(Y=te);var ie=K.prototype=S.prototype=Object.create(Y);function he(P){["next","throw","return"].forEach(function(R){Q(P,R,function(oe){return this._invoke(R,oe)})})}function Xe(P,R){function oe(C,ue,We,ge){var Ie=le(P[C],P,ue);if(Ie.type!=="throw"){var ze=Ie.arg,$e=ze.value;return $e&&i($e)=="object"&&t.call($e,"__await")?R.resolve($e.__await).then(function(nt){oe("next",nt,We,ge)},function(nt){oe("throw",nt,We,ge)}):R.resolve($e).then(function(nt){ze.value=nt,We(ze)},function(nt){return oe("throw",nt,We,ge)})}ge(Ie.arg)}var Te;o(this,"_invoke",{value:function(C,ue){function We(){return new R(function(ge,Ie){oe(C,ue,ge,Ie)})}return Te=Te?Te.then(We,We):We()}})}function et(P,R,oe){var Te="suspendedStart";return function(C,ue){if(Te==="executing")throw new Error("Generator is already running");if(Te==="completed"){if(C==="throw")throw ue;return{value:void 0,done:!0}}for(oe.method=C,oe.arg=ue;;){var We=oe.delegate;if(We){var ge=Ge(We,oe);if(ge){if(ge===E)continue;return ge}}if(oe.method==="next")oe.sent=oe._sent=oe.arg;else if(oe.method==="throw"){if(Te==="suspendedStart")throw Te="completed",oe.arg;oe.dispatchException(oe.arg)}else oe.method==="return"&&oe.abrupt("return",oe.arg);Te="executing";var Ie=le(P,R,oe);if(Ie.type==="normal"){if(Te=oe.done?"completed":"suspendedYield",Ie.arg===E)continue;return{value:Ie.arg,done:oe.done}}Ie.type==="throw"&&(Te="completed",oe.method="throw",oe.arg=Ie.arg)}}}function Ge(P,R){var oe=R.method,Te=P.iterator[oe];if(Te===void 0)return R.delegate=null,oe==="throw"&&P.iterator.return&&(R.method="return",R.arg=void 0,Ge(P,R),R.method==="throw")||oe!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+oe+"' method")),E;var C=le(Te,P.iterator,R.arg);if(C.type==="throw")return R.method="throw",R.arg=C.arg,R.delegate=null,E;var ue=C.arg;return ue?ue.done?(R[P.resultName]=ue.value,R.next=P.nextLoc,R.method!=="return"&&(R.method="next",R.arg=void 0),R.delegate=null,E):ue:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,E)}function Ze(P){var R={tryLoc:P[0]};1 in P&&(R.catchLoc=P[1]),2 in P&&(R.finallyLoc=P[2],R.afterLoc=P[3]),this.tryEntries.push(R)}function A(P){var R=P.completion||{};R.type="normal",delete R.arg,P.completion=R}function N(P){this.tryEntries=[{tryLoc:"root"}],P.forEach(Ze,this),this.reset(!0)}function D(P){if(P){var R=P[G];if(R)return R.call(P);if(typeof P.next=="function")return P;if(!isNaN(P.length)){var oe=-1,Te=function C(){for(;++oe<P.length;)if(t.call(P,oe))return C.value=P[oe],C.done=!1,C;return C.value=void 0,C.done=!0,C};return Te.next=Te}}return{next:F}}function F(){return{value:void 0,done:!0}}return L.prototype=K,o(ie,"constructor",{value:K,configurable:!0}),o(K,"constructor",{value:L,configurable:!0}),L.displayName=Q(K,ee,"GeneratorFunction"),B.isGeneratorFunction=function(P){var R=typeof P=="function"&&P.constructor;return!!R&&(R===L||(R.displayName||R.name)==="GeneratorFunction")},B.mark=function(P){return Object.setPrototypeOf?Object.setPrototypeOf(P,K):(P.__proto__=K,Q(P,ee,"GeneratorFunction")),P.prototype=Object.create(ie),P},B.awrap=function(P){return{__await:P}},he(Xe.prototype),Q(Xe.prototype,_,function(){return this}),B.AsyncIterator=Xe,B.async=function(P,R,oe,Te,C){C===void 0&&(C=Promise);var ue=new Xe(Ce(P,R,oe,Te),C);return B.isGeneratorFunction(R)?ue:ue.next().then(function(We){return We.done?We.value:ue.next()})},he(ie),Q(ie,ee,"Generator"),Q(ie,G,function(){return this}),Q(ie,"toString",function(){return"[object Generator]"}),B.keys=function(P){var R=Object(P),oe=[];for(var Te in R)oe.push(Te);return oe.reverse(),function C(){for(;oe.length;){var ue=oe.pop();if(ue in R)return C.value=ue,C.done=!1,C}return C.done=!0,C}},B.values=D,N.prototype={constructor:N,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!P)for(var R in this)R.charAt(0)==="t"&&t.call(this,R)&&!isNaN(+R.slice(1))&&(this[R]=void 0)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var R=this;function oe(Ie,ze){return ue.type="throw",ue.arg=P,R.next=Ie,ze&&(R.method="next",R.arg=void 0),!!ze}for(var Te=this.tryEntries.length-1;Te>=0;--Te){var C=this.tryEntries[Te],ue=C.completion;if(C.tryLoc==="root")return oe("end");if(C.tryLoc<=this.prev){var We=t.call(C,"catchLoc"),ge=t.call(C,"finallyLoc");if(We&&ge){if(this.prev<C.catchLoc)return oe(C.catchLoc,!0);if(this.prev<C.finallyLoc)return oe(C.finallyLoc)}else if(We){if(this.prev<C.catchLoc)return oe(C.catchLoc,!0)}else{if(!ge)throw new Error("try statement without catch or finally");if(this.prev<C.finallyLoc)return oe(C.finallyLoc)}}}},abrupt:function(P,R){for(var oe=this.tryEntries.length-1;oe>=0;--oe){var Te=this.tryEntries[oe];if(Te.tryLoc<=this.prev&&t.call(Te,"finallyLoc")&&this.prev<Te.finallyLoc){var C=Te;break}}C&&(P==="break"||P==="continue")&&C.tryLoc<=R&&R<=C.finallyLoc&&(C=null);var ue=C?C.completion:{};return ue.type=P,ue.arg=R,C?(this.method="next",this.next=C.finallyLoc,E):this.complete(ue)},complete:function(P,R){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&R&&(this.next=R),E},finish:function(P){for(var R=this.tryEntries.length-1;R>=0;--R){var oe=this.tryEntries[R];if(oe.finallyLoc===P)return this.complete(oe.completion,oe.afterLoc),A(oe),E}},catch:function(P){for(var R=this.tryEntries.length-1;R>=0;--R){var oe=this.tryEntries[R];if(oe.tryLoc===P){var Te=oe.completion;if(Te.type==="throw"){var C=Te.arg;A(oe)}return C}}throw new Error("illegal catch attempt")},delegateYield:function(P,R,oe){return this.delegate={iterator:D(P),resultName:R,nextLoc:oe},this.method==="next"&&(this.arg=void 0),E}},B}V.exports=W,V.exports.__esModule=!0,V.exports.default=V.exports},8698:V=>{function v(k){return V.exports=v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},V.exports.__esModule=!0,V.exports.default=V.exports,v(k)}V.exports=v,V.exports.__esModule=!0,V.exports.default=V.exports},4687:(V,v,k)=>{var i=k(7061)();V.exports=i;try{regeneratorRuntime=i}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}}},Ye={};function Ve(V){var v=Ye[V];if(v!==void 0)return v.exports;var k=Ye[V]={id:V,loaded:!1,exports:{}};return at[V].call(k.exports,k,k.exports,Ve),k.loaded=!0,k.exports}Ve.amdO={},Ve.n=V=>{var v=V&&V.__esModule?()=>V.default:()=>V;return Ve.d(v,{a:v}),v},Ke=Object.getPrototypeOf?V=>Object.getPrototypeOf(V):V=>V.__proto__,Ve.t=function(V,v){if(1&v&&(V=this(V)),8&v||typeof V=="object"&&V&&(4&v&&V.__esModule||16&v&&typeof V.then=="function"))return V;var k=Object.create(null);Ve.r(k);var i={};Me=Me||[null,Ke({}),Ke([]),Ke(Ke)];for(var W=2&v&&V;typeof W=="object"&&!~Me.indexOf(W);W=Ke(W))Object.getOwnPropertyNames(W).forEach(B=>i[B]=()=>V[B]);return i.default=()=>V,Ve.d(k,i),k},Ve.d=(V,v)=>{for(var k in v)Ve.o(v,k)&&!Ve.o(V,k)&&Object.defineProperty(V,k,{enumerable:!0,get:v[k]})},Ve.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),Ve.o=(V,v)=>Object.prototype.hasOwnProperty.call(V,v),Ve.r=V=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(V,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(V,"__esModule",{value:!0})},Ve.nmd=V=>(V.paths=[],V.children||(V.children=[]),V);var Mt={};return(()=>{Ve.d(Mt,{default:()=>vr});var V={};Ve.r(V),Ve.d(V,{hasBrowserEnv:()=>Or,hasStandardBrowserEnv:()=>Rt,hasStandardBrowserWebWorkerEnv:()=>Wr});var v={};Ve.r(v),Ve.d(v,{base64DecodeFromString:()=>na,base64EncodeToString:()=>Uu,byte2hexStr:()=>Hi,byteArray2hexStr:()=>Wn,bytesToString:()=>Du,hextoString:()=>ql});var k={};Ve.r(k),Ve.d(k,{arrayEquals:()=>zg,base64DecodeFromString:()=>na,base64EncodeToString:()=>Uu,bin2String:()=>jg,byte2hexStr:()=>Hi,byteArray2hexStr:()=>Wn,bytesToString:()=>Du,getStringType:()=>$g,hexChar2byte:()=>Xl,hexStr2byteArray:()=>Zn,hextoString:()=>ql,isHexChar:()=>zu,isNumber:()=>Ql,strToDate:()=>Gg,stringToBytes:()=>Vg});var i={};Ve.r(i),Ve.d(i,{decode58:()=>Zi,encode58:()=>ef});var W={};Ve.r(W),Ve.d(W,{AbiCoder:()=>Ac,FormatTypes:()=>s2,Interface:()=>a2,Mnemonic:()=>Ia,Signature:()=>Cn,SigningKey:()=>Rn,Wordlist:()=>Kf,arrayify:()=>Sp,concat:()=>Sr,ethersHDNodeWallet:()=>ha,ethersWallet:()=>ep,id:()=>Sn,isValidMnemonic:()=>u2,joinSignature:()=>kp,keccak256:()=>rr,recoverAddress:()=>Ra,sha256:()=>cn,splitSignature:()=>i2,toUtf8Bytes:()=>mn,toUtf8String:()=>_f,wordlists:()=>K1});var B={};Ve.r(B),Ve.d(B,{ECKeySign:()=>tl,SHA256:()=>yo,_signTypedData:()=>b2,arrayToBase64String:()=>m2,computeAddress:()=>Ni,decode58Check:()=>A2,decodeBase58Address:()=>g2,ecRecover:()=>el,genPriKey:()=>Gp,getAddressFromPriKey:()=>fu,getAddressFromPriKeyBase64String:()=>B2,getBase58CheckAddress:()=>Ka,getBase58CheckAddressFromPriKeyBase64String:()=>P2,getHexStrAddressFromPriKeyBase64String:()=>W2,getPubKeyFromPriKey:()=>Za,getRowBytesFromTransactionBase64:()=>T2,isAddressValid:()=>w2,passwordToAddress:()=>C2,pkToAddress:()=>rl,signBytes:()=>v2,signTransaction:()=>y2});var y={};Ve.r(y),Ve.d(y,{generateAccount:()=>E2,generateAccountWithMnemonic:()=>O2,generateRandom:()=>M2});var t={};Ve.r(t),Ve.d(t,{decodeParams:()=>X2,decodeParamsV2ByABI:()=>g0,encodeParams:()=>Q2,encodeParamsV2ByABI:()=>wu});var o={};Ve.r(o),Ve.d(o,{TRON_MESSAGE_PREFIX:()=>y0,hashMessage:()=>hl,signMessage:()=>em,verifyMessage:()=>tm});var s={};function G(r,e,n,a,c,u,d){try{var h=r[u](d),l=h.value}catch(g){return void n(g)}h.done?e(l):Promise.resolve(l).then(a,c)}function _(r){return function(){var e=this,n=arguments;return new Promise(function(a,c){var u=r.apply(e,n);function d(l){G(u,a,c,d,h,"next",l)}function h(l){G(u,a,c,d,h,"throw",l)}d(void 0)})}}function ee(r){return ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(r)}function Q(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Ce(r){var e=(function(n,a){if(ee(n)!=="object"||n===null)return n;var c=n[Symbol.toPrimitive];if(c!==void 0){var u=c.call(n,"string");if(ee(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)})(r);return ee(e)==="symbol"?e:String(e)}function le(r,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,Ce(a.key),a)}}function E(r,e,n){return e&&le(r.prototype,e),n&&le(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}function S(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function L(r,e){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},L(r,e)}function K(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&L(r,e)}function Y(r,e){if(e&&(ee(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(r)}function ce(r){return ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ce(r)}function te(r,e,n){return(e=Ce(e))in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}Ve.r(s),Ve.d(s,{txCheck:()=>Cu,txCheckWithArgs:()=>ml,txJsonToPb:()=>yl,txJsonToPbWithArgs:()=>W0,txPbToRawDataHex:()=>C0,txPbToTxID:()=>E0});var ie=Ve(4687),he=Ve.n(ie);function Xe(r,e){return function(){return r.apply(e,arguments)}}const{toString:et}=Object.prototype,{getPrototypeOf:Ge}=Object,Ze=(A=Object.create(null),r=>{const e=et.call(r);return A[e]||(A[e]=e.slice(8,-1).toLowerCase())});var A;const N=r=>(r=r.toLowerCase(),e=>Ze(e)===r),D=r=>e=>typeof e===r,{isArray:F}=Array,P=D("undefined"),R=N("ArrayBuffer"),oe=D("string"),Te=D("function"),C=D("number"),ue=r=>r!==null&&typeof r=="object",We=r=>{if(Ze(r)!=="object")return!1;const e=Ge(r);return!(e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.toStringTag in r||Symbol.iterator in r)},ge=N("Date"),Ie=N("File"),ze=N("Blob"),$e=N("FileList"),nt=N("URLSearchParams");function ut(r,e,{allOwnKeys:n=!1}={}){if(r==null)return;let a,c;if(typeof r!="object"&&(r=[r]),F(r))for(a=0,c=r.length;a<c;a++)e.call(null,r[a],a,r);else{const u=n?Object.getOwnPropertyNames(r):Object.keys(r),d=u.length;let h;for(a=0;a<d;a++)h=u[a],e.call(null,r[h],h,r)}}function ft(r,e){e=e.toLowerCase();const n=Object.keys(r);let a,c=n.length;for(;c-- >0;)if(a=n[c],e===a.toLowerCase())return a;return null}const pt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:_r.commonjsGlobal,Lt=r=>!P(r)&&r!==pt,$t=(It=typeof Uint8Array<"u"&&Ge(Uint8Array),r=>It&&r instanceof It);var It;const br=N("HTMLFormElement"),ct=(({hasOwnProperty:r})=>(e,n)=>r.call(e,n))(Object.prototype),Ht=N("RegExp"),kr=(r,e)=>{const n=Object.getOwnPropertyDescriptors(r),a={};ut(n,(c,u)=>{let d;(d=e(c,u,r))!==!1&&(a[u]=d||c)}),Object.defineProperties(r,a)},Ft="abcdefghijklmnopqrstuvwxyz",Kt="0123456789",Pr={DIGIT:Kt,ALPHA:Ft,ALPHA_DIGIT:Ft+Ft.toUpperCase()+Kt},qt=N("AsyncFunction"),He={isArray:F,isArrayBuffer:R,isBuffer:function(r){return r!==null&&!P(r)&&r.constructor!==null&&!P(r.constructor)&&Te(r.constructor.isBuffer)&&r.constructor.isBuffer(r)},isFormData:r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||Te(r.append)&&((e=Ze(r))==="formdata"||e==="object"&&Te(r.toString)&&r.toString()==="[object FormData]"))},isArrayBufferView:function(r){let e;return e=typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(r):r&&r.buffer&&R(r.buffer),e},isString:oe,isNumber:C,isBoolean:r=>r===!0||r===!1,isObject:ue,isPlainObject:We,isUndefined:P,isDate:ge,isFile:Ie,isBlob:ze,isRegExp:Ht,isFunction:Te,isStream:r=>ue(r)&&Te(r.pipe),isURLSearchParams:nt,isTypedArray:$t,isFileList:$e,forEach:ut,merge:function r(){const{caseless:e}=Lt(this)&&this||{},n={},a=(c,u)=>{const d=e&&ft(n,u)||u;We(n[d])&&We(c)?n[d]=r(n[d],c):We(c)?n[d]=r({},c):F(c)?n[d]=c.slice():n[d]=c};for(let c=0,u=arguments.length;c<u;c++)arguments[c]&&ut(arguments[c],a);return n},extend:(r,e,n,{allOwnKeys:a}={})=>(ut(e,(c,u)=>{n&&Te(c)?r[u]=Xe(c,n):r[u]=c},{allOwnKeys:a}),r),trim:r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),inherits:(r,e,n,a)=>{r.prototype=Object.create(e.prototype,a),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),n&&Object.assign(r.prototype,n)},toFlatObject:(r,e,n,a)=>{let c,u,d;const h={};if(e=e||{},r==null)return e;do{for(c=Object.getOwnPropertyNames(r),u=c.length;u-- >0;)d=c[u],a&&!a(d,r,e)||h[d]||(e[d]=r[d],h[d]=!0);r=n!==!1&&Ge(r)}while(r&&(!n||n(r,e))&&r!==Object.prototype);return e},kindOf:Ze,kindOfTest:N,endsWith:(r,e,n)=>{r=String(r),(n===void 0||n>r.length)&&(n=r.length),n-=e.length;const a=r.indexOf(e,n);return a!==-1&&a===n},toArray:r=>{if(!r)return null;if(F(r))return r;let e=r.length;if(!C(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=r[e];return n},forEachEntry:(r,e)=>{const n=(r&&r[Symbol.iterator]).call(r);let a;for(;(a=n.next())&&!a.done;){const c=a.value;e.call(r,c[0],c[1])}},matchAll:(r,e)=>{let n;const a=[];for(;(n=r.exec(e))!==null;)a.push(n);return a},isHTMLForm:br,hasOwnProperty:ct,hasOwnProp:ct,reduceDescriptors:kr,freezeMethods:r=>{kr(r,(e,n)=>{if(Te(r)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=r[n];Te(a)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(r,e)=>{const n={},a=c=>{c.forEach(u=>{n[u]=!0})};return F(r)?a(r):a(String(r).split(e)),n},toCamelCase:r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,a){return n.toUpperCase()+a}),noop:()=>{},toFiniteNumber:(r,e)=>(r=+r,Number.isFinite(r)?r:e),findKey:ft,global:pt,isContextDefined:Lt,ALPHABET:Pr,generateString:(r=16,e=Pr.ALPHA_DIGIT)=>{let n="";const{length:a}=e;for(;r--;)n+=e[Math.random()*a|0];return n},isSpecCompliantForm:function(r){return!!(r&&Te(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])},toJSONObject:r=>{const e=new Array(10),n=(a,c)=>{if(ue(a)){if(e.indexOf(a)>=0)return;if(!("toJSON"in a)){e[c]=a;const u=F(a)?[]:{};return ut(a,(d,h)=>{const l=n(d,c+1);!P(l)&&(u[h]=l)}),e[c]=void 0,u}}return a};return n(r,0)},isAsyncFn:qt,isThenable:r=>r&&(ue(r)||Te(r))&&Te(r.then)&&Te(r.catch)};function De(r,e,n,a,c){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),a&&(this.request=a),c&&(this.response=c)}He.inherits(De,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:He.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Yt=De.prototype,Zt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{Zt[r]={value:r}}),Object.defineProperties(De,Zt),Object.defineProperty(Yt,"isAxiosError",{value:!0}),De.from=(r,e,n,a,c,u)=>{const d=Object.create(Yt);return He.toFlatObject(r,d,function(h){return h!==Error.prototype},h=>h!=="isAxiosError"),De.call(d,r.message,e,n,a,c),d.cause=r,d.name=r.name,u&&Object.assign(d,u),d};const se=De;function zt(r){return He.isPlainObject(r)||He.isArray(r)}function Ct(r){return He.endsWith(r,"[]")?r.slice(0,-2):r}function xt(r,e,n){return r?r.concat(e).map(function(a,c){return a=Ct(a),!n&&c?"["+a+"]":a}).join(n?".":""):e}const or=He.toFlatObject(He,{},null,function(r){return/^is[A-Z]/.test(r)}),tr=function(r,e,n){if(!He.isObject(r))throw new TypeError("target must be an object");e=e||new FormData;const a=(n=He.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,x){return!He.isUndefined(x[w])})).metaTokens,c=n.visitor||g,u=n.dots,d=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&He.isSpecCompliantForm(e);if(!He.isFunction(c))throw new TypeError("visitor must be a function");function l(w){if(w===null)return"";if(He.isDate(w))return w.toISOString();if(!h&&He.isBlob(w))throw new se("Blob is not supported. Use a Buffer instead.");return He.isArrayBuffer(w)||He.isTypedArray(w)?h&&typeof Blob=="function"?new Blob([w]):_r.dist.Buffer.from(w):w}function g(w,x,j){let J=w;if(w&&!j&&typeof w=="object"){if(He.endsWith(x,"{}"))x=a?x:x.slice(0,-2),w=JSON.stringify(w);else if(He.isArray(w)&&(function(we){return He.isArray(we)&&!we.some(zt)})(w)||(He.isFileList(w)||He.endsWith(x,"[]"))&&(J=He.toArray(w)))return x=Ct(x),J.forEach(function(we,ve){!He.isUndefined(we)&&we!==null&&e.append(d===!0?xt([x],ve,u):d===null?x:x+"[]",l(we))}),!1}return!!zt(w)||(e.append(xt(j,x,u),l(w)),!1)}const p=[],b=Object.assign(or,{defaultVisitor:g,convertValue:l,isVisitable:zt});if(!He.isObject(r))throw new TypeError("data must be an object");return(function w(x,j){if(!He.isUndefined(x)){if(p.indexOf(x)!==-1)throw Error("Circular reference detected in "+j.join("."));p.push(x),He.forEach(x,function(J,we){(!(He.isUndefined(J)||J===null)&&c.call(e,J,He.isString(we)?we.trim():we,j,b))===!0&&w(J,j?j.concat(we):[we])}),p.pop()}})(r),e};function it(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function er(r,e){this._pairs=[],r&&tr(r,this,e)}const pe=er.prototype;pe.append=function(r,e){this._pairs.push([r,e])},pe.toString=function(r){const e=r?function(n){return r.call(this,n,it)}:it;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};const ke=er;function Ue(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ot(r,e,n){if(!e)return r;const a=n&&n.encode||Ue,c=n&&n.serialize;let u;if(u=c?c(e,n):He.isURLSearchParams(e)?e.toString():new ke(e,n).toString(a),u){const d=r.indexOf("#");d!==-1&&(r=r.slice(0,d)),r+=(r.indexOf("?")===-1?"?":"&")+u}return r}const Dt=class{constructor(){this.handlers=[]}use(r,e,n){return this.handlers.push({fulfilled:r,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){He.forEach(this.handlers,function(e){e!==null&&r(e)})}},Wt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ke,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Or=typeof window<"u"&&typeof document<"u",Rt=(Ut=typeof navigator<"u"&&navigator.product,Or&&["ReactNative","NativeScript","NS"].indexOf(Ut)<0);var Ut;const Wr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",bt={...V,...vt},_t=function(r){function e(n,a,c,u){let d=n[u++];const h=Number.isFinite(+d),l=u>=n.length;return d=!d&&He.isArray(c)?c.length:d,l?(He.hasOwnProp(c,d)?c[d]=[c[d],a]:c[d]=a,!h):(c[d]&&He.isObject(c[d])||(c[d]=[]),e(n,a,c[d],u)&&He.isArray(c[d])&&(c[d]=(function(g){const p={},b=Object.keys(g);let w;const x=b.length;let j;for(w=0;w<x;w++)j=b[w],p[j]=g[j];return p})(c[d])),!h)}if(He.isFormData(r)&&He.isFunction(r.entries)){const n={};return He.forEachEntry(r,(a,c)=>{e((function(u){return He.matchAll(/\w+|\[(\w*)]/g,u).map(d=>d[0]==="[]"?"":d[1]||d[0])})(a),c,n,0)}),n}return null},Br={transitional:Wt,adapter:["xhr","http"],transformRequest:[function(r,e){const n=e.getContentType()||"",a=n.indexOf("application/json")>-1,c=He.isObject(r);if(c&&He.isHTMLForm(r)&&(r=new FormData(r)),He.isFormData(r))return a&&a?JSON.stringify(_t(r)):r;if(He.isArrayBuffer(r)||He.isBuffer(r)||He.isStream(r)||He.isFile(r)||He.isBlob(r))return r;if(He.isArrayBufferView(r))return r.buffer;if(He.isURLSearchParams(r))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let u;if(c){if(n.indexOf("application/x-www-form-urlencoded")>-1)return(function(d,h){return tr(d,new bt.classes.URLSearchParams,Object.assign({visitor:function(l,g,p,b){return bt.isNode&&He.isBuffer(l)?(this.append(g,l.toString("base64")),!1):b.defaultVisitor.apply(this,arguments)}},h))})(r,this.formSerializer).toString();if((u=He.isFileList(r))||n.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return tr(u?{"files[]":r}:r,d&&new d,this.formSerializer)}}return c||a?(e.setContentType("application/json",!1),(function(d,h,l){if(He.isString(d))try{return(0,JSON.parse)(d),He.trim(d)}catch(g){if(g.name!=="SyntaxError")throw g}return(0,JSON.stringify)(d)})(r)):r}],transformResponse:[function(r){const e=this.transitional||Br.transitional,n=e&&e.forcedJSONParsing,a=this.responseType==="json";if(r&&He.isString(r)&&(n&&!this.responseType||a)){const c=!(e&&e.silentJSONParsing)&&a;try{return JSON.parse(r)}catch(u){if(c)throw u.name==="SyntaxError"?se.from(u,se.ERR_BAD_RESPONSE,this,null,this.response):u}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bt.classes.FormData,Blob:bt.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};He.forEach(["delete","get","head","post","put","patch"],r=>{Br.headers[r]={}});const Vt=Br,lt=He.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),St=Symbol("internals");function Tt(r){return r&&String(r).trim().toLowerCase()}function kt(r){return r===!1||r==null?r:He.isArray(r)?r.map(kt):String(r)}function fr(r,e,n,a,c){return He.isFunction(a)?a.call(this,e,n):(c&&(e=n),He.isString(e)?He.isString(a)?e.indexOf(a)!==-1:He.isRegExp(a)?a.test(e):void 0:void 0)}class Gt{constructor(e){e&&this.set(e)}set(e,n,a){const c=this;function u(h,l,g){const p=Tt(l);if(!p)throw new Error("header name must be a non-empty string");const b=He.findKey(c,p);(!b||c[b]===void 0||g===!0||g===void 0&&c[b]!==!1)&&(c[b||l]=kt(h))}const d=(h,l)=>He.forEach(h,(g,p)=>u(g,p,l));return He.isPlainObject(e)||e instanceof this.constructor?d(e,n):He.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?d((h=>{const l={};let g,p,b;return h&&h.split(`
|
|
6
|
+
`).forEach(function(w){b=w.indexOf(":"),g=w.substring(0,b).trim().toLowerCase(),p=w.substring(b+1).trim(),!g||l[g]&<[g]||(g==="set-cookie"?l[g]?l[g].push(p):l[g]=[p]:l[g]=l[g]?l[g]+", "+p:p)}),l})(e),n):e!=null&&u(n,e,a),this}get(e,n){if(e=Tt(e)){const a=He.findKey(this,e);if(a){const c=this[a];if(!n)return c;if(n===!0)return(function(u){const d=Object.create(null),h=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let l;for(;l=h.exec(u);)d[l[1]]=l[2];return d})(c);if(He.isFunction(n))return n.call(this,c,a);if(He.isRegExp(n))return n.exec(c);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Tt(e)){const a=He.findKey(this,e);return!(!a||this[a]===void 0||n&&!fr(0,this[a],a,n))}return!1}delete(e,n){const a=this;let c=!1;function u(d){if(d=Tt(d)){const h=He.findKey(a,d);!h||n&&!fr(0,a[h],h,n)||(delete a[h],c=!0)}}return He.isArray(e)?e.forEach(u):u(e),c}clear(e){const n=Object.keys(this);let a=n.length,c=!1;for(;a--;){const u=n[a];e&&!fr(0,this[u],u,e,!0)||(delete this[u],c=!0)}return c}normalize(e){const n=this,a={};return He.forEach(this,(c,u)=>{const d=He.findKey(a,u);if(d)return n[d]=kt(c),void delete n[u];const h=e?(function(l){return l.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(g,p,b)=>p.toUpperCase()+b)})(u):String(u).trim();h!==u&&delete n[u],n[h]=kt(c),a[h]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return He.forEach(this,(a,c)=>{a!=null&&a!==!1&&(n[c]=e&&He.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
7
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const a=new this(e);return n.forEach(c=>a.set(c)),a}static accessor(e){const n=(this[St]=this[St]={accessors:{}}).accessors,a=this.prototype;function c(u){const d=Tt(u);n[d]||((function(h,l){const g=He.toCamelCase(" "+l);["get","set","has"].forEach(p=>{Object.defineProperty(h,p+g,{value:function(b,w,x){return this[p].call(this,l,b,w,x)},configurable:!0})})})(a,u),n[d]=!0)}return He.isArray(e)?e.forEach(c):c(e),this}}Gt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),He.reduceDescriptors(Gt.prototype,({value:r},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(a){this[n]=a}}}),He.freezeMethods(Gt);const tt=Gt;function yt(r,e){const n=this||Vt,a=e||n,c=tt.from(a.headers);let u=a.data;return He.forEach(r,function(d){u=d.call(n,u,c.normalize(),e?e.status:void 0)}),c.normalize(),u}function gr(r){return!(!r||!r.__CANCEL__)}function ar(r,e,n){se.call(this,r??"canceled",se.ERR_CANCELED,e,n),this.name="CanceledError"}He.inherits(ar,se,{__CANCEL__:!0});const Tr=ar,yr=bt.hasStandardBrowserEnv?{write(r,e,n,a,c,u){const d=[r+"="+encodeURIComponent(e)];He.isNumber(n)&&d.push("expires="+new Date(n).toGMTString()),He.isString(a)&&d.push("path="+a),He.isString(c)&&d.push("domain="+c),u===!0&&d.push("secure"),document.cookie=d.join("; ")},read(r){const e=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ne(r,e){return r&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?(function(n,a){return a?n.replace(/\/+$/,"")+"/"+a.replace(/^\/+/,""):n})(r,e):e}const an=bt.hasStandardBrowserEnv?(function(){const r=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function a(c){let u=c;return r&&(e.setAttribute("href",u),u=e.href),e.setAttribute("href",u),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return n=a(window.location.href),function(c){const u=He.isString(c)?a(c):c;return u.protocol===n.protocol&&u.host===n.host}})():function(){return!0},ir=function(r,e){r=r||10;const n=new Array(r),a=new Array(r);let c,u=0,d=0;return e=e!==void 0?e:1e3,function(h){const l=Date.now(),g=a[d];c||(c=l),n[u]=h,a[u]=l;let p=d,b=0;for(;p!==u;)b+=n[p++],p%=r;if(u=(u+1)%r,u===d&&(d=(d+1)%r),l-c<e)return;const w=g&&l-g;return w?Math.round(1e3*b/w):void 0}};function sr(r,e){let n=0;const a=ir(50,250);return c=>{const u=c.loaded,d=c.lengthComputable?c.total:void 0,h=u-n,l=a(h);n=u;const g={loaded:u,total:d,progress:d?u/d:void 0,bytes:h,rate:l||void 0,estimated:l&&d&&u<=d?(d-u)/l:void 0,event:c};g[e?"download":"upload"]=!0,r(g)}}const Je={http:null,xhr:typeof XMLHttpRequest<"u"&&function(r){return new Promise(function(e,n){let a=r.data;const c=tt.from(r.headers).normalize();let u,d,{responseType:h,withXSRFToken:l}=r;function g(){r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}if(He.isFormData(a)){if(bt.hasStandardBrowserEnv||bt.hasStandardBrowserWebWorkerEnv)c.setContentType(!1);else if((d=c.getContentType())!==!1){const[j,...J]=d?d.split(";").map(we=>we.trim()).filter(Boolean):[];c.setContentType([j||"multipart/form-data",...J].join("; "))}}let p=new XMLHttpRequest;if(r.auth){const j=r.auth.username||"",J=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";c.set("Authorization","Basic "+btoa(j+":"+J))}const b=ne(r.baseURL,r.url);function w(){if(!p)return;const j=tt.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders());(function(J,we,ve){const Fe=ve.config.validateStatus;ve.status&&Fe&&!Fe(ve.status)?we(new se("Request failed with status code "+ve.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(ve.status/100)-4],ve.config,ve.request,ve)):J(ve)})(function(J){e(J),g()},function(J){n(J),g()},{data:h&&h!=="text"&&h!=="json"?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:j,config:r,request:p}),p=null}if(p.open(r.method.toUpperCase(),ot(b,r.params,r.paramsSerializer),!0),p.timeout=r.timeout,"onloadend"in p?p.onloadend=w:p.onreadystatechange=function(){p&&p.readyState===4&&(p.status!==0||p.responseURL&&p.responseURL.indexOf("file:")===0)&&setTimeout(w)},p.onabort=function(){p&&(n(new se("Request aborted",se.ECONNABORTED,r,p)),p=null)},p.onerror=function(){n(new se("Network Error",se.ERR_NETWORK,r,p)),p=null},p.ontimeout=function(){let j=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const J=r.transitional||Wt;r.timeoutErrorMessage&&(j=r.timeoutErrorMessage),n(new se(j,J.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,r,p)),p=null},bt.hasStandardBrowserEnv&&(l&&He.isFunction(l)&&(l=l(r)),l||l!==!1&&an(b))){const j=r.xsrfHeaderName&&r.xsrfCookieName&&yr.read(r.xsrfCookieName);j&&c.set(r.xsrfHeaderName,j)}a===void 0&&c.setContentType(null),"setRequestHeader"in p&&He.forEach(c.toJSON(),function(j,J){p.setRequestHeader(J,j)}),He.isUndefined(r.withCredentials)||(p.withCredentials=!!r.withCredentials),h&&h!=="json"&&(p.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&p.addEventListener("progress",sr(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",sr(r.onUploadProgress)),(r.cancelToken||r.signal)&&(u=j=>{p&&(n(!j||j.type?new Tr(null,r,p):j),p.abort(),p=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const x=(function(j){const J=/^([-+\w]{1,25})(:?\/\/|:)/.exec(j);return J&&J[1]||""})(b);x&&bt.protocols.indexOf(x)===-1?n(new se("Unsupported protocol "+x+":",se.ERR_BAD_REQUEST,r)):p.send(a||null)})}};He.forEach(Je,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});const In=r=>`- ${r}`,dr=r=>He.isFunction(r)||r===null||r===!1,f={getAdapter:r=>{r=He.isArray(r)?r:[r];const{length:e}=r;let n,a;const c={};for(let u=0;u<e;u++){let d;if(n=r[u],a=n,!dr(n)&&(a=Je[(d=String(n)).toLowerCase()],a===void 0))throw new se(`Unknown adapter '${d}'`);if(a)break;c[d||"#"+u]=a}if(!a){const u=Object.entries(c).map(([h,l])=>`adapter ${h} `+(l===!1?"is not supported by the environment":"is not available in the build"));let d=e?u.length>1?`since :
|
|
8
|
+
`+u.map(In).join(`
|
|
9
|
+
`):" "+In(u[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return a},adapters:Je};function m(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Tr(null,r)}function T(r){return m(r),r.headers=tt.from(r.headers),r.data=yt.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),f.getAdapter(r.adapter||Vt.adapter)(r).then(function(e){return m(r),e.data=yt.call(r,r.transformResponse,e),e.headers=tt.from(e.headers),e},function(e){return gr(e)||(m(r),e&&e.response&&(e.response.data=yt.call(r,r.transformResponse,e.response),e.response.headers=tt.from(e.response.headers))),Promise.reject(e)})}const H=r=>r instanceof tt?r.toJSON():r;function me(r,e){e=e||{};const n={};function a(g,p,b){return He.isPlainObject(g)&&He.isPlainObject(p)?He.merge.call({caseless:b},g,p):He.isPlainObject(p)?He.merge({},p):He.isArray(p)?p.slice():p}function c(g,p,b){return He.isUndefined(p)?He.isUndefined(g)?void 0:a(void 0,g,b):a(g,p,b)}function u(g,p){if(!He.isUndefined(p))return a(void 0,p)}function d(g,p){return He.isUndefined(p)?He.isUndefined(g)?void 0:a(void 0,g):a(void 0,p)}function h(g,p,b){return b in e?a(g,p):b in r?a(void 0,g):void 0}const l={url:u,method:u,data:u,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:h,headers:(g,p)=>c(H(g),H(p),!0)};return He.forEach(Object.keys(Object.assign({},r,e)),function(g){const p=l[g]||c,b=p(r[g],e[g],g);He.isUndefined(b)&&p!==h||(n[g]=b)}),n}const Se="1.6.2",st={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{st[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});const Et={};st.transitional=function(r,e,n){function a(c,u){return"[Axios v"+Se+"] Transitional option '"+c+"'"+u+(n?". "+n:"")}return(c,u,d)=>{if(r===!1)throw new se(a(u," has been removed"+(e?" in "+e:"")),se.ERR_DEPRECATED);return e&&!Et[u]&&(Et[u]=!0,console.warn(a(u," has been deprecated since v"+e+" and will be removed in the near future"))),!r||r(c,u,d)}};const Nr={assertOptions:function(r,e,n){if(typeof r!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const a=Object.keys(r);let c=a.length;for(;c-- >0;){const u=a[c],d=e[u];if(d){const h=r[u],l=h===void 0||d(h,u,r);if(l!==!0)throw new se("option "+u+" must be "+l,se.ERR_BAD_OPTION_VALUE)}else if(n!==!0)throw new se("Unknown option "+u,se.ERR_BAD_OPTION)}},validators:st},Dr=Nr.validators;class sn{constructor(e){this.defaults=e,this.interceptors={request:new Dt,response:new Dt}}request(e,n){typeof e=="string"?(n=n||{}).url=e:n=e||{},n=me(this.defaults,n);const{transitional:a,paramsSerializer:c,headers:u}=n;a!==void 0&&Nr.assertOptions(a,{silentJSONParsing:Dr.transitional(Dr.boolean),forcedJSONParsing:Dr.transitional(Dr.boolean),clarifyTimeoutError:Dr.transitional(Dr.boolean)},!1),c!=null&&(He.isFunction(c)?n.paramsSerializer={serialize:c}:Nr.assertOptions(c,{encode:Dr.function,serialize:Dr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let d=u&&He.merge(u.common,u[n.method]);u&&He.forEach(["delete","get","head","post","put","patch","common"],j=>{delete u[j]}),n.headers=tt.concat(d,u);const h=[];let l=!0;this.interceptors.request.forEach(function(j){typeof j.runWhen=="function"&&j.runWhen(n)===!1||(l=l&&j.synchronous,h.unshift(j.fulfilled,j.rejected))});const g=[];let p;this.interceptors.response.forEach(function(j){g.push(j.fulfilled,j.rejected)});let b,w=0;if(!l){const j=[T.bind(this),void 0];for(j.unshift.apply(j,h),j.push.apply(j,g),b=j.length,p=Promise.resolve(n);w<b;)p=p.then(j[w++],j[w++]);return p}b=h.length;let x=n;for(w=0;w<b;){const j=h[w++],J=h[w++];try{x=j(x)}catch(we){J.call(this,we);break}}try{p=T.call(this,x)}catch(j){return Promise.reject(j)}for(w=0,b=g.length;w<b;)p=p.then(g[w++],g[w++]);return p}getUri(e){return ot(ne((e=me(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}He.forEach(["delete","get","head","options"],function(r){sn.prototype[r]=function(e,n){return this.request(me(n||{},{method:r,url:e,data:(n||{}).data}))}}),He.forEach(["post","put","patch"],function(r){function e(n){return function(a,c,u){return this.request(me(u||{},{method:r,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:c}))}}sn.prototype[r]=e(),sn.prototype[r+"Form"]=e(!0)});const yn=sn;class xn{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(c){n=c});const a=this;this.promise.then(c=>{if(!a._listeners)return;let u=a._listeners.length;for(;u-- >0;)a._listeners[u](c);a._listeners=null}),this.promise.then=c=>{let u;const d=new Promise(h=>{a.subscribe(h),u=h}).then(c);return d.cancel=function(){a.unsubscribe(u)},d},e(function(c,u,d){a.reason||(a.reason=new Tr(c,u,d),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new xn(function(n){e=n}),cancel:e}}}const Pa=xn,kn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(kn).forEach(([r,e])=>{kn[e]=r});const $i=kn,Hr=(function r(e){const n=new yn(e),a=Xe(yn.prototype.request,n);return He.extend(a,yn.prototype,n,{allOwnKeys:!0}),He.extend(a,n,null,{allOwnKeys:!0}),a.create=function(c){return r(me(e,c))},a})(Vt);Hr.Axios=yn,Hr.CanceledError=Tr,Hr.CancelToken=Pa,Hr.isCancel=gr,Hr.VERSION=Se,Hr.toFormData=tr,Hr.AxiosError=se,Hr.Cancel=Hr.CanceledError,Hr.all=function(r){return Promise.all(r)},Hr.spread=function(r){return function(e){return r.apply(null,e)}},Hr.isAxiosError=function(r){return He.isObject(r)&&r.isAxiosError===!0},Hr.mergeConfig=me,Hr.AxiosHeaders=tt,Hr.formToJSON=r=>_t(He.isHTMLForm(r)?new FormData(r):r),Hr.getAdapter=f.getAdapter,Hr.HttpStatusCode=$i,Hr.default=Hr;const Dg=Hr;function Jl(){var r=this;this._keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",this.encode=function(e){for(var n,a,c,u,d,h,l,g="",p=0;p<e.length;)u=(n=e.charCodeAt(p++))>>2,d=(3&n)<<4|(a=e.charCodeAt(p++))>>4,h=(15&a)<<2|(c=e.charCodeAt(p++))>>6,l=63&c,isNaN(a)?h=l=64:isNaN(c)&&(l=64),g=g+r._keyStr.charAt(u)+r._keyStr.charAt(d)+r._keyStr.charAt(h)+r._keyStr.charAt(l);return g},this.encodeIgnoreUtf8=function(e){for(var n,a,c,u,d,h,l,g="",p=0;p<e.length;)u=(n=e[p++])>>2,d=(3&n)<<4|(a=e[p++])>>4,h=(15&a)<<2|(c=e[p++])>>6,l=63&c,isNaN(a)?h=l=64:isNaN(c)&&(l=64),g=g+r._keyStr.charAt(u)+r._keyStr.charAt(d)+r._keyStr.charAt(h)+r._keyStr.charAt(l);return g},this.decode=function(e){var n,a,c,u,d,h,l="",g=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");g<e.length;)n=r._keyStr.indexOf(e.charAt(g++))<<2|(u=r._keyStr.indexOf(e.charAt(g++)))>>4,a=(15&u)<<4|(d=r._keyStr.indexOf(e.charAt(g++)))>>2,c=(3&d)<<6|(h=r._keyStr.indexOf(e.charAt(g++))),l+=String.fromCharCode(n),d!=64&&(l+=String.fromCharCode(a)),h!=64&&(l+=String.fromCharCode(c));return r._utf8_decode(l)},this.decodeToByteArray=function(e){var n,a,c,u,d,h,l="",g=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");g<e.length;)n=r._keyStr.indexOf(e.charAt(g++))<<2|(u=r._keyStr.indexOf(e.charAt(g++)))>>4,a=(15&u)<<4|(d=r._keyStr.indexOf(e.charAt(g++)))>>2,c=(3&d)<<6|(h=r._keyStr.indexOf(e.charAt(g++))),l+=String.fromCharCode(n),d!=64&&(l+=String.fromCharCode(a)),h!=64&&(l+=String.fromCharCode(c));return r._out2ByteArray(l)},this._out2ByteArray=function(e){for(var n=new Array(e.length),a=0,c=0;a<e.length;)c=e.charCodeAt(a),n[a]=c,a++;return n},this._utf8_encode=function(e){e=e.replace(/\r\n/g,`
|
|
10
|
+
`);for(var n="",a=0;a<e.length;a++){var c=e.charCodeAt(a);c<128?n+=String.fromCharCode(c):c>127&&c<2048?(n+=String.fromCharCode(c>>6|192),n+=String.fromCharCode(63&c|128)):(n+=String.fromCharCode(c>>12|224),n+=String.fromCharCode(c>>6&63|128),n+=String.fromCharCode(63&c|128))}return n},this._utf8_decode=function(e){for(var n="",a=0,c=0,u=0,d=0;a<e.length;)(c=e.charCodeAt(a))<128?(n+=String.fromCharCode(c),a++):c>191&&c<224?(u=e.charCodeAt(a+1),n+=String.fromCharCode((31&c)<<6|63&u),a+=2):(u=e.charCodeAt(a+1),d=e.charCodeAt(a+2),n+=String.fromCharCode((15&c)<<12|(63&u)<<6|63&d),a+=3);return n}}function Hi(r){if(typeof r!="number")throw new Error("Input must be a number");if(r<0||r>255)throw new Error("Input must be a byte");var e="0123456789ABCDEF",n="";return(n+=e.charAt(r>>4))+e.charAt(15&r)}function Du(r){if(typeof r=="string")return r;for(var e="",n=0;n<r.length;n++){var a=r[n].toString(2),c=a.match(/^1+?(?=0)/);if(c&&a.length===8){for(var u=c[0].length,d=r[n].toString(2).slice(7-u),h=1;h<u;h++)d+=r[h+n].toString(2).slice(2);e+=String.fromCharCode(parseInt(d,2)),n+=u-1}else e+=String.fromCharCode(r[n])}return e}function ql(r){for(var e=r.replace(/^0x/,"").split(""),n="",a=0;a<e.length/2;a++){var c="0x".concat(e[2*a]).concat(e[2*a+1]);n+=String.fromCharCode(c)}return n}function Wn(r){for(var e="",n=0;n<r.length;n++)e+=Hi(r[n]);return e}function na(r){return new Jl().decodeToByteArray(r)}function Uu(r){return new Jl().encodeIgnoreUtf8(r)}function Lu(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=r[n];return a}function Yl(r,e){if(r){if(typeof r=="string")return Lu(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);return n==="Object"&&r.constructor&&(n=r.constructor.name),n==="Map"||n==="Set"?Array.from(r):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lu(r,e):void 0}}function oa(r){return(function(e){if(Array.isArray(e))return Lu(e)})(r)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(r)||Yl(r)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}var Ug=34,co="41",Lg=65,ui=/^(41)/,ju="m/44'/195'/0'/0/0";function jg(r){return Du(r)}function zg(r,e,n){if(r.length!=e.length)return!1;var a;for(a=0;a<r.length;a++)if(n){if(r[a]!=e[a])return!1}else if(JSON.stringify(r[a])!=JSON.stringify(e[a]))return!1;return!0}function Vg(r){if(typeof r!="string")throw new Error("The passed string is not a string");var e,n,a=new Array;e=r.length;for(var c=0;c<e;c++)(n=r.charCodeAt(c))>=65536&&n<=1114111?(a.push(n>>18&7|240),a.push(n>>12&63|128),a.push(n>>6&63|128),a.push(63&n|128)):n>=2048&&n<=65535?(a.push(n>>12&15|224),a.push(n>>6&63|128),a.push(63&n|128)):n>=128&&n<=2047?(a.push(n>>6&31|192),a.push(63&n|128)):a.push(255&n);return a}function Xl(r){var e;if(r>="A"&&r<="F"?e=r.charCodeAt(0)-65+10:r>="a"&&r<="f"?e=r.charCodeAt(0)-97+10:r>="0"&&r<="9"&&(e=r.charCodeAt(0)-48),typeof e=="number")return e;throw new Error("The passed hex char is not a valid hex char")}function zu(r){return r>="A"&&r<="F"||r>="a"&&r<="f"||r>="0"&&r<="9"?1:0}function Zn(r){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(typeof r!="string")throw new Error("The passed string is not a string");var n=r.length;e&&n%2&&(r="0".concat(r),n++);for(var a=Array(),c=0,u=0,d=0,h=0;h<n;h++){var l=r.charAt(h);if(!zu(l))throw new Error("The passed hex char is not a valid hex string");c<<=4,c+=Xl(l),++u%2==0&&(a[d++]=c,c=0)}return a}function Gg(r){if(!/^\d{4}-\d{2}-\d{2}( \d{2}-\d{2}-\d{2}|)/.test(r))throw new Error("The passed date string is not valid");var e=r.split(" "),n=e[0].split("-"),a=parseInt(n[0],10),c=parseInt(n[1],10)-1,u=parseInt(n[2],10);if(e.length>1){var d=e[1].split("-"),h=parseInt(d[0],10),l=parseInt(d[1],10),g=parseInt(d[2],10);return new Date(a,c,u,h,l,g)}return new Date(a,c,u)}function Ql(r){return r>="0"&&r<="9"?1:0}function $g(r){if(r==null||typeof r!="string"||r.length==0||r=="")return-1;var e=0;if(r.length==40)for(;e<40&&zu(r.charAt(e));e++);if(e==40)return 1;for(e=0;e<r.length&&Ql(r.charAt(e));e++);if(e==r.length)return 2;for(e=0;e<r.length;e++)if(r.charAt(e)>" ")return 3;return-1}for(var Vu="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Gu={},Ki=0;Ki<Vu.length;Ki++)Gu[Vu.charAt(Ki)]=Ki;var ci=58;function ef(r){if(r.length===0)return"";var e,n,a=[0];for(e=0;e<r.length;e++){for(n=0;n<a.length;n++)a[n]<<=8;a[0]+=r[e];var c=0;for(n=0;n<a.length;++n)a[n]+=c,c=a[n]/ci|0,a[n]%=ci;for(;c;)a.push(c%ci),c=c/ci|0}for(e=0;r[e]===0&&e<r.length-1;e++)a.push(0);return a.reverse().map(function(u){return Vu[u]}).join("")}function Zi(r){if(r.length===0)return[];var e,n,a=[0];for(e=0;e<r.length;e++){var c=r[e];if(!(c in Gu))throw new Error("Non-base58 character");for(n=0;n<a.length;n++)a[n]*=ci;a[0]+=Gu[c];var u=0;for(n=0;n<a.length;++n)a[n]+=u,u=a[n]>>8,a[n]&=255;for(;u;)a.push(255&u),u>>=8}for(e=0;r[e]==="1"&&e<r.length-1;e++)a.push(0);return a.reverse()}function tf(r,e,n){if(!e.has(r))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(r)}function dt(r,e,n){return(function(a,c,u){if(c.set)c.set.call(a,u);else{if(!c.writable)throw new TypeError("attempted to set read only private field");c.value=u}})(r,tf(r,e,"set"),n),n}function Qe(r,e){return(function(n,a){return a.get?a.get.call(n):a.value})(r,tf(r,e,"get"))}var rf="0x0000000000000000000000000000000000000000000000000000000000000000",nf="6.6.0";function Hg(r,e,n){for(var a=e.split("|").map(function(d){return d.trim()}),c=0;c<a.length;c++)switch(e){case"any":return;case"bigint":case"boolean":case"number":case"string":if(ee(r)===e)return}var u=new Error("invalid value for type ".concat(e));throw u.code="INVALID_ARGUMENT",u.argument="value.".concat(n),u.value=r,u}function $u(r){return of.apply(this,arguments)}function of(){return(of=_(ie.mark(function r(e){var n,a;return ie.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return n=Object.keys(e),c.next=3,Promise.all(n.map(function(u){return Promise.resolve(e[u])}));case 3:return a=c.sent,c.abrupt("return",a.reduce(function(u,d,h){return u[n[h]]=d,u},{}));case 5:case"end":return c.stop()}},r)}))).apply(this,arguments)}function ur(r,e,n){for(var a in e){var c=e[a],u=n?n[a]:null;u&&Hg(c,u,a),Object.defineProperty(r,a,{enumerable:!0,value:c,writable:!1})}}function Wa(r){if(r==null)return"null";if(Array.isArray(r))return"[ "+r.map(Wa).join(", ")+" ]";if(r instanceof Uint8Array){for(var e="0123456789abcdef",n="0x",a=0;a<r.length;a++)n+=e[r[a]>>4],n+=e[15&r[a]];return n}if(ee(r)==="object"&&typeof r.toJSON=="function")return Wa(r.toJSON());switch(ee(r)){case"boolean":case"symbol":case"number":return r.toString();case"bigint":return BigInt(r).toString();case"string":return JSON.stringify(r);case"object":var c=Object.keys(r);return c.sort(),"{ "+c.map(function(u){return"".concat(Wa(u),": ").concat(Wa(r[u]))}).join(", ")+" }"}return"[ COULD NOT SERIALIZE ]"}function af(r,e){return r&&r.code===e}function sf(r,e,n){var a,c=[];if(n){if("message"in n||"code"in n||"name"in n)throw new Error("value will overwrite populated values: ".concat(Wa(n)));for(var u in n){var d=n[u];c.push(u+"="+Wa(d))}}switch(c.push("code=".concat(e)),c.push("version=".concat(nf)),c.length&&(r+=" ("+c.join(", ")+")"),e){case"INVALID_ARGUMENT":a=new TypeError(r);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":a=new RangeError(r);break;default:a=new Error(r)}return ur(a,{code:e}),n&&Object.assign(a,n),a}function jt(r,e,n,a){if(!r)throw sf(e,n,a)}function _e(r,e,n,a){jt(r,e,"INVALID_ARGUMENT",{argument:n,value:a})}function uf(r,e,n){n==null&&(n=""),n&&(n=": "+n),jt(r>=e,"missing arguemnt"+n,"MISSING_ARGUMENT",{count:r,expectedCount:e}),jt(r<=e,"too many arguemnts"+n,"UNEXPECTED_ARGUMENT",{count:r,expectedCount:e})}var Kg=["NFD","NFC","NFKD","NFKC"].reduce(function(r,e){try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"&&"é".normalize("NFD")!=="é")throw new Error("broken");r.push(e)}catch{}return r},[]);function cf(r){jt(Kg.indexOf(r)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:r}})}function Ro(r,e,n){if(n==null&&(n=""),r!==e){var a=n,c="new";n&&(a+=".",c+=" "+n),jt(!1,"private constructor; use ".concat(a,"from* methods"),"UNSUPPORTED_OPERATION",{operation:c})}}function lf(r,e,n){if(r instanceof Uint8Array)return n?new Uint8Array(r):r;if(typeof r=="string"&&r.match(/^0x([0-9a-f][0-9a-f])*$/i)){for(var a=new Uint8Array((r.length-2)/2),c=2,u=0;u<a.length;u++)a[u]=parseInt(r.substring(c,c+2),16),c+=2;return a}_e(!1,"invalid BytesLike value",e||"value",r)}function At(r,e){return lf(r,e,!1)}function tn(r,e){return lf(r,e,!0)}function Jn(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||typeof e=="number"&&r.length!==2+2*e||e===!0&&r.length%2!=0)}function ff(r){return Jn(r,!0)||r instanceof Uint8Array}var df="0123456789abcdef";function mt(r){for(var e=At(r),n="0x",a=0;a<e.length;a++){var c=e[a];n+=df[(240&c)>>4]+df[15&c]}return n}function Sr(r){return"0x"+r.map(function(e){return mt(e).substring(2)}).join("")}function li(r){return Jn(r,!0)?(r.length-2)/2:At(r).length}function bo(r,e,n){var a=At(r);return n!=null&&n>a.length&&jt(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:a,length:a.length,offset:n}),mt(a.slice(e??0,n??a.length))}function _o(r,e){return(function(n,a,c){var u=At(n);jt(a>=u.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(u),length:a,offset:a+1});var d=new Uint8Array(a);return d.fill(0),d.set(u,a-u.length),mt(d)})(r,e)}function hf(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=r[n];return a}var Ji=BigInt(0),qn=BigInt(1),Ba=9007199254740991;function Hu(r,e){var n=Fr(r,"value"),a=BigInt(un(e,"width")),c=qn<<a-qn;return n<Ji?(jt((n=-n)<=c,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:r}),(~n&(qn<<a)-qn)+qn):(jt(n<c,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:r}),n)}function Ca(r,e){var n=qi(r,"value"),a=BigInt(un(e,"bits"));return n&(qn<<a)-qn}function Fr(r,e){switch(ee(r)){case"bigint":return r;case"number":return _e(Number.isInteger(r),"underflow",e||"value",r),_e(r>=-Ba&&r<=Ba,"overflow",e||"value",r),BigInt(r);case"string":try{if(r==="")throw new Error("empty string");return r[0]==="-"&&r[1]!=="-"?-BigInt(r.substring(1)):BigInt(r)}catch(n){_e(!1,"invalid BigNumberish string: ".concat(n.message),e||"value",r)}}_e(!1,"invalid BigNumberish value",e||"value",r)}function qi(r,e){var n=Fr(r,e);return jt(n>=Ji,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:r}),n}var pf,gf="0123456789abcdef";function Yi(r){if(r instanceof Uint8Array){var e,n="0x0",a=(function(u,d){var h=typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(!h){if(Array.isArray(u)||(h=(function(x,j){if(x){if(typeof x=="string")return hf(x,j);var J=Object.prototype.toString.call(x).slice(8,-1);return J==="Object"&&x.constructor&&(J=x.constructor.name),J==="Map"||J==="Set"?Array.from(x):J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J)?hf(x,j):void 0}})(u))||d){h&&(u=h);var l=0,g=function(){};return{s:g,n:function(){return l>=u.length?{done:!0}:{done:!1,value:u[l++]}},e:function(x){throw x},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
12
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p,b=!0,w=!1;return{s:function(){h=h.call(u)},n:function(){var x=h.next();return b=x.done,x},e:function(x){w=!0,p=x},f:function(){try{b||h.return==null||h.return()}finally{if(w)throw p}}}})(r);try{for(a.s();!(e=a.n()).done;){var c=e.value;n+=gf[c>>4],n+=gf[15&c]}}catch(u){a.e(u)}finally{a.f()}return BigInt(n)}return Fr(r)}function un(r,e){switch(ee(r)){case"bigint":return _e(r>=-Ba&&r<=Ba,"overflow",e||"value",r),Number(r);case"number":return _e(Number.isInteger(r),"underflow",e||"value",r),_e(r>=-Ba&&r<=Ba,"overflow",e||"value",r),r;case"string":try{if(r==="")throw new Error("empty string");return un(BigInt(r),e)}catch(n){_e(!1,"invalid numeric string: ".concat(n.message),e||"value",r)}}_e(!1,"invalid numeric value",e||"value",r)}function Yn(r,e){var n=qi(r,"value").toString(16);if(e==null)n.length%2&&(n="0"+n);else{var a=un(e,"width");for(jt(2*a>=n.length,"value exceeds width (".concat(a," bits)"),"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:r});n.length<2*a;)n="0"+n}return"0x"+n}function Bn(r){var e=qi(r,"value");if(e===Ji)return new Uint8Array([]);var n=e.toString(16);n.length%2&&(n="0"+n);for(var a=new Uint8Array(n.length/2),c=0;c<a.length;c++){var u=2*c;a[c]=parseInt(n.substring(u,u+2),16)}return a}function Xi(r,e,n){(function(a,c){if(c.has(a))throw new TypeError("Cannot initialize the same private elements twice on an object")})(r,e),e.set(r,n)}var yf=BigInt(0),mf=BigInt(1),vf=BigInt(2),bf=BigInt(27),Tf=BigInt(28),Qi=BigInt(35),Ea={};function Af(r){return _o(Bn(r),32)}var es=new WeakMap,ts=new WeakMap,rs=new WeakMap,fi=new WeakMap;pf=Symbol.for("nodejs.util.inspect.custom");var Cn=(function(){function r(e,n,a,c){Q(this,r),Xi(this,es,{writable:!0,value:void 0}),Xi(this,ts,{writable:!0,value:void 0}),Xi(this,rs,{writable:!0,value:void 0}),Xi(this,fi,{writable:!0,value:void 0}),Ro(e,Ea,"Signature"),dt(this,es,n),dt(this,ts,a),dt(this,rs,c),dt(this,fi,null)}return E(r,[{key:"r",get:function(){return Qe(this,es)},set:function(e){_e(li(e)===32,"invalid r","value",e),dt(this,es,mt(e))}},{key:"s",get:function(){return Qe(this,ts)},set:function(e){_e(li(e)===32,"invalid s","value",e);var n=mt(e);_e(parseInt(n.substring(0,3))<8,"non-canonical s","value",n),dt(this,ts,n)}},{key:"v",get:function(){return Qe(this,rs)},set:function(e){var n=un(e,"value");_e(n===27||n===28,"invalid v","v",e),dt(this,rs,n)}},{key:"networkV",get:function(){return Qe(this,fi)}},{key:"legacyChainId",get:function(){var e=this.networkV;return e==null?null:r.getChainId(e)}},{key:"yParity",get:function(){return this.v===27?0:1}},{key:"yParityAndS",get:function(){var e=At(this.s);return this.yParity&&(e[0]|=128),mt(e)}},{key:"compactSerialized",get:function(){return Sr([this.r,this.yParityAndS])}},{key:"serialized",get:function(){return Sr([this.r,this.s,this.yParity?"0x1c":"0x1b"])}},{key:pf,value:function(){return'Signature { r: "'.concat(this.r,'", s: "').concat(this.s,'", yParity: ').concat(this.yParity,", networkV: ").concat(this.networkV," }")}},{key:"clone",value:function(){var e=new r(Ea,this.r,this.s,this.v);return this.networkV&&dt(e,fi,this.networkV),e}},{key:"toJSON",value:function(){var e=this.networkV;return{_type:"signature",networkV:e!=null?e.toString():null,r:this.r,s:this.s,v:this.v}}}],[{key:"getChainId",value:function(e){var n=Fr(e,"v");return n==bf||n==Tf?yf:(_e(n>=Qi,"invalid EIP-155 v","v",e),(n-Qi)/vf)}},{key:"getChainIdV",value:function(e,n){return Fr(e)*vf+BigInt(35+n-27)}},{key:"getNormalizedV",value:function(e){var n=Fr(e);return n===yf||n===bf?27:n===mf||n===Tf?28:(_e(n>=Qi,"invalid v","v",e),n&mf?27:28)}},{key:"from",value:function(e){function n(ve,Fe){_e(ve,Fe,"signature",e)}if(e==null)return new r(Ea,rf,rf,27);if(typeof e=="string"){var a=At(e,"signature");if(a.length===64){var c=mt(a.slice(0,32)),u=a.slice(32,64),d=128&u[0]?28:27;return u[0]&=127,new r(Ea,c,mt(u),d)}if(a.length===65){var h=mt(a.slice(0,32)),l=a.slice(32,64);n((128&l[0])==0,"non-canonical s");var g=r.getNormalizedV(a[64]);return new r(Ea,h,mt(l),g)}n(!1,"invalid raw signature length")}if(e instanceof r)return e.clone();var p=e.r;n(p!=null,"missing r");var b=Af(p),w=(function(ve,Fe){if(ve!=null)return Af(ve);if(Fe!=null){n(Jn(Fe,32),"invalid yParityAndS");var Ee=At(Fe);return Ee[0]&=127,mt(Ee)}n(!1,"missing s")})(e.s,e.yParityAndS);n((128&At(w)[0])==0,"non-canonical s");var x=(function(ve,Fe,Ee){if(ve!=null){var O=Fr(ve);return{networkV:O>=Qi?O:void 0,v:r.getNormalizedV(O)}}if(Fe!=null)return n(Jn(Fe,32),"invalid yParityAndS"),{v:128&At(Fe)[0]?28:27};if(Ee!=null){switch(Ee){case 0:return{v:27};case 1:return{v:28}}n(!1,"invalid yParity")}n(!1,"missing v")})(e.v,e.yParityAndS,e.yParity),j=x.networkV,J=x.v,we=new r(Ea,b,w,J);return j&&dt(we,fi,j),n(!("yParity"in e&&e.yParity!==we.yParity),"yParity mismatch"),n(!("yParityAndS"in e&&e.yParityAndS!==we.yParityAndS),"yParityAndS mismatch"),we}}]),r})();function Ku(r){if(!Number.isSafeInteger(r)||r<0)throw new Error(`Wrong positive integer: ${r}`)}function wf(r,...e){if(!(r instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(e.length>0&&!e.includes(r.length))throw new TypeError(`Expected Uint8Array of length ${e}, not of length=${r.length}`)}const Zg={number:Ku,bool:function(r){if(typeof r!="boolean")throw new Error(`Expected boolean, not ${r}`)},bytes:wf,hash:function(r){if(typeof r!="function"||typeof r.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Ku(r.outputLen),Ku(r.blockLen)},exists:function(r,e=!0){if(r.destroyed)throw new Error("Hash instance has been destroyed");if(e&&r.finished)throw new Error("Hash#digest() has already been called")},output:function(r,e){wf(r);const n=e.outputLen;if(r.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}},Lr=Zg,ns=r=>new Uint32Array(r.buffer,r.byteOffset,Math.floor(r.byteLength/4)),os=r=>new DataView(r.buffer,r.byteOffset,r.byteLength),lo=(r,e)=>r<<32-e|r>>>e;if(new Uint8Array(new Uint32Array([287454020]).buffer)[0]!==68)throw new Error("Non little-endian hardware is not supported");Array.from({length:256},(r,e)=>e.toString(16).padStart(2,"0"));const Jg=async()=>{};async function Pf(r,e,n){let a=Date.now();for(let c=0;c<r;c++){n(c);const u=Date.now()-a;u>=0&&u<e||(await Jg(),a+=u)}}function aa(r){if(typeof r=="string"&&(r=(function(e){if(typeof e!="string")throw new TypeError("utf8ToBytes expected string, got "+typeof e);return new TextEncoder().encode(e)})(r)),!(r instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof r})`);return r}class as{clone(){return this._cloneInto()}}const qg=r=>Object.prototype.toString.call(r)==="[object Object]"&&r.constructor===Object;function Wf(r,e){if(e!==void 0&&(typeof e!="object"||!qg(e)))throw new TypeError("Options should be object or undefined");return Object.assign(r,e)}function Ma(r){const e=a=>r().update(aa(a)).digest(),n=r();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>r(),e}class Bf extends as{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,Lr.hash(e);const a=aa(n);if(this.iHash=e.create(),!(this.iHash instanceof as))throw new TypeError("Expected instance of class which extends utils.Hash");const c=this.blockLen=this.iHash.blockLen;this.outputLen=this.iHash.outputLen;const u=new Uint8Array(c);u.set(a.length>this.iHash.blockLen?e.create().update(a).digest():a);for(let d=0;d<u.length;d++)u[d]^=54;this.iHash.update(u),this.oHash=e.create();for(let d=0;d<u.length;d++)u[d]^=106;this.oHash.update(u),u.fill(0)}update(e){return Lr.exists(this),this.iHash.update(e),this}digestInto(e){Lr.exists(this),Lr.bytes(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:a,finished:c,destroyed:u,blockLen:d,outputLen:h}=this;return e.finished=c,e.destroyed=u,e.blockLen=d,e.outputLen=h,e.oHash=n._cloneInto(e.oHash),e.iHash=a._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Zu=(r,e,n)=>new Bf(r,e).update(n).digest();function Ju(r,e,n,a){const{c,dkLen:u,DK:d,PRF:h,PRFSalt:l}=(function(x,j,J,we){Lr.hash(x);const ve=Wf({dkLen:32,asyncTick:10},we),{c:Fe,dkLen:Ee,asyncTick:O}=ve;if(Lr.number(Fe),Lr.number(Ee),Lr.number(O),Fe<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const M=aa(j),I=aa(J),U=new Uint8Array(Ee),$=Zu.create(x,M),re=$._cloneInto().update(I);return{c:Fe,dkLen:Ee,asyncTick:O,DK:U,PRF:$,PRFSalt:re}})(r,e,n,a);let g;const p=new Uint8Array(4),b=os(p),w=new Uint8Array(h.outputLen);for(let x=1,j=0;j<u;x++,j+=h.outputLen){const J=d.subarray(j,j+h.outputLen);b.setInt32(0,x,!1),(g=l._cloneInto(g)).update(p).digestInto(w),J.set(w.subarray(0,J.length));for(let we=1;we<c;we++){h._cloneInto(g).update(w).digestInto(w);for(let ve=0;ve<J.length;ve++)J[ve]^=w[ve]}}return(function(x,j,J,we,ve){return x.destroy(),j.destroy(),we&&we.destroy(),ve.fill(0),J})(h,l,d,g,w)}Zu.create=(r,e)=>new Bf(r,e);class qu extends as{constructor(e,n,a,c){super(),this.blockLen=e,this.outputLen=n,this.padOffset=a,this.isLE=c,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=os(this.buffer)}update(e){Lr.exists(this);const{view:n,buffer:a,blockLen:c}=this,u=(e=aa(e)).length;for(let d=0;d<u;){const h=Math.min(c-this.pos,u-d);if(h!==c)a.set(e.subarray(d,d+h),this.pos),this.pos+=h,d+=h,this.pos===c&&(this.process(n,0),this.pos=0);else{const l=os(e);for(;c<=u-d;d+=c)this.process(l,d)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){Lr.exists(this),Lr.output(e,this),this.finished=!0;const{buffer:n,view:a,blockLen:c,isLE:u}=this;let{pos:d}=this;n[d++]=128,this.buffer.subarray(d).fill(0),this.padOffset>c-d&&(this.process(a,0),d=0);for(let l=d;l<c;l++)n[l]=0;(function(l,g,p,b){if(typeof l.setBigUint64=="function")return l.setBigUint64(g,p,b);const w=BigInt(32),x=BigInt(4294967295),j=Number(p>>w&x),J=Number(p&x),we=b?4:0,ve=b?0:4;l.setUint32(g+we,j,b),l.setUint32(g+ve,J,b)})(a,c-8,BigInt(8*this.length),u),this.process(a,0);const h=os(e);this.get().forEach((l,g)=>h.setUint32(4*g,l,u))}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const a=e.slice(0,n);return this.destroy(),a}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:a,length:c,finished:u,destroyed:d,pos:h}=this;return e.length=c,e.pos=h,e.finished=u,e.destroyed=d,c%n&&e.buffer.set(a),e}}const Yg=(r,e,n)=>r&e^~r&n,Xg=(r,e,n)=>r&e^r&n^e&n,Qg=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),No=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Do=new Uint32Array(64);class ey extends qu{constructor(){super(64,32,8,!1),this.A=0|No[0],this.B=0|No[1],this.C=0|No[2],this.D=0|No[3],this.E=0|No[4],this.F=0|No[5],this.G=0|No[6],this.H=0|No[7]}get(){const{A:e,B:n,C:a,D:c,E:u,F:d,G:h,H:l}=this;return[e,n,a,c,u,d,h,l]}set(e,n,a,c,u,d,h,l){this.A=0|e,this.B=0|n,this.C=0|a,this.D=0|c,this.E=0|u,this.F=0|d,this.G=0|h,this.H=0|l}process(e,n){for(let b=0;b<16;b++,n+=4)Do[b]=e.getUint32(n,!1);for(let b=16;b<64;b++){const w=Do[b-15],x=Do[b-2],j=lo(w,7)^lo(w,18)^w>>>3,J=lo(x,17)^lo(x,19)^x>>>10;Do[b]=J+Do[b-7]+j+Do[b-16]|0}let{A:a,B:c,C:u,D:d,E:h,F:l,G:g,H:p}=this;for(let b=0;b<64;b++){const w=p+(lo(h,6)^lo(h,11)^lo(h,25))+Yg(h,l,g)+Qg[b]+Do[b]|0,x=(lo(a,2)^lo(a,13)^lo(a,22))+Xg(a,c,u)|0;p=g,g=l,l=h,h=d+w|0,d=u,u=c,c=a,a=w+x|0}a=a+this.A|0,c=c+this.B|0,u=u+this.C|0,d=d+this.D|0,h=h+this.E|0,l=l+this.F|0,g=g+this.G|0,p=p+this.H|0,this.set(a,c,u,d,h,l,g,p)}roundClean(){Do.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const di=Ma(()=>new ey),is=BigInt(2**32-1),Yu=BigInt(32);function Cf(r,e=!1){return e?{h:Number(r&is),l:Number(r>>Yu&is)}:{h:0|Number(r>>Yu&is),l:0|Number(r&is)}}const ty={fromBig:Cf,split:function(r,e=!1){let n=new Uint32Array(r.length),a=new Uint32Array(r.length);for(let c=0;c<r.length;c++){const{h:u,l:d}=Cf(r[c],e);[n[c],a[c]]=[u,d]}return[n,a]},toBig:(r,e)=>BigInt(r>>>0)<<Yu|BigInt(e>>>0),shrSH:(r,e,n)=>r>>>n,shrSL:(r,e,n)=>r<<32-n|e>>>n,rotrSH:(r,e,n)=>r>>>n|e<<32-n,rotrSL:(r,e,n)=>r<<32-n|e>>>n,rotrBH:(r,e,n)=>r<<64-n|e>>>n-32,rotrBL:(r,e,n)=>r>>>n-32|e<<64-n,rotr32H:(r,e)=>e,rotr32L:(r,e)=>r,rotlSH:(r,e,n)=>r<<n|e>>>32-n,rotlSL:(r,e,n)=>e<<n|r>>>32-n,rotlBH:(r,e,n)=>e<<n-32|r>>>64-n,rotlBL:(r,e,n)=>r<<n-32|e>>>64-n,add:function(r,e,n,a){const c=(e>>>0)+(a>>>0);return{h:r+n+(c/2**32|0)|0,l:0|c}},add3L:(r,e,n)=>(r>>>0)+(e>>>0)+(n>>>0),add3H:(r,e,n,a)=>e+n+a+(r/2**32|0)|0,add4L:(r,e,n,a)=>(r>>>0)+(e>>>0)+(n>>>0)+(a>>>0),add4H:(r,e,n,a,c)=>e+n+a+c+(r/2**32|0)|0,add5H:(r,e,n,a,c,u)=>e+n+a+c+u+(r/2**32|0)|0,add5L:(r,e,n,a,c)=>(r>>>0)+(e>>>0)+(n>>>0)+(a>>>0)+(c>>>0)},Jt=ty,[ry,ny]=Jt.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(r=>BigInt(r))),Uo=new Uint32Array(80),Lo=new Uint32Array(80);class Xu extends qu{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:n,Bh:a,Bl:c,Ch:u,Cl:d,Dh:h,Dl:l,Eh:g,El:p,Fh:b,Fl:w,Gh:x,Gl:j,Hh:J,Hl:we}=this;return[e,n,a,c,u,d,h,l,g,p,b,w,x,j,J,we]}set(e,n,a,c,u,d,h,l,g,p,b,w,x,j,J,we){this.Ah=0|e,this.Al=0|n,this.Bh=0|a,this.Bl=0|c,this.Ch=0|u,this.Cl=0|d,this.Dh=0|h,this.Dl=0|l,this.Eh=0|g,this.El=0|p,this.Fh=0|b,this.Fl=0|w,this.Gh=0|x,this.Gl=0|j,this.Hh=0|J,this.Hl=0|we}process(e,n){for(let Ee=0;Ee<16;Ee++,n+=4)Uo[Ee]=e.getUint32(n),Lo[Ee]=e.getUint32(n+=4);for(let Ee=16;Ee<80;Ee++){const O=0|Uo[Ee-15],M=0|Lo[Ee-15],I=Jt.rotrSH(O,M,1)^Jt.rotrSH(O,M,8)^Jt.shrSH(O,M,7),U=Jt.rotrSL(O,M,1)^Jt.rotrSL(O,M,8)^Jt.shrSL(O,M,7),$=0|Uo[Ee-2],re=0|Lo[Ee-2],q=Jt.rotrSH($,re,19)^Jt.rotrBH($,re,61)^Jt.shrSH($,re,6),ye=Jt.rotrSL($,re,19)^Jt.rotrBL($,re,61)^Jt.shrSL($,re,6),Pe=Jt.add4L(U,ye,Lo[Ee-7],Lo[Ee-16]),de=Jt.add4H(Pe,I,q,Uo[Ee-7],Uo[Ee-16]);Uo[Ee]=0|de,Lo[Ee]=0|Pe}let{Ah:a,Al:c,Bh:u,Bl:d,Ch:h,Cl:l,Dh:g,Dl:p,Eh:b,El:w,Fh:x,Fl:j,Gh:J,Gl:we,Hh:ve,Hl:Fe}=this;for(let Ee=0;Ee<80;Ee++){const O=Jt.rotrSH(b,w,14)^Jt.rotrSH(b,w,18)^Jt.rotrBH(b,w,41),M=Jt.rotrSL(b,w,14)^Jt.rotrSL(b,w,18)^Jt.rotrBL(b,w,41),I=b&x^~b&J,U=w&j^~w&we,$=Jt.add5L(Fe,M,U,ny[Ee],Lo[Ee]),re=Jt.add5H($,ve,O,I,ry[Ee],Uo[Ee]),q=0|$,ye=Jt.rotrSH(a,c,28)^Jt.rotrBH(a,c,34)^Jt.rotrBH(a,c,39),Pe=Jt.rotrSL(a,c,28)^Jt.rotrBL(a,c,34)^Jt.rotrBL(a,c,39),de=a&u^a&h^u&h,fe=c&d^c&l^d&l;ve=0|J,Fe=0|we,J=0|x,we=0|j,x=0|b,j=0|w,{h:b,l:w}=Jt.add(0|g,0|p,0|re,0|q),g=0|h,p=0|l,h=0|u,l=0|d,u=0|a,d=0|c;const xe=Jt.add3L(q,Pe,fe);a=Jt.add3H(xe,re,ye,de),c=0|xe}({h:a,l:c}=Jt.add(0|this.Ah,0|this.Al,0|a,0|c)),{h:u,l:d}=Jt.add(0|this.Bh,0|this.Bl,0|u,0|d),{h,l}=Jt.add(0|this.Ch,0|this.Cl,0|h,0|l),{h:g,l:p}=Jt.add(0|this.Dh,0|this.Dl,0|g,0|p),{h:b,l:w}=Jt.add(0|this.Eh,0|this.El,0|b,0|w),{h:x,l:j}=Jt.add(0|this.Fh,0|this.Fl,0|x,0|j),{h:J,l:we}=Jt.add(0|this.Gh,0|this.Gl,0|J,0|we),{h:ve,l:Fe}=Jt.add(0|this.Hh,0|this.Hl,0|ve,0|Fe),this.set(a,c,u,d,h,l,g,p,b,w,x,j,J,we,ve,Fe)}roundClean(){Uo.fill(0),Lo.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class oy extends Xu{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class ay extends Xu{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}const Qu=Ma(()=>new Xu);Ma(()=>new oy),Ma(()=>new ay);var Ef=(function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof _r.commonjsGlobal<"u")return _r.commonjsGlobal;throw new Error("unable to locate global object")})(),Mf=Ef.crypto||Ef.msCrypto;function iy(r){switch(r){case"sha256":return di.create();case"sha512":return Qu.create()}_e(!1,"invalid hashing algorithm name","algorithm",r)}var Of=function(r){return iy("sha256").update(r).digest()},If=Of,xf=!1;function cn(r){var e=At(r,"data");return mt(If(e))}cn._=Of,cn.lock=function(){xf=!0},cn.register=function(r){if(xf)throw new Error("sha256 is locked");If=r},Object.freeze(cn),Object.freeze(cn);var kf=!1,Sf=function(r,e,n,a,c){return(function(u,d,h,l,g){var p={sha256:di,sha512:Qu}[g];return _e(p!=null,"invalid pbkdf2 algorithm","algorithm",g),Ju(p,u,d,{c:h,dkLen:l})})(r,e,n,a,c)},Ff=Sf;function jo(r,e,n,a,c){var u=At(r,"password"),d=At(e,"salt");return mt(Ff(u,d,n,a,c))}function Rf(r,e,n,a,c){if(r==="BAD_PREFIX"||r==="UNEXPECTED_CONTINUE"){for(var u=0,d=e+1;d<n.length&&n[d]>>6==2;d++)u++;return u}return r==="OVERRUN"?n.length-e-1:0}jo._=Sf,jo.lock=function(){kf=!0},jo.register=function(r){if(kf)throw new Error("pbkdf2 is locked");Ff=r},Object.freeze(jo);var sy=Object.freeze({error:function(r,e,n,a,c){_e(!1,"invalid codepoint at offset ".concat(e,"; ").concat(r),"bytes",n)},ignore:Rf,replace:function(r,e,n,a,c){return r==="OVERLONG"?(_e(typeof c=="number","invalid bad code point for replacement","badCodepoint",c),a.push(c),0):(a.push(65533),Rf(r,e,n))}});function mn(r,e){e!=null&&(cf(e),r=r.normalize(e));for(var n=[],a=0;a<r.length;a++){var c=r.charCodeAt(a);if(c<128)n.push(c);else if(c<2048)n.push(c>>6|192),n.push(63&c|128);else if((64512&c)==55296){a++;var u=r.charCodeAt(a);_e(a<r.length&&(64512&u)==56320,"invalid surrogate pair","str",r);var d=65536+((1023&c)<<10)+(1023&u);n.push(d>>18|240),n.push(d>>12&63|128),n.push(d>>6&63|128),n.push(63&d|128)}else n.push(c>>12|224),n.push(c>>6&63|128),n.push(63&c|128)}return new Uint8Array(n)}function _f(r,e){return(function(n,a){a==null&&(a=sy.error);for(var c=At(n,"bytes"),u=[],d=0;d<c.length;){var h=c[d++];if(h>>7){var l=null,g=null;if((224&h)==192)l=1,g=127;else if((240&h)==224)l=2,g=2047;else{if((248&h)!=240){d+=a((192&h)==128?"UNEXPECTED_CONTINUE":"BAD_PREFIX",d-1,c,u);continue}l=3,g=65535}if(d-1+l>=c.length)d+=a("OVERRUN",d-1,c,u);else{for(var p=h&(1<<8-l-1)-1,b=0;b<l;b++){var w=c[d];if((192&w)!=128){d+=a("MISSING_CONTINUE",d,c,u),p=null;break}p=p<<6|63&w,d++}p!==null&&(p>1114111?d+=a("OUT_OF_RANGE",d-1-l,c,u,p):p>=55296&&p<=57343?d+=a("UTF16_SURROGATE",d-1-l,c,u,p):p<=g?d+=a("OVERLONG",d-1-l,c,u,p):u.push(p))}}else u.push(h)}return u})(r,e).map(function(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode(55296+(n>>10&1023),56320+(1023&n)))}).join("")}const[Nf,Df,Uf]=[[],[],[]],uy=BigInt(0),hi=BigInt(1),cy=BigInt(2),ly=BigInt(7),fy=BigInt(256),dy=BigInt(113);for(let r=0,e=hi,n=1,a=0;r<24;r++){[n,a]=[a,(2*n+3*a)%5],Nf.push(2*(5*a+n)),Df.push((r+1)*(r+2)/2%64);let c=uy;for(let u=0;u<7;u++)e=(e<<hi^(e>>ly)*dy)%fy,e&cy&&(c^=hi<<(hi<<BigInt(u))-hi);Uf.push(c)}const[hy,py]=Jt.split(Uf,!0),Lf=(r,e,n)=>n>32?Jt.rotlBH(r,e,n):Jt.rotlSH(r,e,n),jf=(r,e,n)=>n>32?Jt.rotlBL(r,e,n):Jt.rotlSL(r,e,n);class ss extends as{constructor(e,n,a,c=!1,u=24){if(super(),this.blockLen=e,this.suffix=n,this.outputLen=a,this.enableXOF=c,this.rounds=u,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Lr.number(a),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=ns(this.state)}keccak(){(function(e,n=24){const a=new Uint32Array(10);for(let c=24-n;c<24;c++){for(let h=0;h<10;h++)a[h]=e[h]^e[h+10]^e[h+20]^e[h+30]^e[h+40];for(let h=0;h<10;h+=2){const l=(h+8)%10,g=(h+2)%10,p=a[g],b=a[g+1],w=Lf(p,b,1)^a[l],x=jf(p,b,1)^a[l+1];for(let j=0;j<50;j+=10)e[h+j]^=w,e[h+j+1]^=x}let u=e[2],d=e[3];for(let h=0;h<24;h++){const l=Df[h],g=Lf(u,d,l),p=jf(u,d,l),b=Nf[h];u=e[b],d=e[b+1],e[b]=g,e[b+1]=p}for(let h=0;h<50;h+=10){for(let l=0;l<10;l++)a[l]=e[h+l];for(let l=0;l<10;l++)e[h+l]^=~a[(l+2)%10]&a[(l+4)%10]}e[0]^=hy[c],e[1]^=py[c]}a.fill(0)})(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){Lr.exists(this);const{blockLen:n,state:a}=this,c=(e=aa(e)).length;for(let u=0;u<c;){const d=Math.min(n-this.pos,c-u);for(let h=0;h<d;h++)a[this.pos++]^=e[u++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:n,pos:a,blockLen:c}=this;e[a]^=n,128&n&&a===c-1&&this.keccak(),e[c-1]^=128,this.keccak()}writeInto(e){Lr.exists(this,!1),Lr.bytes(e),this.finish();const n=this.state,{blockLen:a}=this;for(let c=0,u=e.length;c<u;){this.posOut>=a&&this.keccak();const d=Math.min(a-this.posOut,u-c);e.set(n.subarray(this.posOut,this.posOut+d),c),this.posOut+=d,c+=d}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return Lr.number(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(Lr.output(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:n,suffix:a,outputLen:c,rounds:u,enableXOF:d}=this;return e||(e=new ss(n,a,c,d,u)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=u,e.suffix=a,e.outputLen=c,e.enableXOF=d,e.destroyed=this.destroyed,e}}const zo=(r,e,n)=>Ma(()=>new ss(e,r,n)),gy=(zo(6,144,28),zo(6,136,32),zo(6,104,48),zo(6,72,64),zo(1,144,28),zo(1,136,32)),zf=(zo(1,104,48),zo(1,72,64),(r,e,n)=>(function(a){const c=(d,h)=>a(h).update(aa(d)).digest(),u=a({});return c.outputLen=u.outputLen,c.blockLen=u.blockLen,c.create=d=>a(d),c})((a={})=>new ss(e,r,a.dkLen===void 0?n:a.dkLen,!0)));zf(31,168,16),zf(31,136,32);var Vf=!1,Gf=function(r){return gy(r)},$f=Gf;function rr(r){var e=At(r,"data");return mt($f(e))}function Sn(r){return rr(mn(r))}rr._=Gf,rr.lock=function(){Vf=!0},rr.register=function(r){if(Vf)throw new TypeError("keccak256 is locked");$f=r},Object.freeze(rr);var us=" !#$%&'()*+,-./<=>?@[]^_`{|}~",yy=/^[a-z]*$/i;function Hf(r,e){var n=97;return r.reduce(function(a,c){return c===e?n++:c.match(yy)?a.push(String.fromCharCode(n)+c):(n=97,a.push(c)),a},[])}var Kf=(function(){function r(e){Q(this,r),te(this,"locale",void 0),ur(this,{locale:e})}return E(r,[{key:"split",value:function(e){return e.toLowerCase().split(/\s+/g)}},{key:"join",value:function(e){return e.join(" ")}}]),r})();function ec(r,e,n){Zf(r,e),e.set(r,n)}function Zf(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Jf(r,e,n){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return n}var cs=new WeakMap,tc=new WeakMap,pi=new WeakMap,rc=new WeakSet,my=(function(r){K(c,r);var e,n,a=(e=c,n=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})(),function(){var u,d=ce(e);if(n){var h=ce(this).constructor;u=Reflect.construct(d,arguments,h)}else u=d.apply(this,arguments);return Y(this,u)});function c(u,d,h){var l,g,p;return Q(this,c),Zf(g=S(l=a.call(this,u)),p=rc),p.add(g),ec(S(l),cs,{writable:!0,value:void 0}),ec(S(l),tc,{writable:!0,value:void 0}),ec(S(l),pi,{writable:!0,value:void 0}),dt(S(l),cs,d),dt(S(l),tc,h),dt(S(l),pi,null),l}return E(c,[{key:"_data",get:function(){return Qe(this,cs)}},{key:"_decodeWords",value:function(){return _e((u=Qe(this,cs))[0]==="0","unsupported auwl data","data",u),(function(d,h){for(var l=us.length-1;l>=0;l--)d=d.split(us[l]).join(h.substring(2*l,2*l+2));var g=[],p=d.replace(/(:|([0-9])|([A-Z][a-z]*))/g,function(b,w,x,j){if(x)for(var J=parseInt(x);J>=0;J--)g.push(";");else g.push(w.toLowerCase());return""});if(p)throw new Error("leftovers: ".concat(JSON.stringify(p)));return Hf(Hf(g,";"),":")})(u.substring(1+2*us.length),u.substring(1,1+2*us.length));var u}},{key:"getWord",value:function(u){var d=Jf(this,rc,qf).call(this);return _e(u>=0&&u<d.length,"invalid word index: ".concat(u),"index",u),d[u]}},{key:"getWordIndex",value:function(u){return Jf(this,rc,qf).call(this).indexOf(u)}}]),c})(Kf);function qf(){if(Qe(this,pi)==null){var r=this._decodeWords();if(Sn(r.join(`
|
|
13
|
+
`)+`
|
|
14
|
+
`)!==Qe(this,tc))throw new Error("BIP39 Wordlist for ".concat(this.locale," FAILED"));dt(this,pi,r)}return Qe(this,pi)}var vy="0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN<aNn RRelyRga(R*lSeS-SketTt!3A^AnAutyCau'ComeEfF%eG(Ha=H(dLie=LowLtN^Nef./TrayTt Twe&Y#d3Cyc!DKeNdOlogyRdR`Tt _{AdeAmeAnketA,EakE[IndOodO[omOu'UeUrUsh_rdAtDyIlMbNeNusOkO,Rd R(gRrowSsTtomUn)XY_{etA(AndA[A=EadEezeI{Id+IefIghtIngIskOccoliOk&OnzeOomO` OwnUsh2Bb!DdyD+tFf$oIldLbLkL!tNd!Nk Rd&Rg R,SS(e[SyTt Y Zz:Bba+B(B!CtusGeKe~LmM aMpNN$N)lNdyNn#NoeNvasNy#Pab!P.$Pta(RRb#RdRgoRpetRryRtSeShS(o/!Su$TT$ogT^Teg%yTt!UghtU'Ut]Ve3Il(gL yM|NsusNturyRe$Rta(_irAlkAmp]An+AosApt Ar+A'AtEapE{Ee'EfErryE,I{&IefIldIm}yOi)Oo'R#-U{!UnkUrn0G?Nnam#Rc!Tiz&TyVil_imApArifyAwAyE<ErkEv I{I|IffImbIn-IpO{OgO'O`OudOwnUbUmpU, Ut^_^A,C#utDeFfeeIlInL!@L%LumnMb(eMeMf%tM-Mm#Mp<yNc tNdu@NfirmNg*[N}@Nsid NtrolNv()OkOlPp PyR$ReRnR*@/Tt#U^UntryUp!Ur'Us(V Yo>_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M<dMi'Ni$Nti,NyP?tP&dPos.P`PutyRi=ScribeS tSignSkSpair/royTailTe@VelopVi)Vo>3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-Eg<tEm|Eph<tEvat%I>Se0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-P<dPe@Pi*Pla(Po'P*[T&dTra0EEbrow:Br-CeCultyDeIntI`~L'MeMilyMousNNcyNtasyRmSh]TT$Th TigueUltV%.e3Atu*Bru?yD $EEdElMa!N)/iv$T^V W3B Ct]EldGu*LeLmLt N$NdNeNg NishReRmR,Sc$ShTT}[X_gAmeAshAtAv%EeIghtIpOatO{O%Ow UidUshY_mCusGIlLd~owOdOtR)Re,R+tRkRtu}RumRw?dSsil/ UndX_gi!AmeEqu|EshI&dIn+OgOntO,OwnOz&U.2ElNNnyRna)RyTu*:D+tInLaxy~ yMePRa+Rba+Rd&Rl-Rm|SSpTeTh U+Ze3N $NiusN*Nt!Nu(e/u*2O,0AntFtGg!Ng RaffeRlVe_dAn)A*A[IdeImp'ObeOomOryO=OwUe_tDde[LdOdO'RillaSpelSsipV nWn_bA)A(AntApeA[Av.yEatE&IdIefItOc yOupOwUnt_rdE[IdeIltIt?N3M:B.IrLfMm M, NdPpyRb%RdRshR=,TVeWkZ?d3AdAl`ArtAvyD+hogIght~oLmetLpNRo3Dd&Gh~NtPRe/%y5BbyCkeyLdLeLiday~owMeNeyOdPeRnRr%R'Sp.$/TelUrV 5BGeM<Mb!M%Nd*dNgryNtRd!RryRtSb<d3Brid:1EOn0EaEntifyLe2N%e4LLeg$L}[0A+Ita>M&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryF<tFl-tF%mHa!H .Iti$Je@JuryMa>N Noc|PutQuiryS<eSe@SideSpi*/$lTa@T e,ToVe,V.eVol=3On0L<dOla>Sue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurE<Tob 0Or1FF Fi)T&2L1Ay0DI=Ymp-0It0CeEI#L(eLy1EnEraIn]Po'T]1An+B.Ch?dD D(?yG<I|Ig($Ph<0Tr-h0H 0Tdo%T TputTside0AlEnEr0NN 0Yg&0/ 0O}:CtDd!GeIrLa)LmNdaNelN-N` P RadeR|RkRrotRtySsT^ThTi|TrolTt nU'VeYm|3A)AnutArAs<tL-<NN$tyNcilOp!Pp Rfe@Rm.Rs#T2O}OtoRa'Ys-$0AnoCn-Ctu*E)GGe#~LotNkO} Pe/olT^Zza_)A}tA,-A>AyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOg<OtOwUsh0AllArtI!OkeOo`0A{AkeApIffOw0ApCc Ci$CkDaFtL?Ldi LidLut]L=Me#eNgOnRryRtUlUndUpUr)U`0A)A*Ati$AwnEakEci$EedEllEndH eI)Id IkeInIr.L.OilOns%O#OrtOtRayReadR(gY0Ua*UeezeUir*l_b!AdiumAffA+AirsAmpAndArtA>AyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|UffUmb!Y!0Bje@Bm.BwayC)[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NN<tNnisNtRm/Xt_nkAtEmeEnE%yE*EyIngIsOughtReeRi=RowUmbUnd 0CketDeG LtMb MeNyPRedSsueT!5A,BaccoDayDdl EGe` I!tK&MatoM%rowNeNgueNightOlO`PP-Pp!R^RnadoRtoi'SsT$Uri,W?dW WnY_{AdeAff-Ag-A(Ansf ApAshA=lAyEatEeEndI$IbeI{Igg ImIpOphyOub!U{UeUlyUmpetU,U`Y2BeIt]Mb!NaN}lRkeyRnRt!1El=EntyI)InI,O1PeP-$:5Ly5B*lla0Ab!Awa*C!Cov D DoFairFoldHappyIf%mIqueItIv 'KnownLo{TilUsu$Veil1Da>GradeHoldOnP Set1B<Ge0A+EEdEfulE![U$0Il.y:C<tCuumGueLidL!yL=NNishP%Rious/Ult3H-!L=tNd%Ntu*NueRbRifyRs]RyS'lT <3Ab!Br<tCiousCt%yDeoEw~a+Nta+Ol(Rtu$RusSaS.Su$T$Vid5C$I)IdLc<oLumeTeYa+:GeG#ItLk~LnutNtRfa*RmRri%ShSp/eT VeY3Al`Ap#ArA'lA` BDd(gEk&dIrdLcome/T_!AtEatEelEnE*IpIsp 0DeD`FeLd~NNdowNeNgNkNn Nt ReSdomSeShT}[5LfM<Nd OdOlRdRkRldRryR`_pE{E,!I,I>Ong::Rd3Ar~ow9UUngU`:3BraRo9NeO",by="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60",nc=null,Oa=(function(r){K(c,r);var e,n,a=(e=c,n=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})(),function(){var u,d=ce(e);if(n){var h=ce(this).constructor;u=Reflect.construct(d,arguments,h)}else u=d.apply(this,arguments);return Y(this,u)});function c(){return Q(this,c),a.call(this,"en",vy,by)}return E(c,null,[{key:"wordlist",value:function(){return nc==null&&(nc=new c),nc}}]),c})(my);function Yf(r){return(1<<r)-1<<8-r&255}function oc(r,e){cf("NFKD"),e==null&&(e=Oa.wordlist());var n=e.split(r);_e(n.length%3==0&&n.length>=12&&n.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");for(var a=new Uint8Array(Math.ceil(11*n.length/8)),c=0,u=0;u<n.length;u++){var d=e.getWordIndex(n[u].normalize("NFKD"));_e(d>=0,"invalid mnemonic word at index ".concat(u),"mnemonic","[ REDACTED ]");for(var h=0;h<11;h++)d&1<<10-h&&(a[c>>3]|=1<<7-c%8),c++}var l=32*n.length/3,g=Yf(n.length/3);return _e((At(cn(a.slice(0,l/8)))[0]&g)==(a[a.length-1]&g),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),mt(a.slice(0,l/8))}function ac(r,e){_e(r.length%4==0&&r.length>=16&&r.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),e==null&&(e=Oa.wordlist());for(var n=[0],a=11,c=0;c<r.length;c++)a>8?(n[n.length-1]<<=8,n[n.length-1]|=r[c],a-=8):(n[n.length-1]<<=a,n[n.length-1]|=r[c]>>8-a,n.push(r[c]&(1<<8-a)-1&255),a+=3);var u=r.length/4,d=parseInt(cn(r).substring(2,4),16)&Yf(u);return n[n.length-1]<<=u,n[n.length-1]|=d>>8-u,e.join(n.map(function(h){return e.getWord(h)}))}var ic={},Ia=(function(){function r(e,n,a,c,u){Q(this,r),te(this,"phrase",void 0),te(this,"password",void 0),te(this,"wordlist",void 0),te(this,"entropy",void 0),c==null&&(c=""),u==null&&(u=Oa.wordlist()),Ro(e,ic,"Mnemonic"),ur(this,{phrase:a,password:c,wordlist:u,entropy:n})}return E(r,[{key:"computeSeed",value:function(){var e=mn("mnemonic"+this.password,"NFKD");return jo(mn(this.phrase,"NFKD"),e,2048,64,"sha512")}}],[{key:"fromPhrase",value:function(e,n,a){var c=oc(e,a);return e=ac(At(c),a),new r(ic,c,e,n,a)}},{key:"fromEntropy",value:function(e,n,a){var c=At(e,"entropy"),u=ac(c,a);return new r(ic,mt(c),u,n,a)}},{key:"entropyToPhrase",value:function(e,n){return ac(At(e,"entropy"),n)}},{key:"phraseToEntropy",value:function(e,n){return oc(e,n)}},{key:"isValidMnemonic",value:function(e,n){try{return oc(e,n),!0}catch{}return!1}}]),r})(),Xf=!1,Qf=function(r,e,n){return(function(a,c){var u={sha256:di,sha512:Qu}[a];return _e(u!=null,"invalid hmac algorithm","algorithm",a),Zu.create(u,c)})(r,e).update(n).digest()},ed=Qf;function To(r,e,n){var a=At(e,"key"),c=At(n,"data");return mt(ed(r,a,c))}To._=Qf,To.lock=function(){Xf=!0},To.register=function(r){if(Xf)throw new Error("computeHmac is locked");ed=r},Object.freeze(To);var Ty=BigInt(0),Ay=BigInt(36);function td(r){for(var e=(r=r.toLowerCase()).substring(2).split(""),n=new Uint8Array(40),a=0;a<40;a++)n[a]=e[a].charCodeAt(0);for(var c=At(rr(n)),u=0;u<40;u+=2)c[u>>1]>>4>=8&&(e[u]=e[u].toUpperCase()),(15&c[u>>1])>=8&&(e[u+1]=e[u+1].toUpperCase());return"0x"+e.join("")}for(var sc={},ls=0;ls<10;ls++)sc[String(ls)]=String(ls);for(var fs=0;fs<26;fs++)sc[String.fromCharCode(65+fs)]=String(10+fs);var rd=15,wy=(function(){for(var r={},e=0;e<36;e++)r["0123456789abcdefghijklmnopqrstuvwxyz"[e]]=BigInt(e);return r})();function Jr(r){if(_e(typeof r=="string","invalid address","address",r),r.match(/^(0x)?[0-9a-fA-F]{40}$/)){r.startsWith("0x")||(r="0x"+r);var e=td(r);return _e(!r.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||e===r,"bad address checksum","address",r),e}if(r.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){_e(r.substring(2,4)===(function(a){for(var c=(a=(a=a.toUpperCase()).substring(4)+a.substring(0,2)+"00").split("").map(function(h){return sc[h]}).join("");c.length>=rd;){var u=c.substring(0,rd);c=parseInt(u,10)%97+c.substring(u.length)}for(var d=String(98-parseInt(c,10)%97);d.length<2;)d="0"+d;return d})(r),"bad icap checksum","address",r);for(var n=(function(a){a=a.toLowerCase();for(var c=Ty,u=0;u<a.length;u++)c=c*Ay+wy[a[u]];return c})(r.substring(4)).toString(16);n.length<40;)n="0"+n;return td("0x"+n)}_e(!1,"invalid address","address",r)}function Xn(r,e){return(function(n){if(Array.isArray(n))return n})(r)||(function(n,a){var c=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var u,d,h,l,g=[],p=!0,b=!1;try{if(h=(c=c.call(n)).next,a===0){if(Object(c)!==c)return;p=!1}else for(;!(p=(u=h.call(c)).done)&&(g.push(u.value),g.length!==a);p=!0);}catch(w){b=!0,d=w}finally{try{if(!p&&c.return!=null&&(l=c.return(),Object(l)!==l))return}finally{if(b)throw d}}return g}})(r,e)||Yl(r,e)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}var Py=Ve(5856),Wy=Ve.t(Py,2);const Ar=BigInt(0),Ur=BigInt(1),Vo=BigInt(2),gi=BigInt(3),nd=BigInt(8),Gr=Object.freeze({a:Ar,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:Ur,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")}),od=(r,e)=>(r+e/Vo)/e,ds={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar(r){const{n:e}=Gr,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),a=-Ur*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),c=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),u=n,d=BigInt("0x100000000000000000000000000000000"),h=od(u*r,e),l=od(-a*r,e);let g=wt(r-h*n-l*c,e),p=wt(-h*a-l*u,e);const b=g>d,w=p>d;if(b&&(g=e-g),w&&(p=e-p),g>d||p>d)throw new Error("splitScalarEndo: Endomorphism failed, k="+r);return{k1neg:b,k1:g,k2neg:w,k2:p}}},Qn=32,xa=32,hs=Qn+1,ps=2*Qn+1;function ad(r){const{a:e,b:n}=Gr,a=wt(r*r),c=wt(a*r);return wt(c+e*r+n)}const gs=Gr.a===Ar;class id extends Error{constructor(e){super(e)}}function sd(r){if(!(r instanceof Ir))throw new TypeError("JacobianPoint expected")}class Ir{constructor(e,n,a){this.x=e,this.y=n,this.z=a}static fromAffine(e){if(!(e instanceof xr))throw new TypeError("JacobianPoint#fromAffine: expected Point");return e.equals(xr.ZERO)?Ir.ZERO:new Ir(e.x,e.y,Ur)}static toAffineBatch(e){const n=(function(a,c=Gr.P){const u=new Array(a.length),d=a.reduce((l,g,p)=>g===Ar?l:(u[p]=l,wt(l*g,c)),Ur),h=vi(d,c);return a.reduceRight((l,g,p)=>g===Ar?l:(u[p]=wt(l*u[p],c),wt(l*g,c)),h),u})(e.map(a=>a.z));return e.map((a,c)=>a.toAffine(n[c]))}static normalizeZ(e){return Ir.toAffineBatch(e).map(Ir.fromAffine)}equals(e){sd(e);const{x:n,y:a,z:c}=this,{x:u,y:d,z:h}=e,l=wt(c*c),g=wt(h*h),p=wt(n*g),b=wt(u*l),w=wt(wt(a*h)*g),x=wt(wt(d*c)*l);return p===b&&w===x}negate(){return new Ir(this.x,wt(-this.y),this.z)}double(){const{x:e,y:n,z:a}=this,c=wt(e*e),u=wt(n*n),d=wt(u*u),h=e+u,l=wt(Vo*(wt(h*h)-c-d)),g=wt(gi*c),p=wt(g*g),b=wt(p-Vo*l),w=wt(g*(l-b)-nd*d),x=wt(Vo*n*a);return new Ir(b,w,x)}add(e){sd(e);const{x:n,y:a,z:c}=this,{x:u,y:d,z:h}=e;if(u===Ar||d===Ar)return this;if(n===Ar||a===Ar)return e;const l=wt(c*c),g=wt(h*h),p=wt(n*g),b=wt(u*l),w=wt(wt(a*h)*g),x=wt(wt(d*c)*l),j=wt(b-p),J=wt(x-w);if(j===Ar)return J===Ar?this.double():Ir.ZERO;const we=wt(j*j),ve=wt(j*we),Fe=wt(p*we),Ee=wt(J*J-ve-Vo*Fe),O=wt(J*(Fe-Ee)-w*ve),M=wt(c*h*j);return new Ir(Ee,O,M)}subtract(e){return this.add(e.negate())}multiplyUnsafe(e){const n=Ir.ZERO;if(typeof e=="bigint"&&e===Ar)return n;let a=ld(e);if(a===Ur)return this;if(!gs){let b=n,w=this;for(;a>Ar;)a&Ur&&(b=b.add(w)),w=w.double(),a>>=Ur;return b}let{k1neg:c,k1:u,k2neg:d,k2:h}=ds.splitScalar(a),l=n,g=n,p=this;for(;u>Ar||h>Ar;)u&Ur&&(l=l.add(p)),h&Ur&&(g=g.add(p)),p=p.double(),u>>=Ur,h>>=Ur;return c&&(l=l.negate()),d&&(g=g.negate()),g=new Ir(wt(g.x*ds.beta),g.y,g.z),l.add(g)}precomputeWindow(e){const n=gs?128/e+1:256/e+1,a=[];let c=this,u=c;for(let d=0;d<n;d++){u=c,a.push(u);for(let h=1;h<2**(e-1);h++)u=u.add(c),a.push(u);c=u.double()}return a}wNAF(e,n){!n&&this.equals(Ir.BASE)&&(n=xr.BASE);const a=n&&n._WINDOW_SIZE||1;if(256%a)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let c=n&&uc.get(n);c||(c=this.precomputeWindow(a),n&&a!==1&&(c=Ir.normalizeZ(c),uc.set(n,c)));let u=Ir.ZERO,d=Ir.BASE;const h=1+(gs?128/a:256/a),l=2**(a-1),g=BigInt(2**a-1),p=2**a,b=BigInt(a);for(let w=0;w<h;w++){const x=w*l;let j=Number(e&g);e>>=b,j>l&&(j-=p,e+=Ur);const J=x,we=x+Math.abs(j)-1,ve=w%2!=0,Fe=j<0;j===0?d=d.add(ys(ve,c[J])):u=u.add(ys(Fe,c[we]))}return{p:u,f:d}}multiply(e,n){let a,c,u=ld(e);if(gs){const{k1neg:d,k1:h,k2neg:l,k2:g}=ds.splitScalar(u);let{p,f:b}=this.wNAF(h,n),{p:w,f:x}=this.wNAF(g,n);p=ys(d,p),w=ys(l,w),w=new Ir(wt(w.x*ds.beta),w.y,w.z),a=p.add(w),c=b.add(x)}else{const{p:d,f:h}=this.wNAF(u,n);a=d,c=h}return Ir.normalizeZ([a,c])[0]}toAffine(e){const{x:n,y:a,z:c}=this,u=this.equals(Ir.ZERO);e==null&&(e=u?nd:vi(c));const d=e,h=wt(d*d),l=wt(h*d),g=wt(n*h),p=wt(a*l),b=wt(c*d);if(u)return xr.ZERO;if(b!==Ur)throw new Error("invZ was invalid");return new xr(g,p)}}function ys(r,e){const n=e.negate();return r?n:e}Ir.BASE=new Ir(Gr.Gx,Gr.Gy,Ur),Ir.ZERO=new Ir(Ar,Ur,Ar);const uc=new WeakMap;class xr{constructor(e,n){this.x=e,this.y=n}_setWindowSize(e){this._WINDOW_SIZE=e,uc.delete(this)}hasEvenY(){return this.y%Vo===Ar}static fromCompressedHex(e){const n=e.length===32,a=$o(n?e:e.subarray(1));if(!lc(a))throw new Error("Point is not on curve");let c=(function(h){const{P:l}=Gr,g=BigInt(6),p=BigInt(11),b=BigInt(22),w=BigInt(23),x=BigInt(44),j=BigInt(88),J=h*h*h%l,we=J*J*h%l,ve=Fn(we,gi)*we%l,Fe=Fn(ve,gi)*we%l,Ee=Fn(Fe,Vo)*J%l,O=Fn(Ee,p)*Ee%l,M=Fn(O,b)*O%l,I=Fn(M,x)*M%l,U=Fn(I,j)*I%l,$=Fn(U,x)*M%l,re=Fn($,gi)*we%l,q=Fn(re,w)*O%l,ye=Fn(q,g)*J%l,Pe=Fn(ye,Vo);if(Pe*Pe%l!==h)throw new Error("Cannot find square root");return Pe})(ad(a));const u=(c&Ur)===Ur;n?u&&(c=wt(-c)):(1&e[0])==1!==u&&(c=wt(-c));const d=new xr(a,c);return d.assertValidity(),d}static fromUncompressedHex(e){const n=$o(e.subarray(1,Qn+1)),a=$o(e.subarray(Qn+1,2*Qn+1)),c=new xr(n,a);return c.assertValidity(),c}static fromHex(e){const n=mi(e),a=n.length,c=n[0];if(a===Qn)return this.fromCompressedHex(n);if(a===hs&&(c===2||c===3))return this.fromCompressedHex(n);if(a===ps&&c===4)return this.fromUncompressedHex(n);throw new Error(`Point.fromHex: received invalid point. Expected 32-${hs} compressed bytes or ${ps} uncompressed bytes, not ${a}`)}static fromPrivateKey(e){return xr.BASE.multiply(Ai(e))}static fromSignature(e,n,a){const{r:c,s:u}=(function(J){if(J instanceof fo)return J.assertValidity(),J;try{return fo.fromDER(J)}catch{return fo.fromCompact(J)}})(n);if(![0,1,2,3].includes(a))throw new Error("Cannot recover: invalid recovery bit");const d=fd(mi(e)),{n:h}=Gr,l=a===2||a===3?c+h:c,g=vi(l,h),p=wt(-d*g,h),b=wt(u*g,h),w=1&a?"03":"02",x=xr.fromHex(w+Sa(l)),j=xr.BASE.multiplyAndAddUnsafe(x,p,b);if(!j)throw new Error("Cannot recover signature: point at infinify");return j.assertValidity(),j}toRawBytes(e=!1){return ia(this.toHex(e))}toHex(e=!1){const n=Sa(this.x);return e?`${this.hasEvenY()?"02":"03"}${n}`:`04${n}${Sa(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){const e="Point is not on elliptic curve",{x:n,y:a}=this;if(!lc(n)||!lc(a))throw new Error(e);const c=wt(a*a);if(wt(c-ad(n))!==Ar)throw new Error(e)}equals(e){return this.x===e.x&&this.y===e.y}negate(){return new xr(this.x,wt(-this.y))}double(){return Ir.fromAffine(this).double().toAffine()}add(e){return Ir.fromAffine(this).add(Ir.fromAffine(e)).toAffine()}subtract(e){return this.add(e.negate())}multiply(e){return Ir.fromAffine(this).multiply(e,this).toAffine()}multiplyAndAddUnsafe(e,n,a){const c=Ir.fromAffine(this),u=n===Ar||n===Ur||this!==xr.BASE?c.multiplyUnsafe(n):c.multiply(n),d=Ir.fromAffine(e).multiplyUnsafe(a),h=u.add(d);return h.equals(Ir.ZERO)?void 0:h.toAffine()}}function ud(r){return Number.parseInt(r[0],16)>=8?"00"+r:r}function cd(r){if(r.length<2||r[0]!==2)throw new Error(`Invalid signature integer tag: ${ka(r)}`);const e=r[1],n=r.subarray(2,e+2);if(!e||n.length!==e)throw new Error("Invalid signature integer: wrong length");if(n[0]===0&&n[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:$o(n),left:r.subarray(e+2)}}xr.BASE=new xr(Gr.Gx,Gr.Gy),xr.ZERO=new xr(Ar,Ar);class fo{constructor(e,n){this.r=e,this.s=n,this.assertValidity()}static fromCompact(e){const n=e instanceof Uint8Array,a="Signature.fromCompact";if(typeof e!="string"&&!n)throw new TypeError(`${a}: Expected string or Uint8Array`);const c=n?ka(e):e;if(c.length!==128)throw new Error(`${a}: Expected 64-byte hex`);return new fo(ms(c.slice(0,64)),ms(c.slice(64,128)))}static fromDER(e){const n=e instanceof Uint8Array;if(typeof e!="string"&&!n)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r:a,s:c}=(function(u){if(u.length<2||u[0]!=48)throw new Error(`Invalid signature tag: ${ka(u)}`);if(u[1]!==u.length-2)throw new Error("Invalid signature: incorrect length");const{data:d,left:h}=cd(u.subarray(2)),{data:l,left:g}=cd(h);if(g.length)throw new Error(`Invalid signature: left bytes after parsing: ${ka(g)}`);return{r:d,s:l}})(n?e:ia(e));return new fo(a,c)}static fromHex(e){return this.fromDER(e)}assertValidity(){const{r:e,s:n}=this;if(!Ti(e))throw new Error("Invalid Signature: r must be 0 < r < n");if(!Ti(n))throw new Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){const e=Gr.n>>Ur;return this.s>e}normalizeS(){return this.hasHighS()?new fo(this.r,wt(-this.s,Gr.n)):this}toDERRawBytes(){return ia(this.toDERHex())}toDERHex(){const e=ud(yi(this.s)),n=ud(yi(this.r)),a=e.length/2,c=n.length/2,u=yi(a),d=yi(c);return`30${yi(c+a+4)}02${d}${n}02${u}${e}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return ia(this.toCompactHex())}toCompactHex(){return Sa(this.r)+Sa(this.s)}}function Go(...r){if(!r.every(a=>a instanceof Uint8Array))throw new Error("Uint8Array list expected");if(r.length===1)return r[0];const e=r.reduce((a,c)=>a+c.length,0),n=new Uint8Array(e);for(let a=0,c=0;a<r.length;a++){const u=r[a];n.set(u,c),c+=u.length}return n}const By=Array.from({length:256},(r,e)=>e.toString(16).padStart(2,"0"));function ka(r){if(!(r instanceof Uint8Array))throw new Error("Expected Uint8Array");let e="";for(let n=0;n<r.length;n++)e+=By[r[n]];return e}const Cy=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000");function Sa(r){if(typeof r!="bigint")throw new Error("Expected bigint");if(!(Ar<=r&&r<Cy))throw new Error("Expected number 0 <= n < 2^256");return r.toString(16).padStart(64,"0")}function cc(r){const e=ia(Sa(r));if(e.length!==32)throw new Error("Error: expected 32 bytes");return e}function yi(r){const e=r.toString(16);return 1&e.length?`0${e}`:e}function ms(r){if(typeof r!="string")throw new TypeError("hexToNumber: expected string, got "+typeof r);return BigInt(`0x${r}`)}function ia(r){if(typeof r!="string")throw new TypeError("hexToBytes: expected string, got "+typeof r);if(r.length%2)throw new Error("hexToBytes: received invalid unpadded hex"+r.length);const e=new Uint8Array(r.length/2);for(let n=0;n<e.length;n++){const a=2*n,c=r.slice(a,a+2),u=Number.parseInt(c,16);if(Number.isNaN(u)||u<0)throw new Error("Invalid byte sequence");e[n]=u}return e}function $o(r){return ms(ka(r))}function mi(r){return r instanceof Uint8Array?Uint8Array.from(r):ia(r)}function ld(r){if(typeof r=="number"&&Number.isSafeInteger(r)&&r>0)return BigInt(r);if(typeof r=="bigint"&&Ti(r))return r;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function wt(r,e=Gr.P){const n=r%e;return n>=Ar?n:e+n}function Fn(r,e){const{P:n}=Gr;let a=r;for(;e-- >Ar;)a*=a,a%=n;return a}function vi(r,e=Gr.P){if(r===Ar||e<=Ar)throw new Error(`invert: expected positive integers, got n=${r} mod=${e}`);let n=wt(r,e),a=e,c=Ar,u=Ur;for(;n!==Ar;){const d=a/n,h=a%n,l=c-u*d;a=n,n=h,c=u,u=l}if(a!==Ur)throw new Error("invert: does not exist");return wt(c,e)}function fd(r,e=!1){const n=(function(c){const u=8*c.length-8*xa,d=$o(c);return u>0?d>>BigInt(u):d})(r);if(e)return n;const{n:a}=Gr;return n>=a?n-a:n}let Fa,bi;class Ey{constructor(e,n){if(this.hashLen=e,this.qByteLen=n,typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof n!="number"||n<2)throw new Error("qByteLen must be a number");this.v=new Uint8Array(e).fill(1),this.k=new Uint8Array(e).fill(0),this.counter=0}hmac(...e){return Ho.hmacSha256(this.k,...e)}hmacSync(...e){return bi(this.k,...e)}checkSync(){if(typeof bi!="function")throw new id("hmacSha256Sync needs to be set")}incr(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}async reseed(e=new Uint8Array){this.k=await this.hmac(this.v,Uint8Array.from([0]),e),this.v=await this.hmac(this.v),e.length!==0&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),e),this.v=await this.hmac(this.v))}reseedSync(e=new Uint8Array){this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),e),this.v=this.hmacSync(this.v),e.length!==0&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),e),this.v=this.hmacSync(this.v))}async generate(){this.incr();let e=0;const n=[];for(;e<this.qByteLen;){this.v=await this.hmac(this.v);const a=this.v.slice();n.push(a),e+=this.v.length}return Go(...n)}generateSync(){this.checkSync(),this.incr();let e=0;const n=[];for(;e<this.qByteLen;){this.v=this.hmacSync(this.v);const a=this.v.slice();n.push(a),e+=this.v.length}return Go(...n)}}function Ti(r){return Ar<r&&r<Gr.n}function lc(r){return Ar<r&&r<Gr.P}function My(r,e,n,a=!0){const{n:c}=Gr,u=fd(r,!0);if(!Ti(u))return;const d=vi(u,c),h=xr.BASE.multiply(u),l=wt(h.x,c);if(l===Ar)return;const g=wt(d*wt(e+n*l,c),c);if(g===Ar)return;let p=new fo(l,g),b=(h.x===p.r?0:2)|Number(h.y&Ur);return a&&p.hasHighS()&&(p=p.normalizeS(),b^=1),{sig:p,recovery:b}}function Ai(r){let e;if(typeof r=="bigint")e=r;else if(typeof r=="number"&&Number.isSafeInteger(r)&&r>0)e=BigInt(r);else if(typeof r=="string"){if(r.length!==2*xa)throw new Error("Expected 32 bytes of private key");e=ms(r)}else{if(!(r instanceof Uint8Array))throw new TypeError("Expected valid private key");if(r.length!==xa)throw new Error("Expected 32 bytes of private key");e=$o(r)}if(!Ti(e))throw new Error("Expected private key: 0 < key < n");return e}function dd(r){const e=r instanceof Uint8Array,n=typeof r=="string",a=(e||n)&&r.length;return e?a===hs||a===ps:n?a===2*hs||a===2*ps:r instanceof xr}function hd(r){return $o(r.length>Qn?r.slice(0,Qn):r)}function Oy(r){const e=hd(r),n=wt(e,Gr.n);return pd(n<Ar?e:n)}function pd(r){return cc(r)}xr.BASE._setWindowSize(8);const En={node:Wy,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0},vs={},Ho={bytesToHex:ka,hexToBytes:ia,concatBytes:Go,mod:wt,invert:vi,isValidPrivateKey(r){try{return Ai(r),!0}catch{return!1}},_bigintTo32Bytes:cc,_normalizePrivateKey:Ai,hashToPrivateKey:r=>{r=mi(r);const e=xa+8;if(r.length<e||r.length>1024)throw new Error("Expected valid bytes of private key as per FIPS 186");return cc(wt($o(r),Gr.n-Ur)+Ur)},randomBytes:(r=32)=>{if(En.web)return En.web.getRandomValues(new Uint8Array(r));if(En.node){const{randomBytes:e}=En.node;return Uint8Array.from(e(r))}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>Ho.hashToPrivateKey(Ho.randomBytes(xa+8)),precompute(r=8,e=xr.BASE){const n=e===xr.BASE?e:new xr(e.x,e.y);return n._setWindowSize(r),n.multiply(gi),n},sha256:async(...r)=>{if(En.web){const e=await En.web.subtle.digest("SHA-256",Go(...r));return new Uint8Array(e)}if(En.node){const{createHash:e}=En.node,n=e("sha256");return r.forEach(a=>n.update(a)),Uint8Array.from(n.digest())}throw new Error("The environment doesn't have sha256 function")},hmacSha256:async(r,...e)=>{if(En.web){const n=await En.web.subtle.importKey("raw",r,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),a=Go(...e),c=await En.web.subtle.sign("HMAC",n,a);return new Uint8Array(c)}if(En.node){const{createHmac:n}=En.node,a=n("sha256",r);return e.forEach(c=>a.update(c)),Uint8Array.from(a.digest())}throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(r,...e)=>{let n=vs[r];if(n===void 0){const a=await Ho.sha256(Uint8Array.from(r,c=>c.charCodeAt(0)));n=Go(a,a),vs[r]=n}return Ho.sha256(n,...e)},taggedHashSync:(r,...e)=>{if(typeof Fa!="function")throw new id("sha256Sync is undefined, you need to set it");let n=vs[r];if(n===void 0){const a=Fa(Uint8Array.from(r,c=>c.charCodeAt(0)));n=Go(a,a),vs[r]=n}return Fa(n,...e)},_JacobianPoint:Ir};Object.defineProperties(Ho,{sha256Sync:{configurable:!1,get:()=>Fa,set(r){Fa||(Fa=r)}},hmacSha256Sync:{configurable:!1,get:()=>bi,set(r){bi||(bi=r)}}}),Ho.hmacSha256Sync=function(r){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];return At(To("sha256",r,Sr(n)))};var sa=new WeakMap,Rn=(function(){function r(e){var n,a,c;Q(this,r),c={writable:!0,value:void 0},(function(u,d){if(d.has(u))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,a=sa),a.set(n,c),_e(li(e)===32,"invalid private key","privateKey","[REDACTED]"),dt(this,sa,mt(e))}return E(r,[{key:"privateKey",get:function(){return Qe(this,sa)}},{key:"publicKey",get:function(){return r.computePublicKey(Qe(this,sa))}},{key:"compressedPublicKey",get:function(){return r.computePublicKey(Qe(this,sa),!0)}},{key:"sign",value:function(e){_e(li(e)===32,"invalid digest length","digest",e);var n=(function(h,l,g={}){const{seed:p,m:b,d:w}=(function(J,we,ve){if(J==null)throw new Error(`sign: expected valid message hash, not "${J}"`);const Fe=mi(J),Ee=Ai(we),O=[pd(Ee),Oy(Fe)];if(ve!=null){ve===!0&&(ve=Ho.randomBytes(Qn));const M=mi(ve);if(M.length!==Qn)throw new Error(`sign: Expected ${Qn} bytes of extra data`);O.push(M)}return{seed:Go(...O),m:hd(Fe),d:Ee}})(h,l,g.extraEntropy),x=new Ey(32,xa);let j;for(x.reseedSync(p);!(j=My(x.generateSync(),b,w,g.canonical));)x.reseedSync();return(function(J,we){const{sig:ve,recovery:Fe}=J,{der:Ee,recovered:O}=Object.assign({canonical:!0,der:!0},we),M=Ee?ve.toDERRawBytes():ve.toCompactRawBytes();return O?[M,Fe]:M})(j,g)})(tn(e),tn(Qe(this,sa)),{recovered:!0,canonical:!0}),a=Xn(n,2),c=a[0],u=a[1],d=fo.fromHex(c);return Cn.from({r:Yn("0x"+d.r.toString(16),32),s:Yn("0x"+d.s.toString(16),32),v:u?28:27})}},{key:"computeSharedSecret",value:function(e){var n=r.computePublicKey(e);return mt((function(a,c,u=!1){if(dd(a))throw new TypeError("getSharedSecret: first arg must be private key");if(!dd(c))throw new TypeError("getSharedSecret: second arg must be public key");const d=(h=c)instanceof xr?(h.assertValidity(),h):xr.fromHex(h);var h;return d.assertValidity(),d.multiply(Ai(a)).toRawBytes(u)})(tn(Qe(this,sa)),At(n)))}}],[{key:"computePublicKey",value:function(e,n){var a=At(e,"key");if(a.length===32)return mt((function(u,d=!1){return xr.fromPrivateKey(u).toRawBytes(d)})(a,!!n));if(a.length===64){var c=new Uint8Array(65);c[0]=4,c.set(a,1),a=c}return mt(xr.fromHex(a).toRawBytes(n))}},{key:"recoverPublicKey",value:function(e,n){_e(li(e)===32,"invalid digest length","digest",e);var a=Cn.from(n),c=fo.fromCompact(tn(Sr([a.r,a.s]))).toDERRawBytes(),u=(function(d,h,l,g=!1){return xr.fromSignature(d,h,l).toRawBytes(g)})(tn(e),c,a.yParity);return _e(u!=null,"invalid signautre for digest","signature",n),mt(u)}},{key:"addPoints",value:function(e,n,a){var c=xr.fromHex(r.computePublicKey(e).substring(2)),u=xr.fromHex(r.computePublicKey(n).substring(2));return"0x"+c.add(u).toHex(!!a)}}]),r})();function wi(r){return Jr(rr("0x"+(typeof r=="string"?Rn.computePublicKey(r,!1):r.publicKey).substring(4)).substring(26))}function Ra(r,e){return wi(Rn.recoverPublicKey(r,e))}function fc(r,e,n){return fc=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})()?Reflect.construct.bind():function(a,c,u){var d=[null];d.push.apply(d,c);var h=new(Function.bind.apply(a,d));return u&&L(h,u.prototype),h},fc.apply(null,arguments)}function dc(r){var e=typeof Map=="function"?new Map:void 0;return dc=function(n){if(n===null||(a=n,Function.toString.call(a).indexOf("[native code]")===-1))return n;var a;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,c)}function c(){return fc(n,arguments,ce(this).constructor)}return c.prototype=Object.create(n.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),L(c,n)},dc(r)}function gd(r,e){yd(r,e),e.add(r)}function bs(r,e,n){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return n}function Pi(r,e,n){yd(r,e),e.set(r,n)}function yd(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}var ln=32,hc=new Uint8Array(ln),Iy=["then"],Ts={};function Wi(r,e){var n=new Error("deferred error during ABI decoding triggered accessing ".concat(r));throw n.error=e,n}var _a=new WeakMap,md=(function(r){K(c,r);var e,n,a=(e=c,n=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})(),function(){var u,d=ce(e);if(n){var h=ce(this).constructor;u=Reflect.construct(d,arguments,h)}else u=d.apply(this,arguments);return Y(this,u)});function c(){var u;Q(this,c);for(var d=arguments.length,h=new Array(d),l=0;l<d;l++)h[l]=arguments[l];var g=h[0],p=h[1],b=(h[2]||[]).slice(),w=!0;g!==Ts&&(p=h,b=[],w=!1),Pi(S(u=a.call(this,p.length)),_a,{writable:!0,value:void 0}),p.forEach(function(j,J){u[J]=j});var x=b.reduce(function(j,J){return typeof J=="string"&&j.set(J,(j.get(J)||0)+1),j},new Map);return dt(S(u),_a,Object.freeze(p.map(function(j,J){var we=b[J];return we!=null&&x.get(we)===1?we:null}))),w?(Object.freeze(S(u)),Y(u,new Proxy(S(u),{get:function(j,J,we){if(typeof J=="string"){if(J.match(/^[0-9]+$/)){var ve=un(J,"%index");if(ve<0||ve>=u.length)throw new RangeError("out of result range");var Fe=j[ve];return Fe instanceof Error&&Wi("index ".concat(ve),Fe),Fe}if(Iy.indexOf(J)>=0)return Reflect.get(j,J,we);var Ee=j[J];if(Ee instanceof Function)return function(){for(var O=arguments.length,M=new Array(O),I=0;I<O;I++)M[I]=arguments[I];return Ee.apply(this===we?j:this,M)};if(!(J in j))return j.getValue.apply(S(u)===we?j:S(u),[J])}return Reflect.get(j,J,we)}}))):Y(u)}return E(c,[{key:"toArray",value:function(){var u=[];return this.forEach(function(d,h){d instanceof Error&&Wi("index ".concat(h),d),u.push(d)}),u}},{key:"toObject",value:function(){var u=this;return Qe(this,_a).reduce(function(d,h,l){return jt(h!=null,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),h in d||(d[h]=u.getValue(h)),d},{})}},{key:"slice",value:function(u,d){u==null&&(u=0),u<0&&(u+=this.length)<0&&(u=0),d==null&&(d=this.length),d<0&&(d+=this.length)<0&&(d=0),d>this.length&&(d=this.length);for(var h=[],l=[],g=u;g<d;g++)h.push(this[g]),l.push(Qe(this,_a)[g]);return new c(Ts,h,l)}},{key:"filter",value:function(u,d){for(var h=[],l=[],g=0;g<this.length;g++){var p=this[g];p instanceof Error&&Wi("index ".concat(g),p),u.call(d,p,g,this)&&(h.push(p),l.push(Qe(this,_a)[g]))}return new c(Ts,h,l)}},{key:"map",value:function(u,d){for(var h=[],l=0;l<this.length;l++){var g=this[l];g instanceof Error&&Wi("index ".concat(l),g),h.push(u.call(d,g,l,this))}return h}},{key:"getValue",value:function(u){var d=Qe(this,_a).indexOf(u);if(d!==-1){var h=this[d];return h instanceof Error&&Wi("property ".concat(JSON.stringify(u)),h.error),h}}}],[{key:"fromItems",value:function(u,d){return new c(Ts,u,d)}}]),c})(dc(Array));function vd(r){var e=Bn(r);return jt(e.length<=ln,"value out-of-bounds","BUFFER_OVERRUN",{buffer:e,length:ln,offset:e.length}),e.length!==ln&&(e=tn(Sr([hc.slice(e.length%ln),e]))),e}var Ao=(function(){function r(e,n,a,c){Q(this,r),te(this,"name",void 0),te(this,"type",void 0),te(this,"localName",void 0),te(this,"dynamic",void 0),ur(this,{name:e,type:n,localName:a,dynamic:c},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}return E(r,[{key:"_throwError",value:function(e,n){_e(!1,e,this.localName,n)}}]),r})(),ua=new WeakMap,ca=new WeakMap,As=new WeakSet,pc=(function(){function r(){Q(this,r),gd(this,As),Pi(this,ua,{writable:!0,value:void 0}),Pi(this,ca,{writable:!0,value:void 0}),dt(this,ua,[]),dt(this,ca,0)}return E(r,[{key:"data",get:function(){return Sr(Qe(this,ua))}},{key:"length",get:function(){return Qe(this,ca)}},{key:"appendWriter",value:function(e){return bs(this,As,gc).call(this,tn(e.data))}},{key:"writeBytes",value:function(e){var n=tn(e),a=n.length%ln;return a&&(n=tn(Sr([n,hc.slice(a)]))),bs(this,As,gc).call(this,n)}},{key:"writeValue",value:function(e){return bs(this,As,gc).call(this,vd(e))}},{key:"writeUpdatableValue",value:function(){var e=this,n=Qe(this,ua).length;return Qe(this,ua).push(hc),dt(this,ca,Qe(this,ca)+ln),function(a){Qe(e,ua)[n]=vd(a)}}}]),r})();function gc(r){return Qe(this,ua).push(r),dt(this,ca,Qe(this,ca)+r.length),r.length}var eo=new WeakMap,to=new WeakMap,bd=new WeakSet,xy=(function(){function r(e,n){Q(this,r),gd(this,bd),te(this,"allowLoose",void 0),Pi(this,eo,{writable:!0,value:void 0}),Pi(this,to,{writable:!0,value:void 0}),ur(this,{allowLoose:!!n}),dt(this,eo,tn(e)),dt(this,to,0)}return E(r,[{key:"data",get:function(){return mt(Qe(this,eo))}},{key:"dataLength",get:function(){return Qe(this,eo).length}},{key:"consumed",get:function(){return Qe(this,to)}},{key:"bytes",get:function(){return new Uint8Array(Qe(this,eo))}},{key:"subReader",value:function(e){return new r(Qe(this,eo).slice(Qe(this,to)+e),this.allowLoose)}},{key:"readBytes",value:function(e,n){var a=bs(this,bd,ky).call(this,0,e,!!n);return dt(this,to,Qe(this,to)+a.length),a.slice(0,e)}},{key:"readValue",value:function(){return Yi(this.readBytes(ln))}},{key:"readIndex",value:function(){return un(Yi(this.readBytes(ln)))}}]),r})();function ky(r,e,n){var a=Math.ceil(e/ln)*ln;return Qe(this,to)+a>Qe(this,eo).length&&(this.allowLoose&&n&&Qe(this,to)+e<=Qe(this,eo).length?a=e:jt(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:tn(Qe(this,eo)),length:Qe(this,eo).length,offset:Qe(this,to)+a})),Qe(this,eo).slice(Qe(this,to),Qe(this,to)+a)}var wo={};function Pt(r,e){var n=!1;return e<0&&(n=!0,e*=-1),new _n(wo,"".concat(n?"":"u","int").concat(e),r,{signed:n,width:e})}function Cr(r,e){return new _n(wo,"bytes".concat(e||""),r,{size:e})}var Td=Symbol.for("_ethers_typed"),Bi=new WeakMap,_n=(function(){function r(e,n,a,c){Q(this,r),te(this,"type",void 0),te(this,"value",void 0),(function(u,d,h){(function(l,g){if(g.has(l))throw new TypeError("Cannot initialize the same private elements twice on an object")})(u,d),d.set(u,h)})(this,Bi,{writable:!0,value:void 0}),te(this,"_typedSymbol",void 0),c==null&&(c=null),Ro(wo,e,"Typed"),ur(this,{_typedSymbol:Td,type:n,value:a}),dt(this,Bi,c),this.format()}return E(r,[{key:"format",value:function(){if(this.type==="array")throw new Error("");if(this.type==="dynamicArray")throw new Error("");return this.type==="tuple"?"tuple(".concat(this.value.map(function(e){return e.format()}).join(","),")"):this.type}},{key:"defaultValue",value:function(){return 0}},{key:"minValue",value:function(){return 0}},{key:"maxValue",value:function(){return 0}},{key:"isBigInt",value:function(){return!!this.type.match(/^u?int[0-9]+$/)}},{key:"isData",value:function(){return this.type.startsWith("bytes")}},{key:"isString",value:function(){return this.type==="string"}},{key:"tupleName",get:function(){if(this.type!=="tuple")throw TypeError("not a tuple");return Qe(this,Bi)}},{key:"arrayLength",get:function(){if(this.type!=="array")throw TypeError("not an array");return Qe(this,Bi)===!0?-1:Qe(this,Bi)===!1?this.value.length:null}}],[{key:"from",value:function(e,n){return new r(wo,e,n)}},{key:"uint8",value:function(e){return Pt(e,8)}},{key:"uint16",value:function(e){return Pt(e,16)}},{key:"uint24",value:function(e){return Pt(e,24)}},{key:"uint32",value:function(e){return Pt(e,32)}},{key:"uint40",value:function(e){return Pt(e,40)}},{key:"uint48",value:function(e){return Pt(e,48)}},{key:"uint56",value:function(e){return Pt(e,56)}},{key:"uint64",value:function(e){return Pt(e,64)}},{key:"uint72",value:function(e){return Pt(e,72)}},{key:"uint80",value:function(e){return Pt(e,80)}},{key:"uint88",value:function(e){return Pt(e,88)}},{key:"uint96",value:function(e){return Pt(e,96)}},{key:"uint104",value:function(e){return Pt(e,104)}},{key:"uint112",value:function(e){return Pt(e,112)}},{key:"uint120",value:function(e){return Pt(e,120)}},{key:"uint128",value:function(e){return Pt(e,128)}},{key:"uint136",value:function(e){return Pt(e,136)}},{key:"uint144",value:function(e){return Pt(e,144)}},{key:"uint152",value:function(e){return Pt(e,152)}},{key:"uint160",value:function(e){return Pt(e,160)}},{key:"uint168",value:function(e){return Pt(e,168)}},{key:"uint176",value:function(e){return Pt(e,176)}},{key:"uint184",value:function(e){return Pt(e,184)}},{key:"uint192",value:function(e){return Pt(e,192)}},{key:"uint200",value:function(e){return Pt(e,200)}},{key:"uint208",value:function(e){return Pt(e,208)}},{key:"uint216",value:function(e){return Pt(e,216)}},{key:"uint224",value:function(e){return Pt(e,224)}},{key:"uint232",value:function(e){return Pt(e,232)}},{key:"uint240",value:function(e){return Pt(e,240)}},{key:"uint248",value:function(e){return Pt(e,248)}},{key:"uint256",value:function(e){return Pt(e,256)}},{key:"uint",value:function(e){return Pt(e,256)}},{key:"int8",value:function(e){return Pt(e,-8)}},{key:"int16",value:function(e){return Pt(e,-16)}},{key:"int24",value:function(e){return Pt(e,-24)}},{key:"int32",value:function(e){return Pt(e,-32)}},{key:"int40",value:function(e){return Pt(e,-40)}},{key:"int48",value:function(e){return Pt(e,-48)}},{key:"int56",value:function(e){return Pt(e,-56)}},{key:"int64",value:function(e){return Pt(e,-64)}},{key:"int72",value:function(e){return Pt(e,-72)}},{key:"int80",value:function(e){return Pt(e,-80)}},{key:"int88",value:function(e){return Pt(e,-88)}},{key:"int96",value:function(e){return Pt(e,-96)}},{key:"int104",value:function(e){return Pt(e,-104)}},{key:"int112",value:function(e){return Pt(e,-112)}},{key:"int120",value:function(e){return Pt(e,-120)}},{key:"int128",value:function(e){return Pt(e,-128)}},{key:"int136",value:function(e){return Pt(e,-136)}},{key:"int144",value:function(e){return Pt(e,-144)}},{key:"int152",value:function(e){return Pt(e,-152)}},{key:"int160",value:function(e){return Pt(e,-160)}},{key:"int168",value:function(e){return Pt(e,-168)}},{key:"int176",value:function(e){return Pt(e,-176)}},{key:"int184",value:function(e){return Pt(e,-184)}},{key:"int192",value:function(e){return Pt(e,-192)}},{key:"int200",value:function(e){return Pt(e,-200)}},{key:"int208",value:function(e){return Pt(e,-208)}},{key:"int216",value:function(e){return Pt(e,-216)}},{key:"int224",value:function(e){return Pt(e,-224)}},{key:"int232",value:function(e){return Pt(e,-232)}},{key:"int240",value:function(e){return Pt(e,-240)}},{key:"int248",value:function(e){return Pt(e,-248)}},{key:"int256",value:function(e){return Pt(e,-256)}},{key:"int",value:function(e){return Pt(e,-256)}},{key:"bytes1",value:function(e){return Cr(e,1)}},{key:"bytes2",value:function(e){return Cr(e,2)}},{key:"bytes3",value:function(e){return Cr(e,3)}},{key:"bytes4",value:function(e){return Cr(e,4)}},{key:"bytes5",value:function(e){return Cr(e,5)}},{key:"bytes6",value:function(e){return Cr(e,6)}},{key:"bytes7",value:function(e){return Cr(e,7)}},{key:"bytes8",value:function(e){return Cr(e,8)}},{key:"bytes9",value:function(e){return Cr(e,9)}},{key:"bytes10",value:function(e){return Cr(e,10)}},{key:"bytes11",value:function(e){return Cr(e,11)}},{key:"bytes12",value:function(e){return Cr(e,12)}},{key:"bytes13",value:function(e){return Cr(e,13)}},{key:"bytes14",value:function(e){return Cr(e,14)}},{key:"bytes15",value:function(e){return Cr(e,15)}},{key:"bytes16",value:function(e){return Cr(e,16)}},{key:"bytes17",value:function(e){return Cr(e,17)}},{key:"bytes18",value:function(e){return Cr(e,18)}},{key:"bytes19",value:function(e){return Cr(e,19)}},{key:"bytes20",value:function(e){return Cr(e,20)}},{key:"bytes21",value:function(e){return Cr(e,21)}},{key:"bytes22",value:function(e){return Cr(e,22)}},{key:"bytes23",value:function(e){return Cr(e,23)}},{key:"bytes24",value:function(e){return Cr(e,24)}},{key:"bytes25",value:function(e){return Cr(e,25)}},{key:"bytes26",value:function(e){return Cr(e,26)}},{key:"bytes27",value:function(e){return Cr(e,27)}},{key:"bytes28",value:function(e){return Cr(e,28)}},{key:"bytes29",value:function(e){return Cr(e,29)}},{key:"bytes30",value:function(e){return Cr(e,30)}},{key:"bytes31",value:function(e){return Cr(e,31)}},{key:"bytes32",value:function(e){return Cr(e,32)}},{key:"address",value:function(e){return new r(wo,"address",e)}},{key:"bool",value:function(e){return new r(wo,"bool",!!e)}},{key:"bytes",value:function(e){return new r(wo,"bytes",e)}},{key:"string",value:function(e){return new r(wo,"string",e)}},{key:"array",value:function(e,n){throw new Error("not implemented yet")}},{key:"tuple",value:function(e,n){throw new Error("not implemented yet")}},{key:"overrides",value:function(e){return new r(wo,"overrides",Object.assign({},e))}},{key:"isTyped",value:function(e){return e&&ee(e)==="object"&&"_typedSymbol"in e&&e._typedSymbol===Td}},{key:"dereference",value:function(e,n){if(r.isTyped(e)){if(e.type!==n)throw new Error("invalid type: expecetd ".concat(n,", got ").concat(e.type));return e.value}return e}}]),r})(),Sy=(function(r){K(c,r);var e,n,a=(e=c,n=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})(),function(){var u,d=ce(e);if(n){var h=ce(this).constructor;u=Reflect.construct(d,arguments,h)}else u=d.apply(this,arguments);return Y(this,u)});function c(u){return Q(this,c),a.call(this,"address","address",u,!1)}return E(c,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000"}},{key:"encode",value:function(u,d){var h=_n.dereference(d,"string");try{h=Jr(h)}catch(l){return this._throwError(l.message,d)}return u.writeValue(h)}},{key:"decode",value:function(u){return Jr(Yn(u.readValue(),20))}}]),c})(Ao),Fy=(function(r){K(c,r);var e,n,a=(e=c,n=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})(),function(){var u,d=ce(e);if(n){var h=ce(this).constructor;u=Reflect.construct(d,arguments,h)}else u=d.apply(this,arguments);return Y(this,u)});function c(u){var d;return Q(this,c),te(S(d=a.call(this,u.name,u.type,"_",u.dynamic)),"coder",void 0),d.coder=u,d}return E(c,[{key:"defaultValue",value:function(){return this.coder.defaultValue()}},{key:"encode",value:function(u,d){return this.coder.encode(u,d)}},{key:"decode",value:function(u){return this.coder.decode(u)}}]),c})(Ao);function Ad(r,e,n){var a=[];if(Array.isArray(n))a=n;else if(n&&ee(n)==="object"){var c={};a=e.map(function(l){var g=l.localName;return jt(g,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:n}),jt(!c[g],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:n}),c[g]=!0,n[g]})}else _e(!1,"invalid tuple value","tuple",n);_e(e.length===a.length,"types/value length mismatch","tuple",n);var u=new pc,d=new pc,h=[];return e.forEach(function(l,g){var p=a[g];if(l.dynamic){var b=d.length;l.encode(d,p);var w=u.writeUpdatableValue();h.push(function(x){w(x+b)})}else l.encode(u,p)}),h.forEach(function(l){l(u.length)}),r.appendWriter(u)+r.appendWriter(d)}function wd(r,e){var n=[],a=[],c=r.subReader(0);return e.forEach(function(u){var d=null;if(u.dynamic){var h=r.readIndex(),l=c.subReader(h);try{d=u.decode(l)}catch(g){if(af(g,"BUFFER_OVERRUN"))throw g;(d=g).baseType=u.name,d.name=u.localName,d.type=u.type}}else try{d=u.decode(r)}catch(g){if(af(g,"BUFFER_OVERRUN"))throw g;(d=g).baseType=u.name,d.name=u.localName,d.type=u.type}if(d==null)throw new Error("investigate");n.push(d),a.push(u.localName||null)}),md.fromItems(n,a)}var Ry=(function(r){K(c,r);var e,n,a=(e=c,n=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})(),function(){var u,d=ce(e);if(n){var h=ce(this).constructor;u=Reflect.construct(d,arguments,h)}else u=d.apply(this,arguments);return Y(this,u)});function c(u,d,h){var l;Q(this,c);var g=u.type+"["+(d>=0?d:"")+"]",p=d===-1||u.dynamic;return te(S(l=a.call(this,"array",g,h,p)),"coder",void 0),te(S(l),"length",void 0),ur(S(l),{coder:u,length:d}),l}return E(c,[{key:"defaultValue",value:function(){for(var u=this.coder.defaultValue(),d=[],h=0;h<this.length;h++)d.push(u);return d}},{key:"encode",value:function(u,d){var h=_n.dereference(d,"array");Array.isArray(h)||this._throwError("expected array value",h);var l=this.length;l===-1&&(l=h.length,u.writeValue(h.length)),uf(h.length,l,"coder array"+(this.localName?" "+this.localName:""));for(var g=[],p=0;p<h.length;p++)g.push(this.coder);return Ad(u,g,h)}},{key:"decode",value:function(u){var d=this.length;d===-1&&jt((d=u.readIndex())*ln<=u.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:u.bytes,offset:d*ln,length:u.dataLength});for(var h=[],l=0;l<d;l++)h.push(new Fy(this.coder));return wd(u,h)}}]),c})(Ao),_y=(function(r){K(c,r);var e,n,a=(e=c,n=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})(),function(){var u,d=ce(e);if(n){var h=ce(this).constructor;u=Reflect.construct(d,arguments,h)}else u=d.apply(this,arguments);return Y(this,u)});function c(u){return Q(this,c),a.call(this,"bool","bool",u,!1)}return E(c,[{key:"defaultValue",value:function(){return!1}},{key:"encode",value:function(u,d){var h=_n.dereference(d,"bool");return u.writeValue(h?1:0)}},{key:"decode",value:function(u){return!!u.readValue()}}]),c})(Ao);function Ci(){return Ci=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(r,e,n){var a=(function(u,d){for(;!Object.prototype.hasOwnProperty.call(u,d)&&(u=ce(u))!==null;);return u})(r,e);if(a){var c=Object.getOwnPropertyDescriptor(a,e);return c.get?c.get.call(arguments.length<3?r:n):c.value}},Ci.apply(this,arguments)}function Pd(r){var e=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})();return function(){var n,a=ce(r);if(e){var c=ce(this).constructor;n=Reflect.construct(a,arguments,c)}else n=a.apply(this,arguments);return Y(this,n)}}var Wd=(function(r){K(n,r);var e=Pd(n);function n(a,c){return Q(this,n),e.call(this,a,a,c,!0)}return E(n,[{key:"defaultValue",value:function(){return"0x"}},{key:"encode",value:function(a,c){return c=tn(c),a.writeValue(c.length)+a.writeBytes(c)}},{key:"decode",value:function(a){return a.readBytes(a.readIndex(),!0)}}]),n})(Ao),Ny=(function(r){K(n,r);var e=Pd(n);function n(a){return Q(this,n),e.call(this,"bytes",a)}return E(n,[{key:"decode",value:function(a){return mt(Ci(ce(n.prototype),"decode",this).call(this,a))}}]),n})(Wd),Dy=(function(r){K(c,r);var e,n,a=(e=c,n=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})(),function(){var u,d=ce(e);if(n){var h=ce(this).constructor;u=Reflect.construct(d,arguments,h)}else u=d.apply(this,arguments);return Y(this,u)});function c(u,d){var h;Q(this,c);var l="bytes"+String(u);return te(S(h=a.call(this,l,l,d,!1)),"size",void 0),ur(S(h),{size:u},{size:"number"}),h}return E(c,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}},{key:"encode",value:function(u,d){var h=tn(_n.dereference(d,this.type));return h.length!==this.size&&this._throwError("incorrect data length",d),u.writeBytes(h)}},{key:"decode",value:function(u){return mt(u.readBytes(this.size))}}]),c})(Ao),Uy=new Uint8Array([]),Ly=(function(r){K(c,r);var e,n,a=(e=c,n=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})(),function(){var u,d=ce(e);if(n){var h=ce(this).constructor;u=Reflect.construct(d,arguments,h)}else u=d.apply(this,arguments);return Y(this,u)});function c(u){return Q(this,c),a.call(this,"null","",u,!1)}return E(c,[{key:"defaultValue",value:function(){return null}},{key:"encode",value:function(u,d){return d!=null&&this._throwError("not null",d),u.writeBytes(Uy)}},{key:"decode",value:function(u){return u.readBytes(0),null}}]),c})(Ao),jy=BigInt(0),zy=BigInt(1),Vy=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Gy=(function(r){K(c,r);var e,n,a=(e=c,n=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})(),function(){var u,d=ce(e);if(n){var h=ce(this).constructor;u=Reflect.construct(d,arguments,h)}else u=d.apply(this,arguments);return Y(this,u)});function c(u,d,h){var l;Q(this,c);var g=(d?"int":"uint")+8*u;return te(S(l=a.call(this,g,g,h,!1)),"size",void 0),te(S(l),"signed",void 0),ur(S(l),{size:u,signed:d},{size:"number",signed:"boolean"}),l}return E(c,[{key:"defaultValue",value:function(){return 0}},{key:"encode",value:function(u,d){var h=Fr(_n.dereference(d,this.type)),l=Ca(Vy,8*ln);if(this.signed){var g=Ca(l,8*this.size-1);(h>g||h<-(g+zy))&&this._throwError("value out-of-bounds",d),h=Hu(h,8*ln)}else(h<jy||h>Ca(l,8*this.size))&&this._throwError("value out-of-bounds",d);return u.writeValue(h)}},{key:"decode",value:function(u){var d=Ca(u.readValue(),8*this.size);return this.signed&&(d=(function(h,l){var g=qi(h,"value"),p=BigInt(un(l,"width"));return jt(g>>p===Ji,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:h}),g>>p-qn?-((~g&(qn<<p)-qn)+qn):g})(d,8*this.size)),d}}]),c})(Ao),$y=(function(r){K(c,r);var e,n,a=(e=c,n=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})(),function(){var u,d=ce(e);if(n){var h=ce(this).constructor;u=Reflect.construct(d,arguments,h)}else u=d.apply(this,arguments);return Y(this,u)});function c(u){return Q(this,c),a.call(this,"string",u)}return E(c,[{key:"defaultValue",value:function(){return""}},{key:"encode",value:function(u,d){return Ci(ce(c.prototype),"encode",this).call(this,u,mn(_n.dereference(d,"string")))}},{key:"decode",value:function(u){return _f(Ci(ce(c.prototype),"decode",this).call(this,u))}}]),c})(Wd),ws=(function(r){K(c,r);var e,n,a=(e=c,n=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})(),function(){var u,d=ce(e);if(n){var h=ce(this).constructor;u=Reflect.construct(d,arguments,h)}else u=d.apply(this,arguments);return Y(this,u)});function c(u,d){var h;Q(this,c);var l=!1,g=[];u.forEach(function(b){b.dynamic&&(l=!0),g.push(b.type)});var p="tuple("+g.join(",")+")";return te(S(h=a.call(this,"tuple",p,d,l)),"coders",void 0),ur(S(h),{coders:Object.freeze(u.slice())}),h}return E(c,[{key:"defaultValue",value:function(){var u=[];this.coders.forEach(function(h){u.push(h.defaultValue())});var d=this.coders.reduce(function(h,l){var g=l.localName;return g&&(h[g]||(h[g]=0),h[g]++),h},{});return this.coders.forEach(function(h,l){var g=h.localName;g&&d[g]===1&&(g==="length"&&(g="_length"),u[g]==null&&(u[g]=u[l]))}),Object.freeze(u)}},{key:"encode",value:function(u,d){var h=_n.dereference(d,"tuple");return Ad(u,this.coders,h)}},{key:"decode",value:function(u){return wd(u,this.coders)}}]),c})(Ao);function Bd(r,e){Ed(r,e),e.add(r)}function Cd(r,e,n){Ed(r,e),e.set(r,n)}function Ed(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ei(r,e,n){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return n}function Mi(r){var e=new Set;return r.forEach(function(n){return e.add(n)}),Object.freeze(e)}var Md="constant external internal payable private public pure view",Od=(Mi(Md.split(" ")),"constructor error event fallback function receive struct"),Id=(Mi(Od.split(" ")),"calldata memory storage payable indexed"),Hy=Mi(Id.split(" ")),Ky=Mi([Od,Id,"tuple returns",Md].join(" ").split(" ")),Zy={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},Jy=new RegExp("^(\\s*)"),qy=new RegExp("^([0-9]+)"),Yy=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),Xy=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),xd=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$"),rn=new WeakMap,Po=new WeakMap,yc=new WeakSet,mc=(function(){function r(e){Q(this,r),Bd(this,yc),Cd(this,rn,{writable:!0,value:void 0}),Cd(this,Po,{writable:!0,value:void 0}),dt(this,rn,0),dt(this,Po,e.slice())}return E(r,[{key:"offset",get:function(){return Qe(this,rn)}},{key:"length",get:function(){return Qe(this,Po).length-Qe(this,rn)}},{key:"clone",value:function(){return new r(Qe(this,Po))}},{key:"reset",value:function(){dt(this,rn,0)}},{key:"popKeyword",value:function(e){var n=this.peek();if(n.type!=="KEYWORD"||!e.has(n.text))throw new Error("expected keyword ".concat(n.text));return this.pop().text}},{key:"popType",value:function(e){if(this.peek().type!==e)throw new Error("expected ".concat(e,"; got ").concat(JSON.stringify(this.peek())));return this.pop().text}},{key:"popParen",value:function(){var e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");var n=Ei(this,yc,kd).call(this,Qe(this,rn)+1,e.match+1);return dt(this,rn,e.match+1),n}},{key:"popParams",value:function(){var e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");for(var n=[];Qe(this,rn)<e.match-1;){var a=this.peek().linkNext;n.push(Ei(this,yc,kd).call(this,Qe(this,rn)+1,a)),dt(this,rn,a)}return dt(this,rn,e.match+1),n}},{key:"peek",value:function(){if(Qe(this,rn)>=Qe(this,Po).length)throw new Error("out-of-bounds");return Qe(this,Po)[Qe(this,rn)]}},{key:"peekKeyword",value:function(e){var n=this.peekType("KEYWORD");return n!=null&&e.has(n)?n:null}},{key:"peekType",value:function(e){if(this.length===0)return null;var n=this.peek();return n.type===e?n.text:null}},{key:"pop",value:function(){var e,n=this.peek();return dt(this,rn,(e=Qe(this,rn),++e)),n}},{key:"toString",value:function(){for(var e=[],n=Qe(this,rn);n<Qe(this,Po).length;n++){var a=Qe(this,Po)[n];e.push("".concat(a.type,":").concat(a.text))}return"<TokenString ".concat(e.join(" "),">")}}]),r})();function kd(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return new mc(Qe(this,Po).slice(r,e).map(function(n){return Object.freeze(Object.assign({},n,{match:n.match-r,linkBack:n.linkBack-r,linkNext:n.linkNext-r}))}))}function Sd(r,e){for(var n=new Set;;){var a=r.peekType("KEYWORD");if(a==null||e&&!e.has(a))break;if(r.pop(),n.has(a))throw new Error("duplicate keywords: ".concat(JSON.stringify(a)));n.add(a)}return Object.freeze(n)}var Qy=new RegExp(/^(.*)\[([0-9]*)\]$/);function Fd(r){var e=r.match(xd);if(_e(e,"invalid type","type",r),r==="uint")return"uint256";if(r==="int")return"int256";if(e[2]){var n=parseInt(e[2]);_e(n!==0&&n<=32,"invalid bytes length","type",r)}else if(e[3]){var a=parseInt(e[3]);_e(a!==0&&a<=256&&a%8==0,"invalid numeric width","type",r)}return r}var Na={},Rd=Symbol.for("_ethers_internal"),_d="_ParamTypeInternal",Ps=new WeakSet,vc=(function(){function r(n,a,c,u,d,h,l,g){if(Q(this,r),Bd(this,Ps),te(this,"name",void 0),te(this,"type",void 0),te(this,"baseType",void 0),te(this,"indexed",void 0),te(this,"components",void 0),te(this,"arrayLength",void 0),te(this,"arrayChildren",void 0),Ro(n,Na,"ParamType"),Object.defineProperty(this,Rd,{value:_d}),h&&(h=Object.freeze(h.slice())),u==="array"){if(l==null||g==null)throw new Error("")}else if(l!=null||g!=null)throw new Error("");if(u==="tuple"){if(h==null)throw new Error("")}else if(h!=null)throw new Error("");ur(this,{name:a,type:c,baseType:u,indexed:d,components:h,arrayLength:l,arrayChildren:g})}var e;return E(r,[{key:"format",value:function(n){if(n==null&&(n="sighash"),n==="json"){var a={type:this.baseType==="tuple"?"tuple":this.type,name:this.name||void 0};return typeof this.indexed=="boolean"&&(a.indexed=this.indexed),this.isTuple()&&(a.components=this.components.map(function(u){return JSON.parse(u.format(n))})),JSON.stringify(a)}var c="";return this.isArray()?(c+=this.arrayChildren.format(n),c+="[".concat(this.arrayLength<0?"":String(this.arrayLength),"]")):this.isTuple()?(n!=="sighash"&&(c+=this.type),c+="("+this.components.map(function(u){return u.format(n)}).join(n==="full"?", ":",")+")"):c+=this.type,n!=="sighash"&&(this.indexed===!0&&(c+=" indexed"),n==="full"&&this.name&&(c+=" "+this.name)),c}},{key:"isArray",value:function(){return this.baseType==="array"}},{key:"isTuple",value:function(){return this.baseType==="tuple"}},{key:"isIndexable",value:function(){return this.indexed!=null}},{key:"walk",value:function(n,a){if(this.isArray()){if(!Array.isArray(n))throw new Error("invalid array value");if(this.arrayLength!==-1&&n.length!==this.arrayLength)throw new Error("array is wrong length");var c=this;return n.map(function(d){return c.arrayChildren.walk(d,a)})}if(this.isTuple()){if(!Array.isArray(n))throw new Error("invalid tuple value");if(n.length!==this.components.length)throw new Error("array is wrong length");var u=this;return n.map(function(d,h){return u.components[h].walk(d,a)})}return a(this.type,n)}},{key:"walkAsync",value:(e=_(ie.mark(function n(a,c){var u,d;return ie.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(u=[],d=[a],Ei(this,Ps,bc).call(this,u,a,c,function(l){d[0]=l}),!u.length){h.next=6;break}return h.next=6,Promise.all(u);case 6:return h.abrupt("return",d[0]);case 7:case"end":return h.stop()}},n,this)})),function(n,a){return e.apply(this,arguments)})}],[{key:"from",value:function(n,a){if(r.isParamType(n))return n;if(typeof n=="string")return r.from((function(Ee){for(var O=[],M=function(xe){var z=$<Ee.length?JSON.stringify(Ee[$]):"$EOI";throw new Error("invalid token ".concat(z," at ").concat($,": ").concat(xe))},I=[],U=[],$=0;$<Ee.length;){var re=Ee.substring($),q=re.match(Jy);q&&($+=q[1].length,re=Ee.substring($));var ye={depth:I.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:$,value:-1};O.push(ye);var Pe=Zy[re[0]]||"";if(Pe){if(ye.type=Pe,ye.text=re[0],$++,Pe==="OPEN_PAREN")I.push(O.length-1),U.push(O.length-1);else if(Pe=="CLOSE_PAREN")I.length===0&&M("no matching open bracket"),ye.match=I.pop(),O[ye.match].match=O.length-1,ye.depth--,ye.linkBack=U.pop(),O[ye.linkBack].linkNext=O.length-1;else if(Pe==="COMMA")ye.linkBack=U.pop(),O[ye.linkBack].linkNext=O.length-1,U.push(O.length-1);else if(Pe==="OPEN_BRACKET")ye.type="BRACKET";else if(Pe==="CLOSE_BRACKET"){var de=O.pop().text;if(O.length>0&&O[O.length-1].type==="NUMBER"){var fe=O.pop().text;de=fe+de,O[O.length-1].value=un(fe)}if(O.length===0||O[O.length-1].type!=="BRACKET")throw new Error("missing opening bracket");O[O.length-1].text+=de}}else if(q=re.match(Yy)){if(ye.text=q[1],$+=ye.text.length,Ky.has(ye.text)){ye.type="KEYWORD";continue}if(ye.text.match(xd)){ye.type="TYPE";continue}ye.type="ID"}else{if(!(q=re.match(qy)))throw new Error("unexpected token ".concat(JSON.stringify(re[0])," at position ").concat($));ye.text=q[1],ye.type="NUMBER",$+=ye.text.length}}return new mc(O.map(function(xe){return Object.freeze(xe)}))})(n),a);if(n instanceof mc){var c="",u="",d=null;Sd(n,Mi(["tuple"])).has("tuple")||n.peekType("OPEN_PAREN")?(u="tuple",d=n.popParams().map(function(Ee){return r.from(Ee)}),c="tuple(".concat(d.map(function(Ee){return Ee.format()}).join(","),")")):u=c=Fd(n.popType("TYPE"));for(var h=null,l=null;n.length&&n.peekType("BRACKET");){var g=n.pop();h=new r(Na,"",c,u,null,d,l,h),l=g.value,c+=g.text,u="array",d=null}var p=null;if(Sd(n,Hy).has("indexed")){if(!a)throw new Error("");p=!0}var b=n.peekType("ID")?n.pop().text:"";if(n.length)throw new Error("leftover tokens");return new r(Na,b,c,u,p,d,l,h)}var w=n.name;_e(!w||typeof w=="string"&&w.match(Xy),"invalid name","obj.name",w);var x=n.indexed;x!=null&&(_e(a,"parameter cannot be indexed","obj.indexed",n.indexed),x=!!x);var j=n.type,J=j.match(Qy);if(J){var we=parseInt(J[2]||"-1"),ve=r.from({type:J[1],components:n.components});return new r(Na,w||"",j,"array",x,null,we,ve)}if(j==="tuple"||j.startsWith("tuple(")||j.startsWith("(")){var Fe=n.components!=null?n.components.map(function(Ee){return r.from(Ee)}):null;return new r(Na,w||"",j,"tuple",x,Fe,null,null)}return j=Fd(n.type),new r(Na,w||"",j,j,x,null,null,null)}},{key:"isParamType",value:function(n){return n&&n[Rd]===_d}}]),r})();function bc(r,e,n,a){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");var c=this.arrayChildren,u=e.slice();return u.forEach(function(g,p){Ei(c,Ps,bc).call(c,r,g,n,function(b){u[p]=b})}),void a(u)}if(this.isTuple()){var d,h=this.components;if(Array.isArray(e))d=e.slice();else{if(e==null||ee(e)!=="object")throw new Error("invalid tuple value");d=h.map(function(g){if(!g.name)throw new Error("cannot use object value with unnamed components");if(!(g.name in e))throw new Error("missing value for component ".concat(g.name));return e[g.name]})}if(d.length!==this.components.length)throw new Error("array is wrong length");return d.forEach(function(g,p){var b;Ei(b=h[p],Ps,bc).call(b,r,g,n,function(w){d[p]=w})}),void a(d)}var l=n(this.type,e);l.then?r.push(_(ie.mark(function g(){return ie.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.t0=a,p.next=3,l;case 3:p.t1=p.sent,(0,p.t0)(p.t1);case 5:case"end":return p.stop()}},g)}))()):a(l)}function Oi(r,e,n){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return n}var ro=new Map;ro.set(0,"GENERIC_PANIC"),ro.set(1,"ASSERT_FALSE"),ro.set(17,"OVERFLOW"),ro.set(18,"DIVIDE_BY_ZERO"),ro.set(33,"ENUM_RANGE_ERROR"),ro.set(34,"BAD_STORAGE_DATA"),ro.set(49,"STACK_UNDERFLOW"),ro.set(50,"ARRAY_RANGE_ERROR"),ro.set(65,"OUT_OF_MEMORY"),ro.set(81,"UNINITIALIZED_FUNCTION_CALL");var e1=new RegExp(/^bytes([0-9]*)$/),t1=new RegExp(/^(u?int)([0-9]*)$/),Tc=null,Da=new WeakSet,Ac=(function(){function r(){var e,n;Q(this,r),(function(a,c){if(c.has(a))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,n=Da),n.add(e)}return E(r,[{key:"getDefaultValue",value:function(e){var n=this,a=e.map(function(c){return Oi(n,Da,Ii).call(n,vc.from(c))});return new ws(a,"_").defaultValue()}},{key:"encode",value:function(e,n){var a=this;uf(n.length,e.length,"types/values length mismatch");var c=e.map(function(h){return Oi(a,Da,Ii).call(a,vc.from(h))}),u=new ws(c,"_"),d=new pc;return u.encode(d,n),d.data}},{key:"decode",value:function(e,n,a){var c=this,u=e.map(function(d){return Oi(c,Da,Ii).call(c,vc.from(d))});return new ws(u,"_").decode(new xy(n,a))}}],[{key:"defaultAbiCoder",value:function(){return Tc==null&&(Tc=new r),Tc}},{key:"getBuiltinCallException",value:function(e,n,a){return(function(c,u,d,h){var l="missing revert data",g=null,p=null;if(d){l="execution reverted";var b=At(d);if(d=mt(d),b.length===0)l+=" (no data present; likely require(false) occurred",g="require(false)";else if(b.length%32!=4)l+=" (could not decode reason; invalid data length)";else if(mt(b.slice(0,4))==="0x08c379a0")try{p={signature:"Error(string)",name:"Error",args:[g=h.decode(["string"],b.slice(4))[0]]},l+=": ".concat(JSON.stringify(g))}catch{l+=" (could not decode reason; invalid string data)"}else if(mt(b.slice(0,4))==="0x4e487b71")try{var w=Number(h.decode(["uint256"],b.slice(4))[0]);p={signature:"Panic(uint256)",name:"Panic",args:[w]},g="Panic due to ".concat(ro.get(w)||"UNKNOWN","(").concat(w,")"),l+=": ".concat(g)}catch{l+=" (could not decode panic code)"}else l+=" (unknown custom error)"}var x={to:u.to?Jr(u.to):null,data:u.data||"0x"};return u.from&&(x.from=Jr(u.from)),sf(l,"CALL_EXCEPTION",{action:c,data:d,reason:g,transaction:x,invocation:null,revert:p})})(e,n,a,r.defaultAbiCoder())}}]),r})();function Ii(r){var e=this;if(r.isArray())return new Ry(Oi(this,Da,Ii).call(this,r.arrayChildren),r.arrayLength,r.name);if(r.isTuple())return new ws(r.components.map(function(u){return Oi(e,Da,Ii).call(e,u)}),r.name);switch(r.baseType){case"address":return new Sy(r.name);case"bool":return new _y(r.name);case"string":return new $y(r.name);case"bytes":return new Ny(r.name);case"":return new Ly(r.name)}var n=r.type.match(t1);if(n){var a=parseInt(n[2]||"256");return _e(a!==0&&a<=256&&a%8==0,"invalid "+n[1]+" bit length","param",r),new Gy(a/8,n[1]==="int",r.name)}if(n=r.type.match(e1)){var c=parseInt(n[1]);return _e(c!==0&&c<=32,"invalid bytes length","param",r),new Dy(c,r.name)}_e(!1,"invalid type","type",r.type)}function wc(r,e){return Nd.apply(this,arguments)}function Nd(){return(Nd=_(ie.mark(function r(e,n){var a;return ie.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,n;case 2:return(a=c.sent)!=null&&a!=="0x0000000000000000000000000000000000000000"||(jt(typeof e!="string","unconfigured name","UNCONFIGURED_NAME",{value:e}),_e(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),c.abrupt("return",Jr(a));case 5:case"end":return c.stop()}},r)}))).apply(this,arguments)}function Ws(r,e){return typeof r=="string"?r.match(/^0x[0-9a-f]{40}$/i)?Jr(r):(jt(e!=null,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),wc(r,e.resolveName(r))):(n=r)&&typeof n.getAddress=="function"?wc(r,r.getAddress()):r&&typeof r.then=="function"?wc(r,r):void _e(!1,"unsupported addressable value","target",r);var n}var r1=`Ethereum Signed Message:
|
|
16
|
+
`;function Bs(r,e){var n=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!n){if(Array.isArray(r)||(n=(function(l,g){if(l){if(typeof l=="string")return Dd(l,g);var p=Object.prototype.toString.call(l).slice(8,-1);return p==="Object"&&l.constructor&&(p=l.constructor.name),p==="Map"||p==="Set"?Array.from(l):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?Dd(l,g):void 0}})(r))||e){n&&(r=n);var a=0,c=function(){};return{s:c,n:function(){return a>=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(l){throw l},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u,d=!0,h=!1;return{s:function(){n=n.call(r)},n:function(){var l=n.next();return d=l.done,l},e:function(l){h=!0,u=l},f:function(){try{d||n.return==null||n.return()}finally{if(h)throw u}}}}function Dd(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=r[n];return a}function Pc(r,e,n){Ud(r,e),e.set(r,n)}function Ud(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}var Ld=new Uint8Array(32);Ld.fill(0);var n1=BigInt(-1),jd=BigInt(0),zd=BigInt(1),o1=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),a1=Yn(zd,32),i1=Yn(jd,32),Vd={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Wc=["name","version","chainId","verifyingContract","salt"];function Gd(r){return function(e){return _e(typeof e=="string","invalid domain value for ".concat(JSON.stringify(r)),"domain.".concat(r),e),e}}var s1={name:Gd("name"),version:Gd("version"),chainId:function(r){var e=Fr(r,"domain.chainId");return _e(e>=0,"invalid chain ID","domain.chainId",r),Number.isSafeInteger(e)?Number(e):(function(n){for(var a=mt(ff(n)?n:Bn(n)).substring(2);a.startsWith("0");)a=a.substring(1);return a===""&&(a="0"),"0x"+a})(e)},verifyingContract:function(r){try{return Jr(r).toLowerCase()}catch{}_e(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",r)},salt:function(r){var e=At(r,"domain.salt");return _e(e.length===32,'invalid domain value "salt"',"domain.salt",r),mt(e)}};function Bc(r){var e=r.match(/^(u?)int(\d*)$/);if(e){var n=e[1]==="",a=parseInt(e[2]||"256");_e(a%8==0&&a!==0&&a<=256&&(e[2]==null||e[2]===String(a)),"invalid numeric width","type",r);var c=Ca(o1,n?a-1:a),u=n?(c+zd)*n1:jd;return function(l){var g=Fr(l,"value");return _e(g>=u&&g<=c,"value out-of-bounds for ".concat(r),"value",g),Yn(n?Hu(g,256):g,32)}}var d=r.match(/^bytes(\d+)$/);if(d){var h=parseInt(d[1]);return _e(h!==0&&h<=32&&d[1]===String(h),"invalid bytes width","type",r),function(l){return _e(At(l).length===h,"invalid length for ".concat(r),"value",l),(function(g){var p=At(g),b=p.length%32;return b?Sr([p,Ld.slice(b)]):mt(p)})(l)}}switch(r){case"address":return function(l){return _o(Jr(l),32)};case"bool":return function(l){return l?a1:i1};case"bytes":return function(l){return rr(l)};case"string":return function(l){return Sn(l)}}return null}function $d(r,e){return"".concat(r,"(").concat(e.map(function(n){var a=n.name;return n.type+" "+a}).join(","),")")}var Cc=new WeakMap,la=new WeakMap,Cs=new WeakMap,Hd=new WeakSet,Kd=(function(){function r(n){var a;Q(this,r),Ud(this,a=Hd),a.add(this),te(this,"primaryType",void 0),Pc(this,Cc,{writable:!0,value:void 0}),Pc(this,la,{writable:!0,value:void 0}),Pc(this,Cs,{writable:!0,value:void 0}),dt(this,Cc,JSON.stringify(n)),dt(this,la,new Map),dt(this,Cs,new Map);var c=new Map,u=new Map,d=new Map;for(var h in Object.keys(n).forEach(function(O){c.set(O,new Set),u.set(O,[]),d.set(O,new Set)}),n){var l,g=new Set,p=Bs(n[h]);try{for(p.s();!(l=p.n()).done;){var b=l.value;_e(!g.has(b.name),"duplicate variable name ".concat(JSON.stringify(b.name)," in ").concat(JSON.stringify(h)),"types",n),g.add(b.name);var w=b.type.match(/^([^\x5b]*)(\x5b|$)/)[1]||null;_e(w!==h,"circular type reference to ".concat(JSON.stringify(w)),"types",n),Bc(w)||(_e(u.has(w),"unknown type ".concat(JSON.stringify(w)),"types",n),u.get(w).push(h),c.get(h).add(w))}}catch(O){p.e(O)}finally{p.f()}}var x=Array.from(u.keys()).filter(function(O){return u.get(O).length===0});_e(x.length!==0,"missing primary type","types",n),_e(x.length===1,"ambiguous primary types or unused types: ".concat(x.map(function(O){return JSON.stringify(O)}).join(", ")),"types",n),ur(this,{primaryType:x[0]}),(function O(M,I){_e(!I.has(M),"circular type reference to ".concat(JSON.stringify(M)),"types",n),I.add(M);var U,$=Bs(c.get(M));try{for($.s();!(U=$.n()).done;){var re=U.value;if(u.has(re)){O(re,I);var q,ye=Bs(I);try{for(ye.s();!(q=ye.n()).done;){var Pe=q.value;d.get(Pe).add(re)}}catch(de){ye.e(de)}finally{ye.f()}}}}catch(de){$.e(de)}finally{$.f()}I.delete(M)})(this.primaryType,new Set);var j,J=Bs(d);try{for(J.s();!(j=J.n()).done;){var we=Xn(j.value,2),ve=we[0],Fe=we[1],Ee=Array.from(Fe);Ee.sort(),Qe(this,la).set(ve,$d(ve,n[ve])+Ee.map(function(O){return $d(O,n[O])}).join(""))}}catch(O){J.e(O)}finally{J.f()}}var e;return E(r,[{key:"types",get:function(){return JSON.parse(Qe(this,Cc))}},{key:"getEncoder",value:function(n){var a=Qe(this,Cs).get(n);return a||(a=(function(c,u,d){if(!u.has(c))throw new TypeError("attempted to get private field on non-instance");return d})(this,Hd,u1).call(this,n),Qe(this,Cs).set(n,a)),a}},{key:"encodeType",value:function(n){var a=Qe(this,la).get(n);return _e(a,"unknown type: ".concat(JSON.stringify(n)),"name",n),a}},{key:"encodeData",value:function(n,a){return this.getEncoder(n)(a)}},{key:"hashStruct",value:function(n,a){return rr(this.encodeData(n,a))}},{key:"encode",value:function(n){return this.encodeData(this.primaryType,n)}},{key:"hash",value:function(n){return this.hashStruct(this.primaryType,n)}},{key:"_visit",value:function(n,a,c){var u=this;if(Bc(n))return c(n,a);var d=n.match(/^(.*)(\x5b(\d*)\x5d)$/);if(d)return _e(!d[3]||parseInt(d[3])===a.length,"array length mismatch; expected length ".concat(parseInt(d[3])),"value",a),a.map(function(l){return u._visit(d[1],l,c)});var h=this.types[n];if(h)return h.reduce(function(l,g){var p=g.name,b=g.type;return l[p]=u._visit(b,a[p],c),l},{});_e(!1,"unknown type: ".concat(n),"type",n)}},{key:"visit",value:function(n,a){return this._visit(this.primaryType,n,a)}}],[{key:"from",value:function(n){return new r(n)}},{key:"getPrimaryType",value:function(n){return r.from(n).primaryType}},{key:"hashStruct",value:function(n,a,c){return r.from(a).hashStruct(n,c)}},{key:"hashDomain",value:function(n){var a=[];for(var c in n)if(n[c]!=null){var u=Vd[c];_e(u,"invalid typed-data domain key: ".concat(JSON.stringify(c)),"domain",n),a.push({name:c,type:u})}return a.sort(function(d,h){return Wc.indexOf(d.name)-Wc.indexOf(h.name)}),r.hashStruct("EIP712Domain",{EIP712Domain:a},n)}},{key:"encode",value:function(n,a,c){return Sr(["0x1901",r.hashDomain(n),r.from(a).hash(c)])}},{key:"hash",value:function(n,a,c){return rr(r.encode(n,a,c))}},{key:"resolveNames",value:(e=_(ie.mark(function n(a,c,u,d){var h,l,g,p;return ie.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:for(h in a=Object.assign({},a))a[h]==null&&delete a[h];l={},a.verifyingContract&&!Jn(a.verifyingContract,20)&&(l[a.verifyingContract]="0x"),(g=r.from(c)).visit(u,function(w,x){return w!=="address"||Jn(x,20)||(l[x]="0x"),x}),b.t0=ie.keys(l);case 7:if((b.t1=b.t0()).done){b.next=14;break}return p=b.t1.value,b.next=11,d(p);case 11:l[p]=b.sent,b.next=7;break;case 14:return a.verifyingContract&&l[a.verifyingContract]&&(a.verifyingContract=l[a.verifyingContract]),u=g.visit(u,function(w,x){return w==="address"&&l[x]?l[x]:x}),b.abrupt("return",{domain:a,value:u});case 17:case"end":return b.stop()}},n)})),function(n,a,c,u){return e.apply(this,arguments)})},{key:"getPayload",value:function(n,a,c){r.hashDomain(n);var u={},d=[];Wc.forEach(function(g){var p=n[g];p!=null&&(u[g]=s1[g](p),d.push({name:g,type:Vd[g]}))});var h=r.from(a),l=Object.assign({},a);return _e(l.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",a),l.EIP712Domain=d,h.encode(c),{types:l,domain:u,primaryType:h.primaryType,message:h.visit(c,function(g,p){if(g.match(/^bytes(\d*)/))return mt(At(p));if(g.match(/^u?int/))return Fr(p).toString();switch(g){case"address":return p.toLowerCase();case"bool":return!!p;case"string":return _e(typeof p=="string","invalid string","value",p),p}_e(!1,"unsupported type","type",g)})}}}]),r})();function u1(r){var e=this,n=Bc(r);if(n)return n;var a=r.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a){var c=a[1],u=this.getEncoder(c);return function(l){_e(!a[3]||parseInt(a[3])===l.length,"array length mismatch; expected length ".concat(parseInt(a[3])),"value",l);var g=l.map(u);return Qe(e,la).has(c)&&(g=g.map(rr)),rr(Sr(g))}}var d=this.types[r];if(d){var h=Sn(Qe(this,la).get(r));return function(l){var g=d.map(function(p){var b=p.name,w=p.type,x=e.getEncoder(w)(l[b]);return Qe(e,la).has(w)?rr(x):x});return g.unshift(h),Sr(g)}}_e(!1,"unknown type: ".concat(r),"type",r)}function c1(r){for(var e=r.toString(16);e.length<2;)e="0"+e;return"0x"+e}function Zd(r,e,n){for(var a=0,c=0;c<n;c++)a=256*a+r[e+c];return a}function Jd(r,e,n,a){for(var c=[];n<e+1+a;){var u=qd(r,n);c.push(u.result),jt((n+=u.consumed)<=e+1+a,"child data too short","BUFFER_OVERRUN",{buffer:r,length:a,offset:e})}return{consumed:1+a,result:c}}function qd(r,e){jt(r.length!==0,"data too short","BUFFER_OVERRUN",{buffer:r,length:0,offset:1});var n=function(g){jt(g<=r.length,"data short segment too short","BUFFER_OVERRUN",{buffer:r,length:r.length,offset:g})};if(r[e]>=248){var a=r[e]-247;n(e+1+a);var c=Zd(r,e+1,a);return n(e+1+a+c),Jd(r,e,e+1+a,a+c)}if(r[e]>=192){var u=r[e]-192;return n(e+1+u),Jd(r,e,e+1,u)}if(r[e]>=184){var d=r[e]-183;n(e+1+d);var h=Zd(r,e+1,d);return n(e+1+d+h),{consumed:1+d+h,result:mt(r.slice(e+1+d,e+1+d+h))}}if(r[e]>=128){var l=r[e]-128;return n(e+1+l),{consumed:1+l,result:mt(r.slice(e+1,e+1+l))}}return{consumed:1,result:c1(r[e])}}function Ec(r){var e=At(r,"data"),n=qd(e,0);return _e(n.consumed===e.length,"unexpected junk after rlp payload","data",r),n.result}function Yd(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=r[n];return a}function Xd(r){for(var e=[];r;)e.unshift(255&r),r>>=8;return e}function Qd(r){if(Array.isArray(r)){var e=[];if(r.forEach(function(u){e=e.concat(Qd(u))}),e.length<=55)return e.unshift(192+e.length),e;var n=Xd(e.length);return n.unshift(247+n.length),n.concat(e)}var a=Array.prototype.slice.call(At(r,"object"));if(a.length===1&&a[0]<=127)return a;if(a.length<=55)return a.unshift(128+a.length),a;var c=Xd(a.length);return c.unshift(183+c.length),c.concat(a)}var eh="0123456789abcdef";function Es(r){var e,n="0x",a=(function(u,d){var h=typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(!h){if(Array.isArray(u)||(h=(function(x,j){if(x){if(typeof x=="string")return Yd(x,j);var J=Object.prototype.toString.call(x).slice(8,-1);return J==="Object"&&x.constructor&&(J=x.constructor.name),J==="Map"||J==="Set"?Array.from(x):J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J)?Yd(x,j):void 0}})(u))||d){h&&(u=h);var l=0,g=function(){};return{s:g,n:function(){return l>=u.length?{done:!0}:{done:!1,value:u[l++]}},e:function(x){throw x},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p,b=!0,w=!1;return{s:function(){h=h.call(u)},n:function(){var x=h.next();return b=x.done,x},e:function(x){w=!0,p=x},f:function(){try{b||h.return==null||h.return()}finally{if(w)throw p}}}})(Qd(r));try{for(a.s();!(e=a.n()).done;){var c=e.value;n+=eh[c>>4],n+=eh[15&c]}}catch(u){a.e(u)}finally{a.f()}return n}function Mc(r,e){return{address:Jr(r),storageKeys:e.map(function(n,a){return _e(Jn(n,32),"invalid slot","storageKeys[".concat(a,"]"),n),n.toLowerCase()})}}function Ms(r){if(Array.isArray(r))return r.map(function(n,a){return Array.isArray(n)?(_e(n.length===2,"invalid slot set","value[".concat(a,"]"),n),Mc(n[0],n[1])):(_e(n!=null&&ee(n)==="object","invalid address-slot set","value",r),Mc(n.address,n.storageKeys))});_e(r!=null&&ee(r)==="object","invalid access list","value",r);var e=Object.keys(r).map(function(n){var a=r[n].reduce(function(c,u){return c[u]=!0,c},{});return Mc(n,Object.keys(a).sort())});return e.sort(function(n,a){return n.address.localeCompare(a.address)}),e}function Nn(r,e,n){(function(a,c){if(c.has(a))throw new TypeError("Cannot initialize the same private elements twice on an object")})(r,e),e.set(r,n)}var vn=BigInt(0),l1=BigInt(2),f1=BigInt(27),d1=BigInt(28),h1=BigInt(35),p1=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Oc(r){return r==="0x"?null:Jr(r)}function th(r,e){try{return Ms(r)}catch(n){_e(!1,n.message,e,r)}}function Os(r,e){return r==="0x"?0:un(r,e)}function fn(r,e){if(r==="0x")return vn;var n=Fr(r,e);return _e(n<=p1,"value exceeds uint size",e,n),n}function Xr(r,e){var n=Fr(r,"value"),a=Bn(n);return _e(a.length<=32,"value too large","tx.".concat(e),n),a}function rh(r){return Ms(r).map(function(e){return[e.address,e.storageKeys]})}function nh(r,e){var n=[Xr(r.nonce||0,"nonce"),Xr(r.gasPrice||0,"gasPrice"),Xr(r.gasLimit||0,"gasLimit"),r.to!=null?Jr(r.to):"0x",Xr(r.value||0,"value"),r.data||"0x"],a=vn;if(r.chainId!=vn)a=Fr(r.chainId,"tx.chainId"),_e(!e||e.networkV==null||e.legacyChainId===a,"tx.chainId/sig.v mismatch","sig",e);else if(r.signature){var c=r.signature.legacyChainId;c!=null&&(a=c)}if(!e)return a!==vn&&(n.push(Bn(a)),n.push("0x"),n.push("0x")),Es(n);var u=BigInt(27+e.yParity);return a!==vn?u=Cn.getChainIdV(a,e.v):BigInt(e.v)!==u&&_e(!1,"tx.chainId/sig.v mismatch","sig",e),n.push(Bn(u)),n.push(Bn(e.r)),n.push(Bn(e.s)),Es(n)}function oh(r,e){var n;try{if((n=Os(e[0],"yParity"))!==0&&n!==1)throw new Error("bad yParity")}catch{_e(!1,"invalid yParity","yParity",e[0])}var a=_o(e[1],32),c=_o(e[2],32),u=Cn.from({r:a,s:c,yParity:n});r.signature=u}function ah(r,e){var n=[Xr(r.chainId||0,"chainId"),Xr(r.nonce||0,"nonce"),Xr(r.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Xr(r.maxFeePerGas||0,"maxFeePerGas"),Xr(r.gasLimit||0,"gasLimit"),r.to!=null?Jr(r.to):"0x",Xr(r.value||0,"value"),r.data||"0x",rh(r.accessList||[])];return e&&(n.push(Xr(e.yParity,"yParity")),n.push(Bn(e.r)),n.push(Bn(e.s))),Sr(["0x02",Es(n)])}function ih(r,e){var n=[Xr(r.chainId||0,"chainId"),Xr(r.nonce||0,"nonce"),Xr(r.gasPrice||0,"gasPrice"),Xr(r.gasLimit||0,"gasLimit"),r.to!=null?Jr(r.to):"0x",Xr(r.value||0,"value"),r.data||"0x",rh(r.accessList||[])];return e&&(n.push(Xr(e.yParity,"recoveryParam")),n.push(Bn(e.r)),n.push(Bn(e.s))),Sr(["0x01",Es(n)])}var fa=new WeakMap,Is=new WeakMap,xs=new WeakMap,ks=new WeakMap,Ss=new WeakMap,Fs=new WeakMap,Rs=new WeakMap,_s=new WeakMap,Ns=new WeakMap,Ds=new WeakMap,Us=new WeakMap,Ls=new WeakMap,sh=(function(){function r(){Q(this,r),Nn(this,fa,{writable:!0,value:void 0}),Nn(this,Is,{writable:!0,value:void 0}),Nn(this,xs,{writable:!0,value:void 0}),Nn(this,ks,{writable:!0,value:void 0}),Nn(this,Ss,{writable:!0,value:void 0}),Nn(this,Fs,{writable:!0,value:void 0}),Nn(this,Rs,{writable:!0,value:void 0}),Nn(this,_s,{writable:!0,value:void 0}),Nn(this,Ns,{writable:!0,value:void 0}),Nn(this,Ds,{writable:!0,value:void 0}),Nn(this,Us,{writable:!0,value:void 0}),Nn(this,Ls,{writable:!0,value:void 0}),dt(this,fa,null),dt(this,Is,null),dt(this,ks,0),dt(this,Ss,BigInt(0)),dt(this,Fs,null),dt(this,Rs,null),dt(this,_s,null),dt(this,xs,"0x"),dt(this,Ns,BigInt(0)),dt(this,Ds,BigInt(0)),dt(this,Us,null),dt(this,Ls,null)}return E(r,[{key:"type",get:function(){return Qe(this,fa)},set:function(e){switch(e){case null:dt(this,fa,null);break;case 0:case"legacy":dt(this,fa,0);break;case 1:case"berlin":case"eip-2930":dt(this,fa,1);break;case 2:case"london":case"eip-1559":dt(this,fa,2);break;default:_e(!1,"unsupported transaction type","type",e)}}},{key:"typeName",get:function(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559"}return null}},{key:"to",get:function(){return Qe(this,Is)},set:function(e){dt(this,Is,e==null?null:Jr(e))}},{key:"nonce",get:function(){return Qe(this,ks)},set:function(e){dt(this,ks,un(e,"value"))}},{key:"gasLimit",get:function(){return Qe(this,Ss)},set:function(e){dt(this,Ss,Fr(e))}},{key:"gasPrice",get:function(){var e=Qe(this,Fs);return e!=null||this.type!==0&&this.type!==1?e:vn},set:function(e){dt(this,Fs,e==null?null:Fr(e,"gasPrice"))}},{key:"maxPriorityFeePerGas",get:function(){var e=Qe(this,Rs);return e??(this.type===2?vn:null)},set:function(e){dt(this,Rs,e==null?null:Fr(e,"maxPriorityFeePerGas"))}},{key:"maxFeePerGas",get:function(){var e=Qe(this,_s);return e??(this.type===2?vn:null)},set:function(e){dt(this,_s,e==null?null:Fr(e,"maxFeePerGas"))}},{key:"data",get:function(){return Qe(this,xs)},set:function(e){dt(this,xs,mt(e))}},{key:"value",get:function(){return Qe(this,Ns)},set:function(e){dt(this,Ns,Fr(e,"value"))}},{key:"chainId",get:function(){return Qe(this,Ds)},set:function(e){dt(this,Ds,Fr(e))}},{key:"signature",get:function(){return Qe(this,Us)||null},set:function(e){dt(this,Us,e==null?null:Cn.from(e))}},{key:"accessList",get:function(){var e=Qe(this,Ls)||null;return e??(this.type===1||this.type===2?[]:null)},set:function(e){dt(this,Ls,e==null?null:Ms(e))}},{key:"hash",get:function(){return this.signature==null?null:rr(this.serialized)}},{key:"unsignedHash",get:function(){return rr(this.unsignedSerialized)}},{key:"from",get:function(){return this.signature==null?null:Ra(this.unsignedHash,this.signature)}},{key:"fromPublicKey",get:function(){return this.signature==null?null:Rn.recoverPublicKey(this.unsignedHash,this.signature)}},{key:"isSigned",value:function(){return this.signature!=null}},{key:"serialized",get:function(){switch(jt(this.signature!=null,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"}),this.inferType()){case 0:return nh(this,this.signature);case 1:return ih(this,this.signature);case 2:return ah(this,this.signature)}jt(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}},{key:"unsignedSerialized",get:function(){switch(this.inferType()){case 0:return nh(this);case 1:return ih(this);case 2:return ah(this)}jt(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".unsignedSerialized"})}},{key:"inferType",value:function(){return this.inferTypes().pop()}},{key:"inferTypes",value:function(){var e=this.gasPrice!=null,n=this.maxFeePerGas!=null||this.maxPriorityFeePerGas!=null,a=this.accessList!=null;this.maxFeePerGas!=null&&this.maxPriorityFeePerGas!=null&&jt(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),jt(!n||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),jt(this.type!==0||!a,"legacy transaction cannot have accessList","BAD_DATA",{value:this});var c=[];return this.type!=null?c.push(this.type):n?c.push(2):e?(c.push(1),a||c.push(0)):a?(c.push(1),c.push(2)):(c.push(0),c.push(1),c.push(2)),c.sort(),c}},{key:"isLegacy",value:function(){return this.type===0}},{key:"isBerlin",value:function(){return this.type===1}},{key:"isLondon",value:function(){return this.type===2}},{key:"clone",value:function(){return r.from(this)}},{key:"toJSON",value:function(){var e=function(n){return n==null?null:n.toString()};return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}}],[{key:"from",value:function(e){if(e==null)return new r;if(typeof e=="string"){var n=At(e);if(n[0]>=127)return r.from((function(c){var u=Ec(c);_e(Array.isArray(u)&&(u.length===9||u.length===6),"invalid field count for legacy transaction","data",c);var d={type:0,nonce:Os(u[0],"nonce"),gasPrice:fn(u[1],"gasPrice"),gasLimit:fn(u[2],"gasLimit"),to:Oc(u[3]),value:fn(u[4],"value"),data:mt(u[5]),chainId:vn};if(u.length===6)return d;var h=fn(u[6],"v"),l=fn(u[7],"r"),g=fn(u[8],"s");if(l===vn&&g===vn)d.chainId=h;else{var p=(h-h1)/l1;p<vn&&(p=vn),d.chainId=p,_e(p!==vn||h===f1||h===d1,"non-canonical legacy v","v",u[6]),d.signature=Cn.from({r:_o(u[7],32),s:_o(u[8],32),v:h}),d.hash=rr(c)}return d})(n));switch(n[0]){case 1:return r.from((function(c){var u=Ec(At(c).slice(1));_e(Array.isArray(u)&&(u.length===8||u.length===11),"invalid field count for transaction type: 1","data",mt(c));var d={type:1,chainId:fn(u[0],"chainId"),nonce:Os(u[1],"nonce"),gasPrice:fn(u[2],"gasPrice"),gasLimit:fn(u[3],"gasLimit"),to:Oc(u[4]),value:fn(u[5],"value"),data:mt(u[6]),accessList:th(u[7],"accessList")};return u.length===8||(d.hash=rr(c),oh(d,u.slice(8))),d})(n));case 2:return r.from((function(c){var u=Ec(At(c).slice(1));_e(Array.isArray(u)&&(u.length===9||u.length===12),"invalid field count for transaction type: 2","data",mt(c));var d=fn(u[2],"maxPriorityFeePerGas"),h=fn(u[3],"maxFeePerGas"),l={type:2,chainId:fn(u[0],"chainId"),nonce:Os(u[1],"nonce"),maxPriorityFeePerGas:d,maxFeePerGas:h,gasPrice:null,gasLimit:fn(u[4],"gasLimit"),to:Oc(u[5]),value:fn(u[6],"value"),data:mt(u[7]),accessList:th(u[8],"accessList")};return u.length===9||(l.hash=rr(c),oh(l,u.slice(9))),l})(n))}jt(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}var a=new r;return e.type!=null&&(a.type=e.type),e.to!=null&&(a.to=e.to),e.nonce!=null&&(a.nonce=e.nonce),e.gasLimit!=null&&(a.gasLimit=e.gasLimit),e.gasPrice!=null&&(a.gasPrice=e.gasPrice),e.maxPriorityFeePerGas!=null&&(a.maxPriorityFeePerGas=e.maxPriorityFeePerGas),e.maxFeePerGas!=null&&(a.maxFeePerGas=e.maxFeePerGas),e.data!=null&&(a.data=e.data),e.value!=null&&(a.value=e.value),e.chainId!=null&&(a.chainId=e.chainId),e.signature!=null&&(a.signature=Cn.from(e.signature)),e.accessList!=null&&(a.accessList=e.accessList),e.hash!=null&&(_e(a.isSigned(),"unsigned transaction cannot define hash","tx",e),_e(a.hash===e.hash,"hash mismatch","tx",e)),e.from!=null&&(_e(a.isSigned(),"unsigned transaction cannot define from","tx",e),_e(a.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),a}}]),r})();function uh(r,e){var n=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!n){if(Array.isArray(r)||(n=(function(l,g){if(l){if(typeof l=="string")return ch(l,g);var p=Object.prototype.toString.call(l).slice(8,-1);return p==="Object"&&l.constructor&&(p=l.constructor.name),p==="Map"||p==="Set"?Array.from(l):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?ch(l,g):void 0}})(r))||e){n&&(r=n);var a=0,c=function(){};return{s:c,n:function(){return a>=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(l){throw l},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u,d=!0,h=!1;return{s:function(){n=n.call(r)},n:function(){var l=n.next();return d=l.done,l},e:function(l){h=!0,u=l},f:function(){try{d||n.return==null||n.return()}finally{if(h)throw u}}}}function ch(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=r[n];return a}function g1(r){var e={};r.to&&(e.to=r.to),r.from&&(e.from=r.from),r.data&&(e.data=mt(r.data));var n,a=uh("chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/));try{for(a.s();!(n=a.n()).done;){var c=n.value;c in r&&r[c]!=null&&(e[c]=Fr(r[c],"request.".concat(c)))}}catch(l){a.e(l)}finally{a.f()}var u,d=uh("type,nonce".split(/,/));try{for(d.s();!(u=d.n()).done;){var h=u.value;h in r&&r[h]!=null&&(e[h]=un(r[h],"request.".concat(h)))}}catch(l){d.e(l)}finally{d.f()}return r.accessList&&(e.accessList=Ms(r.accessList)),"blockTag"in r&&(e.blockTag=r.blockTag),"enableCcipRead"in r&&(e.enableCcipReadEnabled=!!r.enableCcipRead),"customData"in r&&(e.customData=r.customData),e}function Ic(r,e,n){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return n}function Ua(r,e){if(r.provider)return r.provider;jt(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}function lh(r,e){return fh.apply(this,arguments)}function fh(){return(fh=_(ie.mark(function r(e,n){var a,c;return ie.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return(a=g1(n)).to!=null&&(a.to=Ws(a.to,e)),a.from!=null?(c=a.from,a.from=Promise.all([e.getAddress(),Ws(c,e)]).then(function(d){var h=Xn(d,2),l=h[0],g=h[1];return _e(l.toLowerCase()===g.toLowerCase(),"transaction from mismatch","tx.from",g),l})):a.from=e.getAddress(),u.next=5,$u(a);case 5:return u.abrupt("return",u.sent);case 6:case"end":return u.stop()}},r)}))).apply(this,arguments)}BigInt(0);var dh=(function(){function r(l){Q(this,r),te(this,"provider",void 0),ur(this,{provider:l||null})}var e,n,a,c,u,d,h;return E(r,[{key:"getNonce",value:(h=_(ie.mark(function l(g){return ie.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.t0=Ua(this,"getTransactionCount"),p.next=3,this.getAddress();case 3:return p.t1=p.sent,p.t2=g,p.abrupt("return",p.t0.getTransactionCount.call(p.t0,p.t1,p.t2));case 6:case"end":return p.stop()}},l,this)})),function(l){return h.apply(this,arguments)})},{key:"populateCall",value:(d=_(ie.mark(function l(g){var p;return ie.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,lh(this,g);case 2:return p=b.sent,b.abrupt("return",p);case 4:case"end":return b.stop()}},l,this)})),function(l){return d.apply(this,arguments)})},{key:"populateTransaction",value:(u=_(ie.mark(function l(g){var p,b,w,x,j,J,we;return ie.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return p=Ua(this,"populateTransaction"),ve.next=3,lh(this,g);case 3:if((b=ve.sent).nonce!=null){ve.next=8;break}return ve.next=7,this.getNonce("pending");case 7:b.nonce=ve.sent;case 8:if(b.gasLimit!=null){ve.next=12;break}return ve.next=11,this.estimateGas(b);case 11:b.gasLimit=ve.sent;case 12:return ve.next=14,this.provider.getNetwork();case 14:if(w=ve.sent,b.chainId!=null?_e(Fr(b.chainId)===w.chainId,"transaction chainId mismatch","tx.chainId",g.chainId):b.chainId=w.chainId,x=b.maxFeePerGas!=null||b.maxPriorityFeePerGas!=null,b.gasPrice==null||b.type!==2&&!x?b.type!==0&&b.type!==1||!x||_e(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",g):_e(!1,"eip-1559 transaction do not support gasPrice","tx",g),b.type!==2&&b.type!=null||b.maxFeePerGas==null||b.maxPriorityFeePerGas==null){ve.next=22;break}b.type=2,ve.next=34;break;case 22:if(b.type!==0&&b.type!==1){ve.next=30;break}return ve.next=25,p.getFeeData();case 25:jt((j=ve.sent).gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),b.gasPrice==null&&(b.gasPrice=j.gasPrice),ve.next=34;break;case 30:return ve.next=32,p.getFeeData();case 32:J=ve.sent,b.type==null?J.maxFeePerGas!=null&&J.maxPriorityFeePerGas!=null?(b.type=2,b.gasPrice!=null?(we=b.gasPrice,delete b.gasPrice,b.maxFeePerGas=we,b.maxPriorityFeePerGas=we):(b.maxFeePerGas==null&&(b.maxFeePerGas=J.maxFeePerGas),b.maxPriorityFeePerGas==null&&(b.maxPriorityFeePerGas=J.maxPriorityFeePerGas))):J.gasPrice!=null?(jt(!x,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),b.gasPrice==null&&(b.gasPrice=J.gasPrice),b.type=0):jt(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"}):b.type===2&&(b.maxFeePerGas==null&&(b.maxFeePerGas=J.maxFeePerGas),b.maxPriorityFeePerGas==null&&(b.maxPriorityFeePerGas=J.maxPriorityFeePerGas));case 34:return ve.next=36,$u(b);case 36:return ve.abrupt("return",ve.sent);case 37:case"end":return ve.stop()}},l,this)})),function(l){return u.apply(this,arguments)})},{key:"estimateGas",value:(c=_(ie.mark(function l(g){return ie.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.t0=Ua(this,"estimateGas"),p.next=3,this.populateCall(g);case 3:return p.t1=p.sent,p.abrupt("return",p.t0.estimateGas.call(p.t0,p.t1));case 5:case"end":return p.stop()}},l,this)})),function(l){return c.apply(this,arguments)})},{key:"call",value:(a=_(ie.mark(function l(g){return ie.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.t0=Ua(this,"call"),p.next=3,this.populateCall(g);case 3:return p.t1=p.sent,p.abrupt("return",p.t0.call.call(p.t0,p.t1));case 5:case"end":return p.stop()}},l,this)})),function(l){return a.apply(this,arguments)})},{key:"resolveName",value:(n=_(ie.mark(function l(g){var p;return ie.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=Ua(this,"resolveName"),b.next=3,p.resolveName(g);case 3:return b.abrupt("return",b.sent);case 4:case"end":return b.stop()}},l,this)})),function(l){return n.apply(this,arguments)})},{key:"sendTransaction",value:(e=_(ie.mark(function l(g){var p,b,w;return ie.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return p=Ua(this,"sendTransaction"),x.next=3,this.populateTransaction(g);case 3:return delete(b=x.sent).from,w=sh.from(b),x.t0=p,x.next=9,this.signTransaction(w);case 9:return x.t1=x.sent,x.next=12,x.t0.broadcastTransaction.call(x.t0,x.t1);case 12:return x.abrupt("return",x.sent);case 13:case"end":return x.stop()}},l,this)})),function(l){return e.apply(this,arguments)})}]),r})(),js=new WeakSet,y1=(function(r){K(h,r);var e,n,a,c,u,d=(c=h,u=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})(),function(){var l,g=ce(c);if(u){var p=ce(this).constructor;l=Reflect.construct(g,arguments,p)}else l=g.apply(this,arguments);return Y(this,l)});function h(l,g){var p,b,w;return Q(this,h),(function(x,j){if(j.has(x))throw new TypeError("Cannot initialize the same private elements twice on an object")})(b=S(p=d.call(this,g)),w=js),w.add(b),te(S(p),"address",void 0),ur(S(p),{address:l}),p}return E(h,[{key:"getAddress",value:(a=_(ie.mark(function l(){return ie.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",this.address);case 1:case"end":return g.stop()}},l,this)})),function(){return a.apply(this,arguments)})},{key:"connect",value:function(l){return new h(this.address,l)}},{key:"signTransaction",value:(n=_(ie.mark(function l(g){return ie.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:Ic(this,js,xc).call(this,"transactions","signTransaction");case 1:case"end":return p.stop()}},l,this)})),function(l){return n.apply(this,arguments)})},{key:"signMessage",value:(e=_(ie.mark(function l(g){return ie.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:Ic(this,js,xc).call(this,"messages","signMessage");case 1:case"end":return p.stop()}},l,this)})),function(l){return e.apply(this,arguments)})},{key:"signTypedData",value:(function(){var l=_(ie.mark(function g(p,b,w){return ie.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:Ic(this,js,xc).call(this,"typed-data","signTypedData");case 1:case"end":return x.stop()}},g,this)}));return function(g,p,b){return l.apply(this,arguments)}})()}]),h})(dh);function xc(r,e){jt(!1,"VoidSigner cannot sign ".concat(r),"UNSUPPORTED_OPERATION",{operation:e})}var zs=new WeakMap,hh=(function(r){K(h,r);var e,n,a,c,u,d=(c=h,u=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})(),function(){var l,g=ce(c);if(u){var p=ce(this).constructor;l=Reflect.construct(g,arguments,p)}else l=g.apply(this,arguments);return Y(this,l)});function h(l,g){var p,b,w,x;Q(this,h),te(S(p=d.call(this,g)),"address",void 0),b=S(p),x={writable:!0,value:void 0},(function(J,we){if(we.has(J))throw new TypeError("Cannot initialize the same private elements twice on an object")})(b,w=zs),w.set(b,x),_e(l&&typeof l.sign=="function","invalid private key","privateKey","[ REDACTED ]"),dt(S(p),zs,l);var j=wi(p.signingKey.publicKey);return ur(S(p),{address:j}),p}return E(h,[{key:"signingKey",get:function(){return Qe(this,zs)}},{key:"privateKey",get:function(){return this.signingKey.privateKey}},{key:"getAddress",value:(a=_(ie.mark(function l(){return ie.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",this.address);case 1:case"end":return g.stop()}},l,this)})),function(){return a.apply(this,arguments)})},{key:"connect",value:function(l){return new h(Qe(this,zs),l)}},{key:"signTransaction",value:(n=_(ie.mark(function l(g){var p,b,w,x;return ie.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,$u({to:g.to?Ws(g.to,this.provider):void 0,from:g.from?Ws(g.from,this.provider):void 0});case 2:return p=j.sent,b=p.to,w=p.from,b!=null&&(g.to=b),w!=null&&(g.from=w),g.from!=null&&(_e(Jr(g.from)===this.address,"transaction from address mismatch","tx.from",g.from),delete g.from),(x=sh.from(g)).signature=this.signingKey.sign(x.unsignedHash),j.abrupt("return",x.serialized);case 11:case"end":return j.stop()}},l,this)})),function(l){return n.apply(this,arguments)})},{key:"signMessage",value:(e=_(ie.mark(function l(g){return ie.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",this.signMessageSync(g));case 1:case"end":return p.stop()}},l,this)})),function(l){return e.apply(this,arguments)})},{key:"signMessageSync",value:function(l){return this.signingKey.sign((function(g){return typeof g=="string"&&(g=mn(g)),rr(Sr([mn(r1),mn(String(g.length)),g]))})(l)).serialized}},{key:"signTypedData",value:(function(){var l=_(ie.mark(function g(p,b,w){var x,j=this;return ie.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,Kd.resolveNames(p,b,w,(function(){var we=_(ie.mark(function ve(Fe){var Ee;return ie.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return jt(j.provider!=null,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:Fe}}),O.next=3,j.provider.resolveName(Fe);case 3:return jt((Ee=O.sent)!=null,"unconfigured ENS name","UNCONFIGURED_NAME",{value:Fe}),O.abrupt("return",Ee);case 6:case"end":return O.stop()}},ve)}));return function(ve){return we.apply(this,arguments)}})());case 2:return x=J.sent,J.abrupt("return",this.signingKey.sign(Kd.hash(x.domain,b,x.value)).serialized);case 4:case"end":return J.stop()}},g,this)}));return function(g,p,b){return l.apply(this,arguments)}})()}]),h})(dh);const m1=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),ph=Uint8Array.from({length:16},(r,e)=>e),v1=ph.map(r=>(9*r+5)%16);let kc=[ph],Sc=[v1];for(let r=0;r<4;r++)for(let e of[kc,Sc])e.push(e[r].map(n=>m1[n]));const gh=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(r=>new Uint8Array(r)),b1=kc.map((r,e)=>r.map(n=>gh[e][n])),T1=Sc.map((r,e)=>r.map(n=>gh[e][n])),A1=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),w1=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),Vs=(r,e)=>r<<e|r>>>32-e;function yh(r,e,n,a){return r===0?e^n^a:r===1?e&n|~e&a:r===2?(e|~n)^a:r===3?e&a|n&~a:e^(n|~a)}const Gs=new Uint32Array(16);class P1 extends qu{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:n,h2:a,h3:c,h4:u}=this;return[e,n,a,c,u]}set(e,n,a,c,u){this.h0=0|e,this.h1=0|n,this.h2=0|a,this.h3=0|c,this.h4=0|u}process(e,n){for(let x=0;x<16;x++,n+=4)Gs[x]=e.getUint32(n,!0);let a=0|this.h0,c=a,u=0|this.h1,d=u,h=0|this.h2,l=h,g=0|this.h3,p=g,b=0|this.h4,w=b;for(let x=0;x<5;x++){const j=4-x,J=A1[x],we=w1[x],ve=kc[x],Fe=Sc[x],Ee=b1[x],O=T1[x];for(let M=0;M<16;M++){const I=Vs(a+yh(x,u,h,g)+Gs[ve[M]]+J,Ee[M])+b|0;a=b,b=g,g=0|Vs(h,10),h=u,u=I}for(let M=0;M<16;M++){const I=Vs(c+yh(j,d,l,p)+Gs[Fe[M]]+we,O[M])+w|0;c=w,w=p,p=0|Vs(l,10),l=d,d=I}}this.set(this.h1+h+p|0,this.h2+g+w|0,this.h3+b+c|0,this.h4+a+d|0,this.h0+u+l|0)}roundClean(){Gs.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const W1=Ma(()=>new P1);var mh=!1,vh=function(r){return W1(r)},bh=vh;function La(r){var e=At(r,"data");return mt(bh(e))}La._=vh,La.lock=function(){mh=!0},La.register=function(r){if(mh)throw new TypeError("ripemd160 is locked");bh=r},Object.freeze(La);var Th=!1,Ah=function(r){return new Uint8Array((function(e){jt(Mf!=null,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),_e(Number.isInteger(e)&&e>0&&e<=1024,"invalid length","length",e);var n=new Uint8Array(e);return Mf.getRandomValues(n),n})(r))},wh=Ah;function Wo(r){return wh(r)}Wo._=Ah,Wo.lock=function(){Th=!0},Wo.register=function(r){if(Th)throw new Error("randomBytes is locked");wh=r},Object.freeze(Wo);var Fc="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",$s=null;function B1(r){if($s==null){$s={};for(var e=0;e<Fc.length;e++)$s[Fc[e]]=BigInt(e)}var n=$s[r];return _e(n!=null,"invalid base58 value","letter",r),n}var Hs,Dn,ho,C1=BigInt(0),Rc=BigInt(58),Qr=function(r,e,n,a){if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?a:n==="a"?a.call(r):a?a.value:e.get(r)},_c=function(r,e,n,a,c){if(typeof e=="function"?r!==e||!0:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(r,n),n};const E1={16:10,24:12,32:14},M1=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],Un=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Ks=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],O1=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],I1=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],x1=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],k1=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],S1=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],F1=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],R1=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],_1=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],N1=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],D1=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],U1=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],L1=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function Nc(r){const e=[];for(let n=0;n<r.length;n+=4)e.push(r[n]<<24|r[n+1]<<16|r[n+2]<<8|r[n+3]);return e}class Dc{get key(){return Qr(this,Hs,"f").slice()}constructor(e){if(Hs.set(this,void 0),Dn.set(this,void 0),ho.set(this,void 0),!(this instanceof Dc))throw Error("AES must be instanitated with `new`");_c(this,Hs,new Uint8Array(e));const n=E1[this.key.length];if(n==null)throw new TypeError("invalid key size (must be 16, 24 or 32 bytes)");_c(this,ho,[]),_c(this,Dn,[]);for(let p=0;p<=n;p++)Qr(this,ho,"f").push([0,0,0,0]),Qr(this,Dn,"f").push([0,0,0,0]);const a=4*(n+1),c=this.key.length/4,u=Nc(this.key);let d;for(let p=0;p<c;p++)d=p>>2,Qr(this,ho,"f")[d][p%4]=u[p],Qr(this,Dn,"f")[n-d][p%4]=u[p];let h,l=0,g=c;for(;g<a;){if(h=u[c-1],u[0]^=Un[h>>16&255]<<24^Un[h>>8&255]<<16^Un[255&h]<<8^Un[h>>24&255]^M1[l]<<24,l+=1,c!=8)for(let x=1;x<c;x++)u[x]^=u[x-1];else{for(let x=1;x<c/2;x++)u[x]^=u[x-1];h=u[c/2-1],u[c/2]^=Un[255&h]^Un[h>>8&255]<<8^Un[h>>16&255]<<16^Un[h>>24&255]<<24;for(let x=c/2+1;x<c;x++)u[x]^=u[x-1]}let p,b,w=0;for(;w<c&&g<a;)p=g>>2,b=g%4,Qr(this,ho,"f")[p][b]=u[w],Qr(this,Dn,"f")[n-p][b]=u[w++],g++}for(let p=1;p<n;p++)for(let b=0;b<4;b++)h=Qr(this,Dn,"f")[p][b],Qr(this,Dn,"f")[p][b]=N1[h>>24&255]^D1[h>>16&255]^U1[h>>8&255]^L1[255&h]}encrypt(e){if(e.length!=16)throw new TypeError("invalid plaintext size (must be 16 bytes)");const n=Qr(this,ho,"f").length-1,a=[0,0,0,0];let c=Nc(e);for(let h=0;h<4;h++)c[h]^=Qr(this,ho,"f")[0][h];for(let h=1;h<n;h++){for(let l=0;l<4;l++)a[l]=O1[c[l]>>24&255]^I1[c[(l+1)%4]>>16&255]^x1[c[(l+2)%4]>>8&255]^k1[255&c[(l+3)%4]]^Qr(this,ho,"f")[h][l];c=a.slice()}const u=new Uint8Array(16);let d=0;for(let h=0;h<4;h++)d=Qr(this,ho,"f")[n][h],u[4*h]=255&(Un[c[h]>>24&255]^d>>24),u[4*h+1]=255&(Un[c[(h+1)%4]>>16&255]^d>>16),u[4*h+2]=255&(Un[c[(h+2)%4]>>8&255]^d>>8),u[4*h+3]=255&(Un[255&c[(h+3)%4]]^d);return u}decrypt(e){if(e.length!=16)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const n=Qr(this,Dn,"f").length-1,a=[0,0,0,0];let c=Nc(e);for(let h=0;h<4;h++)c[h]^=Qr(this,Dn,"f")[0][h];for(let h=1;h<n;h++){for(let l=0;l<4;l++)a[l]=S1[c[l]>>24&255]^F1[c[(l+3)%4]>>16&255]^R1[c[(l+2)%4]>>8&255]^_1[255&c[(l+1)%4]]^Qr(this,Dn,"f")[h][l];c=a.slice()}const u=new Uint8Array(16);let d=0;for(let h=0;h<4;h++)d=Qr(this,Dn,"f")[n][h],u[4*h]=255&(Ks[c[h]>>24&255]^d>>24),u[4*h+1]=255&(Ks[c[(h+3)%4]>>16&255]^d>>16),u[4*h+2]=255&(Ks[c[(h+2)%4]>>8&255]^d>>8),u[4*h+3]=255&(Ks[255&c[(h+1)%4]]^d);return u}}Hs=new WeakMap,Dn=new WeakMap,ho=new WeakMap;class Ph{constructor(e,n,a){if(a&&!(this instanceof a))throw new Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new Dc(n)},name:{enumerable:!0,value:e}})}}var xi,Bo,Zs=function(r,e,n,a,c){if(typeof e=="function"?r!==e||!0:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(r,n),n},ja=function(r,e,n,a){if(typeof e=="function"?r!==e||!0:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(r)};class Uc extends Ph{constructor(e,n){if(super("ECC",e,Uc),xi.set(this,void 0),Bo.set(this,void 0),n){if(n.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");Zs(this,xi,new Uint8Array(n))}else Zs(this,xi,new Uint8Array(16));Zs(this,Bo,this.iv)}get iv(){return new Uint8Array(ja(this,xi))}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const n=new Uint8Array(e.length);for(let a=0;a<e.length;a+=16){for(let c=0;c<16;c++)ja(this,Bo)[c]^=e[a+c];Zs(this,Bo,this.aes.encrypt(ja(this,Bo))),n.set(ja(this,Bo),a)}return n}decrypt(e){if(e.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const n=new Uint8Array(e.length);for(let a=0;a<e.length;a+=16){const c=this.aes.decrypt(e.subarray(a,a+16));for(let u=0;u<16;u++)n[a+u]=c[u]^ja(this,Bo)[u],ja(this,Bo)[u]=e[a+u]}return n}}xi=new WeakMap,Bo=new WeakMap;var ki,da,Ln,za=function(r,e,n,a,c){if(typeof e=="function"?r!==e||!0:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(r,n),n},jn=function(r,e,n,a){if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?a:n==="a"?a.call(r):a?a.value:e.get(r)};class Va extends Ph{constructor(e,n){super("CTR",e,Va),ki.set(this,void 0),da.set(this,void 0),Ln.set(this,void 0),za(this,Ln,new Uint8Array(16)),jn(this,Ln,"f").fill(0),za(this,ki,jn(this,Ln,"f")),za(this,da,16),n==null&&(n=1),typeof n=="number"?this.setCounterValue(n):this.setCounterBytes(n)}get counter(){return new Uint8Array(jn(this,Ln,"f"))}setCounterValue(e){if(!Number.isInteger(e)||e<0||e>Number.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let n=15;n>=0;--n)jn(this,Ln,"f")[n]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(e.length!==16)throw new TypeError("invalid counter initial Uint8Array value length");jn(this,Ln,"f").set(e)}increment(){for(let e=15;e>=0;e--){if(jn(this,Ln,"f")[e]!==255){jn(this,Ln,"f")[e]++;break}jn(this,Ln,"f")[e]=0}}encrypt(e){var n,a;const c=new Uint8Array(e);for(let u=0;u<c.length;u++)jn(this,da,"f")===16&&(za(this,ki,this.aes.encrypt(jn(this,Ln,"f"))),za(this,da,0),this.increment()),c[u]^=jn(this,ki,"f")[za(this,da,(a=jn(this,da,"f"),n=a++,a)),n];return c}decrypt(e){return this.encrypt(e)}}ki=new WeakMap,da=new WeakMap,Ln=new WeakMap;const Er=(r,e)=>r<<e|r>>>32-e;function Wh(r,e,n,a,c,u){let d=r[e++]^n[a++],h=r[e++]^n[a++],l=r[e++]^n[a++],g=r[e++]^n[a++],p=r[e++]^n[a++],b=r[e++]^n[a++],w=r[e++]^n[a++],x=r[e++]^n[a++],j=r[e++]^n[a++],J=r[e++]^n[a++],we=r[e++]^n[a++],ve=r[e++]^n[a++],Fe=r[e++]^n[a++],Ee=r[e++]^n[a++],O=r[e++]^n[a++],M=r[e++]^n[a++],I=d,U=h,$=l,re=g,q=p,ye=b,Pe=w,de=x,fe=j,xe=J,z=we,Z=ve,be=Fe,Ae=Ee,Be=O,Re=M;for(let je=0;je<8;je+=2)q^=Er(I+be|0,7),fe^=Er(q+I|0,9),be^=Er(fe+q|0,13),I^=Er(be+fe|0,18),xe^=Er(ye+U|0,7),Ae^=Er(xe+ye|0,9),U^=Er(Ae+xe|0,13),ye^=Er(U+Ae|0,18),Be^=Er(z+Pe|0,7),$^=Er(Be+z|0,9),Pe^=Er($+Be|0,13),z^=Er(Pe+$|0,18),re^=Er(Re+Z|0,7),de^=Er(re+Re|0,9),Z^=Er(de+re|0,13),Re^=Er(Z+de|0,18),U^=Er(I+re|0,7),$^=Er(U+I|0,9),re^=Er($+U|0,13),I^=Er(re+$|0,18),Pe^=Er(ye+q|0,7),de^=Er(Pe+ye|0,9),q^=Er(de+Pe|0,13),ye^=Er(q+de|0,18),Z^=Er(z+xe|0,7),fe^=Er(Z+z|0,9),xe^=Er(fe+Z|0,13),z^=Er(xe+fe|0,18),be^=Er(Re+Be|0,7),Ae^=Er(be+Re|0,9),Be^=Er(Ae+be|0,13),Re^=Er(Be+Ae|0,18);c[u++]=d+I|0,c[u++]=h+U|0,c[u++]=l+$|0,c[u++]=g+re|0,c[u++]=p+q|0,c[u++]=b+ye|0,c[u++]=w+Pe|0,c[u++]=x+de|0,c[u++]=j+fe|0,c[u++]=J+xe|0,c[u++]=we+z|0,c[u++]=ve+Z|0,c[u++]=Fe+be|0,c[u++]=Ee+Ae|0,c[u++]=O+Be|0,c[u++]=M+Re|0}function Ga(r,e,n,a,c){let u=a+0,d=a+16*c;for(let h=0;h<16;h++)n[d+h]=r[e+16*(2*c-1)+h];for(let h=0;h<c;h++,u+=16,e+=16)Wh(n,d,r,e,n,u),h>0&&(d+=16),Wh(n,u,r,e+=16,n,d)}function Bh(r,e,n){const a=Wf({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:c,r:u,p:d,dkLen:h,asyncTick:l,maxmem:g,onProgress:p}=a;if(Lr.number(c),Lr.number(u),Lr.number(d),Lr.number(h),Lr.number(l),Lr.number(g),p!==void 0&&typeof p!="function")throw new Error("progressCb should be function");const b=128*u,w=b/4;if(c<=1||c&c-1||c>=2**(b/8)||c>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(d<0||d>137438953440/b)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(h<0||h>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const x=b*(c+d);if(x>g)throw new Error(`Scrypt: parameters too large, ${x} (128 * r * (N + p)) > ${g} (maxmem)`);const j=Ju(di,r,e,{c:1,dkLen:b*d}),J=ns(j),we=ns(new Uint8Array(b*c)),ve=ns(new Uint8Array(b));let Fe=()=>{};if(p){const Ee=2*c*d,O=Math.max(Math.floor(Ee/1e4),1);let M=0;Fe=()=>{M++,!p||M%O&&M!==Ee||p(M/Ee)}}return{N:c,r:u,p:d,dkLen:h,blockSize32:w,V:we,B32:J,B:j,tmp:ve,blockMixCb:Fe,asyncTick:l}}function Ch(r,e,n,a,c){const u=Ju(di,r,n,{c:1,dkLen:e});return n.fill(0),a.fill(0),c.fill(0),u}async function j1(r,e,n){const{N:a,r:c,p:u,dkLen:d,blockSize32:h,V:l,B32:g,B:p,tmp:b,blockMixCb:w,asyncTick:x}=Bh(r,e,n);for(let j=0;j<u;j++){const J=h*j;for(let ve=0;ve<h;ve++)l[ve]=g[J+ve];let we=0;await Pf(a-1,x,ve=>{Ga(l,we,l,we+=h,c),w()}),Ga(l,(a-1)*h,g,J,c),w(),await Pf(a,x,ve=>{const Fe=g[J+h-16]%a;for(let Ee=0;Ee<h;Ee++)b[Ee]=g[J+Ee]^l[Fe*h+Ee];Ga(b,0,g,J,c),w()})}return Ch(r,d,p,l,b)}var Eh=!1,Mh=!1,Oh=(function(){var r=_(ie.mark(function e(n,a,c,u,d,h,l){return ie.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,j1(n,a,{N:c,r:u,p:d,dkLen:h,onProgress:l});case 2:return g.abrupt("return",g.sent);case 3:case"end":return g.stop()}},e)}));return function(e,n,a,c,u,d,h){return r.apply(this,arguments)}})(),Ih=function(r,e,n,a,c,u){return(function(d,h,l){const{N:g,r:p,p:b,dkLen:w,blockSize32:x,V:j,B32:J,B:we,tmp:ve,blockMixCb:Fe}=Bh(d,h,l);for(let Ee=0;Ee<b;Ee++){const O=x*Ee;for(let M=0;M<x;M++)j[M]=J[O+M];for(let M=0,I=0;M<g-1;M++)Ga(j,I,j,I+=x,p),Fe();Ga(j,(g-1)*x,J,O,p),Fe();for(let M=0;M<g;M++){const I=J[O+x-16]%g;for(let U=0;U<x;U++)ve[U]=J[O+U]^j[I*x+U];Ga(ve,0,J,O,p),Fe()}}return Ch(d,w,we,j,ve)})(r,e,{N:n,r:a,p:c,dkLen:u})},xh=Oh,kh=Ih;function $a(r,e,n,a,c,u,d){return Lc.apply(this,arguments)}function Lc(){return Lc=_(ie.mark(function r(e,n,a,c,u,d,h){var l,g;return ie.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return l=At(e,"passwd"),g=At(n,"salt"),p.t0=mt,p.next=5,xh(l,g,a,c,u,d,h);case 5:return p.t1=p.sent,p.abrupt("return",(0,p.t0)(p.t1));case 7:case"end":return p.stop()}},r)})),Lc.apply(this,arguments)}function Ha(r,e,n,a,c,u){var d=At(r,"passwd"),h=At(e,"salt");return mt(kh(d,h,n,a,c,u))}function z1(r){var e=At(r,"randomBytes");e[6]=15&e[6]|64,e[8]=63&e[8]|128;var n=mt(e);return[n.substring(2,10),n.substring(10,14),n.substring(14,18),n.substring(18,22),n.substring(22,34)].join("-")}function Sh(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=r[n];return a}function Fh(r){return typeof r!="string"||r.startsWith("0x")||(r="0x"+r),tn(r)}function Si(r,e){for(r=String(r);r.length<e;)r="0"+r;return r}function Fi(r){return typeof r=="string"?mn(r,"NFKC"):tn(r)}function $r(r,e){var n=e.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);_e(n!=null,"invalid path","path",e);var a,c=n[1],u=n[3],d=n[4]==="!",h=r,l=(function(w,x){var j=typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(!j){if(Array.isArray(w)||(j=(function(O,M){if(O){if(typeof O=="string")return Sh(O,M);var I=Object.prototype.toString.call(O).slice(8,-1);return I==="Object"&&O.constructor&&(I=O.constructor.name),I==="Map"||I==="Set"?Array.from(O):I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I)?Sh(O,M):void 0}})(w))||x){j&&(w=j);var J=0,we=function(){};return{s:we,n:function(){return J>=w.length?{done:!0}:{done:!1,value:w[J++]}},e:function(O){throw O},f:we}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
20
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ve,Fe=!0,Ee=!1;return{s:function(){j=j.call(w)},n:function(){var O=j.next();return Fe=O.done,O},e:function(O){Ee=!0,ve=O},f:function(){try{Fe||j.return==null||j.return()}finally{if(Ee)throw ve}}}})(c.toLowerCase().split("."));try{for(l.s();!(a=l.n()).done;){var g=a.value;if(Array.isArray(h)){if(!g.match(/^[0-9]+$/))break;h=h[parseInt(g)]}else if(ee(h)==="object"){var p=null;for(var b in h)if(b.toLowerCase()===g){p=h[b];break}h=p}else h=null;if(h==null)break}}catch(w){l.e(w)}finally{l.f()}if(_e(!d||h!=null,"missing required value","path",c),u&&h!=null){if(u==="int"){if(typeof h=="string"&&h.match(/^-?[0-9]+$/))return parseInt(h);if(Number.isSafeInteger(h))return h}if(u==="number"&&typeof h=="string"&&h.match(/^-?[0-9.]*$/))return parseFloat(h);if(u==="data"&&typeof h=="string")return Fh(h);if(u==="array"&&Array.isArray(h)||u===ee(h))return h;_e(!1,"wrong type found for ".concat(u," "),"path",c)}return h}$a._=Oh,$a.lock=function(){Mh=!0},$a.register=function(r){if(Mh)throw new Error("scrypt is locked");xh=r},Object.freeze($a),Ha._=Ih,Ha.lock=function(){Eh=!0},Ha.register=function(r){if(Eh)throw new Error("scryptSync is locked");kh=r},Object.freeze(Ha);var Rh="m/44'/60'/0'/0/0";function _h(r){try{var e=JSON.parse(r);if((e.version!=null?parseInt(e.version):0)===3)return!0}catch{}return!1}function Js(r,e){var n=At(e),a=$r(r,"crypto.ciphertext:data!");_e(mt(rr(Sr([n.slice(16,32),a]))).substring(2)===$r(r,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");var c=(function(w,x,j){if($r(w,"crypto.cipher:string")==="aes-128-ctr"){var J=$r(w,"crypto.cipherparams.iv:data!");return mt(new Va(x,J).decrypt(j))}jt(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})})(r,n.slice(0,16),a),u=wi(c);if(r.address){var d=r.address.toLowerCase();d.startsWith("0x")||(d="0x"+d),_e(Jr(d)===u,"keystore address/privateKey mismatch","address",r.address)}var h={address:u,privateKey:c};if($r(r,"x-ethers.version:string")==="0.1"){var l=n.slice(32,64),g=$r(r,"x-ethers.mnemonicCiphertext:data!"),p=$r(r,"x-ethers.mnemonicCounter:data!"),b=new Va(l,p);h.mnemonic={path:$r(r,"x-ethers.path:string")||Rh,locale:$r(r,"x-ethers.locale:string")||"en",entropy:mt(At(b.decrypt(g)))}}return h}function Nh(r){var e=$r(r,"crypto.kdf:string");if(e&&typeof e=="string"){if(e.toLowerCase()==="scrypt"){var n=$r(r,"crypto.kdfparams.salt:data!"),a=$r(r,"crypto.kdfparams.n:int!"),c=$r(r,"crypto.kdfparams.r:int!"),u=$r(r,"crypto.kdfparams.p:int!");_e(a>0&&(a&a-1)==0,"invalid kdf.N","kdf.N",a),_e(c>0&&u>0,"invalid kdf","kdf",e);var d=$r(r,"crypto.kdfparams.dklen:int!");return _e(d===32,"invalid kdf.dklen","kdf.dflen",d),{name:"scrypt",salt:n,N:a,r:c,p:u,dkLen:64}}if(e.toLowerCase()==="pbkdf2"){var h=$r(r,"crypto.kdfparams.salt:data!"),l=$r(r,"crypto.kdfparams.prf:string!"),g=l.split("-").pop();_e(g==="sha256"||g==="sha512","invalid kdf.pdf","kdf.pdf",l);var p=$r(r,"crypto.kdfparams.c:int!"),b=$r(r,"crypto.kdfparams.dklen:int!");return _e(b===32,"invalid kdf.dklen","kdf.dklen",b),{name:"pbkdf2",salt:h,count:p,dkLen:b,algorithm:g}}}_e(!1,"unsupported key-derivation function","kdf",e)}function Dh(r){return new Promise(function(e){setTimeout(function(){e()},r)})}function V1(r,e,n){return jc.apply(this,arguments)}function jc(){return jc=_(ie.mark(function r(e,n,a){var c,u,d,h,l,g,p,b,w,x,j,J,we,ve;return ie.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(c=JSON.parse(e),u=Fi(n),(d=Nh(c)).name!=="pbkdf2"){Fe.next=15;break}if(!a){Fe.next=8;break}return a(0),Fe.next=8,Dh(0);case 8:if(h=d.salt,l=d.count,g=d.dkLen,p=d.algorithm,b=jo(u,h,l,g,p),!a){Fe.next=14;break}return a(1),Fe.next=14,Dh(0);case 14:return Fe.abrupt("return",Js(c,b));case 15:return jt(d.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:d}),w=d.salt,x=d.N,j=d.r,J=d.p,we=d.dkLen,Fe.next=19,$a(u,w,x,j,J,we,a);case 19:return ve=Fe.sent,Fe.abrupt("return",Js(c,ve));case 21:case"end":return Fe.stop()}},r)})),jc.apply(this,arguments)}function Uh(r){var e=r.salt!=null?At(r.salt,"options.salt"):Wo(32),n=1<<17,a=8,c=1;return r.scrypt&&(r.scrypt.N&&(n=r.scrypt.N),r.scrypt.r&&(a=r.scrypt.r),r.scrypt.p&&(c=r.scrypt.p)),_e(typeof n=="number"&&n>0&&Number.isSafeInteger(n)&&(BigInt(n)&BigInt(n-1))===BigInt(0),"invalid scrypt N parameter","options.N",n),_e(typeof a=="number"&&a>0&&Number.isSafeInteger(a),"invalid scrypt r parameter","options.r",a),_e(typeof c=="number"&&c>0&&Number.isSafeInteger(c),"invalid scrypt p parameter","options.p",c),{name:"scrypt",dkLen:32,salt:e,N:n,r:a,p:c}}function Lh(r,e,n,a){var c=At(n.privateKey,"privateKey"),u=a.iv!=null?At(a.iv,"options.iv"):Wo(16);_e(u.length===16,"invalid options.iv length","options.iv",a.iv);var d=a.uuid!=null?At(a.uuid,"options.uuid"):Wo(16);_e(d.length===16,"invalid options.uuid length","options.uuid",a.iv);var h=r.slice(0,16),l=r.slice(16,32),g=At(new Va(h,u).encrypt(c)),p=rr(Sr([l,g])),b={address:n.address.substring(2).toLowerCase(),id:z1(d),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:mt(u).substring(2)},ciphertext:mt(g).substring(2),kdf:"scrypt",kdfparams:{salt:mt(e.salt).substring(2),n:e.N,dklen:32,p:e.p,r:e.r},mac:p.substring(2)}};if(n.mnemonic){var w=a.client!=null?a.client:"ethers/".concat(nf),x=n.mnemonic.path||Rh,j=n.mnemonic.locale||"en",J=r.slice(32,64),we=At(n.mnemonic.entropy,"account.mnemonic.entropy"),ve=Wo(16),Fe=At(new Va(J,ve).encrypt(we)),Ee=new Date,O="UTC--"+Ee.getUTCFullYear()+"-"+Si(Ee.getUTCMonth()+1,2)+"-"+Si(Ee.getUTCDate(),2)+"T"+Si(Ee.getUTCHours(),2)+"-"+Si(Ee.getUTCMinutes(),2)+"-"+Si(Ee.getUTCSeconds(),2)+".0Z--"+b.address;b["x-ethers"]={client:w,gethFilename:O,path:x,locale:j,mnemonicCounter:mt(ve).substring(2),mnemonicCiphertext:mt(Fe).substring(2),version:"0.1"}}return JSON.stringify(b)}function jh(r,e,n){n==null&&(n={});var a=Fi(e),c=Uh(n);return Lh(At(Ha(a,c.salt,c.N,c.r,c.p,64)),c,r,n)}function zh(r,e,n){return Vh.apply(this,arguments)}function Vh(){return(Vh=_(ie.mark(function r(e,n,a){var c,u,d;return ie.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return a==null&&(a={}),c=Fi(n),u=Uh(a),h.next=5,$a(c,u.salt,u.N,u.r,u.p,64,a.progressCallback);case 5:return d=h.sent,h.abrupt("return",Lh(At(d),u,e,a));case 7:case"end":return h.stop()}},r)}))).apply(this,arguments)}function Gh(r){var e=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})();return function(){var n,a=ce(r);if(e){var c=ce(this).constructor;n=Reflect.construct(a,arguments,c)}else n=a.apply(this,arguments);return Y(this,n)}}function qs(r,e,n){return(function(a,c){if(a!==c)throw new TypeError("Private static access of wrong provenance")})(r,e),n}function $h(r,e,n){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return n}var zc="m/44'/60'/0'/0/0",G1=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),Ko=2147483648,$1=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),H1="0123456789abcdef";function Ys(r,e){for(var n="";r;)n=H1[r%16]+n,r=Math.trunc(r/16);for(;n.length<2*e;)n="0"+n;return"0x"+n}function Vc(r){var e=At(r);return(function(n){for(var a=Yi(At(n)),c="";a;)c=Fc[Number(a%Rc)]+c,a/=Rc;return c})(Sr([e,bo(cn(cn(e)),0,4)]))}var po={};function Hh(r,e,n,a){var c=new Uint8Array(37);r&Ko?(jt(a!=null,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),c.set(At(a),1)):c.set(At(n));for(var u=24;u>=0;u-=8)c[33+(u>>3)]=r>>24-u&255;var d=At(To("sha512",e,c));return{IL:d.slice(0,32),IR:d.slice(32)}}function Kh(r,e){var n=e.split("/");_e(n.length>0&&(n[0]==="m"||r.depth>0),"invalid path","path",e),n[0]==="m"&&n.shift();for(var a=r,c=0;c<n.length;c++){var u=n[c];if(u.match(/^[0-9]+'$/)){var d=parseInt(u.substring(0,u.length-1));_e(d<Ko,"invalid path index","path[".concat(c,"]"),u),a=a.deriveChild(Ko+d)}else if(u.match(/^[0-9]+$/)){var h=parseInt(u);_e(h<Ko,"invalid path index","path[".concat(c,"]"),u),a=a.deriveChild(h)}else _e(!1,"invalid path component","path[".concat(c,"]"),u)}return a}var Gc=new WeakSet,ha=(function(r){K(a,r);var e,n=Gh(a);function a(c,u,d,h,l,g,p,b,w){var x,j,J;Q(this,a),(function(ve,Fe){if(Fe.has(ve))throw new TypeError("Cannot initialize the same private elements twice on an object")})(j=S(x=n.call(this,u,w)),J=Gc),J.add(j),te(S(x),"publicKey",void 0),te(S(x),"fingerprint",void 0),te(S(x),"parentFingerprint",void 0),te(S(x),"mnemonic",void 0),te(S(x),"chainCode",void 0),te(S(x),"path",void 0),te(S(x),"index",void 0),te(S(x),"depth",void 0),Ro(c,po,"HDNodeWallet"),ur(S(x),{publicKey:u.compressedPublicKey});var we=bo(La(cn(x.publicKey)),0,4);return ur(S(x),{parentFingerprint:d,fingerprint:we,chainCode:h,path:l,index:g,depth:p}),ur(S(x),{mnemonic:b}),x}return E(a,[{key:"connect",value:function(c){return new a(po,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,c)}},{key:"encrypt",value:(e=_(ie.mark(function c(u,d){return ie.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,zh($h(this,Gc,Zh).call(this),u,{progressCallback:d});case 2:return h.abrupt("return",h.sent);case 3:case"end":return h.stop()}},c,this)})),function(c,u){return e.apply(this,arguments)})},{key:"encryptSync",value:function(c){return jh($h(this,Gc,Zh).call(this),c)}},{key:"extendedKey",get:function(){return jt(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),Vc(Sr(["0x0488ADE4",Ys(this.depth,1),this.parentFingerprint,Ys(this.index,4),this.chainCode,Sr(["0x00",this.privateKey])]))}},{key:"hasPath",value:function(){return this.path!=null}},{key:"neuter",value:function(){return new Jh(po,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}},{key:"deriveChild",value:function(c){var u=un(c,"index");_e(u<=4294967295,"invalid index","index",u);var d=this.path;d&&(d+="/"+(u&~Ko),u&Ko&&(d+="'"));var h=Hh(u,this.chainCode,this.publicKey,this.privateKey),l=h.IR,g=h.IL,p=new Rn(Yn((Yi(g)+BigInt(this.privateKey))%$1,32));return new a(po,p,this.fingerprint,mt(l),d,u,this.depth+1,this.mnemonic,this.provider)}},{key:"derivePath",value:function(c){return Kh(this,c)}}],[{key:"fromExtendedKey",value:function(c){var u=Bn((function(w){for(var x=C1,j=0;j<w.length;j++)x*=Rc,x+=B1(w[j]);return x})(c));_e(u.length===82||Vc(u.slice(0,78))===c,"invalid extended key","extendedKey","[ REDACTED ]");var d=u[4],h=mt(u.slice(5,9)),l=parseInt(mt(u.slice(9,13)).substring(2),16),g=mt(u.slice(13,45)),p=u.slice(45,78);switch(mt(u.slice(0,4))){case"0x0488b21e":case"0x043587cf":var b=mt(p);return new Jh(po,wi(b),b,h,g,null,l,d,null);case"0x0488ade4":case"0x04358394 ":if(p[0]!==0)break;return new a(po,new Rn(p.slice(1)),h,g,null,l,d,null,null)}_e(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}},{key:"createRandom",value:function(c,u,d){c==null&&(c=""),u==null&&(u=zc),d==null&&(d=Oa.wordlist());var h=Ia.fromEntropy(Wo(16),c,d);return qs(a,a,Xs).call(a,h.computeSeed(),h).derivePath(u)}},{key:"fromMnemonic",value:function(c,u){return u||(u=zc),qs(a,a,Xs).call(a,c.computeSeed(),c).derivePath(u)}},{key:"fromPhrase",value:function(c,u,d,h){u==null&&(u=""),d==null&&(d=zc),h==null&&(h=Oa.wordlist());var l=Ia.fromPhrase(c,u,h);return qs(a,a,Xs).call(a,l.computeSeed(),l).derivePath(d)}},{key:"fromSeed",value:function(c){return qs(a,a,Xs).call(a,c,null)}}]),a})(hh);function Zh(){var r={address:this.address,privateKey:this.privateKey},e=this.mnemonic;return this.path&&e&&e.wordlist.locale==="en"&&e.password===""&&(r.mnemonic={path:this.path,locale:"en",entropy:e.entropy}),r}function Xs(r,e){_e(ff(r),"invalid seed","seed","[REDACTED]");var n=At(r,"seed");_e(n.length>=16&&n.length<=64,"invalid seed","seed","[REDACTED]");var a=At(To("sha512",G1,n)),c=new Rn(mt(a.slice(0,32)));return new ha(po,c,"0x00000000",mt(a.slice(32)),"m",0,0,e,null)}var Jh=(function(r){K(n,r);var e=Gh(n);function n(a,c,u,d,h,l,g,p,b){var w;Q(this,n),te(S(w=e.call(this,c,b)),"publicKey",void 0),te(S(w),"fingerprint",void 0),te(S(w),"parentFingerprint",void 0),te(S(w),"chainCode",void 0),te(S(w),"path",void 0),te(S(w),"index",void 0),te(S(w),"depth",void 0),Ro(a,po,"HDNodeVoidWallet"),ur(S(w),{publicKey:u});var x=bo(La(cn(u)),0,4);return ur(S(w),{publicKey:u,fingerprint:x,parentFingerprint:d,chainCode:h,path:l,index:g,depth:p}),w}return E(n,[{key:"connect",value:function(a){return new n(po,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,a)}},{key:"extendedKey",get:function(){return jt(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),Vc(Sr(["0x0488B21E",Ys(this.depth,1),this.parentFingerprint,Ys(this.index,4),this.chainCode,this.publicKey]))}},{key:"hasPath",value:function(){return this.path!=null}},{key:"deriveChild",value:function(a){var c=un(a,"index");_e(c<=4294967295,"invalid index","index",c);var u=this.path;u&&(u+="/"+(c&~Ko),c&Ko&&(u+="'"));var d=Hh(c,this.chainCode,this.publicKey,null),h=d.IR,l=d.IL,g=Rn.addPoints(l,this.publicKey,!0),p=wi(g);return new n(po,p,g,this.fingerprint,mt(h),u,c,this.depth+1,this.provider)}},{key:"derivePath",value:function(a){return Kh(this,a)}}]),n})(y1);function qh(r){try{if(JSON.parse(r).encseed)return!0}catch{}return!1}function Yh(r,e){var n=JSON.parse(r),a=Fi(e),c=Jr($r(n,"ethaddr:string!")),u=Fh($r(n,"encseed:string!"));_e(u&&u.length%16==0,"invalid encseed","json",r);for(var d=At(jo(a,a,2e3,32,"sha256")).slice(0,16),h=u.slice(0,16),l=u.slice(16),g=(function(w){if(w.length<16)throw new TypeError("PKCS#7 invalid length");const x=w[w.length-1];if(x>16)throw new TypeError("PKCS#7 padding byte out of range");const j=w.length-x;for(let J=0;J<x;J++)if(w[j+J]!==x)throw new TypeError("PKCS#7 invalid padding byte");return new Uint8Array(w.subarray(0,j))})(At(new Uc(d,h).decrypt(l))),p="",b=0;b<g.length;b++)p+=String.fromCharCode(g[b]);return{address:c,privateKey:Sn(p)}}function Xh(r,e,n){return(function(a,c){if(a!==c)throw new TypeError("Private static access of wrong provenance")})(r,e),n}function Qh(r){return new Promise(function(e){setTimeout(function(){e()},r)})}var ep=(function(r){K(d,r);var e,n,a,c,u=(a=d,c=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})(),function(){var h,l=ce(a);if(c){var g=ce(this).constructor;h=Reflect.construct(l,arguments,g)}else h=l.apply(this,arguments);return Y(this,h)});function d(h,l){Q(this,d),typeof h!="string"||h.startsWith("0x")||(h="0x"+h);var g=typeof h=="string"?new Rn(h):h;return u.call(this,g,l)}return E(d,[{key:"connect",value:function(h){return new d(this.signingKey,h)}},{key:"encrypt",value:(n=_(ie.mark(function h(l,g){var p;return ie.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p={address:this.address,privateKey:this.privateKey},b.next=3,zh(p,l,{progressCallback:g});case 3:return b.abrupt("return",b.sent);case 4:case"end":return b.stop()}},h,this)})),function(h,l){return n.apply(this,arguments)})},{key:"encryptSync",value:function(h){return jh({address:this.address,privateKey:this.privateKey},h)}}],[{key:"fromEncryptedJson",value:(e=_(ie.mark(function h(l,g,p){var b;return ie.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(b=null,!_h(l)){w.next=7;break}return w.next=4,V1(l,g,p);case 4:b=w.sent,w.next=17;break;case 7:if(!qh(l)){w.next=17;break}if(!p){w.next=12;break}return p(0),w.next=12,Qh(0);case 12:if(b=Yh(l,g),!p){w.next=17;break}return p(1),w.next=17,Qh(0);case 17:return w.abrupt("return",Xh(d,d,tp).call(d,b));case 18:case"end":return w.stop()}},h)})),function(h,l,g){return e.apply(this,arguments)})},{key:"fromEncryptedJsonSync",value:function(h,l){var g=null;return _h(h)?g=(function(p,b){var w=JSON.parse(p),x=Fi(b),j=Nh(w);return j.name==="pbkdf2"?Js(w,jo(x,j.salt,j.count,j.dkLen,j.algorithm)):(jt(j.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:j}),Js(w,Ha(x,j.salt,j.N,j.r,j.p,j.dkLen)))})(h,l):qh(h)?g=Yh(h,l):_e(!1,"invalid JSON wallet","json","[ REDACTED ]"),Xh(d,d,tp).call(d,g)}},{key:"createRandom",value:function(h){var l=ha.createRandom();return h?l.connect(h):l}},{key:"fromPhrase",value:function(h,l){var g=ha.fromPhrase(h);return l?g.connect(l):g}}]),d})(hh);function tp(r){if(_e(r,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in r&&r.mnemonic&&r.mnemonic.locale==="en"){var e=Ia.fromEntropy(r.mnemonic.entropy),n=ha.fromMnemonic(e,r.mnemonic.path);if(n.address===r.address&&n.privateKey===r.privateKey)return n;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}var a=new ep(r.privateKey);return _e(a.address===r.address,"address/privateKey mismatch","json","[ REDACTED ]"),a}var K1={en:Oa.wordlist()};function pa(r){var e=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})();return function(){var n,a=ce(r);if(e){var c=ce(this).constructor;n=Reflect.construct(a,arguments,c)}else n=a.apply(this,arguments);return Y(this,n)}}function rp(r,e){op(r,e),e.add(r)}function np(r,e,n){op(r,e),e.set(r,n)}function op(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ri(r,e,n){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return n}function dn(r){var e=new Set;return r.forEach(function(n){return e.add(n)}),Object.freeze(e)}var ap="constant external internal payable private public pure view",Z1=dn(ap.split(" ")),ip="constructor error event fallback function receive struct",sp=dn(ip.split(" ")),up="calldata memory storage payable indexed",J1=dn(up.split(" ")),q1=dn([ip,up,"tuple returns",ap].join(" ").split(" ")),Y1={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},X1=new RegExp("^(\\s*)"),Q1=new RegExp("^([0-9]+)"),e2=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),cp=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),lp=new RegExp("^(trcToken|address|bool|bytes([0-9]*)|string|u?int([0-9]*))$"),nn=new WeakMap,Co=new WeakMap,$c=new WeakSet,go=(function(){function r(e){Q(this,r),rp(this,$c),np(this,nn,{writable:!0,value:void 0}),np(this,Co,{writable:!0,value:void 0}),dt(this,nn,0),dt(this,Co,e.slice())}return E(r,[{key:"offset",get:function(){return Qe(this,nn)}},{key:"length",get:function(){return Qe(this,Co).length-Qe(this,nn)}},{key:"clone",value:function(){return new r(Qe(this,Co))}},{key:"reset",value:function(){dt(this,nn,0)}},{key:"popKeyword",value:function(e){var n=this.peek();if(n.type!=="KEYWORD"||!e.has(n.text))throw new Error("expected keyword ".concat(n.text));return this.pop().text}},{key:"popType",value:function(e){if(this.peek().type!==e)throw new Error("expected ".concat(e,"; got ").concat(JSON.stringify(this.peek())));return this.pop().text}},{key:"popParen",value:function(){var e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");var n=Ri(this,$c,fp).call(this,Qe(this,nn)+1,e.match+1);return dt(this,nn,e.match+1),n}},{key:"popParams",value:function(){var e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");for(var n=[];Qe(this,nn)<e.match-1;){var a=this.peek().linkNext;n.push(Ri(this,$c,fp).call(this,Qe(this,nn)+1,a)),dt(this,nn,a)}return dt(this,nn,e.match+1),n}},{key:"peek",value:function(){if(Qe(this,nn)>=Qe(this,Co).length)throw new Error("out-of-bounds");return Qe(this,Co)[Qe(this,nn)]}},{key:"peekKeyword",value:function(e){var n=this.peekType("KEYWORD");return n!=null&&e.has(n)?n:null}},{key:"peekType",value:function(e){if(this.length===0)return null;var n=this.peek();return n.type===e?n.text:null}},{key:"pop",value:function(){var e,n=this.peek();return dt(this,nn,(e=Qe(this,nn),++e)),n}},{key:"toString",value:function(){for(var e=[],n=Qe(this,nn);n<Qe(this,Co).length;n++){var a=Qe(this,Co)[n];e.push("".concat(a.type,":").concat(a.text))}return"<TokenString ".concat(e.join(" "),">")}}]),r})();function fp(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return new go(Qe(this,Co).slice(r,e).map(function(n){return Object.freeze(Object.assign({},n,{match:n.match-r,linkBack:n.linkBack-r,linkNext:n.linkNext-r}))}))}function Zo(r){for(var e=[],n=function(w){var x=u<r.length?JSON.stringify(r[u]):"$EOI";throw new Error("invalid token ".concat(x," at ").concat(u,": ").concat(w))},a=[],c=[],u=0;u<r.length;){var d=r.substring(u),h=d.match(X1);h&&(u+=h[1].length,d=r.substring(u));var l={depth:a.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:u,value:-1};e.push(l);var g=Y1[d[0]]||"";if(g){if(l.type=g,l.text=d[0],u++,g==="OPEN_PAREN")a.push(e.length-1),c.push(e.length-1);else if(g=="CLOSE_PAREN")a.length===0&&n("no matching open bracket"),l.match=a.pop(),e[l.match].match=e.length-1,l.depth--,l.linkBack=c.pop(),e[l.linkBack].linkNext=e.length-1;else if(g==="COMMA")l.linkBack=c.pop(),e[l.linkBack].linkNext=e.length-1,c.push(e.length-1);else if(g==="OPEN_BRACKET")l.type="BRACKET";else if(g==="CLOSE_BRACKET"){var p=e.pop().text;if(e.length>0&&e[e.length-1].type==="NUMBER"){var b=e.pop().text;p=b+p,e[e.length-1].value=un(b)}if(e.length===0||e[e.length-1].type!=="BRACKET")throw new Error("missing opening bracket");e[e.length-1].text+=p}}else if(h=d.match(e2)){if(l.text=h[1],u+=l.text.length,q1.has(l.text)){l.type="KEYWORD";continue}if(l.text.match(lp)){l.type="TYPE";continue}l.type="ID"}else{if(!(h=d.match(Q1)))throw new Error("unexpected token ".concat(JSON.stringify(d[0])," at position ").concat(u));l.text=h[1],l.type="NUMBER",u+=l.text.length}}return new go(e.map(function(w){return Object.freeze(w)}))}function dp(r,e){var n=[];for(var a in e.keys())r.has(a)&&n.push(a);if(n.length>1)throw new Error("conflicting types: ".concat(n.join(", ")))}function Qs(r,e){if(e.peekKeyword(sp)){var n=e.pop().text;if(n!==r)throw new Error("expected ".concat(r,", got ").concat(n))}return e.popType("ID")}function Eo(r,e){for(var n=new Set;;){var a=r.peekType("KEYWORD");if(a==null||e&&!e.has(a))break;if(r.pop(),n.has(a))throw new Error("duplicate keywords: ".concat(JSON.stringify(a)));n.add(a)}return Object.freeze(n)}function hp(r){var e=Eo(r,Z1);return dp(e,dn("constant payable nonpayable".split(" "))),dp(e,dn("pure view payable nonpayable".split(" "))),e.has("view")?"view":e.has("pure")?"pure":e.has("payable")?"payable":e.has("nonpayable")?"nonpayable":e.has("constant")?"view":"nonpayable"}function Mo(r,e){return r.popParams().map(function(n){return zn.from(n,e)})}function pp(r){if(r.peekType("AT")){if(r.pop(),r.peekType("NUMBER"))return Fr(r.pop().text);throw new Error("invalid gas")}return null}function ga(r){if(r.length)throw new Error("unexpected tokens: ".concat(r.toString()))}var t2=new RegExp(/^(.*)\[([0-9]*)\]$/);function gp(r){var e=r.match(lp);if(_e(e,"invalid type","type",r),r==="uint")return"uint256";if(r==="int")return"int256";if(e[2]){var n=parseInt(e[2]);_e(n!==0&&n<=32,"invalid bytes length","type",r)}else if(e[3]){var a=parseInt(e[3]);_e(a!==0&&a<=256&&a%8==0,"invalid numeric width","type",r)}return r}var jr={},bn=Symbol.for("_ethers_internal"),yp="_ParamTypeInternal",mp="_ErrorInternal",vp="_EventInternal",bp="_ConstructorInternal",Tp="_FallbackInternal",Ap="_FunctionInternal",wp="_StructInternal",eu=new WeakSet,zn=(function(){function r(n,a,c,u,d,h,l,g){if(Q(this,r),rp(this,eu),te(this,"name",void 0),te(this,"type",void 0),te(this,"baseType",void 0),te(this,"indexed",void 0),te(this,"components",void 0),te(this,"arrayLength",void 0),te(this,"arrayChildren",void 0),Ro(n,jr,"ParamType"),Object.defineProperty(this,bn,{value:yp}),h&&(h=Object.freeze(h.slice())),u==="array"){if(l==null||g==null)throw new Error("")}else if(l!=null||g!=null)throw new Error("");if(u==="tuple")h==null&&(h=Object.freeze([]));else if(h!=null)throw new Error("");ur(this,{name:a,type:c,baseType:u,indexed:d,components:h,arrayLength:l,arrayChildren:g})}var e;return E(r,[{key:"format",value:function(n){if(n==null&&(n="sighash"),n==="json"){var a={type:this.baseType==="tuple"?"tuple":this.type,name:this.name||void 0};return typeof this.indexed=="boolean"&&(a.indexed=this.indexed),this.isTuple()&&(a.components=this.components.map(function(u){return JSON.parse(u.format(n))})),JSON.stringify(a)}var c="";return this.isArray()?(c+=this.arrayChildren.format(n),c+="[".concat(this.arrayLength<0?"":String(this.arrayLength),"]")):this.isTuple()?(n!=="sighash"&&(c+=this.type),c+="("+this.components.map(function(u){return u.format(n)}).join(n==="full"?", ":",")+")"):c+=this.type,n!=="sighash"&&(this.indexed===!0&&(c+=" indexed"),n==="full"&&this.name&&(c+=" "+this.name)),c}},{key:"isArray",value:function(){return this.baseType==="array"}},{key:"isTuple",value:function(){return this.baseType==="tuple"}},{key:"isIndexable",value:function(){return this.indexed!=null}},{key:"walk",value:function(n,a){if(this.isArray()){if(!Array.isArray(n))throw new Error("invalid array value");if(this.arrayLength!==-1&&n.length!==this.arrayLength)throw new Error("array is wrong length");var c=this;return n.map(function(d){return c.arrayChildren.walk(d,a)})}if(this.isTuple()){if(!Array.isArray(n))throw new Error("invalid tuple value");if(n.length!==this.components.length)throw new Error("array is wrong length");var u=this;return n.map(function(d,h){return u.components[h].walk(d,a)})}return a(this.type,n)}},{key:"walkAsync",value:(e=_(he().mark(function n(a,c){var u,d;return he().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(u=[],d=[a],Ri(this,eu,Hc).call(this,u,a,c,function(l){d[0]=l}),!u.length){h.next=6;break}return h.next=6,Promise.all(u);case 6:return h.abrupt("return",d[0]);case 7:case"end":return h.stop()}},n,this)})),function(n,a){return e.apply(this,arguments)})}],[{key:"from",value:function(n,a){if(r.isParamType(n))return n;if(typeof n=="string")return r.from(Zo(n),a);if(n instanceof go){var c="",u="",d=null;Eo(n,dn(["tuple"])).has("tuple")||n.peekType("OPEN_PAREN")?(u="tuple",d=n.popParams().map(function(Ee){return r.from(Ee)}),c="tuple(".concat(d.map(function(Ee){return Ee.format()}).join(","),")")):u=c=gp(n.popType("TYPE"));for(var h=null,l=null;n.length&&n.peekType("BRACKET");){var g=n.pop();h=new r(jr,"",c,u,null,d,l,h),l=g.value,c+=g.text,u="array",d=null}var p=null;if(Eo(n,J1).has("indexed")){if(!a)throw new Error("");p=!0}var b=n.peekType("ID")?n.pop().text:"";if(n.length)throw new Error("leftover tokens");return new r(jr,b,c,u,p,d,l,h)}var w=n.name;_e(!w||typeof w=="string"&&w.match(cp),"invalid name","obj.name",w);var x=n.indexed;x!=null&&(_e(a,"parameter cannot be indexed","obj.indexed",n.indexed),x=!!x);var j=n.type,J=j.match(t2);if(J){var we=parseInt(J[2]||"-1"),ve=r.from({type:J[1],components:n.components});return new r(jr,w||"",j,"array",x,null,we,ve)}if(j==="tuple"||j.startsWith("tuple(")||j.startsWith("(")){var Fe=n.components!=null?n.components.map(function(Ee){return r.from(Ee)}):null;return new r(jr,w||"",j,"tuple",x,Fe,null,null)}return j=gp(n.type),new r(jr,w||"",j,j,x,null,null,null)}},{key:"isParamType",value:function(n){return n&&n[bn]===yp}}]),r})();function Hc(r,e,n,a){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");var c=this.arrayChildren,u=e.slice();return u.forEach(function(g,p){Ri(c,eu,Hc).call(c,r,g,n,function(b){u[p]=b})}),void a(u)}if(this.isTuple()){var d,h=this.components;if(Array.isArray(e))d=e.slice();else{if(e==null||ee(e)!=="object")throw new Error("invalid tuple value");d=h.map(function(g){if(!g.name)throw new Error("cannot use object value with unnamed components");if(!(g.name in e))throw new Error("missing value for component ".concat(g.name));return e[g.name]})}if(d.length!==this.components.length)throw new Error("array is wrong length");return d.forEach(function(g,p){var b;Ri(b=h[p],eu,Hc).call(b,r,g,n,function(w){d[p]=w})}),void a(d)}var l=n(this.type,e);l.then?r.push(_(he().mark(function g(){return he().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.t0=a,p.next=3,l;case 3:p.t1=p.sent,(0,p.t0)(p.t1);case 5:case"end":return p.stop()}},g)}))()):a(l)}var tu=(function(){function r(e,n,a){Q(this,r),te(this,"type",void 0),te(this,"inputs",void 0),Ro(e,jr,"Fragment"),ur(this,{type:n,inputs:a=Object.freeze(a.slice())})}return E(r,null,[{key:"from",value:function(e){if(typeof e=="string"){try{r.from(JSON.parse(e))}catch{}return r.from(Zo(e))}if(e instanceof go)switch(e.peekKeyword(sp)){case"constructor":return ou.from(e);case"error":return Oo.from(e);case"event":return nu.from(e);case"fallback":case"receive":return Pp.from(e);case"function":return au.from(e);case"struct":return Kc.from(e)}else if(ee(e)==="object"){switch(e.type){case"constructor":return ou.from(e);case"error":return Oo.from(e);case"event":return nu.from(e);case"fallback":case"receive":return Pp.from(e);case"function":return au.from(e);case"struct":return Kc.from(e)}jt(!1,"unsupported type: ".concat(e.type),"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}_e(!1,"unsupported frgament object","obj",e)}},{key:"isConstructor",value:function(e){return ou.isFragment(e)}},{key:"isError",value:function(e){return Oo.isFragment(e)}},{key:"isEvent",value:function(e){return nu.isFragment(e)}},{key:"isFunction",value:function(e){return au.isFragment(e)}},{key:"isStruct",value:function(e){return Kc.isFragment(e)}}]),r})(),ru=(function(r){K(n,r);var e=pa(n);function n(a,c,u,d){var h;return Q(this,n),te(S(h=e.call(this,a,c,d)),"name",void 0),_e(typeof u=="string"&&u.match(cp),"invalid identifier","name",u),d=Object.freeze(d.slice()),ur(S(h),{name:u}),h}return E(n)})(tu);function _i(r,e){return"("+e.map(function(n){return n.format(r)}).join(r==="full"?", ":",")+")"}var Oo=(function(r){K(n,r);var e=pa(n);function n(a,c,u){var d;return Q(this,n),d=e.call(this,a,"error",c,u),Object.defineProperty(S(d),bn,{value:mp}),d}return E(n,[{key:"selector",get:function(){return Sn(this.format("sighash")).substring(0,10)}},{key:"format",value:function(a){if(a==null&&(a="sighash"),a==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(function(u){return JSON.parse(u.format(a))})});var c=[];return a!=="sighash"&&c.push("error"),c.push(this.name+_i(a,this.inputs)),c.join(" ")}}],[{key:"from",value:function(a){if(n.isFragment(a))return a;if(typeof a=="string")return n.from(Zo(a));if(a instanceof go){var c=Qs("error",a),u=Mo(a);return ga(a),new n(jr,c,u)}return new n(jr,a.name,a.inputs?a.inputs.map(zn.from):[])}},{key:"isFragment",value:function(a){return a&&a[bn]===mp}}]),n})(ru),nu=(function(r){K(n,r);var e=pa(n);function n(a,c,u,d){var h;return Q(this,n),te(S(h=e.call(this,a,"event",c,u)),"anonymous",void 0),Object.defineProperty(S(h),bn,{value:vp}),ur(S(h),{anonymous:d}),h}return E(n,[{key:"topicHash",get:function(){return Sn(this.format("sighash"))}},{key:"format",value:function(a){if(a==null&&(a="sighash"),a==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(function(u){return JSON.parse(u.format(a))})});var c=[];return a!=="sighash"&&c.push("event"),c.push(this.name+_i(a,this.inputs)),a!=="sighash"&&this.anonymous&&c.push("anonymous"),c.join(" ")}}],[{key:"getTopicHash",value:function(a,c){return c=(c||[]).map(function(u){return zn.from(u)}),new n(jr,a,c,!1).topicHash}},{key:"from",value:function(a){if(n.isFragment(a))return a;if(typeof a=="string")return n.from(Zo(a));if(a instanceof go){var c=Qs("event",a),u=Mo(a,!0),d=!!Eo(a,dn(["anonymous"])).has("anonymous");return ga(a),new n(jr,c,u,d)}return new n(jr,a.name,a.inputs?a.inputs.map(function(h){return zn.from(h,!0)}):[],!!a.anonymous)}},{key:"isFragment",value:function(a){return a&&a[bn]===vp}}]),n})(ru),ou=(function(r){K(n,r);var e=pa(n);function n(a,c,u,d,h){var l;return Q(this,n),te(S(l=e.call(this,a,c,u)),"payable",void 0),te(S(l),"gas",void 0),Object.defineProperty(S(l),bn,{value:bp}),ur(S(l),{payable:d,gas:h}),l}return E(n,[{key:"format",value:function(a){if(jt(a!=null&&a!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),a==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(function(u){return JSON.parse(u.format(a))})});var c=["constructor".concat(_i(a,this.inputs))];return c.push(this.payable?"payable":"nonpayable"),this.gas!=null&&c.push("@".concat(this.gas.toString())),c.join(" ")}}],[{key:"from",value:function(a){if(n.isFragment(a))return a;if(typeof a=="string")return n.from(Zo(a));if(a instanceof go){Eo(a,dn(["constructor"]));var c=Mo(a),u=!!Eo(a,dn(["payable"])).has("payable"),d=pp(a);return ga(a),new n(jr,"constructor",c,u,d)}return new n(jr,"constructor",a.inputs?a.inputs.map(zn.from):[],!!a.payable,a.gas!=null?a.gas:null)}},{key:"isFragment",value:function(a){return a&&a[bn]===bp}}]),n})(tu),Pp=(function(r){K(n,r);var e=pa(n);function n(a,c,u){var d;return Q(this,n),te(S(d=e.call(this,a,"fallback",c)),"payable",void 0),Object.defineProperty(S(d),bn,{value:Tp}),ur(S(d),{payable:u}),d}return E(n,[{key:"format",value:function(a){var c=this.inputs.length===0?"receive":"fallback";if(a==="json"){var u=this.payable?"payable":"nonpayable";return JSON.stringify({type:c,stateMutability:u})}return"".concat(c,"()").concat(this.payable?" payable":"")}}],[{key:"from",value:function(a){if(n.isFragment(a))return a;if(typeof a=="string")return n.from(Zo(a));if(a instanceof go){var c=a.toString();if(_e(a.peekKeyword(dn(["fallback","receive"])),"type must be fallback or receive","obj",c),a.popKeyword(dn(["fallback","receive"]))==="receive"){var u=Mo(a);return _e(u.length===0,"receive cannot have arguments","obj.inputs",u),Eo(a,dn(["payable"])),ga(a),new n(jr,[],!0)}var d=Mo(a);d.length?_e(d.length===1&&d[0].type==="bytes","invalid fallback inputs","obj.inputs",d.map(function(b){return b.format("minimal")}).join(", ")):d=[zn.from("bytes")];var h=hp(a);if(_e(h==="nonpayable"||h==="payable","fallback cannot be constants","obj.stateMutability",h),Eo(a,dn(["returns"])).has("returns")){var l=Mo(a);_e(l.length===1&&l[0].type==="bytes","invalid fallback outputs","obj.outputs",l.map(function(b){return b.format("minimal")}).join(", "))}return ga(a),new n(jr,d,h==="payable")}if(a.type==="receive")return new n(jr,[],!0);if(a.type==="fallback"){var g=[zn.from("bytes")],p=a.stateMutability==="payable";return new n(jr,g,p)}_e(!1,"invalid fallback description","obj",a)}},{key:"isFragment",value:function(a){return a&&a[bn]===Tp}}]),n})(tu),au=(function(r){K(n,r);var e=pa(n);function n(a,c,u,d,h,l){var g;Q(this,n),te(S(g=e.call(this,a,"function",c,d)),"constant",void 0),te(S(g),"outputs",void 0),te(S(g),"stateMutability",void 0),te(S(g),"payable",void 0),te(S(g),"gas",void 0),Object.defineProperty(S(g),bn,{value:Ap}),h=Object.freeze(h.slice());var p=u==="view"||u==="pure",b=u==="payable";return ur(S(g),{constant:p,gas:l,outputs:h,payable:b,stateMutability:u}),g}return E(n,[{key:"selector",get:function(){return Sn(this.format("sighash")).substring(0,10)}},{key:"format",value:function(a){if(a==null&&(a="sighash"),a==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(function(u){return JSON.parse(u.format(a))}),outputs:this.outputs.map(function(u){return JSON.parse(u.format(a))})});var c=[];return a!=="sighash"&&c.push("function"),c.push(this.name+_i(a,this.inputs)),a!=="sighash"&&(this.stateMutability!=="nonpayable"&&c.push(this.stateMutability),this.outputs&&this.outputs.length&&(c.push("returns"),c.push(_i(a,this.outputs))),this.gas!=null&&c.push("@".concat(this.gas.toString()))),c.join(" ")}}],[{key:"getSelector",value:function(a,c){return c=(c||[]).map(function(u){return zn.from(u)}),new n(jr,a,"view",c,[],null).selector}},{key:"from",value:function(a){if(n.isFragment(a))return a;if(typeof a=="string")return n.from(Zo(a));if(a instanceof go){var c=Qs("function",a),u=Mo(a),d=hp(a),h=[];Eo(a,dn(["returns"])).has("returns")&&(h=Mo(a));var l=pp(a);return ga(a),new n(jr,c,d,u,h,l)}return new n(jr,a.name,a.stateMutability,a.inputs?a.inputs.map(zn.from):[],a.outputs?a.outputs.map(zn.from):[],a.gas!=null?a.gas:null)}},{key:"isFragment",value:function(a){return a&&a[bn]===Ap}}]),n})(ru),Kc=(function(r){K(n,r);var e=pa(n);function n(a,c,u){var d;return Q(this,n),d=e.call(this,a,"struct",c,u),Object.defineProperty(S(d),bn,{value:wp}),d}return E(n,[{key:"format",value:function(){throw new Error("@TODO")}}],[{key:"from",value:function(a){if(typeof a=="string")return n.from(Zo(a));if(a instanceof go){var c=Qs("struct",a),u=Mo(a);return ga(a),new n(jr,c,u)}return new n(jr,a.name,a.inputs?a.inputs.map(zn.from):[])}},{key:"isFragment",value:function(a){return a&&a[bn]===wp}}]),n})(ru);function ya(r,e){var n=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!n){if(Array.isArray(r)||(n=(function(l,g){if(l){if(typeof l=="string")return Wp(l,g);var p=Object.prototype.toString.call(l).slice(8,-1);return p==="Object"&&l.constructor&&(p=l.constructor.name),p==="Map"||p==="Set"?Array.from(l):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?Wp(l,g):void 0}})(r))||e){n&&(r=n);var a=0,c=function(){};return{s:c,n:function(){return a>=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(l){throw l},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u,d=!0,h=!1;return{s:function(){n=n.call(r)},n:function(){var l=n.next();return d=l.done,l},e:function(l){h=!0,u=l},f:function(){try{d||n.return==null||n.return()}finally{if(h)throw u}}}}function Wp(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=r[n];return a}function Bp(r,e){Cp(r,e),e.add(r)}function iu(r,e,n){Cp(r,e),e.set(r,n)}function Cp(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function su(r,e,n){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return n}var r2=E(function r(e,n,a){Q(this,r),te(this,"fragment",void 0),te(this,"name",void 0),te(this,"signature",void 0),te(this,"topic",void 0),te(this,"args",void 0);var c=e.name,u=e.format();ur(this,{fragment:e,name:c,signature:u,topic:n,args:a})}),n2=E(function r(e,n,a,c){Q(this,r),te(this,"fragment",void 0),te(this,"name",void 0),te(this,"args",void 0),te(this,"signature",void 0),te(this,"selector",void 0),te(this,"value",void 0);var u=e.name,d=e.format();ur(this,{fragment:e,name:u,args:a,signature:d,selector:n,value:c})}),o2=E(function r(e,n,a){Q(this,r),te(this,"fragment",void 0),te(this,"name",void 0),te(this,"args",void 0),te(this,"signature",void 0),te(this,"selector",void 0);var c=e.name,u=e.format();ur(this,{fragment:e,name:c,args:a,signature:u,selector:n})}),Ep=(function(){function r(e){Q(this,r),te(this,"hash",void 0),te(this,"_isIndexed",void 0),ur(this,{hash:e,_isIndexed:!0})}return E(r,null,[{key:"isIndexed",value:function(e){return!(!e||!e._isIndexed)}}]),r})(),Mp={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},Op={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:function(r){return"reverted with reason string ".concat(JSON.stringify(r))}},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:function(r){var e="unknown panic code";return r>=0&&r<=255&&Mp[r.toString()]&&(e=Mp[r.toString()]),"reverted with panic code 0x".concat(r.toString(16)," (").concat(e,")")}}},Jo=new WeakMap,qo=new WeakMap,Yo=new WeakMap,Tn=new WeakMap,Zc=new WeakSet,Jc=new WeakSet,a2=(function(){function r(e){var n=this;Q(this,r),Bp(this,Jc),Bp(this,Zc),te(this,"fragments",void 0),te(this,"deploy",void 0),te(this,"fallback",void 0),te(this,"receive",void 0),iu(this,Jo,{writable:!0,value:void 0}),iu(this,qo,{writable:!0,value:void 0}),iu(this,Yo,{writable:!0,value:void 0}),iu(this,Tn,{writable:!0,value:void 0});var a;a=typeof e=="string"?JSON.parse(e):e,dt(this,Yo,new Map),dt(this,Jo,new Map),dt(this,qo,new Map);var c,u=[],d=ya(a);try{for(d.s();!(c=d.n()).done;){var h=c.value;try{u.push(tu.from(h))}catch(p){console.log("EE",p)}}}catch(p){d.e(p)}finally{d.f()}ur(this,{fragments:Object.freeze(u)});var l=null,g=!1;dt(this,Tn,this.getAbiCoder()),this.fragments.forEach(function(p,b){var w;switch(p.type){case"constructor":return n.deploy?void console.log("duplicate definition - constructor"):void ur(n,{deploy:p});case"fallback":return void(p.inputs.length===0?g=!0:(_e(!l||p.payable!==l.payable,"conflicting fallback fragments","fragments[".concat(b,"]"),p),g=(l=p).payable));case"function":w=Qe(n,Yo);break;case"event":w=Qe(n,qo);break;case"error":w=Qe(n,Jo);break;default:return}var x=p.format();w.has(x)||w.set(x,p)}),this.deploy||ur(this,{deploy:ou.from("constructor()")}),ur(this,{fallback:l,receive:g})}return E(r,[{key:"format",value:function(e){var n=e?"minimal":"full",a=this.fragments.map(function(c){return c.format(n)});return a}},{key:"formatJson",value:function(){var e=this.fragments.map(function(n){return n.format("json")});return JSON.stringify(e.map(function(n){return JSON.parse(n)}))}},{key:"getAbiCoder",value:function(){return Ac.defaultAbiCoder()}},{key:"getFunctionName",value:function(e){var n=su(this,Zc,Ip).call(this,e,null,!1);return _e(n,"no matching function","key",e),n.name}},{key:"getFunction",value:function(e,n){return su(this,Zc,Ip).call(this,e,n||null,!0)}},{key:"forEachFunction",value:function(e){var n=Array.from(Qe(this,Yo).keys());n.sort(function(u,d){return u.localeCompare(d)});for(var a=0;a<n.length;a++){var c=n[a];e(Qe(this,Yo).get(c),a)}}},{key:"getEventName",value:function(e){var n=su(this,Jc,xp).call(this,e,null,!1);return _e(n,"no matching event","key",e),n.name}},{key:"getEvent",value:function(e,n){return su(this,Jc,xp).call(this,e,n||null,!0)}},{key:"forEachEvent",value:function(e){var n=Array.from(Qe(this,qo).keys());n.sort(function(u,d){return u.localeCompare(d)});for(var a=0;a<n.length;a++){var c=n[a];e(Qe(this,qo).get(c),a)}}},{key:"getError",value:function(e,n){if(Jn(e)){var a=e.toLowerCase();if(Op[a])return Oo.from(Op[a].signature);var c,u=ya(Qe(this,Jo).values());try{for(u.s();!(c=u.n()).done;){var d=c.value;if(a===d.selector)return d}}catch(j){u.e(j)}finally{u.f()}return null}if(e.indexOf("(")===-1){var h,l=[],g=ya(Qe(this,Jo));try{for(g.s();!(h=g.n()).done;){var p=Xn(h.value,2),b=p[0],w=p[1];b.split("(")[0]===e&&l.push(w)}}catch(j){g.e(j)}finally{g.f()}if(l.length===0)return e==="Error"?Oo.from("error Error(string)"):e==="Panic"?Oo.from("error Panic(uint256)"):null;if(l.length>1){var x=l.map(function(j){return JSON.stringify(j.format())}).join(", ");_e(!1,"ambiguous error description (i.e. ".concat(x,")"),"name",e)}return l[0]}return(e=Oo.from(e).format())==="Error(string)"?Oo.from("error Error(string)"):e==="Panic(uint256)"?Oo.from("error Panic(uint256)"):Qe(this,Jo).get(e)||null}},{key:"forEachError",value:function(e){var n=Array.from(Qe(this,Jo).keys());n.sort(function(u,d){return u.localeCompare(d)});for(var a=0;a<n.length;a++){var c=n[a];e(Qe(this,Jo).get(c),a)}}},{key:"_decodeParams",value:function(e,n){return Qe(this,Tn).decode(e,n)}},{key:"_encodeParams",value:function(e,n){return Qe(this,Tn).encode(e,n)}},{key:"encodeDeploy",value:function(e){return this._encodeParams(this.deploy.inputs,e||[])}},{key:"decodeErrorResult",value:function(e,n){if(typeof e=="string"){var a=this.getError(e);_e(a,"unknown error","fragment",e),e=a}return _e(bo(n,0,4)===e.selector,"data signature does not match error ".concat(e.name,"."),"data",n),this._decodeParams(e.inputs,bo(n,4))}},{key:"encodeErrorResult",value:function(e,n){if(typeof e=="string"){var a=this.getError(e);_e(a,"unknown error","fragment",e),e=a}return Sr([e.selector,this._encodeParams(e.inputs,n||[])])}},{key:"decodeFunctionData",value:function(e,n){if(typeof e=="string"){var a=this.getFunction(e);_e(a,"unknown function","fragment",e),e=a}return _e(bo(n,0,4)===e.selector,"data signature does not match function ".concat(e.name,"."),"data",n),this._decodeParams(e.inputs,bo(n,4))}},{key:"encodeFunctionData",value:function(e,n){if(typeof e=="string"){var a=this.getFunction(e);_e(a,"unknown function","fragment",e),e=a}return Sr([e.selector,this._encodeParams(e.inputs,n||[])])}},{key:"decodeFunctionResult",value:function(e,n){if(typeof e=="string"){var a=this.getFunction(e);_e(a,"unknown function","fragment",e),e=a}var c="invalid length for result data",u=tn(n);if(u.length%32==0)try{return Qe(this,Tn).decode(e.outputs,u)}catch{c="could not decode result data"}jt(!1,c,"BAD_DATA",{value:mt(u),info:{method:e.name,signature:e.format()}})}},{key:"makeError",value:function(e,n){var a=At(e,"data"),c=Ac.getBuiltinCallException("call",n,a);if(c.message.startsWith("execution reverted (unknown custom error)")){var u=mt(a.slice(0,4)),d=this.getError(u);if(d)try{var h=Qe(this,Tn).decode(d.inputs,a.slice(4));c.revert={name:d.name,signature:d.format(),args:h},c.reason=c.revert.signature,c.message="execution reverted: ".concat(c.reason)}catch{c.message="execution reverted (coult not decode custom error)"}}var l=this.parseTransaction(n);return l&&(c.invocation={method:l.name,signature:l.signature,args:l.args}),c}},{key:"encodeFunctionResult",value:function(e,n){if(typeof e=="string"){var a=this.getFunction(e);_e(a,"unknown function","fragment",e),e=a}return mt(Qe(this,Tn).encode(e.outputs,n||[]))}},{key:"encodeFilterTopics",value:function(e,n){var a=this;if(typeof e=="string"){var c=this.getEvent(e);_e(c,"unknown event","eventFragment",e),e=c}jt(n.length<=e.inputs.length,"too many arguments for ".concat(e.format()),"UNEXPECTED_ARGUMENT",{count:n.length,expectedCount:e.inputs.length});var u=[];e.anonymous||u.push(e.topicHash);var d=function(h,l){return h.type==="string"?Sn(l):h.type==="bytes"?rr(mt(l)):(h.type==="bool"&&typeof l=="boolean"&&(l=l?"0x01":"0x00"),h.type.match(/^u?int/)&&(l=Yn(l)),h.type==="address"&&Qe(a,Tn).encode(["address"],[l]),_o(mt(l),32))};for(n.forEach(function(h,l){var g=e.inputs[l];g.indexed?h==null?u.push(null):g.baseType==="array"||g.baseType==="tuple"?_e(!1,"filtering with tuples or arrays not supported","contract."+g.name,h):Array.isArray(h)?u.push(h.map(function(p){return d(g,p)})):u.push(d(g,h)):_e(h==null,"cannot filter non-indexed parameters; must be null","contract."+g.name,h)});u.length&&u[u.length-1]===null;)u.pop();return u}},{key:"encodeEventLog",value:function(e,n){var a=this;if(typeof e=="string"){var c=this.getEvent(e);_e(c,"unknown event","eventFragment",e),e=c}var u=[],d=[],h=[];return e.anonymous||u.push(e.topicHash),_e(n.length===e.inputs.length,"event arguments/values mismatch","values",n),e.inputs.forEach(function(l,g){var p=n[g];if(l.indexed)if(l.type==="string")u.push(Sn(p));else if(l.type==="bytes")u.push(rr(p));else{if(l.baseType==="tuple"||l.baseType==="array")throw new Error("not implemented");u.push(Qe(a,Tn).encode([l.type],[p]))}else d.push(l),h.push(p)}),{data:Qe(this,Tn).encode(d,h),topics:u}}},{key:"decodeEventLog",value:function(e,n,a){if(typeof e=="string"){var c=this.getEvent(e);_e(c,"unknown event","eventFragment",e),e=c}if(a!=null&&!e.anonymous){var u=e.topicHash;_e(Jn(a[0],32)&&a[0].toLowerCase()===u,"fragment/topic mismatch","topics[0]",a[0]),a=a.slice(1)}var d=[],h=[],l=[];e.inputs.forEach(function(J,we){J.indexed?J.type==="string"||J.type==="bytes"||J.baseType==="tuple"||J.baseType==="array"?(d.push(zn.from({type:"bytes32",name:J.name})),l.push(!0)):(d.push(J),l.push(!1)):(h.push(J),l.push(!1))});var g=a!=null?Qe(this,Tn).decode(d,Sr(a)):null,p=Qe(this,Tn).decode(h,n,!0),b=[],w=[],x=0,j=0;return e.inputs.forEach(function(J,we){var ve=null;if(J.indexed)if(g==null)ve=new Ep(null);else if(l[we])ve=new Ep(g[j++]);else try{ve=g[j++]}catch(Fe){ve=Fe}else try{ve=p[x++]}catch(Fe){ve=Fe}b.push(ve),w.push(J.name||null)}),md.fromItems(b,w)}},{key:"parseTransaction",value:function(e){var n=At(e.data,"tx.data"),a=Fr(e.value!=null?e.value:0,"tx.value"),c=this.getFunction(mt(n.slice(0,4)));if(!c)return null;var u=Qe(this,Tn).decode(c.inputs,n.slice(4));return new n2(c,c.selector,u,a)}},{key:"parseCallResult",value:function(e){throw new Error("@TODO")}},{key:"parseLog",value:function(e){var n=this.getEvent(e.topics[0]);return!n||n.anonymous?null:new r2(n,n.topicHash,this.decodeEventLog(n,e.data,e.topics))}},{key:"parseError",value:function(e){var n=mt(e),a=this.getError(bo(n,0,4));if(!a)return null;var c=Qe(this,Tn).decode(a.inputs,bo(n,4));return new o2(a,a.selector,c)}}],[{key:"from",value:function(e){return e instanceof r?e:typeof e=="string"?new r(JSON.parse(e)):typeof e.format=="function"?new r(e.format("json")):new r(e)}}]),r})();function Ip(r,e,n){if(Jn(r)){var a,c=r.toLowerCase(),u=ya(Qe(this,Yo).values());try{for(u.s();!(a=u.n()).done;){var d=a.value;if(c===d.selector)return d}}catch(U){u.e(U)}finally{u.f()}return null}if(r.indexOf("(")===-1){var h,l=[],g=ya(Qe(this,Yo));try{for(g.s();!(h=g.n()).done;){var p=Xn(h.value,2),b=p[0],w=p[1];b.split("(")[0]===r&&l.push(w)}}catch(U){g.e(U)}finally{g.f()}if(e){var x=e.length>0?e[e.length-1]:null,j=e.length,J=!0;_n.isTyped(x)&&x.type==="overrides"&&(J=!1,j--);for(var we=l.length-1;we>=0;we--){var ve=l[we].inputs.length;ve===j||J&&ve===j-1||l.splice(we,1)}for(var Fe=l.length-1;Fe>=0;Fe--)for(var Ee=l[Fe].inputs,O=0;O<e.length;O++)if(_n.isTyped(e[O])){if(O>=Ee.length){if(e[O].type==="overrides")continue;l.splice(Fe,1);break}if(e[O].type!==Ee[O].baseType){l.splice(Fe,1);break}}}if(l.length===1&&e&&e.length!==l[0].inputs.length){var M=e[e.length-1];(M==null||Array.isArray(M)||ee(M)!=="object")&&l.splice(0,1)}if(l.length===0)return null;if(l.length>1&&n){var I=l.map(function(U){return JSON.stringify(U.format())}).join(", ");_e(!1,"ambiguous function description (i.e. matches ".concat(I,")"),"key",r)}return l[0]}return Qe(this,Yo).get(au.from(r).format())||null}function xp(r,e,n){if(Jn(r)){var a,c=r.toLowerCase(),u=ya(Qe(this,qo).values());try{for(u.s();!(a=u.n()).done;){var d=a.value;if(c===d.topicHash)return d}}catch(Fe){u.e(Fe)}finally{u.f()}return null}if(r.indexOf("(")===-1){var h,l=[],g=ya(Qe(this,qo));try{for(g.s();!(h=g.n()).done;){var p=Xn(h.value,2),b=p[0],w=p[1];b.split("(")[0]===r&&l.push(w)}}catch(Fe){g.e(Fe)}finally{g.f()}if(e){for(var x=l.length-1;x>=0;x--)l[x].inputs.length<e.length&&l.splice(x,1);for(var j=l.length-1;j>=0;j--)for(var J=l[j].inputs,we=0;we<e.length;we++)if(_n.isTyped(e[we])&&e[we].type!==J[we].baseType){l.splice(j,1);break}}if(l.length===0)return null;if(l.length>1&&n){var ve=l.map(function(Fe){return JSON.stringify(Fe.format())}).join(", ");_e(!1,"ambiguous event description (i.e. matches ".concat(ve,")"),"key",r)}return l[0]}return Qe(this,qo).get(nu.from(r).format())||null}var i2=function(r){return Cn.from(r)},kp=function(r){return Cn.from(r).serialized},Sp=function(r){return At(r)},s2={sighash:"sighash",minimal:"minimal",full:"full",json:"json"},u2=Ia.isValidMnemonic;function uu(r,e){var n=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!n){if(Array.isArray(r)||(n=(function(l,g){if(l){if(typeof l=="string")return Fp(l,g);var p=Object.prototype.toString.call(l).slice(8,-1);return p==="Object"&&l.constructor&&(p=l.constructor.name),p==="Map"||p==="Set"?Array.from(l):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?Fp(l,g):void 0}})(r))||e){n&&(r=n);var a=0,c=function(){};return{s:c,n:function(){return a>=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(l){throw l},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u,d=!0,h=!1;return{s:function(){n=n.call(r)},n:function(){var l=n.next();return d=l.done,l},e:function(l){h=!0,u=l},f:function(){try{d||n.return==null||n.return()}finally{if(h)throw u}}}}function Fp(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=r[n];return a}function qc(r,e,n){Rp(r,e),e.set(r,n)}function Rp(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}To.register(function(r,e,n){return To._(r,_r.dist.Buffer.from(e),_r.dist.Buffer.from(n))});var _p=new Uint8Array(32);_p.fill(0);var c2=BigInt(-1),Np=BigInt(0),Dp=BigInt(1),l2=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),f2=Yn(Dp,32),d2=Yn(Np,32),Up={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Yc=["name","version","chainId","verifyingContract","salt"];function Lp(r){return function(e){return _e(typeof e=="string","invalid domain value for ".concat(JSON.stringify(r)),"domain.".concat(r),e),e}}var h2={name:Lp("name"),version:Lp("version"),chainId:function(r){return Fr(r,"domain.chainId")},verifyingContract:function(r){try{return(e=r,vr.address.toHex(e)).toLowerCase()}catch{}var e;_e(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",r)},salt:function(r){var e=At(r,"domain.salt");return _e(e.length===32,'invalid domain value "salt"',"domain.salt",r),mt(e)}};function cu(r){var e=r.match(/^(u?)int(\d*)$/);if(e){var n=e[1]==="",a=parseInt(e[2]||"256");_e(a%8==0&&a!==0&&a<=256&&(e[2]==null||e[2]===String(a)),"invalid numeric width","type",r);var c=Ca(l2,n?a-1:a),u=n?(c+Dp)*c2:Np;return function(l){var g=Fr(l,"value");return _e(g>=u&&g<=c,"value out-of-bounds for ".concat(r),"value",g),Yn(n?Hu(g,256):g,32)}}var d=r.match(/^bytes(\d+)$/);if(d){var h=parseInt(d[1]);return _e(h!==0&&h<=32&&d[1]===String(h),"invalid bytes width","type",r),function(l){return _e(At(l).length===h,"invalid length for ".concat(r),"value",l),(function(g){var p=At(g),b=p.length%32;return b?Sr([p,_p.slice(b)]):mt(p)})(l)}}switch(r){case"trcToken":return cu("uint256");case"address":return function(l){return _o((g=l,vr.address.toHex(g).replace(ui,"0x")),32);var g};case"bool":return function(l){return l?f2:d2};case"bytes":return function(l){return rr(l)};case"string":return function(l){return Sn(l)}}return null}function jp(r,e){return"".concat(r,"(").concat(e.map(function(n){var a=n.name;return n.type+" "+a}).join(","),")")}var Xc=new WeakMap,ma=new WeakMap,lu=new WeakMap,zp=new WeakSet,Vp=(function(){function r(e){var n;Q(this,r),Rp(this,n=zp),n.add(this),te(this,"primaryType",void 0),qc(this,Xc,{writable:!0,value:void 0}),qc(this,ma,{writable:!0,value:void 0}),qc(this,lu,{writable:!0,value:void 0}),dt(this,Xc,JSON.stringify(e)),dt(this,ma,new Map),dt(this,lu,new Map);var a=new Map,c=new Map,u=new Map;for(var d in Object.keys(e).forEach(function(Ee){a.set(Ee,new Set),c.set(Ee,[]),u.set(Ee,new Set)}),e){var h,l=new Set,g=uu(e[d]);try{for(g.s();!(h=g.n()).done;){var p=h.value;_e(!l.has(p.name),"duplicate variable name ".concat(JSON.stringify(p.name)," in ").concat(JSON.stringify(d)),"types",e),l.add(p.name);var b=p.type.match(/^([^\x5b]*)(\x5b|$)/)[1]||null;_e(b!==d,"circular type reference to ".concat(JSON.stringify(b)),"types",e),cu(b)||(_e(c.has(b),"unknown type ".concat(JSON.stringify(b)),"types",e),c.get(b).push(d),a.get(d).add(b))}}catch(Ee){g.e(Ee)}finally{g.f()}}var w=Array.from(c.keys()).filter(function(Ee){return c.get(Ee).length===0});_e(w.length!==0,"missing primary type","types",e),_e(w.length===1,"ambiguous primary types or unused types: ".concat(w.map(function(Ee){return JSON.stringify(Ee)}).join(", ")),"types",e),ur(this,{primaryType:w[0]}),(function Ee(O,M){_e(!M.has(O),"circular type reference to ".concat(JSON.stringify(O)),"types",e),M.add(O);var I,U=uu(a.get(O));try{for(U.s();!(I=U.n()).done;){var $=I.value;if(c.has($)){Ee($,M);var re,q=uu(M);try{for(q.s();!(re=q.n()).done;){var ye=re.value;u.get(ye).add($)}}catch(Pe){q.e(Pe)}finally{q.f()}}}}catch(Pe){U.e(Pe)}finally{U.f()}M.delete(O)})(this.primaryType,new Set);var x,j=uu(u);try{for(j.s();!(x=j.n()).done;){var J=Xn(x.value,2),we=J[0],ve=J[1],Fe=Array.from(ve);Fe.sort(),Qe(this,ma).set(we,jp(we,e[we])+Fe.map(function(Ee){return jp(Ee,e[Ee])}).join(""))}}catch(Ee){j.e(Ee)}finally{j.f()}}return E(r,[{key:"types",get:function(){return JSON.parse(Qe(this,Xc))}},{key:"getEncoder",value:function(e){var n=Qe(this,lu).get(e);return n||(n=(function(a,c,u){if(!c.has(a))throw new TypeError("attempted to get private field on non-instance");return u})(this,zp,p2).call(this,e),Qe(this,lu).set(e,n)),n}},{key:"encodeType",value:function(e){var n=Qe(this,ma).get(e);return _e(n,"unknown type: ".concat(JSON.stringify(e)),"name",e),n}},{key:"encodeData",value:function(e,n){return this.getEncoder(e)(n)}},{key:"hashStruct",value:function(e,n){return rr(this.encodeData(e,n))}},{key:"encode",value:function(e){return this.encodeData(this.primaryType,e)}},{key:"hash",value:function(e){return this.hashStruct(this.primaryType,e)}},{key:"_visit",value:function(e,n,a){var c=this;if(cu(e))return a(e,n);var u=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(u)return _e(!u[3]||parseInt(u[3])===n.length,"array length mismatch; expected length ".concat(parseInt(u[3])),"value",n),n.map(function(h){return c._visit(u[1],h,a)});var d=this.types[e];if(d)return d.reduce(function(h,l){var g=l.name,p=l.type;return h[g]=c._visit(p,n[g],a),h},{});_e(!1,"unknown type: ".concat(e),"type",e)}},{key:"visit",value:function(e,n){return this._visit(this.primaryType,e,n)}}],[{key:"from",value:function(e){return new r(e)}},{key:"getPrimaryType",value:function(e){return r.from(e).primaryType}},{key:"hashStruct",value:function(e,n,a){return r.from(n).hashStruct(e,a)}},{key:"hashDomain",value:function(e){var n=[];for(var a in e)if(e[a]!=null){var c=Up[a];_e(c,"invalid typed-data domain key: ".concat(JSON.stringify(a)),"domain",e),n.push({name:a,type:c})}return n.sort(function(u,d){return Yc.indexOf(u.name)-Yc.indexOf(d.name)}),r.hashStruct("EIP712Domain",{EIP712Domain:n},e)}},{key:"encode",value:function(e,n,a){return Sr(["0x1901",r.hashDomain(e),r.from(n).hash(a)])}},{key:"hash",value:function(e,n,a){return rr(r.encode(e,n,a))}},{key:"getPayload",value:function(e,n,a){r.hashDomain(e);var c={},u=[];Yc.forEach(function(l){var g=e[l];g!=null&&(c[l]=h2[l](g),u.push({name:l,type:Up[l]}))});var d=r.from(n),h=Object.assign({},n);return _e(h.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",n),h.EIP712Domain=u,d.encode(a),{types:h,domain:c,primaryType:d.primaryType,message:d.visit(a,function(l,g){if(l.match(/^bytes(\d*)/))return mt(At(g));if(l.match(/^u?int/))return Fr(g).toString();switch(l){case"trcToken":return Fr(g).toString();case"address":return g.toLowerCase();case"bool":return!!g;case"string":return _e(typeof g=="string","invalid string","value",g),g}_e(!1,"unsupported type","type",l)})}}}]),r})();function p2(r){var e=this,n=cu(r);if(n)return n;var a=r.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a){var c=a[1],u=this.getEncoder(c);return function(l){_e(!a[3]||parseInt(a[3])===l.length,"array length mismatch; expected length ".concat(parseInt(a[3])),"value",l);var g=l.map(u);return Qe(e,ma).has(c)&&(g=g.map(rr)),rr(Sr(g))}}var d=this.types[r];if(d){var h=Sn(Qe(this,ma).get(r));return function(l){var g=d.map(function(p){var b=p.name,w=p.type,x=e.getEncoder(w)(l[b]);return Qe(e,ma).has(w)?rr(x):x});return g.unshift(h),Sr(g)}}_e(!1,"unknown type: ".concat(r),"type",r)}var Qc=Ve(5053);function Ka(r){var e=yo(r),n=yo(e).slice(0,4);return ef(n=r.concat(n))}function g2(r){if(typeof r!="string"||r.length<=4)return!1;var e=Zi(r);if(r.length<=4)return!1;var n=e.length-4,a=e.slice(n),c=yo(e=e.slice(0,n)),u=yo(c).slice(0,4);if(a[0]==u[0]&&a[1]==u[1]&&a[2]==u[2]&&a[3]==u[3])return e;throw new Error("Invalid address provided")}function y2(r,e){typeof r=="string"&&(r=Zn(r));var n=tl(Zn(e.txID),r);return Array.isArray(e.signature)?e.signature.includes(n)||e.signature.push(n):e.signature=[n],e}function el(r,e){r="0x"+r.replace(/^0x/,""),e="0x"+e.replace(/^0x/,"");var n=Ra(Sp(r),Cn.from(e));return co+n.substring(2)}function m2(r){return btoa(String.fromCharCode.apply(String,oa(r)))}function v2(r,e){return typeof r=="string"&&(r=Zn(r)),tl(yo(e),r)}function b2(r,e,n,a){var c="0x".concat(a.replace(/^0x/,"")),u=new Rn(c),d=Vp.hash(r,e,n),h=u.sign(d);return["0x",h.r.substring(2),h.s.substring(2),Number(h.v).toString(16)].join("")}function T2(r){var e=na(r);return proto.protocol.Transaction.deserializeBinary(e).getRawData().serializeBinary()}function Gp(){var r=Wn(Qc.k.utils.randomPrivateKey());return Zn(r=r.padStart(64,"0"))}function Ni(r){r.length===65&&(r=r.slice(1));var e=rr(new Uint8Array(r)).toString().substring(2);return Zn(co+e.substring(24))}function fu(r){return Ni(Za(r))}function A2(r){var e=Zi(r);if(e.length<=4)return!1;var n=e.slice(0,e.length-4),a=yo(n),c=yo(a);return c[0]===e[n.length]&&c[1]===e[n.length+1]&&c[2]===e[n.length+2]&&c[3]===e[n.length+3]&&n}function w2(r){if(typeof r!="string"||r.length!==Ug)return!1;var e=Zi(r);if(e.length!==25||e[0]!==Lg)return!1;var n=e.slice(21),a=yo(e=e.slice(0,21)),c=yo(a).slice(0,4);return n[0]==c[0]&&n[1]==c[1]&&n[2]==c[2]&&n[3]==c[3]}function P2(r){return Ka(Ni(Za(na(r))))}function W2(r){return Wn(Ni(Za(na(r))))}function B2(r){return Uu(Ni(Za(na(r))))}function Za(r){var e=Qc.k.ProjectivePoint.fromPrivateKey(new Uint8Array((function(d){return Zn(Wn(d).padStart(64,"0"))})(r))),n=e.x,a=e.y,c=n.toString(16).padStart(64,"0"),u=a.toString(16).padStart(64,"0");return Zn("04".concat(c).concat(u))}function tl(r,e){var n=Qc.k.sign(Wn(r),Wn(e)),a=n.r.toString(16),c=n.s.toString(16),u=n.recovery+27;return a.padStart(64,"0")+c.padStart(64,"0")+Hi(u)}function yo(r){return Zn(cn("0x"+Wn(r)).replace(/^0x/,""))}function C2(r){return Ka(fu(na(r)))}function rl(r){return Ka(fu(Zn(r,arguments.length>1&&arguments[1]!==void 0&&arguments[1])))}var $p="Invalid tron path provided";function E2(){var r=Gp(),e=Za(r),n=fu(r);return{privateKey:Wn(r),publicKey:Wn(e),address:{base58:Ka(n),hex:Wn(n)}}}function M2(r){if(X.isObject(r)||(r={}),r.path||(r.path=ju),!String(r.path).match(/^m\/44\'\/195\'/))throw new Error($p);var e=ha.createRandom(r.password,r.path,r.wordlist);return{mnemonic:e.mnemonic,privateKey:e.privateKey,publicKey:e.signingKey.publicKey,address:rl(e.privateKey.replace(/^0x/,""))}}function O2(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(e||(e=ju),!String(e).match(/^m\/44\'\/195\'/))throw new Error($p);var a=ha.fromMnemonic(Ia.fromPhrase(r,null,n),e);return{mnemonic:a.mnemonic,privateKey:a.privateKey,publicKey:a.signingKey.publicKey,address:rl(a.privateKey.replace(/^0x/,""))}}let Hp=!1,Kp=!1;const du={debug:1,default:2,info:2,warning:3,error:4,off:5};let Zp=du.default,nl=null;const Jp=(function(){try{const r=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{r.push(e)}}),r.length)throw new Error("missing "+r.join(", "));if("é".normalize("NFD")!=="é")throw new Error("broken implementation")}catch(r){return r.message}return null})();var ol,no;(function(r){r.DEBUG="DEBUG",r.INFO="INFO",r.WARNING="WARNING",r.ERROR="ERROR",r.OFF="OFF"})(ol||(ol={})),(function(r){r.UNKNOWN_ERROR="UNKNOWN_ERROR",r.NOT_IMPLEMENTED="NOT_IMPLEMENTED",r.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",r.NETWORK_ERROR="NETWORK_ERROR",r.SERVER_ERROR="SERVER_ERROR",r.TIMEOUT="TIMEOUT",r.BUFFER_OVERRUN="BUFFER_OVERRUN",r.NUMERIC_FAULT="NUMERIC_FAULT",r.MISSING_NEW="MISSING_NEW",r.INVALID_ARGUMENT="INVALID_ARGUMENT",r.MISSING_ARGUMENT="MISSING_ARGUMENT",r.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",r.CALL_EXCEPTION="CALL_EXCEPTION",r.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",r.NONCE_EXPIRED="NONCE_EXPIRED",r.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",r.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",r.TRANSACTION_REPLACED="TRANSACTION_REPLACED",r.ACTION_REJECTED="ACTION_REJECTED"})(no||(no={}));const qp="0123456789abcdef";class Xt{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,n){const a=e.toLowerCase();du[a]==null&&this.throwArgumentError("invalid log level name","logLevel",e),Zp>du[a]||console.log.apply(console,n)}debug(...e){this._log(Xt.levels.DEBUG,e)}info(...e){this._log(Xt.levels.INFO,e)}warn(...e){this._log(Xt.levels.WARNING,e)}makeError(e,n,a){if(Kp)return this.makeError("censored error",n,{});n||(n=Xt.errors.UNKNOWN_ERROR),a||(a={});const c=[];Object.keys(a).forEach(l=>{const g=a[l];try{if(g instanceof Uint8Array){let p="";for(let b=0;b<g.length;b++)p+=qp[g[b]>>4],p+=qp[15&g[b]];c.push(l+"=Uint8Array(0x"+p+")")}else c.push(l+"="+JSON.stringify(g))}catch{c.push(l+"="+JSON.stringify(a[l].toString()))}}),c.push(`code=${n}`),c.push(`version=${this.version}`);const u=e;let d="";switch(n){case no.NUMERIC_FAULT:{d="NUMERIC_FAULT";const l=e;switch(l){case"overflow":case"underflow":case"division-by-zero":d+="-"+l;break;case"negative-power":case"negative-width":d+="-unsupported";break;case"unbound-bitwise-result":d+="-unbound-result"}break}case no.CALL_EXCEPTION:case no.INSUFFICIENT_FUNDS:case no.MISSING_NEW:case no.NONCE_EXPIRED:case no.REPLACEMENT_UNDERPRICED:case no.TRANSACTION_REPLACED:case no.UNPREDICTABLE_GAS_LIMIT:d=n}d&&(e+=" [ See: https://links.ethers.org/v5-errors-"+d+" ]"),c.length&&(e+=" ("+c.join(", ")+")");const h=new Error(e);return h.reason=u,h.code=n,Object.keys(a).forEach(function(l){h[l]=a[l]}),h}throwError(e,n,a){throw this.makeError(e,n,a)}throwArgumentError(e,n,a){return this.throwError(e,Xt.errors.INVALID_ARGUMENT,{argument:n,value:a})}assert(e,n,a,c){e||this.throwError(n,a,c)}assertArgument(e,n,a,c){e||this.throwArgumentError(n,a,c)}checkNormalize(e){Jp&&this.throwError("platform missing String.prototype.normalize",Xt.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Jp})}checkSafeUint53(e,n){typeof e=="number"&&(n==null&&(n="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(n,Xt.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(n,Xt.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,n,a){a=a?": "+a:"",e<n&&this.throwError("missing argument"+a,Xt.errors.MISSING_ARGUMENT,{count:e,expectedCount:n}),e>n&&this.throwError("too many arguments"+a,Xt.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:n})}checkNew(e,n){e!==Object&&e!=null||this.throwError("missing new",Xt.errors.MISSING_NEW,{name:n.name})}checkAbstract(e,n){e===n?this.throwError("cannot instantiate abstract class "+JSON.stringify(n.name)+" directly; use a sub-class",Xt.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&e!=null||this.throwError("missing new",Xt.errors.MISSING_NEW,{name:n.name})}static globalLogger(){return nl||(nl=new Xt("logger/5.7.0")),nl}static setCensorship(e,n){if(!e&&n&&this.globalLogger().throwError("cannot permanently disable censorship",Xt.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Hp){if(!e)return;this.globalLogger().throwError("error censorship permanent",Xt.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Kp=!!e,Hp=!!n}static setLogLevel(e){const n=du[e.toLowerCase()];n!=null?Zp=n:Xt.globalLogger().warn("invalid log level - "+e)}static from(e){return new Xt(e)}}Xt.errors=no,Xt.levels=ol;const Xo=new Xt("bytes/5.7.0");function Yp(r){return!!r.toHexString}function Di(r){return r.slice||(r.slice=function(){const e=Array.prototype.slice.call(arguments);return Di(new Uint8Array(Array.prototype.slice.apply(r,e)))}),r}function Xp(r){return typeof r=="number"&&r==r&&r%1==0}function al(r){if(r==null)return!1;if(r.constructor===Uint8Array)return!0;if(typeof r=="string"||!Xp(r.length)||r.length<0)return!1;for(let e=0;e<r.length;e++){const n=r[e];if(!Xp(n)||n<0||n>=256)return!1}return!0}function oo(r,e){if(e||(e={}),typeof r=="number"){Xo.checkSafeUint53(r,"invalid arrayify value");const n=[];for(;r;)n.unshift(255&r),r=parseInt(String(r/256));return n.length===0&&n.push(0),Di(new Uint8Array(n))}if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),Yp(r)&&(r=r.toHexString()),Ja(r)){let n=r.substring(2);n.length%2&&(e.hexPad==="left"?n="0"+n:e.hexPad==="right"?n+="0":Xo.throwArgumentError("hex data is odd-length","value",r));const a=[];for(let c=0;c<n.length;c+=2)a.push(parseInt(n.substring(c,c+2),16));return Di(new Uint8Array(a))}return al(r)?Di(new Uint8Array(r)):Xo.throwArgumentError("invalid arrayify value","value",r)}function il(r){const e=r.map(c=>oo(c)),n=e.reduce((c,u)=>c+u.length,0),a=new Uint8Array(n);return e.reduce((c,u)=>(a.set(u,c),c+u.length),0),Di(a)}function Ja(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}const sl="0123456789abcdef";function qa(r,e){if(e||(e={}),typeof r=="number"){Xo.checkSafeUint53(r,"invalid hexlify value");let n="";for(;r;)n=sl[15&r]+n,r=Math.floor(r/16);return n.length?(n.length%2&&(n="0"+n),"0x"+n):"0x00"}if(typeof r=="bigint")return(r=r.toString(16)).length%2?"0x0"+r:"0x"+r;if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),Yp(r))return r.toHexString();if(Ja(r))return r.length%2&&(e.hexPad==="left"?r="0x0"+r.substring(2):e.hexPad==="right"?r+="0":Xo.throwArgumentError("hex data is odd-length","value",r)),r.toLowerCase();if(al(r)){let n="0x";for(let a=0;a<r.length;a++){let c=r[a];n+=sl[(240&c)>>4]+sl[15&c]}return n}return Xo.throwArgumentError("invalid hexlify value","value",r)}function va(r,e,n){Object.defineProperty(r,e,{enumerable:!0,value:n,writable:!1})}const hu="abi/5.7.0";var I2=Ve(3550),pu=Ve.n(I2)().BN;const Io=new Xt("bignumber/5.7.0"),ul={},Qp=9007199254740991;let e0=!1;class Kr{constructor(e,n){e!==ul&&Io.throwError("cannot call constructor directly; use BigNumber.from",Xt.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=n,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return An(cr(this).fromTwos(e))}toTwos(e){return An(cr(this).toTwos(e))}abs(){return this._hex[0]==="-"?Kr.from(this._hex.substring(1)):this}add(e){return An(cr(this).add(cr(e)))}sub(e){return An(cr(this).sub(cr(e)))}div(e){return Kr.from(e).isZero()&&Vn("division-by-zero","div"),An(cr(this).div(cr(e)))}mul(e){return An(cr(this).mul(cr(e)))}mod(e){const n=cr(e);return n.isNeg()&&Vn("division-by-zero","mod"),An(cr(this).umod(n))}pow(e){const n=cr(e);return n.isNeg()&&Vn("negative-power","pow"),An(cr(this).pow(n))}and(e){const n=cr(e);return(this.isNegative()||n.isNeg())&&Vn("unbound-bitwise-result","and"),An(cr(this).and(n))}or(e){const n=cr(e);return(this.isNegative()||n.isNeg())&&Vn("unbound-bitwise-result","or"),An(cr(this).or(n))}xor(e){const n=cr(e);return(this.isNegative()||n.isNeg())&&Vn("unbound-bitwise-result","xor"),An(cr(this).xor(n))}mask(e){return(this.isNegative()||e<0)&&Vn("negative-width","mask"),An(cr(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&Vn("negative-width","shl"),An(cr(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&Vn("negative-width","shr"),An(cr(this).shrn(e))}eq(e){return cr(this).eq(cr(e))}lt(e){return cr(this).lt(cr(e))}lte(e){return cr(this).lte(cr(e))}gt(e){return cr(this).gt(cr(e))}gte(e){return cr(this).gte(cr(e))}isNegative(){return this._hex[0]==="-"}isZero(){return cr(this).isZero()}toNumber(){try{return cr(this).toNumber()}catch{Vn("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Io.throwError("this platform does not support BigInt",Xt.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?e0||(e0=!0,Io.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Io.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",Xt.errors.UNEXPECTED_ARGUMENT,{}):Io.throwError("BigNumber.toString does not accept parameters",Xt.errors.UNEXPECTED_ARGUMENT,{})),cr(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof Kr)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new Kr(ul,Ui(e)):e.match(/^-?[0-9]+$/)?new Kr(ul,Ui(new pu(e))):Io.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&Vn("underflow","BigNumber.from",e),(e>=Qp||e<=-Qp)&&Vn("overflow","BigNumber.from",e),Kr.from(String(e));const n=e;if(typeof n=="bigint")return Kr.from(n.toString());if(al(n))return Kr.from(qa(n));if(n)if(n.toHexString){const a=n.toHexString();if(typeof a=="string")return Kr.from(a)}else{let a=n._hex;if(a==null&&n.type==="BigNumber"&&(a=n.hex),typeof a=="string"&&(Ja(a)||a[0]==="-"&&Ja(a.substring(1))))return Kr.from(a)}return Io.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function Ui(r){if(typeof r!="string")return Ui(r.toString(16));if(r[0]==="-")return(r=r.substring(1))[0]==="-"&&Io.throwArgumentError("invalid hex","value",r),(r=Ui(r))==="0x00"?r:"-"+r;if(r.substring(0,2)!=="0x"&&(r="0x"+r),r==="0x")return"0x00";for(r.length%2&&(r="0x0"+r.substring(2));r.length>4&&r.substring(0,4)==="0x00";)r="0x"+r.substring(4);return r}function An(r){return Kr.from(Ui(r))}function cr(r){const e=Kr.from(r).toHexString();return e[0]==="-"?new pu("-"+e.substring(3),16):new pu(e.substring(2),16)}function Vn(r,e,n){const a={fault:r,operation:e};return n!=null&&(a.value=n),Io.throwError(r,Xt.errors.NUMERIC_FAULT,a)}const cl=new Xt(hu);class xo{constructor(e,n,a,c){this.name=e,this.type=n,this.localName=a,this.dynamic=c}_throwError(e,n){cl.throwArgumentError(e,this.localName,n)}}class ll{constructor(e){va(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return(function(e){let n="0x";return e.forEach(a=>{n+=qa(a).substring(2)}),n})(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData(il(e._data))}writeBytes(e){let n=oo(e);const a=n.length%this.wordSize;return a&&(n=il([n,this._padding.slice(a)])),this._writeData(n)}_getValue(e){let n=oo(Kr.from(e));return n.length>this.wordSize&&cl.throwError("value out-of-bounds",Xt.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:n.length}),n.length%this.wordSize&&(n=il([this._padding.slice(n.length%this.wordSize),n])),n}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,n=>{this._data[e]=this._getValue(n)}}}class gu{constructor(e,n,a,c){va(this,"_data",oo(e)),va(this,"wordSize",n||32),va(this,"_coerceFunc",a),va(this,"allowLoose",c),this._offset=0}get data(){return qa(this._data)}get consumed(){return this._offset}static coerce(e,n){let a=e.match("^u?int([0-9]+)$");return a&&parseInt(a[1])<=48&&(n=n.toNumber()),n}coerce(e,n){return this._coerceFunc?this._coerceFunc(e,n):gu.coerce(e,n)}_peekBytes(e,n,a){let c=Math.ceil(n/this.wordSize)*this.wordSize;return this._offset+c>this._data.length&&(this.allowLoose&&a&&this._offset+n<=this._data.length?c=n:cl.throwError("data out-of-bounds",Xt.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+c})),this._data.slice(this._offset,this._offset+c)}subReader(e){return new gu(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,n){let a=this._peekBytes(0,e,!!n);return this._offset+=a.length,a.slice(0,e)}readValue(){return Kr.from(this.readBytes(this.wordSize))}}var x2=Ve(1094),k2=Ve.n(x2);const Li=new Xt("address/5.7.0");function t0(r){Ja(r,20)||Li.throwArgumentError("invalid address","address",r);const e=(r=r.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let u=0;u<40;u++)n[u]=e[u].charCodeAt(0);const a=oo((c=n,"0x"+k2().keccak_256(oo(c))));var c;for(let u=0;u<40;u+=2)a[u>>1]>>4>=8&&(e[u]=e[u].toUpperCase()),(15&a[u>>1])>=8&&(e[u+1]=e[u+1].toUpperCase());return"0x"+e.join("")}const fl={};for(let r=0;r<10;r++)fl[String(r)]=String(r);for(let r=0;r<26;r++)fl[String.fromCharCode(65+r)]=String(10+r);const r0=Math.floor((dl=9007199254740991,Math.log10?Math.log10(dl):Math.log(dl)/Math.LN10));var dl;function n0(r){let e=null;if(typeof r!="string"&&Li.throwArgumentError("invalid address","address",r),r.match(/^(0x)?[0-9a-fA-F]{40}$/))r.substring(0,2)!=="0x"&&(r="0x"+r),e=t0(r),r.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==r&&Li.throwArgumentError("bad address checksum","address",r);else if(r.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(r.substring(2,4)!==(function(a){let c=(a=(a=a.toUpperCase()).substring(4)+a.substring(0,2)+"00").split("").map(d=>fl[d]).join("");for(;c.length>=r0;){let d=c.substring(0,r0);c=parseInt(d,10)%97+c.substring(d.length)}let u=String(98-parseInt(c,10)%97);for(;u.length<2;)u="0"+u;return u})(r)&&Li.throwArgumentError("bad icap checksum","address",r),n=r.substring(4),e=new pu(n,36).toString(16);e.length<40;)e="0"+e;e=t0("0x"+e)}else Li.throwArgumentError("invalid address","address",r);var n;return e}class S2 extends xo{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,n){try{n=n0(n)}catch(a){this._throwError(a.message,n)}return e.writeValue(n)}decode(e){return n0((function(n,a){for(typeof n!="string"?n=qa(n):Ja(n)||Xo.throwArgumentError("invalid hex string","value",n),n.length>2*a+2&&Xo.throwArgumentError("value out of range","value",arguments[1]);n.length<2*a+2;)n="0x0"+n.substring(2);return n})(e.readValue().toHexString(),20))}}class F2 extends xo{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,n){return this.coder.encode(e,n)}decode(e){return this.coder.decode(e)}}const Ya=new Xt(hu);function o0(r,e,n){let a=null;if(Array.isArray(n))a=n;else if(n&&typeof n=="object"){let l={};a=e.map(g=>{const p=g.localName;return p||Ya.throwError("cannot encode object for signature with missing names",Xt.errors.INVALID_ARGUMENT,{argument:"values",coder:g,value:n}),l[p]&&Ya.throwError("cannot encode object for signature with duplicate names",Xt.errors.INVALID_ARGUMENT,{argument:"values",coder:g,value:n}),l[p]=!0,n[p]})}else Ya.throwArgumentError("invalid tuple value","tuple",n);e.length!==a.length&&Ya.throwArgumentError("types/value length mismatch","tuple",n);let c=new ll(r.wordSize),u=new ll(r.wordSize),d=[];e.forEach((l,g)=>{let p=a[g];if(l.dynamic){let b=u.length;l.encode(u,p);let w=c.writeUpdatableValue();d.push(x=>{w(x+b)})}else l.encode(c,p)}),d.forEach(l=>{l(c.length)});let h=r.appendWriter(c);return h+=r.appendWriter(u),h}function a0(r,e){let n=[],a=r.subReader(0);e.forEach(u=>{let d=null;if(u.dynamic){let h=r.readValue(),l=a.subReader(h.toNumber());try{d=u.decode(l)}catch(g){if(g.code===Xt.errors.BUFFER_OVERRUN)throw g;d=g,d.baseType=u.name,d.name=u.localName,d.type=u.type}}else try{d=u.decode(r)}catch(h){if(h.code===Xt.errors.BUFFER_OVERRUN)throw h;d=h,d.baseType=u.name,d.name=u.localName,d.type=u.type}d!=null&&n.push(d)});const c=e.reduce((u,d)=>{const h=d.localName;return h&&(u[h]||(u[h]=0),u[h]++),u},{});e.forEach((u,d)=>{let h=u.localName;if(!h||c[h]!==1||(h==="length"&&(h="_length"),n[h]!=null))return;const l=n[d];l instanceof Error?Object.defineProperty(n,h,{enumerable:!0,get:()=>{throw l}}):n[h]=l});for(let u=0;u<n.length;u++){const d=n[u];d instanceof Error&&Object.defineProperty(n,u,{enumerable:!0,get:()=>{throw d}})}return Object.freeze(n)}class R2 extends xo{constructor(e,n,a){super("array",e.type+"["+(n>=0?n:"")+"]",a,n===-1||e.dynamic),this.coder=e,this.length=n}defaultValue(){const e=this.coder.defaultValue(),n=[];for(let a=0;a<this.length;a++)n.push(e);return n}encode(e,n){Array.isArray(n)||this._throwError("expected array value",n);let a=this.length;a===-1&&(a=n.length,e.writeValue(n.length)),Ya.checkArgumentCount(n.length,a,"coder array"+(this.localName?" "+this.localName:""));let c=[];for(let u=0;u<n.length;u++)c.push(this.coder);return o0(e,c,n)}decode(e){let n=this.length;n===-1&&(n=e.readValue().toNumber(),32*n>e._data.length&&Ya.throwError("insufficient data length",Xt.errors.BUFFER_OVERRUN,{length:e._data.length,count:n}));let a=[];for(let c=0;c<n;c++)a.push(new F2(this.coder));return e.coerce(this.name,a0(e,a))}}class _2 extends xo{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,n){return e.writeValue(n?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class i0 extends xo{constructor(e,n){super(e,e,n,!0)}defaultValue(){return"0x"}encode(e,n){n=oo(n);let a=e.writeValue(n.length);return a+=e.writeBytes(n),a}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class N2 extends i0{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,qa(super.decode(e)))}}class D2 extends xo{constructor(e,n){let a="bytes"+String(e);super(a,a,n,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,n){let a=oo(n);return a.length!==this.size&&this._throwError("incorrect data length",n),e.writeBytes(a)}decode(e){return e.coerce(this.name,qa(e.readBytes(this.size)))}}class U2 extends xo{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,n){return n!=null&&this._throwError("not null",n),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}const L2=Kr.from(-1),j2=Kr.from(0),z2=Kr.from(1),V2=Kr.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class G2 extends xo{constructor(e,n,a){const c=(n?"int":"uint")+8*e;super(c,c,a,!1),this.size=e,this.signed=n}defaultValue(){return 0}encode(e,n){let a=Kr.from(n),c=V2.mask(8*e.wordSize);if(this.signed){let u=c.mask(8*this.size-1);(a.gt(u)||a.lt(u.add(z2).mul(L2)))&&this._throwError("value out-of-bounds",n)}else(a.lt(j2)||a.gt(c.mask(8*this.size)))&&this._throwError("value out-of-bounds",n);return a=a.toTwos(8*this.size).mask(8*this.size),this.signed&&(a=a.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(a)}decode(e){let n=e.readValue().mask(8*this.size);return this.signed&&(n=n.fromTwos(8*this.size)),e.coerce(this.name,n)}}const s0=new Xt("strings/5.7.0");var yu,Mn;function u0(r,e,n,a,c){if(r===Mn.BAD_PREFIX||r===Mn.UNEXPECTED_CONTINUE){let u=0;for(let d=e+1;d<n.length&&n[d]>>6==2;d++)u++;return u}return r===Mn.OVERRUN?n.length-e-1:0}(function(r){r.current="",r.NFC="NFC",r.NFD="NFD",r.NFKC="NFKC",r.NFKD="NFKD"})(yu||(yu={})),(function(r){r.UNEXPECTED_CONTINUE="unexpected continuation byte",r.BAD_PREFIX="bad codepoint prefix",r.OVERRUN="string overrun",r.MISSING_CONTINUE="missing continuation byte",r.OUT_OF_RANGE="out of UTF-8 range",r.UTF16_SURROGATE="UTF-16 surrogate",r.OVERLONG="overlong representation"})(Mn||(Mn={}));const $2=Object.freeze({error:function(r,e,n,a,c){return s0.throwArgumentError(`invalid codepoint at offset ${e}; ${r}`,"bytes",n)},ignore:u0,replace:function(r,e,n,a,c){return r===Mn.OVERLONG?(a.push(c),0):(a.push(65533),u0(r,e,n))}});function H2(r,e){return(function(n,a){a==null&&(a=$2.error),n=oo(n);const c=[];let u=0;for(;u<n.length;){const d=n[u++];if(!(d>>7)){c.push(d);continue}let h=null,l=null;if((224&d)==192)h=1,l=127;else if((240&d)==224)h=2,l=2047;else{if((248&d)!=240){u+=a((192&d)==128?Mn.UNEXPECTED_CONTINUE:Mn.BAD_PREFIX,u-1,n,c);continue}h=3,l=65535}if(u-1+h>=n.length){u+=a(Mn.OVERRUN,u-1,n,c);continue}let g=d&(1<<8-h-1)-1;for(let p=0;p<h;p++){let b=n[u];if((192&b)!=128){u+=a(Mn.MISSING_CONTINUE,u,n,c),g=null;break}g=g<<6|63&b,u++}g!==null&&(g>1114111?u+=a(Mn.OUT_OF_RANGE,u-1-h,n,c,g):g>=55296&&g<=57343?u+=a(Mn.UTF16_SURROGATE,u-1-h,n,c,g):g<=l?u+=a(Mn.OVERLONG,u-1-h,n,c,g):c.push(g))}return c})(r,e).map(n=>n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode(55296+(n>>10&1023),56320+(1023&n)))).join("")}class K2 extends i0{constructor(e){super("string",e)}defaultValue(){return""}encode(e,n){return super.encode(e,(function(a,c=yu.current){c!=yu.current&&(s0.checkNormalize(),a=a.normalize(c));let u=[];for(let d=0;d<a.length;d++){const h=a.charCodeAt(d);if(h<128)u.push(h);else if(h<2048)u.push(h>>6|192),u.push(63&h|128);else if((64512&h)==55296){d++;const l=a.charCodeAt(d);if(d>=a.length||(64512&l)!=56320)throw new Error("invalid utf-8 string");const g=65536+((1023&h)<<10)+(1023&l);u.push(g>>18|240),u.push(g>>12&63|128),u.push(g>>6&63|128),u.push(63&g|128)}else u.push(h>>12|224),u.push(h>>6&63|128),u.push(63&h|128)}return oo(u)})(n))}decode(e){return H2(super.decode(e))}}class mu extends xo{constructor(e,n){let a=!1;const c=[];e.forEach(u=>{u.dynamic&&(a=!0),c.push(u.type)}),super("tuple","tuple("+c.join(",")+")",n,a),this.coders=e}defaultValue(){const e=[];this.coders.forEach(a=>{e.push(a.defaultValue())});const n=this.coders.reduce((a,c)=>{const u=c.localName;return u&&(a[u]||(a[u]=0),a[u]++),a},{});return this.coders.forEach((a,c)=>{let u=a.localName;u&&n[u]===1&&(u==="length"&&(u="_length"),e[u]==null&&(e[u]=e[c]))}),Object.freeze(e)}encode(e,n){return o0(e,this.coders,n)}decode(e){return e.coerce(this.name,a0(e,this.coders))}}const ji=new Xt(hu),c0={};let l0={calldata:!0,memory:!0,storage:!0},Z2={calldata:!0,memory:!0};function vu(r,e){if(r==="bytes"||r==="string"){if(l0[e])return!0}else if(r==="address"){if(e==="payable")return!0}else if((r.indexOf("[")>=0||r==="tuple")&&Z2[e])return!0;return(l0[e]||e==="payable")&&ji.throwArgumentError("invalid modifier","name",e),!1}function f0(r,e){for(let n in e)va(r,n,e[n])}const ba=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),J2=new RegExp(/^(.*)\[([0-9]*)\]$/);class ao{constructor(e,n){e!==c0&&ji.throwError("use fromString",Xt.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),f0(this,n);let a=this.type.match(J2);f0(this,a?{arrayLength:parseInt(a[2]||"-1"),arrayChildren:ao.fromObject({type:a[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:this.components!=null?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=ba.sighash),ba[e]||ji.throwArgumentError("invalid format type","format",e),e===ba.json){let a={type:this.baseType==="tuple"?"tuple":this.type,name:this.name||void 0};return typeof this.indexed=="boolean"&&(a.indexed=this.indexed),this.components&&(a.components=this.components.map(c=>JSON.parse(c.format(e)))),JSON.stringify(a)}let n="";return this.baseType==="array"?(n+=this.arrayChildren.format(e),n+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(e!==ba.sighash&&(n+=this.type),n+="("+this.components.map(a=>a.format(e)).join(e===ba.full?", ":",")+")"):n+=this.type,e!==ba.sighash&&(this.indexed===!0&&(n+=" indexed"),e===ba.full&&this.name&&(n+=" "+this.name)),n}static from(e,n){return typeof e=="string"?ao.fromString(e,n):ao.fromObject(e)}static fromObject(e){return ao.isParamType(e)?e:new ao(c0,{name:e.name||null,type:Xa(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(ao.fromObject):null})}static fromString(e,n){return a=(function(c,u){let d=c;function h(b){ji.throwArgumentError(`unexpected character at position ${b}`,"param",c)}function l(b){let w={type:"",name:"",parent:b,state:{allowType:!0}};return u&&(w.indexed=!1),w}c=c.replace(/\s/g," ");let g={type:"",name:"",state:{allowType:!0}},p=g;for(let b=0;b<c.length;b++){let w=c[b];switch(w){case"(":p.state.allowType&&p.type===""?p.type="tuple":p.state.allowParams||h(b),p.state.allowType=!1,p.type=Xa(p.type),p.components=[l(p)],p=p.components[0];break;case")":delete p.state,p.name==="indexed"&&(u||h(b),p.indexed=!0,p.name=""),vu(p.type,p.name)&&(p.name=""),p.type=Xa(p.type);let x=p;p=p.parent,p||h(b),delete x.parent,p.state.allowParams=!1,p.state.allowName=!0,p.state.allowArray=!0;break;case",":delete p.state,p.name==="indexed"&&(u||h(b),p.indexed=!0,p.name=""),vu(p.type,p.name)&&(p.name=""),p.type=Xa(p.type);let j=l(p.parent);p.parent.components.push(j),delete p.parent,p=j;break;case" ":p.state.allowType&&p.type!==""&&(p.type=Xa(p.type),delete p.state.allowType,p.state.allowName=!0,p.state.allowParams=!0),p.state.allowName&&p.name!==""&&(p.name==="indexed"?(u||h(b),p.indexed&&h(b),p.indexed=!0,p.name=""):vu(p.type,p.name)?p.name="":p.state.allowName=!1);break;case"[":p.state.allowArray||h(b),p.type+=w,p.state.allowArray=!1,p.state.allowName=!1,p.state.readArray=!0;break;case"]":p.state.readArray||h(b),p.type+=w,p.state.readArray=!1,p.state.allowArray=!0,p.state.allowName=!0;break;default:p.state.allowType?(p.type+=w,p.state.allowParams=!0,p.state.allowArray=!0):p.state.allowName?(p.name+=w,delete p.state.allowArray):p.state.readArray?p.type+=w:h(b)}}return p.parent&&ji.throwArgumentError("unexpected eof","param",c),delete g.state,p.name==="indexed"?(u||h(d.length-7),p.indexed&&h(d.length-7),p.indexed=!0,p.name=""):vu(p.type,p.name)&&(p.name=""),g.type=Xa(g.type),g})(e,!!n),ao.fromObject({name:a.name,type:a.type,indexed:a.indexed,components:a.components});var a}static isParamType(e){return!(e==null||!e._isParamType)}}function Xa(r){return r.match(/^uint($|[^1-9])/)?r="uint256"+r.substring(4):r.match(/^int($|[^1-9])/)&&(r="int256"+r.substring(3)),r}const bu=new Xt(hu),q2=new RegExp(/^bytes([0-9]*)$/),Y2=new RegExp(/^(u?int)([0-9]*)$/);class Tu{constructor(e){va(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new S2(e.name);case"bool":return new _2(e.name);case"string":return new K2(e.name);case"bytes":return new N2(e.name);case"array":return new R2(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new mu((e.components||[]).map(a=>this._getCoder(a)),e.name);case"":return new U2(e.name)}let n=e.type.match(Y2);if(n){let a=parseInt(n[2]||"256");return(a===0||a>256||a%8!=0)&&bu.throwArgumentError("invalid "+n[1]+" bit length","param",e),new G2(a/8,n[1]==="int",e.name)}if(n=e.type.match(q2),n){let a=parseInt(n[1]);return(a===0||a>32)&&bu.throwArgumentError("invalid bytes length","param",e),new D2(a,e.name)}return bu.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,n){return new gu(e,this._getWordSize(),this.coerceFunc,n)}_getWriter(){return new ll(this._getWordSize())}getDefaultValue(e){const n=e.map(a=>this._getCoder(ao.from(a)));return new mu(n,"_").defaultValue()}encode(e,n){e.length!==n.length&&bu.throwError("types/values length mismatch",Xt.errors.INVALID_ARGUMENT,{count:{types:e.length,values:n.length},value:{types:e,values:n}});const a=e.map(d=>this._getCoder(ao.from(d))),c=new mu(a,"_"),u=this._getWriter();return c.encode(u,n),u.data}decode(e,n,a){const c=e.map(u=>this._getCoder(ao.from(u)));return new mu(c,"_").decode(this._getReader(oo(n),a))}}new Tu;var Au=new Tu;function d0(r){return vr.address.toHex(r).replace(ui,"0x")}function h0(r){if(Object.prototype.toString.call(r)!=="[object Object]"&&Object.prototype.toString.call(r)!=="[object Array]")return r;var e,n=(e=r,Array.isArray(e)?[]:{});return Object.keys(r).forEach(function(a){return n[a]=r[a]instanceof Object&&!r[a]._isBigNumber?h0(r[a]):r[a]}),n}function X2(r,e,n,a){if(n&&typeof n!="boolean"||(a=n,n=e,e=r,r=[]),a&&n.replace(/^0x/,"").length%64==8&&(n="0x"+n.replace(/^0x/,"").substring(8)),n.replace(/^0x/,"").length%64)throw new Error("The encoded string is not valid. Its length must be a multiple of 64.");return e=e.map(function(c){return/trcToken/.test(c)&&(c=c.replace(/trcToken/,"uint256")),c}),Au.decode(e,n).reduce(function(c,u,d){return e[d]=="address"&&(u=co+u.substr(2).toLowerCase()),r.length?c[r[d]]=u:c.push(u),c},r.length?{}:[])}function Q2(r,e){for(var n=0;n<r.length;n++)r[n]==="address"&&(e[n]=vr.address.toHex(e[n]).replace(ui,"0x"));return Au.encode(r,e)}function zi(r){var e=r.match(/([a-zA-Z0-9])(\[.*\])/);return e?e[2]:""}function p0(r){return(zi(r).match(/\]\[/g)||[]).length+1}function wu(r,e){var n=[],a=function g(p){if(p&&p.type.indexOf("tuple")===0&&p.components){var b=p.components.map(function(w){return g(w)});return"tuple(".concat(b.join(","),")").concat(zi(p.type))}return/trcToken/.test(p.type)?p.type.replace(/trcToken/,"uint256"):p.type},c=function g(p){return Array.isArray(p)?(p.forEach(function(b,w){p[w]=g(b)}),p):d0(p)},u=function g(p,b,w){w>1?b.length&&b.forEach(function(x){g(p,x,w-1)}):b.length&&w&&b.forEach(function(x){d(p,x)})},d=function g(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],b=arguments.length>1?arguments[1]:void 0;p.length&&p.forEach(function(w,x){var j=w.type;if(b[x]){if(j==="address")b[x]=d0(b[x]);else if(j.match(/^([^\x5b]*)(\x5b|$)/)[0]==="address[")c(b[x]);else if(j.indexOf("tuple")===0)if(zi(j)){var J=p0(j);u(w.components,b[x],J)}else g(w.components,b[x])}})};if(r.inputs&&r.inputs.length)for(var h=0;h<r.inputs.length;h++){var l=r.inputs[h].type;l==="bool"&&e[h]==="false"&&(e[h]=!1),n.push(l.indexOf("tuple")===0?a(r.inputs[h]):l),e.length<n.length&&e.push("")}return d(r.inputs,e),(function(g){for(var p=0;p<g.length;p++){var b=g[p];/trcToken/.test(b)&&(g[p]=b.replace(/trcToken/,"uint256"))}})(n),Au.encode(n,e)}function g0(r,e){var n=function b(w){return Array.isArray(w)?(w.forEach(function(x,j){w[j]=b(x)}),w):vr.address.toHex(w)},a=function b(w,x,j){j>1?x.length&&x.forEach(function(J){b(w,J,j-1)}):x.length&&j&&x.forEach(function(J){u(w,J)})},c=function b(w){var x=w.name?" ".concat(w.name):"";if(w&&w.type.indexOf("tuple")===0&&w.components){var j=w.components.map(function(J){return b(J)});return"tuple(".concat(j.join(","),")").concat(zi(w.type)).concat(x)}return/trcToken/.test(w.type)?w.type.replace(/trcToken/,"uint256")+x:w.type+x},u=function b(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1?arguments[1]:void 0;w.length&&w.forEach(function(j,J){var we=j.type,ve=j.name;if(x[J]){if(we==="address")x[J]=vr.address.toHex(x[J]),ve&&(x[ve]=vr.address.toHex(x[ve]));else if(we.match(/^([^\x5b]*)(\x5b|$)/)[0]==="address[")n(x[J]),ve&&n(x[ve]);else if(we.indexOf("tuple")===0){if(zi(we)){var Fe=p0(we);a(j.components,x[J],Fe)}else b(j.components,x[J]);ve&&(x[ve]=x[J])}}})};if(r.outputs&&r.outputs.length>0){for(var d=[],h=0;h<r.outputs.length;h++){var l=r.outputs[h].type,g=r.outputs[h].name?" ".concat(r.outputs[h].name):"";d.push(l.indexOf("tuple")===0?c(r.outputs[h]):l+g)}(function(b){for(var w=0;w<b.length;w++){var x=b[w];/^trcToken/.test(x)&&(b[w]=x.replace(/^trcToken/,"uint256"))}})(d),e&&e.length||(e=new Uint8Array(32*r.outputs.length));var p=h0(Au.decode(d,e));return u(r.outputs,p),p}return[]}var y0=`TRON Signed Message:
|
|
23
|
+
`;function hl(r){return typeof r=="string"&&(r=mn(r)),Array.isArray(r)&&(r=new Uint8Array(r)),rr(Sr([mn(y0),mn(String(r.length)),r]))}function em(r,e){e.match(/^0x/)||(e="0x"+e);var n=new Rn(e),a=hl(r),c=n.sign(a);return kp(c)}function tm(r,e){return e.match(/^0x/)||(e="0x"+e),Ka(Zn(Ra(hl(r),e).replace(/^0x/,co)))}function m0(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);e&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),n.push.apply(n,a)}return n}function v0(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?m0(Object(n),!0).forEach(function(a){te(r,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):m0(Object(n)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(n,a))})}return r}var rm=Ve(6177),pl=Ve(8020),lr=pl.Transaction,nm=pl.Permission,om=pl.Key,ko=Ve(1791),am=ko.TransferContract,im=ko.FreezeBalanceContract,sm=ko.UnfreezeBalanceContract,um=ko.WithdrawBalanceContract,cm=ko.FreezeBalanceV2Contract,lm=ko.UnfreezeBalanceV2Contract,b0=ko.WithdrawExpireUnfreezeContract,fm=ko.DelegateResourceContract,dm=ko.UnDelegateResourceContract,Pu=Ve(6439),hm=Pu.TransferAssetContract,pm=Pu.ParticipateAssetIssueContract,T0=Pu.AssetIssueContract,gm=Pu.UpdateAssetContract,Qa=Ve(5171),ym=Qa.TriggerSmartContract,mm=Qa.ClearABIContract,vm=Qa.UpdateEnergyLimitContract,bm=Qa.UpdateSettingContract,Tm=Qa.CreateSmartContract,ei=Qa.SmartContract,ti=Ve(7764).ResourceCode,A0=Ve(7084),Am=A0.WitnessCreateContract,w0=A0.VoteWitnessContract,wm=Ve(672).UpdateBrokerageContract,Wu=Ve(956),Pm=Wu.AccountCreateContract,Wm=Wu.AccountUpdateContract,Bm=Wu.SetAccountIdContract,Cm=Wu.AccountPermissionUpdateContract,gl=Ve(3544),Em=gl.ProposalCreateContract,Mm=gl.ProposalDeleteContract,Om=gl.ProposalApproveContract,Bu=Ve(9520),Im=Bu.ExchangeCreateContract,xm=Bu.ExchangeInjectContract,km=Bu.ExchangeWithdrawContract,Sm=Bu.ExchangeTransactionContract,gt=function(r){return r&&r.length!==0?new Uint8Array(vr.address.toHex(r).match(/.{1,2}/g).map(function(e){return parseInt(e,16)})):new Uint8Array([])},wr=function(r,e,n,a){var c=new rm.Any;c.pack(r.serializeBinary(),"protocol."+n);var u=new lr.Contract;u.setType(e),u.setParameter(c),a&&u.setPermissionId(a);var d=new lr.raw;d.addContract(u);var h=new lr;return h.setRawData(d),h},P0=function(r,e,n){switch(r.type){case"TransferContract":return(function(a,c){var u=a.to_address,d=a.owner_address,h=a.amount,l=new am;return l.setToAddress(gt(u)),l.setOwnerAddress(gt(d)),l.setAmount(h),wr(l,lr.Contract.ContractType.TRANSFERCONTRACT,"TransferContract",c.Permission_id)})(e,n);case"TransferAssetContract":return(function(a,c){var u=a.to_address,d=a.owner_address,h=a.amount,l=a.asset_name,g=new hm;return g.setToAddress(gt(u)),g.setOwnerAddress(gt(d)),g.setAssetName(gt(l.replace(/^0x/,""))),g.setAmount(h),wr(g,lr.Contract.ContractType.TRANSFERASSETCONTRACT,"TransferAssetContract",c.Permission_id)})(e,n);case"ParticipateAssetIssueContract":return(function(a,c){var u=new pm;return u.setToAddress(gt(a.to_address)),u.setOwnerAddress(gt(a.owner_address)),u.setAssetName(gt(a.asset_name.replace(/^0x/,""))),u.setAmount(a.amount),wr(u,lr.Contract.ContractType.PARTICIPATEASSETISSUECONTRACT,"ParticipateAssetIssueContract",c.Permission_id)})(e,n);case"TriggerSmartContract":return(function(a,c){var u=new ym,d=a.owner_address,h=a.contract_address,l=a.parameter,g=l===void 0?"":l,p=a.function_selector,b=a.call_value,w=a.call_token_value,x=a.token_id,j=a.data;if(u.setOwnerAddress(gt(d)),u.setContractAddress(gt(h)),u.setCallValue(b),j)u.setData(gt(j));else if(p){var J=(function(we){return(arguments.length>1&&arguments[1]!==void 0&&!arguments[1]?"":"0x")+rr(_r.dist.Buffer.from(we,"utf-8")).toString().substring(2)})(p).substring(2,10)+g;u.setData(gt(J))}return x&&u.setTokenId(x),w&&u.setCallTokenValue(w),wr(u,lr.Contract.ContractType.TRIGGERSMARTCONTRACT,"TriggerSmartContract",c.Permission_id)})(e,n);case"FreezeBalanceContract":return(function(a,c){var u=new im,d=a.owner_address,h=a.frozen_balance,l=a.frozen_duration,g=a.resource,p=a.receiver_address;return u.setOwnerAddress(gt(d)),u.setFrozenBalance(h),u.setFrozenDuration(l),g&&u.setResource(ti[g]),p&&u.setReceiverAddress(gt(p)),wr(u,lr.Contract.ContractType.FREEZEBALANCECONTRACT,"FreezeBalanceContract",c.Permission_id)})(e,n);case"UnfreezeBalanceContract":return(function(a,c){var u=new sm,d=a.owner_address,h=a.resource,l=a.receiver_address;return u.setOwnerAddress(gt(d)),h&&u.setResource(ti[h]),l&&u.setReceiverAddress(gt(l)),wr(u,lr.Contract.ContractType.UNFREEZEBALANCECONTRACT,"UnfreezeBalanceContract",c.Permission_id)})(e,n);case"WithdrawBalanceContract":return(function(a,c){var u=new um,d=a.owner_address;return u.setOwnerAddress(gt(d)),wr(u,lr.Contract.ContractType.WITHDRAWBALANCECONTRACT,"WithdrawBalanceContract",c.Permission_id)})(e,n);case"FreezeBalanceV2Contract":return(function(a,c){var u=new cm,d=a.owner_address,h=a.frozen_balance,l=a.resource;return u.setOwnerAddress(gt(d)),u.setFrozenBalance(h),u.setResource(ti[l]),wr(u,lr.Contract.ContractType.FREEZEBALANCEV2CONTRACT,"FreezeBalanceV2Contract",c.Permission_id)})(e,n);case"CancelAllUnfreezeV2Contract":return(function(a,c){var u=new b0,d=a.owner_address;return u.setOwnerAddress(gt(d)),wr(u,lr.Contract.ContractType.CANCELALLUNFREEZEV2CONTRACT,"CancelAllUnfreezeV2Contract",c.Permission_id)})(e,n);case"UnfreezeBalanceV2Contract":return(function(a,c){var u=new lm,d=a.owner_address,h=a.unfreeze_balance,l=a.resource;return u.setOwnerAddress(gt(d)),u.setUnfreezeBalance(h),u.setResource(ti[l]),wr(u,lr.Contract.ContractType.UNFREEZEBALANCEV2CONTRACT,"UnfreezeBalanceV2Contract",c.Permission_id)})(e,n);case"DelegateResourceContract":return(function(a,c){var u=new fm,d=a.owner_address,h=a.receiver_address,l=a.balance,g=a.resource,p=a.lock,b=p!==void 0&&p,w=a.lock_period;return u.setOwnerAddress(gt(d)),u.setBalance(l),u.setResource(ti[g]),u.setLock(b),u.setLockPeriod(w),u.setReceiverAddress(gt(h)),wr(u,lr.Contract.ContractType.DELEGATERESOURCECONTRACT,"DelegateResourceContract",c.Permission_id)})(e,n);case"UnDelegateResourceContract":return(function(a,c){var u=new dm,d=a.owner_address,h=a.receiver_address,l=a.balance,g=a.resource;return u.setOwnerAddress(gt(d)),u.setBalance(l),u.setResource(ti[g]),u.setReceiverAddress(gt(h)),wr(u,lr.Contract.ContractType.UNDELEGATERESOURCECONTRACT,"UnDelegateResourceContract",c.Permission_id)})(e,n);case"WithdrawExpireUnfreezeContract":return(function(a,c){var u=new b0,d=a.owner_address;return u.setOwnerAddress(gt(d)),wr(u,lr.Contract.ContractType.WITHDRAWEXPIREUNFREEZECONTRACT,"WithdrawExpireUnfreezeContract",c.Permission_id)})(e,n);case"WitnessCreateContract":return(function(a,c){var u=new Am,d=a.owner_address,h=a.url;return u.setOwnerAddress(gt(d)),u.setUrl(gt(h.replace(/^0x/,""))),wr(u,lr.Contract.ContractType.WITNESSCREATECONTRACT,"WitnessCreateContract",c.Permission_id)})(e,n);case"VoteWitnessContract":return(function(a,c){var u=new w0,d=a.owner_address,h=a.votes;return u.setOwnerAddress(gt(d)),h.forEach(function(l){var g=new w0.Vote,p=l.vote_address,b=l.vote_count;g.setVoteAddress(gt(p));var w=parseInt(b);g.setVoteCount(w),u.addVotes(g)}),wr(u,lr.Contract.ContractType.VOTEWITNESSCONTRACT,"VoteWitnessContract",c.Permission_id)})(e,n);case"CreateSmartContract":return(function(a,c){var u=a!=null&&a.new_contract?v0(v0({},{owner_address:a.owner_address,call_token_value:a.call_token_value,token_id:a.token_id}),a.new_contract):a,d=u.owner_address,h=u.consume_user_resource_percent,l=u.origin_energy_limit,g=u.abi,p=u.bytecode,b=p===void 0?"":p,w=u.name,x=u.parameter,j=x===void 0?"":x,J=u.call_value,we=u.call_token_value,ve=u.token_id,Fe=u.origin_address,Ee=new Tm;Ee.setOwnerAddress(gt(d)),ve&&Ee.setTokenId(ve),we&&Ee.setCallTokenValue(we);var O=new ei;if(g){var M;M=typeof g=="string"?JSON.parse(g):(g==null?void 0:g.entrys)||[];var I=new ei.ABI,U=function(q){var ye=new ei.ABI.Entry.Param,Pe=q.indexed,de=q.name,fe=q.type;return Pe===!0&&ye.setIndexed(!0),ye.setName(de),ye.setType(fe),ye},$=M.map(function(q){var ye=q.anonymous,Pe=q.constant,de=q.name,fe=q.inputs,xe=q.outputs,z=q.type,Z=q.payable,be=q.stateMutability,Ae=new ei.ABI.Entry;return Ae.setAnonymous(ye),Ae.setConstant(Pe),Ae.setName(de),fe&&Ae.setInputsList(fe.map(function(Be){return U(Be)})),xe&&Ae.setOutputsList(xe.map(function(Be){return U(Be)})),z&&Ae.setType(ei.ABI.Entry.EntryType[z.toUpperCase()]),Ae.setPayable(Z),be&&Ae.setStatemutability(ei.ABI.Entry.StateMutabilityType[be.toUpperCase()]),Ae});I.setEntrysList($),O.setAbi(I)}if(J&&O.setCallValue(J),O.setConsumeUserResourcePercent(h),O.setOriginEnergyLimit(l),Fe||(Fe=d),O.setOriginAddress(gt(Fe)),b){var re=b.replace(/^0x/,"")+j.replace(/^0x/,"");O.setBytecode(gt(re))}return O.setName(w),Ee.setNewContract(O),wr(Ee,lr.Contract.ContractType.CREATESMARTCONTRACT,"CreateSmartContract",c.Permission_id)})(e,n);case"ClearABIContract":return(function(a,c){var u=a.contract_address,d=a.owner_address,h=new mm;return h.setOwnerAddress(gt(d)),h.setContractAddress(gt(u)),wr(h,lr.Contract.ContractType.CLEARABICONTRACT,"ClearABIContract",c.Permission_id)})(e,n);case"UpdateBrokerageContract":return(function(a,c){var u=a.brokerage,d=a.owner_address,h=new wm;return h.setOwnerAddress(gt(d)),h.setBrokerage(u),wr(h,lr.Contract.ContractType.UPDATEBROKERAGECONTRACT,"UpdateBrokerageContract",c.Permission_id)})(e,n);case"AssetIssueContract":return(function(a,c){var u=a.owner_address,d=a.name,h=a.abbr,l=a.description,g=a.url,p=a.total_supply,b=a.trx_num,w=a.num,x=a.start_time,j=a.end_time,J=a.precision,we=a.free_asset_net_limit,ve=a.public_free_asset_net_limit,Fe=a.public_free_asset_net_usage,Ee=Fe===void 0?0:Fe,O=a.public_latest_free_net_time,M=O===void 0?0:O,I=a.vote_score,U=I===void 0?0:I,$=a.frozen_supply,re=new T0;if(re.setOwnerAddress(gt(u)),d&&re.setName(gt(d.replace(/^0x/,""))),h&&re.setAbbr(gt(h.replace(/^0x/,""))),re.setTotalSupply(p),re.setNum(w),re.setEndTime(j),re.setStartTime(x),re.setTrxNum(b),re.setVoteScore(U),J&&re.setPrecision(J),M&&re.setPublicLatestFreeNetTime(M),l&&re.setDescription(gt(l.replace(/^0x/,""))),g&&re.setUrl(gt(g.replace(/^0x/,""))),re.setPublicFreeAssetNetUsage(Ee),re.setFreeAssetNetLimit(we),re.setPublicFreeAssetNetLimit(ve),$){var q=new T0.FrozenSupply;q.setFrozenAmount($.length?$[0].frozen_amount:$.frozen_amount),q.setFrozenDays($.length?$[0].frozen_days:$.frozen_days),re.addFrozenSupply(q)}return wr(re,lr.Contract.ContractType.ASSETISSUECONTRACT,"AssetIssueContract",c.Permission_id)})(e,n);case"AccountCreateContract":return(function(a,c){var u=new Pm,d=a.account_address,h=a.owner_address;return u.setOwnerAddress(gt(h)),u.setAccountAddress(gt(d.replace(/^0x/,""))),wr(u,lr.Contract.ContractType.ACCOUNTCREATECONTRACT,"AccountCreateContract",c.Permission_id)})(e,n);case"AccountUpdateContract":return(function(a,c){var u=new Wm,d=a.account_name,h=a.owner_address;return u.setOwnerAddress(gt(h)),u.setAccountName(gt(d.replace(/^0x/,""))),wr(u,lr.Contract.ContractType.ACCOUNTUPDATECONTRACT,"AccountUpdateContract",c.Permission_id)})(e,n);case"SetAccountIdContract":return(function(a,c){var u=new Bm,d=a.account_id,h=a.owner_address;return u.setOwnerAddress(gt(h)),u.setAccountId(gt(d.replace(/^0x/,""))),wr(u,lr.Contract.ContractType.SETACCOUNTIDCONTRACT,"SetAccountIdContract",c.Permission_id)})(e,n);case"ProposalCreateContract":return(function(a,c){var u=new Em,d=a.owner_address,h=a.parameters;return u.setOwnerAddress(gt(d)),h.forEach(function(l){u.getParametersMap().set(l.key,l.value)}),wr(u,lr.Contract.ContractType.PROPOSALCREATECONTRACT,"ProposalCreateContract",c.Permission_id)})(e,n);case"ProposalDeleteContract":return(function(a,c){var u=new Mm,d=a.owner_address,h=a.proposal_id;return u.setOwnerAddress(gt(d)),u.setProposalId(h),wr(u,lr.Contract.ContractType.PROPOSALDELETECONTRACT,"ProposalDeleteContract",c.Permission_id)})(e,n);case"ProposalApproveContract":return(function(a,c){var u=new Om,d=a.owner_address,h=a.proposal_id,l=a.is_add_approval;return u.setOwnerAddress(gt(d)),u.setProposalId(h),u.setIsAddApproval(l),wr(u,lr.Contract.ContractType.PROPOSALAPPROVECONTRACT,"ProposalApproveContract",c.Permission_id)})(e,n);case"ExchangeCreateContract":return(function(a,c){var u=new Im,d=a.owner_address,h=a.first_token_id,l=a.first_token_balance,g=a.second_token_id,p=a.second_token_balance;return u.setOwnerAddress(gt(d)),u.setFirstTokenId(gt(h.replace(/^0x/,""))),u.setFirstTokenBalance(l),u.setSecondTokenId(gt(g.replace(/^0x/,""))),u.setSecondTokenBalance(p),wr(u,lr.Contract.ContractType.EXCHANGECREATECONTRACT,"ExchangeCreateContract",c.Permission_id)})(e,n);case"ExchangeInjectContract":return(function(a,c){var u=new xm,d=a.owner_address,h=a.exchange_id,l=a.token_id,g=a.quant;return u.setOwnerAddress(gt(d)),u.setExchangeId(h),u.setTokenId(gt(l.replace(/^0x/,""))),u.setQuant(g),wr(u,lr.Contract.ContractType.EXCHANGEINJECTCONTRACT,"ExchangeInjectContract",c.Permission_id)})(e,n);case"ExchangeWithdrawContract":return(function(a,c){var u=new km,d=a.owner_address,h=a.exchange_id,l=a.token_id,g=a.quant;return u.setOwnerAddress(gt(d)),u.setExchangeId(h),u.setTokenId(gt(l.replace(/^0x/,""))),u.setQuant(g),wr(u,lr.Contract.ContractType.EXCHANGEWITHDRAWCONTRACT,"ExchangeWithdrawContract",c.Permission_id)})(e,n);case"ExchangeTransactionContract":return(function(a,c){var u=new Sm,d=a.owner_address,h=a.exchange_id,l=a.token_id,g=a.quant,p=a.expected;return u.setOwnerAddress(gt(d)),u.setExchangeId(h),u.setTokenId(gt(l.replace(/^0x/,""))),u.setQuant(g),u.setExpected(p),wr(u,lr.Contract.ContractType.EXCHANGETRANSACTIONCONTRACT,"ExchangeTransactionContract",c.Permission_id)})(e,n);case"UpdateSettingContract":return(function(a,c){var u=new bm,d=a.owner_address,h=a.contract_address,l=a.consume_user_resource_percent;return u.setOwnerAddress(gt(d)),u.setContractAddress(gt(h)),u.setConsumeUserResourcePercent(l),wr(u,lr.Contract.ContractType.UPDATESETTINGCONTRACT,"UpdateSettingContract",c.Permission_id)})(e,n);case"UpdateEnergyLimitContract":return(function(a,c){var u=new vm,d=a.owner_address,h=a.contract_address,l=a.origin_energy_limit;return u.setOwnerAddress(gt(d)),u.setContractAddress(gt(h)),u.setOriginEnergyLimit(l),wr(u,lr.Contract.ContractType.UPDATEENERGYLIMITCONTRACT,"UpdateEnergyLimitContract",c.Permission_id)})(e,n);case"AccountPermissionUpdateContract":return(function(a,c){var u=new Cm,d=a.owner_address,h=a.owner,l=a.witness,g=a.actives;u.setOwnerAddress(gt(d));var p=function(b){var w=new nm,x=b.type,j=b.id,J=b.permission_name,we=b.threshold,ve=b.parentId,Fe=b.operations,Ee=b.keys;return w.setType((function(O){return isNaN(O)?O==="Active"?2:O==="Witness"?1:0:O})(x)),w.setId(j),w.setPermissionName(J),w.setThreshold(we),ve&&w.setParentId(ve),Fe&&w.setOperations(gt(Fe)),Ee&&w.setKeysList(Ee.map(function(O){var M=new om;return M.setAddress(gt(O.address)),M.setWeight(O.weight),M})),w};return h&&u.setOwner(p(h)),l&&u.setWitness(p(l)),g&&(Array.isArray(g)?u.setActivesList(g.map(function(b){return p(b)})):u.setActivesList([p(g)])),wr(u,lr.Contract.ContractType.ACCOUNTPERMISSIONUPDATECONTRACT,"AccountPermissionUpdateContract",c.Permission_id)})(e,n);case"UpdateAssetContract":return(function(a,c){var u=new gm,d=a.owner_address,h=a.description,l=a.url,g=a.new_limit,p=a.new_public_limit;return u.setOwnerAddress(gt(d)),h&&u.setDescription(gt(h.replace(/^0x/,""))),l&&u.setUrl(gt(l.replace(/^0x/,""))),g&&u.setNewLimit(g),p&&u.setNewPublicLimit(p),wr(u,lr.Contract.ContractType.UPDATEASSETCONTRACT,"UpdateAssetContract",c.Permission_id)})(e,n)}},yl=function(r){var e=r.raw_data,n=e.contract[0],a=n.parameter.value,c={Permission_id:n.Permission_id},u=P0(n,a,c),d=u.getRawData();return d.setRefBlockBytes(gt(e.ref_block_bytes)),d.setRefBlockHash(gt(e.ref_block_hash)),e.data&&d.setData(gt(e.data)),e.fee_limit&&d.setFeeLimit(e.fee_limit),e.expiration&&d.setExpiration(e.expiration),e.timestamp&&d.setTimestamp(e.timestamp),u.setRawData(d),u},W0=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=r.raw_data,c=a.contract[0],u=P0(c,e,{Permission_id:e==null?void 0:e.Permission_id}),d=u.getRawData();return d.setRefBlockBytes(gt(a.ref_block_bytes)),d.setRefBlockHash(gt(a.ref_block_hash)),n.data&&d.setData(gt(n.data.replace(/^0x/,""))),(n.fee_limit||e.fee_limit)&&d.setFeeLimit(n.fee_limit||e.fee_limit),a.expiration&&d.setExpiration(a.expiration),a.timestamp&&d.setTimestamp(a.timestamp),u.setRawData(d),u},B0=function(r,e){var n=e.getRawData().serializeBinary(),a=Wn(n),c=cn(n);return a.toLowerCase()===r.raw_data_hex.toLowerCase()&&c.replace(/^0x/,"").toLowerCase()===r.txID.replace(/^0x/,"").toLowerCase()},C0=function(r){return Wn(r.getRawData().serializeBinary())},Cu=function(r){var e=yl(r);return B0(r,e)},ml=function(r,e,n){var a=W0(r,e,n);return B0(r,a)},E0=function(r){return cn(r.getRawData().serializeBinary())},Fm=Ve(8966),Rm=Ve.n(Fm),_m=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,vl=Math.ceil,mo=Math.floor,wn="[BigNumber Error] ",M0=wn+"Number primitive has more than 15 significant digits: ",io=1e14,Qt=14,bl=9007199254740991,Tl=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Qo=1e7,qr=1e9;function Gn(r){var e=0|r;return r>0||r===e?e:e-1}function $n(r){for(var e,n,a=1,c=r.length,u=r[0]+"";a<c;){for(e=r[a++]+"",n=Qt-e.length;n--;e="0"+e);u+=e}for(c=u.length;u.charCodeAt(--c)===48;);return u.slice(0,c+1||1)}function ri(r,e){var n,a,c=r.c,u=e.c,d=r.s,h=e.s,l=r.e,g=e.e;if(!d||!h)return null;if(n=c&&!c[0],a=u&&!u[0],n||a)return n?a?0:-h:d;if(d!=h)return d;if(n=d<0,a=l==g,!c||!u)return a?0:!c^n?1:-1;if(!a)return l>g^n?1:-1;for(h=(l=c.length)<(g=u.length)?l:g,d=0;d<h;d++)if(c[d]!=u[d])return c[d]>u[d]^n?1:-1;return l==g?0:l>g^n?1:-1}function zr(r,e,n,a){if(r<e||r>n||r!==mo(r))throw Error(wn+(a||"Argument")+(typeof r=="number"?r<e||r>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(r))}function Eu(r){var e=r.c.length-1;return Gn(r.e/Qt)==e&&r.c[e]%2!=0}function Mu(r,e){return(r.length>1?r.charAt(0)+"."+r.slice(1):r)+(e<0?"e":"e+")+e}function So(r,e,n){var a,c;if(e<0){for(c=n+".";++e;c+=n);r=c+r}else if(++e>(a=r.length)){for(c=n,e-=a;--e;c+=n);r+=c}else e<a&&(r=r.slice(0,e)+"."+r.slice(e));return r}var Nm=(function r(e){var n,a,c,u,d,h,l,g,p,b,w=q.prototype={constructor:q,toString:null,valueOf:null},x=new q(1),j=20,J=4,we=-7,ve=21,Fe=-1e7,Ee=1e7,O=!1,M=1,I=0,U={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},$="0123456789abcdefghijklmnopqrstuvwxyz",re=!0;function q(z,Z){var be,Ae,Be,Re,je,Ne,Le,rt,qe=this;if(!(qe instanceof q))return new q(z,Z);if(Z==null){if(z&&z._isBigNumber===!0)return qe.s=z.s,void(!z.c||z.e>Ee?qe.c=qe.e=null:z.e<Fe?qe.c=[qe.e=0]:(qe.e=z.e,qe.c=z.c.slice()));if((Ne=typeof z=="number")&&0*z==0){if(qe.s=1/z<0?(z=-z,-1):1,z===~~z){for(Re=0,je=z;je>=10;je/=10,Re++);return void(Re>Ee?qe.c=qe.e=null:(qe.e=Re,qe.c=[z]))}rt=String(z)}else{if(!_m.test(rt=String(z)))return c(qe,rt,Ne);qe.s=rt.charCodeAt(0)==45?(rt=rt.slice(1),-1):1}(Re=rt.indexOf("."))>-1&&(rt=rt.replace(".","")),(je=rt.search(/e/i))>0?(Re<0&&(Re=je),Re+=+rt.slice(je+1),rt=rt.substring(0,je)):Re<0&&(Re=rt.length)}else{if(zr(Z,2,$.length,"Base"),Z==10&&re)return fe(qe=new q(z),j+qe.e+1,J);if(rt=String(z),Ne=typeof z=="number"){if(0*z!=0)return c(qe,rt,Ne,Z);if(qe.s=1/z<0?(rt=rt.slice(1),-1):1,q.DEBUG&&rt.replace(/^0\.0*|\./,"").length>15)throw Error(M0+z)}else qe.s=rt.charCodeAt(0)===45?(rt=rt.slice(1),-1):1;for(be=$.slice(0,Z),Re=je=0,Le=rt.length;je<Le;je++)if(be.indexOf(Ae=rt.charAt(je))<0){if(Ae=="."){if(je>Re){Re=Le;continue}}else if(!Be&&(rt==rt.toUpperCase()&&(rt=rt.toLowerCase())||rt==rt.toLowerCase()&&(rt=rt.toUpperCase()))){Be=!0,je=-1,Re=0;continue}return c(qe,String(z),Ne,Z)}Ne=!1,(Re=(rt=a(rt,Z,10,qe.s)).indexOf("."))>-1?rt=rt.replace(".",""):Re=rt.length}for(je=0;rt.charCodeAt(je)===48;je++);for(Le=rt.length;rt.charCodeAt(--Le)===48;);if(rt=rt.slice(je,++Le)){if(Le-=je,Ne&&q.DEBUG&&Le>15&&(z>bl||z!==mo(z)))throw Error(M0+qe.s*z);if((Re=Re-je-1)>Ee)qe.c=qe.e=null;else if(Re<Fe)qe.c=[qe.e=0];else{if(qe.e=Re,qe.c=[],je=(Re+1)%Qt,Re<0&&(je+=Qt),je<Le){for(je&&qe.c.push(+rt.slice(0,je)),Le-=Qt;je<Le;)qe.c.push(+rt.slice(je,je+=Qt));je=Qt-(rt=rt.slice(je)).length}else je-=Le;for(;je--;rt+="0");qe.c.push(+rt)}}else qe.c=[qe.e=0]}function ye(z,Z,be,Ae){var Be,Re,je,Ne,Le;if(be==null?be=J:zr(be,0,8),!z.c)return z.toString();if(Be=z.c[0],je=z.e,Z==null)Le=$n(z.c),Le=Ae==1||Ae==2&&(je<=we||je>=ve)?Mu(Le,je):So(Le,je,"0");else if(Re=(z=fe(new q(z),Z,be)).e,Ne=(Le=$n(z.c)).length,Ae==1||Ae==2&&(Z<=Re||Re<=we)){for(;Ne<Z;Le+="0",Ne++);Le=Mu(Le,Re)}else if(Z-=je,Le=So(Le,Re,"0"),Re+1>Ne){if(--Z>0)for(Le+=".";Z--;Le+="0");}else if((Z+=Re-Ne)>0)for(Re+1==Ne&&(Le+=".");Z--;Le+="0");return z.s<0&&Be?"-"+Le:Le}function Pe(z,Z){for(var be,Ae=1,Be=new q(z[0]);Ae<z.length;Ae++){if(!(be=new q(z[Ae])).s){Be=be;break}Z.call(Be,be)&&(Be=be)}return Be}function de(z,Z,be){for(var Ae=1,Be=Z.length;!Z[--Be];Z.pop());for(Be=Z[0];Be>=10;Be/=10,Ae++);return(be=Ae+be*Qt-1)>Ee?z.c=z.e=null:be<Fe?z.c=[z.e=0]:(z.e=be,z.c=Z),z}function fe(z,Z,be,Ae){var Be,Re,je,Ne,Le,rt,qe,ht=z.c,Bt=Tl;if(ht){e:{for(Be=1,Ne=ht[0];Ne>=10;Ne/=10,Be++);if((Re=Z-Be)<0)Re+=Qt,je=Z,qe=(Le=ht[rt=0])/Bt[Be-je-1]%10|0;else if((rt=vl((Re+1)/Qt))>=ht.length){if(!Ae)break e;for(;ht.length<=rt;ht.push(0));Le=qe=0,Be=1,je=(Re%=Qt)-Qt+1}else{for(Le=Ne=ht[rt],Be=1;Ne>=10;Ne/=10,Be++);qe=(je=(Re%=Qt)-Qt+Be)<0?0:Le/Bt[Be-je-1]%10|0}if(Ae=Ae||Z<0||ht[rt+1]!=null||(je<0?Le:Le%Bt[Be-je-1]),Ae=be<4?(qe||Ae)&&(be==0||be==(z.s<0?3:2)):qe>5||qe==5&&(be==4||Ae||be==6&&(Re>0?je>0?Le/Bt[Be-je]:0:ht[rt-1])%10&1||be==(z.s<0?8:7)),Z<1||!ht[0])return ht.length=0,Ae?(Z-=z.e+1,ht[0]=Bt[(Qt-Z%Qt)%Qt],z.e=-Z||0):ht[0]=z.e=0,z;if(Re==0?(ht.length=rt,Ne=1,rt--):(ht.length=rt+1,Ne=Bt[Qt-Re],ht[rt]=je>0?mo(Le/Bt[Be-je]%Bt[je])*Ne:0),Ae)for(;;){if(rt==0){for(Re=1,je=ht[0];je>=10;je/=10,Re++);for(je=ht[0]+=Ne,Ne=1;je>=10;je/=10,Ne++);Re!=Ne&&(z.e++,ht[0]==io&&(ht[0]=1));break}if(ht[rt]+=Ne,ht[rt]!=io)break;ht[rt--]=0,Ne=1}for(Re=ht.length;ht[--Re]===0;ht.pop());}z.e>Ee?z.c=z.e=null:z.e<Fe&&(z.c=[z.e=0])}return z}function xe(z){var Z,be=z.e;return be===null?z.toString():(Z=$n(z.c),Z=be<=we||be>=ve?Mu(Z,be):So(Z,be,"0"),z.s<0?"-"+Z:Z)}return q.clone=r,q.ROUND_UP=0,q.ROUND_DOWN=1,q.ROUND_CEIL=2,q.ROUND_FLOOR=3,q.ROUND_HALF_UP=4,q.ROUND_HALF_DOWN=5,q.ROUND_HALF_EVEN=6,q.ROUND_HALF_CEIL=7,q.ROUND_HALF_FLOOR=8,q.EUCLID=9,q.config=q.set=function(z){var Z,be;if(z!=null){if(typeof z!="object")throw Error(wn+"Object expected: "+z);if(z.hasOwnProperty(Z="DECIMAL_PLACES")&&(zr(be=z[Z],0,qr,Z),j=be),z.hasOwnProperty(Z="ROUNDING_MODE")&&(zr(be=z[Z],0,8,Z),J=be),z.hasOwnProperty(Z="EXPONENTIAL_AT")&&((be=z[Z])&&be.pop?(zr(be[0],-qr,0,Z),zr(be[1],0,qr,Z),we=be[0],ve=be[1]):(zr(be,-qr,qr,Z),we=-(ve=be<0?-be:be))),z.hasOwnProperty(Z="RANGE"))if((be=z[Z])&&be.pop)zr(be[0],-qr,-1,Z),zr(be[1],1,qr,Z),Fe=be[0],Ee=be[1];else{if(zr(be,-qr,qr,Z),!be)throw Error(wn+Z+" cannot be zero: "+be);Fe=-(Ee=be<0?-be:be)}if(z.hasOwnProperty(Z="CRYPTO")){if((be=z[Z])!==!!be)throw Error(wn+Z+" not true or false: "+be);if(be){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw O=!be,Error(wn+"crypto unavailable");O=be}else O=be}if(z.hasOwnProperty(Z="MODULO_MODE")&&(zr(be=z[Z],0,9,Z),M=be),z.hasOwnProperty(Z="POW_PRECISION")&&(zr(be=z[Z],0,qr,Z),I=be),z.hasOwnProperty(Z="FORMAT")){if(typeof(be=z[Z])!="object")throw Error(wn+Z+" not an object: "+be);U=be}if(z.hasOwnProperty(Z="ALPHABET")){if(typeof(be=z[Z])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(be))throw Error(wn+Z+" invalid: "+be);re=be.slice(0,10)=="0123456789",$=be}}return{DECIMAL_PLACES:j,ROUNDING_MODE:J,EXPONENTIAL_AT:[we,ve],RANGE:[Fe,Ee],CRYPTO:O,MODULO_MODE:M,POW_PRECISION:I,FORMAT:U,ALPHABET:$}},q.isBigNumber=function(z){if(!z||z._isBigNumber!==!0)return!1;if(!q.DEBUG)return!0;var Z,be,Ae=z.c,Be=z.e,Re=z.s;e:if({}.toString.call(Ae)=="[object Array]"){if((Re===1||Re===-1)&&Be>=-qr&&Be<=qr&&Be===mo(Be)){if(Ae[0]===0){if(Be===0&&Ae.length===1)return!0;break e}if((Z=(Be+1)%Qt)<1&&(Z+=Qt),String(Ae[0]).length==Z){for(Z=0;Z<Ae.length;Z++)if((be=Ae[Z])<0||be>=io||be!==mo(be))break e;if(be!==0)return!0}}}else if(Ae===null&&Be===null&&(Re===null||Re===1||Re===-1))return!0;throw Error(wn+"Invalid BigNumber: "+z)},q.maximum=q.max=function(){return Pe(arguments,w.lt)},q.minimum=q.min=function(){return Pe(arguments,w.gt)},q.random=(u=9007199254740992,d=Math.random()*u&2097151?function(){return mo(Math.random()*u)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(z){var Z,be,Ae,Be,Re,je=0,Ne=[],Le=new q(x);if(z==null?z=j:zr(z,0,qr),Be=vl(z/Qt),O)if(crypto.getRandomValues){for(Z=crypto.getRandomValues(new Uint32Array(Be*=2));je<Be;)(Re=131072*Z[je]+(Z[je+1]>>>11))>=9e15?(be=crypto.getRandomValues(new Uint32Array(2)),Z[je]=be[0],Z[je+1]=be[1]):(Ne.push(Re%1e14),je+=2);je=Be/2}else{if(!crypto.randomBytes)throw O=!1,Error(wn+"crypto unavailable");for(Z=crypto.randomBytes(Be*=7);je<Be;)(Re=281474976710656*(31&Z[je])+1099511627776*Z[je+1]+4294967296*Z[je+2]+16777216*Z[je+3]+(Z[je+4]<<16)+(Z[je+5]<<8)+Z[je+6])>=9e15?crypto.randomBytes(7).copy(Z,je):(Ne.push(Re%1e14),je+=7);je=Be/7}if(!O)for(;je<Be;)(Re=d())<9e15&&(Ne[je++]=Re%1e14);for(Be=Ne[--je],z%=Qt,Be&&z&&(Re=Tl[Qt-z],Ne[je]=mo(Be/Re)*Re);Ne[je]===0;Ne.pop(),je--);if(je<0)Ne=[Ae=0];else{for(Ae=-1;Ne[0]===0;Ne.splice(0,1),Ae-=Qt);for(je=1,Re=Ne[0];Re>=10;Re/=10,je++);je<Qt&&(Ae-=Qt-je)}return Le.e=Ae,Le.c=Ne,Le}),q.sum=function(){for(var z=1,Z=arguments,be=new q(Z[0]);z<Z.length;)be=be.plus(Z[z++]);return be},a=(function(){var z="0123456789";function Z(be,Ae,Be,Re){for(var je,Ne,Le=[0],rt=0,qe=be.length;rt<qe;){for(Ne=Le.length;Ne--;Le[Ne]*=Ae);for(Le[0]+=Re.indexOf(be.charAt(rt++)),je=0;je<Le.length;je++)Le[je]>Be-1&&(Le[je+1]==null&&(Le[je+1]=0),Le[je+1]+=Le[je]/Be|0,Le[je]%=Be)}return Le.reverse()}return function(be,Ae,Be,Re,je){var Ne,Le,rt,qe,ht,Bt,Nt,pr,nr=be.indexOf("."),Zr=j,Mr=J;for(nr>=0&&(qe=I,I=0,be=be.replace(".",""),Bt=(pr=new q(Ae)).pow(be.length-nr),I=qe,pr.c=Z(So($n(Bt.c),Bt.e,"0"),10,Be,z),pr.e=pr.c.length),rt=qe=(Nt=Z(be,Ae,Be,je?(Ne=$,z):(Ne=z,$))).length;Nt[--qe]==0;Nt.pop());if(!Nt[0])return Ne.charAt(0);if(nr<0?--rt:(Bt.c=Nt,Bt.e=rt,Bt.s=Re,Nt=(Bt=n(Bt,pr,Zr,Mr,Be)).c,ht=Bt.r,rt=Bt.e),nr=Nt[Le=rt+Zr+1],qe=Be/2,ht=ht||Le<0||Nt[Le+1]!=null,ht=Mr<4?(nr!=null||ht)&&(Mr==0||Mr==(Bt.s<0?3:2)):nr>qe||nr==qe&&(Mr==4||ht||Mr==6&&1&Nt[Le-1]||Mr==(Bt.s<0?8:7)),Le<1||!Nt[0])be=ht?So(Ne.charAt(1),-Zr,Ne.charAt(0)):Ne.charAt(0);else{if(Nt.length=Le,ht)for(--Be;++Nt[--Le]>Be;)Nt[Le]=0,Le||(++rt,Nt=[1].concat(Nt));for(qe=Nt.length;!Nt[--qe];);for(nr=0,be="";nr<=qe;be+=Ne.charAt(Nt[nr++]));be=So(be,rt,Ne.charAt(0))}return be}})(),n=(function(){function z(Ae,Be,Re){var je,Ne,Le,rt,qe=0,ht=Ae.length,Bt=Be%Qo,Nt=Be/Qo|0;for(Ae=Ae.slice();ht--;)qe=((Ne=Bt*(Le=Ae[ht]%Qo)+(je=Nt*Le+(rt=Ae[ht]/Qo|0)*Bt)%Qo*Qo+qe)/Re|0)+(je/Qo|0)+Nt*rt,Ae[ht]=Ne%Re;return qe&&(Ae=[qe].concat(Ae)),Ae}function Z(Ae,Be,Re,je){var Ne,Le;if(Re!=je)Le=Re>je?1:-1;else for(Ne=Le=0;Ne<Re;Ne++)if(Ae[Ne]!=Be[Ne]){Le=Ae[Ne]>Be[Ne]?1:-1;break}return Le}function be(Ae,Be,Re,je){for(var Ne=0;Re--;)Ae[Re]-=Ne,Ne=Ae[Re]<Be[Re]?1:0,Ae[Re]=Ne*je+Ae[Re]-Be[Re];for(;!Ae[0]&&Ae.length>1;Ae.splice(0,1));}return function(Ae,Be,Re,je,Ne){var Le,rt,qe,ht,Bt,Nt,pr,nr,Zr,Mr,Rr,on,Iu,Cl,El,vo,Gi,Hn=Ae.s==Be.s?1:-1,gn=Ae.c,Vr=Be.c;if(!(gn&&gn[0]&&Vr&&Vr[0]))return new q(Ae.s&&Be.s&&(gn?!Vr||gn[0]!=Vr[0]:Vr)?gn&&gn[0]==0||!Vr?0*Hn:Hn/0:NaN);for(Zr=(nr=new q(Hn)).c=[],Hn=Re+(rt=Ae.e-Be.e)+1,Ne||(Ne=io,rt=Gn(Ae.e/Qt)-Gn(Be.e/Qt),Hn=Hn/Qt|0),qe=0;Vr[qe]==(gn[qe]||0);qe++);if(Vr[qe]>(gn[qe]||0)&&rt--,Hn<0)Zr.push(1),ht=!0;else{for(Cl=gn.length,vo=Vr.length,qe=0,Hn+=2,(Bt=mo(Ne/(Vr[0]+1)))>1&&(Vr=z(Vr,Bt,Ne),gn=z(gn,Bt,Ne),vo=Vr.length,Cl=gn.length),Iu=vo,Rr=(Mr=gn.slice(0,vo)).length;Rr<vo;Mr[Rr++]=0);Gi=Vr.slice(),Gi=[0].concat(Gi),El=Vr[0],Vr[1]>=Ne/2&&El++;do{if(Bt=0,(Le=Z(Vr,Mr,vo,Rr))<0){if(on=Mr[0],vo!=Rr&&(on=on*Ne+(Mr[1]||0)),(Bt=mo(on/El))>1)for(Bt>=Ne&&(Bt=Ne-1),pr=(Nt=z(Vr,Bt,Ne)).length,Rr=Mr.length;Z(Nt,Mr,pr,Rr)==1;)Bt--,be(Nt,vo<pr?Gi:Vr,pr,Ne),pr=Nt.length,Le=1;else Bt==0&&(Le=Bt=1),pr=(Nt=Vr.slice()).length;if(pr<Rr&&(Nt=[0].concat(Nt)),be(Mr,Nt,Rr,Ne),Rr=Mr.length,Le==-1)for(;Z(Vr,Mr,vo,Rr)<1;)Bt++,be(Mr,vo<Rr?Gi:Vr,Rr,Ne),Rr=Mr.length}else Le===0&&(Bt++,Mr=[0]);Zr[qe++]=Bt,Mr[0]?Mr[Rr++]=gn[Iu]||0:(Mr=[gn[Iu]],Rr=1)}while((Iu++<Cl||Mr[0]!=null)&&Hn--);ht=Mr[0]!=null,Zr[0]||Zr.splice(0,1)}if(Ne==io){for(qe=1,Hn=Zr[0];Hn>=10;Hn/=10,qe++);fe(nr,Re+(nr.e=qe+rt*Qt-1)+1,je,ht)}else nr.e=rt,nr.r=+ht;return nr}})(),h=/^(-?)0([xbo])(?=\w[\w.]*$)/i,l=/^([^.]+)\.$/,g=/^\.([^.]+)$/,p=/^-?(Infinity|NaN)$/,b=/^\s*\+(?=[\w.])|^\s+|\s+$/g,c=function(z,Z,be,Ae){var Be,Re=be?Z:Z.replace(b,"");if(p.test(Re))z.s=isNaN(Re)?null:Re<0?-1:1;else{if(!be&&(Re=Re.replace(h,function(je,Ne,Le){return Be=(Le=Le.toLowerCase())=="x"?16:Le=="b"?2:8,Ae&&Ae!=Be?je:Ne}),Ae&&(Be=Ae,Re=Re.replace(l,"$1").replace(g,"0.$1")),Z!=Re))return new q(Re,Be);if(q.DEBUG)throw Error(wn+"Not a"+(Ae?" base "+Ae:"")+" number: "+Z);z.s=null}z.c=z.e=null},w.absoluteValue=w.abs=function(){var z=new q(this);return z.s<0&&(z.s=1),z},w.comparedTo=function(z,Z){return ri(this,new q(z,Z))},w.decimalPlaces=w.dp=function(z,Z){var be,Ae,Be,Re=this;if(z!=null)return zr(z,0,qr),Z==null?Z=J:zr(Z,0,8),fe(new q(Re),z+Re.e+1,Z);if(!(be=Re.c))return null;if(Ae=((Be=be.length-1)-Gn(this.e/Qt))*Qt,Be=be[Be])for(;Be%10==0;Be/=10,Ae--);return Ae<0&&(Ae=0),Ae},w.dividedBy=w.div=function(z,Z){return n(this,new q(z,Z),j,J)},w.dividedToIntegerBy=w.idiv=function(z,Z){return n(this,new q(z,Z),0,1)},w.exponentiatedBy=w.pow=function(z,Z){var be,Ae,Be,Re,je,Ne,Le,rt,qe=this;if((z=new q(z)).c&&!z.isInteger())throw Error(wn+"Exponent not an integer: "+xe(z));if(Z!=null&&(Z=new q(Z)),je=z.e>14,!qe.c||!qe.c[0]||qe.c[0]==1&&!qe.e&&qe.c.length==1||!z.c||!z.c[0])return rt=new q(Math.pow(+xe(qe),je?z.s*(2-Eu(z)):+xe(z))),Z?rt.mod(Z):rt;if(Ne=z.s<0,Z){if(Z.c?!Z.c[0]:!Z.s)return new q(NaN);(Ae=!Ne&&qe.isInteger()&&Z.isInteger())&&(qe=qe.mod(Z))}else{if(z.e>9&&(qe.e>0||qe.e<-1||(qe.e==0?qe.c[0]>1||je&&qe.c[1]>=24e7:qe.c[0]<8e13||je&&qe.c[0]<=9999975e7)))return Re=qe.s<0&&Eu(z)?-0:0,qe.e>-1&&(Re=1/Re),new q(Ne?1/Re:Re);I&&(Re=vl(I/Qt+2))}for(je?(be=new q(.5),Ne&&(z.s=1),Le=Eu(z)):Le=(Be=Math.abs(+xe(z)))%2,rt=new q(x);;){if(Le){if(!(rt=rt.times(qe)).c)break;Re?rt.c.length>Re&&(rt.c.length=Re):Ae&&(rt=rt.mod(Z))}if(Be){if((Be=mo(Be/2))===0)break;Le=Be%2}else if(fe(z=z.times(be),z.e+1,1),z.e>14)Le=Eu(z);else{if((Be=+xe(z))==0)break;Le=Be%2}qe=qe.times(qe),Re?qe.c&&qe.c.length>Re&&(qe.c.length=Re):Ae&&(qe=qe.mod(Z))}return Ae?rt:(Ne&&(rt=x.div(rt)),Z?rt.mod(Z):Re?fe(rt,I,J,void 0):rt)},w.integerValue=function(z){var Z=new q(this);return z==null?z=J:zr(z,0,8),fe(Z,Z.e+1,z)},w.isEqualTo=w.eq=function(z,Z){return ri(this,new q(z,Z))===0},w.isFinite=function(){return!!this.c},w.isGreaterThan=w.gt=function(z,Z){return ri(this,new q(z,Z))>0},w.isGreaterThanOrEqualTo=w.gte=function(z,Z){return(Z=ri(this,new q(z,Z)))===1||Z===0},w.isInteger=function(){return!!this.c&&Gn(this.e/Qt)>this.c.length-2},w.isLessThan=w.lt=function(z,Z){return ri(this,new q(z,Z))<0},w.isLessThanOrEqualTo=w.lte=function(z,Z){return(Z=ri(this,new q(z,Z)))===-1||Z===0},w.isNaN=function(){return!this.s},w.isNegative=function(){return this.s<0},w.isPositive=function(){return this.s>0},w.isZero=function(){return!!this.c&&this.c[0]==0},w.minus=function(z,Z){var be,Ae,Be,Re,je=this,Ne=je.s;if(Z=(z=new q(z,Z)).s,!Ne||!Z)return new q(NaN);if(Ne!=Z)return z.s=-Z,je.plus(z);var Le=je.e/Qt,rt=z.e/Qt,qe=je.c,ht=z.c;if(!Le||!rt){if(!qe||!ht)return qe?(z.s=-Z,z):new q(ht?je:NaN);if(!qe[0]||!ht[0])return ht[0]?(z.s=-Z,z):new q(qe[0]?je:J==3?-0:0)}if(Le=Gn(Le),rt=Gn(rt),qe=qe.slice(),Ne=Le-rt){for((Re=Ne<0)?(Ne=-Ne,Be=qe):(rt=Le,Be=ht),Be.reverse(),Z=Ne;Z--;Be.push(0));Be.reverse()}else for(Ae=(Re=(Ne=qe.length)<(Z=ht.length))?Ne:Z,Ne=Z=0;Z<Ae;Z++)if(qe[Z]!=ht[Z]){Re=qe[Z]<ht[Z];break}if(Re&&(Be=qe,qe=ht,ht=Be,z.s=-z.s),(Z=(Ae=ht.length)-(be=qe.length))>0)for(;Z--;qe[be++]=0);for(Z=io-1;Ae>Ne;){if(qe[--Ae]<ht[Ae]){for(be=Ae;be&&!qe[--be];qe[be]=Z);--qe[be],qe[Ae]+=io}qe[Ae]-=ht[Ae]}for(;qe[0]==0;qe.splice(0,1),--rt);return qe[0]?de(z,qe,rt):(z.s=J==3?-1:1,z.c=[z.e=0],z)},w.modulo=w.mod=function(z,Z){var be,Ae,Be=this;return z=new q(z,Z),!Be.c||!z.s||z.c&&!z.c[0]?new q(NaN):!z.c||Be.c&&!Be.c[0]?new q(Be):(M==9?(Ae=z.s,z.s=1,be=n(Be,z,0,3),z.s=Ae,be.s*=Ae):be=n(Be,z,0,M),(z=Be.minus(be.times(z))).c[0]||M!=1||(z.s=Be.s),z)},w.multipliedBy=w.times=function(z,Z){var be,Ae,Be,Re,je,Ne,Le,rt,qe,ht,Bt,Nt,pr,nr,Zr,Mr=this,Rr=Mr.c,on=(z=new q(z,Z)).c;if(!(Rr&&on&&Rr[0]&&on[0]))return!Mr.s||!z.s||Rr&&!Rr[0]&&!on||on&&!on[0]&&!Rr?z.c=z.e=z.s=null:(z.s*=Mr.s,Rr&&on?(z.c=[0],z.e=0):z.c=z.e=null),z;for(Ae=Gn(Mr.e/Qt)+Gn(z.e/Qt),z.s*=Mr.s,(Le=Rr.length)<(ht=on.length)&&(pr=Rr,Rr=on,on=pr,Be=Le,Le=ht,ht=Be),Be=Le+ht,pr=[];Be--;pr.push(0));for(nr=io,Zr=Qo,Be=ht;--Be>=0;){for(be=0,Bt=on[Be]%Zr,Nt=on[Be]/Zr|0,Re=Be+(je=Le);Re>Be;)be=((rt=Bt*(rt=Rr[--je]%Zr)+(Ne=Nt*rt+(qe=Rr[je]/Zr|0)*Bt)%Zr*Zr+pr[Re]+be)/nr|0)+(Ne/Zr|0)+Nt*qe,pr[Re--]=rt%nr;pr[Re]=be}return be?++Ae:pr.splice(0,1),de(z,pr,Ae)},w.negated=function(){var z=new q(this);return z.s=-z.s||null,z},w.plus=function(z,Z){var be,Ae=this,Be=Ae.s;if(Z=(z=new q(z,Z)).s,!Be||!Z)return new q(NaN);if(Be!=Z)return z.s=-Z,Ae.minus(z);var Re=Ae.e/Qt,je=z.e/Qt,Ne=Ae.c,Le=z.c;if(!Re||!je){if(!Ne||!Le)return new q(Be/0);if(!Ne[0]||!Le[0])return Le[0]?z:new q(Ne[0]?Ae:0*Be)}if(Re=Gn(Re),je=Gn(je),Ne=Ne.slice(),Be=Re-je){for(Be>0?(je=Re,be=Le):(Be=-Be,be=Ne),be.reverse();Be--;be.push(0));be.reverse()}for((Be=Ne.length)-(Z=Le.length)<0&&(be=Le,Le=Ne,Ne=be,Z=Be),Be=0;Z;)Be=(Ne[--Z]=Ne[Z]+Le[Z]+Be)/io|0,Ne[Z]=io===Ne[Z]?0:Ne[Z]%io;return Be&&(Ne=[Be].concat(Ne),++je),de(z,Ne,je)},w.precision=w.sd=function(z,Z){var be,Ae,Be,Re=this;if(z!=null&&z!==!!z)return zr(z,1,qr),Z==null?Z=J:zr(Z,0,8),fe(new q(Re),z,Z);if(!(be=Re.c))return null;if(Ae=(Be=be.length-1)*Qt+1,Be=be[Be]){for(;Be%10==0;Be/=10,Ae--);for(Be=be[0];Be>=10;Be/=10,Ae++);}return z&&Re.e+1>Ae&&(Ae=Re.e+1),Ae},w.shiftedBy=function(z){return zr(z,-bl,bl),this.times("1e"+z)},w.squareRoot=w.sqrt=function(){var z,Z,be,Ae,Be,Re=this,je=Re.c,Ne=Re.s,Le=Re.e,rt=j+4,qe=new q("0.5");if(Ne!==1||!je||!je[0])return new q(!Ne||Ne<0&&(!je||je[0])?NaN:je?Re:1/0);if((Ne=Math.sqrt(+xe(Re)))==0||Ne==1/0?(((Z=$n(je)).length+Le)%2==0&&(Z+="0"),Ne=Math.sqrt(+Z),Le=Gn((Le+1)/2)-(Le<0||Le%2),be=new q(Z=Ne==1/0?"5e"+Le:(Z=Ne.toExponential()).slice(0,Z.indexOf("e")+1)+Le)):be=new q(Ne+""),be.c[0]){for((Ne=(Le=be.e)+rt)<3&&(Ne=0);;)if(Be=be,be=qe.times(Be.plus(n(Re,Be,rt,1))),$n(Be.c).slice(0,Ne)===(Z=$n(be.c)).slice(0,Ne)){if(be.e<Le&&--Ne,(Z=Z.slice(Ne-3,Ne+1))!="9999"&&(Ae||Z!="4999")){+Z&&(+Z.slice(1)||Z.charAt(0)!="5")||(fe(be,be.e+j+2,1),z=!be.times(be).eq(Re));break}if(!Ae&&(fe(Be,Be.e+j+2,0),Be.times(Be).eq(Re))){be=Be;break}rt+=4,Ne+=4,Ae=1}}return fe(be,be.e+j+1,J,z)},w.toExponential=function(z,Z){return z!=null&&(zr(z,0,qr),z++),ye(this,z,Z,1)},w.toFixed=function(z,Z){return z!=null&&(zr(z,0,qr),z=z+this.e+1),ye(this,z,Z)},w.toFormat=function(z,Z,be){var Ae,Be=this;if(be==null)z!=null&&Z&&typeof Z=="object"?(be=Z,Z=null):z&&typeof z=="object"?(be=z,z=Z=null):be=U;else if(typeof be!="object")throw Error(wn+"Argument not an object: "+be);if(Ae=Be.toFixed(z,Z),Be.c){var Re,je=Ae.split("."),Ne=+be.groupSize,Le=+be.secondaryGroupSize,rt=be.groupSeparator||"",qe=je[0],ht=je[1],Bt=Be.s<0,Nt=Bt?qe.slice(1):qe,pr=Nt.length;if(Le&&(Re=Ne,Ne=Le,Le=Re,pr-=Re),Ne>0&&pr>0){for(Re=pr%Ne||Ne,qe=Nt.substr(0,Re);Re<pr;Re+=Ne)qe+=rt+Nt.substr(Re,Ne);Le>0&&(qe+=rt+Nt.slice(Re)),Bt&&(qe="-"+qe)}Ae=ht?qe+(be.decimalSeparator||"")+((Le=+be.fractionGroupSize)?ht.replace(new RegExp("\\d{"+Le+"}\\B","g"),"$&"+(be.fractionGroupSeparator||"")):ht):qe}return(be.prefix||"")+Ae+(be.suffix||"")},w.toFraction=function(z){var Z,be,Ae,Be,Re,je,Ne,Le,rt,qe,ht,Bt,Nt=this,pr=Nt.c;if(z!=null&&(!(Ne=new q(z)).isInteger()&&(Ne.c||Ne.s!==1)||Ne.lt(x)))throw Error(wn+"Argument "+(Ne.isInteger()?"out of range: ":"not an integer: ")+xe(Ne));if(!pr)return new q(Nt);for(Z=new q(x),rt=be=new q(x),Ae=Le=new q(x),Bt=$n(pr),Re=Z.e=Bt.length-Nt.e-1,Z.c[0]=Tl[(je=Re%Qt)<0?Qt+je:je],z=!z||Ne.comparedTo(Z)>0?Re>0?Z:rt:Ne,je=Ee,Ee=1/0,Ne=new q(Bt),Le.c[0]=0;qe=n(Ne,Z,0,1),(Be=be.plus(qe.times(Ae))).comparedTo(z)!=1;)be=Ae,Ae=Be,rt=Le.plus(qe.times(Be=rt)),Le=Be,Z=Ne.minus(qe.times(Be=Z)),Ne=Be;return Be=n(z.minus(be),Ae,0,1),Le=Le.plus(Be.times(rt)),be=be.plus(Be.times(Ae)),Le.s=rt.s=Nt.s,ht=n(rt,Ae,Re*=2,J).minus(Nt).abs().comparedTo(n(Le,be,Re,J).minus(Nt).abs())<1?[rt,Ae]:[Le,be],Ee=je,ht},w.toNumber=function(){return+xe(this)},w.toPrecision=function(z,Z){return z!=null&&zr(z,1,qr),ye(this,z,Z,2)},w.toString=function(z){var Z,be=this,Ae=be.s,Be=be.e;return Be===null?Ae?(Z="Infinity",Ae<0&&(Z="-"+Z)):Z="NaN":(z==null?Z=Be<=we||Be>=ve?Mu($n(be.c),Be):So($n(be.c),Be,"0"):z===10&&re?Z=So($n((be=fe(new q(be),j+Be+1,J)).c),be.e,"0"):(zr(z,2,$.length,"Base"),Z=a(So($n(be.c),Be,"0"),10,z,Ae,!0)),Ae<0&&be.c[0]&&(Z="-"+Z)),Z},w.valueOf=w.toJSON=function(){return xe(this)},w._isBigNumber=!0,w[Symbol.toStringTag]="BigNumber",w[Symbol.for("nodejs.util.inspect.custom")]=w.valueOf,e!=null&&q.set(e),q})();const Vi=Nm;function O0(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);e&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),n.push.apply(n,a)}return n}function I0(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?O0(Object(n),!0).forEach(function(a){te(r,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):O0(Object(n)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(n,a))})}return r}var Dm={isValidURL:function(r){return typeof r=="string"&&Rm().isURL(r.toString(),{protocols:["http","https"],require_tld:!1})},isObject:function(r){return r===Object(r)&&Object.prototype.toString.call(r)!=="[object Array]"},isArray:function(r){return Array.isArray(r)},isJson:function(r){try{return!!JSON.parse(r)}catch{return!1}},isBoolean:function(r){return typeof r=="boolean"},isBigNumber:function(r){return r&&(r instanceof Vi||r.constructor&&r.constructor.name==="BigNumber")},isString:function(r){return typeof r=="string"||r&&r.constructor&&r.constructor.name==="String"},isFunction:function(r){return typeof r=="function"},isHex:function(r){return typeof r=="string"&&!isNaN(parseInt(r,16))&&/^(0x|)[a-fA-F0-9]+$/.test(r)},isInteger:function(r){return r!==null&&Number.isInteger(Number(r))},hasProperty:function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},hasProperties:function(r){for(var e=this,n=arguments.length,a=new Array(n>1?n-1:0),c=1;c<n;c++)a[c-1]=arguments[c];return a.length&&!a.map(function(u){return e.hasProperty(r,u)}).includes(!1)},mapEvent:function(r){var e={block:r.block_number,timestamp:r.block_timestamp,contract:r.contract_address,name:r.event_name,transaction:r.transaction_id,result:r.result,resourceNode:r.resource_Node||(r._unconfirmed?"fullNode":"solidityNode")};return r._unconfirmed&&(e.unconfirmed=r._unconfirmed),r._fingerprint&&(e.fingerprint=r._fingerprint),e},parseEvent:function(r,e){var n=e.inputs;if(!r.result)return r;if(this.isObject(r.result))for(var a=0;a<n.length;a++){var c=n[a];c.type=="address"&&c.name in r.result&&(r.result[c.name]=co+r.result[c.name].substr(2).toLowerCase())}else this.isArray(r.result)&&(r.result=r.result.reduce(function(u,d,h){var l=n[h],g=l.name;return l.type=="address"&&(d=co+d.substr(2).toLowerCase()),u[g]=d,u},{}));return r},padLeft:function(r,e,n){for(var a=r.toString();a.length<n;)a=e+a;return a},isNotNullOrUndefined:function(r){return r!=null},sleep:function(){var r=arguments;return _(he().mark(function e(){var n;return he().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n=r.length>0&&r[0]!==void 0?r[0]:1e3,a.abrupt("return",new Promise(function(c){return setTimeout(c,n)}));case 2:case"end":return a.stop()}},e)}))()}};const X=I0(I0({},Dm),{},{code:k,accounts:y,base58:i,bytes:v,crypto:B,abi:t,message:o,_TypedDataEncoder:Vp,transaction:s,ethersUtils:W}),hn={HttpProvider:(function(){function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3e4,c=arguments.length>2&&arguments[2]!==void 0&&arguments[2],u=arguments.length>3&&arguments[3]!==void 0&&arguments[3],d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},h=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"/";if(Q(this,r),!X.isValidURL(n))throw new Error("Invalid URL provided to HttpProvider");if(isNaN(a)||a<0)throw new Error("Invalid timeout duration provided");if(!X.isObject(d))throw new Error("Invalid headers object provided");n=n.replace(/\/+$/,""),this.host=n,this.timeout=a,this.user=c,this.password=u,this.headers=d,this.statusPage=h,this.instance=Dg.create({baseURL:n,timeout:a,headers:d,auth:c&&{user:c,password:u}})}var e;return E(r,[{key:"setStatusPage",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"/";this.statusPage=n}},{key:"isConnected",value:(e=_(he().mark(function n(){var a,c=arguments;return he().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return a=c.length>0&&c[0]!==void 0?c[0]:this.statusPage,u.abrupt("return",this.request(a).then(function(d){return X.hasProperties(d,"blockID","block_header")}).catch(function(){return!1}));case 2:case"end":return u.stop()}},n,this)})),function(){return e.apply(this,arguments)})},{key:"request",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"get";return c=c.toLowerCase(),this.instance.request({data:c=="post"&&Object.keys(a).length?a:null,params:c=="get"&&a,url:n,method:c}).then(function(u){return u.data})}}]),r})()};var Um=Ve(6729),Lm=Ve.n(Um),jm=Ve(6625),x0=Ve.n(jm),zm=Ve(7832),Ta=Ve.n(zm);function k0(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=r[n];return a}var Ou,Al=(function(){function r(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(Q(this,r),!e||!e instanceof vr)throw new Error("Expected instance of TronWeb");this.tronWeb=e}return E(r,[{key:"invalid",value:function(e){return e.msg||"Invalid ".concat(e.name).concat(e.type==="address"?" address":""," provided")}},{key:"notPositive",value:function(e){return"".concat(e.name," must be a positive integer")}},{key:"notEqual",value:function(e){return e.msg||"".concat(e.names[0]," can not be equal to ").concat(e.names[1])}},{key:"notValid",value:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Function,c={},u=!1,d=(function(we,ve){var Fe=typeof Symbol<"u"&&we[Symbol.iterator]||we["@@iterator"];if(!Fe){if(Array.isArray(we)||(Fe=(function($,re){if($){if(typeof $=="string")return k0($,re);var q=Object.prototype.toString.call($).slice(8,-1);return q==="Object"&&$.constructor&&(q=$.constructor.name),q==="Map"||q==="Set"?Array.from($):q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(q)?k0($,re):void 0}})(we))||ve){Fe&&(we=Fe);var Ee=0,O=function(){};return{s:O,n:function(){return Ee>=we.length?{done:!0}:{done:!1,value:we[Ee++]}},e:function($){throw $},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
24
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,I=!0,U=!1;return{s:function(){Fe=Fe.call(we)},n:function(){var $=Fe.next();return I=$.done,$},e:function($){U=!0,M=$},f:function(){try{I||Fe.return==null||Fe.return()}finally{if(U)throw M}}}})(n);try{for(d.s();!(e=d.n()).done;){var h=e.value,l=h.name,g=h.names,p=h.value,b=h.type,w=h.gt,x=h.lt,j=h.gte,J=h.lte;if(h.se,!h.optional||X.isNotNullOrUndefined(p)&&(b==="boolean"||p!==!1)){switch(c[h.name]=h.value,b){case"address":this.tronWeb.isAddress(p)?c[l]=this.tronWeb.address.toHex(p):u=!0;break;case"integer":(!X.isInteger(p)||typeof w=="number"&&p<=h.gt||typeof x=="number"&&p>=h.lt||typeof j=="number"&&p<h.gte||typeof J=="number"&&p>h.lte)&&(u=!0);break;case"positive-integer":if(!X.isInteger(p)||p<=0)return void a(this.notPositive(h));break;case"tokenId":case"not-empty-string":X.isString(p)&&p.length||(u=!0);break;case"notEmptyObject":X.isObject(p)&&Object.keys(p).length||(u=!0);break;case"notEqual":if(c[g[0]]===c[g[1]])return a(this.notEqual(h)),!0;break;case"resource":["BANDWIDTH","ENERGY"].includes(p)||(u=!0);break;case"url":X.isValidURL(p)||(u=!0);break;case"hex":X.isHex(p)||(u=!0);break;case"array":Array.isArray(p)||(u=!0);break;case"boolean":X.isBoolean(p)||(u=!0);break;case"string":(!X.isString(p)||typeof w=="number"&&p.length<=h.gt||typeof x=="number"&&p.length>=h.lt||typeof j=="number"&&p.length<h.gte||typeof J=="number"&&p.length>h.lte)&&(u=!0)}if(u)return a(this.invalid(h)),!0}}}catch(we){d.e(we)}finally{d.f()}return!1}}]),r})();function wl(r,e){var n=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!n){if(Array.isArray(r)||(n=(function(l,g){if(l){if(typeof l=="string")return S0(l,g);var p=Object.prototype.toString.call(l).slice(8,-1);return p==="Object"&&l.constructor&&(p=l.constructor.name),p==="Map"||p==="Set"?Array.from(l):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?S0(l,g):void 0}})(r))||e){n&&(r=n);var a=0,c=function(){};return{s:c,n:function(){return a>=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(l){throw l},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
25
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u,d=!0,h=!1;return{s:function(){n=n.call(r)},n:function(){var l=n.next();return d=l.done,l},e:function(l){h=!0,u=l},f:function(){try{d||n.return==null||n.return()}finally{if(h)throw u}}}}function S0(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=r[n];return a}function F0(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);e&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),n.push.apply(n,a)}return n}function ea(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?F0(Object(n),!0).forEach(function(a){te(r,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):F0(Object(n)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(n,a))})}return r}function Ot(r){return vr.address.toHex(r)}function pn(r){return Ou.tronWeb.fromUtf8(r).replace(/^0x/,"")}function Pl(r){return JSON.parse(JSON.stringify(r))}function Vm(r,e,n,a){return typeof n=="function"&&(a=n),typeof e=="function"&&(a=e,e=null),r.Error?a(r.Error):r.result&&r.result.message?a(Ou.tronWeb.toUtf8(r.result.message)):ml(r,e,n)?a(null,r):a("Invalid transaction")}function R0(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.ref_block_bytes===void 0&&r.ref_block_hash===void 0&&r.expiration===void 0&&r.timestamp===void 0)return!1;if(typeof r.ref_block_bytes!="string")throw new Error("Invalid ref_block_bytes provided.");if(typeof r.ref_block_hash!="string")throw new Error("Invalid ref_block_hash provided.");if(typeof r.expiration!="number")throw new Error("Invalid expiration provided.");if(typeof r.timestamp!="number")throw new Error("Invalid timestamp provided.");return!0}function hr(r,e,n,a){return Wl.apply(this,arguments)}function Wl(){return Wl=_(he().mark(function r(e,n,a,c){var u,d,h,l=arguments;return he().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(u=l.length>4&&l[4]!==void 0?l[4]:{},g.t0=ea,g.t1=ea,g.t2={contract:[{parameter:{value:a,type_url:"type.googleapis.com/protocol.".concat(n)},type:n}]},!R0(u)){g.next=8;break}g.t3={},g.next=11;break;case 8:return g.next=10,e.fullNode.request("wallet/getblock",{detail:!1},"post").then(function(p){return{ref_block_bytes:p.block_header.raw_data.number.toString(16).slice(-4).padStart(4,"0"),ref_block_hash:p.blockID.slice(16,32),expiration:p.block_header.raw_data.timestamp+6e4,timestamp:p.block_header.raw_data.timestamp}});case 10:g.t3=g.sent;case 11:return g.t4=g.t3,g.t5=(0,g.t1)(g.t2,g.t4),g.t6=u,g.t7=(0,g.t0)(g.t5,g.t6),d={visible:!1,txID:"",raw_data_hex:"",raw_data:g.t7},c&&(d.raw_data.contract[0].Permission_id=c),h=yl(d),d.txID=E0(h).replace(/^0x/,""),d.raw_data_hex=C0(h).toLowerCase(),g.abrupt("return",d);case 21:case"end":return g.stop()}},r)})),Wl.apply(this,arguments)}function mr(r){var e={};return R0(r==null?void 0:r.blockHeader)&&["ref_block_bytes","ref_block_hash","expiration","timestamp"].forEach(function(n){e[n]=r.blockHeader[n]}),e}var _0=(function(){function r(){var d=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(Q(this,r),!d||!d instanceof vr)throw new Error("Expected instance of TronWeb");Ou=this,this.tronWeb=d,this.injectPromise=Ta()(this),this.validator=new Al(d)}var e,n,a,c,u;return E(r,[{key:"sendTrx",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0&&arguments[0],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.tronWeb.defaultAddress.hex,p=arguments.length>3?arguments[3]:void 0,b=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(X.isFunction(p)&&(b=p,p={}),X.isFunction(g)?(b=g,g=this.tronWeb.defaultAddress.hex):X.isObject(g)&&(p=g,g=this.tronWeb.defaultAddress.hex),!b)return this.injectPromise(this.sendTrx,h,l,g,p);if(l=parseInt(l),!this.validator.notValid([{name:"recipient",type:"address",value:h},{name:"origin",type:"address",value:g},{names:["recipient","origin"],type:"notEqual",msg:"Cannot transfer TRX to the same account"},{name:"amount",type:"integer",gt:0,value:l}],b)){var w={to_address:Ot(h),owner_address:Ot(g),amount:l},x=mr(p);hr(this.tronWeb,"TransferContract",w,(d=p)===null||d===void 0?void 0:d.permissionId,x).then(function(j){return b(null,j)}).catch(function(j){return b(j)})}}},{key:"sendToken",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0&&arguments[0],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,g=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this.tronWeb.defaultAddress.hex,b=arguments.length>4?arguments[4]:void 0,w=arguments.length>5&&arguments[5]!==void 0&&arguments[5];if(X.isFunction(b)&&(w=b,b={}),X.isFunction(p)?(w=p,p=this.tronWeb.defaultAddress.hex):X.isObject(p)&&(b=p,p=this.tronWeb.defaultAddress.hex),!w)return this.injectPromise(this.sendToken,h,l,g,p,b);if(l=parseInt(l),!this.validator.notValid([{name:"recipient",type:"address",value:h},{name:"origin",type:"address",value:p},{names:["recipient","origin"],type:"notEqual",msg:"Cannot transfer tokens to the same account"},{name:"amount",type:"integer",gt:0,value:l},{name:"token ID",type:"tokenId",value:g}],w)){var x={to_address:Ot(h),owner_address:Ot(p),asset_name:pn(g),amount:parseInt(l)},j=mr(b);hr(this.tronWeb,"TransferAssetContract",x,(d=b)===null||d===void 0?void 0:d.permissionId,j).then(function(J){return w(null,J)}).catch(function(J){return w(J)})}}},{key:"purchaseToken",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0&&arguments[0],l=arguments.length>1&&arguments[1]!==void 0&&arguments[1],g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this.tronWeb.defaultAddress.hex,b=arguments.length>4?arguments[4]:void 0,w=arguments.length>5&&arguments[5]!==void 0&&arguments[5];if(X.isFunction(b)&&(w=b,b={}),X.isFunction(p)?(w=p,p=this.tronWeb.defaultAddress.hex):X.isObject(p)&&(b=p,p=this.tronWeb.defaultAddress.hex),!w)return this.injectPromise(this.purchaseToken,h,l,g,p,b);if(!this.validator.notValid([{name:"buyer",type:"address",value:p},{name:"issuer",type:"address",value:h},{names:["buyer","issuer"],type:"notEqual",msg:"Cannot purchase tokens from same account"},{name:"amount",type:"integer",gt:0,value:g},{name:"token ID",type:"tokenId",value:l}],w)){var x={to_address:Ot(h),owner_address:Ot(p),asset_name:pn(l),amount:parseInt(g)},j=mr(b);hr(this.tronWeb,"ParticipateAssetIssueContract",x,(d=b)===null||d===void 0?void 0:d.permissionId,j).then(function(J){return w(null,J)}).catch(function(J){return w(J)})}}},{key:"freezeBalance",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"BANDWIDTH",p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this.tronWeb.defaultAddress.hex,b=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,w=arguments.length>5?arguments[5]:void 0,x=arguments.length>6&&arguments[6]!==void 0&&arguments[6];if(X.isFunction(w)&&(x=w,w={}),X.isFunction(b)?(x=b,b=void 0):X.isObject(b)&&(w=b,b=void 0),X.isFunction(p)?(x=p,p=this.tronWeb.defaultAddress.hex):X.isObject(p)&&(w=p,p=this.tronWeb.defaultAddress.hex),X.isFunction(l)&&(x=l,l=3),X.isFunction(g)&&(x=g,g="BANDWIDTH"),!x)return this.injectPromise(this.freezeBalance,h,l,g,p,b,w);if(!this.validator.notValid([{name:"origin",type:"address",value:p},{name:"receiver",type:"address",value:b,optional:!0},{name:"amount",type:"integer",gt:0,value:h},{name:"duration",type:"integer",gte:3,value:l},{name:"resource",type:"resource",value:g,msg:'Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'}],x)){var j={owner_address:Ot(p),frozen_balance:parseInt(h),frozen_duration:parseInt(l)};g!=="BANDWIDTH"&&(j.resource=g),X.isNotNullOrUndefined(b)&&Ot(b)!==Ot(p)&&(j.receiver_address=Ot(b));var J=mr(w);hr(this.tronWeb,"FreezeBalanceContract",j,(d=w)===null||d===void 0?void 0:d.permissionId,J).then(function(we){return x(null,we)}).catch(function(we){return x(we)})}}},{key:"unfreezeBalance",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"BANDWIDTH",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.tronWeb.defaultAddress.hex,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,p=arguments.length>3?arguments[3]:void 0,b=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(X.isFunction(p)&&(b=p,p={}),X.isFunction(g)?(b=g,g=void 0):X.isObject(g)&&(p=g,g=void 0),X.isFunction(l)?(b=l,l=this.tronWeb.defaultAddress.hex):X.isObject(l)&&(p=l,l=this.tronWeb.defaultAddress.hex),X.isFunction(h)&&(b=h,h="BANDWIDTH"),!b)return this.injectPromise(this.unfreezeBalance,h,l,g,p);if(!this.validator.notValid([{name:"origin",type:"address",value:l},{name:"receiver",type:"address",value:g,optional:!0},{name:"resource",type:"resource",value:h,msg:'Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'}],b)){var w={owner_address:Ot(l)};h!=="BANDWIDTH"&&(w.resource=h),X.isNotNullOrUndefined(g)&&Ot(g)!==Ot(l)&&(w.receiver_address=Ot(g));var x=mr(p);hr(this.tronWeb,"UnfreezeBalanceContract",w,(d=p)===null||d===void 0?void 0:d.permissionId,x).then(function(j){return b(null,j)}).catch(function(j){return b(j)})}}},{key:"freezeBalanceV2",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"BANDWIDTH",g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.tronWeb.defaultAddress.hex,p=arguments.length>3?arguments[3]:void 0,b=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(X.isFunction(p)&&(b=p,p={}),X.isFunction(g)?(b=g,g=this.tronWeb.defaultAddress.hex):X.isObject(g)&&(p=g,g=this.tronWeb.defaultAddress.hex),X.isFunction(l)?(b=l,l="BANDWIDTH"):X.isObject(l)&&(p=l,l="BANDWIDTH"),!b)return this.injectPromise(this.freezeBalanceV2,h,l,g,p);if(!this.validator.notValid([{name:"origin",type:"address",value:g},{name:"amount",type:"integer",gt:0,value:h},{name:"resource",type:"resource",value:l,msg:'Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'}],b)){var w={owner_address:Ot(g),frozen_balance:parseInt(h)};l!=="BANDWIDTH"&&(w.resource=l);var x=mr(p);hr(this.tronWeb,"FreezeBalanceV2Contract",w,(d=p)===null||d===void 0?void 0:d.permissionId,x).then(function(j){return b(null,j)}).catch(function(j){return b(j)})}}},{key:"unfreezeBalanceV2",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"BANDWIDTH",g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.tronWeb.defaultAddress.hex,p=arguments.length>3?arguments[3]:void 0,b=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(X.isFunction(p)&&(b=p,p={}),X.isFunction(g)?(b=g,g=this.tronWeb.defaultAddress.hex):X.isObject(g)&&(p=g,g=this.tronWeb.defaultAddress.hex),X.isFunction(l)?(b=l,l="BANDWIDTH"):X.isObject(l)&&(p=l,l="BANDWIDTH"),!b)return this.injectPromise(this.unfreezeBalanceV2,h,l,g,p);if(!this.validator.notValid([{name:"origin",type:"address",value:g},{name:"amount",type:"integer",gt:0,value:h},{name:"resource",type:"resource",value:l,msg:'Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'}],b)){var w={owner_address:Ot(g),unfreeze_balance:parseInt(h)};l!=="BANDWIDTH"&&(w.resource=l);var x=mr(p);hr(this.tronWeb,"UnfreezeBalanceV2Contract",w,(d=p)===null||d===void 0?void 0:d.permissionId,x).then(function(j){return b(null,j)}).catch(function(j){return b(j)})}}},{key:"cancelUnfreezeBalanceV2",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,l=arguments.length>1?arguments[1]:void 0,g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(X.isFunction(l)&&(g=l,l={}),X.isFunction(h)?(g=h,l={},h=this.tronWeb.defaultAddress.hex):X.isObject(h)&&(l=h,h=this.tronWeb.defaultAddress.hex),!g)return this.injectPromise(this.cancelUnfreezeBalanceV2,h,l);if(!this.validator.notValid([{name:"origin",type:"address",value:h}],g)){var p={owner_address:Ot(h)},b=mr(l);hr(this.tronWeb,"CancelAllUnfreezeV2Contract",p,(d=l)===null||d===void 0?void 0:d.permissionId,b).then(function(w){return g(null,w)}).catch(function(w){return g(w)})}}},{key:"delegateResource",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,l=arguments.length>1?arguments[1]:void 0,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"BANDWIDTH",p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this.tronWeb.defaultAddress.hex,b=arguments.length>4&&arguments[4]!==void 0&&arguments[4],w=arguments.length>5?arguments[5]:void 0,x=arguments.length>6?arguments[6]:void 0,j=arguments.length>7&&arguments[7]!==void 0&&arguments[7];if(X.isFunction(x)&&(j=x,x={}),X.isFunction(w)?(j=w,w=void 0):X.isObject(w)&&(x=w,w=void 0),X.isFunction(b)?(j=b,b=!1):X.isObject(b)&&(x=b,b=!1),X.isFunction(p)?(j=p,p=this.tronWeb.defaultAddress.hex):X.isObject(p)&&(x=p,p=this.tronWeb.defaultAddress.hex),X.isFunction(g)?(j=g,g="BANDWIDTH"):X.isObject(g)&&(x=g,g="BANDWIDTH"),!j)return this.injectPromise(this.delegateResource,h,l,g,p,b,w,x);if(!this.validator.notValid([{name:"amount",type:"integer",gt:0,value:h},{name:"resource",type:"resource",value:g,msg:'Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'},{name:"receiver",type:"address",value:l},{name:"origin",type:"address",value:p},{name:"lock",type:"boolean",value:b},{name:"lock period",type:"integer",gte:0,value:w,optional:!0}],j)){if(Ot(l)===Ot(p))return j("Receiver address must not be the same as owner address");var J={owner_address:Ot(p),receiver_address:Ot(l),balance:parseInt(h)};g!=="BANDWIDTH"&&(J.resource=g),b&&(J.lock=b,X.isNotNullOrUndefined(w)&&(J.lock_period=w));var we=mr(x);hr(this.tronWeb,"DelegateResourceContract",J,(d=x)===null||d===void 0?void 0:d.permissionId,we).then(function(ve){return j(null,ve)}).catch(function(ve){return j(ve)})}}},{key:"undelegateResource",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,l=arguments.length>1?arguments[1]:void 0,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"BANDWIDTH",p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this.tronWeb.defaultAddress.hex,b=arguments.length>4?arguments[4]:void 0,w=arguments.length>5&&arguments[5]!==void 0&&arguments[5];if(X.isFunction(b)&&(w=b,b={}),X.isFunction(p)?(w=p,p=this.tronWeb.defaultAddress.hex):X.isObject(p)&&(b=p,p=this.tronWeb.defaultAddress.hex),X.isFunction(g)?(w=g,g="BANDWIDTH"):X.isObject(g)&&(b=g,g="BANDWIDTH"),!w)return this.injectPromise(this.undelegateResource,h,l,g,p,b);if(!this.validator.notValid([{name:"origin",type:"address",value:p},{name:"receiver",type:"address",value:l},{name:"amount",type:"integer",gt:0,value:h},{name:"resource",type:"resource",value:g,msg:'Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'}],w)){if(Ot(l)===Ot(p))return w("Receiver address must not be the same as owner address");var x={owner_address:Ot(p),receiver_address:Ot(l),balance:parseInt(h)};g!=="BANDWIDTH"&&(x.resource=g);var j=mr(b);hr(this.tronWeb,"UnDelegateResourceContract",x,(d=b)===null||d===void 0?void 0:d.permissionId,j).then(function(J){return w(null,J)}).catch(function(J){return w(J)})}}},{key:"withdrawExpireUnfreeze",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,l=arguments.length>1?arguments[1]:void 0,g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(X.isFunction(l)&&(g=l,l={}),X.isFunction(h)?(g=h,h=this.tronWeb.defaultAddress.hex):X.isObject(h)&&(l=h,h=this.tronWeb.defaultAddress.hex),!g)return this.injectPromise(this.withdrawExpireUnfreeze,h,l);if(!this.validator.notValid([{name:"origin",type:"address",value:h}],g)){var p={owner_address:Ot(h)},b=mr(l);hr(this.tronWeb,"WithdrawExpireUnfreezeContract",p,(d=l)===null||d===void 0?void 0:d.permissionId,b).then(function(w){return g(null,w)}).catch(function(w){return g(w)})}}},{key:"withdrawBlockRewards",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,l=arguments.length>1?arguments[1]:void 0,g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(X.isFunction(l)&&(g=l,l={}),X.isFunction(h)?(g=h,h=this.tronWeb.defaultAddress.hex):X.isObject(h)&&(l=h,h=this.tronWeb.defaultAddress.hex),!g)return this.injectPromise(this.withdrawBlockRewards,h,l);if(!this.validator.notValid([{name:"origin",type:"address",value:h}],g)){var p={owner_address:Ot(h)},b=mr(l);hr(this.tronWeb,"WithdrawBalanceContract",p,(d=l)===null||d===void 0?void 0:d.permissionId,b).then(function(w){return g(null,w)}).catch(function(w){return g(w)})}}},{key:"applyForSR",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,l=arguments.length>1&&arguments[1]!==void 0&&arguments[1],g=arguments.length>2?arguments[2]:void 0,p=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(X.isFunction(g)&&(p=g,g={}),X.isObject(l)&&X.isValidURL(h)&&(g=l,l=h,h=this.tronWeb.defaultAddress.hex),!p)return this.injectPromise(this.applyForSR,h,l,g);if(!this.validator.notValid([{name:"origin",type:"address",value:h},{name:"url",type:"url",value:l,msg:"Invalid url provided"},{name:"url",type:"string",value:l,lte:256,msg:"Invalid url provided"}],p)){var b={owner_address:Ot(h),url:pn(l)},w=mr(g);hr(this.tronWeb,"WitnessCreateContract",b,(d=g)===null||d===void 0?void 0:d.permissionId,w).then(function(x){return p(null,x)}).catch(function(x){return p(x)})}}},{key:"vote",value:function(){var d,h=this,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.tronWeb.defaultAddress.hex,p=arguments.length>2?arguments[2]:void 0,b=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(X.isFunction(p)&&(b=p,p={}),X.isFunction(g)?(b=g,g=this.tronWeb.defaultAddress.hex):X.isObject(g)&&(p=g,g=this.tronWeb.defaultAddress.hex),!b)return this.injectPromise(this.vote,l,g,p);if(!this.validator.notValid([{name:"voter",type:"address",value:g},{name:"votes",type:"notEmptyObject",value:l}],b)){var w=!1;if(l=Object.entries(l).map(function(J){var we=Xn(J,2),ve=we[0],Fe=we[1];if(!w)return h.validator.notValid([{name:"SR",type:"address",value:ve},{name:"vote count",type:"integer",gt:0,value:Fe,msg:"Invalid vote count provided for SR: "+ve}])?w=!0:{vote_address:Ot(ve),vote_count:parseInt(Fe)}}),!w){var x={owner_address:Ot(g),votes:l},j=mr(p);hr(this.tronWeb,"VoteWitnessContract",x,(d=p)===null||d===void 0?void 0:d.permissionId,j).then(function(J){return b(null,J)}).catch(function(J){return b(J)})}}}},{key:"createSmartContract",value:function(){var d=this,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.tronWeb.defaultAddress.hex,g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(X.isFunction(l)&&(g=l,l=this.tronWeb.defaultAddress.hex),!g)return this.injectPromise(this.createSmartContract,h,l);var p=h.feeLimit||this.tronWeb.feeLimit,b=h.userFeePercentage;typeof b=="number"||b||(b=100);var w=h.originEnergyLimit||1e7,x=h.callValue||0,j=h.tokenValue,J=h.tokenId||h.token_id,we=h.abi,ve=we!==void 0&&we,Fe=h.bytecode,Ee=Fe!==void 0&&Fe,O=h.parameters,M=O===void 0?[]:O,I=h.name,U=I===void 0?"":I;if(ve&&X.isString(ve))try{ve=JSON.parse(ve)}catch{return g("Invalid options.abi provided")}if(ve.entrys&&(ve=ve.entrys),!X.isArray(ve))return g("Invalid options.abi provided");var $=ve.some(function(Z){return Z.type==="constructor"&&Z.stateMutability.toLowerCase()==="payable"});if(!this.validator.notValid([{name:"bytecode",type:"hex",value:Ee},{name:"feeLimit",type:"integer",value:p,gt:0},{name:"callValue",type:"integer",value:x,gte:0},{name:"userFeePercentage",type:"integer",value:b,gte:0,lte:100},{name:"originEnergyLimit",type:"integer",value:w,gte:0,lte:1e7},{name:"parameters",type:"array",value:M},{name:"issuer",type:"address",value:l},{name:"tokenValue",type:"integer",value:j,gte:0,optional:!0},{name:"tokenId",type:"integer",value:J,gte:0,optional:!0}],g)){if(!$&&(x>0||j>0))return g("When contract is not payable, options.callValue and options.tokenValue must be 0");if(h.rawParameter&&X.isString(h.rawParameter))M=h.rawParameter.replace(/^(0x)/,"");else if(h.funcABIV2)M=wu(h.funcABIV2,h.parametersV2).replace(/^(0x)/,"");else{var re=ve.find(function(Z){return Z.type==="constructor"});if(re!==void 0&&re){var q=new Tu,ye=[],Pe=[];if(re=re.inputs,M.length!=re.length)return g("constructor needs ".concat(re.length," but ").concat(M.length," provided"));for(var de=function(){var Z=re[fe].type,be=M[fe];if(!Z||!X.isString(Z)||!Z.length)return{v:g("Invalid parameter type provided: "+Z)};Z.startsWith("address")?be=(function Ae(Be){return X.isArray(Be)?Be.map(function(Re){return Ae(Re)}):Ot(Be).replace(ui,"0x")})(be):/trcToken/.test(Z)&&(Z=Z.replace(/trcToken/,"uint256")),ye.push(Z),Pe.push(be)},fe=0;fe<M.length;fe++){var xe=de();if(ee(xe)==="object")return xe.v}try{M=q.encode(ye,Pe).replace(/^(0x)/,"")}catch(Z){return g(Z)}}else M=""}var z={owner_address:Ot(l),fee_limit:parseInt(p),call_value:parseInt(x),consume_user_resource_percent:b,origin_energy_limit:w,abi:JSON.stringify(ve),bytecode:Ee,parameter:M,name:U};X.isNotNullOrUndefined(j)&&(z.call_token_value=parseInt(j)),X.isNotNullOrUndefined(J)&&(z.token_id=parseInt(J)),new Promise(function(Z){var be,Ae={};Ae.owner_address=z.owner_address,X.isNotNullOrUndefined(z.call_token_value)&&(Ae.call_token_value=z.call_token_value),X.isNotNullOrUndefined(z.token_id)&&(Ae.token_id=z.token_id);var Be=Ae.new_contract={};z.abi?Be.abi={entrys:JSON.parse(z.abi)}:Be.abi={},z.call_value&&(Be.call_value=z.call_value),Be.consume_user_resource_percent=z.consume_user_resource_percent,Be.origin_energy_limit=z.origin_energy_limit,Be.origin_address=(be=z.origin_address)!==null&&be!==void 0?be:z.owner_address,z.bytecode+z.parameter&&(Be.bytecode=(z.bytecode+z.parameter).replace(/^0x/,"")),X.isNotNullOrUndefined(z.name)&&(Be.name=z.name),Z(Ae)}).then((function(){var Z=_(he().mark(function be(Ae){var Be,Re;return he().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Be=mr(h),je.next=3,hr(d.tronWeb,"CreateSmartContract",Ae,h==null?void 0:h.permissionId,ea(ea({},Be),{},{fee_limit:z.fee_limit}));case 3:return(Re=je.sent).contract_address=(Ne=z.owner_address,Le=Re.txID,"41"+rr(_r.dist.Buffer.from(Le+Ne,"hex")).toString().substring(2).slice(24)),je.abrupt("return",Re);case 6:case"end":return je.stop()}var Ne,Le},be)}));return function(be){return Z.apply(this,arguments)}})()).then(function(Z){return g(null,Z)}).catch(function(Z){return g(Z)})}}},{key:"triggerSmartContract",value:function(){for(var d,h=arguments.length,l=new Array(h),g=0;g<h;g++)l[g]=arguments[g];return ee(l[2])!=="object"&&(l[2]={feeLimit:l[2],callValue:l[3]},l.splice(3,1)),(d=l[2])!==null&&d!==void 0&&d.txLocal?this._triggerSmartContractLocal.apply(this,l):this._triggerSmartContract.apply(this,l)}},{key:"triggerConstantContract",value:function(){for(var d=arguments.length,h=new Array(d),l=0;l<d;l++)h[l]=arguments[l];return h[2]._isConstant=!0,this._triggerSmartContract.apply(this,h)}},{key:"triggerConfirmedConstantContract",value:function(){for(var d=arguments.length,h=new Array(d),l=0;l<d;l++)h[l]=arguments[l];return h[2]._isConstant=!0,h[2].confirmed=!0,this._triggerSmartContract.apply(this,h)}},{key:"estimateEnergy",value:function(){for(var d=arguments.length,h=new Array(d),l=0;l<d;l++)h[l]=arguments[l];return h[2].estimateEnergy=!0,this._triggerSmartContract.apply(this,h)}},{key:"deployConstantContract",value:(u=_(he().mark(function d(){var h,l,g,p,b,w,x,j,J,we=this,ve=arguments;return he().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return l=(h=ve.length>0&&ve[0]!==void 0?ve[0]:{}).input,g=h.ownerAddress,p=h.tokenId,b=h.tokenValue,w=h.callValue,x=w===void 0?0:w,this.validator.notValid([{name:"input",type:"not-empty-string",value:l},{name:"callValue",type:"integer",value:x,gte:0},{name:"owner",type:"address",value:g},{name:"tokenValue",type:"integer",value:b,gte:0,optional:!0},{name:"tokenId",type:"integer",value:p,gte:0,optional:!0}],function(Ee){throw new Error(Ee)}),j={data:l,owner_address:Ot(g),call_value:x},p&&(j.token_id=p),b&&(j.call_token_value=b),J="wallet".concat(h.confirmed?"solidity":"","/").concat(h.estimateEnergy?"estimateenergy":"triggerconstantcontract"),Fe.abrupt("return",this.tronWeb[h.confirmed?"solidityNode":"fullNode"].request(J,j,"post").then(function(Ee){if(Ee.Error)throw new Error(Ee.Error);if(Ee.result&&Ee.result.message)throw new Error(we.tronWeb.toUtf8(Ee.result.message));return Ee}).then(function(Ee){return Ee.energy_used?{result:Ee.result,energy_required:Ee.energy_used}:Ee}));case 8:case"end":return Fe.stop()}},d,this)})),function(){return u.apply(this,arguments)})},{key:"_getTriggerSmartContractArgs",value:function(d,h,l,g,p,b,w,x,j){var J={contract_address:Ot(d),owner_address:Ot(p)};if(h&&X.isString(h)){if(h=h.replace("/s*/g",""),g.length){for(var we=new Tu,ve=[],Fe=[],Ee=function(){var M=g[O],I=M.type,U=M.value;if(!I||!X.isString(I)||!I.length)throw new Error("Invalid parameter type provided: "+I);I.startsWith("address")&&(U=(function $(re){return X.isArray(re)?re.map(function(q){return $(q)}):Ot(re).replace(ui,"0x")})(U)),ve.push(I),Fe.push(U)},O=0;O<g.length;O++)Ee();ve=ve.map(function(M){return/trcToken/.test(M)&&(M=M.replace(/trcToken/,"uint256")),M}),g=we.encode(ve,Fe).replace(/^(0x)/,"")}else g="";l.funcABIV2&&(g=wu(l.funcABIV2,l.parametersV2).replace(/^(0x)/,"")),l.shieldedParameter&&X.isString(l.shieldedParameter)&&(g=l.shieldedParameter.replace(/^(0x)/,"")),l.rawParameter&&X.isString(l.rawParameter)&&(g=l.rawParameter.replace(/^(0x)/,"")),J.function_selector=h,J.parameter=g}else l.input&&(J.data=l.input);return J.call_value=parseInt(x),X.isNotNullOrUndefined(b)&&(J.call_token_value=parseInt(b)),X.isNotNullOrUndefined(w)&&(J.token_id=parseInt(w)),l._isConstant||l.estimateEnergy||(J.fee_limit=parseInt(j)),l.permissionId&&(J.Permission_id=l.permissionId),J}},{key:"_triggerSmartContractLocal",value:function(d,h){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.tronWeb.defaultAddress.hex,b=arguments.length>5&&arguments[5]!==void 0&&arguments[5];if(X.isFunction(p)&&(b=p,p=this.tronWeb.defaultAddress.hex),X.isFunction(g)&&(b=g,g=[]),!b)return this.injectPromise(this._triggerSmartContractLocal,d,h,l,g,p);var w=Object.assign({callValue:0,feeLimit:this.tronWeb.feeLimit},l),x=w.tokenValue,j=w.tokenId,J=w.callValue,we=w.feeLimit;if(!this.validator.notValid([{name:"feeLimit",type:"integer",value:we,gt:0},{name:"callValue",type:"integer",value:J,gte:0},{name:"parameters",type:"array",value:g},{name:"contract",type:"address",value:d},{name:"issuer",type:"address",value:p,optional:!0},{name:"tokenValue",type:"integer",value:x,gte:0,optional:!0},{name:"tokenId",type:"integer",value:j,gte:0,optional:!0}],b)){var ve;try{ve=this._getTriggerSmartContractArgs(d,h,l,g,p,x,j,J,we)}catch(O){return b(O)}ve.function_selector&&(ve.data=rr(_r.dist.Buffer.from(ve.function_selector,"utf-8")).toString().substring(2,10)+ve.parameter);var Fe={data:ve.data,owner_address:ve.owner_address,contract_address:ve.contract_address};ve.call_value&&(Fe.call_value=ve.call_value),ve.call_token_value&&(Fe.call_token_value=ve.call_token_value),ve.token_id&&(Fe.token_id=ve.token_id);var Ee=mr(l);hr(this.tronWeb,"TriggerSmartContract",Fe,l.permissionId,ea(ea({},Ee),{},{fee_limit:ve.fee_limit})).then(function(O){b(null,{result:{result:!0},transaction:O})}).catch(function(O){return b(O)})}}},{key:"_triggerSmartContract",value:function(d,h){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.tronWeb.defaultAddress.hex,b=arguments.length>5&&arguments[5]!==void 0&&arguments[5];if(X.isFunction(p)&&(b=p,p=this.tronWeb.defaultAddress.hex),X.isFunction(g)&&(b=g,g=[]),!b)return this.injectPromise(this._triggerSmartContract,d,h,l,g,p);var w=Object.assign({callValue:0,feeLimit:this.tronWeb.feeLimit},l),x=w.tokenValue,j=w.tokenId,J=w.callValue,we=w.feeLimit;if(!this.validator.notValid([{name:"feeLimit",type:"integer",value:we,gt:0},{name:"callValue",type:"integer",value:J,gte:0},{name:"parameters",type:"array",value:g},{name:"contract",type:"address",value:d},{name:"issuer",type:"address",value:p,optional:!0},{name:"tokenValue",type:"integer",value:x,gte:0,optional:!0},{name:"tokenId",type:"integer",value:j,gte:0,optional:!0}],b)){var ve;try{ve=this._getTriggerSmartContractArgs(d,h,l,g,p,x,j,J,we)}catch(Ee){return b(Ee)}var Fe="triggersmartcontract";l._isConstant?Fe="triggerconstantcontract":l.estimateEnergy&&(Fe="estimateenergy"),Fe="wallet".concat(l.confirmed?"solidity":"","/").concat(Fe),this.tronWeb[l.confirmed?"solidityNode":"fullNode"].request(Fe,ve,"post").then(function(Ee){return(function(O,M,I,U){return O.Error?U(O.Error):O.result&&O.result.message?U(Ou.tronWeb.toUtf8(O.result.message)):I._isConstant||I.estimateEnergy||ml(O.transaction,M,I)?U(null,O):U("Invalid transaction")})(Ee,ve,l,b)}).catch(function(Ee){return b(Ee)})}}},{key:"clearABI",value:function(d){var h,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.tronWeb.defaultAddress.hex,g=arguments.length>2?arguments[2]:void 0,p=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(X.isFunction(g)&&(p=g,g={}),X.isFunction(l)?(p=l,l=this.tronWeb.defaultAddress.hex):X.isObject(l)&&(g=l,l=this.tronWeb.defaultAddress.hex),!p)return this.injectPromise(this.clearABI,d,l,g);if(!this.tronWeb.isAddress(d))return p("Invalid contract address provided");if(!this.tronWeb.isAddress(l))return p("Invalid owner address provided");var b={contract_address:Ot(d),owner_address:Ot(l)};this.tronWeb.trx.cache.contracts[d]&&delete this.tronWeb.trx.cache.contracts[d];var w=mr(g);hr(this.tronWeb,"ClearABIContract",b,(h=g)===null||h===void 0?void 0:h.permissionId,w).then(function(x){return p(null,x)}).catch(function(x){return p(x)})}},{key:"updateBrokerage",value:function(d){var h,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.tronWeb.defaultAddress.hex,g=arguments.length>2?arguments[2]:void 0,p=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(X.isFunction(g)&&(p=g,g={}),X.isFunction(l)?(p=l,l=this.tronWeb.defaultAddress.hex):X.isObject(l)&&(g=l,l=this.tronWeb.defaultAddress.hex),!p)return this.injectPromise(this.updateBrokerage,d,l,g);if(!X.isNotNullOrUndefined(d))return p("Invalid brokerage provided");if(!X.isInteger(d)||d<0||d>100)return p("Brokerage must be an integer between 0 and 100");if(!this.tronWeb.isAddress(l))return p("Invalid owner address provided");var b={brokerage:parseInt(d),owner_address:Ot(l)},w=mr(g);hr(this.tronWeb,"UpdateBrokerageContract",b,(h=g)===null||h===void 0?void 0:h.permissionId,w).then(function(x){return p(null,x)}).catch(function(x){return p(x)})}},{key:"createToken",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.tronWeb.defaultAddress.hex,l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(X.isFunction(h)&&(l=h,h=this.tronWeb.defaultAddress.hex),!l)return this.injectPromise(this.createToken,d,h);var g=d.name,p=g!==void 0&&g,b=d.abbreviation,w=b!==void 0&&b,x=d.description,j=x===void 0?"":x,J=d.url,we=J!==void 0&&J,ve=d.totalSupply,Fe=ve===void 0?0:ve,Ee=d.trxRatio,O=Ee===void 0?1:Ee,M=d.tokenRatio,I=M===void 0?1:M,U=d.saleStart,$=U===void 0?Date.now():U,re=d.saleEnd,q=re!==void 0&&re,ye=d.freeBandwidth,Pe=ye===void 0?0:ye,de=d.freeBandwidthLimit,fe=de===void 0?0:de,xe=d.frozenAmount,z=xe===void 0?0:xe,Z=d.frozenDuration,be=Z===void 0?0:Z,Ae=d.voteScore,Be=d.precision;if(!this.validator.notValid([{name:"Supply amount",type:"positive-integer",value:Fe},{name:"TRX ratio",type:"positive-integer",value:O},{name:"Token ratio",type:"positive-integer",value:I},{name:"token abbreviation",type:"string",value:w,lte:32,gt:0},{name:"token name",type:"not-empty-string",value:p},{name:"token description",type:"string",value:j,lte:200},{name:"token url",type:"url",value:we},{name:"token url",type:"string",value:we,lte:256},{name:"issuer",type:"address",value:h},{name:"sale start timestamp",type:"integer",value:$,gte:Date.now()},{name:"sale end timestamp",type:"integer",value:q,gt:$},{name:"Frozen supply",type:"integer",value:z,gte:0},{name:"Frozen duration",type:"integer",value:be,gte:0}],l)){if(X.isNotNullOrUndefined(Ae)&&(!X.isInteger(Ae)||Ae<=0))return l("voteScore must be a positive integer greater than 0");if(X.isNotNullOrUndefined(Be)&&(!X.isInteger(Be)||Be<0||Be>6))return l("precision must be a positive integer >= 0 and <= 6");var Re={owner_address:Ot(h),name:pn(p),abbr:pn(w),description:pn(j),url:pn(we),total_supply:parseInt(Fe),trx_num:parseInt(O),num:parseInt(I),start_time:parseInt($),end_time:parseInt(q),frozen_supply:[{frozen_amount:parseInt(z),frozen_days:parseInt(be)}]};["name","abbr","description","url"].forEach(function(Ne){Re[Ne]||delete Re[Ne]}),parseInt(z)>0||delete Re.frozen_supply,Pe&&!isNaN(parseInt(Pe))&&parseInt(Pe)>=0&&(Re.free_asset_net_limit=parseInt(Pe)),fe&&!isNaN(parseInt(fe))&&parseInt(fe)>=0&&(Re.public_free_asset_net_limit=parseInt(fe)),Be&&!isNaN(parseInt(Be))&&(Re.precision=parseInt(Be)),Ae&&!isNaN(parseInt(Ae))&&(Re.vote_score=parseInt(Ae));var je=mr(d);hr(this.tronWeb,"AssetIssueContract",Re,d==null?void 0:d.permissionId,je).then(function(Ne){return l(null,Ne)}).catch(function(Ne){return l(Ne)})}}},{key:"createAccount",value:function(d){var h,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.tronWeb.defaultAddress.hex,g=arguments.length>2?arguments[2]:void 0,p=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(X.isFunction(g)&&(p=g,g={}),X.isFunction(l)?(p=l,l=this.tronWeb.defaultAddress.hex):X.isObject(l)&&(g=l,l=this.tronWeb.defaultAddress.hex),!p)return this.injectPromise(this.createAccount,d,l,g);if(!this.validator.notValid([{name:"account",type:"address",value:d},{name:"origin",type:"address",value:l}],p)){var b={owner_address:Ot(l),account_address:Ot(d)},w=mr(g);hr(this.tronWeb,"AccountCreateContract",b,(h=g)===null||h===void 0?void 0:h.permissionId,w).then(function(x){return p(null,x)}).catch(function(x){return p(x)})}}},{key:"updateAccount",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0&&arguments[0],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.tronWeb.defaultAddress.hex,g=arguments.length>2?arguments[2]:void 0,p=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(X.isFunction(g)&&(p=g,g={}),X.isFunction(l)?(p=l,l=this.tronWeb.defaultAddress.hex):X.isObject(l)&&(g=l,l=this.tronWeb.defaultAddress.hex),!p)return this.injectPromise(this.updateAccount,h,l,g);if(!this.validator.notValid([{name:"Name",type:"string",lte:200,gt:0,value:h,msg:"Invalid accountName"},{name:"origin",type:"address",value:l}],p)){var b={account_name:pn(h),owner_address:Ot(l)},w=mr(g);hr(this.tronWeb,"AccountUpdateContract",b,(d=g)===null||d===void 0?void 0:d.permissionId,w).then(function(x){return p(null,x)}).catch(function(x){return p(x)})}}},{key:"setAccountId",value:function(d){var h,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.tronWeb.defaultAddress.hex,g=arguments.length>2?arguments[2]:void 0,p=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(X.isFunction(g)&&(p=g,g={}),X.isFunction(l)?(p=l,l=this.tronWeb.defaultAddress.hex):X.isObject(l)&&(g=l,l=this.tronWeb.defaultAddress.hex),!p)return this.injectPromise(this.setAccountId,d,l,g);if(d&&X.isString(d)&&d.startsWith("0x")&&(d=d.slice(2)),!this.validator.notValid([{name:"accountId",type:"hex",value:d},{name:"accountId",type:"string",lte:32,gte:8,value:d},{name:"origin",type:"address",value:l}],p)){var b={account_id:d,owner_address:Ot(l)},w=mr(g);hr(this.tronWeb,"SetAccountIdContract",b,(h=g)===null||h===void 0?void 0:h.permissionId,w).then(function(x){return p(null,x)}).catch(function(x){return p(x)})}}},{key:"updateToken",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.tronWeb.defaultAddress.hex,g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(X.isFunction(l)?(g=l,l=this.tronWeb.defaultAddress.hex):X.isObject(l)&&(h=l,l=this.tronWeb.defaultAddress.hex),!g)return this.injectPromise(this.updateToken,h,l);var p=h,b=p.description,w=b===void 0?"":b,x=p.url,j=x!==void 0&&x,J=p.freeBandwidth,we=J===void 0?0:J,ve=p.freeBandwidthLimit,Fe=ve===void 0?0:ve;if(!this.validator.notValid([{name:"token description",type:"string",value:w,lte:200},{name:"token url",type:"url",value:j},{name:"token url",type:"string",value:j,lte:256},{name:"issuer",type:"address",value:l}],g)){var Ee={owner_address:Ot(l),description:pn(w),url:pn(j)};we&&!isNaN(parseInt(we))&&parseInt(we)>=0&&(Ee.new_limit=parseInt(we)),Fe&&!isNaN(parseInt(Fe))&&parseInt(Fe)>=0&&(Ee.new_public_limit=parseInt(Fe));var O=mr(h);hr(this.tronWeb,"UpdateAssetContract",Ee,(d=h)===null||d===void 0?void 0:d.permissionId,O).then(function(M){return g(null,M)}).catch(function(M){return g(M)})}}},{key:"sendAsset",value:function(){return this.sendToken.apply(this,arguments)}},{key:"purchaseAsset",value:function(){return this.purchaseToken.apply(this,arguments)}},{key:"createAsset",value:function(){return this.createToken.apply(this,arguments)}},{key:"updateAsset",value:function(){return this.updateToken.apply(this,arguments)}},{key:"createProposal",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0&&arguments[0],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.tronWeb.defaultAddress.hex,g=arguments.length>2?arguments[2]:void 0,p=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(X.isFunction(g)&&(p=g,g={}),X.isFunction(l)?(p=l,l=this.tronWeb.defaultAddress.hex):X.isObject(l)&&(g=l,l=this.tronWeb.defaultAddress.hex),!p)return this.injectPromise(this.createProposal,h,l,g);if(!this.validator.notValid([{name:"issuer",type:"address",value:l}],p)){var b="Invalid proposal parameters provided";if(!h)return p(b);X.isArray(h)||(h=[h]);var w,x=wl(h);try{for(x.s();!(w=x.n()).done;){var j=w.value;if(!X.isObject(j))return p(b)}}catch(ve){x.e(ve)}finally{x.f()}var J={owner_address:Ot(l),parameters:h},we=mr(g);hr(this.tronWeb,"ProposalCreateContract",J,(d=g)===null||d===void 0?void 0:d.permissionId,we).then(function(ve){return p(null,ve)}).catch(function(ve){return p(ve)})}}},{key:"deleteProposal",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0&&arguments[0],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.tronWeb.defaultAddress.hex,g=arguments.length>2?arguments[2]:void 0,p=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(X.isFunction(g)&&(p=g,g={}),X.isFunction(l)?(p=l,l=this.tronWeb.defaultAddress.hex):X.isObject(l)&&(g=l,l=this.tronWeb.defaultAddress.hex),!p)return this.injectPromise(this.deleteProposal,h,l,g);if(!this.validator.notValid([{name:"issuer",type:"address",value:l},{name:"proposalID",type:"integer",value:h,gte:0}],p)){var b={owner_address:Ot(l),proposal_id:parseInt(h)},w=mr(g);hr(this.tronWeb,"ProposalDeleteContract",b,(d=g)===null||d===void 0?void 0:d.permissionId,w).then(function(x){return p(null,x)}).catch(function(x){return p(x)})}}},{key:"voteProposal",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0&&arguments[0],l=arguments.length>1&&arguments[1]!==void 0&&arguments[1],g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.tronWeb.defaultAddress.hex,p=arguments.length>3?arguments[3]:void 0,b=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(X.isFunction(p)&&(b=p,p={}),X.isFunction(g)?(b=g,g=this.tronWeb.defaultAddress.hex):X.isObject(g)&&(p=g,g=this.tronWeb.defaultAddress.hex),!b)return this.injectPromise(this.voteProposal,h,l,g,p);if(!this.validator.notValid([{name:"voter",type:"address",value:g},{name:"proposalID",type:"integer",value:h,gte:0},{name:"has approval",type:"boolean",value:l}],b)){var w={owner_address:Ot(g),proposal_id:parseInt(h),is_add_approval:l},x=mr(p);hr(this.tronWeb,"ProposalApproveContract",w,(d=p)===null||d===void 0?void 0:d.permissionId,x).then(function(j){return b(null,j)}).catch(function(j){return b(j)})}}},{key:"createTRXExchange",value:function(d,h,l){var g,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this.tronWeb.defaultAddress.hex,b=arguments.length>4?arguments[4]:void 0,w=arguments.length>5&&arguments[5]!==void 0&&arguments[5];if(X.isFunction(b)&&(w=b,b={}),X.isFunction(p)?(w=p,p=this.tronWeb.defaultAddress.hex):X.isObject(p)&&(b=p,p=this.tronWeb.defaultAddress.hex),!w)return this.injectPromise(this.createTRXExchange,d,h,l,p,b);if(!this.validator.notValid([{name:"owner",type:"address",value:p},{name:"token name",type:"not-empty-string",value:d},{name:"token balance",type:"positive-integer",value:h},{name:"trx balance",type:"positive-integer",value:l}],w)){var x={owner_address:Ot(p),first_token_id:pn(d),first_token_balance:h,second_token_id:"5f",second_token_balance:l},j=mr(b);hr(this.tronWeb,"ExchangeCreateContract",x,(g=b)===null||g===void 0?void 0:g.permissionId,j).then(function(J){return w(null,J)}).catch(function(J){return w(J)})}}},{key:"createTokenExchange",value:function(d,h,l,g){var p,b=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.tronWeb.defaultAddress.hex,w=arguments.length>5?arguments[5]:void 0,x=arguments.length>6&&arguments[6]!==void 0&&arguments[6];if(X.isFunction(w)&&(x=w,w={}),X.isFunction(b)?(x=b,b=this.tronWeb.defaultAddress.hex):X.isObject(b)&&(w=b,b=this.tronWeb.defaultAddress.hex),!x)return this.injectPromise(this.createTokenExchange,d,h,l,g,b,w);if(!this.validator.notValid([{name:"owner",type:"address",value:b},{name:"first token name",type:"not-empty-string",value:d},{name:"second token name",type:"not-empty-string",value:l},{name:"first token balance",type:"positive-integer",value:h},{name:"second token balance",type:"positive-integer",value:g}],x)){var j={owner_address:Ot(b),first_token_id:pn(d),first_token_balance:h,second_token_id:pn(l),second_token_balance:g},J=mr(w);hr(this.tronWeb,"ExchangeCreateContract",j,(p=w)===null||p===void 0?void 0:p.permissionId,J).then(function(we){return x(null,we)}).catch(function(we){return x(we)})}}},{key:"injectExchangeTokens",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0&&arguments[0],l=arguments.length>1&&arguments[1]!==void 0&&arguments[1],g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this.tronWeb.defaultAddress.hex,b=arguments.length>4?arguments[4]:void 0,w=arguments.length>5&&arguments[5]!==void 0&&arguments[5];if(X.isFunction(b)&&(w=b,b={}),X.isFunction(p)?(w=p,p=this.tronWeb.defaultAddress.hex):X.isObject(p)&&(b=p,p=this.tronWeb.defaultAddress.hex),!w)return this.injectPromise(this.injectExchangeTokens,h,l,g,p,b);if(!this.validator.notValid([{name:"owner",type:"address",value:p},{name:"token name",type:"not-empty-string",value:l},{name:"token amount",type:"integer",value:g,gte:1},{name:"exchangeID",type:"integer",value:h,gte:0}],w)){var x={owner_address:Ot(p),exchange_id:parseInt(h),token_id:pn(l),quant:parseInt(g)},j=mr(b);hr(this.tronWeb,"ExchangeInjectContract",x,(d=b)===null||d===void 0?void 0:d.permissionId,j).then(function(J){return w(null,J)}).catch(function(J){return w(J)})}}},{key:"withdrawExchangeTokens",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0&&arguments[0],l=arguments.length>1&&arguments[1]!==void 0&&arguments[1],g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this.tronWeb.defaultAddress.hex,b=arguments.length>4?arguments[4]:void 0,w=arguments.length>5&&arguments[5]!==void 0&&arguments[5];if(X.isFunction(b)&&(w=b,b={}),X.isFunction(p)?(w=p,p=this.tronWeb.defaultAddress.hex):X.isObject(p)&&(b=p,p=this.tronWeb.defaultAddress.hex),!w)return this.injectPromise(this.withdrawExchangeTokens,h,l,g,p,b);if(!this.validator.notValid([{name:"owner",type:"address",value:p},{name:"token name",type:"not-empty-string",value:l},{name:"token amount",type:"integer",value:g,gte:1},{name:"exchangeID",type:"integer",value:h,gte:0}],w)){var x={owner_address:Ot(p),exchange_id:parseInt(h),token_id:pn(l),quant:parseInt(g)},j=mr(b);hr(this.tronWeb,"ExchangeWithdrawContract",x,(d=b)===null||d===void 0?void 0:d.permissionId,j).then(function(J){return w(null,J)}).catch(function(J){return w(J)})}}},{key:"tradeExchangeTokens",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0&&arguments[0],l=arguments.length>1&&arguments[1]!==void 0&&arguments[1],g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,b=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.tronWeb.defaultAddress.hex,w=arguments.length>5?arguments[5]:void 0,x=arguments.length>6&&arguments[6]!==void 0&&arguments[6];if(X.isFunction(w)&&(x=w,w={}),X.isFunction(b)?(x=b,b=this.tronWeb.defaultAddress.hex):X.isObject(b)&&(w=b,b=this.tronWeb.defaultAddress.hex),!x)return this.injectPromise(this.tradeExchangeTokens,h,l,g,p,b,w);if(!this.validator.notValid([{name:"owner",type:"address",value:b},{name:"token name",type:"not-empty-string",value:l},{name:"tokenAmountSold",type:"integer",value:g,gte:1},{name:"tokenAmountExpected",type:"integer",value:p,gte:1},{name:"exchangeID",type:"integer",value:h,gte:0}],x)){var j={owner_address:Ot(b),exchange_id:parseInt(h),token_id:this.tronWeb.fromAscii(l).replace(/^0x/,""),quant:parseInt(g),expected:parseInt(p)},J=mr(w);hr(this.tronWeb,"ExchangeTransactionContract",j,(d=w)===null||d===void 0?void 0:d.permissionId,J).then(function(we){return x(null,we)}).catch(function(we){return x(we)})}}},{key:"updateSetting",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0&&arguments[0],l=arguments.length>1&&arguments[1]!==void 0&&arguments[1],g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.tronWeb.defaultAddress.hex,p=arguments.length>3?arguments[3]:void 0,b=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(X.isFunction(p)&&(b=p,p={}),X.isFunction(g)?(b=g,g=this.tronWeb.defaultAddress.hex):X.isObject(g)&&(p=g,g=this.tronWeb.defaultAddress.hex),!b)return this.injectPromise(this.updateSetting,h,l,g,p);if(!this.validator.notValid([{name:"owner",type:"address",value:g},{name:"contract",type:"address",value:h},{name:"userFeePercentage",type:"integer",value:l,gte:0,lte:100}],b)){var w={owner_address:Ot(g),contract_address:Ot(h),consume_user_resource_percent:l},x=mr(p);hr(this.tronWeb,"UpdateSettingContract",w,(d=p)===null||d===void 0?void 0:d.permissionId,x).then(function(j){return b(null,j)}).catch(function(j){return b(j)})}}},{key:"updateEnergyLimit",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0&&arguments[0],l=arguments.length>1&&arguments[1]!==void 0&&arguments[1],g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.tronWeb.defaultAddress.hex,p=arguments.length>3?arguments[3]:void 0,b=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(X.isFunction(p)&&(b=p,p={}),X.isFunction(g)?(b=g,g=this.tronWeb.defaultAddress.hex):X.isObject(g)&&(p=g,g=this.tronWeb.defaultAddress.hex),!b)return this.injectPromise(this.updateEnergyLimit,h,l,g,p);if(!this.validator.notValid([{name:"owner",type:"address",value:g},{name:"contract",type:"address",value:h},{name:"originEnergyLimit",type:"integer",value:l,gte:0,lte:1e7}],b)){var w={owner_address:Ot(g),contract_address:Ot(h),origin_energy_limit:l},x=mr(p);hr(this.tronWeb,"UpdateEnergyLimitContract",w,(d=p)===null||d===void 0?void 0:d.permissionId,x).then(function(j){return b(null,j)}).catch(function(j){return b(j)})}}},{key:"checkPermissions",value:function(d,h){if(d){if(d.type!==h||!d.permission_name||!X.isString(d.permission_name)||!X.isInteger(d.threshold)||d.threshold<1||!d.keys)return!1;var l,g=wl(d.keys);try{for(g.s();!(l=g.n()).done;){var p=l.value;if(!this.tronWeb.isAddress(p.address)||!X.isInteger(p.weight)||p.weight>d.threshold||p.weight<1||h===2&&!d.operations)return!1}}catch(b){g.e(b)}finally{g.f()}}return!0}},{key:"updateAccountPermissions",value:function(){var d,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,l=arguments.length>1&&arguments[1]!==void 0&&arguments[1],g=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=arguments.length>3&&arguments[3]!==void 0&&arguments[3],b=arguments.length>4?arguments[4]:void 0,w=arguments.length>5&&arguments[5]!==void 0&&arguments[5];if(X.isFunction(b)&&(w=b,b={}),X.isFunction(p)&&(w=p,p=!1),X.isFunction(g)&&(w=g,g=p=!1),X.isFunction(l)&&(w=l,l=g=p=!1),!w)return this.injectPromise(this.updateAccountPermissions,h,l,g,p,b);if(!this.tronWeb.isAddress(h))return w("Invalid ownerAddress provided");if(!this.checkPermissions(l,0))return w("Invalid ownerPermissions provided");if(!this.checkPermissions(g,1))return w("Invalid witnessPermissions provided");Array.isArray(p)||(p=[p]);var x,j=wl(p);try{for(j.s();!(x=j.n()).done;){var J=x.value;if(!this.checkPermissions(J,2))return w("Invalid activesPermissions provided")}}catch(M){j.e(M)}finally{j.f()}var we={owner_address:Ot(h)};if(l){var ve=Pl(l);"type"in ve&&delete ve.type,we.owner=ve}if(g){var Fe=Pl(g);Fe.type="Witness",we.witness=Fe}if(p){var Ee=Pl(p);Ee.forEach(function(M){M.type="Active"}),we.actives=Ee}var O=mr(b);hr(this.tronWeb,"AccountPermissionUpdateContract",we,(d=b)===null||d===void 0?void 0:d.permissionId,O).then(function(M){return w(null,M)}).catch(function(M){return w(M)})}},{key:"newTxID",value:(c=_(he().mark(function d(h,l,g){var p,b;return he().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(X.isFunction(l)&&(g=l,l={}),g){w.next=3;break}return w.abrupt("return",this.injectPromise(this.newTxID,h,l));case 3:if((p=l)===null||p===void 0||!p.txLocal){w.next=7;break}return b=h.raw_data.contract[0],hr(this.tronWeb,b.type,b.parameter.value,b.Permission_id,{fee_limit:h.raw_data.fee_limit,data:h.raw_data.data,ref_block_bytes:h.raw_data.ref_block_bytes,ref_block_hash:h.raw_data.ref_block_hash,expiration:h.raw_data.expiration,timestamp:h.raw_data.timestamp}).then(function(x){x.signature=h.signature,x.visible=h.visible,g(null,x)}).catch(function(x){return g("Error generating a new transaction id.")}),w.abrupt("return");case 7:this.tronWeb.fullNode.request("wallet/getsignweight",h,"post").then(function(x){return typeof h.visible=="boolean"&&(x.transaction.transaction.visible=h.visible),Vm(x.transaction.transaction,ea(ea({},h.raw_data.contract[0].parameter.value),{},{Permission_id:h.raw_data.contract[0].Permission_id}),{data:h.raw_data.data,fee_limit:h.raw_data.fee_limit},g)}).catch(function(x){return g("Error generating a new transaction id.")});case 8:case"end":return w.stop()}},d,this)})),function(d,h,l){return c.apply(this,arguments)})},{key:"alterTransaction",value:(a=_(he().mark(function d(h){var l,g,p=arguments;return he().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(l=p.length>1&&p[1]!==void 0?p[1]:{},g=p.length>2&&p[2]!==void 0&&p[2]){b.next=4;break}return b.abrupt("return",this.injectPromise(this.alterTransaction,h,l));case 4:if(!h.signature){b.next=6;break}return b.abrupt("return",g("You can not extend the expiration of a signed transaction."));case 6:if(!l.data){b.next=12;break}if(l.dataFormat!=="hex"&&(l.data=this.tronWeb.toHex(l.data)),l.data=l.data.replace(/^0x/,""),l.data.length!==0){b.next=11;break}return b.abrupt("return",g("Invalid data provided"));case 11:h.raw_data.data=l.data;case 12:if(!l.extension){b.next=17;break}if(l.extension=parseInt(1e3*l.extension),!(isNaN(l.extension)||h.raw_data.expiration+l.extension<=Date.now()+3e3)){b.next=16;break}return b.abrupt("return",g("Invalid extension provided"));case 16:h.raw_data.expiration+=l.extension;case 17:this.newTxID(h,{txLocal:l.txLocal},g);case 18:case"end":return b.stop()}},d,this)})),function(d){return a.apply(this,arguments)})},{key:"extendExpiration",value:(n=_(he().mark(function d(h,l,g){var p,b,w=arguments;return he().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(b=w.length>3&&w[3]!==void 0&&w[3],X.isFunction(g)&&(b=g,g={}),b){x.next=4;break}return x.abrupt("return",this.injectPromise(this.extendExpiration,h,l,g));case 4:this.alterTransaction(h,{extension:l,txLocal:(p=g)===null||p===void 0?void 0:p.txLocal},b);case 5:case"end":return x.stop()}},d,this)})),function(d,h,l){return n.apply(this,arguments)})},{key:"addUpdateData",value:(e=_(he().mark(function d(h,l){var g,p,b,w,x=arguments;return he().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(p=x.length>2&&x[2]!==void 0?x[2]:"utf8",b=x.length>3?x[3]:void 0,w=x.length>4&&x[4]!==void 0&&x[4],X.isFunction(b)&&(w=b,b={}),X.isFunction(p)?(w=p,p="utf8"):X.isObject(p)&&(b=p,p="utf8"),w){j.next=7;break}return j.abrupt("return",this.injectPromise(this.addUpdateData,h,l,p,b));case 7:this.alterTransaction(h,{data:l,dataFormat:p,txLocal:(g=b)===null||g===void 0?void 0:g.txLocal},w);case 8:case"end":return j.stop()}},d,this)})),function(d,h){return e.apply(this,arguments)})}]),r})();function N0(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);e&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),n.push.apply(n,a)}return n}function Aa(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?N0(Object(n),!0).forEach(function(a){te(r,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):N0(Object(n)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(n,a))})}return r}var D0=`TRON Signed Message:
|
|
26
|
+
32`,U0=`Ethereum Signed Message:
|
|
27
|
+
32`;function ta(r){return vr.address.toHex(r)}var L0=(function(){function r(){var O=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(Q(this,r),!O||!O instanceof vr)throw new Error("Expected instance of TronWeb");this.tronWeb=O,this.injectPromise=Ta()(this),this.cache={contracts:{}},this.validator=new Al(O)}var e,n,a,c,u,d,h,l,g,p,b,w,x,j,J,we,ve,Fe,Ee;return E(r,[{key:"_parseToken",value:function(O){return Aa(Aa({},O),{},{name:this.tronWeb.toUtf8(O.name),abbr:O.abbr&&this.tronWeb.toUtf8(O.abbr),description:O.description&&this.tronWeb.toUtf8(O.description),url:O.url&&this.tronWeb.toUtf8(O.url)})}},{key:"getCurrentBlock",value:function(){var O=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(!O)return this.injectPromise(this.getCurrentBlock);this.tronWeb.fullNode.request("wallet/getnowblock").then(function(M){O(null,M)}).catch(function(M){return O(M)})}},{key:"getConfirmedCurrentBlock",value:function(){var O=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(!O)return this.injectPromise(this.getConfirmedCurrentBlock);this.tronWeb.solidityNode.request("walletsolidity/getnowblock").then(function(M){O(null,M)}).catch(function(M){return O(M)})}},{key:"getBlock",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultBlock,M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return X.isFunction(O)&&(M=O,O=this.tronWeb.defaultBlock),M?O===!1?M("No block identifier provided"):(O=="earliest"&&(O=0),O=="latest"?this.getCurrentBlock(M):isNaN(O)&&X.isHex(O)?this.getBlockByHash(O,M):void this.getBlockByNumber(O,M)):this.injectPromise(this.getBlock,O)}},{key:"getBlockByHash",value:function(O){var M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!M)return this.injectPromise(this.getBlockByHash,O);this.tronWeb.fullNode.request("wallet/getblockbyid",{value:O},"post").then(function(I){if(!Object.keys(I).length)return M("Block not found");M(null,I)}).catch(function(I){return M(I)})}},{key:"getBlockByNumber",value:function(O){var M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return M?!X.isInteger(O)||O<0?M("Invalid block number provided"):void this.tronWeb.fullNode.request("wallet/getblockbynum",{num:parseInt(O)},"post").then(function(I){if(!Object.keys(I).length)return M("Block not found");M(null,I)}).catch(function(I){return M(I)}):this.injectPromise(this.getBlockByNumber,O)}},{key:"getBlockTransactionCount",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultBlock,M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(X.isFunction(O)&&(M=O,O=this.tronWeb.defaultBlock),!M)return this.injectPromise(this.getBlockTransactionCount,O);this.getBlock(O).then(function(I){var U=I.transactions;M(null,(U===void 0?[]:U).length)}).catch(function(I){return M(I)})}},{key:"getTransactionFromBlock",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultBlock,M=arguments.length>1?arguments[1]:void 0,I=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(X.isFunction(M)&&(I=M,M=0),X.isFunction(O)&&(I=O,O=this.tronWeb.defaultBlock),!I)return this.injectPromise(this.getTransactionFromBlock,O,M);this.getBlock(O).then(function(U){var $=U.transactions,re=$!==void 0&&$;re?typeof M=="number"?M>=0&&M<re.length?I(null,re[M]):I("Invalid transaction index provided"):I(null,re):I("Transaction not found in block")}).catch(function(U){return I(U)})}},{key:"getTransaction",value:function(O){var M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!M)return this.injectPromise(this.getTransaction,O);this.tronWeb.fullNode.request("wallet/gettransactionbyid",{value:O},"post").then(function(I){if(!Object.keys(I).length)return M("Transaction not found");M(null,I)}).catch(function(I){return M(I)})}},{key:"getConfirmedTransaction",value:function(O){var M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!M)return this.injectPromise(this.getConfirmedTransaction,O);this.tronWeb.solidityNode.request("walletsolidity/gettransactionbyid",{value:O},"post").then(function(I){if(!Object.keys(I).length)return M("Transaction not found");M(null,I)}).catch(function(I){return M(I)})}},{key:"getUnconfirmedTransactionInfo",value:function(O){var M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this._getTransactionInfoById(O,{confirmed:!1},M)}},{key:"getTransactionInfo",value:function(O){var M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this._getTransactionInfoById(O,{confirmed:!0},M)}},{key:"_getTransactionInfoById",value:function(O,M){var I=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(!I)return this.injectPromise(this._getTransactionInfoById,O,M);this.tronWeb[M.confirmed?"solidityNode":"fullNode"].request("wallet".concat(M.confirmed?"solidity":"","/gettransactioninfobyid"),{value:O},"post").then(function(U){I(null,U)}).catch(function(U){return I(U)})}},{key:"getTransactionsToAddress",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:30,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,U=arguments.length>3&&arguments[3]!==void 0&&arguments[3];return X.isFunction(I)&&(U=I,I=0),X.isFunction(M)&&(U=M,M=30),U?(O=this.tronWeb.address.toHex(O),this.getTransactionsRelated(O,"to",M,I,U)):this.injectPromise(this.getTransactionsToAddress,O,M,I)}},{key:"getTransactionsFromAddress",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:30,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,U=arguments.length>3&&arguments[3]!==void 0&&arguments[3];return X.isFunction(I)&&(U=I,I=0),X.isFunction(M)&&(U=M,M=30),U?(O=this.tronWeb.address.toHex(O),this.getTransactionsRelated(O,"from",M,I,U)):this.injectPromise(this.getTransactionsFromAddress,O,M,I)}},{key:"getTransactionsRelated",value:(Ee=_(he().mark(function O(){var M,I,U,$,re,q,ye,Pe,de,fe=arguments;return he().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(M=fe.length>0&&fe[0]!==void 0?fe[0]:this.tronWeb.defaultAddress.hex,I=fe.length>1&&fe[1]!==void 0?fe[1]:"all",U=fe.length>2&&fe[2]!==void 0?fe[2]:30,$=fe.length>3&&fe[3]!==void 0?fe[3]:0,re=fe.length>4&&fe[4]!==void 0&&fe[4],X.isFunction($)&&(re=$,$=0),X.isFunction(U)&&(re=U,U=30),X.isFunction(I)&&(re=I,I="all"),X.isFunction(M)&&(re=M,M=this.tronWeb.defaultAddress.hex),re){xe.next=11;break}return xe.abrupt("return",this.injectPromise(this.getTransactionsRelated,M,I,U,$));case 11:if(["to","from","all"].includes(I)){xe.next=13;break}return xe.abrupt("return",re('Invalid direction provided: Expected "to", "from" or "all"'));case 13:if(I!="all"){xe.next=27;break}return xe.prev=14,xe.next=17,Promise.all([this.getTransactionsRelated(M,"from",U,$),this.getTransactionsRelated(M,"to",U,$)]);case 17:return q=xe.sent,ye=Xn(q,2),Pe=ye[0],de=ye[1],xe.abrupt("return",re(null,[].concat(oa(Pe.map(function(z){return z.direction="from",z})),oa(de.map(function(z){return z.direction="to",z}))).sort(function(z,Z){return Z.raw_data.timestamp-z.raw_data.timestamp})));case 24:return xe.prev=24,xe.t0=xe.catch(14),xe.abrupt("return",re(xe.t0));case 27:if(this.tronWeb.isAddress(M)){xe.next=29;break}return xe.abrupt("return",re("Invalid address provided"));case 29:if(!(!X.isInteger(U)||U<0||$&&U<1)){xe.next=31;break}return xe.abrupt("return",re("Invalid limit provided"));case 31:if(X.isInteger($)&&!($<0)){xe.next=33;break}return xe.abrupt("return",re("Invalid offset provided"));case 33:M=this.tronWeb.address.toHex(M),this.tronWeb.solidityNode.request("walletextension/gettransactions".concat(I,"this"),{account:{address:M},offset:$,limit:U},"post").then(function(z){var Z=z.transaction;re(null,Z)}).catch(function(z){return re(z)});case 35:case"end":return xe.stop()}},O,this,[[14,24]])})),function(){return Ee.apply(this,arguments)})},{key:"getAccount",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return X.isFunction(O)&&(M=O,O=this.tronWeb.defaultAddress.hex),M?this.tronWeb.isAddress(O)?(O=this.tronWeb.address.toHex(O),void this.tronWeb.solidityNode.request("walletsolidity/getaccount",{address:O},"post").then(function(I){M(null,I)}).catch(function(I){return M(I)})):M("Invalid address provided"):this.injectPromise(this.getAccount,O)}},{key:"getAccountById",value:function(){var O=arguments.length>0&&arguments[0]!==void 0&&arguments[0],M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!M)return this.injectPromise(this.getAccountById,O);this.getAccountInfoById(O,{confirmed:!0},M)}},{key:"getAccountInfoById",value:function(O,M,I){this.validator.notValid([{name:"accountId",type:"hex",value:O},{name:"accountId",type:"string",lte:32,gte:8,value:O}],I)||(O.startsWith("0x")&&(O=O.slice(2)),this.tronWeb[M.confirmed?"solidityNode":"fullNode"].request("wallet".concat(M.confirmed?"solidity":"","/getaccountbyid"),{account_id:O},"post").then(function(U){I(null,U)}).catch(function(U){return I(U)}))}},{key:"getBalance",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(X.isFunction(O)&&(M=O,O=this.tronWeb.defaultAddress.hex),!M)return this.injectPromise(this.getBalance,O);this.getAccount(O).then(function(I){var U=I.balance;M(null,U===void 0?0:U)}).catch(function(I){return M(I)})}},{key:"getUnconfirmedAccount",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return X.isFunction(O)&&(M=O,O=this.tronWeb.defaultAddress.hex),M?this.tronWeb.isAddress(O)?(O=this.tronWeb.address.toHex(O),void this.tronWeb.fullNode.request("wallet/getaccount",{address:O},"post").then(function(I){M(null,I)}).catch(function(I){return M(I)})):M("Invalid address provided"):this.injectPromise(this.getUnconfirmedAccount,O)}},{key:"getUnconfirmedAccountById",value:function(O){var M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!M)return this.injectPromise(this.getUnconfirmedAccountById,O);this.getAccountInfoById(O,{confirmed:!1},M)}},{key:"getUnconfirmedBalance",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(X.isFunction(O)&&(M=O,O=this.tronWeb.defaultAddress.hex),!M)return this.injectPromise(this.getUnconfirmedBalance,O);this.getUnconfirmedAccount(O).then(function(I){var U=I.balance;M(null,U===void 0?0:U)}).catch(function(I){return M(I)})}},{key:"getBandwidth",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return X.isFunction(O)&&(M=O,O=this.tronWeb.defaultAddress.hex),M?this.tronWeb.isAddress(O)?(O=this.tronWeb.address.toHex(O),void this.tronWeb.fullNode.request("wallet/getaccountnet",{address:O},"post").then(function(I){var U=I.freeNetUsed,$=U===void 0?0:U,re=I.freeNetLimit,q=re===void 0?0:re,ye=I.NetUsed,Pe=ye===void 0?0:ye,de=I.NetLimit;M(null,q-$+((de===void 0?0:de)-Pe))}).catch(function(I){return M(I)})):M("Invalid address provided"):this.injectPromise(this.getBandwidth,O)}},{key:"getTokensIssuedByAddress",value:function(){var O=this,M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,I=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return X.isFunction(M)&&(I=M,M=this.tronWeb.defaultAddress.hex),I?this.tronWeb.isAddress(M)?(M=this.tronWeb.address.toHex(M),void this.tronWeb.fullNode.request("wallet/getassetissuebyaccount",{address:M},"post").then(function(U){var $=U.assetIssue,re=$!==void 0&&$;if(!re)return I(null,{});var q=re.map(function(ye){return O._parseToken(ye)}).reduce(function(ye,Pe){return ye[Pe.name]=Pe,ye},{});I(null,q)}).catch(function(U){return I(U)})):I("Invalid address provided"):this.injectPromise(this.getTokensIssuedByAddress,M)}},{key:"getTokenFromID",value:function(){var O=this,M=arguments.length>0&&arguments[0]!==void 0&&arguments[0],I=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return I?(X.isInteger(M)&&(M=M.toString()),X.isString(M)&&M.length?void this.tronWeb.fullNode.request("wallet/getassetissuebyname",{value:this.tronWeb.fromUtf8(M)},"post").then(function(U){if(!U.name)return I("Token does not exist");I(null,O._parseToken(U))}).catch(function(U){return I(U)}):I("Invalid token ID provided")):this.injectPromise(this.getTokenFromID,M)}},{key:"listNodes",value:function(){var O=this,M=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(!M)return this.injectPromise(this.listNodes);this.tronWeb.fullNode.request("wallet/listnodes").then(function(I){var U=I.nodes;M(null,(U===void 0?[]:U).map(function($){var re=$.address,q=re.host,ye=re.port;return"".concat(O.tronWeb.toUtf8(q),":").concat(ye)}))}).catch(function(I){return M(I)})}},{key:"getBlockRange",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:30,I=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return X.isFunction(M)&&(I=M,M=30),X.isFunction(O)&&(I=O,O=0),I?!X.isInteger(O)||O<0?I("Invalid start of range provided"):!X.isInteger(M)||M<O?I("Invalid end of range provided"):M+1-O>100?I("Invalid range size, which should be no more than 100."):void this.tronWeb.fullNode.request("wallet/getblockbylimitnext",{startNum:parseInt(O),endNum:parseInt(M)+1},"post").then(function(U){var $=U.block;I(null,$===void 0?[]:$)}).catch(function(U){return I(U)}):this.injectPromise(this.getBlockRange,O,M)}},{key:"listSuperRepresentatives",value:function(){var O=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(!O)return this.injectPromise(this.listSuperRepresentatives);this.tronWeb.fullNode.request("wallet/listwitnesses").then(function(M){var I=M.witnesses;O(null,I===void 0?[]:I)}).catch(function(M){return O(M)})}},{key:"listTokens",value:function(){var O=this,M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,U=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return X.isFunction(I)&&(U=I,I=0),X.isFunction(M)&&(U=M,M=0),U?!X.isInteger(M)||M<0||I&&M<1?U("Invalid limit provided"):!X.isInteger(I)||I<0?U("Invalid offset provided"):M?void this.tronWeb.fullNode.request("wallet/getpaginatedassetissuelist",{offset:parseInt(I),limit:parseInt(M)},"post").then(function($){var re=$.assetIssue;U(null,(re===void 0?[]:re).map(function(q){return O._parseToken(q)}))}).catch(function($){return U($)}):this.tronWeb.fullNode.request("wallet/getassetissuelist").then(function($){var re=$.assetIssue;U(null,(re===void 0?[]:re).map(function(q){return O._parseToken(q)}))}).catch(function($){return U($)}):this.injectPromise(this.listTokens,M,I)}},{key:"timeUntilNextVoteCycle",value:function(){var O=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(!O)return this.injectPromise(this.timeUntilNextVoteCycle);this.tronWeb.fullNode.request("wallet/getnextmaintenancetime").then(function(M){var I=M.num,U=I===void 0?-1:I;if(U==-1)return O("Failed to get time until next vote cycle");O(null,Math.floor(U/1e3))}).catch(function(M){return O(M)})}},{key:"getContract",value:function(O){var M=this,I=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return I?this.tronWeb.isAddress(O)?void(this.cache.contracts[O]?I(null,this.cache.contracts[O]):(O=this.tronWeb.address.toHex(O),this.tronWeb.fullNode.request("wallet/getcontract",{value:O}).then(function(U){if(U.Error)return I("Contract does not exist");M.cache.contracts[O]=U,I(null,U)}).catch(function(U){return I(U)}))):I("Invalid contract address provided"):this.injectPromise(this.getContract,O)}},{key:"ecRecover",value:function(O){return r.ecRecover(O)}},{key:"verifyMessage",value:(Fe=_(he().mark(function O(){var M,I,U,$,re,q=arguments;return he().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(M=q.length>0&&q[0]!==void 0&&q[0],I=q.length>1&&q[1]!==void 0&&q[1],U=q.length>2&&q[2]!==void 0?q[2]:this.tronWeb.defaultAddress.base58,$=!(q.length>3&&q[3]!==void 0)||q[3],re=q.length>4&&q[4]!==void 0&&q[4],X.isFunction(U)&&(re=U,U=this.tronWeb.defaultAddress.base58,$=!0),X.isFunction($)&&(re=$,$=!0),re){ye.next=9;break}return ye.abrupt("return",this.injectPromise(this.verifyMessage,M,I,U,$));case 9:if(X.isHex(M)){ye.next=11;break}return ye.abrupt("return",re("Expected hex message input"));case 11:if(!r.verifySignature(M,U,I,$)){ye.next=13;break}return ye.abrupt("return",re(null,!0));case 13:re("Signature does not match");case 14:case"end":return ye.stop()}},O,this)})),function(){return Fe.apply(this,arguments)})},{key:"verifyMessageV2",value:function(){var O=arguments.length>0&&arguments[0]!==void 0&&arguments[0],M=arguments.length>1&&arguments[1]!==void 0&&arguments[1],I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},U=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(X.isFunction(I)&&(U=I,I={}),!U)return this.injectPromise(this.verifyMessageV2,O,M,I);try{U(null,r.verifyMessageV2(O,M))}catch($){U($)}}},{key:"verifyTypedData",value:function(O,M,I,U){var $=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.tronWeb.defaultAddress.base58,re=arguments.length>5&&arguments[5]!==void 0&&arguments[5];return X.isFunction($)&&(re=$,$=this.tronWeb.defaultAddress.base58),re?r.verifyTypedData(O,M,I,U,$)?re(null,!0):void re("Signature does not match"):this.injectPromise(this.verifyTypedData,O,M,I,U,$)}},{key:"sign",value:(ve=_(he().mark(function O(){var M,I,U,$,re,q,ye=arguments;return he().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(M=ye.length>0&&ye[0]!==void 0&&ye[0],I=ye.length>1&&ye[1]!==void 0?ye[1]:this.tronWeb.defaultPrivateKey,U=!(ye.length>2&&ye[2]!==void 0)||ye[2],$=ye.length>3&&ye[3]!==void 0&&ye[3],re=ye.length>4&&ye[4]!==void 0&&ye[4],X.isFunction($)&&(re=$,$=!1),X.isFunction(U)&&(re=U,U=!0,$=!1),X.isFunction(I)&&(re=I,I=this.tronWeb.defaultPrivateKey,U=!0,$=!1),re){Pe.next=10;break}return Pe.abrupt("return",this.injectPromise(this.sign,M,I,U,$));case 10:if(!X.isString(M)){Pe.next=21;break}if(X.isHex(M)){Pe.next=13;break}return Pe.abrupt("return",re("Expected hex message input"));case 13:return Pe.prev=13,q=r.signString(M,I,U),Pe.abrupt("return",re(null,q));case 18:Pe.prev=18,Pe.t0=Pe.catch(13),re(Pe.t0);case 21:if(X.isObject(M)){Pe.next=23;break}return Pe.abrupt("return",re("Invalid transaction provided"));case 23:if($||!M.signature){Pe.next=25;break}return Pe.abrupt("return",re("Transaction is already signed"));case 25:if(Pe.prev=25,$){Pe.next=32;break}if(this.tronWeb.address.toHex(this.tronWeb.address.fromPrivateKey(I)).toLowerCase()===this.tronWeb.address.toHex(M.raw_data.contract[0].parameter.value.owner_address)){Pe.next=30;break}return Pe.abrupt("return",re("Private key does not match address in transaction"));case 30:if(Cu(M)){Pe.next=32;break}return Pe.abrupt("return",re("Invalid transaction"));case 32:return Pe.abrupt("return",re(null,X.crypto.signTransaction(I,M)));case 35:Pe.prev=35,Pe.t1=Pe.catch(25),re(Pe.t1);case 38:case"end":return Pe.stop()}},O,this,[[13,18],[25,35]])})),function(){return ve.apply(this,arguments)})},{key:"signMessageV2",value:function(O){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.tronWeb.defaultPrivateKey,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},U=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(X.isFunction(I)&&(U=I,I={}),X.isFunction(M)&&(U=M,M=this.tronWeb.defaultPrivateKey),!U)return this.injectPromise(this.signMessageV2,O,M);try{return U(null,r.signMessageV2(O,M))}catch($){U($)}}},{key:"_signTypedData",value:function(O,M,I){var U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this.tronWeb.defaultPrivateKey,$=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(X.isFunction(U)&&($=U,U=this.tronWeb.defaultPrivateKey),!$)return this.injectPromise(this._signTypedData,O,M,I,U);try{return $(null,r._signTypedData(O,M,I,U))}catch(re){$(re)}}},{key:"multiSign",value:(we=_(he().mark(function O(){var M,I,U,$,re,q,ye,Pe=arguments;return he().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(M=Pe.length>0&&Pe[0]!==void 0&&Pe[0],I=Pe.length>1&&Pe[1]!==void 0?Pe[1]:this.tronWeb.defaultPrivateKey,U=Pe.length>2&&Pe[2]!==void 0&&Pe[2],$=Pe.length>3&&Pe[3]!==void 0&&Pe[3],X.isFunction(U)&&($=U,U=0),X.isFunction(I)&&($=I,I=this.tronWeb.defaultPrivateKey,U=0),$){de.next=8;break}return de.abrupt("return",this.injectPromise(this.multiSign,M,I,U));case 8:if(X.isObject(M)&&M.raw_data&&M.raw_data.contract){de.next=10;break}return de.abrupt("return",$("Invalid transaction provided"));case 10:if(M.raw_data.contract[0].Permission_id||!(U>0)){de.next=30;break}return M.raw_data.contract[0].Permission_id=U,re=this.tronWeb.address.toHex(this.tronWeb.address.fromPrivateKey(I)).toLowerCase(),de.next=15,this.getSignWeight(M,U);case 15:if((q=de.sent).result.code!=="PERMISSION_ERROR"){de.next=18;break}return de.abrupt("return",$(q.result.message));case 18:if(ye=!1,q.permission.keys.map(function(fe){fe.address===re&&(ye=!0)}),ye){de.next=22;break}return de.abrupt("return",$(I+" has no permission to sign"));case 22:if(!q.approved_list||q.approved_list.indexOf(re)==-1){de.next=24;break}return de.abrupt("return",$(I+" already sign transaction"));case 24:if(!q.transaction||!q.transaction.transaction){de.next=29;break}M=q.transaction.transaction,U>0&&(M.raw_data.contract[0].Permission_id=U),de.next=30;break;case 29:return de.abrupt("return",$("Invalid transaction provided"));case 30:if(de.prev=30,Cu(M)){de.next=33;break}return de.abrupt("return",$("Invalid transaction"));case 33:return de.abrupt("return",$(null,X.crypto.signTransaction(I,M)));case 36:de.prev=36,de.t0=de.catch(30),$(de.t0);case 39:case"end":return de.stop()}},O,this,[[30,36]])})),function(){return we.apply(this,arguments)})},{key:"getApprovedList",value:(J=_(he().mark(function O(M){var I,U=arguments;return he().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(I=U.length>1&&U[1]!==void 0&&U[1]){$.next=3;break}return $.abrupt("return",this.injectPromise(this.getApprovedList,M));case 3:if(X.isObject(M)){$.next=5;break}return $.abrupt("return",I("Invalid transaction provided"));case 5:this.tronWeb.fullNode.request("wallet/getapprovedlist",M,"post").then(function(re){I(null,re)}).catch(function(re){return I(re)});case 6:case"end":return $.stop()}},O,this)})),function(O){return J.apply(this,arguments)})},{key:"getSignWeight",value:(j=_(he().mark(function O(M,I){var U,$=arguments;return he().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(U=$.length>2&&$[2]!==void 0&&$[2],X.isFunction(I)&&(U=I,I=void 0),U){re.next=4;break}return re.abrupt("return",this.injectPromise(this.getSignWeight,M,I));case 4:if(X.isObject(M)&&M.raw_data&&M.raw_data.contract){re.next=6;break}return re.abrupt("return",U("Invalid transaction provided"));case 6:if(X.isInteger(I)?M.raw_data.contract[0].Permission_id=parseInt(I):typeof M.raw_data.contract[0].Permission_id!="number"&&(M.raw_data.contract[0].Permission_id=0),X.isObject(M)){re.next=9;break}return re.abrupt("return",U("Invalid transaction provided"));case 9:this.tronWeb.fullNode.request("wallet/getsignweight",M,"post").then(function(q){U(null,q)}).catch(function(q){return U(q)});case 10:case"end":return re.stop()}},O,this)})),function(O,M){return j.apply(this,arguments)})},{key:"sendRawTransaction",value:function(){var O=arguments.length>0&&arguments[0]!==void 0&&arguments[0],M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return X.isFunction(M)&&(I=M,M={}),I?X.isObject(O)?X.isObject(M)?O.signature&&X.isArray(O.signature)?void this.tronWeb.fullNode.request("wallet/broadcasttransaction",O,"post").then(function(U){U.result&&(U.transaction=O),I(null,U)}).catch(function(U){return I(U)}):I("Transaction is not signed"):I("Invalid options provided"):I("Invalid transaction provided"):this.injectPromise(this.sendRawTransaction,O,M)}},{key:"sendHexTransaction",value:function(){var O=arguments.length>0&&arguments[0]!==void 0&&arguments[0],M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(X.isFunction(M)&&(I=M,M={}),!I)return this.injectPromise(this.sendHexTransaction,O,M);if(!X.isHex(O))return I("Invalid hex transaction provided");if(!X.isObject(M))return I("Invalid options provided");var U={transaction:O};this.tronWeb.fullNode.request("wallet/broadcasthex",U,"post").then(function($){$.result&&($.transaction=JSON.parse($.transaction),$.hexTransaction=O),I(null,$)}).catch(function($){return I($)})}},{key:"sendTransaction",value:(x=_(he().mark(function O(){var M,I,U,$,re,q,ye,Pe,de=arguments;return he().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(M=de.length>0&&de[0]!==void 0&&de[0],I=de.length>1&&de[1]!==void 0&&de[1],U=de.length>2&&de[2]!==void 0?de[2]:{},$=de.length>3&&de[3]!==void 0&&de[3],X.isFunction(U)&&($=U,U={}),typeof U=="string"&&(U={privateKey:U}),$){fe.next=8;break}return fe.abrupt("return",this.injectPromise(this.sendTransaction,M,I,U));case 8:if(this.tronWeb.isAddress(M)){fe.next=10;break}return fe.abrupt("return",$("Invalid recipient provided"));case 10:if(X.isInteger(I)&&!(I<=0)){fe.next=12;break}return fe.abrupt("return",$("Invalid amount provided"));case 12:if((U=Aa({privateKey:this.tronWeb.defaultPrivateKey,address:this.tronWeb.defaultAddress.hex},U)).privateKey||U.address){fe.next=15;break}return fe.abrupt("return",$("Function requires either a private key or address to be set"));case 15:return fe.prev=15,re=U.privateKey?this.tronWeb.address.fromPrivateKey(U.privateKey):U.address,fe.next=19,this.tronWeb.transactionBuilder.sendTrx(M,I,re);case 19:return q=fe.sent,fe.next=22,this.sign(q,U.privateKey||void 0);case 22:return ye=fe.sent,fe.next=25,this.sendRawTransaction(ye);case 25:return Pe=fe.sent,fe.abrupt("return",$(null,Pe));case 29:return fe.prev=29,fe.t0=fe.catch(15),fe.abrupt("return",$(fe.t0));case 32:case"end":return fe.stop()}},O,this,[[15,29]])})),function(){return x.apply(this,arguments)})},{key:"sendToken",value:(w=_(he().mark(function O(){var M,I,U,$,re,q,ye,Pe,de,fe=arguments;return he().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(M=fe.length>0&&fe[0]!==void 0&&fe[0],I=fe.length>1&&fe[1]!==void 0&&fe[1],U=fe.length>2&&fe[2]!==void 0&&fe[2],$=fe.length>3&&fe[3]!==void 0?fe[3]:{},re=fe.length>4&&fe[4]!==void 0&&fe[4],X.isFunction($)&&(re=$,$={}),typeof $=="string"&&($={privateKey:$}),re){xe.next=9;break}return xe.abrupt("return",this.injectPromise(this.sendToken,M,I,U,$));case 9:if(this.tronWeb.isAddress(M)){xe.next=11;break}return xe.abrupt("return",re("Invalid recipient provided"));case 11:if(X.isInteger(I)&&!(I<=0)){xe.next=13;break}return xe.abrupt("return",re("Invalid amount provided"));case 13:if(X.isInteger(U)&&(U=U.toString()),X.isString(U)){xe.next=16;break}return xe.abrupt("return",re("Invalid token ID provided"));case 16:if(($=Aa({privateKey:this.tronWeb.defaultPrivateKey,address:this.tronWeb.defaultAddress.hex},$)).privateKey||$.address){xe.next=19;break}return xe.abrupt("return",re("Function requires either a private key or address to be set"));case 19:return xe.prev=19,q=$.privateKey?this.tronWeb.address.fromPrivateKey($.privateKey):$.address,xe.next=23,this.tronWeb.transactionBuilder.sendToken(M,I,U,q);case 23:return ye=xe.sent,xe.next=26,this.sign(ye,$.privateKey||void 0);case 26:return Pe=xe.sent,xe.next=29,this.sendRawTransaction(Pe);case 29:return de=xe.sent,xe.abrupt("return",re(null,de));case 33:return xe.prev=33,xe.t0=xe.catch(19),xe.abrupt("return",re(xe.t0));case 36:case"end":return xe.stop()}},O,this,[[19,33]])})),function(){return w.apply(this,arguments)})},{key:"freezeBalance",value:(b=_(he().mark(function O(){var M,I,U,$,re,q,ye,Pe,de,fe,xe=arguments;return he().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(M=xe.length>0&&xe[0]!==void 0?xe[0]:0,I=xe.length>1&&xe[1]!==void 0?xe[1]:3,U=xe.length>2&&xe[2]!==void 0?xe[2]:"BANDWIDTH",$=xe.length>3&&xe[3]!==void 0?xe[3]:{},re=xe.length>4&&xe[4]!==void 0?xe[4]:void 0,q=xe.length>5&&xe[5]!==void 0&&xe[5],X.isFunction(re)&&(q=re,re=void 0),X.isFunction(I)&&(q=I,I=3),X.isFunction(U)&&(q=U,U="BANDWIDTH"),X.isFunction($)&&(q=$,$={}),typeof $=="string"&&($={privateKey:$}),q){z.next=13;break}return z.abrupt("return",this.injectPromise(this.freezeBalance,M,I,U,$,re));case 13:if(["BANDWIDTH","ENERGY"].includes(U)){z.next=15;break}return z.abrupt("return",q('Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'));case 15:if(X.isInteger(M)&&!(M<=0)){z.next=17;break}return z.abrupt("return",q("Invalid amount provided"));case 17:if(X.isInteger(I)&&!(I<3)){z.next=19;break}return z.abrupt("return",q("Invalid duration provided, minimum of 3 days"));case 19:if(($=Aa({privateKey:this.tronWeb.defaultPrivateKey,address:this.tronWeb.defaultAddress.hex},$)).privateKey||$.address){z.next=22;break}return z.abrupt("return",q("Function requires either a private key or address to be set"));case 22:return z.prev=22,ye=$.privateKey?this.tronWeb.address.fromPrivateKey($.privateKey):$.address,z.next=26,this.tronWeb.transactionBuilder.freezeBalance(M,I,U,ye,re);case 26:return Pe=z.sent,z.next=29,this.sign(Pe,$.privateKey||void 0);case 29:return de=z.sent,z.next=32,this.sendRawTransaction(de);case 32:return fe=z.sent,z.abrupt("return",q(null,fe));case 36:return z.prev=36,z.t0=z.catch(22),z.abrupt("return",q(z.t0));case 39:case"end":return z.stop()}},O,this,[[22,36]])})),function(){return b.apply(this,arguments)})},{key:"unfreezeBalance",value:(p=_(he().mark(function O(){var M,I,U,$,re,q,ye,Pe,de=arguments;return he().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(M=de.length>0&&de[0]!==void 0?de[0]:"BANDWIDTH",I=de.length>1&&de[1]!==void 0?de[1]:{},U=de.length>2&&de[2]!==void 0?de[2]:void 0,$=de.length>3&&de[3]!==void 0&&de[3],X.isFunction(U)&&($=U,U=void 0),X.isFunction(M)&&($=M,M="BANDWIDTH"),X.isFunction(I)&&($=I,I={}),typeof I=="string"&&(I={privateKey:I}),$){fe.next=10;break}return fe.abrupt("return",this.injectPromise(this.unfreezeBalance,M,I,U));case 10:if(["BANDWIDTH","ENERGY"].includes(M)){fe.next=12;break}return fe.abrupt("return",$('Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'));case 12:if((I=Aa({privateKey:this.tronWeb.defaultPrivateKey,address:this.tronWeb.defaultAddress.hex},I)).privateKey||I.address){fe.next=15;break}return fe.abrupt("return",$("Function requires either a private key or address to be set"));case 15:return fe.prev=15,re=I.privateKey?this.tronWeb.address.fromPrivateKey(I.privateKey):I.address,fe.next=19,this.tronWeb.transactionBuilder.unfreezeBalance(M,re,U);case 19:return q=fe.sent,fe.next=22,this.sign(q,I.privateKey||void 0);case 22:return ye=fe.sent,fe.next=25,this.sendRawTransaction(ye);case 25:return Pe=fe.sent,fe.abrupt("return",$(null,Pe));case 29:return fe.prev=29,fe.t0=fe.catch(15),fe.abrupt("return",$(fe.t0));case 32:case"end":return fe.stop()}},O,this,[[15,29]])})),function(){return p.apply(this,arguments)})},{key:"updateAccount",value:(g=_(he().mark(function O(){var M,I,U,$,re,q,ye,Pe=arguments;return he().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(M=Pe.length>0&&Pe[0]!==void 0&&Pe[0],I=Pe.length>1&&Pe[1]!==void 0?Pe[1]:{},U=Pe.length>2&&Pe[2]!==void 0&&Pe[2],X.isFunction(I)&&(U=I,I={}),typeof I=="string"&&(I={privateKey:I}),U){de.next=7;break}return de.abrupt("return",this.injectPromise(this.updateAccount,M,I));case 7:if(X.isString(M)&&M.length){de.next=9;break}return de.abrupt("return",U("Name must be a string"));case 9:if((I=Aa({privateKey:this.tronWeb.defaultPrivateKey,address:this.tronWeb.defaultAddress.hex},I)).privateKey||I.address){de.next=12;break}return de.abrupt("return",U("Function requires either a private key or address to be set"));case 12:return de.prev=12,$=I.privateKey?this.tronWeb.address.fromPrivateKey(I.privateKey):I.address,de.next=16,this.tronWeb.transactionBuilder.updateAccount(M,$);case 16:return re=de.sent,de.next=19,this.sign(re,I.privateKey||void 0);case 19:return q=de.sent,de.next=22,this.sendRawTransaction(q);case 22:return ye=de.sent,de.abrupt("return",U(null,ye));case 26:return de.prev=26,de.t0=de.catch(12),de.abrupt("return",U(de.t0));case 29:case"end":return de.stop()}},O,this,[[12,26]])})),function(){return g.apply(this,arguments)})},{key:"signMessage",value:function(){return this.sign.apply(this,arguments)}},{key:"sendAsset",value:function(){return this.sendToken.apply(this,arguments)}},{key:"send",value:function(){return this.sendTransaction.apply(this,arguments)}},{key:"sendTrx",value:function(){return this.sendTransaction.apply(this,arguments)}},{key:"broadcast",value:function(){return this.sendRawTransaction.apply(this,arguments)}},{key:"broadcastHex",value:function(){return this.sendHexTransaction.apply(this,arguments)}},{key:"signTransaction",value:function(){return this.sign.apply(this,arguments)}},{key:"getProposal",value:function(){var O=arguments.length>0&&arguments[0]!==void 0&&arguments[0],M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return M?!X.isInteger(O)||O<0?M("Invalid proposalID provided"):void this.tronWeb.fullNode.request("wallet/getproposalbyid",{id:parseInt(O)},"post").then(function(I){M(null,I)}).catch(function(I){return M(I)}):this.injectPromise(this.getProposal,O)}},{key:"listProposals",value:function(){var O=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(!O)return this.injectPromise(this.listProposals);this.tronWeb.fullNode.request("wallet/listproposals",{},"post").then(function(M){var I=M.proposals;O(null,I===void 0?[]:I)}).catch(function(M){return O(M)})}},{key:"getChainParameters",value:function(){var O=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(!O)return this.injectPromise(this.getChainParameters);this.tronWeb.fullNode.request("wallet/getchainparameters",{},"post").then(function(M){var I=M.chainParameter;O(null,I===void 0?[]:I)}).catch(function(M){return O(M)})}},{key:"getAccountResources",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return M?this.tronWeb.isAddress(O)?void this.tronWeb.fullNode.request("wallet/getaccountresource",{address:this.tronWeb.address.toHex(O)},"post").then(function(I){M(null,I)}).catch(function(I){return M(I)}):M("Invalid address provided"):this.injectPromise(this.getAccountResources,O)}},{key:"getDelegatedResourceV2",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.tronWeb.defaultAddress.hex,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{confirmed:!0},U=arguments.length>3&&arguments[3]!==void 0&&arguments[3];return X.isFunction(I)&&(U=I,I={confirmed:!0}),X.isFunction(M)&&(U=M,M=this.tronWeb.defaultAddress.hex),X.isFunction(O)&&(U=O,O=this.tronWeb.defaultAddress.hex,M=this.tronWeb.defaultAddress.hex),U?this.tronWeb.isAddress(O)&&this.tronWeb.isAddress(M)?void this.tronWeb[I.confirmed?"solidityNode":"fullNode"].request("wallet".concat(I.confirmed?"solidity":"","/getdelegatedresourcev2"),{fromAddress:ta(O),toAddress:ta(M)},"post").then(function($){U(null,$)}).catch(function($){return U($)}):U("Invalid address provided"):this.injectPromise(this.getDelegatedResourceV2,O,M,I)}},{key:"getDelegatedResourceAccountIndexV2",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{confirmed:!0},I=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return X.isFunction(M)&&(I=M,M={confirmed:!0}),X.isFunction(O)&&(I=O,O=this.tronWeb.defaultAddress.hex),I?this.tronWeb.isAddress(O)?void this.tronWeb[M.confirmed?"solidityNode":"fullNode"].request("wallet".concat(M.confirmed?"solidity":"","/getdelegatedresourceaccountindexv2"),{value:ta(O)},"post").then(function(U){I(null,U)}).catch(function(U){return I(U)}):I("Invalid address provided"):this.injectPromise(this.getDelegatedResourceAccountIndexV2,O,M)}},{key:"getCanDelegatedMaxSize",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"BANDWIDTH",I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{confirmed:!0},U=arguments.length>3&&arguments[3]!==void 0&&arguments[3];return X.isFunction(I)&&(U=I,I={confirmed:!0}),X.isFunction(M)&&(U=M,M="BANDWIDTH"),X.isFunction(O)&&(U=O,O=this.tronWeb.defaultAddress.hex),U?this.tronWeb.isAddress(O)?void(this.validator.notValid([{name:"resource",type:"resource",value:M,msg:'Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'}],U)||this.tronWeb[I.confirmed?"solidityNode":"fullNode"].request("wallet".concat(I.confirmed?"solidity":"","/getcandelegatedmaxsize"),{owner_address:ta(O),type:M==="ENERGY"?1:0},"post").then(function($){U(null,$)}).catch(function($){return U($)})):U("Invalid address provided"):this.injectPromise(this.getCanDelegatedMaxSize,O,M,I)}},{key:"getAvailableUnfreezeCount",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{confirmed:!0},I=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return X.isFunction(M)&&(I=M,M={confirmed:!0}),X.isFunction(O)&&(I=O,O=this.tronWeb.defaultAddress.hex),I?this.tronWeb.isAddress(O)?void this.tronWeb[M.confirmed?"solidityNode":"fullNode"].request("wallet".concat(M.confirmed?"solidity":"","/getavailableunfreezecount"),{owner_address:ta(O)},"post").then(function(U){I(null,U)}).catch(function(U){return I(U)}):I("Invalid address provided"):this.injectPromise(this.getAvailableUnfreezeCount,O,M)}},{key:"getCanWithdrawUnfreezeAmount",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.tronWeb.defaultAddress.hex,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Date.now(),I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{confirmed:!0},U=arguments.length>3&&arguments[3]!==void 0&&arguments[3];return X.isFunction(I)&&(U=I,I={confirmed:!0}),X.isFunction(M)&&(U=M,M=Date.now()),X.isFunction(O)&&(U=O,O=this.tronWeb.defaultAddress.hex),U?this.tronWeb.isAddress(O)?!X.isInteger(M)||M<0?U("Invalid timestamp provided"):void this.tronWeb[I.confirmed?"solidityNode":"fullNode"].request("wallet".concat(I.confirmed?"solidity":"","/getcanwithdrawunfreezeamount"),{owner_address:ta(O),timestamp:M},"post").then(function($){U(null,$)}).catch(function($){return U($)}):U("Invalid address provided"):this.injectPromise(this.getCanWithdrawUnfreezeAmount,O,M,I)}},{key:"getExchangeByID",value:function(){var O=arguments.length>0&&arguments[0]!==void 0&&arguments[0],M=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return M?!X.isInteger(O)||O<0?M("Invalid exchangeID provided"):void this.tronWeb.fullNode.request("wallet/getexchangebyid",{id:O},"post").then(function(I){M(null,I)}).catch(function(I){return M(I)}):this.injectPromise(this.getExchangeByID,O)}},{key:"listExchanges",value:function(){var O=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(!O)return this.injectPromise(this.listExchanges);this.tronWeb.fullNode.request("wallet/listexchanges",{},"post").then(function(M){var I=M.exchanges;O(null,I===void 0?[]:I)},"post").catch(function(M){return O(M)})}},{key:"listExchangesPaginated",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(X.isFunction(M)&&(I=M,M=0),X.isFunction(O)&&(I=O,O=10),!I)return this.injectPromise(this.listExchangesPaginated,O,M);this.tronWeb.fullNode.request("wallet/getpaginatedexchangelist",{limit:O,offset:M},"post").then(function(U){var $=U.exchanges;I(null,$===void 0?[]:$)}).catch(function(U){return I(U)})}},{key:"getNodeInfo",value:function(){var O=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(!O)return this.injectPromise(this.getNodeInfo);this.tronWeb.fullNode.request("wallet/getnodeinfo",{},"post").then(function(M){O(null,M)},"post").catch(function(M){return O(M)})}},{key:"getTokenListByName",value:function(){var O=this,M=arguments.length>0&&arguments[0]!==void 0&&arguments[0],I=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return I?(X.isInteger(M)&&(M=M.toString()),X.isString(M)&&M.length?void this.tronWeb.fullNode.request("wallet/getassetissuelistbyname",{value:this.tronWeb.fromUtf8(M)},"post").then(function(U){if(Array.isArray(U.assetIssue))I(null,U.assetIssue.map(function($){return O._parseToken($)}));else if(!U.name)return I("Token does not exist");I(null,O._parseToken(U))}).catch(function(U){return I(U)}):I("Invalid token ID provided")):this.injectPromise(this.getTokenListByName,M)}},{key:"getTokenByID",value:function(){var O=this,M=arguments.length>0&&arguments[0]!==void 0&&arguments[0],I=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return I?(X.isInteger(M)&&(M=M.toString()),X.isString(M)&&M.length?void this.tronWeb.fullNode.request("wallet/getassetissuebyid",{value:M},"post").then(function(U){if(!U.name)return I("Token does not exist");I(null,O._parseToken(U))}).catch(function(U){return I(U)}):I("Invalid token ID provided")):this.injectPromise(this.getTokenByID,M)}},{key:"getReward",value:(l=_(he().mark(function O(M){var I,U,$=arguments;return he().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return U=$.length>2&&$[2]!==void 0&&$[2],(I=$.length>1&&$[1]!==void 0?$[1]:{}).confirmed=!0,re.abrupt("return",this._getReward(M,I,U));case 4:case"end":return re.stop()}},O,this)})),function(O){return l.apply(this,arguments)})},{key:"getUnconfirmedReward",value:(h=_(he().mark(function O(M){var I,U,$=arguments;return he().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return U=$.length>2&&$[2]!==void 0&&$[2],(I=$.length>1&&$[1]!==void 0?$[1]:{}).confirmed=!1,re.abrupt("return",this._getReward(M,I,U));case 4:case"end":return re.stop()}},O,this)})),function(O){return h.apply(this,arguments)})},{key:"getBrokerage",value:(d=_(he().mark(function O(M){var I,U,$=arguments;return he().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return U=$.length>2&&$[2]!==void 0&&$[2],(I=$.length>1&&$[1]!==void 0?$[1]:{}).confirmed=!0,re.abrupt("return",this._getBrokerage(M,I,U));case 4:case"end":return re.stop()}},O,this)})),function(O){return d.apply(this,arguments)})},{key:"getUnconfirmedBrokerage",value:(u=_(he().mark(function O(M){var I,U,$=arguments;return he().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return U=$.length>2&&$[2]!==void 0&&$[2],(I=$.length>1&&$[1]!==void 0?$[1]:{}).confirmed=!1,re.abrupt("return",this._getBrokerage(M,I,U));case 4:case"end":return re.stop()}},O,this)})),function(O){return u.apply(this,arguments)})},{key:"_getReward",value:(c=_(he().mark(function O(){var M,I,U,$,re=arguments;return he().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(M=re.length>0&&re[0]!==void 0?re[0]:this.tronWeb.defaultAddress.hex,I=re.length>1?re[1]:void 0,U=re.length>2&&re[2]!==void 0&&re[2],X.isFunction(I)&&(U=I,I={}),X.isFunction(M)?(U=M,M=this.tronWeb.defaultAddress.hex):X.isObject(M)&&(I=M,M=this.tronWeb.defaultAddress.hex),U){q.next=7;break}return q.abrupt("return",this.injectPromise(this._getReward,M,I));case 7:if(!this.validator.notValid([{name:"origin",type:"address",value:M}],U)){q.next=9;break}return q.abrupt("return");case 9:$={address:ta(M)},this.tronWeb[I.confirmed?"solidityNode":"fullNode"].request("wallet".concat(I.confirmed?"solidity":"","/getReward"),$,"post").then(function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ye.reward===void 0)return U("Not found.");U(null,ye.reward)}).catch(function(ye){return U(ye)});case 11:case"end":return q.stop()}},O,this)})),function(){return c.apply(this,arguments)})},{key:"_getBrokerage",value:(a=_(he().mark(function O(){var M,I,U,$,re=arguments;return he().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(M=re.length>0&&re[0]!==void 0?re[0]:this.tronWeb.defaultAddress.hex,I=re.length>1?re[1]:void 0,U=re.length>2&&re[2]!==void 0&&re[2],X.isFunction(I)&&(U=I,I={}),X.isFunction(M)?(U=M,M=this.tronWeb.defaultAddress.hex):X.isObject(M)&&(I=M,M=this.tronWeb.defaultAddress.hex),U){q.next=7;break}return q.abrupt("return",this.injectPromise(this._getBrokerage,M,I));case 7:if(!this.validator.notValid([{name:"origin",type:"address",value:M}],U)){q.next=9;break}return q.abrupt("return");case 9:$={address:ta(M)},this.tronWeb[I.confirmed?"solidityNode":"fullNode"].request("wallet".concat(I.confirmed?"solidity":"","/getBrokerage"),$,"post").then(function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ye.brokerage===void 0)return U("Not found.");U(null,ye.brokerage)}).catch(function(ye){return U(ye)});case 11:case"end":return q.stop()}},O,this)})),function(){return a.apply(this,arguments)})},{key:"getBandwidthPrices",value:(n=_(he().mark(function O(){return he().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",this.tronWeb.fullNode.request("wallet/getbandwidthprices",{},"post").then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(I.prices===void 0)throw new Error("Not found.");return I.prices}));case 1:case"end":return M.stop()}},O,this)})),function(){return n.apply(this,arguments)})},{key:"getEnergyPrices",value:(e=_(he().mark(function O(){return he().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",this.tronWeb.fullNode.request("wallet/getenergyprices",{},"post").then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(I.prices===void 0)throw new Error("Not found.");return I.prices}));case 1:case"end":return M.stop()}},O,this)})),function(){return e.apply(this,arguments)})}],[{key:"ecRecover",value:function(O){var M;if(!Cu(O))throw new Error("Invalid transaction");if((M=O.signature)===null||M===void 0||!M.length)throw new Error("Transaction is not signed");if(O.signature.length===1){var I=el(O.txID,O.signature[0]);return vr.address.fromHex(I)}return O.signature.map(function(U){var $=el(O.txID,U);return vr.address.fromHex($)})}},{key:"verifySignature",value:function(O,M,I){var U=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3];O=O.replace(/^0x/,"");var $=[].concat(oa(mn(U?D0:U0)),oa(X.code.hexStr2byteArray(O))),re=Ra(rr(new Uint8Array($)),Cn.from("0x".concat(I.replace(/^0x/,"")))),q=co+re.substr(2);return vr.address.fromHex(q)==vr.address.fromHex(M)}},{key:"verifyMessageV2",value:function(O,M){return X.message.verifyMessage(O,M)}},{key:"verifyTypedData",value:function(O,M,I,U,$){var re=Ra(X._TypedDataEncoder.hash(O,M,I),Cn.from("0x".concat(U.replace(/^0x/,"")))),q=co+re.substr(2);return vr.address.fromHex(q)==vr.address.fromHex($)}},{key:"signString",value:function(O,M){var I=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];O=O.replace(/^0x/,"");var U="0x".concat(M.replace(/^0x/,"")),$=new Rn(U),re=[].concat(oa(mn(I?D0:U0)),oa(X.code.hexStr2byteArray(O))),q=rr(new Uint8Array(re)),ye=$.sign(q);return["0x",ye.r.substring(2),ye.s.substring(2),Number(ye.v).toString(16)].join("")}},{key:"signMessageV2",value:function(O,M){return X.message.signMessage(O,M)}},{key:"_signTypedData",value:function(O,M,I,U){return X.crypto._signTypedData(O,M,I,U)}}]),r})();function j0(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);e&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),n.push.apply(n,a)}return n}function Fo(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?j0(Object(n),!0).forEach(function(a){te(r,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):j0(Object(n)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(n,a))})}return r}var Gm=function(r){if(r.stateMutability=r.stateMutability?r.stateMutability.toLowerCase():"nonpayable",r.type=r.type?r.type.toLowerCase():"",r.type==="fallback"||r.type==="receive")return"0x";var e=new X.ethersUtils.Interface([r]);return r.type==="event"?e.getEvent(r.name).format(X.ethersUtils.FormatTypes.sighash):e.getFunction(r.name).format(X.ethersUtils.FormatTypes.sighash)},Bl=function(r,e){return g0(r,e)},$m=(function(){function r(c,u){Q(this,r),this.tronWeb=c.tronWeb,this.contract=c,this.abi=u,this.name=u.name||(u.name=u.type),this.inputs=u.inputs||[],this.outputs=u.outputs||[],this.functionSelector=Gm(u),this.signature=this.tronWeb.sha3(this.functionSelector,!1).slice(0,8),this.injectPromise=Ta()(this),this.defaultOptions={feeLimit:this.tronWeb.feeLimit,callValue:0,userFeePercentage:100,shouldPollResponse:!1}}var e,n,a;return E(r,[{key:"decodeInput",value:function(c){return Bl(this.inputs,"0x"+c)}},{key:"onMethod",value:function(){var c=this,u="";if(this.abi&&!/event/i.test(this.abi.type)){for(var d=arguments.length,h=new Array(d),l=0;l<d;l++)h[l]=arguments[l];u=wu(this.abi,h)}return{call:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return X.isFunction(g)&&(p=g,g={}),g=Fo(Fo({},g),{},{rawParameter:u}),c._call([],[],g,p)},send:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c.tronWeb.defaultPrivateKey,b=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return X.isFunction(p)&&(b=p,p=c.tronWeb.defaultPrivateKey),X.isFunction(g)&&(b=g,g={}),g=Fo(Fo({},g),{},{rawParameter:u}),c._send([],[],g,p,b)},watch:function(){return c._watch.apply(c,arguments)}}}},{key:"_call",value:(a=_(he().mark(function c(u,d){var h,l,g,p,b=this,w=arguments;return he().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(h=w.length>2&&w[2]!==void 0?w[2]:{},l=w.length>3&&w[3]!==void 0&&w[3],X.isFunction(h)&&(l=h,h={}),l){x.next=5;break}return x.abrupt("return",this.injectPromise(this._call,u,d,h));case 5:if(u.length===d.length){x.next=7;break}return x.abrupt("return",l("Invalid argument count provided"));case 7:if(this.contract.address){x.next=9;break}return x.abrupt("return",l("Smart contract is missing address"));case 9:if(this.contract.deployed){x.next=11;break}return x.abrupt("return",l("Calling smart contracts requires you to load the contract first"));case 11:if(g=this.abi.stateMutability,["pure","view"].includes(g.toLowerCase())){x.next=14;break}return x.abrupt("return",l('Methods with state mutability "'.concat(g,'" must use send()')));case 14:h=Fo(Fo(Fo({},this.defaultOptions),{},{from:this.tronWeb.defaultAddress.hex},h),{},{_isConstant:!0}),p=d.map(function(j,J){return{type:u[J],value:j}}),this.tronWeb.transactionBuilder.triggerSmartContract(this.contract.address,this.functionSelector,h,p,!!h.from&&this.tronWeb.address.toHex(h.from),function(j,J){if(j)return l(j);if(!X.hasProperty(J,"constant_result"))return l("Failed to execute");try{var we=J.constant_result[0].length;if(we===0||we%64==8){var ve="The call has been reverted or has thrown an error.";if(we!==0){ve+=" Error message: ";for(var Fe="",Ee=J.constant_result[0].substring(8),O=0;O<we-8;O+=64)Fe+=b.tronWeb.toUtf8(Ee.substring(O,O+64));ve+=Fe.replace(/(\u0000|\u000b|\f)+/g," ").replace(/ +/g," ").replace(/\s+$/g,"")}return l(ve)}var M=Bl(b.abi,"0x"+J.constant_result[0]);return M.length===1&&Object.keys(M).length===1&&(M=M[0]),l(null,M)}catch(I){return l(I)}});case 17:case"end":return x.stop()}},c,this)})),function(c,u){return a.apply(this,arguments)})},{key:"_send",value:(n=_(he().mark(function c(u,d){var h,l,g,p,b,w,x,j,J,we,ve,Fe=this,Ee=arguments;return he().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(h=Ee.length>2&&Ee[2]!==void 0?Ee[2]:{},l=Ee.length>3&&Ee[3]!==void 0?Ee[3]:this.tronWeb.defaultPrivateKey,g=Ee.length>4&&Ee[4]!==void 0&&Ee[4],X.isFunction(l)&&(g=l,l=this.tronWeb.defaultPrivateKey),X.isFunction(h)&&(g=h,h={}),g){O.next=7;break}return O.abrupt("return",this.injectPromise(this._send,u,d,h,l));case 7:if(u.length===d.length){O.next=9;break}throw new Error("Invalid argument count provided");case 9:if(this.contract.address){O.next=11;break}return O.abrupt("return",g("Smart contract is missing address"));case 11:if(this.contract.deployed){O.next=13;break}return O.abrupt("return",g("Calling smart contracts requires you to load the contract first"));case 13:if(p=this.abi.stateMutability,!["pure","view"].includes(p.toLowerCase())){O.next=16;break}return O.abrupt("return",g('Methods with state mutability "'.concat(p,'" must use call()')));case 16:return["payable"].includes(p.toLowerCase())||(h.callValue=0),h=Fo(Fo({},this.defaultOptions),{},{from:this.tronWeb.defaultAddress.hex},h),b=d.map(function(M,I){return{type:u[I],value:M}}),O.prev=19,w=l?this.tronWeb.address.fromPrivateKey(l):this.tronWeb.defaultAddress.base58,O.next=23,this.tronWeb.transactionBuilder.triggerSmartContract(this.contract.address,this.functionSelector,h,b,this.tronWeb.address.toHex(w));case 23:if((x=O.sent).result&&x.result.result){O.next=26;break}return O.abrupt("return",g("Unknown error: "+JSON.stringify(x,null,2)));case 26:return O.next=28,this.tronWeb.trx.sign(x.transaction,l);case 28:if((j=O.sent).signature){O.next=33;break}if(l){O.next=32;break}return O.abrupt("return",g("Transaction was not signed properly"));case 32:return O.abrupt("return",g("Invalid private key provided"));case 33:return O.next=35,this.tronWeb.trx.sendRawTransaction(j);case 35:if(!(J=O.sent).code){O.next=40;break}return we={error:J.code,message:J.code},J.message&&(we.message=this.tronWeb.toUtf8(J.message)),O.abrupt("return",g(we));case 40:if(h.shouldPollResponse){O.next=42;break}return O.abrupt("return",g(null,j.txID));case 42:ve=(function(){var M=_(he().mark(function I(){var U,$,re,q=arguments;return he().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if((U=q.length>0&&q[0]!==void 0?q[0]:0)!==(h.pollTimes||20)){ye.next=3;break}return ye.abrupt("return",g({error:"Cannot find result in solidity node",transaction:j}));case 3:return ye.next=5,Fe.tronWeb.trx.getTransactionInfo(j.txID);case 5:if($=ye.sent,Object.keys($).length){ye.next=8;break}return ye.abrupt("return",setTimeout(function(){ve(U+1)},3e3));case 8:if(!$.result||$.result!=="FAILED"){ye.next=10;break}return ye.abrupt("return",g({error:Fe.tronWeb.toUtf8($.resMessage),transaction:j,output:$}));case 10:if(X.hasProperty($,"contractResult")){ye.next=12;break}return ye.abrupt("return",g({error:"Failed to execute: "+JSON.stringify($,null,2),transaction:j,output:$}));case 12:if(!h.rawResponse){ye.next=14;break}return ye.abrupt("return",g(null,$));case 14:if((re=Bl(Fe.abi,"0x"+$.contractResult[0])).length===1&&Object.keys(re).length===1&&(re=re[0]),!h.keepTxID){ye.next=18;break}return ye.abrupt("return",g(null,[j.txID,re]));case 18:return ye.abrupt("return",g(null,re));case 19:case"end":return ye.stop()}},I)}));return function(){return M.apply(this,arguments)}})(),ve(),O.next=49;break;case 46:return O.prev=46,O.t0=O.catch(19),O.abrupt("return",g(O.t0));case 49:case"end":return O.stop()}},c,this,[[19,46]])})),function(c,u){return n.apply(this,arguments)})},{key:"_watch",value:(e=_(he().mark(function c(){var u,d,h,l,g,p,b,w=this,x=arguments;return he().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(u=x.length>0&&x[0]!==void 0?x[0]:{},d=x.length>1&&x[1]!==void 0&&x[1],X.isFunction(u)&&(d=u,u={}),X.isFunction(d)){j.next=5;break}throw new Error("Expected callback to be provided");case 5:if(this.contract.address){j.next=7;break}return j.abrupt("return",d("Smart contract is missing address"));case 7:if(this.abi.type&&/event/i.test(this.abi.type)){j.next=9;break}return j.abrupt("return",d("Invalid method type for event watching"));case 9:if(this.tronWeb.eventServer){j.next=11;break}return j.abrupt("return",d("No event server configured"));case 11:return h=!1,l=!1,g=Date.now()-1e3,p=(function(){var J=_(he().mark(function we(){var ve,Fe,Ee,O,M,I;return he().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.prev=0,ve={since:g,eventName:w.name,sort:"block_timestamp",blockNumber:"latest",filters:u.filters},u.size&&(ve.size=u.size),u.resourceNode&&(/full/i.test(u.resourceNode)?ve.onlyUnconfirmed=!0:ve.onlyConfirmed=!0),U.next=6,w.tronWeb.event.getEventsByContractAddress(w.contract.address,ve);case 6:return Fe=U.sent,Ee=Fe.sort(function($,re){return re.block-$.block}),O=Xn(Ee,1),M=O[0],I=Fe.filter(function($,re){return!(u.resourceNode&&$.resourceNode&&u.resourceNode.toLowerCase()!==$.resourceNode.toLowerCase()||Fe.slice(0,re).some(function(q){return JSON.stringify(q)==JSON.stringify($)})||l&&!($.block>l))}),M&&(l=M.block),U.abrupt("return",I);case 13:return U.prev=13,U.t0=U.catch(0),U.abrupt("return",Promise.reject(U.t0));case 16:case"end":return U.stop()}},we,null,[[0,13]])}));return function(){return J.apply(this,arguments)}})(),b=function(){h&&clearInterval(h),h=setInterval(function(){p().then(function(J){return J.forEach(function(we){d(null,X.parseEvent(we,w.abi))})}).catch(function(J){return d(J)})},3e3)},j.next=18,p();case 18:return b(),j.abrupt("return",{start:b,stop:function(){h&&(clearInterval(h),h=!1)}});case 20:case"end":return j.stop()}},c,this)})),function(){return e.apply(this,arguments)})}]),r})(),z0=(function(){function r(){var u=arguments.length>0&&arguments[0]!==void 0&&arguments[0],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(Q(this,r),!u||!u instanceof vr)throw new Error("Expected instance of TronWeb");this.tronWeb=u,this.injectPromise=Ta()(this),this.address=h,this.abi=d,this.eventListener=!1,this.bytecode=!1,this.deployed=!1,this.lastBlock=!1,this.methods={},this.methodInstances={},this.props=[],this.tronWeb.isAddress(h)?this.deployed=!0:this.address=!1,this.loadAbi(d)}var e,n,a,c;return E(r,[{key:"_getEvents",value:(c=_(he().mark(function u(){var d,h,l,g,p,b,w=this,x=arguments;return he().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return d=x.length>0&&x[0]!==void 0?x[0]:{},j.next=3,this.tronWeb.event.getEventsByContractAddress(this.address,d);case 3:return h=j.sent,l=h.sort(function(J,we){return we.block-J.block}),g=Xn(l,1),p=g[0],b=h.filter(function(J,we){return!(d.resourceNode&&J.resourceNode&&d.resourceNode.toLowerCase()!==J.resourceNode.toLowerCase()||h.slice(0,we).some(function(ve){return JSON.stringify(ve)==JSON.stringify(J)})||w.lastBlock&&!(J.block>w.lastBlock))}),p&&(this.lastBlock=p.block),j.abrupt("return",b);case 8:case"end":return j.stop()}},u,this)})),function(){return c.apply(this,arguments)})},{key:"_startEventListener",value:(a=_(he().mark(function u(){var d,h,l=this,g=arguments;return he().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(d=g.length>0&&g[0]!==void 0?g[0]:{},h=g.length>1?g[1]:void 0,X.isFunction(d)&&(h=d,d={}),this.eventListener&&clearInterval(this.eventListener),this.tronWeb.eventServer){p.next=6;break}throw new Error("Event server is not configured");case 6:if(this.address){p.next=8;break}throw new Error("Contract is not configured with an address");case 8:return this.eventCallback=h,p.next=11,this._getEvents(d);case 11:this.eventListener=setInterval(function(){l._getEvents(d).then(function(b){return b.forEach(function(w){l.eventCallback&&l.eventCallback(w)})}).catch(function(b){console.error("Failed to get event list",b)})},3e3);case 12:case"end":return p.stop()}},u,this)})),function(){return a.apply(this,arguments)})},{key:"_stopEventListener",value:function(){this.eventListener&&(clearInterval(this.eventListener),this.eventListener=!1,this.eventCallback=!1)}},{key:"hasProperty",value:function(u){return this.hasOwnProperty(u)||this.__proto__.hasOwnProperty(u)}},{key:"loadAbi",value:function(u){var d=this;this.abi=u,this.methods={},this.props.forEach(function(h){return delete d[h]}),u.forEach(function(h){if(h.type&&!/constructor|error/i.test(h.type)){var l=new $m(d,h),g=l.onMethod.bind(l),p=l.name,b=l.functionSelector,w=l.signature;d.methods[p]=g,d.methods[b]=g,d.methods[w]=g,d.methodInstances[p]=l,d.methodInstances[b]=l,d.methodInstances[w]=l,d.hasProperty(p)||(d[p]=g,d.props.push(p)),d.hasProperty(b)||(d[b]=g,d.props.push(b)),d.hasProperty(w)||(d[w]=g,d.props.push(w))}})}},{key:"decodeInput",value:function(u){var d=u.substring(0,8),h=u.substring(8);if(!this.methodInstances[d])throw new Error("Contract method "+d+" not found");return{name:this.methodInstances[d].name,params:this.methodInstances[d].decodeInput(h)}}},{key:"new",value:(n=_(he().mark(function u(d){var h,l,g,p,b,w,x=arguments;return he().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(h=x.length>1&&x[1]!==void 0?x[1]:this.tronWeb.defaultPrivateKey,l=x.length>2&&x[2]!==void 0&&x[2],X.isFunction(h)&&(l=h,h=this.tronWeb.defaultPrivateKey),l){j.next=5;break}return j.abrupt("return",this.injectPromise(this.new,d,h));case 5:return j.prev=5,g=this.tronWeb.address.fromPrivateKey(h),j.next=9,this.tronWeb.transactionBuilder.createSmartContract(d,g);case 9:return p=j.sent,j.next=12,this.tronWeb.trx.sign(p,h);case 12:return b=j.sent,j.next=15,this.tronWeb.trx.sendRawTransaction(b);case 15:if(!(w=j.sent).code){j.next=18;break}return j.abrupt("return",l({error:w.code,message:this.tronWeb.toUtf8(w.message)}));case 18:return j.next=20,X.sleep(3e3);case 20:return j.abrupt("return",this.at(b.contract_address,l));case 23:return j.prev=23,j.t0=j.catch(5),j.abrupt("return",l(j.t0));case 26:case"end":return j.stop()}},u,this,[[5,23]])})),function(u){return n.apply(this,arguments)})},{key:"at",value:(e=_(he().mark(function u(d){var h,l,g=arguments;return he().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(h=g.length>1&&g[1]!==void 0&&g[1]){p.next=3;break}return p.abrupt("return",this.injectPromise(this.at,d));case 3:return p.prev=3,p.next=6,this.tronWeb.trx.getContract(d);case 6:if((l=p.sent).contract_address){p.next=9;break}return p.abrupt("return",h("Unknown error: "+JSON.stringify(l,null,2)));case 9:return this.address=l.contract_address,this.bytecode=l.bytecode,this.deployed=!0,this.loadAbi(l.abi&&l.abi.entrys?l.abi.entrys:[]),p.abrupt("return",h(null,this));case 16:if(p.prev=16,p.t0=p.catch(3),!p.t0.toString().includes("does not exist")){p.next=20;break}return p.abrupt("return",h("Contract has not been deployed on the network"));case 20:return p.abrupt("return",h(p.t0));case 21:case"end":return p.stop()}},u,this,[[3,16]])})),function(u){return e.apply(this,arguments)})},{key:"events",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(X.isFunction(u)&&(d=u,u={}),!X.isFunction(d))throw new Error("Callback function expected");var h=this;return{start:function(){var l=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return l?(h._startEventListener(u,d).then(function(){l()}).catch(function(g){l(g)}),this):(h._startEventListener(u,d),this)},stop:function(){h._stopEventListener()}}}}]),r})(),V0=(function(){function r(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Q(this,r),!e||!e instanceof vr)throw new Error("Expected instance of TronWeb");this.tronWeb=e,this.pluginNoOverride=["register"],this.disablePlugins=n.disablePlugins}return E(r,[{key:"register",value:function(e,n){var a={requires:"0.0.0",components:{}},c={libs:[],plugged:[],skipped:[]};if(this.disablePlugins)return c.error="This instance of TronWeb has plugins disabled.",c;var u=new e(this.tronWeb);if(X.isFunction(u.pluginInterface)&&(a=u.pluginInterface(n)),!x0().satisfies(vr.version,a.requires))throw new Error("The plugin is not compatible with this version of TronWeb");if(a.fullClass){var d=u.constructor.name,h=d.substring(0,1).toLowerCase()+d.substring(1);d!==h&&(vr[d]=e,this.tronWeb[h]=u,c.libs.push(d))}else for(var l in a.components)if(this.tronWeb.hasOwnProperty(l)){var g=a.components[l],p=this.tronWeb[l].pluginNoOverride||[];for(var b in g)b==="constructor"||this.tronWeb[l][b]&&(p.includes(b)||/^_/.test(b))?c.skipped.push(b):(this.tronWeb[l][b]=g[b].bind(this.tronWeb[l]),c.plugged.push(b))}return c}}]),r})(),Hm=Ve(7735),G0=(function(){function r(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(Q(this,r),!(e&&e instanceof vr))throw new Error("Expected instance of TronWeb");this.tronWeb=e,this.injectPromise=Ta()(this)}return E(r,[{key:"setServer",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0&&arguments[0],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"healthcheck";if(!n)return this.tronWeb.eventServer=!1;if(X.isString(n)&&(n=new hn.HttpProvider(n)),!this.tronWeb.isValidProvider(n))throw new Error("Invalid event server provided");this.tronWeb.eventServer=n,this.tronWeb.eventServer.isConnected=function(){return e.tronWeb.eventServer.request(a).then(function(){return!0}).catch(function(){return!1})}}},{key:"getEventsByContractAddress",value:function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0&&arguments[2],c=Object.assign({sinceTimestamp:0,eventName:!1,blockNumber:!1,size:20,page:1},n),u=c.sinceTimestamp,d=c.since,h=c.fromTimestamp,l=c.eventName,g=c.blockNumber,p=c.size,b=c.page,w=c.onlyConfirmed,x=c.onlyUnconfirmed,j=c.previousLastEventFingerprint,J=c.previousFingerprint,we=c.fingerprint,ve=c.rawResponse,Fe=c.sort,Ee=c.filters;if(!a)return this.injectPromise(this.getEventsByContractAddress,e,n);if(h=h||u||d,!this.tronWeb.eventServer)return a("No event server configured");var O=[];if(!this.tronWeb.isAddress(e))return a("Invalid contract address provided");if(l&&!e)return a("Usage of event name filtering requires a contract address");if(h!==void 0&&!X.isInteger(h))return a("Invalid fromTimestamp provided");if(!X.isInteger(p))return a("Invalid size provided");if(p>200&&(console.warn("Defaulting to maximum accepted size: 200"),p=200),!X.isInteger(b))return a("Invalid page provided");if(g&&!l)return a("Usage of block number filtering requires an event name");e&&O.push(this.tronWeb.address.fromHex(e)),l&&O.push(l),g&&O.push(g);var M={size:p,page:b};return ee(Ee)==="object"&&Object.keys(Ee).length>0&&(M.filters=JSON.stringify(Ee)),h&&(M.fromTimestamp=M.since=h),w&&(M.only_confirmed=w),x&&!w&&(M.only_unconfirmed=x),Fe&&(M.sort=Fe),(we=we||J||j)&&(M.fingerprint=we),this.tronWeb.eventServer.request("event/contract/".concat(O.join("/"),"?").concat(Hm.stringify(M))).then(function(){var I=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return I?X.isArray(I)?a(null,ve===!0?I:I.map(function(U){return X.mapEvent(U)})):a(I):a("Unknown error occurred")}).catch(function(I){return a(I.response&&I.response.data||I)})}},{key:"getEventsByTransactionID",value:function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return X.isFunction(n)&&(a=n,n={}),a?this.tronWeb.eventServer?this.tronWeb.eventServer.request("event/transaction/".concat(e)).then(function(){var c=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return c?X.isArray(c)?a(null,n.rawResponse===!0?c:c.map(function(u){return X.mapEvent(u)})):a(c):a("Unknown error occurred")}).catch(function(c){return a(c.response&&c.response.data||c)}):a("No event server configured"):this.injectPromise(this.getEventsByTransactionID,e,n)}}]),r})();function $0(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);e&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),n.push.apply(n,a)}return n}function so(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$0(Object(n),!0).forEach(function(a){te(r,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):$0(Object(n)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(n,a))})}return r}var Km=(function(){function r(I){var U=arguments.length>1&&arguments[1]!==void 0&&arguments[1],$=arguments.length>2&&arguments[2]!==void 0&&arguments[2],re=arguments.length>3&&arguments[3]!==void 0&&arguments[3];Q(this,r),this.mainchain=$;var q=I.fullHost,ye=I.fullNode,Pe=I.solidityNode,de=I.eventServer,fe=I.mainGatewayAddress,xe=I.sideGatewayAddress,z=I.sideChainId;this.sidechain=new U(q||ye,q||Pe,q||de,re),this.isAddress=this.mainchain.isAddress,this.utils=this.mainchain.utils,this.setMainGatewayAddress(fe),this.setSideGatewayAddress(xe),this.setChainId(z),this.injectPromise=Ta()(this),this.validator=new Al(this.sidechain);var Z=this;this.sidechain.trx.sign=function(){return Z.sign.apply(Z,arguments)},this.sidechain.trx.multiSign=function(){return Z.multiSign.apply(Z,arguments)},console.warn("TronWeb: 'tronWeb.sidechain' is deprecated and may be removed in the future. Please use the 'sunweb' sdk instead. For more information, see: https://github.com/tronprotocol/sun-network/tree/develop/js-sdk")}var e,n,a,c,u,d,h,l,g,p,b,w,x,j,J,we,ve,Fe,Ee,O,M;return E(r,[{key:"setMainGatewayAddress",value:function(I){if(!this.isAddress(I))throw new Error("Invalid main gateway address provided");this.mainGatewayAddress=I}},{key:"setSideGatewayAddress",value:function(I){if(!this.isAddress(I))throw new Error("Invalid side gateway address provided");this.sideGatewayAddress=I}},{key:"setChainId",value:function(I){if(!this.utils.isString(I)||!I)throw new Error("Invalid side chainId provided");this.chainId=I}},{key:"signTransaction",value:function(I,U){typeof I=="string"&&(I=this.utils.code.hexStr2byteArray(I));var $=this.utils.code.hexStr2byteArray(this.chainId),re=this.utils.code.hexStr2byteArray(U.txID).concat($),q=this.sidechain.utils.ethersUtils.sha256(re),ye=this.utils.crypto.ECKeySign(this.utils.code.hexStr2byteArray(q.replace(/^0x/,"")),I);return Array.isArray(U.signature)?U.signature.includes(ye)||U.signature.push(ye):U.signature=[ye],U}},{key:"multiSign",value:(M=_(he().mark(function I(){var U,$,re,q,ye,Pe,de,fe=arguments;return he().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(U=fe.length>0&&fe[0]!==void 0&&fe[0],$=fe.length>1&&fe[1]!==void 0?fe[1]:this.sidechain.defaultPrivateKey,re=fe.length>2&&fe[2]!==void 0&&fe[2],q=fe.length>3&&fe[3]!==void 0&&fe[3],this.utils.isFunction(re)&&(q=re,re=0),this.utils.isFunction($)&&(q=$,$=this.mainchain.defaultPrivateKey,re=0),q){xe.next=8;break}return xe.abrupt("return",this.injectPromise(this.multiSign,U,$,re));case 8:if(this.utils.isObject(U)&&U.raw_data&&U.raw_data.contract){xe.next=10;break}return xe.abrupt("return",q("Invalid transaction provided"));case 10:if(U.raw_data.contract[0].Permission_id||!(re>0)){xe.next=30;break}return U.raw_data.contract[0].Permission_id=re,ye=this.sidechain.address.toHex(this.sidechain.address.fromPrivateKey($)).toLowerCase(),xe.next=15,this.sidechain.trx.getSignWeight(U,re);case 15:if((Pe=xe.sent).result.code!=="PERMISSION_ERROR"){xe.next=18;break}return xe.abrupt("return",q(Pe.result.message));case 18:if(de=!1,Pe.permission.keys.map(function(z){z.address===ye&&(de=!0)}),de){xe.next=22;break}return xe.abrupt("return",q($+" has no permission to sign"));case 22:if(!Pe.approved_list||Pe.approved_list.indexOf(ye)==-1){xe.next=24;break}return xe.abrupt("return",q($+" already sign transaction"));case 24:if(!Pe.transaction||!Pe.transaction.transaction){xe.next=29;break}(U=Pe.transaction.transaction).raw_data.contract[0].Permission_id=re,xe.next=30;break;case 29:return xe.abrupt("return",q("Invalid transaction provided"));case 30:return xe.prev=30,xe.abrupt("return",q(null,this.signTransaction($,U)));case 34:xe.prev=34,xe.t0=xe.catch(30),q(xe.t0);case 37:case"end":return xe.stop()}},I,this,[[30,34]])})),function(){return M.apply(this,arguments)})},{key:"sign",value:(O=_(he().mark(function I(){var U,$,re,q,ye,Pe,de=arguments;return he().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(U=de.length>0&&de[0]!==void 0&&de[0],$=de.length>1&&de[1]!==void 0?de[1]:this.sidechain.defaultPrivateKey,re=!(de.length>2&&de[2]!==void 0)||de[2],q=de.length>3&&de[3]!==void 0&&de[3],ye=de.length>4&&de[4]!==void 0&&de[4],this.utils.isFunction(q)&&(ye=q,q=!1),this.utils.isFunction(re)&&(ye=re,re=!0,q=!1),this.utils.isFunction($)&&(ye=$,$=this.sidechain.defaultPrivateKey,re=!0,q=!1),ye){fe.next=10;break}return fe.abrupt("return",this.injectPromise(this.sign,U,$,re,q));case 10:if(!this.utils.isString(U)){fe.next=21;break}if(this.utils.isHex(U)){fe.next=13;break}return fe.abrupt("return",ye("Expected hex message input"));case 13:return fe.prev=13,Pe=this.sidechain.trx.signString(U,$,re),fe.abrupt("return",ye(null,Pe));case 18:fe.prev=18,fe.t0=fe.catch(13),ye(fe.t0);case 21:if(this.utils.isObject(U)){fe.next=23;break}return fe.abrupt("return",ye("Invalid transaction provided"));case 23:if(q||!U.signature){fe.next=25;break}return fe.abrupt("return",ye("Transaction is already signed"));case 25:if(fe.prev=25,q){fe.next=30;break}if(this.sidechain.address.toHex(this.sidechain.address.fromPrivateKey($)).toLowerCase()===this.sidechain.address.toHex(U.raw_data.contract[0].parameter.value.owner_address)){fe.next=30;break}return fe.abrupt("return",ye("Private key does not match address in transaction"));case 30:return fe.abrupt("return",ye(null,this.signTransaction($,U)));case 33:fe.prev=33,fe.t1=fe.catch(25),ye(fe.t1);case 36:case"end":return fe.stop()}},I,this,[[13,18],[25,33]])})),function(){return O.apply(this,arguments)})},{key:"depositTrx",value:(Ee=_(he().mark(function I(U,$,re){var q,ye,Pe,de,fe,xe=arguments;return he().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(q=xe.length>3&&xe[3]!==void 0?xe[3]:{},ye=xe.length>4&&xe[4]!==void 0?xe[4]:this.mainchain.defaultPrivateKey,Pe=xe.length>5&&xe[5]!==void 0&&xe[5],this.utils.isFunction(ye)&&(Pe=ye,ye=this.mainchain.defaultPrivateKey),this.utils.isFunction(q)&&(Pe=q,q={}),Pe){z.next=7;break}return z.abrupt("return",this.injectPromise(this.depositTrx,U,$,re,q,ye));case 7:if(!this.validator.notValid([{name:"callValue",type:"integer",value:U,gte:0},{name:"depositFee",type:"integer",value:$,gte:0},{name:"feeLimit",type:"integer",value:re,gte:0}],Pe)){z.next=9;break}return z.abrupt("return");case 9:return q=so({callValue:Number(U)+Number($),feeLimit:re},q),z.prev=10,z.next=13,this.mainchain.contract().at(this.mainGatewayAddress);case 13:return de=z.sent,z.next=16,de.depositTRX().send(q,ye);case 16:return fe=z.sent,z.abrupt("return",Pe(null,fe));case 20:return z.prev=20,z.t0=z.catch(10),z.abrupt("return",Pe(z.t0));case 23:case"end":return z.stop()}},I,this,[[10,20]])})),function(I,U,$){return Ee.apply(this,arguments)})},{key:"depositTrc10",value:(Fe=_(he().mark(function I(U,$,re,q){var ye,Pe,de,fe,xe,z=arguments;return he().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(ye=z.length>4&&z[4]!==void 0?z[4]:{},Pe=z.length>5&&z[5]!==void 0?z[5]:this.mainchain.defaultPrivateKey,de=z.length>6&&z[6]!==void 0&&z[6],this.utils.isFunction(Pe)&&(de=Pe,Pe=this.mainchain.defaultPrivateKey),this.utils.isFunction(ye)&&(de=ye,ye={}),de){Z.next=7;break}return Z.abrupt("return",this.injectPromise(this.depositTrc10,U,$,re,q,ye,Pe));case 7:if(!this.validator.notValid([{name:"tokenValue",type:"integer",value:$,gte:0},{name:"depositFee",type:"integer",value:re,gte:0},{name:"feeLimit",type:"integer",value:q,gte:0},{name:"tokenId",type:"integer",value:U,gte:0}],de)){Z.next=9;break}return Z.abrupt("return");case 9:return ye=so(so({tokenId:U,tokenValue:$,feeLimit:q},ye),{},{callValue:re}),Z.prev=10,Z.next=13,this.mainchain.contract().at(this.mainGatewayAddress);case 13:return fe=Z.sent,Z.next=16,fe.depositTRC10(U,$).send(ye,Pe);case 16:xe=Z.sent,de(null,xe),Z.next=23;break;case 20:return Z.prev=20,Z.t0=Z.catch(10),Z.abrupt("return",de(Z.t0));case 23:case"end":return Z.stop()}},I,this,[[10,20]])})),function(I,U,$,re){return Fe.apply(this,arguments)})},{key:"depositTrc",value:(ve=_(he().mark(function I(U,$,re,q,ye){var Pe,de,fe,xe,z,Z,be=arguments;return he().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(Pe=be.length>5&&be[5]!==void 0?be[5]:{},de=be.length>6&&be[6]!==void 0?be[6]:this.mainchain.defaultPrivateKey,fe=be.length>7&&be[7]!==void 0&&be[7],this.utils.isFunction(de)&&(fe=de,de=this.mainchain.defaultPrivateKey),this.utils.isFunction(Pe)&&(fe=Pe,Pe={}),fe){Ae.next=7;break}return Ae.abrupt("return",this.injectPromise(this.depositTrc,U,$,re,q,ye,Pe,de));case 7:if(!this.validator.notValid([{name:"functionSelector",type:"not-empty-string",value:U},{name:"num",type:"integer",value:$,gte:0},{name:"fee",type:"integer",value:re,gte:0},{name:"feeLimit",type:"integer",value:q,gte:0},{name:"contractAddress",type:"address",value:ye}],fe)){Ae.next=9;break}return Ae.abrupt("return");case 9:if(Pe=so(so({feeLimit:q},Pe),{},{callValue:re,tokenId:"",tokenValue:0}),Ae.prev=10,xe=null,U!=="approve"){Ae.next=21;break}return Ae.next=15,this.mainchain.contract().at(ye);case 15:return z=Ae.sent,Ae.next=18,z.approve(this.mainGatewayAddress,$).send(Pe,de);case 18:xe=Ae.sent,Ae.next=44;break;case 21:return Ae.next=23,this.mainchain.contract().at(this.mainGatewayAddress);case 23:Z=Ae.sent,Ae.t0=U,Ae.next=Ae.t0==="depositTRC20"?27:Ae.t0==="depositTRC721"?31:Ae.t0==="retryDeposit"?35:Ae.t0==="retryMapping"?39:43;break;case 27:return Ae.next=29,Z.depositTRC20(ye,$).send(Pe,de);case 29:case 33:case 37:case 41:return xe=Ae.sent,Ae.abrupt("break",44);case 31:return Ae.next=33,Z.depositTRC721(ye,$).send(Pe,de);case 35:return Ae.next=37,Z.retryDeposit($).send(Pe,de);case 39:return Ae.next=41,Z.retryMapping($).send(Pe,de);case 43:return Ae.abrupt("break",44);case 44:fe(null,xe),Ae.next=50;break;case 47:return Ae.prev=47,Ae.t1=Ae.catch(10),Ae.abrupt("return",fe(Ae.t1));case 50:case"end":return Ae.stop()}},I,this,[[10,47]])})),function(I,U,$,re,q){return ve.apply(this,arguments)})},{key:"approveTrc20",value:(we=_(he().mark(function I(U,$,re){var q,ye,Pe,de=arguments;return he().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return q=de.length>3&&de[3]!==void 0?de[3]:{},ye=de.length>4&&de[4]!==void 0?de[4]:this.mainchain.defaultPrivateKey,Pe=de.length>5&&de[5]!==void 0&&de[5],fe.abrupt("return",this.depositTrc("approve",U,0,$,re,q,ye,Pe));case 5:case"end":return fe.stop()}},I,this)})),function(I,U,$){return we.apply(this,arguments)})},{key:"approveTrc721",value:(J=_(he().mark(function I(U,$,re){var q,ye,Pe,de=arguments;return he().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return q=de.length>3&&de[3]!==void 0?de[3]:{},ye=de.length>4&&de[4]!==void 0?de[4]:this.mainchain.defaultPrivateKey,Pe=de.length>5&&de[5]!==void 0&&de[5],fe.abrupt("return",this.depositTrc("approve",U,0,$,re,q,ye,Pe));case 5:case"end":return fe.stop()}},I,this)})),function(I,U,$){return J.apply(this,arguments)})},{key:"depositTrc20",value:(j=_(he().mark(function I(U,$,re,q){var ye,Pe,de,fe=arguments;return he().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ye=fe.length>4&&fe[4]!==void 0?fe[4]:{},Pe=fe.length>5&&fe[5]!==void 0?fe[5]:this.mainchain.defaultPrivateKey,de=fe.length>6&&fe[6]!==void 0&&fe[6],xe.abrupt("return",this.depositTrc("depositTRC20",U,$,re,q,ye,Pe,de));case 5:case"end":return xe.stop()}},I,this)})),function(I,U,$,re){return j.apply(this,arguments)})},{key:"depositTrc721",value:(x=_(he().mark(function I(U,$,re,q){var ye,Pe,de,fe=arguments;return he().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ye=fe.length>4&&fe[4]!==void 0?fe[4]:{},Pe=fe.length>5&&fe[5]!==void 0?fe[5]:this.mainchain.defaultPrivateKey,de=fe.length>6&&fe[6]!==void 0&&fe[6],xe.abrupt("return",this.depositTrc("depositTRC721",U,$,re,q,ye,Pe,de));case 5:case"end":return xe.stop()}},I,this)})),function(I,U,$,re){return x.apply(this,arguments)})},{key:"mappingTrc",value:(w=_(he().mark(function I(U,$,re,q){var ye,Pe,de,fe,xe,z=arguments;return he().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(ye=z.length>4&&z[4]!==void 0?z[4]:{},Pe=z.length>5&&z[5]!==void 0?z[5]:this.mainchain.defaultPrivateKey,de=z.length>6?z[6]:void 0,this.utils.isFunction(Pe)&&(de=Pe,Pe=this.mainchain.defaultPrivateKey),this.utils.isFunction(ye)&&(de=ye,ye={}),de){Z.next=7;break}return Z.abrupt("return",this.injectPromise(this.mappingTrc,U,$,re,q,ye,Pe));case 7:if(!this.validator.notValid([{name:"trxHash",type:"not-empty-string",value:U},{name:"mappingFee",type:"integer",value:$,gte:0},{name:"feeLimit",type:"integer",value:re,gte:0}],de)){Z.next=9;break}return Z.abrupt("return");case 9:return U=U.startsWith("0x")?U:"0x"+U,ye=so(so({feeLimit:re},ye),{},{callValue:$}),Z.prev=11,Z.next=14,this.mainchain.contract().at(this.mainGatewayAddress);case 14:if(fe=Z.sent,xe=null,q!=="mappingTRC20"){Z.next=22;break}return Z.next=19,fe.mappingTRC20(U).send(ye,Pe);case 19:xe=Z.sent,Z.next=29;break;case 22:if(q!=="mappingTRC721"){Z.next=28;break}return Z.next=25,fe.mappingTRC721(U).send(ye,Pe);case 25:xe=Z.sent,Z.next=29;break;case 28:de(new Error("type must be trc20 or trc721"));case 29:de(null,xe),Z.next=35;break;case 32:return Z.prev=32,Z.t0=Z.catch(11),Z.abrupt("return",de(Z.t0));case 35:case"end":return Z.stop()}},I,this,[[11,32]])})),function(I,U,$,re){return w.apply(this,arguments)})},{key:"mappingTrc20",value:(b=_(he().mark(function I(U,$,re){var q,ye,Pe,de=arguments;return he().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return q=de.length>3&&de[3]!==void 0?de[3]:{},ye=de.length>4&&de[4]!==void 0?de[4]:this.mainchain.defaultPrivateKey,Pe=de.length>5&&de[5]!==void 0&&de[5],fe.abrupt("return",this.mappingTrc(U,$,re,"mappingTRC20",q,ye,Pe));case 5:case"end":return fe.stop()}},I,this)})),function(I,U,$){return b.apply(this,arguments)})},{key:"mappingTrc721",value:(p=_(he().mark(function I(U,$,re){var q,ye,Pe,de=arguments;return he().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return q=de.length>3&&de[3]!==void 0?de[3]:{},ye=de.length>4&&de[4]!==void 0?de[4]:this.mainchain.defaultPrivateKey,Pe=de.length>5&&de[5]!==void 0&&de[5],fe.abrupt("return",this.mappingTrc(U,$,re,"mappingTRC721",q,ye,Pe));case 5:case"end":return fe.stop()}},I,this)})),function(I,U,$){return p.apply(this,arguments)})},{key:"withdrawTrx",value:(g=_(he().mark(function I(U,$,re){var q,ye,Pe,de,fe,xe=arguments;return he().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(q=xe.length>3&&xe[3]!==void 0?xe[3]:{},ye=xe.length>4&&xe[4]!==void 0?xe[4]:this.mainchain.defaultPrivateKey,Pe=xe.length>5&&xe[5]!==void 0&&xe[5],this.utils.isFunction(ye)&&(Pe=ye,ye=this.mainchain.defaultPrivateKey),this.utils.isFunction(q)&&(Pe=q,q={}),Pe){z.next=7;break}return z.abrupt("return",this.injectPromise(this.withdrawTrx,U,$,re,q,ye));case 7:if(!this.validator.notValid([{name:"callValue",type:"integer",value:U,gte:0},{name:"withdrawFee",type:"integer",value:$,gte:0},{name:"feeLimit",type:"integer",value:re,gte:0}],Pe)){z.next=9;break}return z.abrupt("return");case 9:return q=so({callValue:Number(U)+Number($),feeLimit:re},q),z.prev=10,z.next=13,this.sidechain.contract().at(this.sideGatewayAddress);case 13:return de=z.sent,z.next=16,de.withdrawTRX().send(q,ye);case 16:return fe=z.sent,z.abrupt("return",Pe(null,fe));case 20:return z.prev=20,z.t0=z.catch(10),z.abrupt("return",Pe(z.t0));case 23:case"end":return z.stop()}},I,this,[[10,20]])})),function(I,U,$){return g.apply(this,arguments)})},{key:"withdrawTrc10",value:(l=_(he().mark(function I(U,$,re,q){var ye,Pe,de,fe,xe,z=arguments;return he().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(ye=z.length>4&&z[4]!==void 0?z[4]:{},Pe=z.length>5&&z[5]!==void 0?z[5]:this.mainchain.defaultPrivateKey,de=z.length>6&&z[6]!==void 0&&z[6],this.utils.isFunction(Pe)&&(de=Pe,Pe=this.mainchain.defaultPrivateKey),this.utils.isFunction(ye)&&(de=ye,ye={}),de){Z.next=7;break}return Z.abrupt("return",this.injectPromise(this.withdrawTrc10,U,$,re,q,ye,Pe));case 7:if(!this.validator.notValid([{name:"tokenId",type:"integer",value:U,gte:0},{name:"tokenValue",type:"integer",value:$,gte:0},{name:"withdrawFee",type:"integer",value:re,gte:0},{name:"feeLimit",type:"integer",value:q,gte:0}],de)){Z.next=9;break}return Z.abrupt("return");case 9:return ye=so({tokenValue:$,tokenId:U,callValue:re,feeLimit:q},ye),Z.prev=10,Z.next=13,this.sidechain.contract().at(this.sideGatewayAddress);case 13:return fe=Z.sent,Z.next=16,fe.withdrawTRC10(U,$).send(ye,Pe);case 16:return xe=Z.sent,Z.abrupt("return",de(null,xe));case 20:return Z.prev=20,Z.t0=Z.catch(10),Z.abrupt("return",de(Z.t0));case 23:case"end":return Z.stop()}},I,this,[[10,20]])})),function(I,U,$,re){return l.apply(this,arguments)})},{key:"withdrawTrc",value:(h=_(he().mark(function I(U,$,re,q,ye){var Pe,de,fe,xe,z,Z,be,Ae,Be,Re,je=this,Ne=arguments;return he().wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(Pe=Ne.length>5&&Ne[5]!==void 0?Ne[5]:{},de=Ne.length>6&&Ne[6]!==void 0?Ne[6]:this.mainchain.defaultPrivateKey,fe=Ne.length>7&&Ne[7]!==void 0&&Ne[7],this.utils.isFunction(de)&&(fe=de,de=this.mainchain.defaultPrivateKey),this.utils.isFunction(Pe)&&(fe=Pe,Pe={}),fe){Le.next=7;break}return Le.abrupt("return",this.injectPromise(this.withdrawTrc,U,$,re,q,ye,Pe,de));case 7:if(!this.validator.notValid([{name:"functionSelector",type:"not-empty-string",value:U},{name:"numOrId",type:"integer",value:$,gte:0},{name:"withdrawFee",type:"integer",value:re,gte:0},{name:"feeLimit",type:"integer",value:q,gte:0},{name:"contractAddress",type:"address",value:ye}],fe)){Le.next=9;break}return Le.abrupt("return");case 9:return Pe=so(so({feeLimit:q},Pe),{},{callValue:re}),xe=[{type:"uint256",value:$}],Le.prev=11,z=de?this.sidechain.address.fromPrivateKey(de):this.sidechain.defaultAddress.base58,Le.next=15,this.sidechain.transactionBuilder.triggerSmartContract(ye,U,Pe,xe,this.sidechain.address.toHex(z));case 15:if((Z=Le.sent).result&&Z.result.result){Le.next=18;break}return Le.abrupt("return",fe("Unknown error: "+JSON.stringify(Z.transaction,null,2)));case 18:return Le.next=20,this.sidechain.trx.sign(Z.transaction,de);case 20:if((be=Le.sent).signature){Le.next=25;break}if(de){Le.next=24;break}return Le.abrupt("return",fe("Transaction was not signed properly"));case 24:return Le.abrupt("return",fe("Invalid private key provided"));case 25:return Le.next=27,this.sidechain.trx.sendRawTransaction(be);case 27:if(!(Ae=Le.sent).code){Le.next=32;break}return Be={error:Ae.code,message:Ae.code},Ae.message&&(Be.message=this.sidechain.toUtf8(Ae.message)),Le.abrupt("return",fe(Be));case 32:if(Pe.shouldPollResponse){Le.next=34;break}return Le.abrupt("return",fe(null,be.txID));case 34:Re=(function(){var rt=_(he().mark(function qe(){var ht,Bt,Nt,pr=arguments;return he().wrap(function(nr){for(;;)switch(nr.prev=nr.next){case 0:if((ht=pr.length>0&&pr[0]!==void 0?pr[0]:0)!=20){nr.next=3;break}return nr.abrupt("return",fe({error:"Cannot find result in solidity node",transaction:be}));case 3:return nr.next=5,je.sidechain.trx.getTransactionInfo(be.txID);case 5:if(Bt=nr.sent,Object.keys(Bt).length){nr.next=8;break}return nr.abrupt("return",setTimeout(function(){Re(ht+1)},3e3));case 8:if(!Bt.result||Bt.result!="FAILED"){nr.next=10;break}return nr.abrupt("return",fe({error:je.sidechain.toUtf8(Bt.resMessage),transaction:be,output:Bt}));case 10:if(je.utils.hasProperty(Bt,"contractResult")){nr.next=12;break}return nr.abrupt("return",fe({error:"Failed to execute: "+JSON.stringify(Bt,null,2),transaction:be,output:Bt}));case 12:if(!Pe.rawResponse){nr.next=14;break}return nr.abrupt("return",fe(null,Bt));case 14:return(Nt=decodeOutput(je.outputs,"0x"+Bt.contractResult[0])).length===1&&(Nt=Nt[0]),nr.abrupt("return",fe(null,Nt));case 17:case"end":return nr.stop()}},qe)}));return function(){return rt.apply(this,arguments)}})(),Re(),Le.next=41;break;case 38:return Le.prev=38,Le.t0=Le.catch(11),Le.abrupt("return",fe(Le.t0));case 41:case"end":return Le.stop()}},I,this,[[11,38]])})),function(I,U,$,re,q){return h.apply(this,arguments)})},{key:"withdrawTrc20",value:(d=_(he().mark(function I(U,$,re,q,ye){var Pe,de,fe=arguments;return he().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return Pe=fe.length>5&&fe[5]!==void 0?fe[5]:this.mainchain.defaultPrivateKey,de=fe.length>6&&fe[6]!==void 0&&fe[6],xe.abrupt("return",this.withdrawTrc("withdrawal(uint256)",U,$,re,q,ye,Pe,de));case 4:case"end":return xe.stop()}},I,this)})),function(I,U,$,re,q){return d.apply(this,arguments)})},{key:"withdrawTrc721",value:(u=_(he().mark(function I(U,$,re,q,ye){var Pe,de,fe=arguments;return he().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return Pe=fe.length>5&&fe[5]!==void 0?fe[5]:this.mainchain.defaultPrivateKey,de=fe.length>6&&fe[6]!==void 0&&fe[6],xe.abrupt("return",this.withdrawTrc("withdrawal(uint256)",U,$,re,q,ye,Pe,de));case 4:case"end":return xe.stop()}},I,this)})),function(I,U,$,re,q){return u.apply(this,arguments)})},{key:"injectFund",value:(c=_(he().mark(function I(U,$,re){var q,ye,Pe,de,fe,xe,z,Z,be=arguments;return he().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(q=be.length>3&&be[3]!==void 0?be[3]:this.mainchain.defaultPrivateKey,ye=be.length>4&&be[4]!==void 0&&be[4],this.utils.isFunction(q)&&(ye=q,q=this.mainchain.defaultPrivateKey),this.utils.isFunction(re)&&(ye=re,re={}),ye){Ae.next=6;break}return Ae.abrupt("return",this.injectPromise(this.injectFund,U,$,re,q));case 6:if(!this.validator.notValid([{name:"num",type:"integer",value:U,gte:0},{name:"feeLimit",type:"integer",value:$,gte:0}],ye)){Ae.next=8;break}return Ae.abrupt("return");case 8:return Ae.prev=8,Pe=this.sidechain.address.fromPrivateKey(q),de=this.sidechain.address.toHex(Pe),Ae.next=13,this.sidechain.fullNode.request("/wallet/fundinject",{owner_address:de,amount:U},"post");case 13:return fe=Ae.sent,Ae.next=16,this.sidechain.trx.sign(fe,q);case 16:if((xe=Ae.sent).signature){Ae.next=21;break}if(q){Ae.next=20;break}return Ae.abrupt("return",ye("Transaction was not signed properly"));case 20:return Ae.abrupt("return",ye("Invalid private key provided"));case 21:return Ae.next=23,this.sidechain.trx.sendRawTransaction(xe);case 23:if(!(z=Ae.sent).code){Ae.next=28;break}return Z={error:z.code,message:z.code},z.message&&(Z.message=this.mainchain.toUtf8(z.message)),Ae.abrupt("return",ye(Z));case 28:return Ae.abrupt("return",ye(null,xe.txID));case 31:return Ae.prev=31,Ae.t0=Ae.catch(8),Ae.abrupt("return",ye(Ae.t0));case 34:case"end":return Ae.stop()}},I,this,[[8,31]])})),function(I,U,$){return c.apply(this,arguments)})},{key:"retryWithdraw",value:(a=_(he().mark(function I(U,$,re){var q,ye,Pe,de=arguments;return he().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return q=de.length>3&&de[3]!==void 0?de[3]:{},ye=de.length>4&&de[4]!==void 0?de[4]:this.sidechain.defaultPrivateKey,Pe=de.length>5&&de[5]!==void 0&&de[5],fe.abrupt("return",this.withdrawTrc("retryWithdraw(uint256)",U,$,re,this.sideGatewayAddress,q,ye,Pe));case 5:case"end":return fe.stop()}},I,this)})),function(I,U,$){return a.apply(this,arguments)})},{key:"retryDeposit",value:(n=_(he().mark(function I(U,$,re){var q,ye,Pe,de=arguments;return he().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return q=de.length>3&&de[3]!==void 0?de[3]:{},ye=de.length>4&&de[4]!==void 0?de[4]:this.mainchain.defaultPrivateKey,Pe=de.length>5&&de[5]!==void 0&&de[5],fe.abrupt("return",this.depositTrc("retryDeposit",U,$,re,this.mainGatewayAddress,q,ye,Pe));case 5:case"end":return fe.stop()}},I,this)})),function(I,U,$){return n.apply(this,arguments)})},{key:"retryMapping",value:(e=_(he().mark(function I(U,$,re){var q,ye,Pe,de=arguments;return he().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return q=de.length>3&&de[3]!==void 0?de[3]:{},ye=de.length>4&&de[4]!==void 0?de[4]:this.mainchain.defaultPrivateKey,Pe=de.length>5&&de[5]!==void 0&&de[5],fe.abrupt("return",this.depositTrc("retryMapping",U,$,re,this.mainGatewayAddress,q,ye,Pe));case 5:case"end":return fe.stop()}},I,this)})),function(I,U,$){return e.apply(this,arguments)})}]),r})(),H0="4.7.1",Zm=15e7,vr=(function(r){K(h,r);var e,n,a,c,u,d=(c=h,u=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}})(),function(){var l,g=ce(c);if(u){var p=ce(this).constructor;l=Reflect.construct(g,arguments,p)}else l=g.apply(this,arguments);return Y(this,l)});function h(){var l,g,p=arguments.length>0&&arguments[0]!==void 0&&arguments[0],b=arguments.length>1&&arguments[1]!==void 0&&arguments[1],w=arguments.length>2&&arguments[2]!==void 0&&arguments[2],x=arguments.length>3&&arguments[3]!==void 0&&arguments[3],j=arguments.length>4&&arguments[4]!==void 0&&arguments[4];Q(this,h),l=d.call(this);var J=!1,we=!1;return ee(p)==="object"&&(p.fullNode||p.fullHost)?(g=p.fullNode||p.fullHost,x=b,b=p.solidityNode||p.fullHost,w=p.eventServer||p.fullHost,J=p.headers||!1,we=p.eventHeaders||J,j=p.privateKey):g=p,X.isString(g)&&(g=new hn.HttpProvider(g)),X.isString(b)&&(b=new hn.HttpProvider(b)),X.isString(w)&&(w=new hn.HttpProvider(w)),l.event=new G0(S(l)),l.transactionBuilder=new _0(S(l)),l.trx=new L0(S(l)),l.plugin=new V0(S(l),p),l.utils=X,l.setFullNode(g),l.setSolidityNode(b),l.setEventServer(w),l.providers=hn,l.BigNumber=Vi,l.defaultBlock=!1,l.defaultPrivateKey=!1,l.defaultAddress={hex:!1,base58:!1},["sha3","toHex","toUtf8","fromUtf8","toAscii","fromAscii","toDecimal","fromDecimal","toSun","fromSun","toBigNumber","isAddress","createAccount","address","version","createRandom","fromMnemonic"].forEach(function(ve){l[ve]=h[ve]}),ee(x)==="object"&&(x.fullNode||x.fullHost)?l.sidechain=new Km(x,h,S(l),j):j=j||x,j&&l.setPrivateKey(j),l.fullnodeVersion=H0,l.feeLimit=Zm,l.injectPromise=Ta()(S(l)),J&&l.setFullNodeHeader(J),we&&l.setEventHeader(we),l}return E(h,[{key:"getFullnodeVersion",value:(a=_(he().mark(function l(){var g;return he().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.prev=0,p.next=3,this.trx.getNodeInfo();case 3:g=p.sent,this.fullnodeVersion=g.configNodeInfo.codeVersion,this.fullnodeVersion.split(".").length===2&&(this.fullnodeVersion+=".0"),p.next=11;break;case 8:p.prev=8,p.t0=p.catch(0),this.fullnodeVersion=H0;case 11:case"end":return p.stop()}},l,this,[[0,8]])})),function(){return a.apply(this,arguments)})},{key:"setDefaultBlock",value:function(){var l=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if([!1,"latest","earliest",0].includes(l))return this.defaultBlock=l;if(!X.isInteger(l)||!l)throw new Error("Invalid block ID provided");this.defaultBlock=Math.abs(l)}},{key:"setPrivateKey",value:function(l){try{this.setAddress(this.address.fromPrivateKey(l))}catch{throw new Error("Invalid private key provided")}this.defaultPrivateKey=l,this.emit("privateKeyChanged",l)}},{key:"setAddress",value:function(l){if(!this.isAddress(l))throw new Error("Invalid address provided");var g=this.address.toHex(l),p=this.address.fromHex(l);this.defaultPrivateKey&&this.address.fromPrivateKey(this.defaultPrivateKey)!==p&&(this.defaultPrivateKey=!1),this.defaultAddress={hex:g,base58:p},this.emit("addressChanged",{hex:g,base58:p})}},{key:"fullnodeSatisfies",value:function(l){return x0().satisfies(this.fullnodeVersion,l)}},{key:"isValidProvider",value:function(l){return Object.values(hn).some(function(g){return l instanceof g})}},{key:"setFullNode",value:function(l){if(X.isString(l)&&(l=new hn.HttpProvider(l)),!this.isValidProvider(l))throw new Error("Invalid full node provided");this.fullNode=l,this.fullNode.setStatusPage("wallet/getnowblock")}},{key:"setSolidityNode",value:function(l){if(X.isString(l)&&(l=new hn.HttpProvider(l)),!this.isValidProvider(l))throw new Error("Invalid solidity node provided");this.solidityNode=l,this.solidityNode.setStatusPage("walletsolidity/getnowblock")}},{key:"setEventServer",value:function(){var l;(l=this.event).setServer.apply(l,arguments)}},{key:"setHeader",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=new hn.HttpProvider(this.fullNode.host,3e4,!1,!1,l),p=new hn.HttpProvider(this.solidityNode.host,3e4,!1,!1,l),b=new hn.HttpProvider(this.eventServer.host,3e4,!1,!1,l);this.setFullNode(g),this.setSolidityNode(p),this.setEventServer(b)}},{key:"setFullNodeHeader",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=new hn.HttpProvider(this.fullNode.host,3e4,!1,!1,l),p=new hn.HttpProvider(this.solidityNode.host,3e4,!1,!1,l);this.setFullNode(g),this.setSolidityNode(p)}},{key:"setEventHeader",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=new hn.HttpProvider(this.eventServer.host,3e4,!1,!1,l);this.setEventServer(g)}},{key:"currentProviders",value:function(){return{fullNode:this.fullNode,solidityNode:this.solidityNode,eventServer:this.eventServer}}},{key:"currentProvider",value:function(){return this.currentProviders()}},{key:"getEventResult",value:function(){for(var l,g=arguments.length,p=new Array(g),b=0;b<g;b++)p[b]=arguments[b];return ee(p[1])!=="object"&&(p[1]={sinceTimestamp:p[1]||0,eventName:p[2]||!1,blockNumber:p[3]||!1,size:p[4]||20,page:p[5]||1},p.splice(2,4),X.isFunction(p[2])||(X.isFunction(p[1].page)?(p[2]=p[1].page,p[1].page=1):X.isFunction(p[1].size)&&(p[2]=p[1].size,p[1].size=20,p[1].page=1))),(l=this.event).getEventsByContractAddress.apply(l,p)}},{key:"getEventByTransactionID",value:function(){var l;return(l=this.event).getEventsByTransactionID.apply(l,arguments)}},{key:"contract",value:function(){return new z0(this,arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],arguments.length>1&&arguments[1]!==void 0&&arguments[1])}},{key:"isConnected",value:(n=_(he().mark(function l(){var g,p=arguments;return he().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(g=p.length>0&&p[0]!==void 0&&p[0]){b.next=3;break}return b.abrupt("return",this.injectPromise(this.isConnected));case 3:return b.t0=g,b.next=6,this.fullNode.isConnected();case 6:return b.t1=b.sent,b.next=9,this.solidityNode.isConnected();case 9:if(b.t2=b.sent,b.t3=this.eventServer,!b.t3){b.next=15;break}return b.next=14,this.eventServer.isConnected();case 14:b.t3=b.sent;case 15:return b.t4=b.t3,b.t5={fullNode:b.t1,solidityNode:b.t2,eventServer:b.t4},b.abrupt("return",(0,b.t0)(null,b.t5));case 18:case"end":return b.stop()}},l,this)})),function(){return n.apply(this,arguments)})}],[{key:"address",get:function(){return{fromHex:function(l){return X.isHex(l)?X.crypto.getBase58CheckAddress(X.code.hexStr2byteArray(l.replace(/^0x/,co))):l},toHex:function(l){return X.isHex(l)?l.toLowerCase().replace(/^0x/,co):X.code.byteArray2hexStr(X.crypto.decodeBase58Address(l)).toLowerCase()},fromPrivateKey:function(l){var g=arguments.length>1&&arguments[1]!==void 0&&arguments[1];try{return X.crypto.pkToAddress(l,g)}catch{return!1}}}}},{key:"sha3",value:function(l){return(arguments.length>1&&arguments[1]!==void 0&&!arguments[1]?"":"0x")+rr(_r.dist.Buffer.from(l,"utf-8")).toString().substring(2)}},{key:"toHex",value:function(l){if(X.isBoolean(l))return h.fromDecimal(+l);if(X.isBigNumber(l))return h.fromDecimal(l);if(ee(l)==="object")return h.fromUtf8(JSON.stringify(l));if(X.isString(l)){if(/^(-|)0x/.test(l))return l;if(!isFinite(l)||/^\s*$/.test(l))return h.fromUtf8(l)}var g=h.fromDecimal(l);if(g==="0xNaN")throw new Error("The passed value is not convertible to a hex string");return g}},{key:"toUtf8",value:function(l){if(X.isHex(l))return l=l.replace(/^0x/,""),_r.dist.Buffer.from(l,"hex").toString("utf8");throw new Error("The passed value is not a valid hex string")}},{key:"fromUtf8",value:function(l){if(!X.isString(l))throw new Error("The passed value is not a valid utf-8 string");return"0x"+_r.dist.Buffer.from(l,"utf8").toString("hex")}},{key:"toAscii",value:function(l){if(X.isHex(l)){var g="",p=0,b=l.length;for(l.substring(0,2)==="0x"&&(p=2);p<b;p+=2){var w=parseInt(l.substr(p,2),16);g+=String.fromCharCode(w)}return g}throw new Error("The passed value is not a valid hex string")}},{key:"fromAscii",value:function(l,g){if(!X.isString(l))throw new Error("The passed value is not a valid utf-8 string");return"0x"+_r.dist.Buffer.from(l,"ascii").toString("hex").padEnd(g,"0")}},{key:"toDecimal",value:function(l){return h.toBigNumber(l).toNumber()}},{key:"fromDecimal",value:function(l){var g=h.toBigNumber(l),p=g.toString(16);return g.isLessThan(0)?"-0x"+p.substr(1):"0x"+p}},{key:"fromSun",value:function(l){var g=h.toBigNumber(l).div(1e6);return X.isBigNumber(l)?g:g.toString(10)}},{key:"toSun",value:function(l){var g=h.toBigNumber(l).times(1e6);return X.isBigNumber(l)?g:g.toString(10)}},{key:"toBigNumber",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return X.isBigNumber(l)?l:X.isString(l)&&/^(-|)0x/.test(l)?new Vi(l.replace("0x",""),16):new Vi(l.toString(10),10)}},{key:"isAddress",value:function(){var l=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(!X.isString(l))return!1;if(l.length===42)try{return h.isAddress(X.crypto.getBase58CheckAddress(X.code.hexStr2byteArray(l)))}catch{return!1}try{return X.crypto.isAddressValid(l)}catch{return!1}}},{key:"createAccount",value:(e=_(he().mark(function l(){var g;return he().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return g=X.accounts.generateAccount(),p.abrupt("return",g);case 2:case"end":return p.stop()}},l)})),function(){return e.apply(this,arguments)})},{key:"createRandom",value:function(l){return X.accounts.generateRandom(l)}},{key:"fromMnemonic",value:function(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ju,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return X.accounts.generateAccountWithMnemonic(l,g,p)}}]),h})(Lm());te(vr,"providers",hn),te(vr,"BigNumber",Vi),te(vr,"TransactionBuilder",_0),te(vr,"Trx",L0),te(vr,"Contract",z0),te(vr,"Plugin",V0),te(vr,"Event",G0),te(vr,"version","5.3.2"),te(vr,"utils",X)})(),Mt.default})())})(Tg);var Ym=Tg.exports;const Ag=_r.getDefaultExportFromCjs(Ym),Ml={injectPromise(ae,...Oe){return new Promise((Me,Ke)=>{ae(...Oe,(at,Ye)=>{at?Ke(at):Me(Ye)})})}};var jl={exports:{}},wg=function(ae,Oe){return function(){for(var Me=new Array(arguments.length),Ke=0;Ke<Me.length;Ke++)Me[Ke]=arguments[Ke];return ae.apply(Oe,Me)}},Xm=wg,zl=Object.prototype.toString,Vl=(function(ae){return function(Oe){var Me=zl.call(Oe);return ae[Me]||(ae[Me]=Me.slice(8,-1).toLowerCase())}})(Object.create(null));function wa(ae){return ae=ae.toLowerCase(),function(Oe){return Vl(Oe)===ae}}function Gl(ae){return Array.isArray(ae)}function Su(ae){return typeof ae>"u"}function Qm(ae){return ae!==null&&!Su(ae)&&ae.constructor!==null&&!Su(ae.constructor)&&typeof ae.constructor.isBuffer=="function"&&ae.constructor.isBuffer(ae)}var Pg=wa("ArrayBuffer");function ev(ae){var Oe;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?Oe=ArrayBuffer.isView(ae):Oe=ae&&ae.buffer&&Pg(ae.buffer),Oe}function tv(ae){return typeof ae=="string"}function rv(ae){return typeof ae=="number"}function Wg(ae){return ae!==null&&typeof ae=="object"}function xu(ae){if(Vl(ae)!=="object")return!1;var Oe=Object.getPrototypeOf(ae);return Oe===null||Oe===Object.prototype}var nv=wa("Date"),ov=wa("File"),av=wa("Blob"),iv=wa("FileList");function $l(ae){return zl.call(ae)==="[object Function]"}function sv(ae){return Wg(ae)&&$l(ae.pipe)}function uv(ae){var Oe="[object FormData]";return ae&&(typeof FormData=="function"&&ae instanceof FormData||zl.call(ae)===Oe||$l(ae.toString)&&ae.toString()===Oe)}var cv=wa("URLSearchParams");function lv(ae){return ae.trim?ae.trim():ae.replace(/^\s+|\s+$/g,"")}function fv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Hl(ae,Oe){if(!(ae===null||typeof ae>"u"))if(typeof ae!="object"&&(ae=[ae]),Gl(ae))for(var Me=0,Ke=ae.length;Me<Ke;Me++)Oe.call(null,ae[Me],Me,ae);else for(var at in ae)Object.prototype.hasOwnProperty.call(ae,at)&&Oe.call(null,ae[at],at,ae)}function Ll(){var ae={};function Oe(at,Ye){xu(ae[Ye])&&xu(at)?ae[Ye]=Ll(ae[Ye],at):xu(at)?ae[Ye]=Ll({},at):Gl(at)?ae[Ye]=at.slice():ae[Ye]=at}for(var Me=0,Ke=arguments.length;Me<Ke;Me++)Hl(arguments[Me],Oe);return ae}function dv(ae,Oe,Me){return Hl(Oe,function(Ke,at){Me&&typeof Ke=="function"?ae[at]=Xm(Ke,Me):ae[at]=Ke}),ae}function hv(ae){return ae.charCodeAt(0)===65279&&(ae=ae.slice(1)),ae}function pv(ae,Oe,Me,Ke){ae.prototype=Object.create(Oe.prototype,Ke),ae.prototype.constructor=ae,Me&&Object.assign(ae.prototype,Me)}function gv(ae,Oe,Me){var Ke,at,Ye,Ve={};Oe=Oe||{};do{for(Ke=Object.getOwnPropertyNames(ae),at=Ke.length;at-- >0;)Ye=Ke[at],Ve[Ye]||(Oe[Ye]=ae[Ye],Ve[Ye]=!0);ae=Object.getPrototypeOf(ae)}while(ae&&(!Me||Me(ae,Oe))&&ae!==Object.prototype);return Oe}function yv(ae,Oe,Me){ae=String(ae),(Me===void 0||Me>ae.length)&&(Me=ae.length),Me-=Oe.length;var Ke=ae.indexOf(Oe,Me);return Ke!==-1&&Ke===Me}function mv(ae){if(!ae)return null;var Oe=ae.length;if(Su(Oe))return null;for(var Me=new Array(Oe);Oe-- >0;)Me[Oe]=ae[Oe];return Me}var vv=(function(ae){return function(Oe){return ae&&Oe instanceof ae}})(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),en={isArray:Gl,isArrayBuffer:Pg,isBuffer:Qm,isFormData:uv,isArrayBufferView:ev,isString:tv,isNumber:rv,isObject:Wg,isPlainObject:xu,isUndefined:Su,isDate:nv,isFile:ov,isBlob:av,isFunction:$l,isStream:sv,isURLSearchParams:cv,isStandardBrowserEnv:fv,forEach:Hl,merge:Ll,extend:dv,trim:lv,stripBOM:hv,inherits:pv,toFlatObject:gv,kindOf:Vl,kindOfTest:wa,endsWith:yv,toArray:mv,isTypedArray:vv,isFileList:iv},ni=en;function K0(ae){return encodeURIComponent(ae).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Bg=function(ae,Oe,Me){if(!Oe)return ae;var Ke;if(Me)Ke=Me(Oe);else if(ni.isURLSearchParams(Oe))Ke=Oe.toString();else{var at=[];ni.forEach(Oe,function(Ve,Mt){Ve===null||typeof Ve>"u"||(ni.isArray(Ve)?Mt=Mt+"[]":Ve=[Ve],ni.forEach(Ve,function(V){ni.isDate(V)?V=V.toISOString():ni.isObject(V)&&(V=JSON.stringify(V)),at.push(K0(Mt)+"="+K0(V))}))}),Ke=at.join("&")}if(Ke){var Ye=ae.indexOf("#");Ye!==-1&&(ae=ae.slice(0,Ye)),ae+=(ae.indexOf("?")===-1?"?":"&")+Ke}return ae},bv=en;function Fu(){this.handlers=[]}Fu.prototype.use=function(ae,Oe,Me){return this.handlers.push({fulfilled:ae,rejected:Oe,synchronous:Me?Me.synchronous:!1,runWhen:Me?Me.runWhen:null}),this.handlers.length-1};Fu.prototype.eject=function(ae){this.handlers[ae]&&(this.handlers[ae]=null)};Fu.prototype.forEach=function(ae){bv.forEach(this.handlers,function(Oe){Oe!==null&&ae(Oe)})};var Tv=Fu,Av=en,wv=function(ae,Oe){Av.forEach(ae,function(Me,Ke){Ke!==Oe&&Ke.toUpperCase()===Oe.toUpperCase()&&(ae[Oe]=Me,delete ae[Ke])})},Cg=en;function ai(ae,Oe,Me,Ke,at){Error.call(this),this.message=ae,this.name="AxiosError",Oe&&(this.code=Oe),Me&&(this.config=Me),Ke&&(this.request=Ke),at&&(this.response=at)}Cg.inherits(ai,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Eg=ai.prototype,Mg={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(ae){Mg[ae]={value:ae}});Object.defineProperties(ai,Mg);Object.defineProperty(Eg,"isAxiosError",{value:!0});ai.from=function(ae,Oe,Me,Ke,at,Ye){var Ve=Object.create(Eg);return Cg.toFlatObject(ae,Ve,function(Mt){return Mt!==Error.prototype}),ai.call(Ve,ae.message,Oe,Me,Ke,at),Ve.name=ae.name,Ye&&Object.assign(Ve,Ye),Ve};var si=ai,Og={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uo=en;function Pv(ae,Oe){Oe=Oe||new FormData;var Me=[];function Ke(Ye){return Ye===null?"":uo.isDate(Ye)?Ye.toISOString():uo.isArrayBuffer(Ye)||uo.isTypedArray(Ye)?typeof Blob=="function"?new Blob([Ye]):_r.dist.Buffer.from(Ye):Ye}function at(Ye,Ve){if(uo.isPlainObject(Ye)||uo.isArray(Ye)){if(Me.indexOf(Ye)!==-1)throw Error("Circular reference detected in "+Ve);Me.push(Ye),uo.forEach(Ye,function(Mt,V){if(!uo.isUndefined(Mt)){var v=Ve?Ve+"."+V:V,k;if(Mt&&!Ve&&typeof Mt=="object"){if(uo.endsWith(V,"{}"))Mt=JSON.stringify(Mt);else if(uo.endsWith(V,"[]")&&(k=uo.toArray(Mt))){k.forEach(function(i){!uo.isUndefined(i)&&Oe.append(v,Ke(i))});return}}at(Mt,v)}}),Me.pop()}else Oe.append(Ve,Ke(Ye))}return at(ae),Oe}var Ig=Pv,Ol,Z0;function Wv(){if(Z0)return Ol;Z0=1;var ae=si;return Ol=function(Oe,Me,Ke){var at=Ke.config.validateStatus;!Ke.status||!at||at(Ke.status)?Oe(Ke):Me(new ae("Request failed with status code "+Ke.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(Ke.status/100)-4],Ke.config,Ke.request,Ke))},Ol}var Il,J0;function Bv(){if(J0)return Il;J0=1;var ae=en;return Il=ae.isStandardBrowserEnv()?(function(){return{write:function(Oe,Me,Ke,at,Ye,Ve){var Mt=[];Mt.push(Oe+"="+encodeURIComponent(Me)),ae.isNumber(Ke)&&Mt.push("expires="+new Date(Ke).toGMTString()),ae.isString(at)&&Mt.push("path="+at),ae.isString(Ye)&&Mt.push("domain="+Ye),Ve===!0&&Mt.push("secure"),document.cookie=Mt.join("; ")},read:function(Oe){var Me=document.cookie.match(new RegExp("(^|;\\s*)("+Oe+")=([^;]*)"));return Me?decodeURIComponent(Me[3]):null},remove:function(Oe){this.write(Oe,"",Date.now()-864e5)}}})():(function(){return{write:function(){},read:function(){return null},remove:function(){}}})(),Il}var Cv=function(ae){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(ae)},Ev=function(ae,Oe){return Oe?ae.replace(/\/+$/,"")+"/"+Oe.replace(/^\/+/,""):ae},Mv=Cv,Ov=Ev,xg=function(ae,Oe){return ae&&!Mv(Oe)?Ov(ae,Oe):Oe},xl,q0;function Iv(){if(q0)return xl;q0=1;var ae=en,Oe=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return xl=function(Me){var Ke={},at,Ye,Ve;return Me&&ae.forEach(Me.split(`
|
|
28
|
+
`),function(Mt){if(Ve=Mt.indexOf(":"),at=ae.trim(Mt.substr(0,Ve)).toLowerCase(),Ye=ae.trim(Mt.substr(Ve+1)),at){if(Ke[at]&&Oe.indexOf(at)>=0)return;at==="set-cookie"?Ke[at]=(Ke[at]?Ke[at]:[]).concat([Ye]):Ke[at]=Ke[at]?Ke[at]+", "+Ye:Ye}}),Ke},xl}var kl,Y0;function xv(){if(Y0)return kl;Y0=1;var ae=en;return kl=ae.isStandardBrowserEnv()?(function(){var Oe=/(msie|trident)/i.test(navigator.userAgent),Me=document.createElement("a"),Ke;function at(Ye){var Ve=Ye;return Oe&&(Me.setAttribute("href",Ve),Ve=Me.href),Me.setAttribute("href",Ve),{href:Me.href,protocol:Me.protocol?Me.protocol.replace(/:$/,""):"",host:Me.host,search:Me.search?Me.search.replace(/^\?/,""):"",hash:Me.hash?Me.hash.replace(/^#/,""):"",hostname:Me.hostname,port:Me.port,pathname:Me.pathname.charAt(0)==="/"?Me.pathname:"/"+Me.pathname}}return Ke=at(window.location.href),function(Ye){var Ve=ae.isString(Ye)?at(Ye):Ye;return Ve.protocol===Ke.protocol&&Ve.host===Ke.host}})():(function(){return function(){return!0}})(),kl}var Sl,X0;function Ru(){if(X0)return Sl;X0=1;var ae=si,Oe=en;function Me(Ke){ae.call(this,Ke??"canceled",ae.ERR_CANCELED),this.name="CanceledError"}return Oe.inherits(Me,ae,{__CANCEL__:!0}),Sl=Me,Sl}var Q0,eg;function kv(){return eg||(eg=1,Q0=function(ae){var Oe=/^([-+\w]{1,25})(:?\/\/|:)/.exec(ae);return Oe&&Oe[1]||""}),Q0}var Fl,tg;function Sv(){if(tg)return Fl;tg=1;var ae=en,Oe=Wv(),Me=Bv(),Ke=Bg,at=xg,Ye=Iv(),Ve=xv(),Mt=Og,V=si,v=Ru(),k=kv();return Fl=function(i){return new Promise(function(W,B){var y=i.data,t=i.headers,o=i.responseType,s;function G(){i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}ae.isFormData(y)&&ae.isStandardBrowserEnv()&&delete t["Content-Type"];var _=new XMLHttpRequest;if(i.auth){var ee=i.auth.username||"",Q=i.auth.password?unescape(encodeURIComponent(i.auth.password)):"";t.Authorization="Basic "+btoa(ee+":"+Q)}var Ce=at(i.baseURL,i.url);_.open(i.method.toUpperCase(),Ke(Ce,i.params,i.paramsSerializer),!0),_.timeout=i.timeout;function le(){if(_){var L="getAllResponseHeaders"in _?Ye(_.getAllResponseHeaders()):null,K=!o||o==="text"||o==="json"?_.responseText:_.response,Y={data:K,status:_.status,statusText:_.statusText,headers:L,config:i,request:_};Oe(function(ce){W(ce),G()},function(ce){B(ce),G()},Y),_=null}}if("onloadend"in _?_.onloadend=le:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(le)},_.onabort=function(){_&&(B(new V("Request aborted",V.ECONNABORTED,i,_)),_=null)},_.onerror=function(){B(new V("Network Error",V.ERR_NETWORK,i,_,_)),_=null},_.ontimeout=function(){var L=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",K=i.transitional||Mt;i.timeoutErrorMessage&&(L=i.timeoutErrorMessage),B(new V(L,K.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,i,_)),_=null},ae.isStandardBrowserEnv()){var E=(i.withCredentials||Ve(Ce))&&i.xsrfCookieName?Me.read(i.xsrfCookieName):void 0;E&&(t[i.xsrfHeaderName]=E)}"setRequestHeader"in _&&ae.forEach(t,function(L,K){typeof y>"u"&&K.toLowerCase()==="content-type"?delete t[K]:_.setRequestHeader(K,L)}),ae.isUndefined(i.withCredentials)||(_.withCredentials=!!i.withCredentials),o&&o!=="json"&&(_.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&_.addEventListener("progress",i.onDownloadProgress),typeof i.onUploadProgress=="function"&&_.upload&&_.upload.addEventListener("progress",i.onUploadProgress),(i.cancelToken||i.signal)&&(s=function(L){_&&(B(!L||L&&L.type?new v:L),_.abort(),_=null)},i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s))),y||(y=null);var S=k(Ce);if(S&&["http","https","file"].indexOf(S)===-1){B(new V("Unsupported protocol "+S+":",V.ERR_BAD_REQUEST,i));return}_.send(y)})},Fl}var rg,ng;function Fv(){return ng||(ng=1,rg=null),rg}var Yr=en,og=wv,ag=si,Rv=Og,_v=Ig,Nv={"Content-Type":"application/x-www-form-urlencoded"};function ig(ae,Oe){!Yr.isUndefined(ae)&&Yr.isUndefined(ae["Content-Type"])&&(ae["Content-Type"]=Oe)}function Dv(){var ae;return(typeof XMLHttpRequest<"u"||typeof _r.dist.process<"u"&&Object.prototype.toString.call(_r.dist.process)==="[object process]")&&(ae=Sv()),ae}function Uv(ae,Oe,Me){if(Yr.isString(ae))try{return(Oe||JSON.parse)(ae),Yr.trim(ae)}catch(Ke){if(Ke.name!=="SyntaxError")throw Ke}return(0,JSON.stringify)(ae)}var _u={transitional:Rv,adapter:Dv(),transformRequest:[function(ae,Oe){if(og(Oe,"Accept"),og(Oe,"Content-Type"),Yr.isFormData(ae)||Yr.isArrayBuffer(ae)||Yr.isBuffer(ae)||Yr.isStream(ae)||Yr.isFile(ae)||Yr.isBlob(ae))return ae;if(Yr.isArrayBufferView(ae))return ae.buffer;if(Yr.isURLSearchParams(ae))return ig(Oe,"application/x-www-form-urlencoded;charset=utf-8"),ae.toString();var Me=Yr.isObject(ae),Ke=Oe&&Oe["Content-Type"],at;if((at=Yr.isFileList(ae))||Me&&Ke==="multipart/form-data"){var Ye=this.env&&this.env.FormData;return _v(at?{"files[]":ae}:ae,Ye&&new Ye)}else if(Me||Ke==="application/json")return ig(Oe,"application/json"),Uv(ae);return ae}],transformResponse:[function(ae){var Oe=this.transitional||_u.transitional,Me=Oe&&Oe.silentJSONParsing,Ke=Oe&&Oe.forcedJSONParsing,at=!Me&&this.responseType==="json";if(at||Ke&&Yr.isString(ae)&&ae.length)try{return JSON.parse(ae)}catch(Ye){if(at)throw Ye.name==="SyntaxError"?ag.from(Ye,ag.ERR_BAD_RESPONSE,this,null,this.response):Ye}return ae}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fv()},validateStatus:function(ae){return ae>=200&&ae<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Yr.forEach(["delete","get","head"],function(ae){_u.headers[ae]={}});Yr.forEach(["post","put","patch"],function(ae){_u.headers[ae]=Yr.merge(Nv)});var Kl=_u,Lv=en,jv=Kl,zv=function(ae,Oe,Me){var Ke=this||jv;return Lv.forEach(Me,function(at){ae=at.call(Ke,ae,Oe)}),ae},sg,ug;function kg(){return ug||(ug=1,sg=function(ae){return!!(ae&&ae.__CANCEL__)}),sg}var cg=en,Rl=zv,Vv=kg(),Gv=Kl,$v=Ru();function _l(ae){if(ae.cancelToken&&ae.cancelToken.throwIfRequested(),ae.signal&&ae.signal.aborted)throw new $v}var Hv=function(ae){_l(ae),ae.headers=ae.headers||{},ae.data=Rl.call(ae,ae.data,ae.headers,ae.transformRequest),ae.headers=cg.merge(ae.headers.common||{},ae.headers[ae.method]||{},ae.headers),cg.forEach(["delete","get","head","post","put","patch","common"],function(Me){delete ae.headers[Me]});var Oe=ae.adapter||Gv.adapter;return Oe(ae).then(function(Me){return _l(ae),Me.data=Rl.call(ae,Me.data,Me.headers,ae.transformResponse),Me},function(Me){return Vv(Me)||(_l(ae),Me&&Me.response&&(Me.response.data=Rl.call(ae,Me.response.data,Me.response.headers,ae.transformResponse))),Promise.reject(Me)})},On=en,Sg=function(ae,Oe){Oe=Oe||{};var Me={};function Ke(v,k){return On.isPlainObject(v)&&On.isPlainObject(k)?On.merge(v,k):On.isPlainObject(k)?On.merge({},k):On.isArray(k)?k.slice():k}function at(v){if(On.isUndefined(Oe[v])){if(!On.isUndefined(ae[v]))return Ke(void 0,ae[v])}else return Ke(ae[v],Oe[v])}function Ye(v){if(!On.isUndefined(Oe[v]))return Ke(void 0,Oe[v])}function Ve(v){if(On.isUndefined(Oe[v])){if(!On.isUndefined(ae[v]))return Ke(void 0,ae[v])}else return Ke(void 0,Oe[v])}function Mt(v){if(v in Oe)return Ke(ae[v],Oe[v]);if(v in ae)return Ke(void 0,ae[v])}var V={url:Ye,method:Ye,data:Ye,baseURL:Ve,transformRequest:Ve,transformResponse:Ve,paramsSerializer:Ve,timeout:Ve,timeoutMessage:Ve,withCredentials:Ve,adapter:Ve,responseType:Ve,xsrfCookieName:Ve,xsrfHeaderName:Ve,onUploadProgress:Ve,onDownloadProgress:Ve,decompress:Ve,maxContentLength:Ve,maxBodyLength:Ve,beforeRedirect:Ve,transport:Ve,httpAgent:Ve,httpsAgent:Ve,cancelToken:Ve,socketPath:Ve,responseEncoding:Ve,validateStatus:Mt};return On.forEach(Object.keys(ae).concat(Object.keys(Oe)),function(v){var k=V[v]||at,i=k(v);On.isUndefined(i)&&k!==Mt||(Me[v]=i)}),Me},lg,fg;function Fg(){return fg||(fg=1,lg={version:"0.27.2"}),lg}var Kv=Fg().version,ra=si,Zl={};["object","boolean","number","function","string","symbol"].forEach(function(ae,Oe){Zl[ae]=function(Me){return typeof Me===ae||"a"+(Oe<1?"n ":" ")+ae}});var dg={};Zl.transitional=function(ae,Oe,Me){function Ke(at,Ye){return"[Axios v"+Kv+"] Transitional option '"+at+"'"+Ye+(Me?". "+Me:"")}return function(at,Ye,Ve){if(ae===!1)throw new ra(Ke(Ye," has been removed"+(Oe?" in "+Oe:"")),ra.ERR_DEPRECATED);return Oe&&!dg[Ye]&&(dg[Ye]=!0,console.warn(Ke(Ye," has been deprecated since v"+Oe+" and will be removed in the near future"))),ae?ae(at,Ye,Ve):!0}};function Zv(ae,Oe,Me){if(typeof ae!="object")throw new ra("options must be an object",ra.ERR_BAD_OPTION_VALUE);for(var Ke=Object.keys(ae),at=Ke.length;at-- >0;){var Ye=Ke[at],Ve=Oe[Ye];if(Ve){var Mt=ae[Ye],V=Mt===void 0||Ve(Mt,Ye,ae);if(V!==!0)throw new ra("option "+Ye+" must be "+V,ra.ERR_BAD_OPTION_VALUE);continue}if(Me!==!0)throw new ra("Unknown option "+Ye,ra.ERR_BAD_OPTION)}}var Jv={assertOptions:Zv,validators:Zl},Rg=en,qv=Bg,hg=Tv,pg=Hv,Nu=Sg,Yv=xg,_g=Jv,oi=_g.validators;function ii(ae){this.defaults=ae,this.interceptors={request:new hg,response:new hg}}ii.prototype.request=function(ae,Oe){typeof ae=="string"?(Oe=Oe||{},Oe.url=ae):Oe=ae||{},Oe=Nu(this.defaults,Oe),Oe.method?Oe.method=Oe.method.toLowerCase():this.defaults.method?Oe.method=this.defaults.method.toLowerCase():Oe.method="get";var Me=Oe.transitional;Me!==void 0&&_g.assertOptions(Me,{silentJSONParsing:oi.transitional(oi.boolean),forcedJSONParsing:oi.transitional(oi.boolean),clarifyTimeoutError:oi.transitional(oi.boolean)},!1);var Ke=[],at=!0;this.interceptors.request.forEach(function(i){typeof i.runWhen=="function"&&i.runWhen(Oe)===!1||(at=at&&i.synchronous,Ke.unshift(i.fulfilled,i.rejected))});var Ye=[];this.interceptors.response.forEach(function(i){Ye.push(i.fulfilled,i.rejected)});var Ve;if(!at){var Mt=[pg,void 0];for(Array.prototype.unshift.apply(Mt,Ke),Mt=Mt.concat(Ye),Ve=Promise.resolve(Oe);Mt.length;)Ve=Ve.then(Mt.shift(),Mt.shift());return Ve}for(var V=Oe;Ke.length;){var v=Ke.shift(),k=Ke.shift();try{V=v(V)}catch(i){k(i);break}}try{Ve=pg(V)}catch(i){return Promise.reject(i)}for(;Ye.length;)Ve=Ve.then(Ye.shift(),Ye.shift());return Ve};ii.prototype.getUri=function(ae){ae=Nu(this.defaults,ae);var Oe=Yv(ae.baseURL,ae.url);return qv(Oe,ae.params,ae.paramsSerializer)};Rg.forEach(["delete","get","head","options"],function(ae){ii.prototype[ae]=function(Oe,Me){return this.request(Nu(Me||{},{method:ae,url:Oe,data:(Me||{}).data}))}});Rg.forEach(["post","put","patch"],function(ae){function Oe(Me){return function(Ke,at,Ye){return this.request(Nu(Ye||{},{method:ae,headers:Me?{"Content-Type":"multipart/form-data"}:{},url:Ke,data:at}))}}ii.prototype[ae]=Oe(),ii.prototype[ae+"Form"]=Oe(!0)});var Xv=ii,Nl,gg;function Qv(){if(gg)return Nl;gg=1;var ae=Ru();function Oe(Me){if(typeof Me!="function")throw new TypeError("executor must be a function.");var Ke;this.promise=new Promise(function(Ye){Ke=Ye});var at=this;this.promise.then(function(Ye){if(at._listeners){var Ve,Mt=at._listeners.length;for(Ve=0;Ve<Mt;Ve++)at._listeners[Ve](Ye);at._listeners=null}}),this.promise.then=function(Ye){var Ve,Mt=new Promise(function(V){at.subscribe(V),Ve=V}).then(Ye);return Mt.cancel=function(){at.unsubscribe(Ve)},Mt},Me(function(Ye){at.reason||(at.reason=new ae(Ye),Ke(at.reason))})}return Oe.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Oe.prototype.subscribe=function(Me){if(this.reason){Me(this.reason);return}this._listeners?this._listeners.push(Me):this._listeners=[Me]},Oe.prototype.unsubscribe=function(Me){if(this._listeners){var Ke=this._listeners.indexOf(Me);Ke!==-1&&this._listeners.splice(Ke,1)}},Oe.source=function(){var Me,Ke=new Oe(function(at){Me=at});return{token:Ke,cancel:Me}},Nl=Oe,Nl}var yg,mg;function eb(){return mg||(mg=1,yg=function(ae){return function(Oe){return ae.apply(null,Oe)}}),yg}var Dl,vg;function tb(){if(vg)return Dl;vg=1;var ae=en;return Dl=function(Oe){return ae.isObject(Oe)&&Oe.isAxiosError===!0},Dl}var bg=en,rb=wg,ku=Xv,nb=Sg,ob=Kl;function Ng(ae){var Oe=new ku(ae),Me=rb(ku.prototype.request,Oe);return bg.extend(Me,ku.prototype,Oe),bg.extend(Me,Oe),Me.create=function(Ke){return Ng(nb(ae,Ke))},Me}var Pn=Ng(ob);Pn.Axios=ku;Pn.CanceledError=Ru();Pn.CancelToken=Qv();Pn.isCancel=kg();Pn.VERSION=Fg().version;Pn.toFormData=Ig;Pn.AxiosError=si;Pn.Cancel=Pn.CanceledError;Pn.all=function(ae){return Promise.all(ae)};Pn.spread=eb();Pn.isAxiosError=tb();jl.exports=Pn;jl.exports.default=Pn;var ab=jl.exports,ib=ab;const sb=_r.getDefaultExportFromCjs(ib),{HttpProvider:ub}=Ag.providers;class Ul extends ub{constructor(){super("http://127.0.0.1"),console.info("Provider initialised"),this.ready=!1,this.queue=[]}configure(Oe){for(this.host=Oe,this.instance=sb.create({baseURL:Oe,timeout:3e4,headers:{}}),this.ready=!0;this.queue.length;){const{args:Me,resolve:Ke,reject:at}=this.queue.shift();this.request(...Me).then(Ke).catch(at).then(()=>console.info(`Completed the queued request to ${Me[0]}`))}}request(Oe,Me={},Ke="get"){return this.ready?super.request(Oe,Me,Ke).then(at=>{const Ye=at.transaction||at;return Object.defineProperty(Ye,"__payload__",{writable:!1,enumerable:!1,configurable:!1,value:Me}),at}):(console.info(`Request to ${Oe} has been queued`),new Promise((at,Ye)=>{this.queue.push({args:[Oe,Me,Ke],resolve:at,reject:Ye})}))}}const cb=_r.getMetadata();class lb{constructor(Oe){Kn(this,"message"),Kn(this,"tronWeb"),Kn(this,"ready",!1),Kn(this,"proxiedMethods",{setAddress:void 0,sign:void 0}),Kn(this,"_bindTronWeb",()=>{const Me=new Ul,Ke=new Ul,at=new Ul,Ye=new Ag(Me,Ke,at);this.proxiedMethods={sign:Ye.trx.sign.bind(Ye),setAddress:Ye.setAddress.bind(Ye),signMessage:Ye.trx.signMessage.bind(Ye),signMessageV2:Ye.trx.signMessageV2.bind(Ye)},["setPrivateKey","setAddress","setFullNode","setSolidityNode","setEventServer"].forEach(Ve=>{Ye[Ve]=()=>new Error("Gel Wallet has disabled this method")}),Ye.trx.sign=this.sign,Ye.trx.signMessage=this.signMessage,Ye.trx.signMessageV2=this.signMessageV2,this.tronWeb=Ye,window.tronWeb=Ye}),Kn(this,"_bindEvents",()=>{this.message.on("tronSetAccount",Me=>{this.setAddress(Me)}),this.message.on("tronSetNode",Me=>{this.setNode(Me)})}),Kn(this,"_init",async()=>{const Me=await this.request({method:"tron_init",params:void 0}),{node:Ke,name:at,address:Ye,type:Ve}=Me||{};Ke!=null&&Ke.fullNode&&this.setNode(Ke),Ye&&this.setAddress({name:at,address:Ye,type:Ve})}),Kn(this,"setAddress",Me=>{var Ke,at;const{address:Ye,name:Ve,type:Mt}=Me,V=this.tronWeb;if(!V.isAddress(Ye)){V.defaultAddress={hex:!1,base58:!1},V.ready=!1,this.ready=!1;return}(at=(Ke=this.proxiedMethods).setAddress)==null||at.call(Ke,Ye),V.defaultAddress.name=Ve,V.defaultAddress.type=Mt,V.ready=!0,this.ready=!0}),Kn(this,"sign",async(Me,Ke=!1,at=!0,Ye=!1)=>{var Ve,Mt;if(!Ye)return Ml.injectPromise(this.sign.bind(this),Me,Ke,at);if(Ke)return(Mt=(Ve=this.proxiedMethods).sign)==null?void 0:Mt.call(Ve,Me,Ke,at,Ye);if(!Me)return Ye("Invalid transaction provided");if(!this.tronWeb.ready)return Ye("User has not unlocked wallet");try{const V=await this.request({method:"tron_sign",params:{transaction:Me,useTronHeader:at,input:typeof Me=="string"?Me:Me.__payload__||Me.raw_data.contract[0].parameter.value}});Ye(null,V)}catch(V){Ye(V)}}),Kn(this,"signMessage",async(Me,Ke=!1,at=!0,Ye=!1)=>{var Ve,Mt;if(!Ye)return Ml.injectPromise(this.signMessage.bind(this),Me,Ke,at);if(Ke&&Ke)return(Mt=(Ve=this.proxiedMethods).signMessage)==null?void 0:Mt.call(Ve,Me,Ke,at,Ye);if(!Me||typeof Me!="string")return Ye("Invalid transaction provided");if(!this.tronWeb.ready)return Ye("User has not unlocked wallet");try{const V=await this.request({method:"tron_signMessage",params:{message:Me}});Ye(null,V)}catch(V){Ye(V)}}),Kn(this,"signMessageV2",async(Me,Ke=!1,at=!0,Ye=!1)=>{var Ve,Mt;if(!Ye)return Ml.injectPromise(this.signMessageV2.bind(this),Me,Ke,at);if(Ke&&Ke)return(Mt=(Ve=this.proxiedMethods).signMessageV2)==null?void 0:Mt.call(Ve,Me,Ke,at,Ye);if(!Me||typeof Me!="string")return Ye("Invalid transaction provided");if(!this.tronWeb.ready)return Ye("User has not unlocked wallet");try{const V=await this.request({method:"tron_signMessageV2",params:{message:Me}});Ye(null,V)}catch(V){Ye(V)}}),Kn(this,"request",Me=>this.message.send({chainType:_r.ChainType.Tron,methodName:Me.method,params:Me.params,metadata:cb})),this.message=Oe,this._bindTronWeb(),this._bindEvents(),this._init()}setNode(Oe){const Me=this.tronWeb;Oe.fullNode&&Me.fullNode.configure(Oe.fullNode),Oe.solidityNode&&Me.solidityNode.configure(Oe.solidityNode),Oe.eventServer&&Me.eventServer.configure(Oe.eventServer)}}exports.TronProvider=lb;
|